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)

query I rowsort
SELECT 40 * + col2 + 79 + 19 * + 53 AS col0 FROM tab0 cor0
----
1486
2966
5046

onlyif mysql # DIV for integer division: 
query I rowsort label-1
SELECT 9 + + + col2 DIV - col2 FROM tab1 cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-1
SELECT 9 + + + col2 / - col2 FROM tab1 cor0
----
8
8
8

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

onlyif mysql # DIV for integer division: 
query I rowsort label-3
SELECT DISTINCT col1 + + - col2 DIV - - col2 col1 FROM tab2
----
50
66
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3
SELECT DISTINCT col1 + + - col2 / - - col2 col1 FROM tab2
----
50
66
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT DISTINCT + MAX( DISTINCT col1 ) * - 63 AS col0 FROM tab0
----
-5103

skipif mysql # not compatible
query I rowsort label-4
SELECT DISTINCT + MAX ( DISTINCT col1 ) * - 63 AS col0 FROM tab0
----
-5103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5
SELECT + col1 AS col2 FROM tab1 WHERE ( + CAST( NULL AS SIGNED ) * 1 - 72 * col1 + 58 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5
SELECT + col1 AS col2 FROM tab1 WHERE ( + CAST ( NULL AS INTEGER ) * 1 - 72 * col1 + 58 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + - ( + + 40 ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - 13 * - col0 / + 25 AND NULL
----

query I rowsort
SELECT DISTINCT + 53 * col2 * col2 FROM tab1
----
184493
245072
488448

query I rowsort
SELECT col2 - + 74 + - + ( col1 ) AS col2 FROM tab0 AS cor0
----
-108
-85
24

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - 24 < ( - col2 / - + 25 + + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 * - 95 / col1 <= col2
----

query I rowsort
SELECT ALL - col1 * - - col1 AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-17
SELECT ALL SUM( DISTINCT - - ( col1 ) ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-17
SELECT ALL SUM ( DISTINCT - - ( col1 ) ) AS col0 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT - MIN( ALL - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-18
SELECT - MIN ( ALL - col0 ) FROM tab2 AS cor0
----
75

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

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

query I rowsort
SELECT + 98 * 91 FROM tab1 AS cor0
----
8918
8918
8918

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

onlyif mysql # aggregate syntax: 
query I rowsort label-22
SELECT ALL - ( + + MIN( ALL - col0 ) ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-22
SELECT ALL - ( + + MIN ( ALL - col0 ) ) AS col1 FROM tab2 AS cor0
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, col0 * - col2 * + col1 FROM tab0
----
15
-57105
87
-18270
97
-9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-24
SELECT DISTINCT - COUNT( * ) DIV - 35 AS col2 FROM tab1, tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-24
SELECT DISTINCT - COUNT ( * ) / - 35 AS col2 FROM tab1, tab1 cor0
----
0

query I rowsort
SELECT ALL + 90 FROM tab1 WHERE NOT col0 IS NULL
----
90
90
90

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, - 13 + - 41 FROM tab2
----
51
-54
67
-54
77
-54

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 * + 24 + col2 * - 46 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-31
SELECT + 84 AS col1, 98 * 77 - - COUNT( - 37 ) - SUM( DISTINCT - 96 ) - 18 AS col1 FROM tab0
----
84
7627

skipif mysql # not compatible
query II rowsort label-31
SELECT + 84 AS col1, 98 * 77 - - COUNT ( - 37 ) - SUM ( DISTINCT - 96 ) - 18 AS col1 FROM tab0
----
84
7627

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col2 / - col2 ) > + 41 + + col1 + 46
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab1 AS cor0 WHERE - 40 > 92 / + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT - 38 * SUM( - col1 ) * 84 + 2 AS col1 FROM tab1 WHERE col0 * + 18 - - col0 IS NOT NULL
----
210674

skipif mysql # not compatible
query I rowsort label-35
SELECT - 38 * SUM ( - col1 ) * 84 + 2 AS col1 FROM tab1 WHERE col0 * + 18 - - col0 IS NOT NULL
----
210674

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

query I rowsort
SELECT DISTINCT + + col2 FROM tab2 cor0 WHERE NOT ( + col2 / - 95 + + 33 IS NULL )
----
23
40
58

query I rowsort
SELECT ALL - + 80 AS col2 FROM tab0 AS cor0
----
-80
-80
-80

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

query I rowsort
SELECT DISTINCT - + 74 + col2 * + - ( - + 92 ) AS col2 FROM tab1 AS cor0
----
5354
6182
8758

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * + - col2 * col0 + + 30 col0 FROM tab1 cor0
----
25105
290866
68574

query I rowsort
SELECT + 80 + - ( + 14 ) FROM tab0
----
66
66
66

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT - 19 + col1 FROM tab2
----
32
48
58

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT ALL + ( + 67 ) - 53 * COUNT( * ) * + 22 AS col2 FROM tab1
----
-3431

skipif mysql # not compatible
query I rowsort label-45
SELECT ALL + ( + 67 ) - 53 * COUNT ( * ) * + 22 AS col2 FROM tab1
----
-3431

query I rowsort
SELECT ALL 45 + - col1 + 20 * + col2 FROM tab2 WHERE 2 * - + 63 * 80 BETWEEN NULL AND ( - col2 )
----

query I rowsort
SELECT + 78 + + col0 + + - ( 15 ) FROM tab2
----
109
127
138

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

query I rowsort
SELECT - 26 + 18 FROM tab0
----
-8
-8
-8

query I rowsort
SELECT DISTINCT + 93 - - + col1 FROM tab1
----
107
140
98

onlyif mysql # DIV for integer division: 
query I rowsort label-51
SELECT col0 * - col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-51
SELECT col0 * - col0 / - col0 AS col1 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * col1 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-55
SELECT DISTINCT ( - COUNT( * ) ) * - + 33 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-55
SELECT DISTINCT ( - COUNT ( * ) ) * - + 33 FROM tab1
----
99

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

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

query I rowsort
SELECT + ( 65 ) FROM tab1 WHERE NOT NULL = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-58
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( CAST( NULL AS SIGNED ) + 71 * + 34 )
----

skipif mysql # not compatible
query IIIIII rowsort label-58
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( CAST ( NULL AS INTEGER ) + 71 * + 34 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-59
SELECT ALL 76 DIV COUNT( * ) AS col0, - 45 FROM tab1 AS cor0
----
25
-45

skipif mysql # not compatible
query II rowsort label-59
SELECT ALL 76 / COUNT ( * ) AS col0, - 45 FROM tab1 AS cor0
----
25
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-60
SELECT DISTINCT - col0 DIV col1 col0 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-60
SELECT DISTINCT - col0 / col1 col0 FROM tab0 AS cor0
----
-4
-97
0

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-62
SELECT - COUNT ( 47 ) col0 FROM tab1 AS cor0
----
-3

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col1 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-65
SELECT ALL - 86 DIV + SUM( ALL 92 ) AS col2, - CAST( + MIN( - col2 ) AS SIGNED ) FROM tab1
----
0
96

skipif mysql # not compatible
query II rowsort label-65
SELECT ALL - 86 / + SUM ( ALL 92 ) AS col2, - CAST ( + MIN ( - col2 ) AS INTEGER ) FROM tab1
----
0
96

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

skipif mysql # not compatible
query I rowsort label-66
SELECT - 51 / - col1 FROM tab1
----
1
10
3

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT ALL MAX( ALL + col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-70
SELECT ALL MAX ( ALL + col2 ) FROM tab2
----
58

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

query I rowsort
SELECT + + col1 - - - 38 FROM tab2 WHERE NOT + 20 * - col1 + col1 / col1 BETWEEN NULL AND 99 * - col2
----
13
29
39

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

query I rowsort
SELECT 33 FROM tab0 WHERE - ( - - col1 ) = NULL
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE NULL <> ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-77
SELECT ALL + col2 DIV - + 96 - ( 42 ) FROM tab0 AS cor0
----
-42
-42
-43

skipif mysql # not compatible
query I rowsort label-77
SELECT ALL + col2 / - + 96 - ( 42 ) FROM tab0 AS cor0
----
-42
-42
-43

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

onlyif mysql # DIV for integer division: 
query I rowsort label-79
SELECT ALL + 4 + + col1 DIV col2 FROM tab1 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-79
SELECT ALL + 4 + + col1 / col2 FROM tab1 AS cor0
----
4
4
4

query I rowsort
SELECT + - col0 * + - ( + + col2 ) AS col1 FROM tab0 cor0
----
705
870
9603

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

skipif mysql # not compatible
query I rowsort label-81
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE + col2 + - CAST ( NULL AS INTEGER ) = ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab0 cor0 WHERE NOT col2 + 53 <> NULL
----

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

query II rowsort
SELECT DISTINCT - - 48, + col0 AS col2 FROM tab2 AS cor0
----
48
46
48
64
48
75

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

query I rowsort
SELECT ALL + col1 + + ( - - col1 ) AS col0 FROM tab1
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-87
SELECT * FROM tab2 WHERE + 54 + + - col0 NOT BETWEEN - 12 AND ( + 95 / - ( CAST( NULL AS SIGNED ) ) * + col1 * + 52 + 88 + + col2 )
----
75
67
58

skipif mysql # not compatible
query III rowsort label-87
SELECT * FROM tab2 WHERE + 54 + + - col0 NOT BETWEEN - 12 AND ( + 95 / - ( CAST ( NULL AS INTEGER ) ) * + col1 * + 52 + 88 + + col2 )
----
75
67
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN + - 87 * + + col0 + - 88 / 12 AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-89
SELECT COUNT( * ) * - + MIN( + col2 ) - - 39 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-89
SELECT COUNT ( * ) * - + MIN ( + col2 ) - - 39 FROM tab2
----
-30

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

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

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

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

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

query I rowsort
SELECT ALL + 86 * + + 59 FROM tab1
----
5074
5074
5074

onlyif mysql # DIV for integer division: 
query I rowsort label-95
SELECT col0 DIV col0 + - 44 FROM tab1 AS cor0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-95
SELECT col0 / col0 + - 44 FROM tab1 AS cor0
----
-43
-43
-43

onlyif mysql # DIV for integer division: 
query II rowsort label-96
SELECT + col2, - 11 DIV + 81 AS col0 FROM tab1 AS cor0
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-96
SELECT + col2, - 11 / + 81 AS col0 FROM tab1 AS cor0
----
59
0
68
0
96
0

query I rowsort
SELECT - col2 * + + col2 AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

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

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

query I rowsort
SELECT ALL - 81 AS col1 FROM tab0 AS cor0
----
-81
-81
-81

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col1 IN ( + 50, - col1 + + col2 + + col0, - col1, + col0 )
----

query I rowsort
SELECT DISTINCT - + col0 + + - col0 * 81 FROM tab1 AS cor0
----
-4182
-6970
-7462

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

query I rowsort
SELECT DISTINCT + 26 * - 30 AS col1 FROM tab1
----
-780

query I rowsort
SELECT DISTINCT 15 * + col1 AS col0 FROM tab1
----
210
705
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-105
SELECT ALL COUNT( + col2 ) DIV 42 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-105
SELECT ALL COUNT ( + col2 ) / 42 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-106
SELECT ALL + 76 DIV COUNT( * ) AS col1 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL + 76 / COUNT ( * ) AS col1 FROM tab0
----
25

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + 29 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 BETWEEN + 6 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 92 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-110
SELECT col2 * CAST( + + 91 AS SIGNED ) FROM tab1
----
5369
6188
8736

skipif mysql # not compatible
query I rowsort label-110
SELECT col2 * CAST ( + + 91 AS INTEGER ) FROM tab1
----
5369
6188
8736

query I rowsort
SELECT DISTINCT + col1 + + 44 FROM tab2
----
111
121
95

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

query I rowsort
SELECT + col0 * + 19 + + + 59 FROM tab2
----
1275
1484
933

onlyif mysql # DIV for integer division: 
query I rowsort label-114
SELECT 86 DIV - col0 + + + col0 + + col2 - + + 69 DIV col2 AS col0 FROM tab0 AS cor0
----
196
56
91

skipif mysql # not compatible
query I rowsort label-114
SELECT 86 / - col0 + + + col0 + + col2 - + + 69 / col2 AS col0 FROM tab0 AS cor0
----
196
56
91

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

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

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

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

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

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

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

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

query I rowsort
SELECT + ( + - col2 ) - - - 62 - ( - col2 ) * + - 25 FROM tab1 AS cor0
----
-1596
-1830
-2558

query II rowsort
SELECT ALL 39 AS col1, col2 FROM tab0
----
39
10
39
47
39
99

query I rowsort
SELECT + ( - + col2 ) + - 96 FROM tab2
----
-119
-136
-154

query I rowsort
SELECT - - ( col0 ) FROM tab1 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT + 72 + + 62 AS col1 FROM tab2
----
134
134
134

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

skipif mysql # not compatible
query I rowsort label-125
SELECT COUNT ( ( col0 ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT 18 * - col1 * col1 * + 57 * col0 AS col0 FROM tab1
----
-10255896
-206245494
-2180250

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

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

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

query II rowsort
SELECT ALL 7 AS col2, - col1 FROM tab2
----
7
-51
7
-67
7
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-130
SELECT col1 AS col0, col0 DIV - col0 FROM tab2
----
51
-1
67
-1
77
-1

skipif mysql # not compatible
query II rowsort label-130
SELECT col1 AS col0, col0 / - col0 FROM tab2
----
51
-1
67
-1
77
-1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 25, - col0 col2 FROM tab1
----
-25
-51
-25
-85
-25
-91

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

query I rowsort
SELECT DISTINCT + 54 * - col0 AS col1 FROM tab0 cor0
----
-4698
-5238
-810

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-135
SELECT + CAST( - col0 AS SIGNED ), - ( col2 ) AS col2 FROM tab0
----
-15
-47
-87
-10
-97
-99

skipif mysql # not compatible
query II rowsort label-135
SELECT + CAST ( - col0 AS INTEGER ), - ( col2 ) AS col2 FROM tab0
----
-15
-47
-87
-10
-97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT - 37 * + + COUNT( * ) FROM tab1
----
-111

skipif mysql # not compatible
query I rowsort label-136
SELECT - 37 * + + COUNT ( * ) FROM tab1
----
-111

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

query II rowsort
SELECT + col1 + + col1 AS col1, + 9 AS col0 FROM tab0 cor0
----
162
9
2
9
42
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT ALL - + COUNT( * ) * + 12 AS col0 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-140
SELECT ALL - + COUNT ( * ) * + 12 AS col0 FROM tab1 AS cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-141
SELECT CAST( - - 57 AS SIGNED ) + - - 1 col0 FROM tab0 cor0
----
58
58
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-141
SELECT CAST ( - - 57 AS INTEGER ) + - - 1 col0 FROM tab0 cor0
----
58
58
58

query I rowsort
SELECT 90 + - col2 AS col2 FROM tab2
----
32
50
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col2 + - + 17 + - col1 col0 FROM tab2
----
1506
3280
461

query I rowsort
SELECT ALL + ( - 80 ) FROM tab0
----
-80
-80
-80

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 WHERE NOT + - col1 <= - - col1
----

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

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

query I rowsort
SELECT ALL 92 AS col0 FROM tab0
----
92
92
92

query III rowsort
SELECT * FROM tab2 WHERE 2 + - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-149
SELECT - CAST( NULL AS DECIMAL ), MAX( + - col1 ) AS col2 FROM tab1
----
NULL
-5

skipif mysql # not compatible
query II rowsort label-149
SELECT - CAST ( NULL AS REAL ), MAX ( + - col1 ) AS col2 FROM tab1
----
NULL
-5

query I rowsort
SELECT DISTINCT + 87 FROM tab2, tab1 AS cor0
----
87

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

onlyif mysql # aggregate syntax: 
query I rowsort label-152
SELECT DISTINCT - + MIN( - + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-152
SELECT DISTINCT - + MIN ( - + col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-153
SELECT - CAST( - col2 AS SIGNED ) + - - col2 - - col2 + col1 AS col2 FROM tab1 cor0
----
182
251
302

skipif mysql # not compatible
query I rowsort label-153
SELECT - CAST ( - col2 AS INTEGER ) + - - col2 - - col2 + col1 AS col2 FROM tab1 cor0
----
182
251
302

onlyif mysql # DIV for integer division: 
query I rowsort label-154
SELECT ALL col0 DIV + + 76 + + 21 FROM tab1
----
21
22
22

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL col0 / + + 76 + + 21 FROM tab1
----
21
22
22

query III rowsort
SELECT * FROM tab1 WHERE 89 <> - col0 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 88 * + 18 - + col1 FROM tab1 AS cor0
----
1537
1570
1579

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-158
SELECT ALL - 46 * + COUNT( * ) FROM tab0 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL - 46 * + COUNT ( * ) FROM tab0 AS cor0
----
-138

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT - SUM( ALL + col1 ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-309

skipif mysql # not compatible
query I rowsort label-160
SELECT - SUM ( ALL + col1 ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-309

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

query I rowsort
SELECT + col2 * + ( + 9 ) FROM tab0
----
423
891
90

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-164
SELECT DISTINCT + COUNT( ALL - - col0 ) col0 FROM tab1 WHERE 70 / - + CAST( - ( - - col1 ) AS SIGNED ) * + col0 BETWEEN + col0 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-164
SELECT DISTINCT + COUNT ( ALL - - col0 ) col0 FROM tab1 WHERE 70 / - + CAST ( - ( - - col1 ) AS INTEGER ) * + col0 BETWEEN + col0 AND NULL
----
0

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

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

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

query I rowsort
SELECT DISTINCT - - ( 13 ) FROM tab0 AS cor0 WHERE col1 >= + - col1
----
13

query IIIIII rowsort
SELECT ALL * FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( NOT NULL > NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-170
SELECT DISTINCT COUNT( * ) * + + MAX( + 8 ) col2 FROM tab1
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-170
SELECT DISTINCT COUNT ( * ) * + + MAX ( + 8 ) col2 FROM tab1
----
24

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

query II rowsort
SELECT ALL - 36, - col2 AS col2 FROM tab0 AS cor0
----
-36
-10
-36
-47
-36
-99

query II rowsort
SELECT col1 AS col0, 7 FROM tab2 cor0
----
51
7
67
7
77
7

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

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

query I rowsort
SELECT ( - 74 ) AS col1 FROM tab0 AS cor0
----
-74
-74
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-176
SELECT + col0 * col0 DIV col2 FROM tab2 AS cor0
----
102
92
96

skipif mysql # not compatible
query I rowsort label-176
SELECT + col0 * col0 / col2 FROM tab2 AS cor0
----
102
92
96

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

query I rowsort
SELECT ALL + 3 * + + 98 FROM tab1 AS cor0
----
294
294
294

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT DISTINCT MIN( DISTINCT 52 ) * - + 88 + + - SUM( + - col2 ) + - - COUNT( * ) + + 10 FROM tab1 AS cor0
----
-4340

skipif mysql # not compatible
query I rowsort label-179
SELECT DISTINCT MIN ( DISTINCT 52 ) * - + 88 + + - SUM ( + - col2 ) + - - COUNT ( * ) + + 10 FROM tab1 AS cor0
----
-4340

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

skipif mysql # not compatible
query I rowsort label-180
SELECT - CAST ( - MAX ( DISTINCT + col2 ) AS INTEGER ) FROM tab0
----
99

query I rowsort
SELECT ALL 90 * - ( + col0 ) + + col1 FROM tab2
----
-4089
-5683
-6683

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

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

query I rowsort
SELECT + 90 - - col1 - col1 * + col2 FROM tab2 WHERE NULL = NULL
----

query II rowsort
SELECT col2 + + - col0, - col1 AS col2 FROM tab2
----
-17
-67
-23
-51
-24
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-185
SELECT 15 DIV - - col2 + - col0 AS col1 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-185
SELECT 15 / - - col2 + - col0 AS col1 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-186
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col2, + COUNT( * ) AS col2 FROM tab2
----
-9
3

skipif mysql # not compatible
query II rowsort label-186
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col2, + COUNT ( * ) AS col2 FROM tab2
----
-9
3

query I rowsort
SELECT ALL - - 48 * + 17 AS col1 FROM tab2 AS cor0
----
816
816
816

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

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

query I rowsort
SELECT col0 + + 72 FROM tab0 AS cor0
----
159
169
87

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT DISTINCT COUNT( * ) * - 34 FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-190
SELECT DISTINCT COUNT ( * ) * - 34 FROM tab0
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-191
SELECT ALL + 68 DIV - 79 + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-191
SELECT ALL + 68 / - 79 + col2 FROM tab2 AS cor0
----
23
40
58

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

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

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

query I rowsort
SELECT DISTINCT - 34 AS col1 FROM tab0 cor0
----
-34

query I rowsort
SELECT ALL - + 6 * + 15 + - 66 AS col0 FROM tab0 AS cor0 WHERE NOT + col0 <> - col1 * + col0 + + + 21
----

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

query I rowsort
SELECT col0 * - 30 AS col2 FROM tab2
----
-1380
-1920
-2250

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-198
SELECT col2 * - CAST( - 65 AS SIGNED ) FROM tab1
----
3835
4420
6240

skipif mysql # not compatible
query I rowsort label-198
SELECT col2 * - CAST ( - 65 AS INTEGER ) FROM tab1
----
3835
4420
6240

onlyif mysql # DIV for integer division: 
query I rowsort label-199
SELECT + 65 DIV + 7 AS col1 FROM tab0
----
9
9
9

skipif mysql # not compatible
query I rowsort label-199
SELECT + 65 / + 7 AS col1 FROM tab0
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT DISTINCT MIN( ALL + col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-200
SELECT DISTINCT MIN ( ALL + col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - - 6 col2 FROM tab1
----
282
30
84

query I rowsort
SELECT 98 * col2 * col0 AS col0 FROM tab0
----
69090
85260
941094

query I rowsort
SELECT ALL + 21 * col2 * + - col2 AS col2 FROM tab2
----
-11109
-33600
-70644

query I rowsort
SELECT + - col1 / - - col0 + + 64 AS col2 FROM tab0 WHERE NOT NULL <= NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-209
SELECT ALL - 15 + + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-6

skipif mysql # not compatible
query I rowsort label-209
SELECT ALL - 15 + + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT + MAX( ALL - - col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-210
SELECT + MAX ( ALL - - col2 ) FROM tab1
----
96

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-213
SELECT - 88 + - + 39 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-130

skipif mysql # not compatible
query I rowsort label-213
SELECT - 88 + - + 39 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-130

query I rowsort
SELECT DISTINCT - 55 * - - 12 AS col1 FROM tab1 AS cor0
----
-660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 80 + + 23 + + 39 col2 FROM tab2 AS cor0
----
1902
3262
4702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-216
SELECT DISTINCT - CAST( + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-216
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT DISTINCT - MIN( DISTINCT - 61 ) + - 47 FROM tab1 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-217
SELECT DISTINCT - MIN ( DISTINCT - 61 ) + - 47 FROM tab1 AS cor0
----
14

query I rowsort
SELECT ALL 56 * + col1 + + col1 FROM tab1
----
2679
285
798

query I rowsort
SELECT col1 FROM tab2 WHERE + col1 BETWEEN - 98 + + col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - - 70 * - col1 <> + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 + - - col0 + - col1 * col2 + - col2 FROM tab0
----
-3824
-4
-46

query I rowsort
SELECT DISTINCT - col2 * + - col2 + col2 FROM tab2
----
1640
3422
552

query II rowsort
SELECT DISTINCT - 56 AS col2, - 46 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT + + ( + ( 3 ) ) FROM tab2 cor0
----
3
3
3

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

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

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

query I rowsort
SELECT + 59 * - - col1 FROM tab2 AS cor0
----
3009
3953
4543

query I rowsort
SELECT col1 * + col2 + - 15 AS col1 FROM tab0 AS cor0
----
195
3792
84

query I rowsort
SELECT + col0 * - - 28 FROM tab1 cor0
----
1428
2380
2548

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 = - 51
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-234
SELECT ALL col1 DIV + col1 col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-234
SELECT ALL col1 / + col1 col2 FROM tab1
----
1
1
1

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - 33 NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-239
SELECT COUNT( * ) AS col1, + ( - 1 ) AS col0 FROM tab2
----
3
-1

skipif mysql # not compatible
query II rowsort label-239
SELECT COUNT ( * ) AS col1, + ( - 1 ) AS col0 FROM tab2
----
3
-1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-241
SELECT - 3 DIV - COUNT( ALL col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-241
SELECT - 3 / - COUNT ( ALL col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 / + col1 * + 92 + - - col2 + col0 >= - col2 * - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + 11 + - - col1 FROM tab1 AS cor0
----
16
25
58

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

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

query I rowsort
SELECT + col0 * - 62 * + 8 * + + 1 + col2 * col2 AS col1 FROM tab0 AS cor0
----
-38311
-43052
-5231

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-246
SELECT - - col0 * - CAST( + 90 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-4590
-7650
-8190

skipif mysql # not compatible
query I rowsort label-246
SELECT - - col0 * - CAST ( + 90 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-4590
-7650
-8190

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

query I rowsort
SELECT col1 * + + col0 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 4 + + ( - 98 ) col1 FROM tab0 AS cor0
----
-94
-94
-94

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

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

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

query I rowsort
SELECT DISTINCT + 63 * + col1 * - - col2 AS col1 FROM tab1 AS cor0
----
18585
201348
84672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 84 col1 FROM tab0, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT DISTINCT + col2 + col1 + col1 FROM tab2
----
125
192
194

query I rowsort
SELECT 59 + + col2 * - 69 FROM tab1
----
-4012
-4633
-6565

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

query I rowsort
SELECT DISTINCT + col2 + - + 8 + - col2 + + - 41 FROM tab1
----
-49

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 WHERE NULL > 73 / - col2 + + - 23
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-259
SELECT + col1 * + col2 + - - 88 * col0 * + + CAST( col2 AS SIGNED ) FROM tab0
----
65847
76770
845163

skipif mysql # not compatible
query I rowsort label-259
SELECT + col1 * + col2 + - - 88 * col0 * + + CAST ( col2 AS INTEGER ) FROM tab0
----
65847
76770
845163

query II rowsort
SELECT col2 + + - col0 + + - 74 AS col1, + col1 + - 66 AS col1 FROM tab1
----
-100
-61
-29
-52
-97
-19

query I rowsort
SELECT + + 16 * + - col2 * + 94 * col2 + + + ( + 11 ) FROM tab2 cor0
----
-2406389
-5059445
-795605

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

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-266
SELECT DISTINCT MAX ( - CAST ( + col1 AS INTEGER ) ) col1 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + 14 * + 65 AS col0 FROM tab1 AS cor0
----
910

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT ALL + SUM( - - 21 ) * + ( + ( + COUNT( * ) ) ) AS col0 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-268
SELECT ALL + SUM ( - - 21 ) * + ( + ( + COUNT ( * ) ) ) AS col0 FROM tab0 AS cor0
----
189

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + 4 + col1, - 3 * + - 88 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-270
SELECT - 80 DIV + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT 74 DIV 34 > col2
----
0
3
80

skipif mysql # not compatible
query I rowsort label-270
SELECT - 80 / + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT 74 / 34 > col2
----
0
3
80

query I rowsort
SELECT DISTINCT + + col0 * 90 * + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-3251250
-3277260
-35028630

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-274
SELECT col0 DIV - 60 col1 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-274
SELECT col0 / - 60 col1 FROM tab0
----
-1
-1
0

query I rowsort
SELECT ALL ( + - col2 ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ( - - 47 ) * 96 - 93 * + 87 FROM tab1
----
-3579
-3579
-3579

onlyif mysql # DIV for integer division: 
query II rowsort label-277
SELECT DISTINCT col0 DIV - col0 AS col2, col0 FROM tab0
----
-1
15
-1
87
-1
97

skipif mysql # not compatible
query II rowsort label-277
SELECT DISTINCT col0 / - col0 AS col2, col0 FROM tab0
----
-1
15
-1
87
-1
97

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

query I rowsort
SELECT ALL ( - - 92 ) FROM tab1
----
92
92
92

query I rowsort
SELECT ALL + col1 * + 18 FROM tab1
----
252
846
90

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE ( NULL ) < - col1 + + 13 + + col1
----

query I rowsort
SELECT + 85 * - - 94 AS col0 FROM tab2
----
7990
7990
7990

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

query I rowsort
SELECT - ( 25 ) + - 81 AS col1 FROM tab0 cor0
----
-106
-106
-106

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT 52 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-285
SELECT 52 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-286
SELECT - 50 + - 32 AS col0 FROM tab1 AS cor0 WHERE NULL >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-286
SELECT - 50 + - 32 AS col0 FROM tab1 AS cor0 WHERE NULL >= + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-287
SELECT + - 96 DIV - - col2 AS col0 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-287
SELECT + - 96 / - - col2 AS col0 FROM tab2 AS cor0
----
-1
-2
-4

query I rowsort
SELECT ALL - col0 * - + col1 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

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

onlyif mysql # DIV for integer division: 
query II rowsort label-290
SELECT + col2 DIV + + col1 AS col2, 16 col2 FROM tab1
----
1
16
11
16
6
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-290
SELECT + col2 / + + col1 AS col2, 16 col2 FROM tab1
----
1
16
11
16
6
16

query I rowsort
SELECT ALL col0 + 94 FROM tab1
----
145
179
185

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-293
SELECT ALL + 6 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-293
SELECT ALL + 6 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 69 + + 73 FROM tab1 AS cor0
----
4
4
4

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

query I rowsort
SELECT ALL + 67 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # aggregate syntax: 
query I rowsort label-297
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE - 56 >= + col2
----
0

skipif mysql # not compatible
query I rowsort label-297
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE - 56 >= + col2
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-299
SELECT ALL - col2 + - ( + col1 ) + + + col1 DIV col2 AS col1 FROM tab0 AS cor0 WHERE ( - 82 + + col2 ) IS NOT NULL
----
-100
-127
-29

skipif mysql # not compatible
query I rowsort label-299
SELECT ALL - col2 + - ( + col1 ) + + + col1 / col2 AS col1 FROM tab0 AS cor0 WHERE ( - 82 + + col2 ) IS NOT NULL
----
-100
-127
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-300
SELECT + 54 AS col2, - ( + SUM( DISTINCT + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab0 cor0
----
54
NULL

skipif mysql # not compatible
query II rowsort label-300
SELECT + 54 AS col2, - ( + SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0 cor0
----
54
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-301
SELECT + col0, + 16 * + col1 - + 52 DIV col2 * - + col2 * - col1 + + col0 FROM tab1 AS cor0
----
51
275
85
165
91
843

skipif mysql # not compatible
query II rowsort label-301
SELECT + col0, + 16 * + col1 - + 52 / col2 * - + col2 * - col1 + + col0 FROM tab1 AS cor0
----
51
275
85
165
91
843

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

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

query I rowsort
SELECT ALL + col2 * + - col2 AS col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT ALL - 84 - SUM( - 89 ) * + 28 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col1 + + 43
----
NULL

skipif mysql # not compatible
query I rowsort label-304
SELECT ALL - 84 - SUM ( - 89 ) * + 28 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col1 + + 43
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-305
SELECT + ( + 51 ) * CAST( + col1 AS SIGNED ) col2 FROM tab0
----
1071
4131
51

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0, 83 col2 FROM tab1 AS cor0
----
51
83
85
83
91
83

query I rowsort
SELECT + 69 + - - ( + col0 ) AS col1 FROM tab1 AS cor0
----
120
154
160

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

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT + + 23 + COUNT( * ) + + 9 + - + 77 AS col0 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-310
SELECT + + 23 + COUNT ( * ) + + 9 + - + 77 AS col0 FROM tab0 AS cor0
----
-42

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * + - col0 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-317
SELECT + 91 - - col1 DIV col1 AS col1 FROM tab1 AS cor0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-317
SELECT + 91 - - col1 / col1 AS col1 FROM tab1 AS cor0
----
92
92
92

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

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

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

query I rowsort
SELECT DISTINCT + ( + - col1 ) FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT - + col0 + 13 AS col0 FROM tab2 AS cor0
----
-33
-51
-62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-322
SELECT + col1 + - - col1 DIV - col0 - + CAST( + 45 AS SIGNED ) DIV + col1 + + col2 FROM tab2
----
116
125
73

skipif mysql # not compatible
query I rowsort label-322
SELECT + col1 + - - col1 / - col0 - + CAST ( + 45 AS INTEGER ) / + col1 + + col2 FROM tab2
----
116
125
73

query II rowsort
SELECT + col2 * col1 + col1 AS col1, col2 AS col2 FROM tab1
----
1358
96
300
59
3243
68

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-325
SELECT - col1 DIV - 37 + + + col0 AS col2 FROM tab2
----
47
66
76

skipif mysql # not compatible
query I rowsort label-325
SELECT - col1 / - 37 + + + col0 AS col2 FROM tab2
----
47
66
76

query II rowsort
SELECT - - col0, col2 * + + col0 * - col0 AS col1 FROM tab2 WHERE NULL = NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN - ( - col0 ) * 77 + + col1 AND NULL OR 54 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT - SUM( - + 47 ) FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-330
SELECT - SUM ( - + 47 ) FROM tab2
----
141

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 <= + 89 / col1
----

query I rowsort
SELECT ALL ( + 23 ) FROM tab1
----
23
23
23

query II rowsort
SELECT - col2 * - + col0 + - 6, col1 + + ( + col1 ) AS col1 FROM tab1 AS cor0
----
4890
28
5009
10
6182
94

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

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

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

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

query I rowsort
SELECT ALL - 23 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-343
SELECT ALL + CAST( + ( + + 25 ) AS SIGNED ) + - + COUNT( * ) FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL + CAST ( + ( + + 25 ) AS INTEGER ) + - + COUNT ( * ) FROM tab2 AS cor0
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * col1 + - - col0 col1 FROM tab2 AS cor0
----
-1127
-3016
-3811

query I rowsort
SELECT DISTINCT col0 + 87 - + + 56 AS col0 FROM tab1
----
116
122
82

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

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

query II rowsort
SELECT 61 AS col2, - 6 FROM tab0
----
61
-6
61
-6
61
-6

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

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

query I rowsort
SELECT + 59 * + 6 AS col0 FROM tab2
----
354
354
354

query I rowsort
SELECT col2 * 0 FROM tab1 WHERE 8 + col0 > - col1
----
0
0
0

query I rowsort
SELECT ALL - 95 * - 70 FROM tab2 AS cor0
----
6650
6650
6650

query I rowsort
SELECT DISTINCT 19 + + col2 + + col0 + + col0 * + + 65 AS col2 FROM tab0 AS cor0
----
1056
5771
6520

query I rowsort
SELECT - 55 * + + col1 - 60 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 26 + + - col2 FROM tab0
----
-21
-73
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - col0 col1 FROM tab0
----
-77
2
32

query I rowsort
SELECT - + col2 * + 97 + - + col1 FROM tab2 AS cor0
----
-2282
-3957
-5693

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-358
SELECT ALL + - CAST( NULL AS SIGNED ) / - + CAST( NULL AS SIGNED ) * + 41 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + col1 * + 74 FROM tab2 AS cor0
----
3774
4958
5698

onlyif mysql # aggregate syntax: 
query II rowsort label-360
SELECT DISTINCT + 46 AS col2, - COUNT( * ) FROM tab1 AS cor0
----
46
-3

skipif mysql # not compatible
query II rowsort label-360
SELECT DISTINCT + 46 AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
46
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-361
SELECT - + 2 * 45 * - + COUNT( * ) col1 FROM tab2 AS cor0
----
270

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-362
SELECT + 73 / - + col0 / ( + 43 ) / + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + col0 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-362
SELECT + 73 / - + col0 / ( + 43 ) / + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT ALL - 62, 71 + ( ( + 79 ) ) AS col0 FROM tab0 AS cor0
----
-62
150
-62
150
-62
150

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT 94 - - 15 + + - 83 * + MIN( + col0 ) FROM tab2
----
-3709

skipif mysql # not compatible
query I rowsort label-365
SELECT 94 - - 15 + + - 83 * + MIN ( + col0 ) FROM tab2
----
-3709

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-368
SELECT ALL - MIN( DISTINCT - col1 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE - col1 + 82 + - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-368
SELECT ALL - MIN ( DISTINCT - col1 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE - col1 + 82 + - col0 IS NOT NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query III rowsort label-370
SELECT ALL + MAX( ALL + + col1 ) AS col1, - 85 col0, - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
47
-85
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-370
SELECT ALL + MAX ( ALL + + col1 ) AS col1, - 85 col0, - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
47
-85
3

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 90 col0, - 76 + + - 31 FROM tab2 AS cor0
----
90
-107

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

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

query I rowsort
SELECT ALL + 52 * + - col0 * + + 63 * - col0 + + 11 * + + col2 FROM tab0 AS cor0
----
24796154
30824973
737617

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

query I rowsort
SELECT DISTINCT col1 + 4 AS col0 FROM tab0 AS cor0
----
25
5
85

query I rowsort
SELECT ALL + 2 * + - col1 + - 61 AS col2 FROM tab1
----
-155
-71
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT DISTINCT + - MAX( + col1 ) col2 FROM tab1 WHERE NULL NOT BETWEEN col1 * - - 19 / col1 AND + 46 * + col0 * + 37 - - + 5
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-381
SELECT DISTINCT + - MAX ( + col1 ) col2 FROM tab1 WHERE NULL NOT BETWEEN col1 * - - 19 / col1 AND + 46 * + col0 * + 37 - - + 5
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-382
SELECT DISTINCT col1 * - col2 * + col2 + - CAST( - 3 AS SIGNED ) * + - col1 DIV + - col1 + col2 + 22 - - - 54 DIV + col2 AS col2 FROM tab0
----
-178858
-2070
-9677

skipif mysql # not compatible
query I rowsort label-382
SELECT DISTINCT col1 * - col2 * + col2 + - CAST ( - 3 AS INTEGER ) * + - col1 / + - col1 + col2 + 22 - - - 54 / + col2 AS col2 FROM tab0
----
-178858
-2070
-9677

query I rowsort
SELECT DISTINCT - 66 FROM tab0 WHERE + col0 / + col0 > NULL
----

query I rowsort
SELECT - 22 + col2 AS col1 FROM tab2
----
1
18
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-385
SELECT col1 + - col0 + - + CAST( col0 AS SIGNED ) * + col2 * - col0 FROM tab2
----
163853
326242
48673

skipif mysql # not compatible
query I rowsort label-385
SELECT col1 + - col0 + - + CAST ( col0 AS INTEGER ) * + col2 * - col0 FROM tab2
----
163853
326242
48673

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-387
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + CAST( 97 AS SIGNED ) + + col2 + - col0 )
----

skipif mysql # not compatible
query III rowsort label-387
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + CAST ( 97 AS INTEGER ) + + col2 + - col0 )
----

query I rowsort
SELECT 42 + + col0 AS col1 FROM tab0
----
129
139
57

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT ALL + COUNT( - + col0 ) col2 FROM tab2 AS cor0 WHERE col2 <> + col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-389
SELECT ALL + COUNT ( - + col0 ) col2 FROM tab2 AS cor0 WHERE col2 <> + col2
----
0

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

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

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

query I rowsort
SELECT + 1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT - 28 - - 50 AS col2 FROM tab1
----
22
22
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-394
SELECT + COUNT( * ) AS col0, 86 * - - SUM( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-394
SELECT + COUNT ( * ) AS col0, 86 * - - SUM ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9
NULL

query I rowsort
SELECT - + 78 - col1 FROM tab0 AS cor0
----
-159
-79
-99

query I rowsort
SELECT + - col2 - 93 AS col2 FROM tab1 cor0
----
-152
-161
-189

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-399
SELECT ALL + 76 * + col2 + col2 - + - col0 DIV + col1 FROM tab1 AS cor0
----
4560
5237
7395

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL + 76 * + col2 + col2 - + - col0 / + col1 FROM tab1 AS cor0
----
4560
5237
7395

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

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

query I rowsort
SELECT DISTINCT - - 50 + col0 FROM tab2 AS cor0
----
114
125
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT ALL - SUM( - + 71 ) AS col1 FROM tab2 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-403
SELECT ALL - SUM ( - + 71 ) AS col1 FROM tab2 AS cor0
----
213

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = - 82 + - col2 / col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 / ( ( + col0 ) ) + + 64 > col0
----
87
21
10
97
1
99

onlyif mysql # DIV for integer division: 
query II rowsort label-406
SELECT col2 DIV - - col2, + col0 AS col1 FROM tab1
----
1
51
1
85
1
91

skipif mysql # not compatible
query II rowsort label-406
SELECT col2 / - - col2, + col0 AS col1 FROM tab1
----
1
51
1
85
1
91

onlyif mysql # DIV for integer division: 
query I rowsort label-407
SELECT ALL ( + col2 ) DIV - col1 + col0 * + + col1 AS col2 FROM tab1
----
414
4276
708

skipif mysql # not compatible
query I rowsort label-407
SELECT ALL ( + col2 ) / - col1 + col0 * + + col1 AS col2 FROM tab1
----
414
4276
708

onlyif mysql # DIV for integer division: 
query I rowsort label-408
SELECT DISTINCT - col1 DIV - + 25 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-408
SELECT DISTINCT - col1 / - + 25 FROM tab1
----
0
1

query II rowsort
SELECT ALL + - 96 AS col1, col0 * - - col1 FROM tab2 AS cor0
----
-96
2346
-96
4928
-96
5025

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-410
SELECT - MIN( + col2 ) * SUM( DISTINCT - + 51 ) DIV + SUM( DISTINCT - + 83 ) FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-410
SELECT - MIN ( + col2 ) * SUM ( DISTINCT - + 51 ) / + SUM ( DISTINCT - + 83 ) FROM tab2 AS cor0
----
-14

query I rowsort
SELECT + col0 * - - 37 AS col1 FROM tab0 AS cor0
----
3219
3589
555

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-413
SELECT DISTINCT - COUNT( * ) + 66 + + CAST( NULL AS SIGNED ) / 94 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-413
SELECT DISTINCT - COUNT ( * ) + 66 + + CAST ( NULL AS INTEGER ) / 94 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-415
SELECT ALL 1 / CAST( NULL AS DECIMAL ) * - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-415
SELECT ALL 1 / CAST ( NULL AS REAL ) * - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-417
SELECT DISTINCT - - 64 + + + CAST( NULL AS SIGNED ) AS col2, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-417
SELECT DISTINCT - - 64 + + + CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL
-3

query I rowsort
SELECT DISTINCT - col1 + + - 50 AS col2 FROM tab0 AS cor0
----
-131
-51
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-419
SELECT - col2 DIV + col2 + - col1 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-419
SELECT - col2 / + col2 + - col1 / - col0 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT ALL + - COUNT( * ) FROM tab0 WHERE + 39 NOT BETWEEN ( - col1 ) AND - - col1 * + - col1 / - col0
----
-2

skipif mysql # not compatible
query I rowsort label-420
SELECT ALL + - COUNT ( * ) FROM tab0 WHERE + 39 NOT BETWEEN ( - col1 ) AND - - col1 * + - col1 / - col0
----
-2

onlyif mysql # aggregate syntax: 
query II rowsort label-421
SELECT COUNT( * ) AS col1, - 93 + MAX( DISTINCT - 32 ) FROM tab1
----
3
-125

skipif mysql # not compatible
query II rowsort label-421
SELECT COUNT ( * ) AS col1, - 93 + MAX ( DISTINCT - 32 ) FROM tab1
----
3
-125

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-422
SELECT col2 * - 58 FROM tab2 WHERE col0 BETWEEN 64 AND col2 + + CAST( 12 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-422
SELECT col2 * - 58 FROM tab2 WHERE col0 BETWEEN 64 AND col2 + + CAST ( 12 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT DISTINCT + 95 + MAX( DISTINCT - - 21 ) FROM tab2
----
116

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT + 95 + MAX ( DISTINCT - - 21 ) FROM tab2
----
116

query II rowsort
SELECT ALL col2 AS col1, 44 * + 60 AS col1 FROM tab0
----
10
2640
47
2640
99
2640

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT ALL + MAX( + ( col2 ) ) / - MAX( - col1 ) AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL + MAX ( + ( col2 ) ) / - MAX ( - col1 ) AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 80 * + 72 ) <= NULL
----

query I rowsort
SELECT + ( col2 ) * 0 FROM tab0
----
0
0
0

query I rowsort
SELECT 55 + col1 FROM tab1
----
102
60
69

query I rowsort
SELECT col1 * - 34 AS col0 FROM tab0
----
-2754
-34
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT ALL - COUNT( * ) * 87 FROM tab1
----
-261

skipif mysql # not compatible
query I rowsort label-432
SELECT ALL - COUNT ( * ) * 87 FROM tab1
----
-261

onlyif mysql # DIV for integer division: 
query I rowsort label-433
SELECT ALL + 23 DIV + col2 AS col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL + 23 / + col2 AS col0 FROM tab0
----
0
0
2

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 / + col1 BETWEEN NULL AND - 50
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 WHERE - 30 NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 * 6 + - col2 col2 FROM tab1 WHERE NULL IS NULL
----
54
82
91

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

query I rowsort
SELECT ( - 39 ) + + col2 AS col2 FROM tab1
----
20
29
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-442
SELECT ALL - col1 col1 FROM tab1 WHERE ( CAST( NULL AS SIGNED ) ) = col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-442
SELECT ALL - col1 col1 FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) ) = col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-444
SELECT DISTINCT SUM( ALL col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-444
SELECT DISTINCT SUM ( ALL col1 ) AS col1 FROM tab0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-445
SELECT ALL - col0 + col0 DIV + col2 FROM tab2
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-445
SELECT ALL - col0 + col0 / + col2 FROM tab2
----
-44
-63
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-446
SELECT - SUM( - col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-446
SELECT - SUM ( - col0 ) AS col2 FROM tab0
----
199

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT 86 * + COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
258

skipif mysql # not compatible
query I rowsort label-449
SELECT 86 * + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
258

query I rowsort
SELECT ALL 15 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT DISTINCT ( - ( + 98 ) ) AS col1 FROM tab1 WHERE NOT NULL <> + 39 / - 57
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-452
SELECT COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-452
SELECT COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab2
----
1

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE ( col2 ) >= ( col2 )
----
51
67
77

query I rowsort
SELECT DISTINCT 50 * col0 FROM tab1 cor0
----
2550
4250
4550

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 16 * 63 )
----

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

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

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

query I rowsort
SELECT ALL - + ( - col2 ) * col0 + + 67 AS col2 FROM tab0 AS cor0
----
772
937
9670

query I rowsort
SELECT - col1 * + 5 AS col2 FROM tab1 AS cor0
----
-235
-25
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-460
SELECT + ( 57 ) DIV col1 FROM tab1 AS cor0
----
1
11
4

skipif mysql # not compatible
query I rowsort label-460
SELECT + ( 57 ) / col1 FROM tab1 AS cor0
----
1
11
4

query I rowsort
SELECT DISTINCT + + 92 * 53 FROM tab0 AS cor0
----
4876

query I rowsort
SELECT ALL col2 * + col2 + + 44 FROM tab2 AS cor0
----
1644
3408
573

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

onlyif mysql # aggregate syntax: 
query I rowsort label-464
SELECT ALL + - 96 * COUNT( * ) FROM tab2 cor0
----
-288

skipif mysql # not compatible
query I rowsort label-464
SELECT ALL + - 96 * COUNT ( * ) FROM tab2 cor0
----
-288

query I rowsort
SELECT DISTINCT - col2 + 68 * 95 AS col0 FROM tab1 AS cor0
----
6364
6392
6401

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 NOT IN ( - 59 + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-467
SELECT * FROM tab1 cor0 WHERE + CAST( NULL AS SIGNED ) * + col0 IN ( 27 )
----

skipif mysql # not compatible
query III rowsort label-467
SELECT * FROM tab1 cor0 WHERE + CAST ( NULL AS INTEGER ) * + col0 IN ( 27 )
----

query I rowsort
SELECT col1 / - 27 + + col1 * + 1 AS col0 FROM tab0 WHERE + 37 + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 92 col2 FROM tab0 WHERE NULL <> - 83
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-470
SELECT DISTINCT SUM( ALL CAST( NULL AS SIGNED ) ) FROM tab0 WHERE ( col0 * - 63 + 74 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-470
SELECT DISTINCT SUM ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE ( col0 * - 63 + 74 ) IS NULL
----
NULL

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

query I rowsort
SELECT - 16 + - 65 * 66 AS col1 FROM tab1
----
-4306
-4306
-4306

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

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

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

query I rowsort
SELECT + 96 + - 42 FROM tab1
----
54
54
54

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

skipif mysql # not compatible
query I rowsort label-476
SELECT AVG ( + col2 ) * 82 + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-478
SELECT DISTINCT + 77 * + SUM( ALL 33 ) FROM tab0
----
7623

skipif mysql # not compatible
query I rowsort label-478
SELECT DISTINCT + 77 * + SUM ( ALL 33 ) FROM tab0
----
7623

query I rowsort
SELECT ALL - col1 + col2 + 23 AS col0 FROM tab1
----
105
44
77

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 * col1 BETWEEN + 16 - + 8 * - col2 AND ( 41 + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-484
SELECT ALL 2 + + 67 + - COUNT( * ) * - 22 AS col2 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-484
SELECT ALL 2 + + 67 + - COUNT ( * ) * - 22 AS col2 FROM tab0
----
135

query I rowsort
SELECT - + 60 - 58 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f1c3709f55402cce8c76ca8e8ed2d726

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT DISTINCT + MIN( ALL 26 ) + - 77 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-51

skipif mysql # not compatible
query I rowsort label-486
SELECT DISTINCT + MIN ( ALL 26 ) + - 77 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-51

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0 WHERE NOT - ( 34 ) = 73
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 43 col0 FROM tab0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-489
SELECT + 48 DIV - SUM( ALL 10 ) AS col0 FROM tab0 cor0 WHERE NOT ( + col0 * + col2 ) <= + 86
----
-1

skipif mysql # not compatible
query I rowsort label-489
SELECT + 48 / - SUM ( ALL 10 ) AS col0 FROM tab0 cor0 WHERE NOT ( + col0 * + col2 ) <= + 86
----
-1

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

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

query I rowsort
SELECT - 20 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + - ( + ( 91 ) ) <= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT SUM( col0 ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-493
SELECT SUM ( col0 ) AS col2 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT + MIN( 66 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-494
SELECT + MIN ( 66 ) FROM tab1
----
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT 56 * + + COUNT( * ) AS col1 FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-496
SELECT 56 * + + COUNT ( * ) AS col1 FROM tab2
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-497
SELECT - ( COUNT( * ) ), + 70 AS col2 FROM tab0
----
-3
70

skipif mysql # not compatible
query II rowsort label-497
SELECT - ( COUNT ( * ) ), + 70 AS col2 FROM tab0
----
-3
70

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

onlyif mysql # DIV for integer division: 
query I rowsort label-499
SELECT + 1 DIV 20 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-499
SELECT + 1 / 20 FROM tab1
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-500
SELECT - COUNT ( * ) / - + 43 FROM tab1
----
0

query I rowsort
SELECT ALL col1 + col1 AS col2 FROM tab1 AS cor0 WHERE ( + 95 - + + 72 ) BETWEEN NULL AND NULL
----

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-506
SELECT ALL 77 * 49 DIV + CAST( + col0 AS SIGNED ) + col0 col0 FROM tab1 AS cor0
----
124
129
132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-506
SELECT ALL 77 * 49 / + CAST ( + col0 AS INTEGER ) + col0 col0 FROM tab1 AS cor0
----
124
129
132

query I rowsort
SELECT ALL 48 + + 92 FROM tab2 AS cor0
----
140
140
140

query I rowsort
SELECT - col0 * + col1 + ( + col0 ) * col1 AS col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + + + col0 IN ( - col1 + - 40 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 17 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 61 AS col1 FROM tab1 AS cor0 WHERE col0 BETWEEN + col1 + - 93 + - + ( + col0 ) AND col1 + + 78
----
61

query I rowsort
SELECT ALL + col2 * - col1 + 57 * - - 45 AS col0 FROM tab1 cor0
----
-631
1221
2270

query I rowsort
SELECT + + 52 + col2 AS col2 FROM tab1 AS cor0
----
111
120
148

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-520
SELECT - + col2 DIV - 67 AS col0 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-520
SELECT - + col2 / - 67 AS col0 FROM tab1 cor0
----
0
1
1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-522
SELECT col1 DIV 79 * 95 * 21 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-522
SELECT col1 / 79 * 95 * 21 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + 68 FROM tab2 AS cor0
----
114
132
143

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

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

skipif mysql # not compatible
query I rowsort label-525
SELECT + COUNT ( - + col0 ) FROM tab0
----
3

query II rowsort
SELECT + col1, 69 * + 56 + + col2 - + - col2 + - 86 + 18 FROM tab1
----
14
3988
47
3932
5
3914

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

query I rowsort
SELECT + 5 * + 13 FROM tab2
----
65
65
65

query I rowsort
SELECT ALL - 17 + - col2 AS col0 FROM tab0
----
-116
-27
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-530
SELECT DISTINCT - CAST( - col1 AS SIGNED ) - + - 32 AS col2 FROM tab2
----
109
83
99

skipif mysql # not compatible
query I rowsort label-530
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) - + - 32 AS col2 FROM tab2
----
109
83
99

query I rowsort
SELECT col1 + col0 AS col1 FROM tab1 WHERE ( col1 IS NULL )
----

query I rowsort
SELECT col1 + - 15 AS col2 FROM tab0 AS cor0
----
-14
6
66

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

query I rowsort
SELECT ALL 44 * + - 64 * + 23 + - col0 FROM tab2 AS cor0
----
-64814
-64832
-64843

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 * 91 * col1 ) IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 66 * - - col1 / - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 94 * - col0 FROM tab0
----
1410
8178
9118

onlyif mysql # DIV for integer division: 
query II rowsort label-539
SELECT DISTINCT col0 DIV - + col0 AS col2, + col1 FROM tab2
----
-1
51
-1
67
-1
77

skipif mysql # not compatible
query II rowsort label-539
SELECT DISTINCT col0 / - + col0 AS col2, + col1 FROM tab2
----
-1
51
-1
67
-1
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-540
SELECT ALL - CAST( + col2 AS SIGNED ) col0, + col2 + + col1 FROM tab2 cor0
----
-23
74
-40
117
-58
125

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-540
SELECT ALL - CAST ( + col2 AS INTEGER ) col0, + col2 + + col1 FROM tab2 cor0
----
-23
74
-40
117
-58
125

onlyif mysql # aggregate syntax: 
query I rowsort label-541
SELECT - SUM( ALL 14 ) FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-541
SELECT - SUM ( ALL 14 ) FROM tab0 AS cor0
----
-42

query I rowsort
SELECT ALL ( 69 ) FROM tab1 AS cor0
----
69
69
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-544
SELECT + + 93 * - MIN( DISTINCT + col1 ) col1 FROM tab1 AS cor0
----
-465

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-544
SELECT + + 93 * - MIN ( DISTINCT + col1 ) col1 FROM tab1 AS cor0
----
-465

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-545
SELECT DISTINCT * FROM tab1 WHERE 9 - + CAST( NULL AS SIGNED ) + - - 77 / col2 / + - ( col0 ) BETWEEN - 68 * - ( - col2 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-545
SELECT DISTINCT * FROM tab1 WHERE 9 - + CAST ( NULL AS INTEGER ) + - - 77 / col2 / + - ( col0 ) BETWEEN - 68 * - ( - col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-546
SELECT DISTINCT - col0 FROM tab0 WHERE NOT - col2 / + col1 - + col1 - + + col0 BETWEEN NULL AND + 52 / + - CAST( NULL AS SIGNED ) + - 80
----

skipif mysql # not compatible
query I rowsort label-546
SELECT DISTINCT - col0 FROM tab0 WHERE NOT - col2 / + col1 - + col1 - + + col0 BETWEEN NULL AND + 52 / + - CAST ( NULL AS INTEGER ) + - 80
----

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

query I rowsort
SELECT ALL - 48 * - + col1 AS col1 FROM tab0 AS cor0
----
1008
3888
48

query I rowsort
SELECT DISTINCT + - 50 FROM tab1 cor0
----
-50

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

query I rowsort
SELECT DISTINCT ( + 47 ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-552
SELECT 29 * - COUNT( ALL + col0 ) AS col0 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-552
SELECT 29 * - COUNT ( ALL + col0 ) AS col0 FROM tab2
----
-87

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-554
SELECT + 9 DIV - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3

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

query I rowsort
SELECT + col0 - - ( + + col2 ) AS col0 FROM tab2 AS cor0 WHERE - col1 + - 76 = col0
----

query I rowsort
SELECT + col0 * - - 4 * - ( col2 ) * - 73 + - 98 AS col0 FROM tab1 AS cor0
----
1429534
1464282
1806798

query I rowsort
SELECT ALL + - 27 * col1 FROM tab1 AS cor0
----
-1269
-135
-378

query I rowsort
SELECT ( + + 75 ) AS col1 FROM tab2 cor0
----
75
75
75

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

query I rowsort
SELECT DISTINCT + + col1 * - - col1 - - col0 + - ( - 54 ) + - col0 * - col0 AS col2 FROM tab0 AS cor0
----
6855
8151
9561

onlyif mysql # aggregate syntax: 
query I rowsort label-561
SELECT DISTINCT + MAX( 54 ) + + COUNT( * ) AS col0 FROM tab2 cor0
----
57

skipif mysql # not compatible
query I rowsort label-561
SELECT DISTINCT + MAX ( 54 ) + + COUNT ( * ) AS col0 FROM tab2 cor0
----
57

query I rowsort
SELECT - - col2 - + 46 FROM tab0 AS cor0
----
-36
1
53

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

query I rowsort
SELECT - col0 + + + 85 + col0 AS col1 FROM tab1 AS cor0
----
85
85
85

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

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

query III rowsort
SELECT * FROM tab0 WHERE + + 53 <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 23 + + - col1 FROM tab1
----
-24
18
9

query I rowsort
SELECT ALL col2 * + - col0 - - col2 FROM tab0
----
-658
-860
-9504

query I rowsort
SELECT DISTINCT 24 + - 60 FROM tab1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT ALL - SUM( - 21 ) - + - COUNT( * ) * COUNT( * ) AS col2 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL - SUM ( - 21 ) - + - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0
----
72

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-573
SELECT ALL + COUNT( DISTINCT - col2 ) - + CAST( + + 14 AS SIGNED ) FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL + COUNT ( DISTINCT - col2 ) - + CAST ( + + 14 AS INTEGER ) FROM tab2 AS cor0
----
-11

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE 43 * + - col0 IN ( - col2, 52 )
----

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

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

skipif mysql # not compatible
query I rowsort label-576
SELECT ALL - SUM ( - + col2 ) FROM tab0
----
156

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < col2 / - 22 * col0 + + 29
----

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

query I rowsort
SELECT DISTINCT 21 * 36 FROM tab2
----
756

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

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

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

query I rowsort
SELECT ALL - + 42 AS col1 FROM tab0 cor0
----
-42
-42
-42

query I rowsort
SELECT ALL 94 * col1 AS col0 FROM tab2
----
4794
6298
7238

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

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

query I rowsort
SELECT + col1 * col2 * - col0 * 37 AS col1 FROM tab0
----
-2112885
-355311
-675990

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 NOT BETWEEN + col2 AND - - 12
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 11 col0, col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-591
SELECT col0 DIV - 71 AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-591
SELECT col0 / - 71 AS col0 FROM tab1
----
-1
-1
0

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

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

query I rowsort
SELECT DISTINCT + + 59 + col2 + - col1 - - ( - - 10 ) + - col2 + col0 FROM tab1 AS cor0
----
106
113
149

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

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

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

query I rowsort
SELECT - col0 + + - 2 + - - col1 AS col0 FROM tab2 AS cor0
----
-10
11
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-598
SELECT - - MAX( + 34 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
34

skipif mysql # not compatible
query I rowsort label-598
SELECT - - MAX ( + 34 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
34

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT DISTINCT SUM( + 68 ) col2 FROM tab0 AS cor0
----
204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-601
SELECT DISTINCT SUM ( + 68 ) col2 FROM tab0 AS cor0
----
204

onlyif mysql # DIV for integer division: 
query I rowsort label-602
SELECT + 39 DIV col2 + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-602
SELECT + 39 / col2 + col2 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 48 = - - 57
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT ( + + col0 ) - - - col1 FROM tab1
----
37
44
80

query I rowsort
SELECT ALL - 90 + col0 * - - col2 FROM tab0
----
615
780
9513

query I rowsort
SELECT DISTINCT - 40 + - 9 * - - col2 FROM tab2
----
-247
-400
-562

query I rowsort
SELECT DISTINCT + 16 - + - col0 + col2 AS col0 FROM tab1
----
160
163
175

query III rowsort
SELECT * FROM tab0 WHERE NOT 9 IS NOT NULL
----

query II rowsort
SELECT ALL - ( + + 12 ), col0 FROM tab0
----
-12
15
-12
87
-12
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT DISTINCT COUNT( * ) * - ( 95 ) AS col0 FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-613
SELECT DISTINCT COUNT ( * ) * - ( 95 ) AS col0 FROM tab1
----
-285

query II rowsort
SELECT + ( col2 ) * - col1 + + - col2, - col1 AS col1 FROM tab2 AS cor0
----
-1196
-51
-3120
-77
-3944
-67

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-616
SELECT DISTINCT - col1 + + col1 - - - col0 + CAST( + 31 AS SIGNED ) * - 86 FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( + + 9, col1 )
----
-2712
-2730
-2741

skipif mysql # not compatible
query I rowsort label-616
SELECT DISTINCT - col1 + + col1 - - - col0 + CAST ( + 31 AS INTEGER ) * - 86 FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( + + 9, col1 )
----
-2712
-2730
-2741

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-617
SELECT ALL COUNT( * ) DIV - + 21 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL COUNT ( * ) / - + 21 AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL + 37 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # DIV for integer division: 
query I rowsort label-619
SELECT DISTINCT - col2 DIV + 14 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-619
SELECT DISTINCT - col2 / + 14 FROM tab2
----
-1
-2
-4

query I rowsort
SELECT + 55 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 97 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col0 * + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + + 59 FROM tab0 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-627
SELECT DISTINCT + - ( - - SUM( ALL - - col1 ) ) * 85 FROM tab2 AS cor0
----
-16575

skipif mysql # not compatible
query I rowsort label-627
SELECT DISTINCT + - ( - - SUM ( ALL - - col1 ) ) * 85 FROM tab2 AS cor0
----
-16575

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 * + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-629
SELECT + ( + + CAST( - col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-629
SELECT + ( + + CAST ( - col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ALL + ( + - col0 ) * - col2 + + ( - ( - col0 ) ) FROM tab1 AS cor0
----
4947
5100
6279

query I rowsort
SELECT DISTINCT 11 * col0 FROM tab1 AS cor0
----
1001
561
935

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col2 * + col2 + + 86 + + col0 * - + ( - 71 ) + - ( + - 70 ) <> NULL
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE NOT ( + 84 + col2 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT MAX( DISTINCT - 13 ) FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-634
SELECT MAX ( DISTINCT - 13 ) FROM tab1
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-635
SELECT DISTINCT COUNT( * ) + - + SUM( - col2 ) + - 74 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-635
SELECT DISTINCT COUNT ( * ) + - + SUM ( - col2 ) + - 74 FROM tab2
----
50

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + + col2 col2 FROM tab0
----
-11
-34
98

query I rowsort
SELECT - col2 + + 55 * ( + col2 ) FROM tab2 cor0
----
1242
2160
3132

query I rowsort
SELECT DISTINCT + 90 + + col0 FROM tab0 AS cor0
----
105
177
187

query I rowsort
SELECT + ( col1 ) FROM tab2 WHERE - 81 <= + + 75
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-642
SELECT DISTINCT + 78 - + col1 DIV 96 AS col2 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT + 78 - + col1 / 96 AS col2 FROM tab0
----
78

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-645
SELECT + 50 - - ( + + COUNT( * ) ), - 62 AS col1 FROM tab2 AS cor0
----
53
-62

skipif mysql # not compatible
query II rowsort label-645
SELECT + 50 - - ( + + COUNT ( * ) ), - 62 AS col1 FROM tab2 AS cor0
----
53
-62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT 75 + - + COUNT( * ) AS col1 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-647
SELECT 75 + - + COUNT ( * ) AS col1 FROM tab1
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-648
SELECT col1 * - 17 * CAST( 6 AS SIGNED ) AS col2, + col2 * + + 66 FROM tab0
----
-102
6534
-2142
660
-8262
3102

skipif mysql # not compatible
query II rowsort label-648
SELECT col1 * - 17 * CAST ( 6 AS INTEGER ) AS col2, + col2 * + + 66 FROM tab0
----
-102
6534
-2142
660
-8262
3102

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

query I rowsort
SELECT 66 FROM tab1 WHERE NOT + ( - 20 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT - MIN( DISTINCT col2 ) col1 FROM tab2
----
-23

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

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

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

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

query II rowsort
SELECT col0 AS col1, col2 * - 13 AS col2 FROM tab2
----
46
-299
64
-520
75
-754

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT - COUNT( + 50 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-657
SELECT - COUNT ( + 50 ) AS col2 FROM tab2
----
-3

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

query I rowsort
SELECT 64 AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 61 IS NOT NULL
----

query I rowsort
SELECT + col1 * + col0 - - - col1 AS col2 FROM tab0 AS cor0
----
1134
1806
96

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

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

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

query I rowsort
SELECT + 8 + + 25 AS col1 FROM tab1 AS cor0
----
33
33
33

query I rowsort
SELECT ALL col1 + 21 FROM tab2 AS cor0
----
72
88
98

query I rowsort
SELECT 15 + 26 - - col1 AS col0 FROM tab0 AS cor0
----
122
42
62

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

query I rowsort
SELECT DISTINCT - col2 + 42 FROM tab0
----
-5
-57
32

onlyif mysql # aggregate syntax: 
query II rowsort label-669
SELECT - COUNT( * ), 2 AS col1 FROM tab2
----
-3
2

skipif mysql # not compatible
query II rowsort label-669
SELECT - COUNT ( * ), 2 AS col1 FROM tab2
----
-3
2

query I rowsort
SELECT DISTINCT - 40 * - col1 AS col0 FROM tab1
----
1880
200
560

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

query II rowsort
SELECT DISTINCT + 31 AS col0, - col1 FROM tab2 AS cor0
----
31
-51
31
-67
31
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-673
SELECT ALL - 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-673
SELECT ALL - COUNT ( * ) + + COUNT ( * ) col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 3 - + + col0 - + col0 AS col2, - col0 col2 FROM tab2 AS cor0
----
-131
-64
-153
-75
-95
-46

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-680
SELECT col0 * col1 DIV - col0 AS col2, 49 FROM tab2
----
-51
49
-67
49
-77
49

skipif mysql # not compatible
query II rowsort label-680
SELECT col0 * col1 / - col0 AS col2, 49 FROM tab2
----
-51
49
-67
49
-77
49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-682
SELECT DISTINCT ( - COUNT( * ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-682
SELECT DISTINCT ( - COUNT ( * ) ) AS col2 FROM tab0
----
-3

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

query II rowsort
SELECT DISTINCT ( + 26 ) AS col2, - col0 * - + col1 FROM tab2
----
26
2346
26
4928
26
5025

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

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

query II rowsort
SELECT - + col1 * + - col0 AS col0, - col2 FROM tab1 AS cor0
----
425
-59
4277
-68
714
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-687
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL >= NULL
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-688
SELECT - MAX ( DISTINCT + col1 ) col1 FROM tab2 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 60 col0, col0 FROM tab2 AS cor0
----
-60
46
-60
64
-60
75

onlyif mysql # aggregate syntax: 
query II rowsort label-690
SELECT COUNT( * ) col2, MIN( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
3
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-690
SELECT COUNT ( * ) col2, MIN ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
3
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT DISTINCT 99 * - SUM( ALL + + 83 ) AS col0 FROM tab2 AS cor0
----
-24651

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT 99 * - SUM ( ALL + + 83 ) AS col0 FROM tab2 AS cor0
----
-24651

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

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

query III rowsort
SELECT * FROM tab2 WHERE - col1 + + + col0 + col2 + col1 * - + 92 + - col2 * - + col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN 44 - + + 30 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-695
SELECT ALL 44 + + CAST( NULL AS DECIMAL ) / + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-695
SELECT ALL 44 + + CAST ( NULL AS REAL ) / + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 23 * 43 + + - 23 * - 38 IS NULL
----

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-698
SELECT ALL - COUNT( * ) + + 44 AS col2 FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL - COUNT ( * ) + + 44 AS col2 FROM tab0
----
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-699
SELECT ALL COUNT( * ) DIV - 90 * + 71 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-699
SELECT ALL COUNT ( * ) / - 90 * + 71 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT DISTINCT + COUNT( ALL - 31 ) * - 23 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-700
SELECT DISTINCT + COUNT ( ALL - 31 ) * - 23 FROM tab2
----
-69

query II rowsort
SELECT col1 + + ( - col2 ) * - col0 AS col0, - 60 AS col1 FROM tab1 AS cor0
----
4910
-60
5020
-60
6235
-60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-702
SELECT DISTINCT + - CAST( NULL AS SIGNED ) / - 3 * + + 32 * + col2 - col0 - - 56 - - col0 AS col0, 90 FROM tab1 AS cor0
----
NULL
90

skipif mysql # not compatible
query II rowsort label-702
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) / - 3 * + + 32 * + col2 - col0 - - 56 - - col0 AS col0, 90 FROM tab1 AS cor0
----
NULL
90

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE col2 BETWEEN - + col1 AND - 5
----
0

skipif mysql # not compatible
query I rowsort label-703
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE col2 BETWEEN - + col1 AND - 5
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT SUM( ALL - 73 ) * - 99 AS col2 FROM tab0 AS cor0
----
21681

skipif mysql # not compatible
query I rowsort label-704
SELECT SUM ( ALL - 73 ) * - 99 AS col2 FROM tab0 AS cor0
----
21681

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

skipif mysql # not compatible
query I rowsort label-705
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) * - COUNT ( * ) * + - 53 FROM tab2
----
-474

query I rowsort
SELECT 69 * - ( - - col0 ) - - - 40 FROM tab0
----
-1075
-6043
-6733

query I rowsort
SELECT col1 - - 32 FROM tab0
----
113
33
53

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

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

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

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

query II rowsort
SELECT 22, - col0 + + 2 + 53 AS col1 FROM tab1 AS cor0
----
22
-30
22
-36
22
4

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 50 * + ( + ( - 90 ) ) * col2
----

query I rowsort
SELECT + + 28 * 46 + + col2 - + - col2 * - 23 FROM tab2 AS cor0
----
12
408
782

query II rowsort
SELECT + col2 * - - col0 * - ( - + col1 ) AS col1, + col2 FROM tab0
----
18270
10
57105
47
9603
99

query II rowsort
SELECT col2, col0 * - col1 FROM tab2
----
23
-2346
40
-4928
58
-5025

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 49 + - + 56 BETWEEN NULL AND - col1
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) col0 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-719
SELECT CAST( SUM( + - col0 ) AS SIGNED ) FROM tab1
----
-227

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

query I rowsort
SELECT ALL - 8 + + col0 AS col0 FROM tab0 AS cor0
----
7
79
89

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 / + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * ( - 98 ) AS col0 FROM tab1 AS cor0
----
1372
4606
490

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

query II rowsort
SELECT - + col0 + + 19, col1 AS col1 FROM tab2 AS cor0
----
-27
51
-45
77
-56
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-727
SELECT ALL CAST( NULL AS DECIMAL ) + col2 - - ( + + col2 ) * col0 FROM tab0 AS cor0 WHERE NOT + col0 < NULL
----

skipif mysql # not compatible
query I rowsort label-727
SELECT ALL CAST ( NULL AS REAL ) + col2 - - ( + + col2 ) * col0 FROM tab0 AS cor0 WHERE NOT + col0 < NULL
----

query I rowsort
SELECT ALL - 39 AS col2 FROM tab2 AS cor0
----
-39
-39
-39

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

skipif mysql # not compatible
query II rowsort label-729
SELECT + + MIN ( ALL + col2 ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
23
3

onlyif mysql # aggregate syntax: 
query I rowsort label-730
SELECT + SUM( DISTINCT + 10 ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-730
SELECT + SUM ( DISTINCT + 10 ) FROM tab1
----
10

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

skipif mysql # not compatible
query I rowsort label-731
SELECT + COUNT ( - + col1 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-732
SELECT ALL - CAST( NULL AS SIGNED ) * - - AVG ( - - 59 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL - CAST ( NULL AS INTEGER ) * - - AVG ( - - 59 ) FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT 56 * col1 * - 53 AS col0, 39 + - 19 AS col1 FROM tab1
----
-139496
20
-14840
20
-41552
20

query II rowsort
SELECT DISTINCT col2 AS col2, + col1 * 46 + col0 AS col2 FROM tab2
----
23
2392
40
3606
58
3157

query II rowsort
SELECT col1 - col1 * - + col2 AS col1, 79 AS col1 FROM tab1 AS cor0
----
1358
79
300
79
3243
79

query I rowsort
SELECT DISTINCT - 63 - + 20 AS col1 FROM tab2 AS cor0
----
-83

query I rowsort
SELECT ALL - + 6 * + 5 + + col2 - col2 FROM tab1 AS cor0
----
-30
-30
-30

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

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

query I rowsort
SELECT ( - col0 ) * + - col1 * - + col0 * - + 27 + - + 86 + - 99 - + - 2 FROM tab0 AS cor0
----
253860
4291440
491892

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-741
SELECT DISTINCT + - 99 DIV - SUM( ALL - col1 ) - + 18 FROM tab0 AS cor0
----
-18

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

onlyif mysql # aggregate syntax: 
query II rowsort label-742
SELECT + COUNT( * ) * - + 73, - 1 * - 70 AS col1 FROM tab0 AS cor0
----
-219
70

skipif mysql # not compatible
query II rowsort label-742
SELECT + COUNT ( * ) * - + 73, - 1 * - 70 AS col1 FROM tab0 AS cor0
----
-219
70

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

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

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

query I rowsort
SELECT ( + + col1 ) * - - col1 + col0 FROM tab2 cor0
----
2647
4564
5993

onlyif mysql # aggregate syntax: 
query I rowsort label-746
SELECT + COUNT( * ) * + 49 AS col2 FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-746
SELECT + COUNT ( * ) * + 49 AS col2 FROM tab2 AS cor0
----
147

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 - - col0 BETWEEN - + 80 AND + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT ALL MAX( col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-748
SELECT ALL MAX ( col2 ) AS col2 FROM tab1
----
96

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT + 80 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL col0 * 26 * + col0 FROM tab0
----
196794
244634
5850

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT + - ( 0 ) + + MIN( DISTINCT - ( 3 ) ) FROM tab1 WHERE NOT - col2 + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-752
SELECT + - ( 0 ) + + MIN ( DISTINCT - ( 3 ) ) FROM tab1 WHERE NOT - col2 + col0 IS NOT NULL
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 * + 80 col2 FROM tab2 AS cor0
----
-2400
-2400
-2400

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-756
SELECT ALL 1 DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL 1 / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-757
SELECT + 0 DIV 66 + - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-757
SELECT + 0 / 66 + - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-758
SELECT - 17 * 49 * + CAST( NULL AS DECIMAL ) * - col0 + + - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-758
SELECT - 17 * 49 * + CAST ( NULL AS REAL ) * - col0 + + - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > - col0 + - + col1 + - col2 + + + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-760
SELECT ALL + COUNT( col1 ) AS col0, - 86 AS col2 FROM tab1
----
3
-86

skipif mysql # not compatible
query II rowsort label-760
SELECT ALL + COUNT ( col1 ) AS col0, - 86 AS col2 FROM tab1
----
3
-86

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 / - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-763
SELECT ALL - COUNT( * ) * + - 77 - + - MAX( ALL - 1 ) * 39 + + + 33 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL - COUNT ( * ) * + - 77 - + - MAX ( ALL - 1 ) * 39 + + + 33 FROM tab0 AS cor0
----
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, - col1 * + - 4 col1 FROM tab2 AS cor0
----
-51
204
-67
268
-77
308

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

query I rowsort
SELECT - col2 + + col1 + + 30 FROM tab2 AS cor0
----
39
58
67

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

query I rowsort
SELECT ALL - col0 + + - 43 AS col0 FROM tab2 AS cor0
----
-107
-118
-89

query I rowsort
SELECT col2 + - ( + + col0 ) - col0 FROM tab2
----
-69
-88
-92

query I rowsort
SELECT col2 + 7 FROM tab0
----
106
17
54

query I rowsort
SELECT - col0 + - - 78 + + col0 * - + 31 FROM tab2
----
-1394
-1970
-2322

query I rowsort
SELECT + 57 * - col0 + - 51 AS col0 FROM tab1
----
-2958
-4896
-5238

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-774
SELECT + COUNT( * ) * + COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab0
----
-3

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

query I rowsort
SELECT DISTINCT - + col2 * + - 18 + + col0 AS col0 FROM tab2 AS cor0 WHERE NOT 11 IS NOT NULL
----

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

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

query I rowsort
SELECT - col1 * - - col2 * - 61 FROM tab2 WHERE NOT NULL IS NOT NULL
----
187880
237046
71553

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-779
SELECT - CAST( NULL AS SIGNED ), col0 + - ( - col1 ) + + col1 AS col0 FROM tab1 AS cor0
----
NULL
185
NULL
79
NULL
95

skipif mysql # not compatible
query II rowsort label-779
SELECT - CAST ( NULL AS INTEGER ), col0 + - ( - col1 ) + + col1 AS col0 FROM tab1 AS cor0
----
NULL
185
NULL
79
NULL
95

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 68, ( - 48 ) col2 FROM tab2 cor0
----
68
-48
68
-48
68
-48

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, col0 FROM tab0 cor0
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT + col0 * + - col0 AS col2 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT DISTINCT 12 * 38 + + - 47 * + 41 + + COUNT( * ) FROM tab1 AS cor0
----
-1468

skipif mysql # not compatible
query I rowsort label-785
SELECT DISTINCT 12 * 38 + + - 47 * + 41 + + COUNT ( * ) FROM tab1 AS cor0
----
-1468

query I rowsort
SELECT ALL - 93 * - - 76 + + 68 + + col2 * col0 * + + col2 FROM tab1 cor0
----
288885
413784
463016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 * - 5 col0 FROM tab1
----
-485

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-788
SELECT ALL - CAST( NULL AS SIGNED ) / COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL - CAST ( NULL AS INTEGER ) / COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 - + + 93 FROM tab1 WHERE NULL = col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 32 IN ( + 85, + 14 + + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 21 * col0 FROM tab0
----
1827
2037
315

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

query I rowsort
SELECT ALL + col0 * + 72 FROM tab2
----
3312
4608
5400

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT NULL BETWEEN + 87 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT + MAX( DISTINCT 76 ) FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-795
SELECT + MAX ( DISTINCT 76 ) FROM tab2
----
76

query III rowsort
SELECT ALL * FROM tab0 WHERE - - ( - - col1 ) = 59
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-801
SELECT ALL - MAX( + - col2 ) AS col2, COUNT( * ) FROM tab0 cor0
----
10
3

skipif mysql # not compatible
query II rowsort label-801
SELECT ALL - MAX ( + - col2 ) AS col2, COUNT ( * ) FROM tab0 cor0
----
10
3

query I rowsort
SELECT DISTINCT col1 * - ( - ( - - col0 ) ) + 11 FROM tab2 AS cor0
----
2357
4939
5036

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

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

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

query I rowsort
SELECT ALL 67 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT ALL - 77 - + COUNT( * ) AS col1 FROM tab1 cor0
----
-80

skipif mysql # not compatible
query I rowsort label-806
SELECT ALL - 77 - + COUNT ( * ) AS col1 FROM tab1 cor0
----
-80

query I rowsort
SELECT + col2 + + col0 + 31 * 1 AS col1 FROM tab1 AS cor0
----
175
178
190

query I rowsort
SELECT ALL - - 44 * + 15 + - + col2 + + col1 * + col0 * + col0 FROM tab0 AS cor0
----
159599
18838
9970

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 91 AS col0, - col0 col0 FROM tab1 cor0
----
-91
-51
-91
-85
-91
-91

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

query I rowsort
SELECT DISTINCT - 76 * col0 + - col1 * - col1 * col2 * + 23 FROM tab1
----
27465
3447960
428892

query I rowsort
SELECT ALL col1 * + 76 + + col2 FROM tab1
----
1160
3640
439

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT MIN( + + 11 ) FROM tab2 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-815
SELECT MIN ( + + 11 ) FROM tab2 WHERE col1 IS NULL
----
NULL

query I rowsort
SELECT ALL + 48 AS col1 FROM tab1 cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-817
SELECT - 61 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-817
SELECT - 61 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT - + col1 * - + col0 * col0 * - 49 * col1 AS col0 FROM tab1 AS cor0
----
-24980004
-8850625
-896343721

query II rowsort
SELECT ALL - col2, + 46 AS col0 FROM tab0 AS cor0
----
-10
46
-47
46
-99
46

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

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

query I rowsort
SELECT + - 90 * + + col1 FROM tab2 AS cor0
----
-4590
-6030
-6930

query I rowsort
SELECT ALL col0 * col0 * - + 64 AS col1 FROM tab2
----
-135424
-262144
-360000

query I rowsort
SELECT DISTINCT - 42 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-824
SELECT + + MIN( ALL col1 ) AS col0, + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
5
NULL

skipif mysql # not compatible
query II rowsort label-824
SELECT + + MIN ( ALL col1 ) AS col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
5
NULL

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

query II rowsort
SELECT - col1 * + - 59 + + col1, + col2 AS col0 FROM tab1 AS cor0
----
2820
68
300
59
840
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 9 * - col1 * - col1 * - - col1 col0 FROM tab1 AS cor0
----
1125
24696
934407

onlyif mysql # aggregate syntax: 
query II rowsort label-828
SELECT + MIN( + - 76 ), + 62 AS col0 FROM tab2 AS cor0
----
-76
62

skipif mysql # not compatible
query II rowsort label-828
SELECT + MIN ( + - 76 ), + 62 AS col0 FROM tab2 AS cor0
----
-76
62

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

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

query I rowsort
SELECT DISTINCT - - ( ( - + 36 ) ) * + - 32 FROM tab0 AS cor0
----
1152

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

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

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

query I rowsort
SELECT 18 * + col2 AS col2 FROM tab1
----
1062
1224
1728

query I rowsort
SELECT + 37 + + 53 FROM tab1 AS cor0
----
90
90
90

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

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

query I rowsort
SELECT ALL + 70 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

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

onlyif mysql # DIV for integer division: 
query I rowsort label-838
SELECT DISTINCT + col1 + + 53 + col2 DIV col1 AS col2 FROM tab0
----
134
153
74

skipif mysql # not compatible
query I rowsort label-838
SELECT DISTINCT + col1 + + 53 + col2 / col1 AS col2 FROM tab0
----
134
153
74

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT col2 * + col2 * + 21 * + 74 * + 48 FROM tab2
----
119347200
250927488
39459168

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

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

query I rowsort
SELECT col2 - 13 AS col2 FROM tab1 AS cor0
----
46
55
83

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

query I rowsort
SELECT ALL - col1 * - col1 * col1 AS col0 FROM tab1 AS cor0
----
103823
125
2744

query I rowsort
SELECT ALL + 1 - + 93 FROM tab1 cor0
----
-92
-92
-92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-846
SELECT ALL - 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-846
SELECT ALL - CAST ( col1 AS INTEGER ) col2 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - + 26 + - - col2 * col1 * 3 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT DISTINCT COUNT( * ) - + COUNT( * ) + 53 * + 14 AS col0 FROM tab0
----
742

skipif mysql # not compatible
query I rowsort label-848
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) + 53 * + 14 AS col0 FROM tab0
----
742

onlyif mysql # DIV for integer division: 
query I rowsort label-849
SELECT col2 DIV - col2 col2 FROM tab2
----
-1
-1
-1

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

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

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

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

skipif mysql # not compatible
query I rowsort label-851
SELECT DISTINCT - 80 + COUNT ( * ) FROM tab2
----
-77

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

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

skipif mysql # not compatible
query I rowsort label-853
SELECT + MIN ( + - 18 ) AS col2 FROM tab2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT ALL + ( - - MAX( - 19 ) ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-854
SELECT ALL + ( - - MAX ( - 19 ) ) FROM tab2
----
-19

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + + col0 ) <= col2
----
15
81
47
97
1
99

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

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

query I rowsort
SELECT - 53 * + col1 FROM tab2 AS cor0
----
-2703
-3551
-4081

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

query I rowsort
SELECT - 59 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

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

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT DISTINCT MAX( - - ( + 34 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
34

skipif mysql # not compatible
query I rowsort label-861
SELECT DISTINCT MAX ( - - ( + 34 ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
34

onlyif mysql # DIV for integer division: 
query II rowsort label-862
SELECT DISTINCT 46 AS col1, 10 DIV - + col0 AS col0 FROM tab2
----
46
0

skipif mysql # not compatible
query II rowsort label-862
SELECT DISTINCT 46 AS col1, 10 / - + col0 AS col0 FROM tab2
----
46
0

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT DISTINCT SUM( ALL 50 ) FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT SUM ( ALL 50 ) FROM tab0
----
150

query I rowsort
SELECT ALL - + 38 * 50 FROM tab2 cor0
----
-1900
-1900
-1900

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-866
SELECT DISTINCT + - col1 + - col1 DIV + col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-866
SELECT DISTINCT + - col1 + - col1 / + col2 FROM tab1 AS cor0
----
-14
-47
-5

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

query I rowsort
SELECT DISTINCT 50 + + ( 31 ) * + + 36 FROM tab0
----
1166

query I rowsort
SELECT DISTINCT col2 * + 15 + + + col1 + 81 * - col2 + + col0 AS col1 FROM tab0
----
-3006
-552
-6436

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT ALL COUNT( * ) + + 25 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL COUNT ( * ) + + 25 FROM tab2
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT DISTINCT COUNT( ALL + + 39 ) * + + COUNT( * ) * SUM( ALL + col0 ) col2 FROM tab0
----
1791

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-871
SELECT DISTINCT COUNT ( ALL + + 39 ) * + + COUNT ( * ) * SUM ( ALL + col0 ) col2 FROM tab0
----
1791

query I rowsort
SELECT ALL + ( + col1 ) + + col0 * 37 FROM tab1 AS cor0
----
1901
3150
3414

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( 95 )
----

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

query I rowsort
SELECT - - 24 FROM tab0 WHERE 46 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT - + col1 + + + col0 + - 39 NOT IN ( + 74 )
----
0

skipif mysql # not compatible
query I rowsort label-876
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT - + col1 + + + col0 + - 39 NOT IN ( + 74 )
----
0

query I rowsort
SELECT 43 FROM tab0 WHERE + 22 * - col2 IS NULL AND ( + col1 ) BETWEEN ( NULL ) AND + col1 / - col1
----

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

skipif mysql # not compatible
query I rowsort label-878
SELECT ALL - 46 * + ( - COUNT ( * ) ) FROM tab0
----
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + 40 AS col1, col1 col1 FROM tab2
----
63
51
80
77
98
67

query I rowsort
SELECT - col2 + + 37 - col1 FROM tab1
----
-27
-73
-78

query I rowsort
SELECT ALL col0 + - - col1 + col1 - + col0 - col1 AS col2 FROM tab0 AS cor0
----
1
21
81

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

query I rowsort
SELECT ALL 52 * 96 * - col0 - col1 AS col2 FROM tab1 AS cor0
----
-254606
-424325
-454319

query I rowsort
SELECT ALL col0 + + col2 + - - col2 - - col2 FROM tab0
----
117
156
394

query I rowsort
SELECT + 88 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT DISTINCT + col0 * + 28 FROM tab1
----
1428
2380
2548

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL MIN ( + 17 ) FROM tab1 cor0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-893
SELECT ALL MAX( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 cor0
----
NULL

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

query I rowsort
SELECT ALL + + 27 FROM tab0 AS cor0 WHERE NOT 68 * + 4 IS NULL
----
27
27
27

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

query I rowsort
SELECT + 38 FROM tab2 AS cor0 WHERE NOT - col0 * - col2 * + ( - - col1 ) <> - 68
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-897
SELECT - 10 DIV + COUNT( ALL col2 ) FROM tab2 AS cor0
----
-3

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

query I rowsort
SELECT 89 * + col0 FROM tab0
----
1335
7743
8633

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

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT DISTINCT + MIN( DISTINCT + 17 ) AS col0 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-900
SELECT DISTINCT + MIN ( DISTINCT + 17 ) AS col0 FROM tab0
----
17

query I rowsort
SELECT + 69 * - - 62 AS col2 FROM tab0
----
4278
4278
4278

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT MIN( ALL + + col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-902
SELECT MIN ( ALL + + col1 ) AS col2 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-903
SELECT - 98 AS col0, MIN( - col2 ) FROM tab2
----
-98
-58

skipif mysql # not compatible
query II rowsort label-903
SELECT - 98 AS col0, MIN ( - col2 ) FROM tab2
----
-98
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-904
SELECT CAST( - - COUNT( * ) AS SIGNED ) FROM tab1 WHERE NOT ( NOT NULL IN ( + col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-904
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 WHERE NOT ( NOT NULL IN ( + col1 ) )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-905
SELECT ALL - COUNT( * ), + COUNT( * ) AS col1 FROM tab2
----
-3
3

skipif mysql # not compatible
query II rowsort label-905
SELECT ALL - COUNT ( * ), + COUNT ( * ) AS col1 FROM tab2
----
-3
3

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

query I rowsort
SELECT DISTINCT + col0 * - - 11 FROM tab1
----
1001
561
935

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 28 + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 45 * 91 AS col2 FROM tab0 AS cor0 WHERE col2 + col1 NOT BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-911
SELECT DISTINCT 90 * - 91 + - + COUNT( - - col1 ) col2 FROM tab2 cor0 WHERE col2 = NULL
----
-8190

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-911
SELECT DISTINCT 90 * - 91 + - + COUNT ( - - col1 ) col2 FROM tab2 cor0 WHERE col2 = NULL
----
-8190

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 * - + col2 col0 FROM tab2 AS cor0
----
-1288
-2240
-3248

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT ALL - MAX( + 29 ) AS col0 FROM tab1 AS cor0 WHERE 51 NOT IN ( 1 )
----
-29

skipif mysql # not compatible
query I rowsort label-914
SELECT ALL - MAX ( + 29 ) AS col0 FROM tab1 AS cor0 WHERE 51 NOT IN ( 1 )
----
-29

query II rowsort
SELECT DISTINCT col2, col0 * col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
5015
68
6188
96
4896

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

query I rowsort
SELECT DISTINCT + col1 * + col1 FROM tab1 AS cor0 WHERE NOT ( ( col2 / + ( + 71 ) IS NOT NULL ) )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-919
SELECT col2 DIV + 32 + col1 + col2 FROM tab0 AS cor0
----
103
129
31

skipif mysql # not compatible
query I rowsort label-919
SELECT col2 / + 32 + col1 + col2 FROM tab0 AS cor0
----
103
129
31

query I rowsort
SELECT - col1 + 83 * col2 FROM tab1 AS cor0
----
4892
5597
7954

query II rowsort
SELECT DISTINCT + ( 56 ) * 39 + + - 96 - - + col0 AS col0, 62 AS col0 FROM tab2 AS cor0
----
2134
62
2152
62
2163
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 + + 13 * + 86 col1 FROM tab2 AS cor0
----
1158
1158
1158

query II rowsort
SELECT DISTINCT - col0 + - 83 * - + 95, col0 AS col0 FROM tab1 AS cor0
----
7794
91
7800
85
7834
51

onlyif mysql # DIV for integer division: 
query I rowsort label-924
SELECT + col2 DIV col1 AS col2 FROM tab0 cor0 WHERE + ( + + col2 ) <> ( - ( col2 ) + + ( 46 ) )
----
0
0
99

skipif mysql # not compatible
query I rowsort label-924
SELECT + col2 / col1 AS col2 FROM tab0 cor0 WHERE + ( + + col2 ) <> ( - ( col2 ) + + ( 46 ) )
----
0
0
99

query I rowsort
SELECT DISTINCT + col1 * + col0 - - + 66 * - col2 + col2 AS col2 FROM tab0
----
-1840
-6338
1177

query I rowsort
SELECT ALL col2 * + 54 AS col0 FROM tab2
----
1242
2160
3132

query I rowsort
SELECT DISTINCT - 85 + + col1 AS col1 FROM tab0
----
-4
-64
-84

query II rowsort
SELECT DISTINCT - col2 * - ( - + col1 ), col1 AS col2 FROM tab2
----
-1173
51
-3080
77
-3886
67

query I rowsort
SELECT ALL col0 * + - col1 AS col0 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT ALL ( + ( - col0 ) ) - - 76 AS col1 FROM tab2
----
1
12
30

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-932
SELECT DISTINCT - 30 DIV + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-932
SELECT DISTINCT - 30 / + col0 FROM tab1
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-934
SELECT col2 DIV - - 77 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-934
SELECT col2 / - - 77 AS col0 FROM tab1
----
0
0
1

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-937
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 19 IS NOT NULL AND CAST( NULL AS SIGNED ) IN ( 97, 48 + - col2 )
----

skipif mysql # not compatible
query III rowsort label-937
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 19 IS NOT NULL AND CAST ( NULL AS INTEGER ) IN ( 97, 48 + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-938
SELECT - col2 - - 7 FROM tab0 WHERE NOT + col0 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
-3
-40
-92

skipif mysql # not compatible
query I rowsort label-938
SELECT - col2 - - 7 FROM tab0 WHERE NOT + col0 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-3
-40
-92

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-942
SELECT + col1 DIV - col1, 23 * - 18 AS col1 FROM tab0 AS cor0
----
-1
-414
-1
-414
-1
-414

skipif mysql # not compatible
query II rowsort label-942
SELECT + col1 / - col1, 23 * - 18 AS col1 FROM tab0 AS cor0
----
-1
-414
-1
-414
-1
-414

query I rowsort
SELECT + 76 * - - col0 + 73 AS col0 FROM tab1 AS cor0
----
3949
6533
6989

query II rowsort
SELECT ALL - col1 * 4, - col1 AS col2 FROM tab0 cor0
----
-324
-81
-4
-1
-84
-21

query I rowsort
SELECT 99 * col1 FROM tab1
----
1386
4653
495

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-950
SELECT col1 + + - 61 DIV - ( - col1 ) AS col1 FROM tab2
----
50
67
77

skipif mysql # not compatible
query I rowsort label-950
SELECT col1 + + - 61 / - ( - col1 ) AS col1 FROM tab2
----
50
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT MIN( - ( 22 ) ) AS col1 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-951
SELECT MIN ( - ( 22 ) ) AS col1 FROM tab0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT - ( SUM( 25 ) ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-952
SELECT - ( SUM ( 25 ) ) AS col1 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT + col2 * - col2 * - col0 * + - 70 AS col0 FROM tab0 AS cor0
----
-2319450
-609000
-66548790

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE ( - col2 ) <= ( - col1 )
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-955
SELECT + + COUNT( * ) col2, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
3
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-956
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col2, col0 * + 22 FROM tab2 AS cor0
----
NULL
1012
NULL
1408
NULL
1650

skipif mysql # not compatible
query II rowsort label-956
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col2, col0 * + 22 FROM tab2 AS cor0
----
NULL
1012
NULL
1408
NULL
1650

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

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

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE ( NULL ) > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 = col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-960
SELECT col2 + + col0 - + 26 DIV col2 FROM tab2
----
104
133
68

skipif mysql # not compatible
query I rowsort label-960
SELECT col2 + + col0 - + 26 / col2 FROM tab2
----
104
133
68

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

query I rowsort
SELECT ALL ( - ( + 1 ) ) - - 4 AS col1 FROM tab0
----
3
3
3

query I rowsort
SELECT col1 * + col2 + col2 AS col0 FROM tab0
----
198
220
3854

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT DISTINCT SUM( DISTINCT 83 ) FROM tab2 WHERE NULL BETWEEN + col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-964
SELECT DISTINCT SUM ( DISTINCT 83 ) FROM tab2 WHERE NULL BETWEEN + col1 AND NULL
----
NULL

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 31 IS NOT NULL
----

query I rowsort
SELECT col2 + + 86 AS col0 FROM tab1
----
145
154
182

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT + COUNT( * ) * + 85 + - 45 FROM tab2 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-968
SELECT + COUNT ( * ) * + 85 + - 45 FROM tab2 AS cor0
----
210

onlyif mysql # DIV for integer division: 
query I rowsort label-969
SELECT ALL - col0 + + col0 DIV - 42 FROM tab0 AS cor0
----
-15
-89
-99

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL - col0 + + col0 / - 42 FROM tab0 AS cor0
----
-15
-89
-99

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( col0 ) > col1
----
15

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 35 IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query III rowsort label-973
SELECT * FROM tab0 AS cor0 WHERE NOT ( 89 DIV + + col2 ) <= 1
----
87
21
10

skipif mysql # not compatible
query III rowsort label-973
SELECT * FROM tab0 AS cor0 WHERE NOT ( 89 / + + col2 ) <= 1
----
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-974
SELECT ALL - + 60 DIV + col1 + + col1 col2 FROM tab1 cor0
----
-7
10
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-974
SELECT ALL - + 60 / + col1 + + col1 col2 FROM tab1 cor0
----
-7
10
46

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

skipif mysql # not compatible
query I rowsort label-975
SELECT ALL 7 / + col2 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT SUM( DISTINCT + col0 ) + + ( + + 21 ) FROM tab2
----
206

skipif mysql # not compatible
query I rowsort label-976
SELECT SUM ( DISTINCT + col0 ) + + ( + + 21 ) FROM tab2
----
206

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-977
SELECT + 46 + - AVG ( - col0 ) + - MAX( ALL - col2 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-977
SELECT + 46 + - AVG ( - col0 ) + - MAX ( ALL - col2 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-978
SELECT - col2 + - CAST( - 32 AS SIGNED ) FROM tab1
----
-27
-36
-64

skipif mysql # not compatible
query I rowsort label-978
SELECT - col2 + - CAST ( - 32 AS INTEGER ) FROM tab1
----
-27
-36
-64

query I rowsort
SELECT 96 + 99 AS col2 FROM tab0
----
195
195
195

query II rowsort
SELECT ALL - col2, col1 FROM tab1 WHERE NOT NULL <> - - 58
----

query I rowsort
SELECT 37 * + - ( - col2 ) AS col1 FROM tab0
----
1739
3663
370

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT 45 * COUNT( * ) AS col1 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-982
SELECT 45 * COUNT ( * ) AS col1 FROM tab1
----
135

onlyif mysql # DIV for integer division: 
query I rowsort label-983
SELECT ALL 15 DIV - + col1 + col2 FROM tab0 AS cor0
----
10
47
84

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL 15 / - + col1 + col2 FROM tab0 AS cor0
----
10
47
84

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

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT ALL + MAX( DISTINCT - + col2 ) FROM tab2 AS cor0 WHERE + 76 * - + col0 = + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-985
SELECT ALL + MAX ( DISTINCT - + col2 ) FROM tab2 AS cor0 WHERE + 76 * - + col0 = + col1
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 63 + - ( + 82 ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + - col0 * - col1 + - + col2 col0 FROM tab2
----
-197160
-291508
-53981

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT ALL 66 + - MAX( - - col2 ) FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-990
SELECT ALL 66 + - MAX ( - - col2 ) FROM tab1
----
-30

query I rowsort
SELECT col0 * 10 * + 23 + + col2 AS col2 FROM tab0 cor0
----
20020
22409
3497

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + + 72 ) + - col2 col0 FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN ( - 54 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 col0 FROM tab2 cor0 WHERE NULL >= + col2
----

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

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

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

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

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

query I rowsort
SELECT ALL - 86 + + 9 FROM tab1 AS cor0
----
-77
-77
-77

query II rowsort
SELECT 72, + 71 AS col0 FROM tab0
----
72
71
72
71
72
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1000
SELECT DISTINCT - COUNT( * ) + + + 41 AS col2 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-1000
SELECT DISTINCT - COUNT ( * ) + + + 41 AS col2 FROM tab0
----
38

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1002
SELECT ALL MIN( - - ( col0 ) ) + + 78 col2, + COUNT( * ) * COUNT( * ) FROM tab2
----
124
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1002
SELECT ALL MIN ( - - ( col0 ) ) + + 78 col2, + COUNT ( * ) * COUNT ( * ) FROM tab2
----
124
9

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

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

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

skipif mysql # not compatible
query I rowsort label-1004
SELECT 96 / + - 79 - - - 0 AS col1 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-1005
SELECT ALL COUNT( DISTINCT col1 ) AS col2, COUNT( * ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-1005
SELECT ALL COUNT ( DISTINCT col1 ) AS col2, COUNT ( * ) AS col1 FROM tab2
----
3
3

query I rowsort
SELECT + + 87 * col0 FROM tab1 AS cor0
----
4437
7395
7917

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT ALL + - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1008
SELECT ALL + - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1011
SELECT ALL + - CAST( - - col2 AS SIGNED ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1011
SELECT ALL + - CAST ( - - col2 AS INTEGER ) FROM tab0 AS cor0
----
-10
-47
-99

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - 81 * - 73, col1 col1, col2 AS col2 FROM tab1 AS cor0
----
9 values hashing to e042c69d6106e95fb1f66990240c3e89

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT + 85 / - col1 NOT BETWEEN ( - 40 * - 10 + + col0 ) AND ( - col0 + ( - + col0 ) + + ( - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1015
SELECT CAST( NULL AS SIGNED ) / - 1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1015
SELECT CAST ( NULL AS INTEGER ) / - 1 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 65 * - 85 FROM tab1
----
-5525
-5525
-5525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 * + col0 col1 FROM tab2
----
-128
-150
-92

query I rowsort
SELECT ( + col0 ) * - 93 FROM tab1
----
-4743
-7905
-8463

query I rowsort
SELECT col0 FROM tab0 WHERE + col2 = + col2 + col1 + 23
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1021
SELECT 6 DIV - COUNT( * ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-1021
SELECT 6 / - COUNT ( * ) FROM tab1
----
-2

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

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

query I rowsort
SELECT - + 82 + - col0 AS col1 FROM tab1 AS cor0
----
-133
-167
-173

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

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

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE 39 IS NULL
----

query I rowsort
SELECT ALL - 89 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT - - col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1029
SELECT 41 * + - 32, 70 * - COUNT( * ) * + - 71 AS col1 FROM tab1
----
-1312
14910

skipif mysql # not compatible
query II rowsort label-1029
SELECT 41 * + - 32, 70 * - COUNT ( * ) * + - 71 AS col1 FROM tab1
----
-1312
14910

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1031
SELECT 9 - - + MAX( DISTINCT + CAST( + + col1 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-1031
SELECT 9 - - + MAX ( DISTINCT + CAST ( + + col1 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
86

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

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

query II rowsort
SELECT col1, + col0 * col0 FROM tab2 AS cor0 WHERE ( NOT - - col1 * - ( - + col0 ) * - col2 + - col2 IS NULL )
----
51
2116
67
5625
77
4096

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT - SUM( - col1 ) FROM tab2 AS cor0 WHERE - col0 IN ( + 17, - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1034
SELECT - SUM ( - col1 ) FROM tab2 AS cor0 WHERE - col0 IN ( + 17, - col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1035
SELECT ALL col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( - ( - - col0 ) + CAST( - col2 AS SIGNED ) + + - 41 + col0 / + col2, col1 + + col0, - ( + col0 ) )
----

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( - ( - - col0 ) + CAST ( - col2 AS INTEGER ) + + - 41 + col0 / + col2, col1 + + col0, - ( + col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1036
SELECT col1 + - - 73 DIV + - 81 * col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1036
SELECT col1 + - - 73 / + - 81 * col0 FROM tab0
----
1
21
81

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE NULL IS NULL
----
-46
-64
-75

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

query II rowsort
SELECT 56 + ( ( - col0 ) ) + + 99, col2 AS col1 FROM tab1
----
104
96
64
68
70
59

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

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

query I rowsort
SELECT - 62 + - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-121
-130
-158

query I rowsort
SELECT DISTINCT 4 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

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

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

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

query I rowsort
SELECT DISTINCT col1 * + ( - 48 ) FROM tab1 cor0
----
-2256
-240
-672

query I rowsort
SELECT ALL - + 95 * col2 AS col0 FROM tab0 AS cor0
----
-4465
-9405
-950

onlyif mysql # aggregate syntax: 
query II rowsort label-1047
SELECT DISTINCT + + 21 col2, MAX( + col0 ) * + - 71 AS col1 FROM tab2 cor0
----
21
-5325

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1047
SELECT DISTINCT + + 21 col2, MAX ( + col0 ) * + - 71 AS col1 FROM tab2 cor0
----
21
-5325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1048
SELECT + ( col1 ) * + 94 * col1 + 14 + + CAST( - - 6 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
114
41474
616754

skipif mysql # not compatible
query I rowsort label-1048
SELECT + ( col1 ) * + 94 * col1 + 14 + + CAST ( - - 6 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
114
41474
616754

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + 46 + - col1 col0 FROM tab1 cor0
----
2115
225
630

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1051
SELECT - AVG ( - col0 ) / COUNT( * ) + CAST( NULL AS DECIMAL ) + - 48 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1051
SELECT - AVG ( - col0 ) / COUNT ( * ) + CAST ( NULL AS REAL ) + - 48 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 + + 70 AS col0 FROM tab2
----
12
30
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1053
SELECT + 66 * + COUNT( * ) * ( + COUNT( * ) ) AS col1 FROM tab2
----
594

skipif mysql # not compatible
query I rowsort label-1053
SELECT + 66 * + COUNT ( * ) * ( + COUNT ( * ) ) AS col1 FROM tab2
----
594

onlyif mysql # aggregate syntax: 
query I rowsort label-1054
SELECT - 15 * + MAX( col1 ) * - SUM( DISTINCT + col0 ) FROM tab1
----
160035

skipif mysql # not compatible
query I rowsort label-1054
SELECT - 15 * + MAX ( col1 ) * - SUM ( DISTINCT + col0 ) FROM tab1
----
160035

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + + 69 col0 FROM tab0
----
-1035
-6003
-6693

query I rowsort
SELECT DISTINCT + 14 * + - col2 FROM tab0
----
-1386
-140
-658

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1057
SELECT 98 AS col0 FROM tab1 AS cor0 WHERE NULL IN ( CAST( - 35 AS SIGNED ) * + + col0 - + col0 )
----

skipif mysql # not compatible
query I rowsort label-1057
SELECT 98 AS col0 FROM tab1 AS cor0 WHERE NULL IN ( CAST ( - 35 AS INTEGER ) * + + col0 - + col0 )
----

query I rowsort
SELECT ALL - col1 + 82 FROM tab0 AS cor0
----
1
61
81

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1061
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 NOT IN ( - CAST( NULL AS SIGNED ), + 62 )
----

skipif mysql # not compatible
query III rowsort label-1061
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 NOT IN ( - CAST ( NULL AS INTEGER ), + 62 )
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 BETWEEN col0 AND - ( - - col0 ) * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1064
SELECT + col1 + + col2 + + - 73 + CAST( NULL AS SIGNED ) + + - 50 * 91 - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1064
SELECT + col1 + + col2 + + - 73 + CAST ( NULL AS INTEGER ) + + - 50 * 91 - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1065
SELECT - - 10 FROM tab0 AS cor0 WHERE NULL NOT IN ( + col1 * - + 1, + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-1065
SELECT - - 10 FROM tab0 AS cor0 WHERE NULL NOT IN ( + col1 * - + 1, + CAST ( NULL AS REAL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1066
SELECT ALL 12 DIV col1 col0 FROM tab0 AS cor0
----
0
0
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1066
SELECT ALL 12 / col1 col0 FROM tab0 AS cor0
----
0
0
12

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

skipif mysql # not compatible
query I rowsort label-1067
SELECT + + MIN ( col2 ) FROM tab2 cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT 32 * + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1068
SELECT 32 * + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1069
SELECT DISTINCT + 46 + - - MAX( DISTINCT col2 ) FROM tab0 AS cor0
----
145

skipif mysql # not compatible
query I rowsort label-1069
SELECT DISTINCT + 46 + - - MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
145

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1070
SELECT + 98 * - + 70 + - 86, 29 DIV COUNT( * ) AS col1 FROM tab0 cor0
----
-6946
9

skipif mysql # not compatible
query II rowsort label-1070
SELECT + 98 * - + 70 + - 86, 29 / COUNT ( * ) AS col1 FROM tab0 cor0
----
-6946
9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 * + ( + + ( - + col2 ) ) * col2 col1 FROM tab2 AS cor0
----
11200
23548
3703

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

query I rowsort
SELECT ALL ( - 77 ) FROM tab0
----
-77
-77
-77

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

query II rowsort
SELECT DISTINCT col2, + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
10
47
47
99
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + - 74 AND NULL OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1080
SELECT + SUM( DISTINCT CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 AS cor0
----
NULL

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

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

query I rowsort
SELECT col0 * + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2346
4928
5025

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT ALL - MAX( ALL col2 ) FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-96

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL - MAX ( ALL col2 ) FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-96

query III rowsort
SELECT * FROM tab2 WHERE 73 * - - col2 < - + col1
----

query I rowsort
SELECT ALL + 80 + + 34 FROM tab1
----
114
114
114

query I rowsort
SELECT ALL col0 * + - 66 AS col2 FROM tab2
----
-3036
-4224
-4950

query I rowsort
SELECT ALL col2 * + 35 AS col1 FROM tab2
----
1400
2030
805

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1091
SELECT COUNT( ALL + - 25 ) + 20 AS col1 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-1091
SELECT COUNT ( ALL + - 25 ) + 20 AS col1 FROM tab0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 + - - col0 col2 FROM tab1
----
-22
12
18

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 47 + col2 + + 0 * 31 * col1 IN ( 89 - + + col1 )
----

query I rowsort
SELECT 18 * - 17 + - + 51 AS col2 FROM tab2
----
-357
-357
-357

onlyif mysql # DIV for integer division: 
query I rowsort label-1095
SELECT ALL 55 * + col0 + + - col1 - - - col2 + + col1 DIV - 94 * - ( 37 ) AS col2 FROM tab0 AS cor0
----
4754
5235
697

skipif mysql # not compatible
query I rowsort label-1095
SELECT ALL 55 * + col0 + + - col1 - - - col2 + + col1 / - 94 * - ( 37 ) AS col2 FROM tab0 AS cor0
----
4754
5235
697

query I rowsort
SELECT DISTINCT - 32 + - 39 FROM tab2 AS cor0
----
-71

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1098
SELECT ALL + - ( - + 92 ) + - 74 DIV + - 95 AS col2 FROM tab1 AS cor0
----
92
92
92

skipif mysql # not compatible
query I rowsort label-1098
SELECT ALL + - ( - + 92 ) + - 74 / + - 95 AS col2 FROM tab1 AS cor0
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1099
SELECT - COUNT( * ) - 94 FROM tab0 AS cor0 WHERE + 10 IS NULL
----
-94

skipif mysql # not compatible
query I rowsort label-1099
SELECT - COUNT ( * ) - 94 FROM tab0 AS cor0 WHERE + 10 IS NULL
----
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-1100
SELECT DISTINCT + - col2 + + 98 DIV col2 * + col0 AS col1 FROM tab0 AS cor0
----
-17
-99
773

skipif mysql # not compatible
query I rowsort label-1100
SELECT DISTINCT + - col2 + + 98 / col2 * + col0 AS col1 FROM tab0 AS cor0
----
-17
-99
773

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

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

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1103
SELECT ALL MAX( DISTINCT 81 ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
81

skipif mysql # not compatible
query I rowsort label-1103
SELECT ALL MAX ( DISTINCT 81 ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT DISTINCT 98 * - SUM( 47 ) FROM tab1
----
-13818

skipif mysql # not compatible
query I rowsort label-1104
SELECT DISTINCT 98 * - SUM ( 47 ) FROM tab1
----
-13818

onlyif mysql # aggregate syntax: 
query I rowsort label-1105
SELECT ALL 82 - + + 31 * 51 - - COUNT( * ) AS col1 FROM tab0
----
-1496

skipif mysql # not compatible
query I rowsort label-1105
SELECT ALL 82 - + + 31 * 51 - - COUNT ( * ) AS col1 FROM tab0
----
-1496

query I rowsort
SELECT col0 - + 6 + - col2 * 78 AS col2 FROM tab2
----
-1754
-3062
-4455

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1107
SELECT ALL CAST( + 45 AS SIGNED ) DIV - MAX( + col1 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1107
SELECT ALL CAST ( + 45 AS INTEGER ) / - MAX ( + col1 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT col1 * + col0 <> NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL = 88 - col2
----

query I rowsort
SELECT 61 AS col2 FROM tab2 cor0
----
61
61
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1111
SELECT - COUNT( * ) * + - 12 FROM tab0 cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) < - col2
----
0

skipif mysql # not compatible
query I rowsort label-1111
SELECT - COUNT ( * ) * + - 12 FROM tab0 cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) < - col2
----
0

query II rowsort
SELECT + ( - col1 ) AS col2, 3 + + col0 FROM tab1 AS cor0
----
-14
54
-47
94
-5
88

query I rowsort
SELECT ALL + 47 * col1 * + + ( 81 ) FROM tab0
----
308367
3807
79947

query II rowsort
SELECT 53, 24 AS col2 FROM tab2
----
53
24
53
24
53
24

query I rowsort
SELECT ALL - ( 27 ) AS col0 FROM tab2
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 20 col0, 77 + - col0 FROM tab1
----
-20
-14
-20
-8
-20
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT ( + MAX( ALL + + col0 ) ) col0 FROM tab0
----
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1118
SELECT - SUM( DISTINCT 26 ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-1118
SELECT - SUM ( DISTINCT 26 ) FROM tab2
----
-26

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE - col1 + - 47 * + 49 * col1 IS NOT NULL
----
-14
-47
-5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1121
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * 69 > col1 * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1121
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * 69 > col1 * - - CAST ( NULL AS INTEGER )
----

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1126
SELECT DISTINCT * FROM tab1 WHERE - col1 + + CAST( - col0 AS SIGNED ) IS NULL OR NOT 78 * col2 * - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1126
SELECT DISTINCT * FROM tab1 WHERE - col1 + + CAST ( - col0 AS INTEGER ) IS NULL OR NOT 78 * col2 * - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + col1 * + col1 col2 FROM tab0 AS cor0
----
100
451
6608

onlyif mysql # DIV for integer division: 
query I rowsort label-1128
SELECT col0 DIV - 23 + - + ( - 44 ) FROM tab1 AS cor0
----
41
41
42

skipif mysql # not compatible
query I rowsort label-1128
SELECT col0 / - 23 + - + ( - 44 ) FROM tab1 AS cor0
----
41
41
42

query I rowsort
SELECT ALL 0 * + - 97 + - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1130
SELECT + + col0 + - 16 + + + CAST( - 85 AS SIGNED ) * - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
3994
8496
921

skipif mysql # not compatible
query I rowsort label-1130
SELECT + + col0 + - 16 + + + CAST ( - 85 AS INTEGER ) * - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
3994
8496
921

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

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

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

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

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

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

query I rowsort
SELECT - + col1 - + + 96 AS col1 FROM tab0 AS cor0
----
-117
-177
-97

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1137
SELECT ALL COUNT( * ) AS col1, - 38 FROM tab1 AS cor0
----
3
-38

skipif mysql # not compatible
query II rowsort label-1137
SELECT ALL COUNT ( * ) AS col1, - 38 FROM tab1 AS cor0
----
3
-38

query II rowsort
SELECT DISTINCT col2, 27 FROM tab1 AS cor0
----
59
27
68
27
96
27

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT 39 + + - col2 >= - + 94 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + ( + 82 ) * + col2 FROM tab0 AS cor0
----
-3854
-8118
-820

query I rowsort
SELECT ALL - - 65 * col1 AS col1 FROM tab0 AS cor0
----
1365
5265
65

query I rowsort
SELECT ALL col2 * + col2 + col1 FROM tab2 AS cor0
----
1677
3431
580

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

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

query I rowsort
SELECT ALL 86 * - col1 AS col1 FROM tab2
----
-4386
-5762
-6622

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

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

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

query I rowsort
SELECT DISTINCT - 37 FROM tab0 AS cor0 WHERE NOT - col0 * - 80 / - col2 / - 37 - - - col2 > NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1149
SELECT ALL + + COUNT ( * ) col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT + 15 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT NULL IS NULL )
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1151
SELECT COUNT( * ) * - COUNT( ALL + 91 ) - - - COUNT( * ) * - AVG ( + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE CAST( NULL AS SIGNED ) = CAST( + - 15 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1151
SELECT COUNT ( * ) * - COUNT ( ALL + 91 ) - - - COUNT ( * ) * - AVG ( + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE CAST ( NULL AS INTEGER ) = CAST ( + - 15 AS INTEGER )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( + 9 ) <= - 70
----

query II rowsort
SELECT DISTINCT - + col0 + - ( - - col2 ), - 16 AS col0 FROM tab0 AS cor0
----
-196
-16
-62
-16
-97
-16

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1155
SELECT ALL - 87 + + CAST( 55 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-32
-32
-32

skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL - 87 + + CAST ( 55 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-32
-32
-32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1156
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 71 > + - ( - + CAST( - + col2 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1156
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 71 > + - ( - + CAST ( - + col2 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT ALL MIN( - col1 ) - 92 AS col0 FROM tab0
----
-173

skipif mysql # not compatible
query I rowsort label-1157
SELECT ALL MIN ( - col1 ) - 92 AS col0 FROM tab0
----
-173

query II rowsort
SELECT 91 + - + col0 AS col2, col0 FROM tab2
----
16
75
27
64
45
46

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 + - col1 + + col2 col2 FROM tab2
----
-5
23
4

query I rowsort
SELECT 39 + - + 58 FROM tab0
----
-19
-19
-19

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

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

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

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

query II rowsort
SELECT ALL - - col2, col1 + 46 AS col0 FROM tab0 AS cor0
----
10
67
47
127
99
47

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1166
SELECT ALL - - col0 - + col2 * - CAST( - + 28 AS DECIMAL ) + - col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 * + - 64 AND - - col1
----

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL - - col0 - + col2 * - CAST ( - + 28 AS REAL ) + - col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 * + - 64 AND - - col1
----

query I rowsort
SELECT + col1 * + 0 AS col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT - + 16 AS col0, 61 AS col0 FROM tab1 AS cor0
----
-16
61
-16
61
-16
61

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * + - 65 + - + col1 + 39 = + col0 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1171
SELECT + MIN( - + col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-1171
SELECT + MIN ( - + col2 ) AS col0 FROM tab1
----
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT - 15 < - - col0
----

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

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

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

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

query I rowsort
SELECT ALL + col0 * + col0 * - - 90 FROM tab2
----
190440
368640
506250

query I rowsort
SELECT ALL AVG ( 6 ) + - 70 FROM tab0 WHERE NOT - col2 - col1 < + col1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - 90 NOT BETWEEN 36 AND + - col2
----

query II rowsort
SELECT + col2 * + - col0 AS col1, - col1 AS col0 FROM tab2 cor0
----
-1058
-51
-2560
-77
-4350
-67

query I rowsort
SELECT ALL - col0 * - 52 + 28 AS col2 FROM tab0 AS cor0
----
4552
5072
808

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 + + + col0 + + - col1 * + 48 col1 FROM tab1 AS cor0
----
-173
-2183
-639

query I rowsort
SELECT 4 + col0 - + 77 * - ( - + col2 ) AS col0 FROM tab1 AS cor0
----
-4454
-5141
-7337

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1183
SELECT ALL + COUNT( * ) + - 23 AS col2, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-20
3

skipif mysql # not compatible
query II rowsort label-1183
SELECT ALL + COUNT ( * ) + - 23 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-20
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1184
SELECT - - 71 + - col2 + - 27 - - 17 * col1 DIV + 76 FROM tab1 AS cor0
----
-14
-14
-49

skipif mysql # not compatible
query I rowsort label-1184
SELECT - - 71 + - col2 + - 27 - - 17 * col1 / + 76 FROM tab1 AS cor0
----
-14
-14
-49

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

skipif mysql # not compatible
query I rowsort label-1185
SELECT CAST ( - 67 AS INTEGER ) FROM tab2 AS cor0
----
-67
-67
-67

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

query I rowsort
SELECT DISTINCT - col0 - + col2 + + - col0 AS col0 FROM tab2 AS cor0
----
-115
-168
-208

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT ALL MIN( - - 99 ) + - 99 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL MIN ( - - 99 ) + - 99 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1189
SELECT ALL * FROM tab0 WHERE - + CAST( 51 AS SIGNED ) NOT IN ( + 50 * - 65 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1189
SELECT ALL * FROM tab0 WHERE - + CAST ( 51 AS INTEGER ) NOT IN ( + 50 * - 65 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-1190
SELECT ALL 15 DIV col1 - + 98 AS col0, 19 AS col1 FROM tab2
----
-98
19
-98
19
-98
19

skipif mysql # not compatible
query II rowsort label-1190
SELECT ALL 15 / col1 - + 98 AS col0, 19 AS col1 FROM tab2
----
-98
19
-98
19
-98
19

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

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

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

skipif mysql # not compatible
query II rowsort label-1192
SELECT DISTINCT COUNT ( * ) AS col1, SUM ( DISTINCT + col1 ) FROM tab2
----
3
195

query III rowsort
SELECT * FROM tab1 WHERE 89 >= NULL
----

query I rowsort
SELECT - 54 - - 43 - - 92 FROM tab2
----
81
81
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1195
SELECT DISTINCT + 36 DIV + 63 * - CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1195
SELECT DISTINCT + 36 / + 63 * - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT MIN( ALL 0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1197
SELECT MIN ( ALL 0 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT DISTINCT - MAX( ALL + + col2 ) AS col0 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1198
SELECT DISTINCT - MAX ( ALL + + col2 ) AS col0 FROM tab1 cor0
----
-96

query I rowsort
SELECT ALL + 40 * - - col2 * + col1 FROM tab1
----
11800
127840
53760

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1201
SELECT COUNT( * ) * + + 98 AS col0 FROM tab0 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-1201
SELECT COUNT ( * ) * + + 98 AS col0 FROM tab0 AS cor0
----
294

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

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

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

query I rowsort
SELECT ALL col1 * + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2346
4928
5025

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 33 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT - COUNT( * ) * - - 90 FROM tab1
----
-270

skipif mysql # not compatible
query I rowsort label-1207
SELECT - COUNT ( * ) * - - 90 FROM tab1
----
-270

query I rowsort
SELECT + 60 + - col2 FROM tab2 AS cor0
----
2
20
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1209
SELECT DISTINCT - COUNT( * ) DIV + 87 + + 26 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
26

skipif mysql # not compatible
query I rowsort label-1209
SELECT DISTINCT - COUNT ( * ) / + 87 + + 26 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT 68 * - MIN( ALL - col2 ) FROM tab0
----
6732

skipif mysql # not compatible
query I rowsort label-1210
SELECT 68 * - MIN ( ALL - col2 ) FROM tab0
----
6732

onlyif mysql # DIV for integer division: 
query I rowsort label-1211
SELECT ALL - col0 DIV - ( + - col2 ) AS col1 FROM tab0 AS cor0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL - col0 / - ( + - col2 ) AS col1 FROM tab0 AS cor0
----
-8
0
0

query II rowsort
SELECT DISTINCT - col1 - + 91 AS col1, + 76 FROM tab2
----
-142
76
-158
76
-168
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT - 11 + - SUM( DISTINCT - col2 ) col0 FROM tab0
----
145

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1213
SELECT - 11 + - SUM ( DISTINCT - col2 ) col0 FROM tab0
----
145

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1214
SELECT + ( + MIN( + CAST( - CAST( - + col1 AS DECIMAL ) AS SIGNED ) ) ) + ( - + ( COUNT( * ) ) ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-1214
SELECT + ( + MIN ( + CAST ( - CAST ( - + col1 AS REAL ) AS INTEGER ) ) ) + ( - + ( COUNT ( * ) ) ) FROM tab2
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-1215
SELECT - col2 + + col0 DIV + 37 AS col1 FROM tab0
----
-47
-8
-97

skipif mysql # not compatible
query I rowsort label-1215
SELECT - col2 + + col0 / + 37 AS col1 FROM tab0
----
-47
-8
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-1216
SELECT ALL 65 - + - col2 + + + col1 DIV + col1 AS col0 FROM tab1
----
125
134
162

skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL 65 - + - col2 + + + col1 / + col1 AS col0 FROM tab1
----
125
134
162

query I rowsort
SELECT DISTINCT - 51 + - 10 FROM tab2 WHERE NOT col2 * + col1 + + + col2 * - + col1 * + col2 = - 83
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1218
SELECT DISTINCT SUM( ALL + 51 ) - MAX( 48 ) DIV 10 FROM tab0
----
149

skipif mysql # not compatible
query I rowsort label-1218
SELECT DISTINCT SUM ( ALL + 51 ) - MAX ( 48 ) / 10 FROM tab0
----
149

query III rowsort
SELECT * FROM tab1 WHERE - + col1 + + col2 * + - col0 >= NULL
----

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1223
SELECT DISTINCT CAST( 33 AS SIGNED ), 6 * 22 AS col1 FROM tab0 AS cor0
----
33
132

skipif mysql # not compatible
query II rowsort label-1223
SELECT DISTINCT CAST ( 33 AS INTEGER ), 6 * 22 AS col1 FROM tab0 AS cor0
----
33
132

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1224
SELECT CAST( NULL AS SIGNED ) * col1 * + 20 AS col2, - col2 * + - col2 AS col2 FROM tab2
----
NULL
1600
NULL
3364
NULL
529

skipif mysql # not compatible
query II rowsort label-1224
SELECT CAST ( NULL AS INTEGER ) * col1 * + 20 AS col2, - col2 * + - col2 AS col2 FROM tab2
----
NULL
1600
NULL
3364
NULL
529

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT DISTINCT - 30 * + SUM( DISTINCT + col0 ) FROM tab0
----
-5970

skipif mysql # not compatible
query I rowsort label-1225
SELECT DISTINCT - 30 * + SUM ( DISTINCT + col0 ) FROM tab0
----
-5970

onlyif mysql # DIV for integer division: 
query II rowsort label-1226
SELECT col1 col0, 49 DIV + col2 AS col2 FROM tab2
----
51
2
67
0
77
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1226
SELECT col1 col0, 49 / + col2 AS col2 FROM tab2
----
51
2
67
0
77
1

query I rowsort
SELECT ALL - 74 AS col0 FROM tab2
----
-74
-74
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - 17 - - 48 col1 FROM tab0 AS cor0
----
-1329
-309
31

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0, col1, - - 82 )
----

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

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

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

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

query I rowsort
SELECT + col0 + 91 AS col0 FROM tab0 AS cor0
----
106
178
188

query I rowsort
SELECT + ( + col1 ) + - col0 - - col2 + - col1 * + + 18 FROM tab1 AS cor0
----
-111
-193
-822

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

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

query I rowsort
SELECT - 2 + + 75 FROM tab2
----
73
73
73

query I rowsort
SELECT - 16 + - col2 + - 52 * col2 - - col0 * col0 AS col0 FROM tab1
----
-2503
4082
4661

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

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

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

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

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

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

query I rowsort
SELECT ALL 17 * + - col0 FROM tab0 AS cor0
----
-1479
-1649
-255

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT DISTINCT - + COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
0

skipif mysql # not compatible
query I rowsort label-1244
SELECT DISTINCT - + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
0

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

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

query I rowsort
SELECT DISTINCT + 47 AS col1 FROM tab1 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT DISTINCT - COUNT( * ) + - MAX( ALL + - 6 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1247
SELECT DISTINCT - COUNT ( * ) + - MAX ( ALL + - 6 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1248
SELECT ALL CAST( 51 AS SIGNED ) - + col2 AS col0, - ( - 68 ) AS col2 FROM tab2 AS cor0
----
-7
68
11
68
28
68

skipif mysql # not compatible
query II rowsort label-1248
SELECT ALL CAST ( 51 AS INTEGER ) - + col2 AS col0, - ( - 68 ) AS col2 FROM tab2 AS cor0
----
-7
68
11
68
28
68

query I rowsort
SELECT col1 * + col2 + - ( + col2 ) + - + ( - - col2 ) FROM tab1 AS cor0
----
1152
177
3060

query I rowsort
SELECT + 30 FROM tab0 AS cor0 WHERE + col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1251
SELECT col2, 50 * + + 30 - + CAST( + + col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
59
1495
68
1453
96
1486

skipif mysql # not compatible
query II rowsort label-1251
SELECT col2, 50 * + + 30 - + CAST ( + + col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
59
1495
68
1453
96
1486

query I rowsort
SELECT DISTINCT + + col1 + 66 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
113
71
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1253
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1253
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - 2 * - + col1 * - col0 * + - 98 + - col0 col0 FROM tab1
----
139879
83210
838154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 41 AS col2, col0 col0 FROM tab2
----
41
46
41
64
41
75

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

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

skipif mysql # not compatible
query I rowsort label-1257
SELECT MAX ( + + 47 ) AS col0 FROM tab1
----
47

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1259
SELECT DISTINCT + col2 * CAST( + 59 AS SIGNED ) FROM tab1
----
3481
4012
5664

skipif mysql # not compatible
query I rowsort label-1259
SELECT DISTINCT + col2 * CAST ( + 59 AS INTEGER ) FROM tab1
----
3481
4012
5664

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1261
SELECT ALL + COUNT( * ) * - - ( - 7 ) AS col2 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-1261
SELECT ALL + COUNT ( * ) * - - ( - 7 ) AS col2 FROM tab1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1262
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, - 26 FROM tab0
----
NULL
-26
NULL
-26
NULL
-26

skipif mysql # not compatible
query II rowsort label-1262
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, - 26 FROM tab0
----
NULL
-26
NULL
-26
NULL
-26

query II rowsort
SELECT - + col0 AS col1, ( - col1 ) * + 45 * - 56 AS col1 FROM tab1 AS cor0
----
-51
35280
-85
12600
-91
118440

onlyif mysql # DIV for integer division: 
query I rowsort label-1264
SELECT DISTINCT - col2 DIV - + col0 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-1264
SELECT DISTINCT - col2 / - + col0 FROM tab0
----
0
1
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1266
SELECT DISTINCT CAST( - - col1 AS SIGNED ) + + col0, col0 * col2 AS col2 FROM tab0 AS cor0
----
108
870
96
705
98
9603

skipif mysql # not compatible
query II rowsort label-1266
SELECT DISTINCT CAST ( - - col1 AS INTEGER ) + + col0, col0 * col2 AS col2 FROM tab0 AS cor0
----
108
870
96
705
98
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1267
SELECT - CAST( + - 5 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN NULL AND + + col2 + + col2 + + - 42
----

skipif mysql # not compatible
query I rowsort label-1267
SELECT - CAST ( + - 5 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN NULL AND + + col2 + + col2 + + - 42
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1269
SELECT SUM( DISTINCT 79 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - col0 ) < - - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1269
SELECT SUM ( DISTINCT 79 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - col0 ) < - - col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1270
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 AND - 0 * col2 + - - CAST( + 2 AS SIGNED ) + ( - + 65 )
----

skipif mysql # not compatible
query III rowsort label-1270
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 AND - 0 * col2 + - - CAST ( + 2 AS INTEGER ) + ( - + 65 )
----

query II rowsort
SELECT ALL + col1, + 16 FROM tab1
----
14
16
47
16
5
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT ALL + COUNT( * ) + + 84 FROM tab0 WHERE NOT NULL IS NULL
----
84

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL + COUNT ( * ) + + 84 FROM tab0 WHERE NOT NULL IS NULL
----
84

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL <= col1 * 12 - + - col1 + 10 - + + col1
----

query I rowsort
SELECT - 92 AS col1 FROM tab0 WHERE + col2 * - 95 IS NULL
----

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

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

query I rowsort
SELECT 76 * col1 - col0 AS col1 FROM tab1
----
1013
295
3481

query I rowsort
SELECT ( - col0 ) * - col0 - 39 FROM tab2
----
2077
4057
5586

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1279
SELECT DISTINCT col1 / - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1279
SELECT DISTINCT col1 / - CAST ( NULL AS REAL ) FROM tab2
----
NULL

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

query I rowsort
SELECT ALL + col2 * col2 FROM tab1 WHERE NOT - 97 IS NULL
----
3481
4624
9216

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 <= ( + 53 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT - 65 + col2 AS col1 FROM tab0
----
-18
-55
34

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1286
SELECT ALL - SUM( - col1 ) + 23 AS col2 FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-1286
SELECT ALL - SUM ( - col1 ) + 23 AS col2 FROM tab0
----
126

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

query I rowsort
SELECT DISTINCT col0 * + 12 FROM tab2
----
552
768
900

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND ( - 74 )
----

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

query I rowsort
SELECT DISTINCT - col1 - 49 AS col0 FROM tab2
----
-100
-116
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-1292
SELECT + 60 DIV - col0 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-1292
SELECT + 60 / - col0 FROM tab0
----
-4
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1293
SELECT + 38 / col2 + 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-1293
SELECT + 38 / col2 + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 70 * - 30 FROM tab2
----
-2100
-2100
-2100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1295
SELECT DISTINCT col1 + + CAST( + col0 AS SIGNED ) AS col1 FROM tab0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-1295
SELECT DISTINCT col1 + + CAST ( + col0 AS INTEGER ) AS col1 FROM tab0
----
108
96
98

query I rowsort
SELECT ALL - 24 + col0 AS col2 FROM tab1
----
27
61
67

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

query I rowsort
SELECT col0 - 40 * 93 FROM tab2
----
-3645
-3656
-3674

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT SUM( 16 ) AS col0 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-1299
SELECT SUM ( 16 ) AS col0 FROM tab1
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1300
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1300
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 IN ( - CAST ( NULL AS INTEGER ) )
----

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 73 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT + MIN( - 98 ) - - ( + COUNT( * ) ) AS col0 FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-1303
SELECT + MIN ( - 98 ) - - ( + COUNT ( * ) ) AS col0 FROM tab1
----
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1305
SELECT COUNT( * ) * + 89 AS col2 FROM tab1 cor0
----
267

skipif mysql # not compatible
query I rowsort label-1305
SELECT COUNT ( * ) * + 89 AS col2 FROM tab1 cor0
----
267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - ( + col2 ) ) col2 FROM tab1 AS cor0
----
-59
-68
-96

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * + 62 FROM tab0
----
-1302
-5022
-62

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE NOT + col0 * + 13 <> NULL
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 18 < 15
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * - col2 + - col1 FROM tab1 AS cor0
----
3476
4577
9202

onlyif mysql # aggregate syntax: 
query I rowsort label-1317
SELECT DISTINCT - 91 * COUNT( * ) FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-1317
SELECT DISTINCT - 91 * COUNT ( * ) FROM tab1 AS cor0
----
-273

query I rowsort
SELECT - 32 + col2 FROM tab1 cor0
----
27
36
64

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

query I rowsort
SELECT DISTINCT + 22 + - 20 AS col2 FROM tab2 AS cor0
----
2

query I rowsort
SELECT + + col1 + - ( + 5 + col2 ) * + col1 AS col2 FROM tab0 AS cor0
----
-103
-294
-4131

query I rowsort
SELECT + col1 * col2 + 90 AS col1 FROM tab0 AS cor0
----
189
300
3897

query I rowsort
SELECT DISTINCT col2 * 75 + + col0 FROM tab2 AS cor0
----
1771
3064
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT ALL - COUNT( * ) col1 FROM tab2 AS cor0 WHERE NULL = ( + 34 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1324
SELECT ALL - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NULL = ( + 34 )
----
0

query I rowsort
SELECT + col1 + 27 FROM tab1 AS cor0
----
32
41
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT - 77 + + - COUNT( col0 ) + - 25 FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-1328
SELECT - 77 + + - COUNT ( col0 ) + - 25 FROM tab1
----
-105

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1330
SELECT DISTINCT - SUM ( - col0 ) col1 FROM tab0
----
199

query I rowsort
SELECT DISTINCT + 70 + + col1 FROM tab0
----
151
71
91

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN 82 AND col1
----

query I rowsort
SELECT DISTINCT - ( + - 32 ) FROM tab0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT ALL - - ( - COUNT( * ) ) * COUNT( * ) + + 62 FROM tab2 cor0
----
53

skipif mysql # not compatible
query I rowsort label-1334
SELECT ALL - - ( - COUNT ( * ) ) * COUNT ( * ) + + 62 FROM tab2 cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT - ( COUNT( * ) ) - - 28 col0 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1335
SELECT - ( COUNT ( * ) ) - - 28 col0 FROM tab0 AS cor0
----
25

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE + col0 - - 74 IS NULL AND NOT + 41 * + col2 NOT IN ( - col2 * - col1 - + 0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + + 17 + - col2 col2 FROM tab1 AS cor0
----
1088
1536
944

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

query I rowsort
SELECT - col2 + - 68 AS col0 FROM tab2
----
-108
-126
-91

query I rowsort
SELECT + 39 * - - col1 * 96 + + 55 * + 65 AS col1 FROM tab2
----
194519
254423
291863

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

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

query I rowsort
SELECT - 36 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 67 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1344
SELECT ALL + COUNT( * ), ( + - 37 ) AS col2 FROM tab1 AS cor0
----
3
-37

skipif mysql # not compatible
query II rowsort label-1344
SELECT ALL + COUNT ( * ), ( + - 37 ) AS col2 FROM tab1 AS cor0
----
3
-37

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

query II rowsort
SELECT - 8 AS col2, - col0 AS col0 FROM tab0 AS cor0
----
-8
-15
-8
-87
-8
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT ALL + - 97 * + MAX( + col0 ) - 7 FROM tab2 AS cor0
----
-7282

skipif mysql # not compatible
query I rowsort label-1347
SELECT ALL + - 97 * + MAX ( + col0 ) - 7 FROM tab2 AS cor0
----
-7282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1348
SELECT - COUNT( * ) AS col1, CAST( NULL AS SIGNED ) * + 99 AS col2 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-1348
SELECT - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) * + 99 AS col2 FROM tab2 AS cor0
----
-3
NULL

query I rowsort
SELECT + 3 * - ( + + col0 ) FROM tab0 AS cor0
----
-261
-291
-45

query I rowsort
SELECT 44 * - col1 AS col1 FROM tab0
----
-3564
-44
-924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1351
SELECT DISTINCT CAST( - 9 AS SIGNED ), + COUNT( * ) AS col2 FROM tab2
----
-9
3

skipif mysql # not compatible
query II rowsort label-1351
SELECT DISTINCT CAST ( - 9 AS INTEGER ), + COUNT ( * ) AS col2 FROM tab2
----
-9
3

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( 0 ) BETWEEN - col0 + + col1 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query III rowsort label-1353
SELECT DISTINCT * FROM tab2 WHERE ( col0 + - col0 ) NOT BETWEEN ( NULL ) AND ( - 72 DIV 91 )
----

skipif mysql # not compatible
query III rowsort label-1353
SELECT DISTINCT * FROM tab2 WHERE ( col0 + - col0 ) NOT BETWEEN ( NULL ) AND ( - 72 / 91 )
----

query I rowsort
SELECT ( - + 42 ) FROM tab2
----
-42
-42
-42

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( - 95 - + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1356
SELECT - MIN( 35 ) FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-1356
SELECT - MIN ( 35 ) FROM tab1 AS cor0
----
-35

query I rowsort
SELECT ALL + + col1 * - + col2 + + col1 - col2 * + col2 AS col2 FROM tab2 AS cor0
----
-1651
-4603
-7183

query II rowsort
SELECT + col0, 90 + - col2 FROM tab0 AS cor0
----
15
43
87
80
97
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1359
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 13 * col1 + - ( CAST( NULL AS SIGNED ) ) BETWEEN NULL AND 59 * - 91
----

skipif mysql # not compatible
query III rowsort label-1359
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 13 * col1 + - ( CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND 59 * - 91
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < - 16 * col2
----

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE ( NULL ) NOT IN ( + 71 )
----

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

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0 WHERE - + 4 IS NULL
----

query I rowsort
SELECT DISTINCT 38 FROM tab1 WHERE NOT - - 21 > 94
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 + - col2 col2 FROM tab1
----
-4992
-5074
-6256

query I rowsort
SELECT DISTINCT 74 * - 20 AS col0 FROM tab0
----
-1480

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1370
SELECT ALL 58 * MAX( DISTINCT + col2 ) col0 FROM tab2
----
3364

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1370
SELECT ALL 58 * MAX ( DISTINCT + col2 ) col0 FROM tab2
----
3364

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

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

query II rowsort
SELECT 30 + col0 * ( + + 43 ), col2 AS col0 FROM tab2
----
2008
23
2782
40
3255
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 BETWEEN + - 92 AND - + col1
----
87
21
10

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( + 81 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1377
SELECT ALL CAST( NULL AS SIGNED ) * 51 - 46 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL CAST ( NULL AS INTEGER ) * 51 - 46 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col1 - 34 FROM tab2
----
17
33
43

query II rowsort
SELECT + 26 * - + col1 AS col1, - col2 FROM tab0
----
-2106
-47
-26
-99
-546
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-1380
SELECT ALL col2 DIV + 88 + - col1 * ( - col1 ) FROM tab1 AS cor0
----
197
2209
25

skipif mysql # not compatible
query I rowsort label-1380
SELECT ALL col2 / + 88 + - col1 * ( - col1 ) FROM tab1 AS cor0
----
197
2209
25

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1386
SELECT col2 AS col2, - col1 + - CAST( NULL AS SIGNED ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-1386
SELECT col2 AS col2, - col1 + - CAST ( NULL AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
58
NULL

query II rowsort
SELECT - 92 * ( - + col0 ), col0 FROM tab0
----
1380
15
8004
87
8924
97

query I rowsort
SELECT DISTINCT ( - - 43 ) AS col0 FROM tab2
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-1389
SELECT COUNT( * ) AS col0, COUNT( * ) * - COUNT( * ) - - - 99 FROM tab2
----
3
-108

skipif mysql # not compatible
query II rowsort label-1389
SELECT COUNT ( * ) AS col0, COUNT ( * ) * - COUNT ( * ) - - - 99 FROM tab2
----
3
-108

query I rowsort
SELECT DISTINCT + 88 * + 56 * - 27 AS col0 FROM tab1
----
-133056

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT + MAX( ALL + - col2 ) * - MIN( - - col2 ) FROM tab2 WHERE NOT - 40 > + 33
----
529

skipif mysql # not compatible
query I rowsort label-1391
SELECT + MAX ( ALL + - col2 ) * - MIN ( - - col2 ) FROM tab2 WHERE NOT - 40 > + 33
----
529

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1393
SELECT ALL + CAST( 93 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-1393
SELECT ALL + CAST ( 93 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
93
93
93

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 73 + col1 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT ( + COUNT( * ) ) * 21 AS col2 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-1396
SELECT ( + COUNT ( * ) ) * 21 AS col2 FROM tab2
----
63

query II rowsort
SELECT DISTINCT - 65 * - 67, + col1 FROM tab2
----
4355
51
4355
67
4355
77

query I rowsort
SELECT + 56 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT DISTINCT - col0 + + 85 + - col0 * - col2 AS col0 FROM tab0 AS cor0
----
775
868
9591

onlyif mysql # DIV for integer division: 
query I rowsort label-1400
SELECT ALL - col1 DIV + + col2 + - 74 FROM tab1 AS cor0
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-1400
SELECT ALL - col1 / + + col2 + - 74 FROM tab1 AS cor0
----
-74
-74
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1401
SELECT - col2 + + col0 - - col1 - - + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-1401
SELECT - col2 + + col0 - - col1 - - + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
141
142
97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1403
SELECT col2 + 73 + - 56 DIV + - col0 - 71 * - col1 AS col2 FROM tab0 AS cor0
----
1574
243
5874

skipif mysql # not compatible
query I rowsort label-1403
SELECT col2 + 73 + - 56 / + - col0 - 71 * - col1 AS col2 FROM tab0 AS cor0
----
1574
243
5874

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

query I rowsort
SELECT DISTINCT 96 + - col0 FROM tab2 AS cor0
----
21
32
50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT DISTINCT + MAX( 19 ) - COUNT( * ) FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-1407
SELECT DISTINCT + MAX ( 19 ) - COUNT ( * ) FROM tab1 AS cor0
----
16

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT + ( + + MAX( - 88 ) ) FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-1410
SELECT + ( + + MAX ( - 88 ) ) FROM tab0
----
-88

query I rowsort
SELECT col2 * 89 AS col1 FROM tab1
----
5251
6052
8544

onlyif mysql # DIV for integer division: 
query I rowsort label-1412
SELECT ALL ( col0 ) DIV 82 - - 11 FROM tab0
----
11
12
12

skipif mysql # not compatible
query I rowsort label-1412
SELECT ALL ( col0 ) / 82 - - 11 FROM tab0
----
11
12
12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1413
SELECT ALL + 43 + + CAST( - col1 AS SIGNED ) DIV - col0 AS col1 FROM tab0
----
43
43
48

skipif mysql # not compatible
query I rowsort label-1413
SELECT ALL + 43 + + CAST ( - col1 AS INTEGER ) / - col0 AS col1 FROM tab0
----
43
43
48

query I rowsort
SELECT col2 * - + 98 * - - col0 * - 14 AS col1 FROM tab1
----
6717312
6880580
8489936

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1416
SELECT ALL CAST ( NULL AS REAL ) / + COUNT ( * ) col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL - 63 * + 11 AS col2 FROM tab1 WHERE NOT + - col0 <> 53
----

query I rowsort
SELECT ALL 2 * - col2 * + col1 FROM tab1
----
-2688
-590
-6392

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT - 4 - COUNT( * ) * - COUNT( * ) AS col1 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-1419
SELECT - 4 - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0
----
5

query I rowsort
SELECT + 22 - 69 + + col0 + - 94 FROM tab0
----
-126
-44
-54

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

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

skipif mysql # not compatible
query I rowsort label-1422
SELECT ALL + 41 / col0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1423
SELECT DISTINCT - 3 + + 1 + + MAX( + - col0 ) + + SUM( - col0 ) * + COUNT( * ) / - AVG ( + col2 ) + - AVG ( + CAST( NULL AS DECIMAL ) ) * + 67 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1423
SELECT DISTINCT - 3 + + 1 + + MAX ( + - col0 ) + + SUM ( - col0 ) * + COUNT ( * ) / - AVG ( + col2 ) + - AVG ( + CAST ( NULL AS REAL ) ) * + 67 AS col2 FROM tab0 AS cor0
----
NULL

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

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

query I rowsort
SELECT - - 24 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT DISTINCT - ( - 78 ) * - 21 AS col0 FROM tab0
----
-1638

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1430
SELECT ALL - + 88 DIV col2 + 61 + - col2 AS col1 FROM tab0 AS cor0
----
-38
13
43

skipif mysql # not compatible
query I rowsort label-1430
SELECT ALL - + 88 / col2 + 61 + - col2 AS col1 FROM tab0 AS cor0
----
-38
13
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 69, - col0 + + 75 + + - 31 col1 FROM tab2 AS cor0
----
-69
-2
-69
-20
-69
-31

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1433
SELECT ALL + COUNT( * ) AS col1, 1 - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
-2

skipif mysql # not compatible
query II rowsort label-1433
SELECT ALL + COUNT ( * ) AS col1, 1 - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
-2

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1436
SELECT DISTINCT 75 DIV + - COUNT( - 95 ) AS col0 FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-1436
SELECT DISTINCT 75 / + - COUNT ( - 95 ) AS col0 FROM tab0
----
-25

onlyif mysql # DIV for integer division: 
query II rowsort label-1437
SELECT ALL col2 DIV col2, col2 AS col0 FROM tab0
----
1
10
1
47
1
99

skipif mysql # not compatible
query II rowsort label-1437
SELECT ALL col2 / col2, col2 AS col0 FROM tab0
----
1
10
1
47
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1438
SELECT DISTINCT * FROM tab0 WHERE col2 + + col2 * + CAST( NULL AS SIGNED ) IN ( - ( - col1 ) )
----

skipif mysql # not compatible
query III rowsort label-1438
SELECT DISTINCT * FROM tab0 WHERE col2 + + col2 * + CAST ( NULL AS INTEGER ) IN ( - ( - col1 ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1439
SELECT DISTINCT + col0 DIV ( + col0 ) * - col0 * - + col1 * - + col0 + - + 49 AS col2, - 72 DIV + + 89 FROM tab0
----
-158998
0
-18274
0
-9458
0

skipif mysql # not compatible
query II rowsort label-1439
SELECT DISTINCT + col0 / ( + col0 ) * - col0 * - + col1 * - + col0 + - + 49 AS col2, - 72 / + + 89 FROM tab0
----
-158998
0
-18274
0
-9458
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1440
SELECT + col1 * + col0 col2, 34 DIV - col0 FROM tab0
----
1215
-2
1827
0
97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1440
SELECT + col1 * + col0 col2, 34 / - col0 FROM tab0
----
1215
-2
1827
0
97
0

query I rowsort
SELECT ALL 7 * - 98 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 4426ca20a1e0a9b5089818a0238da6c1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 5 + - + col1 * - 18 col1 FROM tab2 cor0
----
1201
1381
913

onlyif mysql # DIV for integer division: 
query I rowsort label-1444
SELECT col2 DIV - - 33 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-1444
SELECT col2 / - - 33 FROM tab1
----
1
2
2

query I rowsort
SELECT + col2 * + col2 * + + col2 * - 66 AS col0 FROM tab1
----
-13555014
-20752512
-58392576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, + 2 FROM tab0
----
-1
2
-21
2
-81
2

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND ( + - col1 + 39 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col0 + col1 * col0 + - + 38 + col0 AS col2 FROM tab0 AS cor0
----
1207
1963
253

query I rowsort
SELECT + - 4 AS col0 FROM tab2 WHERE + ( 64 ) >= - + 21
----
-4
-4
-4

query I rowsort
SELECT - ( + col1 ) * + col0 * + col2 + + col1 FROM tab1
----
-25070
-290789
-68530

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

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

query I rowsort
SELECT + 45 + + + col0 FROM tab1
----
130
136
96

query I rowsort
SELECT ALL - col1 * - - col1 - - col0 FROM tab0
----
-354
-6546
96

query I rowsort
SELECT DISTINCT + col2 - - - 89 AS col2 FROM tab2
----
-31
-49
-66

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

skipif mysql # not compatible
query I rowsort label-1456
SELECT COUNT ( * ) + + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1457
SELECT + + ( - SUM( ALL - + 45 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
405

skipif mysql # not compatible
query I rowsort label-1457
SELECT + + ( - SUM ( ALL - + 45 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 83 AS col0, + 99 + + + 53 col1 FROM tab0
----
83
152

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

query I rowsort
SELECT 80 * - 85 FROM tab2
----
-6800
-6800
-6800

onlyif mysql # aggregate syntax: 
query I rowsort label-1461
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 > - 43 * + 43
----
0

skipif mysql # not compatible
query I rowsort label-1461
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 > - 43 * + 43
----
0

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 69 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT DISTINCT COUNT( * ) * - - 70 AS col0 FROM tab0 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-1464
SELECT DISTINCT COUNT ( * ) * - - 70 AS col0 FROM tab0 AS cor0
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1465
SELECT - col0 + ( + col2 ) - + col2 + - ( 31 ) * + CAST( - - col0 AS SIGNED ) FROM tab1
----
-1632
-2720
-2912

skipif mysql # not compatible
query I rowsort label-1465
SELECT - col0 + ( + col2 ) - + col2 + - ( 31 ) * + CAST ( - - col0 AS INTEGER ) FROM tab1
----
-1632
-2720
-2912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1466
SELECT - 18 * + CAST( + - col0 AS SIGNED ) FROM tab1
----
1530
1638
918

skipif mysql # not compatible
query I rowsort label-1466
SELECT - 18 * + CAST ( + - col0 AS INTEGER ) FROM tab1
----
1530
1638
918

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1467
SELECT + COUNT( * ) DIV + + 70 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1467
SELECT + COUNT ( * ) / + + 70 FROM tab0
----
0

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1470
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col0 FROM tab2 WHERE ( ( - - 46 ) ) = NULL
----

skipif mysql # not compatible
query I rowsort label-1470
SELECT DISTINCT CAST ( NULL AS REAL ) AS col0 FROM tab2 WHERE ( ( - - 46 ) ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT DISTINCT COUNT( - 78 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1471
SELECT DISTINCT COUNT ( - 78 ) AS col2 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1473
SELECT ALL + COUNT( * ) + - 37 DIV 21 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL + COUNT ( * ) + - 37 / 21 FROM tab0 AS cor0
----
2

query I rowsort
SELECT + - col0 + col2 + 71 + + 93 - + 13 FROM tab1 AS cor0
----
125
128
196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1475
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 * - CAST( NULL AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1475
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 * - CAST ( NULL AS INTEGER ) AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 51 NOT IN ( col0, 9 + - col1, - 52 * + - 74 + - + 31 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query II rowsort
SELECT DISTINCT - col0 + + 25 AS col0, 16 FROM tab2 cor0
----
-21
16
-39
16
-50
16

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-1481
SELECT col0 / - + col2, + col2 AS col2 FROM tab2 AS cor0
----
-1
40
-1
58
-2
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1482
SELECT + - COUNT( * ) * - ( + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1482
SELECT + - COUNT ( * ) * - ( + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1483
SELECT COUNT( DISTINCT col1 ) AS col2, + SUM( + col1 ) FROM tab1 AS cor0
----
3
66

skipif mysql # not compatible
query II rowsort label-1483
SELECT COUNT ( DISTINCT col1 ) AS col2, + SUM ( + col1 ) FROM tab1 AS cor0
----
3
66

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1486
SELECT DISTINCT - col1 DIV - + 68 - - col0 FROM tab2 AS cor0
----
46
65
75

skipif mysql # not compatible
query I rowsort label-1486
SELECT DISTINCT - col1 / - + 68 - - col0 FROM tab2 AS cor0
----
46
65
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1487
SELECT - + CAST( 72 AS SIGNED ) - + + COUNT( * ) FROM tab2 WHERE + - 11 IS NULL
----
-72

skipif mysql # not compatible
query I rowsort label-1487
SELECT - + CAST ( 72 AS INTEGER ) - + + COUNT ( * ) FROM tab2 WHERE + - 11 IS NULL
----
-72

query I rowsort
SELECT + col2 - - 46 FROM tab2
----
104
69
86

query I rowsort
SELECT ALL - + 74 * col2 * 64 FROM tab1 AS cor0
----
-279424
-322048
-454656

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

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

query I rowsort
SELECT DISTINCT - - 49 * + col2 - + 71 FROM tab1 cor0
----
2820
3261
4633

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT ALL + COUNT( * ) + - 67 FROM tab2 WHERE ( - col0 ) NOT IN ( - 84 )
----
-64

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL + COUNT ( * ) + - 67 FROM tab2 WHERE ( - col0 ) NOT IN ( - 84 )
----
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, 92 FROM tab1 WHERE NOT 15 + + 92 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1495
SELECT 61 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1497
SELECT DISTINCT - + 46 DIV col0, - 14 + + - col1 AS col2 FROM tab0 AS cor0
----
-3
-95
0
-15
0
-35

skipif mysql # not compatible
query II rowsort label-1497
SELECT DISTINCT - + 46 / col0, - 14 + + - col1 AS col2 FROM tab0 AS cor0
----
-3
-95
0
-15
0
-35

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

query II rowsort
SELECT ALL - + col2 + + 44 AS col2, col0 FROM tab0 AS cor0
----
-3
15
-55
97
34
87

query I rowsort
SELECT + + 92 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2, + col1, + col2, + 69, + - 59 + - 12, - col0 + - col1 + + col1 )
----

query I rowsort
SELECT DISTINCT - col1 * col0 - - col0 * 55 FROM tab2 AS cor0
----
-1408
-900
184

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

query I rowsort
SELECT DISTINCT - + 25 FROM tab1 WHERE NOT - 84 = col2
----
-25

query II rowsort
SELECT ALL - col2 AS col1, + 64 * - 32 AS col2 FROM tab2
----
-23
-2048
-40
-2048
-58
-2048

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT SUM( 20 ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-1505
SELECT SUM ( 20 ) FROM tab1
----
60

query II rowsort
SELECT + col2 * - 2 + - col2 AS col1, 5 AS col1 FROM tab2
----
-120
5
-174
5
-69
5

query I rowsort
SELECT ALL + + col2 FROM tab0 WHERE - - col1 NOT BETWEEN + col2 AND NULL
----
99

query I rowsort
SELECT DISTINCT + + 87 + + - col1 * + col2 AS col2 FROM tab0 AS cor0
----
-12
-123
-3720

query I rowsort
SELECT + 64 + + 59 AS col1 FROM tab2 AS cor0
----
123
123
123

query I rowsort
SELECT DISTINCT + 59 + col1 - - 85 + - col2 * col0 * + - col1 + - - 68 FROM tab2 AS cor0
----
197409
291729
54221

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1512
SELECT + COUNT( 32 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1512
SELECT + COUNT ( 32 ) FROM tab1
----
3

query I rowsort
SELECT - 90 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query II rowsort
SELECT ALL - 23 * + - col0 + + col0, - 17 + + col0 * - - 54 * + col0 AS col2 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT - col1 - + + 14 - + col1 FROM tab0 AS cor0
----
-16
-176
-56

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

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

query I rowsort
SELECT DISTINCT + col0 + - - 82 FROM tab0 AS cor0
----
169
179
97

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

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

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

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

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

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

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

query I rowsort
SELECT + col2 * - col0 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-705
-870
-9603

query I rowsort
SELECT ALL 0 + col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1524
SELECT + 40 + + MAX( DISTINCT 15 ) FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-1524
SELECT + 40 + + MAX ( DISTINCT 15 ) FROM tab1
----
55

query I rowsort
SELECT ALL - ( 30 ) AS col1 FROM tab0
----
-30
-30
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1526
SELECT + CAST( col0 AS SIGNED ) AS col1, - col1 AS col0 FROM tab2
----
46
-51
64
-77
75
-67

skipif mysql # not compatible
query II rowsort label-1526
SELECT + CAST ( col0 AS INTEGER ) AS col1, - col1 AS col0 FROM tab2
----
46
-51
64
-77
75
-67

query I rowsort
SELECT - col2 * 11 FROM tab2
----
-253
-440
-638

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col1 NOT IN ( + 52, 41 * 51, + 77 )
----
46
51
23
75
67
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> 78 * + col1 - + 65
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1532
SELECT ALL + CAST( - + col2 AS SIGNED ) * + ( - col2 ) col2 FROM tab0 AS cor0
----
100
2209
9801

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1532
SELECT ALL + CAST ( - + col2 AS INTEGER ) * + ( - col2 ) col2 FROM tab0 AS cor0
----
100
2209
9801

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1534
SELECT DISTINCT COUNT( * ) AS col0, + 68 * COUNT( * ) FROM tab1
----
3
204

skipif mysql # not compatible
query II rowsort label-1534
SELECT DISTINCT COUNT ( * ) AS col0, + 68 * COUNT ( * ) FROM tab1
----
3
204

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

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

query I rowsort
SELECT - 6 * + col2 AS col2 FROM tab2
----
-138
-240
-348

query I rowsort
SELECT ALL + col2 * - ( - 57 ) FROM tab1
----
3363
3876
5472

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

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

query I rowsort
SELECT DISTINCT + 36 * + + 53 - - + col1 AS col2 FROM tab0 AS cor0
----
1909
1929
1989

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

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

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

query I rowsort
SELECT + col1 + 22 AS col1 FROM tab2
----
73
89
99

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 >= - - 40 / + - 11 + col1 + - col1 + - 14 * + + 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT + + 76 + + COUNT( * ) * - 39 FROM tab0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
-41

skipif mysql # not compatible
query I rowsort label-1546
SELECT + + 76 + + COUNT ( * ) * - 39 FROM tab0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
-41

query I rowsort
SELECT col0 * + - 11 FROM tab2
----
-506
-704
-825

query I rowsort
SELECT DISTINCT col1 * - 40 AS col1 FROM tab2
----
-2040
-2680
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT DISTINCT + - COUNT( * ) * + MIN( - - 82 ) FROM tab2 cor0
----
-246

skipif mysql # not compatible
query I rowsort label-1549
SELECT DISTINCT + - COUNT ( * ) * + MIN ( - - 82 ) FROM tab2 cor0
----
-246

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - 99 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1551
SELECT DISTINCT COUNT( * ) + 50 FROM tab2 cor0
----
53

skipif mysql # not compatible
query I rowsort label-1551
SELECT DISTINCT COUNT ( * ) + 50 FROM tab2 cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT DISTINCT - COUNT( * ) + - SUM( col2 ) FROM tab2 cor0
----
-124

skipif mysql # not compatible
query I rowsort label-1552
SELECT DISTINCT - COUNT ( * ) + - SUM ( col2 ) FROM tab2 cor0
----
-124

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1553
SELECT * FROM tab0 WHERE - CAST( + 19 AS SIGNED ) * + col1 = - CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1553
SELECT * FROM tab0 WHERE - CAST ( + 19 AS INTEGER ) * + col1 = - CAST ( + col0 AS INTEGER )
----

query I rowsort
SELECT - 13 * + col2 FROM tab1 AS cor0
----
-1248
-767
-884

onlyif mysql # aggregate syntax: 
query II rowsort label-1555
SELECT - + COUNT( * ), + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-1555
SELECT - + COUNT ( * ), + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND NULL
----
0
0

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

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

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

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

query II rowsort
SELECT ALL 65 AS col1, col1 AS col1 FROM tab0
----
65
1
65
21
65
81

query I rowsort
SELECT ALL - 97 * - 56 AS col1 FROM tab2
----
5432
5432
5432

query I rowsort
SELECT DISTINCT + col2 * + col1 * - - col0 FROM tab0
----
18270
57105
9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1562
SELECT DISTINCT * FROM tab1 WHERE + + ( 36 ) * + col1 / + col2 + - CAST( + - 10 AS SIGNED ) + + 32 > NULL
----

skipif mysql # not compatible
query III rowsort label-1562
SELECT DISTINCT * FROM tab1 WHERE + + ( 36 ) * + col1 / + col2 + - CAST ( + - 10 AS INTEGER ) + + 32 > NULL
----

query I rowsort
SELECT ALL 83 * col1 FROM tab2
----
4233
5561
6391

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

skipif mysql # not compatible
query II rowsort label-1564
SELECT 27 AS col0, MIN ( ALL - + col0 ) AS col2 FROM tab0
----
27
-97

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 * + + col1 NOT IN ( + 62, 67 - 67 / - ( 38 ), - - 28 )
----

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

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - 80 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

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

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

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

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

query II rowsort
SELECT - col1, + col2 * + 69 * + + col0 * - col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-1
-65598093
-21
-600300
-81
-2286315

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT SUM( DISTINCT + 70 ) FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-1573
SELECT SUM ( DISTINCT + 70 ) FROM tab0 AS cor0
----
70

query I rowsort
SELECT ALL 51 FROM tab2 AS cor0 WHERE - 35 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 70 IS NULL AND NULL = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col0, col2 col0 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT - 36 + - + col0 FROM tab2
----
-100
-111
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-1578
SELECT - col2 + + + col1 + + 81 + - - col2 DIV + - 58 * - - col1, col1 FROM tab0
----
-18
1
115
81
92
21

skipif mysql # not compatible
query II rowsort label-1578
SELECT - col2 + + + col1 + + 81 + - - col2 / + - 58 * - - col1, col1 FROM tab0
----
-18
1
115
81
92
21

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 46 * - 40 >= NULL
----

query I rowsort
SELECT ALL + 68 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT + 74 = NULL
----

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

query I rowsort
SELECT ALL 59 AS col0 FROM tab2 cor0
----
59
59
59

query I rowsort
SELECT - col2 * - 65 FROM tab1 AS cor0
----
3835
4420
6240

query II rowsort
SELECT col2 AS col1, - 95 AS col1 FROM tab2
----
23
-95
40
-95
58
-95

query I rowsort
SELECT ALL 47 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + + col1 col1 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL 81 * + - col2 AS col0 FROM tab1
----
-4779
-5508
-7776

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1591
SELECT - 8 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1591
SELECT - 8 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1593
SELECT DISTINCT + 54 DIV + col1 AS col1 FROM tab0
----
0
2
54

skipif mysql # not compatible
query I rowsort label-1593
SELECT DISTINCT + 54 / + col1 AS col1 FROM tab0
----
0
2
54

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1595
SELECT * FROM tab2 WHERE NOT CAST( + col1 AS DECIMAL ) - col1 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1595
SELECT * FROM tab2 WHERE NOT CAST ( + col1 AS REAL ) - col1 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT + 17 * + COUNT( * ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1596
SELECT + 17 * + COUNT ( * ) FROM tab2 AS cor0
----
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT DISTINCT SUM( ALL - 18 ) AS col2 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-1598
SELECT DISTINCT SUM ( ALL - 18 ) AS col2 FROM tab2
----
-54

query II rowsort
SELECT DISTINCT + 40, col0 FROM tab0 AS cor0
----
40
15
40
87
40
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1601
SELECT 90 + - 56 + - COUNT( ALL - - 1 ) FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-1601
SELECT 90 + - 56 + - COUNT ( ALL - - 1 ) FROM tab1 AS cor0
----
31

onlyif mysql # DIV for integer division: 
query II rowsort label-1602
SELECT col1, - 89 + - + col1 DIV 23 FROM tab0 AS cor0
----
1
-89
21
-89
81
-92

skipif mysql # not compatible
query II rowsort label-1602
SELECT col1, - 89 + - + col1 / 23 FROM tab0 AS cor0
----
1
-89
21
-89
81
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1603
SELECT DISTINCT + CAST( - MAX( DISTINCT col2 ) AS SIGNED ) AS col2, COUNT( * ) col0 FROM tab0
----
-99
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1603
SELECT DISTINCT + CAST ( - MAX ( DISTINCT col2 ) AS INTEGER ) AS col2, COUNT ( * ) col0 FROM tab0
----
-99
3

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

query I rowsort
SELECT ALL col0 + + 57 AS col1 FROM tab2 AS cor0
----
103
121
132

query I rowsort
SELECT ALL - - col0 - - 65 FROM tab0 AS cor0
----
152
162
80

query II rowsort
SELECT + col0 + + + col2, col1 FROM tab2 AS cor0
----
104
77
133
67
69
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT + 44 * - + MAX( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
1012

skipif mysql # not compatible
query I rowsort label-1608
SELECT + 44 * - + MAX ( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
1012

query I rowsort
SELECT 34 * - 85 FROM tab1 cor0
----
-2890
-2890
-2890

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1610
SELECT + + CAST( + col1 AS SIGNED ) * col0 DIV + + col2 AS col1 FROM tab2 AS cor0
----
102
123
86

skipif mysql # not compatible
query I rowsort label-1610
SELECT + + CAST ( + col1 AS INTEGER ) * col0 / + + col2 AS col1 FROM tab2 AS cor0
----
102
123
86

query I rowsort
SELECT DISTINCT + col1 * + 92 * 60 FROM tab2 AS cor0
----
281520
369840
425040

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

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

query I rowsort
SELECT + 47 * + col1 * col1 * - col2 FROM tab0 AS cor0
----
-14493249
-207270
-4653

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

query II rowsort
SELECT ALL col1 * - 89 AS col0, + 90 FROM tab0
----
-1869
90
-7209
90
-89
90

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

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

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

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

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

query II rowsort
SELECT DISTINCT - col1 + + col0 * - col2 + 30, - col2 AS col1 FROM tab1 AS cor0
----
-4880
-96
-4990
-59
-6205
-68

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

query II rowsort
SELECT 73 + - col1, col0 AS col1 FROM tab2 cor0
----
-4
64
22
46
6
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1622
SELECT CAST( + - MIN( - - col0 ) AS SIGNED ) + + + 21 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-1622
SELECT CAST ( + - MIN ( - - col0 ) AS INTEGER ) + + + 21 FROM tab2 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query II rowsort label-1623
SELECT ALL - 1 AS col2, - 61 + - COUNT( * ) FROM tab2
----
-1
-64

skipif mysql # not compatible
query II rowsort label-1623
SELECT ALL - 1 AS col2, - 61 + - COUNT ( * ) FROM tab2
----
-1
-64

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1626
SELECT + - col0, + col2 DIV 57 AS col2 FROM tab2 AS cor0
----
-46
0
-64
0
-75
1

skipif mysql # not compatible
query II rowsort label-1626
SELECT + - col0, + col2 / 57 AS col2 FROM tab2 AS cor0
----
-46
0
-64
0
-75
1

query II rowsort
SELECT ALL + - col2, + 79 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-10
79
-47
79
-99
79

onlyif mysql # DIV for integer division: 
query II rowsort label-1628
SELECT ALL + col0 + - - col1 DIV + col1 AS col1, col1 FROM tab2 AS cor0
----
47
51
65
77
76
67

skipif mysql # not compatible
query II rowsort label-1628
SELECT ALL + col0 + - - col1 / + col1 AS col1, col1 FROM tab2 AS cor0
----
47
51
65
77
76
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1629
SELECT ALL + COUNT( + 86 ) + - ( - 32 ) AS col2 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-1629
SELECT ALL + COUNT ( + 86 ) + - ( - 32 ) AS col2 FROM tab2 AS cor0
----
35

query I rowsort
SELECT ALL col0 + - 90 + - 70 * col0 FROM tab2 AS cor0
----
-3264
-4506
-5265

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT DISTINCT + 16 + + 25 + + COUNT( * ) * + - ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT + 16 + + 25 + + COUNT ( * ) * + - ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
50

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 > col0
----
46
51
23
64
77
40

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1636
SELECT + CAST( col0 AS SIGNED ) * + 87 * + col1 + - 38 FROM tab0
----
105667
158911
8401

skipif mysql # not compatible
query I rowsort label-1636
SELECT + CAST ( col0 AS INTEGER ) * + 87 * + col1 + - 38 FROM tab0
----
105667
158911
8401

query I rowsort
SELECT DISTINCT - 60 - - 9 - + col0 + - - col0 * + - col0 * - col1 FROM tab2
----
107819
315277
376749

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1638
SELECT - - ( + CAST( - col2 AS SIGNED ) ) * - col2 * - col2 FROM tab1 WHERE + - col1 * - 9 + + col2 IS NOT NULL
----
-205379
-314432
-884736

skipif mysql # not compatible
query I rowsort label-1638
SELECT - - ( + CAST ( - col2 AS INTEGER ) ) * - col2 * - col2 FROM tab1 WHERE + - col1 * - 9 + + col2 IS NOT NULL
----
-205379
-314432
-884736

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT ALL - COUNT( + + col1 ) - + + 83 FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-1639
SELECT ALL - COUNT ( + + col1 ) - + + 83 FROM tab1
----
-86

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + 64 / - - col0 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1645
SELECT DISTINCT + col2 * - col0 + CAST( NULL AS SIGNED ), + col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-1645
SELECT DISTINCT + col2 * - col0 + CAST ( NULL AS INTEGER ), + col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + - 8 * + + col2 FROM tab2 AS cor0
----
-184
-320
-464

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

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

query I rowsort
SELECT DISTINCT - - 6 FROM tab2 cor0
----
6

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

query I rowsort
SELECT ALL col0 * col2 - col0 + - col1 * - col2 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

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

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

query I rowsort
SELECT + 21 * + 60 AS col2 FROM tab1
----
1260
1260
1260

query I rowsort
SELECT 86 * 9 FROM tab0
----
774
774
774

onlyif mysql # DIV for integer division: 
query II rowsort label-1655
SELECT ALL 91, - col1 + - + 25 DIV - col0 AS col0 FROM tab0
----
91
-1
91
-21
91
-80

skipif mysql # not compatible
query II rowsort label-1655
SELECT ALL 91, - col1 + - + 25 / - col0 AS col0 FROM tab0
----
91
-1
91
-21
91
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-1656
SELECT 78 DIV + 28 FROM tab1
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1656
SELECT 78 / + 28 FROM tab1
----
2
2
2

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1658
SELECT 19 DIV + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-1658
SELECT 19 / + COUNT ( * ) FROM tab1
----
6

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

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

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE + col2 + - + col2 + 95 + - col0 - - 32 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1662
SELECT DISTINCT - col0 DIV - col1 - - col2 + col0 * col1 * + + 93 * col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
10036211
29331496
35049434

skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT - col0 / - col1 - - col2 + col0 * col1 * + + 93 * col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
10036211
29331496
35049434

query I rowsort
SELECT DISTINCT 6 + col1 FROM tab2
----
57
73
83

query I rowsort
SELECT + col2 * - col1 + - 4 AS col1 FROM tab0
----
-103
-214
-3811

query I rowsort
SELECT - - col0 + - - ( 25 ) AS col0 FROM tab2 AS cor0
----
100
71
89

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1667
SELECT + MAX( DISTINCT + col2 ) * - - MAX( ALL - ( ( 44 ) ) ) AS col2 FROM tab0 cor0 WHERE - col0 + - col1 BETWEEN - col1 AND - + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1667
SELECT + MAX ( DISTINCT + col2 ) * - - MAX ( ALL - ( ( 44 ) ) ) AS col2 FROM tab0 cor0 WHERE - col0 + - col1 BETWEEN - col1 AND - + col0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + - col0 IS NULL
----

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

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

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

query I rowsort
SELECT DISTINCT - col2 * - 80 * + 66 - + 91 * - col0 + + col0 AS col1 FROM tab1
----
319340
367412
511572

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1672
SELECT DISTINCT - CAST( col0 AS SIGNED ) DIV col2 - + - col0 FROM tab2
----
44
63
74

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT - CAST ( col0 AS INTEGER ) / col2 - + - col0 FROM tab2
----
44
63
74

onlyif mysql # DIV for integer division: 
query I rowsort label-1673
SELECT ALL col2 * + + 43 * - col0 DIV + - col0 FROM tab1
----
2537
2924
4128

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL col2 * + + 43 * - col0 / + - col0 FROM tab1
----
2537
2924
4128

query I rowsort
SELECT 49 - - - col1 + col1 * col0 FROM tab0
----
1183
145
1855

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT ALL 24 - COUNT( - 29 ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-1675
SELECT ALL 24 - COUNT ( - 29 ) FROM tab1
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1676
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) / ( - - MAX( col0 ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1676
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) / ( - - MAX ( col0 ) ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + col0 + + + 51 FROM tab2
----
115
126
97

query I rowsort
SELECT ALL + 91 AS col0 FROM tab2 cor0 WHERE NOT - col1 * - 23 + - col2 - + col0 > - col1 * col2
----

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

skipif mysql # not compatible
query I rowsort label-1679
SELECT DISTINCT MAX ( DISTINCT - 91 ) AS col0 FROM tab2
----
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1680
SELECT - ( CAST( NULL AS SIGNED ) ) * 53 * - + COUNT( DISTINCT - 42 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1680
SELECT - ( CAST ( NULL AS INTEGER ) ) * 53 * - + COUNT ( DISTINCT - 42 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col1 * + - col1 * + col1 AS col0 FROM tab1 AS cor0
----
103823
125
2744

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

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

skipif mysql # not compatible
query I rowsort label-1683
SELECT MAX ( DISTINCT - + CAST ( + - ( + - col2 ) AS INTEGER ) ) AS col1 FROM tab0 cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT + 89 * COUNT( * ) + 16 FROM tab2 AS cor0
----
283

skipif mysql # not compatible
query I rowsort label-1684
SELECT + 89 * COUNT ( * ) + 16 FROM tab2 AS cor0
----
283

onlyif mysql # aggregate syntax: 
query I rowsort label-1685
SELECT - + 10 * - MIN( DISTINCT - - col1 ) AS col2 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-1685
SELECT - + 10 * - MIN ( DISTINCT - - col1 ) AS col2 FROM tab1 AS cor0
----
50

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 56 * - - col0 BETWEEN col1 AND NULL
----

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

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

query I rowsort
SELECT ALL + + col1 + 39 AS col2 FROM tab1 AS cor0
----
44
53
86

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

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

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

query I rowsort
SELECT 55 + 32 + 90 + + col1 + - - col2 * - 95 AS col2 FROM tab2
----
-1957
-3546
-5266

query I rowsort
SELECT col2 * - + 43 + + + 62 AS col0 FROM tab2
----
-1658
-2432
-927

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

query I rowsort
SELECT DISTINCT - 5 + col2 AS col0 FROM tab1 AS cor0
----
54
63
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT DISTINCT - 2 + COUNT( * ) - COUNT( * ) + - 82 + COUNT( * ) * 64 * - SUM( ALL + col0 ) + + + MAX( DISTINCT + col2 ) FROM tab1 AS cor0
----
-43572

skipif mysql # not compatible
query I rowsort label-1696
SELECT DISTINCT - 2 + COUNT ( * ) - COUNT ( * ) + - 82 + COUNT ( * ) * 64 * - SUM ( ALL + col0 ) + + + MAX ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-43572

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

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE NOT - col2 + col2 <= - - 42 * - col1
----
51
67
77

query III rowsort
SELECT * FROM tab2 WHERE - col0 + + col1 + col1 + - col2 - - 79 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + col0 * + 20 + - col0 AS col0 FROM tab0 AS cor0
----
151293
188083
4485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1701
SELECT - col2 - + + col2 + CAST( + + col2 AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1701
SELECT - col2 - + + col2 + CAST ( + + col2 AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - col2 + - col0 * - col2 + col1 AS col1 FROM tab1 cor0
----
4814
4961
6167

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1704
SELECT DISTINCT 66 DIV col2 + + - col1 + 96 AS col2 FROM tab1 cor0
----
49
82
92

skipif mysql # not compatible
query I rowsort label-1704
SELECT DISTINCT 66 / col2 + + - col1 + 96 AS col2 FROM tab1 cor0
----
49
82
92

query I rowsort
SELECT ALL col0 - 13 AS col2 FROM tab0 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
2
74
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1706
SELECT DISTINCT - - ( - - 15 ) + + COUNT( * ) AS col0 FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT - - ( - - 15 ) + + COUNT ( * ) AS col0 FROM tab0 cor0
----
18

query I rowsort
SELECT col2 + + col0 * + col1 AS col2 FROM tab2
----
2369
4968
5083

query I rowsort
SELECT ALL + col2 - - ( - ( + - 99 ) ) FROM tab0
----
109
146
198

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT - 1 + - - ( + 52 ) + - + 35 + - 90 * COUNT( * ) * + 44 FROM tab0
----
-11864

skipif mysql # not compatible
query I rowsort label-1709
SELECT - 1 + - - ( + 52 ) + - + 35 + - 90 * COUNT ( * ) * + 44 FROM tab0
----
-11864

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT ALL + MIN( DISTINCT + 10 ) * - - 36 FROM tab0
----
360

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL + MIN ( DISTINCT + 10 ) * - - 36 FROM tab0
----
360

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1713
SELECT DISTINCT COUNT( * ) DIV 93 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1713
SELECT DISTINCT COUNT ( * ) / 93 FROM tab1
----
0

query I rowsort
SELECT 87 * + col2 * + + col0 * - 92 FROM tab2
----
-20490240
-34817400
-8468232

query I rowsort
SELECT col2 * - col2 + + col2 * - - 83 FROM tab1 AS cor0
----
-1248
1020
1416

query I rowsort
SELECT - 94 AS col1 FROM tab1 cor0
----
-94
-94
-94

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1718
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) + + 17 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1718
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + 17 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = - col1
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT ALL + MIN( ALL - 49 ) AS col2 FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL + MIN ( ALL - 49 ) AS col2 FROM tab1
----
-49

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

query I rowsort
SELECT - + col0 * 90 + - - 8 AS col1 FROM tab2 AS cor0
----
-4132
-5752
-6742

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT ALL - - COUNT( * ) * + + MAX( - - col1 ) FROM tab1 WHERE NOT - - col0 / - 39 * col2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1725
SELECT ALL - - COUNT ( * ) * + + MAX ( - - col1 ) FROM tab1 WHERE NOT - - col0 / - 39 * col2 = NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1728
SELECT - COUNT( * ) DIV + + ( - MAX( ALL - 56 ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1728
SELECT - COUNT ( * ) / + + ( - MAX ( ALL - 56 ) ) AS col0 FROM tab1
----
0

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1730
SELECT DISTINCT 4 AS col1, col0 DIV + col1 FROM tab1
----
4
1
4
17
4
3

skipif mysql # not compatible
query II rowsort label-1730
SELECT DISTINCT 4 AS col1, col0 / + col1 FROM tab1
----
4
1
4
17
4
3

query I rowsort
SELECT + - col0 + + col0 / + + 31 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1732
SELECT DISTINCT * FROM tab1 WHERE NOT - 3 / + - CAST( NULL AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-1732
SELECT DISTINCT * FROM tab1 WHERE NOT - 3 / + - CAST ( NULL AS REAL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT ALL - - 52 * + COUNT( * ) AS col2 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL - - 52 * + COUNT ( * ) AS col2 FROM tab0 cor0
----
156

query II rowsort
SELECT - + ( - col0 ) AS col0, + col1 + - 68 AS col2 FROM tab0 AS cor0
----
15
13
87
-47
97
-67

query I rowsort
SELECT DISTINCT 9 + + 95 + + 5 + - ( col0 ) FROM tab2 AS cor0
----
34
45
63

query I rowsort
SELECT ALL - 24 + col0 AS col0 FROM tab0 AS cor0
----
-9
63
73

query I rowsort
SELECT DISTINCT - col2 + + 75 AS col1 FROM tab2
----
17
35
52

query III rowsort
SELECT * FROM tab1 WHERE + - 6 - + - col1 * + 96 * + 62 IN ( + col2 )
----

query II rowsort
SELECT DISTINCT + + col0 * 83 AS col2, col1 AS col1 FROM tab1 cor0
----
4233
14
7055
5
7553
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1740
SELECT DISTINCT - COUNT( * ) + - ( 16 ) + - SUM( DISTINCT - + col0 ), COUNT( DISTINCT - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 AS cor0
----
180
0

skipif mysql # not compatible
query II rowsort label-1740
SELECT DISTINCT - COUNT ( * ) + - ( 16 ) + - SUM ( DISTINCT - + col0 ), COUNT ( DISTINCT - CAST ( NULL AS REAL ) ) AS col1 FROM tab0 AS cor0
----
180
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + ( 95 ), 53 * + - col2 col0 FROM tab2 AS cor0
----
-95
-1219
-95
-2120
-95
-3074

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1743
SELECT CAST( + + col0 AS SIGNED ) FROM tab2 AS cor0 WHERE - col1 = ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-1743
SELECT CAST ( + + col0 AS INTEGER ) FROM tab2 AS cor0 WHERE - col1 = ( + col1 )
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1746
SELECT * FROM tab2 WHERE NOT CAST( + col2 AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1746
SELECT * FROM tab2 WHERE NOT CAST ( + col2 AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * 87 * 24 AS col2 FROM tab0
----
169128
2088
43848

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT - COUNT( * ) - - 48 FROM tab2 WHERE NOT - + col1 * + col0 IS NOT NULL
----
48

skipif mysql # not compatible
query I rowsort label-1748
SELECT - COUNT ( * ) - - 48 FROM tab2 WHERE NOT - + col1 * + col0 IS NOT NULL
----
48

query I rowsort
SELECT - 0 * 9 FROM tab1 AS cor0
----
0
0
0

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

query I rowsort
SELECT col1 * ( + 4 ) + + col2 FROM tab2
----
227
326
348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1752
SELECT DISTINCT + 17 + ( + COUNT( DISTINCT - col0 ) ) FROM tab1 WHERE NULL = CAST( col0 AS SIGNED )
----
17

skipif mysql # not compatible
query I rowsort label-1752
SELECT DISTINCT + 17 + ( + COUNT ( DISTINCT - col0 ) ) FROM tab1 WHERE NULL = CAST ( col0 AS INTEGER )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1753
SELECT DISTINCT - COUNT( * ) - + COUNT( + col0 ) AS col1 FROM tab0 WHERE ( col1 ) >= + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1753
SELECT DISTINCT - COUNT ( * ) - + COUNT ( + col0 ) AS col1 FROM tab0 WHERE ( col1 ) >= + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT DISTINCT 22 + col0 * - 69 AS col1 FROM tab2
----
-3152
-4394
-5153

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1755
SELECT DISTINCT * FROM tab0 WHERE CAST( ( col1 ) AS DECIMAL ) <> + col1 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1755
SELECT DISTINCT * FROM tab0 WHERE CAST ( ( col1 ) AS REAL ) <> + col1 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 - 54 AS col0 FROM tab0
----
-44
-7
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 65 col2 FROM tab2 WHERE col0 * - 27 NOT BETWEEN NULL AND ( col1 - 32 * - 68 )
----

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

skipif mysql # not compatible
query I rowsort label-1758
SELECT DISTINCT COUNT ( ALL col1 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE col0 + + 68 / - col0 IN ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col2 ) < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT COUNT( 45 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1762
SELECT COUNT ( 45 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT 48 AS col0 FROM tab2 WHERE NOT ( - col0 - + 97 * - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1764
SELECT MAX( ALL col1 ) * COUNT( * ) + + 51 AS col2 FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-1764
SELECT MAX ( ALL col1 ) * COUNT ( * ) + + 51 AS col2 FROM tab0
----
294

query I rowsort
SELECT - 81 + 67 FROM tab2
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1766
SELECT 34 - 18 * - 89 AS col2 FROM tab1 WHERE - CAST( 50 AS SIGNED ) * col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1766
SELECT 34 - 18 * - 89 AS col2 FROM tab1 WHERE - CAST ( 50 AS INTEGER ) * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT + COUNT( * ) col2 FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1767
SELECT + COUNT ( * ) col2 FROM tab0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT + MIN( col1 ) col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1768
SELECT + MIN ( col1 ) col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1769
SELECT ALL + SUM( 42 ) AS col0 FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-1769
SELECT ALL + SUM ( 42 ) AS col0 FROM tab2
----
126

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col2 ) IN ( - 82 + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 25 / + ( + col0 ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 8 * 19 <= NULL
----

query I rowsort
SELECT col0 * col2 - - col0 * + col2 FROM tab0
----
1410
1740
19206

query I rowsort
SELECT DISTINCT - col2 * - col2 + col2 AS col1 FROM tab1
----
3540
4692
9312

query I rowsort
SELECT col0 / + 3 AS col0 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT - ( - col0 ) * 11 FROM tab2
----
506
704
825

onlyif mysql # DIV for integer division: 
query I rowsort label-1777
SELECT DISTINCT 90 DIV - col0 - col2 AS col0 FROM tab0
----
-11
-53
-99

skipif mysql # not compatible
query I rowsort label-1777
SELECT DISTINCT 90 / - col0 - col2 AS col0 FROM tab0
----
-11
-53
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 NOT BETWEEN + 45 AND + 40
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( 35 ) * col2 FROM tab2
----
1400
2030
805

onlyif mysql # DIV for integer division: 
query I rowsort label-1780
SELECT ALL + col1 DIV + col1 + - ( - col0 ) AS col2 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-1780
SELECT ALL + col1 / + col1 + - ( - col0 ) AS col2 FROM tab0
----
16
88
98

query I rowsort
SELECT - col0 + + col0 * 46 FROM tab2 AS cor0
----
2070
2880
3375

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT - 36 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-1782
SELECT - 36 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-33

query I rowsort
SELECT ALL + col0 + col0 * col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT - col0 - 37 AS col0 FROM tab1 cor0
----
-122
-128
-88

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 45 + - 51 IS NOT NULL
----

query I rowsort
SELECT - col0 * + col1 - 47 AS col0 FROM tab2
----
-2393
-4975
-5072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1787
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - 69 * + 5 FROM tab0 AS cor0 CROSS JOIN tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1787
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - 69 * + 5 FROM tab0 AS cor0 CROSS JOIN tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 99 <= 1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1789
SELECT DISTINCT MIN( ALL + 29 ) AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND 19
----
NULL

skipif mysql # not compatible
query I rowsort label-1789
SELECT DISTINCT MIN ( ALL + 29 ) AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND 19
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT COUNT( * ) - 69 AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-1790
SELECT COUNT ( * ) - 69 AS col2 FROM tab1
----
-66

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 WHERE + ( 65 ) <> NULL
----

query I rowsort
SELECT 31 - + 63 FROM tab2 AS cor0
----
-32
-32
-32

query I rowsort
SELECT + 45 - 85 * - 93 FROM tab1 AS cor0
----
7950
7950
7950

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE 89 + - col1 >= ( col0 * - 39 )
----
51
67
77

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 18 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1796
SELECT col1 DIV + 90 FROM tab0 AS cor0 WHERE NOT - 34 IN ( + col2 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1796
SELECT col1 / + 90 FROM tab0 AS cor0 WHERE NOT - 34 IN ( + col2 )
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1798
SELECT - 41 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1798
SELECT - 41 / + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - 13 AS col0 FROM tab2 AS cor0
----
13
13
13

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col1 ) BETWEEN + 4 AND ( col0 )
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT COUNT( * ) AS col0 FROM tab0 WHERE NOT + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1801
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE NOT + col0 IS NULL
----
3

query I rowsort
SELECT DISTINCT col2 * - ( - 2 ) AS col1 FROM tab0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1803
SELECT + 62 * - + CAST( NULL AS SIGNED ) * 57 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1803
SELECT + 62 * - + CAST ( NULL AS INTEGER ) * 57 col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1804
SELECT SUM( + + 27 ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-1804
SELECT SUM ( + + 27 ) FROM tab2
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1805
SELECT ALL - ( + COUNT( * ) ) DIV 38 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL - ( + COUNT ( * ) ) / 38 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
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-1806
SELECT + SUM ( ALL col0 ) col0 FROM tab0
----
199

query I rowsort
SELECT + 61 * - col2 FROM tab2
----
-1403
-2440
-3538

query I rowsort
SELECT + ( - + 48 ) AS col2 FROM tab0 AS cor0
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-1809
SELECT DISTINCT 1 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1809
SELECT DISTINCT 1 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1810
SELECT - CAST( - + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1810
SELECT - CAST ( - + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1811
SELECT ALL 67 DIV col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL 67 / col1 FROM tab2
----
0
1
1

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col0 NOT IN ( 92 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 89 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( - - col1 + - ( 81 - + col1 ) * - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 <= col1 + col2 * - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - + col0 ) >= col0 + - 84
----
15
81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1816
SELECT + - CAST( NULL AS SIGNED ) + - ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1816
SELECT + - CAST ( NULL AS INTEGER ) + - ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1817
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST( - 98 AS SIGNED ) + + col2 = ( + ( + col1 ) * 41 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1817
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST ( - 98 AS INTEGER ) + + col2 = ( + ( + col1 ) * 41 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) col1 FROM tab2 AS cor0 WHERE + col0 BETWEEN - col2 AND - col0 / - 39
----

query II rowsort
SELECT ALL + col1, - ( + col0 ) * - col0 FROM tab0 AS cor0
----
1
9409
21
7569
81
225

query I rowsort
SELECT col2 * + 76 + - col1 + - col0 FROM tab2 AS cor0
----
1651
2899
4266

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT COUNT( * ) * - SUM( DISTINCT 74 ) FROM tab0
----
-222

skipif mysql # not compatible
query I rowsort label-1821
SELECT COUNT ( * ) * - SUM ( DISTINCT 74 ) FROM tab0
----
-222

query I rowsort
SELECT + col2 FROM tab1 WHERE + - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 14 + + - col2 IS NULL
----

query I rowsort
SELECT ALL - AVG ( - col2 ) FROM tab2 WHERE NOT NULL NOT IN ( - 77 )
----
NULL

query I rowsort
SELECT ALL + 94 FROM tab0 WHERE NOT + - col1 IS NULL
----
94
94
94

query I rowsort
SELECT DISTINCT - - col1 + col1 - - 36 - + 1 * col2 * col0 AS col2 FROM tab1 cor0
----
-4832
-4969
-6058

onlyif mysql # DIV for integer division: 
query I rowsort label-1827
SELECT - 65 - ( + col0 ) + + col1 + 22 DIV col0 * 43 AS col0 FROM tab0 AS cor0
----
-131
-161
44

skipif mysql # not compatible
query I rowsort label-1827
SELECT - 65 - ( + col0 ) + + col1 + 22 / col0 * 43 AS col0 FROM tab0 AS cor0
----
-131
-161
44

query I rowsort
SELECT ALL 63 * - col2 * + + col2 + - 85 AS col1 FROM tab0 AS cor0
----
-139252
-617548
-6385

query I rowsort
SELECT DISTINCT - - col0 * col2 * col1 + + + col0 + + 6 AS col2 FROM tab0 AS cor0
----
18363
57126
9706

query II rowsort
SELECT 48 + - + 21 AS col1, 79 AS col2 FROM tab2 AS cor0
----
27
79
27
79
27
79

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col0 ) IN ( - 60 )
----

query I rowsort
SELECT DISTINCT + col1 - + - 33 + - 98 AS col0 FROM tab2
----
-14
12
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1833
SELECT COUNT( * ) * + + SUM( DISTINCT ( - ( - col1 ) ) ) FROM tab0 WHERE NOT - col0 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1833
SELECT COUNT ( * ) * + + SUM ( DISTINCT ( - ( - col1 ) ) ) FROM tab0 WHERE NOT - col0 = NULL
----
NULL

query I rowsort
SELECT ALL - AVG ( + - 37 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( col2 * 35 ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( + 97, col1 * + col0 - - 15 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT + 3 * + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1836
SELECT + 3 * + COUNT ( * ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT - - col0 * + 10 FROM tab1 cor0
----
510
850
910

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT ALL + 32 * + + COUNT( * ) col2 FROM tab2, tab0 AS cor0
----
288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1838
SELECT ALL + 32 * + + COUNT ( * ) col2 FROM tab2, tab0 AS cor0
----
288

query III rowsort
SELECT * FROM tab0 WHERE NOT 56 * 81 * + - 73 + + 97 >= ( col0 + - ( + col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 AS col0, + col0 AS col0 FROM tab2
----
23
46
40
64
58
75

query III rowsort
SELECT col0, - 93, + col0 AS col0 FROM tab0
----
9 values hashing to c5b619299931dbdf390af67440689862

query I rowsort
SELECT DISTINCT + + col1 AS col2 FROM tab1 AS cor0 WHERE - col2 + col2 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1844
SELECT ALL + ( SUM( + 20 ) ) AS col1 FROM tab1 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-1844
SELECT ALL + ( SUM ( + 20 ) ) AS col1 FROM tab1 AS cor0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1845
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( - - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1845
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( - - col0 AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1846
SELECT ALL + col0, + col0 DIV + 85 FROM tab1 AS cor0
----
51
0
85
1
91
1

skipif mysql # not compatible
query II rowsort label-1846
SELECT ALL + col0, + col0 / + 85 FROM tab1 AS cor0
----
51
0
85
1
91
1

query I rowsort
SELECT DISTINCT - ( - 65 ) AS col2 FROM tab0
----
65

onlyif mysql # aggregate syntax: 
query II rowsort label-1848
SELECT DISTINCT COUNT( * ), 89 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
89

skipif mysql # not compatible
query II rowsort label-1848
SELECT DISTINCT COUNT ( * ), 89 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1849
SELECT COUNT( DISTINCT - ( + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab2 AS cor0 WHERE + col0 NOT IN ( + 80 )
----
0

skipif mysql # not compatible
query I rowsort label-1849
SELECT COUNT ( DISTINCT - ( + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab2 AS cor0 WHERE + col0 NOT IN ( + 80 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * - + col1 + ( - 70 ) - + ( - ( col2 ) ) IS NOT NULL
----

query I rowsort
SELECT ALL - 70 FROM tab1 AS cor0 WHERE - 10 IS NOT NULL
----
-70
-70
-70

query I rowsort
SELECT DISTINCT + - col2 * + col0 + + - 32 + + 16 * + - col1 FROM tab1 AS cor0
----
-5127
-5152
-6972

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1853
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NULL = + col1 * - - CAST( + 9 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-1853
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NULL = + col1 * - - CAST ( + 9 AS REAL )
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE + 43 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + col1 + - - 90 AS col2 FROM tab0 AS cor0
----
111
171
91

onlyif mysql # DIV for integer division: 
query II rowsort label-1856
SELECT ALL col2 * - col2 + + col0 * 21 DIV 32, col2 FROM tab0 AS cor0
----
-2200
47
-43
10
-9738
99

skipif mysql # not compatible
query II rowsort label-1856
SELECT ALL col2 * - col2 + + col0 * 21 / 32, col2 FROM tab0 AS cor0
----
-2200
47
-43
10
-9738
99

query I rowsort
SELECT - ( - 81 ) + + col2 FROM tab1 AS cor0
----
140
149
177

query III rowsort
SELECT * FROM tab2 WHERE + - col1 + - + 56 IS NULL
----

query I rowsort
SELECT ALL ( ( + ( - col0 ) ) ) AS col1 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 > - col0
----

query II rowsort
SELECT ALL - col2, 85 AS col1 FROM tab0
----
-10
85
-47
85
-99
85

query I rowsort
SELECT 21 + + 24 FROM tab1
----
45
45
45

query I rowsort
SELECT DISTINCT ( + col1 ) * - 86 - - col1 FROM tab1
----
-1190
-3995
-425

query III rowsort
SELECT * FROM tab1 WHERE + + col1 < - - 36 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT COUNT( * ) + - + MAX( ALL - col1 ) AS col1 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-1865
SELECT COUNT ( * ) + - + MAX ( ALL - col1 ) AS col1 FROM tab2
----
54

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE ( 41 ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT 27 + col0 AS col2 FROM tab0 AS cor0
----
114
124
42

query I rowsort
SELECT + col1 - + col2 + - ( + + col2 ) AS col1 FROM tab1 AS cor0
----
-113
-178
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) NOT BETWEEN + 48 - + 34 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1869
SELECT + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) NOT BETWEEN + 48 - + 34 AND ( NULL )
----
0

query I rowsort
SELECT DISTINCT - - 82 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
82

query I rowsort
SELECT ALL 64 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # DIV for integer division: 
query II rowsort label-1872
SELECT ALL + col2 DIV - col1 AS col1, + col2 + - col2 FROM tab1 AS cor0
----
-1
0
-11
0
-6
0

skipif mysql # not compatible
query II rowsort label-1872
SELECT ALL + col2 / - col1 AS col1, + col2 + - col2 FROM tab1 AS cor0
----
-1
0
-11
0
-6
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1873
SELECT * FROM tab0 cor0 WHERE NOT ( 76 / col2 / - 20 * - 61 + + - col1 * + 92 + + CAST( NULL AS SIGNED ) + - col1 - - 28 * 69 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1873
SELECT * FROM tab0 cor0 WHERE NOT ( 76 / col2 / - 20 * - 61 + + - col1 * + 92 + + CAST ( NULL AS INTEGER ) + - col1 - - 28 * 69 ) IS NULL
----

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT + 21 IS NOT NULL
----

query I rowsort
SELECT ( + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT - 77 * + col2 + + col1 IS NULL
----
51
67
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * col1 <= + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * + col0 FROM tab0 WHERE + col2 * - col0 * - 78 * + + 96 NOT IN ( - ( - 69 ) )
----
1215
1827
97

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE NOT + col1 IS NULL
----
-51
-85
-91

query I rowsort
SELECT col1 * - 31 FROM tab0
----
-2511
-31
-651

query II rowsort
SELECT col0 AS col1, col1 AS col0 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT DISTINCT SUM( - 6 ) AS col2 FROM tab1 WHERE NULL IN ( + col2 * - - 69 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT SUM ( - 6 ) AS col2 FROM tab1 WHERE NULL IN ( + col2 * - - 69 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT DISTINCT - MIN( - col0 ) * + COUNT( * ) FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-1882
SELECT DISTINCT - MIN ( - col0 ) * + COUNT ( * ) FROM tab1 AS cor0
----
273

onlyif mysql # DIV for integer division: 
query I rowsort label-1883
SELECT - + 70 DIV - col1 AS col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1883
SELECT - + 70 / - col1 AS col2 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1884
SELECT + 68 col2, SUM( - col1 ) FROM tab1
----
68
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1884
SELECT + 68 col2, SUM ( - col1 ) FROM tab1
----
68
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1885
SELECT - col1 + - 40 * + col1 + + col0 / - + 15 + - + 15 * - col2 * + - CAST( NULL AS SIGNED ) * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1885
SELECT - col1 + - 40 * + col1 + + col0 / - + 15 + - + 15 * - col2 * + - CAST ( NULL AS INTEGER ) * col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( - col2 ) >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 2 + - 88 AS col0 FROM tab1
----
-90
-90
-90

query I rowsort
SELECT ALL - 90 * - + col1 AS col1 FROM tab1
----
1260
4230
450

query I rowsort
SELECT + 68 + ( - col2 ) AS col2 FROM tab1
----
-28
0
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 / col0 * - col0 IS NULL
----

query I rowsort
SELECT ALL - - 39 FROM tab2 AS cor0 WHERE col1 - - - 87 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1892
SELECT ALL + - 1 + - CAST( AVG ( DISTINCT col2 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL + - 1 + - CAST ( AVG ( DISTINCT col2 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-41

query II rowsort
SELECT - col2 AS col1, col1 * col2 FROM tab2 AS cor0
----
-23
1173
-40
3080
-58
3886

query I rowsort
SELECT 28 - - ( - + 31 ) FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-3
-3
-3

query I rowsort
SELECT ALL - col1 * col0 + - + col1 FROM tab1 AS cor0
----
-430
-4324
-728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 68 + - col2 AS col0, - col0 col1 FROM tab0
----
-115
-15
-167
-97
-78
-87

query I rowsort
SELECT ALL 89 AS col2 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - + col2 AS col1 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT col1 - + - col0 - + + col0 * + - ( 50 ) AS col1 FROM tab1
----
2615
4340
4688

query I rowsort
SELECT 91 - col1 + + - col2 AS col0 FROM tab2
----
-26
-34
17

onlyif mysql # DIV for integer division: 
query I rowsort label-1901
SELECT ALL - 74 DIV + - col2 AS col2 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL - 74 / + - col2 AS col2 FROM tab2 AS cor0
----
1
1
3

query I rowsort
SELECT DISTINCT + col2 + + - ( - col0 ) FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * col2 IS NULL
----

query I rowsort
SELECT + col2 + + - col2 * + col2 AS col0 FROM tab0 AS cor0
----
-2162
-90
-9702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - 21 + col1 * col2 col2 FROM tab2 AS cor0
----
2244
4697
5293

query I rowsort
SELECT col0 * col1 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
2346
4928
5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1907
SELECT DISTINCT CAST( - SUM( ALL - + 65 ) AS SIGNED ) AS col0 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-1907
SELECT DISTINCT CAST ( - SUM ( ALL - + 65 ) AS INTEGER ) AS col0 FROM tab1
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT + COUNT( * ) * + ( + COUNT( * ) ) FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
81

skipif mysql # not compatible
query I rowsort label-1908
SELECT + COUNT ( * ) * + ( + COUNT ( * ) ) FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1909
SELECT DISTINCT - CAST( - - 96 AS DECIMAL ) AS col0 FROM tab2 AS cor0 WHERE NULL >= col2 / - col2 * ( col2 ) * col2
----

skipif mysql # not compatible
query I rowsort label-1909
SELECT DISTINCT - CAST ( - - 96 AS REAL ) AS col0 FROM tab2 AS cor0 WHERE NULL >= col2 / - col2 * ( col2 ) * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT - - COUNT( * ) + + 84 * - - 46 - + + 87 + + MIN( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
3831

skipif mysql # not compatible
query I rowsort label-1910
SELECT - - COUNT ( * ) + + 84 * - - 46 - + + 87 + + MIN ( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
3831

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1911
SELECT CAST( NULL AS SIGNED ) * - - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1911
SELECT CAST ( NULL AS INTEGER ) * - - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col1, - 22 * 64 FROM tab1 AS cor0
----
14
-1408
47
-1408
5
-1408

query I rowsort
SELECT col2 * + + 90 AS col1 FROM tab0 cor0
----
4230
8910
900

query I rowsort
SELECT 59 * + - col1 FROM tab1 AS cor0
----
-2773
-295
-826

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN + - 51 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 + + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 * 30 AS col2 FROM tab1
----
1530
2550
2730

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT 57 <> - col0 + - 50
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1919
SELECT - + 61 + - col2 AS col2, - CAST( NULL AS SIGNED ) * col0 / - col1 AS col2 FROM tab2 AS cor0
----
-101
NULL
-119
NULL
-84
NULL

skipif mysql # not compatible
query II rowsort label-1919
SELECT - + 61 + - col2 AS col2, - CAST ( NULL AS INTEGER ) * col0 / - col1 AS col2 FROM tab2 AS cor0
----
-101
NULL
-119
NULL
-84
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1920
SELECT - 14 DIV + 36 + col1 AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1920
SELECT - 14 / + 36 + col1 AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT ALL - + MIN( - - 5 ) col2 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1921
SELECT ALL - + MIN ( - - 5 ) col2 FROM tab0 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1922
SELECT CAST( + + col1 AS SIGNED ) AS col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1922
SELECT CAST ( + + col1 AS INTEGER ) AS col1 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1923
SELECT ALL + col1 + - col1 * CAST( NULL AS SIGNED ) - + 63 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL + col1 + - col1 * CAST ( NULL AS INTEGER ) - + 63 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1924
SELECT + + 31 * + - COUNT( DISTINCT + 24 ) * - + COUNT( * ) * - CAST( + SUM( DISTINCT + 60 ) AS SIGNED ) - - + 96 FROM tab2 AS cor0
----
-5484

skipif mysql # not compatible
query I rowsort label-1924
SELECT + + 31 * + - COUNT ( DISTINCT + 24 ) * - + COUNT ( * ) * - CAST ( + SUM ( DISTINCT + 60 ) AS INTEGER ) - - + 96 FROM tab2 AS cor0
----
-5484

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT ( + + 0 ) * + COUNT( * ) + + 26 AS col2 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-1925
SELECT ( + + 0 ) * + COUNT ( * ) + + 26 AS col2 FROM tab0 AS cor0
----
26

query I rowsort
SELECT - 50 - + col1 FROM tab0 AS cor0
----
-131
-51
-71

query I rowsort
SELECT DISTINCT 42 + - 74 FROM tab0 cor0 WHERE + col1 BETWEEN + col2 AND col1
----
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 43 + 61 * 49 col2 FROM tab0 AS cor0 WHERE NULL <> + 50 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT DISTINCT COUNT( * ) + - 30 AS col0 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-1929
SELECT DISTINCT COUNT ( * ) + - 30 AS col0 FROM tab0 AS cor0
----
-27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 > + - ( + 28 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1931
SELECT ALL - 14 - + - 54 + + + col1 + 15 + - col0 / - - col2 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL - 14 - + - 54 + + + col1 + 15 + - col0 / - - col2 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 FROM tab0 WHERE ( col1 ) = + col1
----
-15
-87
-97

query II rowsort
SELECT DISTINCT col2 + + col0 + - 28 * - ( col0 ) * col2 AS col1, 26 FROM tab1
----
137235
26
140564
26
173423
26

query I rowsort
SELECT ALL + col2 + col1 + + col0 AS col2 FROM tab0
----
118
143
197

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - col2, + 15 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1936
SELECT ALL - col2 DIV ( + + 73 ) - + col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1936
SELECT ALL - col2 / ( + + 73 ) - + col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT - 3 + col2 AS col1 FROM tab0
----
44
7
96

query I rowsort
SELECT + col0 * - - 28 + - - col2 AS col2 FROM tab1
----
1524
2439
2616

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1939
SELECT + 79 + - - col1 + + col2 FROM tab2 WHERE - CAST( NULL AS DECIMAL ) - - + 13 IS NULL
----
153
196
204

skipif mysql # not compatible
query I rowsort label-1939
SELECT + 79 + - - col1 + + col2 FROM tab2 WHERE - CAST ( NULL AS REAL ) - - + 13 IS NULL
----
153
196
204

query I rowsort
SELECT DISTINCT - 84 * + col1 FROM tab2
----
-4284
-5628
-6468

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 3 / ( + col2 ) * col2 + 64 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1942
SELECT DISTINCT col2 * col1 - - ( col0 ) + - col2 * + CAST( - col1 AS SIGNED ) AS col2 FROM tab2
----
2392
6224
7847

skipif mysql # not compatible
query I rowsort label-1942
SELECT DISTINCT col2 * col1 - - ( col0 ) + - col2 * + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2
----
2392
6224
7847

query I rowsort
SELECT - col1 * - 42 FROM tab1
----
1974
210
588

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT + col0 = - col2
----
3

skipif mysql # not compatible
query I rowsort label-1944
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT + col0 = - col2
----
3

query III rowsort
SELECT * FROM tab1 WHERE 41 * + ( + 1 ) * 98 - + - col1 + col1 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1946
SELECT - MAX( - + 57 ) DIV - - 43 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1946
SELECT - MAX ( - + 57 ) / - - 43 FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 74 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1948
SELECT + - col2 DIV col0 AS col2, 82 * col2 + - - col2 AS col0 FROM tab2 AS cor0
----
0
1909
0
3320
0
4814

skipif mysql # not compatible
query II rowsort label-1948
SELECT + - col2 / col0 AS col2, 82 * col2 + - - col2 AS col0 FROM tab2 AS cor0
----
0
1909
0
3320
0
4814

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1949
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( + - 51 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-1949
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( + - 51 AS INTEGER ) >= NULL
----

query I rowsort
SELECT ALL + col1 + - + col1 * + col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1 * - 45 - - 10, col0 * + - col0 / 57 )
----

query I rowsort
SELECT ALL - + col2 * + col2 + col0 AS col2 FROM tab2 AS cor0
----
-1536
-3289
-483

query I rowsort
SELECT ALL 91 * + + 94 AS col2 FROM tab2
----
8554
8554
8554

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 26 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1954
SELECT 98 DIV - col2 FROM tab2
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-1954
SELECT 98 / - col2 FROM tab2
----
-1
-2
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT ALL MAX( + 63 ) AS col2 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-1955
SELECT ALL MAX ( + 63 ) AS col2 FROM tab1
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 col2 FROM tab1 cor0
----
72

query I rowsort
SELECT DISTINCT + - 46 + - - col1 FROM tab2 AS cor0
----
21
31
5

query I rowsort
SELECT ALL col1 * - 34 + - + 85 + + col2 - - + col1 * + - ( - col0 ) AS col2 FROM tab1 AS cor0
----
229
249
2662

onlyif mysql # DIV for integer division: 
query I rowsort label-1959
SELECT DISTINCT + - col1 DIV + 68 AS col1 FROM tab2 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1959
SELECT DISTINCT + - col1 / + 68 AS col1 FROM tab2 cor0
----
-1
0

query II rowsort
SELECT DISTINCT + col0 * + col0, col0 + + 66 * - 98 - col1 AS col2 FROM tab0 AS cor0
----
225
-6534
7569
-6402
9409
-6372

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND col2 + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 * - - col1 NOT BETWEEN - col1 AND NULL )
----

query I rowsort
SELECT + col1 * - + col2 * 48 AS col2 FROM tab0
----
-10080
-182736
-4752

query I rowsort
SELECT - 90 * col2 AS col2 FROM tab1
----
-5310
-6120
-8640

onlyif mysql # DIV for integer division: 
query I rowsort label-1965
SELECT col1 DIV + 76 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1965
SELECT col1 / + 76 FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1966
SELECT ALL + SUM( ALL - - ( col0 ) ) AS col1, - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( + col0 NOT BETWEEN + col1 AND NULL )
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1966
SELECT ALL + SUM ( ALL - - ( col0 ) ) AS col1, - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( + col0 NOT BETWEEN + col1 AND NULL )
----
NULL
NULL

query I rowsort
SELECT - 27 FROM tab0 WHERE NOT + col2 IN ( col1, 55, - + 1 )
----
-27
-27
-27

query II rowsort
SELECT DISTINCT 30 AS col2, - col1 AS col1 FROM tab1
----
30
-14
30
-47
30
-5

query II rowsort
SELECT col0 * - col0 * + col1 AS col1, col2 * ( - - col0 ) FROM tab0
----
-158949
870
-18225
705
-9409
9603

query I rowsort
SELECT DISTINCT ( 55 ) AS col1 FROM tab2
----
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 col2 FROM tab2 WHERE - + 59 / + - 55 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = + 99 * col0
----

query I rowsort
SELECT ALL - 48 * - col1 + - ( col2 ) + - - col1 + + 75 + + - 72 AS col2 FROM tab2 AS cor0
----
2479
3228
3736

query I rowsort
SELECT + 97 * - 73 + - 25 FROM tab2
----
-7106
-7106
-7106

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 68 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1976
SELECT DISTINCT COUNT( * ) DIV - 52 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1976
SELECT DISTINCT COUNT ( * ) / - 52 AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1977
SELECT ALL - CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1977
SELECT ALL - CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1978
SELECT ALL 20 * col2 * - + CAST( NULL AS SIGNED ) + - + 86 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1978
SELECT ALL 20 * col2 * - + CAST ( NULL AS INTEGER ) + - + 86 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1979
SELECT ALL - + col2 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + + col0
----

skipif mysql # not compatible
query I rowsort label-1979
SELECT ALL - + col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + + col0
----

query II rowsort
SELECT 26 * + 94, + col1 AS col0 FROM tab0 AS cor0
----
2444
1
2444
21
2444
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <= col0 + - 79 * + - col1
----

query I rowsort
SELECT 32 AS col0 FROM tab2 cor0
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT COUNT( * ) FROM tab1 cor0 WHERE ( + 52 + + ( + + col1 ) ) = - col1
----
0

skipif mysql # not compatible
query I rowsort label-1983
SELECT COUNT ( * ) FROM tab1 cor0 WHERE ( + 52 + + ( + + col1 ) ) = - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT - MIN( ALL - - col1 ) FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1984
SELECT - MIN ( ALL - - col1 ) FROM tab2 cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - + col0 col1 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1986
SELECT - + col2 AS col0 FROM tab0 WHERE ( + ( - col1 ) * - CAST( NULL AS SIGNED ) * - col1 / + col0 * - col2 + col0 * + + 76 * col0 + - col2 ) IN ( + col2 * + + 6 + + col0, - 65 * - 40 + + col0 )
----

skipif mysql # not compatible
query I rowsort label-1986
SELECT - + col2 AS col0 FROM tab0 WHERE ( + ( - col1 ) * - CAST ( NULL AS INTEGER ) * - col1 / + col0 * - col2 + col0 * + + 76 * col0 + - col2 ) IN ( + col2 * + + 6 + + col0, - 65 * - 40 + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1987
SELECT ALL CAST( NULL AS SIGNED ), col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-1987
SELECT ALL CAST ( NULL AS INTEGER ), col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1988
SELECT DISTINCT - COUNT( * ) DIV + - 6 AS col2 FROM tab0 WHERE - - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1988
SELECT DISTINCT - COUNT ( * ) / + - 6 AS col2 FROM tab0 WHERE - - col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT 64 + col1 AS col0 FROM tab2 WHERE NOT - 74 NOT BETWEEN ( NULL ) AND - col1 * - 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT ALL ( - - COUNT( - - col2 ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1990
SELECT ALL ( - - COUNT ( - - col2 ) ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1991
SELECT - col2 * + CAST( col0 AS SIGNED ) + - col0 AS col2 FROM tab0 cor0
----
-720
-957
-9700

skipif mysql # not compatible
query I rowsort label-1991
SELECT - col2 * + CAST ( col0 AS INTEGER ) + - col0 AS col2 FROM tab0 cor0
----
-720
-957
-9700

onlyif mysql # DIV for integer division: 
query I rowsort label-1992
SELECT - col1 DIV - - ( - - col2 ) FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-1992
SELECT - col1 / - - ( - - col2 ) FROM tab2 AS cor0
----
-1
-1
-2

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 AND + 47 / 30 + - col0 + - 2
----

query I rowsort
SELECT ALL 41 AS col1 FROM tab2 cor0 WHERE NOT + col2 NOT BETWEEN NULL AND - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT + MIN( + - 33 ) AS col0 FROM tab0 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-1995
SELECT + MIN ( + - 33 ) AS col0 FROM tab0 cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT + + MAX( - - 40 ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-1996
SELECT + + MAX ( - - 40 ) FROM tab2 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT + COUNT( * ) FROM tab2 WHERE NOT - 76 + - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1997
SELECT + COUNT ( * ) FROM tab2 WHERE NOT - 76 + - + col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
25

query II rowsort
SELECT ALL col1 AS col2, col0 AS col2 FROM tab1
----
14
51
47
91
5
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 0 * + + col0 * col2 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + 67 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT - 19 * - COUNT( * ) AS col0 FROM tab2, tab2 cor0
----
171

skipif mysql # not compatible
query I rowsort label-2002
SELECT - 19 * - COUNT ( * ) AS col0 FROM tab2, tab2 cor0
----
171

query I rowsort
SELECT ALL + + 67 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # aggregate syntax: 
query I rowsort label-2004
SELECT ALL - MAX( + + 4 ) FROM tab2 WHERE + + 37 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2004
SELECT ALL - MAX ( + + 4 ) FROM tab2 WHERE + + 37 BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT + 40 * + 75 AS col0 FROM tab2
----
3000
3000
3000

query I rowsort
SELECT DISTINCT 10 * - - col0 + - col0 AS col1 FROM tab1 AS cor0
----
459
765
819

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2007
SELECT - - 71 AS col1, - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
71
NULL
71
NULL
71
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2007
SELECT - - 71 AS col1, - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
71
NULL
71
NULL
71
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT ALL - MIN( col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2008
SELECT ALL - MIN ( col1 ) AS col0 FROM tab1 AS cor0
----
-5

query II rowsort
SELECT col1 AS col1, + ( + col0 ) AS col2 FROM tab1 cor0
----
14
51
47
91
5
85

query I rowsort
SELECT DISTINCT - + col1 * + col0 * + col2 + + 38 - - + col2 FROM tab0 AS cor0
----
-18222
-57020
-9466

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT ALL 14 * + MAX( ( + col2 ) ) FROM tab2 AS cor0
----
812

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL 14 * + MAX ( ( + col2 ) ) FROM tab2 AS cor0
----
812

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - col0 ) BETWEEN - 19 + - - 29 + + col1 / + + col2 AND + 28
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * + + col0 + - 70 AS col2 FROM tab0
----
1145
1757
27

query II rowsort
SELECT + 24 + col1, - 73 AS col0 FROM tab2
----
101
-73
75
-73
91
-73

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT NULL > + + 95 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT DISTINCT + MAX( 89 ) FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-2016
SELECT DISTINCT + MAX ( 89 ) FROM tab0 AS cor0
----
89

query I rowsort
SELECT DISTINCT - - 37 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT ALL 82 - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
73

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL 82 - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT DISTINCT + - COUNT( * ) * + - 41 * + COUNT( * ) + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
3330

skipif mysql # not compatible
query I rowsort label-2019
SELECT DISTINCT + - COUNT ( * ) * + - 41 * + COUNT ( * ) + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
3330

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2020
SELECT * FROM tab0 AS cor0 WHERE 18 NOT BETWEEN - 12 * + 5 AND - CAST( NULL AS SIGNED ) * 48
----

skipif mysql # not compatible
query III rowsort label-2020
SELECT * FROM tab0 AS cor0 WHERE 18 NOT BETWEEN - 12 * + 5 AND - CAST ( NULL AS INTEGER ) * 48
----

query I rowsort
SELECT DISTINCT - 58 * - col1 FROM tab0 AS cor0
----
1218
4698
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + - col2 * + 91 BETWEEN + + 11 AND + 78 AND NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 49 + + col2 AS col1 FROM tab1 cor0
----
108
117
145

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 cor0 WHERE NOT - 68 - + + 13 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT + MIN( DISTINCT - + 66 ) FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-2025
SELECT + MIN ( DISTINCT - + 66 ) FROM tab2
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT - 8 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2026
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT - 8 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT + COUNT( + + col2 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2027
SELECT + COUNT ( + + col2 ) col1 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2028
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE 58 < + CAST( NULL AS SIGNED ) + - - 19 + - - col0
----
0

skipif mysql # not compatible
query I rowsort label-2028
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE 58 < + CAST ( NULL AS INTEGER ) + - - 19 + - - col0
----
0

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 AS cor0 WHERE NOT - ( - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2030
SELECT CAST( ( COUNT( * ) ) AS SIGNED ) * - SUM( DISTINCT - ( - 66 ) ) * - 91 FROM tab0
----
18018

skipif mysql # not compatible
query I rowsort label-2030
SELECT CAST ( ( COUNT ( * ) ) AS INTEGER ) * - SUM ( DISTINCT - ( - 66 ) ) * - 91 FROM tab0
----
18018

query I rowsort
SELECT col1 * - + col0 * col1 FROM tab0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT ALL COUNT( * ) + COUNT( col2 ) * + COUNT( * ) col0 FROM tab0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2032
SELECT ALL COUNT ( * ) + COUNT ( col2 ) * + COUNT ( * ) col0 FROM tab0
----
12

query I rowsort
SELECT - - col2 + - - 79 AS col2 FROM tab0 cor0
----
126
178
89

query I rowsort
SELECT + 4 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( NULL BETWEEN ( NULL ) AND + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2036
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 + + 39 )
----
0

skipif mysql # not compatible
query I rowsort label-2036
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 + + 39 )
----
0

query I rowsort
SELECT ALL + + col2 + 25 FROM tab2 AS cor0
----
48
65
83

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 * + 22 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2039
SELECT + col2 + - CAST( NULL AS SIGNED ) + + - 64 + ( - + CAST( NULL AS SIGNED ) ) * col2 * 58 + + col1 * + 68 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2039
SELECT + col2 + - CAST ( NULL AS INTEGER ) + + - 64 + ( - + CAST ( NULL AS INTEGER ) ) * col2 * 58 + + col1 * + 68 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT - 16 * - SUM( - col1 ) FROM tab2
----
-3120

skipif mysql # not compatible
query I rowsort label-2040
SELECT - 16 * - SUM ( - col1 ) FROM tab2
----
-3120

onlyif mysql # DIV for integer division: 
query II rowsort label-2041
SELECT ALL col1 col2, 81 DIV - - col0 AS col0 FROM tab2
----
51
1
67
1
77
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2041
SELECT ALL col1 col2, 81 / - - col0 AS col0 FROM tab2
----
51
1
67
1
77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT 35 * + COUNT( * ) FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-2042
SELECT 35 * + COUNT ( * ) FROM tab1
----
105

query I rowsort
SELECT DISTINCT - col0 * - + col0 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT - COUNT( * ) * COUNT( * ) * - 17 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-2044
SELECT - COUNT ( * ) * COUNT ( * ) * - 17 FROM tab0
----
153

query I rowsort
SELECT DISTINCT - col1 * - - 61 * - col2 FROM tab2
----
187880
237046
71553

query I rowsort
SELECT ALL + 29 * - col0 FROM tab1
----
-1479
-2465
-2639

query I rowsort
SELECT col2 + + 89 + - 89 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND 76 * + 17
----

query I rowsort
SELECT ALL ( - col0 ) + + - 7 AS col1 FROM tab2 AS cor0
----
-53
-71
-82

query I rowsort
SELECT col2 - + col2 + 44 * - col1 + - 79 FROM tab2 AS cor0
----
-2323
-3027
-3467

query I rowsort
SELECT 41 * + + col2 + + col2 * - 16 AS col0 FROM tab2 AS cor0
----
1000
1450
575

query I rowsort
SELECT - col2 + - + col1 FROM tab1 cor0
----
-110
-115
-64

query I rowsort
SELECT + 53 * - col2 + - col1 AS col2 FROM tab0
----
-2572
-5248
-551

query I rowsort
SELECT + + col0 / + col2 AS col1 FROM tab2 cor0 WHERE + col2 * - 95 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2054
SELECT ALL + CAST( NULL AS SIGNED ) / - col0 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-2054
SELECT ALL + CAST ( NULL AS INTEGER ) / - col0 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2055
SELECT + + ( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2055
SELECT + + ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT ALL MAX( + 66 ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL MAX ( + 66 ) FROM tab2 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query II rowsort label-2057
SELECT + - SUM( + col1 ) AS col2, + 87 FROM tab1 AS cor0
----
-66
87

skipif mysql # not compatible
query II rowsort label-2057
SELECT + - SUM ( + col1 ) AS col2, + 87 FROM tab1 AS cor0
----
-66
87

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 <> 49
----

query I rowsort
SELECT DISTINCT col0 * + 65 FROM tab0
----
5655
6305
975

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT DISTINCT - SUM( DISTINCT 16 ) col2 FROM tab0
----
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2060
SELECT DISTINCT - SUM ( DISTINCT 16 ) col2 FROM tab0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IN ( - 37 * ( - 63 ) - + col0 * col2 / - - 77, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2061
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IN ( - 37 * ( - 63 ) - + col0 * col2 / - - 77, col2 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2062
SELECT COUNT( * ) AS col1, 47 DIV COUNT( * ) FROM tab0
----
3
15

skipif mysql # not compatible
query II rowsort label-2062
SELECT COUNT ( * ) AS col1, 47 / COUNT ( * ) FROM tab0
----
3
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT + COUNT( - 99 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2063
SELECT + COUNT ( - 99 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT col2 * + 29 AS col1 FROM tab1 AS cor0
----
1711
1972
2784

onlyif mysql # DIV for integer division: 
query I rowsort label-2065
SELECT + col0 DIV + ( 16 ) AS col0 FROM tab1 AS cor0
----
3
5
5

skipif mysql # not compatible
query I rowsort label-2065
SELECT + col0 / + ( 16 ) AS col0 FROM tab1 AS cor0
----
3
5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2066
SELECT DISTINCT - + col1 * + col2 + + col1 DIV - - col1 FROM tab0 AS cor0
----
-209
-3806
-98

skipif mysql # not compatible
query I rowsort label-2066
SELECT DISTINCT - + col1 * + col2 + + col1 / - - col1 FROM tab0 AS cor0
----
-209
-3806
-98

query III rowsort
SELECT * FROM tab1 cor0 WHERE 11 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 68 + + 2 + + 34 FROM tab2 AS cor0
----
-32
-32
-32

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 82 * - col1 * + col1 - col0 = - - ( + col0 )
----

query I rowsort
SELECT DISTINCT 12 + - 2 AS col1 FROM tab1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT ALL COUNT( * ) + COUNT( * ) * + - 56 * - - 2 AS col1 FROM tab0, tab0 cor0
----
-999

skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL COUNT ( * ) + COUNT ( * ) * + - 56 * - - 2 AS col1 FROM tab0, tab0 cor0
----
-999

query I rowsort
SELECT + col0 + - ( + + col1 ) AS col1 FROM tab0
----
-66
66
96

query III rowsort
SELECT * FROM tab0 WHERE ( NOT - col1 + + col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 + + 77 AS col0 FROM tab2
----
0
10
26

query I rowsort
SELECT - 99 + + col2 * + 46 AS col1 FROM tab1
----
2615
3029
4317

onlyif mysql # DIV for integer division: 
query I rowsort label-2076
SELECT ALL col0 DIV - - 83 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2076
SELECT ALL col0 / - - 83 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 * - - 84 FROM tab2 AS cor0
----
-1932
-3360
-4872

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT DISTINCT + + MAX( + col2 ) + 43 AS col2 FROM tab0 AS cor0
----
142

skipif mysql # not compatible
query I rowsort label-2078
SELECT DISTINCT + + MAX ( + col2 ) + 43 AS col2 FROM tab0 AS cor0
----
142

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> - col0 / + - 80
----

query I rowsort
SELECT DISTINCT - 55 + 24 * + 7 FROM tab2 AS cor0
----
113

query I rowsort
SELECT ALL col0 + + 47 FROM tab2
----
111
122
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2082
SELECT + col1 - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2082
SELECT + col1 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 9 - 15 FROM tab1
----
-6
-6
-6

query I rowsort
SELECT col2 - - 27 AS col2 FROM tab1
----
123
86
95

query I rowsort
SELECT ALL + 89 * + col0 * - - 48 AS col1 FROM tab1
----
217872
363120
388752

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT DISTINCT 11 * + COUNT( + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2086
SELECT DISTINCT 11 * + COUNT ( + col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----
0

query II rowsort
SELECT + col1 AS col2, - col0 AS col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT COUNT( ALL + ( col0 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2088
SELECT COUNT ( ALL + ( col0 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + 95 * - col2 FROM tab2
----
-2185
-3800
-5510

query II rowsort
SELECT DISTINCT - 62 * col1 AS col0, col0 FROM tab2
----
-3162
46
-4154
75
-4774
64

query I rowsort
SELECT DISTINCT - col0 * + 74 AS col2 FROM tab1
----
-3774
-6290
-6734

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT COUNT( 60 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2092
SELECT COUNT ( 60 ) AS col2 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2093
SELECT col0 * 21 DIV col1 * - 32 FROM tab1
----
-11424
-1280
-2432

skipif mysql # not compatible
query I rowsort label-2093
SELECT col0 * 21 / col1 * - 32 FROM tab1
----
-11424
-1280
-2432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2094
SELECT CAST( - 26 AS SIGNED ) FROM tab1
----
-26
-26
-26

skipif mysql # not compatible
query I rowsort label-2094
SELECT CAST ( - 26 AS INTEGER ) FROM tab1
----
-26
-26
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-2095
SELECT ALL - + 20 DIV - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2095
SELECT ALL - + 20 / - col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * + + col0 - - + 15 AS col1 FROM tab2 AS cor0
----
2131
4111
5640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2097
SELECT DISTINCT - + col1 * - - col0 + 4 - + col1 * + col1 + + CAST( NULL AS SIGNED ) + col0 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2097
SELECT DISTINCT - + col1 * - - col0 + 4 - + col1 * + col1 + + CAST ( NULL AS INTEGER ) + col0 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col2 + - 9 AS col1 FROM tab0 AS cor0
----
-108
-19
-56

query I rowsort
SELECT ALL - + 19 * col2 AS col1 FROM tab0 AS cor0 WHERE NULL <= + 98
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 63 NOT BETWEEN NULL AND + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 <> + + 80
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - ( - + 43 ) FROM tab0 AS cor0
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT 71 * COUNT( * ) * 87 * - - 33 FROM tab0 AS cor0
----
611523

skipif mysql # not compatible
query I rowsort label-2103
SELECT 71 * COUNT ( * ) * 87 * - - 33 FROM tab0 AS cor0
----
611523

query II rowsort
SELECT - - col1, - 22 AS col1 FROM tab2 AS cor0
----
51
-22
67
-22
77
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT DISTINCT COUNT( * ) - + COUNT( * ) + COUNT( * ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2105
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT 33 * + COUNT( * ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2106
SELECT 33 * + COUNT ( * ) AS col0 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT DISTINCT ( COUNT( * ) ) + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2107
SELECT DISTINCT ( COUNT ( * ) ) + COUNT ( * ) FROM tab1
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 col0 FROM tab0 WHERE NOT 23 - + 92 IS NOT NULL
----

query I rowsort
SELECT col1 - + + 33 AS col1 FROM tab2 WHERE + - col1 IS NOT NULL
----
18
34
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT DISTINCT SUM( DISTINCT + col1 ) col2 FROM tab1
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2110
SELECT DISTINCT SUM ( DISTINCT + col1 ) col2 FROM tab1
----
66

query II rowsort
SELECT ALL 8 * 17, + 74 AS col1 FROM tab2
----
136
74
136
74
136
74

onlyif mysql # aggregate syntax: 
query II rowsort label-2112
SELECT ALL + MIN( - 78 ) AS col1, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-78
3

skipif mysql # not compatible
query II rowsort label-2112
SELECT ALL + MIN ( - 78 ) AS col1, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-78
3

skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query I rowsort
SELECT 50 / + + 0 AS col2 FROM tab0 cor0 WHERE + 79 <= NULL
----

query I rowsort
SELECT - - 3 + - + col0 + 61 - col1 + - col1 * 95 FROM tab1 AS cor0
----
-1331
-4539
-501

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT ALL + COUNT( * ) - + - 79 - - COUNT( DISTINCT + col2 ) FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL + COUNT ( * ) - + - 79 - - COUNT ( DISTINCT + col2 ) FROM tab2 AS cor0
----
85

query III rowsort
SELECT ALL * FROM tab1 WHERE - col1 BETWEEN + col0 AND NULL OR + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - + 91 AS col1 FROM tab0
----
-1911
-7371
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT ALL + COUNT( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL + COUNT ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2119
SELECT - 17 DIV col1 FROM tab1 cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-2119
SELECT - 17 / col1 FROM tab1 cor0
----
-1
-3
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 97 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT + + COUNT( + col2 ) * + 68 FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-2121
SELECT + + COUNT ( + col2 ) * + 68 FROM tab2 AS cor0
----
204

query I rowsort
SELECT ALL - 27 * - col1 + - 20 FROM tab2 AS cor0
----
1357
1789
2059

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2123
SELECT - col1 DIV + col0 - + CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-52
-67
-78

skipif mysql # not compatible
query I rowsort label-2123
SELECT - col1 / + col0 - + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-52
-67
-78

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2124
SELECT 14 * - - CAST( NULL AS DECIMAL ) * - 6 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2124
SELECT 14 * - - CAST ( NULL AS REAL ) * - 6 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT MAX( - 28 ) AS col1 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-2125
SELECT MAX ( - 28 ) AS col1 FROM tab0 AS cor0
----
-28

query I rowsort
SELECT ALL - - 56 * + col1 AS col2 FROM tab1 AS cor0
----
2632
280
784

query I rowsort
SELECT + col0 * + 24 * 2 AS col0 FROM tab1 AS cor0
----
2448
4080
4368

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT - 63 BETWEEN NULL AND 6
----

query II rowsort
SELECT ALL 67 AS col2, + col0 FROM tab0
----
67
15
67
87
67
97

query I rowsort
SELECT + col2 - 63 FROM tab2 WHERE NOT col1 - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2131
SELECT ALL CAST( NULL AS SIGNED ) AS col2, + col2 DIV col2 AS col1 FROM tab2
----
NULL
1
NULL
1
NULL
1

skipif mysql # not compatible
query II rowsort label-2131
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + col2 / col2 AS col1 FROM tab2
----
NULL
1
NULL
1
NULL
1

query II rowsort
SELECT + col1 AS col2, + col1 * - col1 FROM tab1
----
14
-196
47
-2209
5
-25

query I rowsort
SELECT DISTINCT 29 * + + 13 + - + col2 + - col1 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
262
267
313

query I rowsort
SELECT + ( - col0 ) * - - col1 FROM tab1 AS cor0
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 66 * - + col1 AS col2, + col2 * - + col2 col2 FROM tab2
----
-3366
-529
-4422
-3364
-5082
-1600

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2137
SELECT DISTINCT + - 70 * + + 21 + - - 32 + COUNT( * ) FROM tab2 AS cor0
----
-1435

skipif mysql # not compatible
query I rowsort label-2137
SELECT DISTINCT + - 70 * + + 21 + - - 32 + COUNT ( * ) FROM tab2 AS cor0
----
-1435

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 4 >= - - 55 * + + 16 * - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2139
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 6 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 6 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * 97 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 68 * - col1 + col1 * + - col0 - - col1 * - col2 FROM tab1 AS cor0
----
-1060
-10669
-3010

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2142
SELECT - - CAST( - col0 AS SIGNED ) + - - col2 FROM tab1 AS cor0 WHERE + col1 <> NULL
----

skipif mysql # not compatible
query I rowsort label-2142
SELECT - - CAST ( - col0 AS INTEGER ) + - - col2 FROM tab1 AS cor0 WHERE + col1 <> NULL
----

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NULL >= + ( - 19 )
----

query II rowsort
SELECT DISTINCT - - col1 * + - col0 * - 86 AS col0, + col0 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT DISTINCT - 10 + + + MIN( col0 ) AS col2 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2145
SELECT DISTINCT - 10 + + + MIN ( col0 ) AS col2 FROM tab0 AS cor0
----
5

query I rowsort
SELECT - col1 * - col1 FROM tab0 WHERE - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2147
SELECT + col2 * - col2 + - col0 - - ( col2 ) DIV - + col2 FROM tab0
----
-188
-2225
-9899

skipif mysql # not compatible
query I rowsort label-2147
SELECT + col2 * - col2 + - col0 - - ( col2 ) / - + col2 FROM tab0
----
-188
-2225
-9899

query I rowsort
SELECT ALL - col1 + + col1 * + col2 FROM tab2
----
1122
3003
3819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2149
SELECT ALL + 89 * + col1 + - 58 - + col2 + - CAST( - col1 AS SIGNED ) * - col2 * + - 7 * + - 19 * - 63 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1761391
31905957
829453

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL + 89 * + col1 + - 58 - + col2 + - CAST ( - col1 AS INTEGER ) * - col2 * + - 7 * + - 19 * - 63 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1761391
31905957
829453

onlyif mysql # aggregate syntax: 
query I rowsort label-2150
SELECT + COUNT( ALL 63 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2150
SELECT + COUNT ( ALL 63 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT - - col0 FROM tab1 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT ALL 55 * + COUNT( * ) FROM tab2 WHERE NOT - col0 BETWEEN 57 AND + col1 / - col0 - - col2
----
165

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL 55 * + COUNT ( * ) FROM tab2 WHERE NOT - col0 BETWEEN 57 AND + col1 / - col0 - - col2
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT MAX( DISTINCT - col0 ) col1 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2153
SELECT MAX ( DISTINCT - col0 ) col1 FROM tab0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2154
SELECT DISTINCT * FROM tab2 WHERE + + 12 * 37 + ( CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2154
SELECT DISTINCT * FROM tab2 WHERE + + 12 * 37 + ( CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2155
SELECT - CAST( 5 AS SIGNED ) * + col0 AS col2 FROM tab1 AS cor0
----
-255
-425
-455

skipif mysql # not compatible
query I rowsort label-2155
SELECT - CAST ( 5 AS INTEGER ) * + col0 AS col2 FROM tab1 AS cor0
----
-255
-425
-455

onlyif mysql # aggregate syntax: 
query II rowsort label-2156
SELECT - 88 AS col0, - SUM( - col0 ) AS col2 FROM tab0 cor0
----
-88
199

skipif mysql # not compatible
query II rowsort label-2156
SELECT - 88 AS col0, - SUM ( - col0 ) AS col2 FROM tab0 cor0
----
-88
199

onlyif mysql # aggregate syntax: 
query II rowsort label-2157
SELECT COUNT( * ) AS col2, + SUM( ALL col2 ) AS col0 FROM tab1 AS cor0
----
3
223

skipif mysql # not compatible
query II rowsort label-2157
SELECT COUNT ( * ) AS col2, + SUM ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
3
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2158
SELECT DISTINCT + + ( CAST( NULL AS SIGNED ) ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT + + ( CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL + + col0 * col0 * + 15 + col1, - col2 AS col0 FROM tab2 cor0
----
31791
-23
61517
-40
84442
-58

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL NOT BETWEEN NULL AND 86
----

query I rowsort
SELECT + + col1 FROM tab2 WHERE NOT + - col1 NOT IN ( 44, ( - + 84 ) )
----

query I rowsort
SELECT DISTINCT + col1 * 63 AS col0 FROM tab2
----
3213
4221
4851

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - col0 <= NULL
----

query I rowsort
SELECT DISTINCT col1 * - col2 * - col0 AS col1 FROM tab2 AS cor0
----
197120
291450
53958

query I rowsort
SELECT DISTINCT col0 * + col2 + col0 FROM tab0 AS cor0
----
720
957
9700

onlyif mysql # aggregate syntax: 
query I rowsort label-2166
SELECT ALL + - MAX( ALL + col1 ) AS col1 FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2166
SELECT ALL + - MAX ( ALL + col1 ) AS col1 FROM tab2 cor0
----
-77

query II rowsort
SELECT DISTINCT + col2 * - ( - col1 ) + col1 AS col2, col1 + - col2 + col0 AS col0 FROM tab2 cor0
----
1224
74
3157
101
3953
84

query II rowsort
SELECT 37 * + col2 AS col1, 8 + ( - 38 ) * + 48 + + + 57 + col1 * - + col1 FROM tab2 AS cor0
----
1480
-7688
2146
-6248
851
-4360

onlyif mysql # aggregate syntax: 
query I rowsort label-2169
SELECT + MAX( DISTINCT + - col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-2169
SELECT + MAX ( DISTINCT + - col2 ) AS col1 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT DISTINCT - SUM( DISTINCT col1 ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT - SUM ( DISTINCT col1 ) AS col0 FROM tab1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-2171
SELECT DISTINCT - col0 DIV col2 * - + col2 FROM tab1
----
0
59
68

skipif mysql # not compatible
query I rowsort label-2171
SELECT DISTINCT - col0 / col2 * - + col2 FROM tab1
----
0
59
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2172
SELECT - 24 DIV - 82 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2172
SELECT - 24 / - 82 AS col0 FROM tab2
----
0
0
0

query II rowsort
SELECT + col1, + col0 AS col0 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2174
SELECT DISTINCT COUNT( * ) * 94 FROM tab0 cor0
----
282

skipif mysql # not compatible
query I rowsort label-2174
SELECT DISTINCT COUNT ( * ) * 94 FROM tab0 cor0
----
282

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + - col2 <= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2176
SELECT DISTINCT - - CAST( 70 AS SIGNED ) + + col2 FROM tab2 AS cor0
----
110
128
93

skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT - - CAST ( 70 AS INTEGER ) + + col2 FROM tab2 AS cor0
----
110
128
93

query I rowsort
SELECT ALL col2 * - - col0 * - + col2 FROM tab0
----
-33135
-8700
-950697

query I rowsort
SELECT ALL + col0 * 81 - + col0 FROM tab1 cor0
----
4080
6800
7280

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + ( + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2180
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) + 32 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2180
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) + 32 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT + COUNT( 89 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2181
SELECT + COUNT ( 89 ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT ALL - COUNT( * ) - + 27 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL - COUNT ( * ) - + 27 FROM tab1 AS cor0
----
-30

query I rowsort
SELECT DISTINCT col0 + - - 29 * + + 77 AS col1 FROM tab1 AS cor0
----
2284
2318
2324

query I rowsort
SELECT ALL 50 FROM tab0 AS cor0 WHERE - 5 / - col2 + - + col1 + - - col1 / col2 > + - col2 + 29
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT ALL COUNT( * ) + 83 AS col0 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-2185
SELECT ALL COUNT ( * ) + 83 AS col0 FROM tab1
----
86

query I rowsort
SELECT - 97 - + - col0 * - - col0 FROM tab2
----
2019
3999
5528

onlyif mysql # DIV for integer division: 
query I rowsort label-2187
SELECT DISTINCT ( - - 39 ) - - 10 + + col0 DIV 74 FROM tab2
----
49
50

skipif mysql # not compatible
query I rowsort label-2187
SELECT DISTINCT ( - - 39 ) - - 10 + + col0 / 74 FROM tab2
----
49
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 68 * - col0 col2 FROM tab1
----
-3468
-5780
-6188

query I rowsort
SELECT ALL 16 - + 14 AS col0 FROM tab2
----
2
2
2

query II rowsort
SELECT ALL + col1 * 23 + + ( + - 30 ) * + col2 / + - ( - + 8 ), - ( + 49 ) AS col2 FROM tab0 WHERE NOT 64 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col2 - - col0 AS col0, 63 FROM tab1
----
-45
63
23
63
26
63

query I rowsort
SELECT ( 20 ) AS col1 FROM tab2
----
20
20
20

query I rowsort
SELECT + + 42 * col1 FROM tab0 AS cor0
----
3402
42
882

query II rowsort
SELECT col2 AS col1, - col1 * - - 93 FROM tab0 AS cor0
----
10
-1953
47
-7533
99
-93

query I rowsort
SELECT - + col0 * + 65 FROM tab1 AS cor0
----
-3315
-5525
-5915

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT DISTINCT - MIN( ALL + 5 ) AS col2 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-2196
SELECT DISTINCT - MIN ( ALL + 5 ) AS col2 FROM tab0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + - col1 ) + 16 > NULL
----

query I rowsort
SELECT - 74 + + + col1 AS col0 FROM tab0
----
-53
-73
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2199
SELECT + 40 + COUNT( * ) AS col0 FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-2199
SELECT + 40 + COUNT ( * ) AS col0 FROM tab0
----
43

query I rowsort
SELECT DISTINCT - 67 * + + col2 FROM tab2 AS cor0
----
-1541
-2680
-3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2201
SELECT + + ( + SUM( ALL - CAST( NULL AS SIGNED ) ) ) + + 93, MIN( ALL - + col1 ) AS col2 FROM tab0 AS cor0
----
NULL
-81

skipif mysql # not compatible
query II rowsort label-2201
SELECT + + ( + SUM ( ALL - CAST ( NULL AS INTEGER ) ) ) + + 93, MIN ( ALL - + col1 ) AS col2 FROM tab0 AS cor0
----
NULL
-81

query I rowsort
SELECT - col2 + - - col2 + - col0 - + col2 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT col0 * 19 * + col1 FROM tab0
----
1843
23085
34713

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2204
SELECT + col1 * + col0 - + - CAST( NULL AS SIGNED ) + + CAST( + 44 AS SIGNED ) col0, + col2 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-2204
SELECT + col1 * + col0 - + - CAST ( NULL AS INTEGER ) + + CAST ( + 44 AS INTEGER ) col0, + col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - col0 col0 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2206
SELECT ALL CAST( col0 AS SIGNED ) + - - col0 col2 FROM tab1 AS cor0
----
102
170
182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2206
SELECT ALL CAST ( col0 AS INTEGER ) + - - col0 col2 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT DISTINCT + 74 + + col2 FROM tab0 cor0
----
121
173
84

query II rowsort
SELECT 72, + col1 AS col2 FROM tab0 cor0 WHERE 32 * + + col2 + + 53 IS NOT NULL
----
72
1
72
21
72
81

query I rowsort
SELECT ALL - + col1 + + - col0 FROM tab1 cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2210
SELECT - MIN( ALL + col1 ) * - COUNT( * ) * - MIN( ALL col1 ) + + COUNT( * ) DIV COUNT( * ) + + COUNT( * ) AS col2 FROM tab1 cor0
----
-71

skipif mysql # not compatible
query I rowsort label-2210
SELECT - MIN ( ALL + col1 ) * - COUNT ( * ) * - MIN ( ALL col1 ) + + COUNT ( * ) / COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1 cor0
----
-71

query I rowsort
SELECT DISTINCT ( - col2 ) + - 24 * - col2 * ( col1 ) + - 56 FROM tab0 AS cor0
----
2221
4974
91265

query II rowsort
SELECT col2 * col1 AS col1, col2 FROM tab0
----
210
10
3807
47
99
99

query I rowsort
SELECT ALL col2 - + - 62 * - col0 FROM tab1
----
-3066
-5211
-5574

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT DISTINCT MIN( ALL col0 ) * - - SUM( + col2 ) AS col1 FROM tab0
----
2340

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT MIN ( ALL col0 ) * - - SUM ( + col2 ) AS col1 FROM tab0
----
2340

query I rowsort
SELECT ALL col0 * 18 FROM tab0
----
1566
1746
270

query II rowsort
SELECT col1 AS col1, - ( - col2 ) FROM tab1
----
14
96
47
68
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2217
SELECT DISTINCT 25 DIV col1 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2217
SELECT DISTINCT 25 / col1 col2 FROM tab2
----
0

query II rowsort
SELECT ALL - col0, - col2 * col0 * - col2 AS col0 FROM tab1
----
-51
470016
-85
295885
-91
420784

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 * 93 <= NULL
----

query II rowsort
SELECT 68, col1 FROM tab0
----
68
1
68
21
68
81

query I rowsort
SELECT ALL - - 93 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + + ( 72 ) AS col1 FROM tab2 AS cor0
----
72
72
72

query III rowsort
SELECT * FROM tab0 WHERE NOT 70 >= + col2
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT - ( - - 21 ) - - 49 * COUNT( - col0 ) FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----
-21

skipif mysql # not compatible
query I rowsort label-2224
SELECT - ( - - 21 ) - - 49 * COUNT ( - col0 ) FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----
-21

query I rowsort
SELECT DISTINCT + - 26 FROM tab2 AS cor0 WHERE NOT - ( 21 ) * + 9 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 + - + 75 + + col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2226
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + col0 + - + 75 + + col0 IS NULL
----
-3

query I rowsort
SELECT - 92 FROM tab2 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2228
SELECT col2 + + 1 AS col2 FROM tab1 WHERE - col2 * + - col0 * - - col0 - + CAST( NULL AS SIGNED ) * col0 / - col2 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-2228
SELECT col2 + + 1 AS col2 FROM tab1 WHERE - col2 * + - col0 * - - col0 - + CAST ( NULL AS INTEGER ) * col0 / - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT + COUNT( * ) * - ( - - 63 ) FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-2229
SELECT + COUNT ( * ) * - ( - - 63 ) FROM tab1
----
-189

query III rowsort
SELECT * FROM tab0 WHERE ( NULL <= 45 )
----

query II rowsort
SELECT ALL 91, - 63 AS col2 FROM tab2
----
91
-63
91
-63
91
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT - SUM( ALL + col0 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-227

skipif mysql # not compatible
query I rowsort label-2232
SELECT - SUM ( ALL + col0 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2233
SELECT ALL * FROM tab0 WHERE NOT ( ( - col1 + CAST( - - col2 AS SIGNED ) IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2233
SELECT ALL * FROM tab0 WHERE NOT ( ( - col1 + CAST ( - - col2 AS INTEGER ) IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 53 * 57 col1 FROM tab1
----
3021

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2235
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL = + col0
----

query I rowsort
SELECT + 85 + + col0 AS col2 FROM tab0
----
100
172
182

query I rowsort
SELECT + 19 + ( col0 ) FROM tab1
----
104
110
70

query I rowsort
SELECT DISTINCT col0 + + 78 FROM tab1
----
129
163
169

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 / - 14 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 19 AS col0 FROM tab1 WHERE + 49 BETWEEN col1 AND ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 WHERE NOT + col0 + + col0 * col2 NOT IN ( + col2 * col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2243
SELECT + col2 DIV col1 + col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2243
SELECT + col2 / col1 + col2 FROM tab2
----
23
40
58

query I rowsort
SELECT + 54 * col0 AS col1 FROM tab1
----
2754
4590
4914

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT DISTINCT + ( + 69 ) * SUM( DISTINCT + ( - 79 ) ) + - COUNT( * ) AS col2 FROM tab2
----
-5454

skipif mysql # not compatible
query I rowsort label-2245
SELECT DISTINCT + ( + 69 ) * SUM ( DISTINCT + ( - 79 ) ) + - COUNT ( * ) AS col2 FROM tab2
----
-5454

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT ALL MAX( DISTINCT 74 ) + 53 FROM tab0 WHERE NOT 34 + - ( col2 ) * - col2 NOT BETWEEN NULL AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL MAX ( DISTINCT 74 ) + 53 FROM tab0 WHERE NOT 34 + - ( col2 ) * - col2 NOT BETWEEN NULL AND col0
----
NULL

query I rowsort
SELECT + 22 + - 59 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT DISTINCT - 69 * COUNT( ALL col1 * + col0 ) FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-2248
SELECT DISTINCT - 69 * COUNT ( ALL col1 * + col0 ) FROM tab2
----
-207

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 37 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2250
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2250
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT DISTINCT 55 + - COUNT( * ) FROM tab1 WHERE ( NULL ) <= NULL
----
55

skipif mysql # not compatible
query I rowsort label-2251
SELECT DISTINCT 55 + - COUNT ( * ) FROM tab1 WHERE ( NULL ) <= NULL
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-2252
SELECT ALL + 81 - + col0 DIV - col0 FROM tab0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-2252
SELECT ALL + 81 - + col0 / - col0 FROM tab0
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2253
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT BETWEEN - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + 67 * - 40 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2253
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT BETWEEN - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + 67 * - 40 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2254
SELECT ALL - col2 DIV 27 + - 46 AS col2 FROM tab1
----
-48
-48
-49

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL - col2 / 27 + - 46 AS col2 FROM tab1
----
-48
-48
-49

query I rowsort
SELECT + col0 FROM tab2 WHERE ( col1 + col2 ) IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 - - 38 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 29 ) * + col1 col1 FROM tab1 WHERE NOT col0 IS NULL
----
-1363
-145
-406

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) <= - 23 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT ALL ( MAX( DISTINCT - ( col1 ) ) ) col2 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2259
SELECT ALL ( MAX ( DISTINCT - ( col1 ) ) ) col2 FROM tab2
----
-51

query III rowsort
SELECT * FROM tab0 WHERE 89 BETWEEN ( 3 ) AND + 66 + + col2
----
15
81
47
97
1
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > col0 / - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 col2 FROM tab0 AS cor0
----
31
31
31

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT NULL BETWEEN 68 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT ALL COUNT( * ) * 20 FROM tab0 WHERE NOT col0 IS NULL
----
60

skipif mysql # not compatible
query I rowsort label-2264
SELECT ALL COUNT ( * ) * 20 FROM tab0 WHERE NOT col0 IS NULL
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2265
SELECT - col2 AS col1 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) * - col2 - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2265
SELECT - col2 AS col1 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) * - col2 - col1 IS NULL
----

query I rowsort
SELECT - - col2 * 20 AS col2 FROM tab2 cor0
----
1160
460
800

query I rowsort
SELECT DISTINCT + ( col2 ) + 35 * 48 AS col0 FROM tab1 cor0
----
1739
1748
1776

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - 77 AND - 54
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2269
SELECT DISTINCT CAST( - COUNT( * ) 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-2269
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL ( - col0 ) * col0 FROM tab0 AS cor0 WHERE 67 = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * col0 + col0 AS col2 FROM tab0 WHERE NOT NULL BETWEEN - 23 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT DISTINCT COUNT( DISTINCT - 99 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2273
SELECT DISTINCT COUNT ( DISTINCT - 99 ) FROM tab1
----
1

query I rowsort
SELECT + ( - 56 ) + + col0 AS col2 FROM tab1
----
-5
29
35

query I rowsort
SELECT ALL 95 * + - 84 * + 93 FROM tab0
----
-742140
-742140
-742140

onlyif mysql # DIV for integer division: 
query I rowsort label-2276
SELECT + 62 + col0 DIV - col0 AS col2 FROM tab1
----
61
61
61

skipif mysql # not compatible
query I rowsort label-2276
SELECT + 62 + col0 / - col0 AS col2 FROM tab1
----
61
61
61

query I rowsort
SELECT DISTINCT + + 9 + + + col0 * col1 FROM tab2 AS cor0
----
2355
4937
5034

onlyif mysql # DIV for integer division: 
query I rowsort label-2278
SELECT ALL 12 * + col2 - col0 DIV col1 FROM tab0 AS cor0
----
1091
116
564

skipif mysql # not compatible
query I rowsort label-2278
SELECT ALL 12 * + col2 - col0 / col1 FROM tab0 AS cor0
----
1091
116
564

query III rowsort
SELECT * FROM tab2 WHERE + col0 IN ( + col0 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2280
SELECT DISTINCT + 71 * - CAST( NULL AS SIGNED ) + 62 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2280
SELECT DISTINCT + 71 * - CAST ( NULL AS INTEGER ) + 62 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 + - 12 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2282
SELECT CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2282
SELECT CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT col2 - - 78 + - 41 AS col2 FROM tab1
----
105
133
96

query I rowsort
SELECT ALL ( - - 70 ) - - col1 + 53 AS col2 FROM tab1
----
128
137
170

query I rowsort
SELECT DISTINCT - 1 FROM tab2 AS cor0 WHERE NOT NULL = - col1 + - col1 * 39
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 <= - col1 - col1 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 3 * col1 FROM tab0 AS cor0 WHERE NOT col1 + - col2 = NULL
----

query II rowsort
SELECT ALL + col2, - 9 * + col1 * col2 + col1 FROM tab2 AS cor0
----
23
-10506
40
-27643
58
-34907

query I rowsort
SELECT ALL - 89 - - AVG ( ALL - col1 ) FROM tab1 AS cor0 WHERE ( - col0 / 83 ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 ) >= ( NULL )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * + col2 * col2 IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 86 * + 46 * - - 99 AS col1 FROM tab1
----
-391644
-391644
-391644

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - + col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2294
SELECT DISTINCT + ( + + col1 ) / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2294
SELECT DISTINCT + ( + + col1 ) / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT 86 * + - 26 FROM tab0
----
-2236
-2236
-2236

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 11 ) col2 FROM tab1
----
-11
-11
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2297
SELECT CAST( + col2 AS SIGNED ) * - 95 + + 71 AS col2 FROM tab0
----
-4394
-879
-9334

skipif mysql # not compatible
query I rowsort label-2297
SELECT CAST ( + col2 AS INTEGER ) * - 95 + + 71 AS col2 FROM tab0
----
-4394
-879
-9334

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT COUNT( * ) * + 1 * + COUNT( + 61 ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2298
SELECT COUNT ( * ) * + 1 * + COUNT ( + 61 ) AS col2 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT ALL - COUNT( 31 ) * ( + COUNT( * ) ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-2299
SELECT ALL - COUNT ( 31 ) * ( + COUNT ( * ) ) AS col0 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT ALL ( - SUM( ALL - - 7 ) ) AS col0 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL ( - SUM ( ALL - - 7 ) ) AS col0 FROM tab0
----
-21

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + 47 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2302
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 * - - CAST( + col1 AS SIGNED ) * - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2302
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 * - - CAST ( + col1 AS INTEGER ) * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NOT ( 41 + + 79 ) NOT BETWEEN NULL AND ( col1 ) )
----
3

skipif mysql # not compatible
query I rowsort label-2303
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NOT ( 41 + + 79 ) NOT BETWEEN NULL AND ( col1 ) )
----
3

query I rowsort
SELECT + ( - + ( - + 64 ) ) FROM tab0 AS cor0
----
64
64
64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( NULL ) > - 98 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 11 + - - 16 ) IN ( col1 + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT DISTINCT + COUNT( - + 24 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2307
SELECT DISTINCT + COUNT ( - + 24 ) col1 FROM tab2
----
3

query I rowsort
SELECT col2 AS col1 FROM tab2 cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE ( 17 * + + col1 ) > col1 - + 85 + col1
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 > - col0 * - + col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2311
SELECT ALL + 14 DIV 70 + + + CAST( col0 AS SIGNED ) * 33 FROM tab0 AS cor0
----
2871
3201
495

skipif mysql # not compatible
query I rowsort label-2311
SELECT ALL + 14 / 70 + + + CAST ( col0 AS INTEGER ) * 33 FROM tab0 AS cor0
----
2871
3201
495

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab0 AS cor0 WHERE ( + 80 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 + + - 86 AS col1 FROM tab0 AS cor0
----
-133
-185
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 7 < ( + 91 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2315
SELECT DISTINCT - + 28 + - - CAST( col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
-14
-23
19

skipif mysql # not compatible
query I rowsort label-2315
SELECT DISTINCT - + 28 + - - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
-14
-23
19

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT + COUNT( ALL col1 ) * - 64 col0 FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2316
SELECT + COUNT ( ALL col1 ) * - 64 col0 FROM tab1 AS cor0
----
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2317
SELECT ALL 23 + col1 - - col1 - - CAST( NULL AS SIGNED ) * + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2317
SELECT ALL 23 + col1 - - col1 - - CAST ( NULL AS INTEGER ) * + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 53 + + 15 * - + col1 AS col1 FROM tab0
----
-1162
-262
38

query III rowsort
SELECT * FROM tab2 WHERE - col2 + + ( - + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1 AS col1, ( + col2 ) AS col1 FROM tab0
----
-1
99
-21
10
-81
47

query II rowsort
SELECT 3, col2 AS col0 FROM tab1
----
3
59
3
68
3
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2322
SELECT ALL - 84 DIV + col1 AS col1 FROM tab1
----
-1
-16
-6

skipif mysql # not compatible
query I rowsort label-2322
SELECT ALL - 84 / + col1 AS col1 FROM tab1
----
-1
-16
-6

query II rowsort
SELECT ALL + col2, - ( + + 84 ) AS col0 FROM tab0
----
10
-84
47
-84
99
-84

query II rowsort
SELECT DISTINCT col0 AS col0, col2 AS col0 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN - col1 * + 29 AND - col2 * - 25 + col2 * col0
----

query I rowsort
SELECT - 5 FROM tab1 WHERE NULL IS NULL
----
-5
-5
-5

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE col2 / + col1 <= + col0 + + + 94
----
1
21
81

query I rowsort
SELECT + + 12 + + - 59 FROM tab0 AS cor0
----
-47
-47
-47

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NULL IN ( + col2 + - 98 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 <= - - col2
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT ALL + - COUNT( DISTINCT - 10 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL + - COUNT ( DISTINCT - 10 ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT ( + - SUM( DISTINCT col0 ) ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2332
SELECT ( + - SUM ( DISTINCT col0 ) ) FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2333
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( + 30 AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2333
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( + 30 AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 22 col0 FROM tab1 AS cor0 WHERE NOT + col0 + col2 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2335
SELECT + 71 DIV + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-2335
SELECT + 71 / + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 cor0
----
23

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2336
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 ) IN ( CAST( NULL AS DECIMAL ), - 75 + col2 + - - col1 + col1 + 1 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-2336
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 ) IN ( CAST ( NULL AS REAL ), - 75 + col2 + - - col1 + col1 + 1 * + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col0 + - col1 / - col0 * col2 ) NOT IN ( + 97 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT ALL MAX( DISTINCT + 95 ) AS col1 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-2338
SELECT ALL MAX ( DISTINCT + 95 ) AS col1 FROM tab1
----
95

query III rowsort
SELECT * FROM tab0 WHERE NOT 1 - - - col1 < + col0
----

query I rowsort
SELECT + - 38 + - 30 * - - col1 FROM tab0 AS cor0
----
-2468
-668
-68

query II rowsort
SELECT - - 84 + + 47 * + col0 AS col0, + col0 * + + 39 AS col1 FROM tab1 AS cor0
----
2481
1989
4079
3315
4361
3549

query I rowsort
SELECT ALL ( - col1 ) * + col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT + ( + - 46 ) FROM tab0, tab0 AS cor0
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

onlyif mysql # DIV for integer division: 
query I rowsort label-2344
SELECT + col1 DIV + + col1 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2344
SELECT + col1 / + + col1 AS col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT DISTINCT MIN( - col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2345
SELECT DISTINCT MIN ( - col0 ) AS col2 FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2346
SELECT + ( + + ( - CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2346
SELECT + ( + + ( - CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col2 + 64 + col1 + + - col2 AS col2, - col2 AS col0 FROM tab1 AS cor0
----
-114
-96
-25
-68
-49
-59

query I rowsort
SELECT ALL col2 * 1 AS col2 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT col0 AS col0, col0 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT ALL - - 47 + + + MIN( ALL col1 ) col0 FROM tab1 AS cor0
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2350
SELECT ALL - - 47 + + + MIN ( ALL col1 ) col0 FROM tab1 AS cor0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2351
SELECT ALL CAST( - 87 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2351
SELECT ALL CAST ( - 87 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2352
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 IN ( - CAST( NULL AS SIGNED ) * - 38 + - 32 * + col1 )
----

skipif mysql # not compatible
query III rowsort label-2352
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 IN ( - CAST ( NULL AS INTEGER ) * - 38 + - 32 * + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2353
SELECT ALL * FROM tab1 AS cor0 WHERE 30 + + ( + - CAST( NULL AS DECIMAL ) ) = 5 * + col0
----

skipif mysql # not compatible
query III rowsort label-2353
SELECT ALL * FROM tab1 AS cor0 WHERE 30 + + ( + - CAST ( NULL AS REAL ) ) = 5 * + col0
----

query III rowsort
SELECT * FROM tab2 WHERE - - 58 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 36 + - col1 * col0 + - - col1 AS col0 FROM tab1
----
-384
-4194
-664

query I rowsort
SELECT + ( - 16 ) + + - col1 AS col1 FROM tab0
----
-17
-37
-97

query I rowsort
SELECT ALL + col2 * ( 26 ) AS col2 FROM tab2
----
1040
1508
598

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2358
SELECT DISTINCT 88 - SUM( DISTINCT - col2 ) * - - CAST( + 73 AS SIGNED ) AS col0 FROM tab2
----
8921

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT 88 - SUM ( DISTINCT - col2 ) * - - CAST ( + 73 AS INTEGER ) AS col0 FROM tab2
----
8921

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2359
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) / + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) / + col1 FROM tab1
----
NULL

query I rowsort
SELECT 30 * 99 + - + col2 FROM tab0
----
2871
2923
2960

query I rowsort
SELECT 77 + + - col2 FROM tab1
----
-19
18
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2362
SELECT SUM( - + col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-2362
SELECT SUM ( - + col2 ) FROM tab2
----
-121

query I rowsort
SELECT DISTINCT - ( - 70 ) AS col2 FROM tab1
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col2 * - col1 col1 FROM tab2
----
51
-1173
67
-3886
77
-3080

query I rowsort
SELECT + + col2 * + + col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2366
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( 62, + col1 - + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2366
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( 62, + col1 - + - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2367
SELECT - col2, col2 DIV + + col0 AS col1 FROM tab0
----
-10
0
-47
3
-99
1

skipif mysql # not compatible
query II rowsort label-2367
SELECT - col2, col2 / + + col0 AS col1 FROM tab0
----
-10
0
-47
3
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT ALL - MAX( - 16 ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-2368
SELECT ALL - MAX ( - 16 ) FROM tab0
----
16

query I rowsort
SELECT DISTINCT ( + + ( - 43 ) ) AS col2 FROM tab0
----
-43

query I rowsort
SELECT ALL col0 * + + 23 AS col0 FROM tab0
----
2001
2231
345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, 3 * - col2 col2 FROM tab2 AS cor0
----
46
-69
64
-120
75
-174

query II rowsort
SELECT DISTINCT col0 AS col0, + col1 * + - col1 AS col0 FROM tab0 AS cor0
----
15
-6561
87
-441
97
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2373
SELECT col2 DIV col0 DIV + 88 + 7 FROM tab0 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-2373
SELECT col2 / col0 / + 88 + 7 FROM tab0 AS cor0
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2374
SELECT ALL - - CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2374
SELECT ALL - - CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - 18 AS col0, col1 col2 FROM tab1
----
-1530
5
-1638
47
-918
14

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> + 10 * - 61 + 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT ALL ( - SUM( DISTINCT 21 ) ) FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-2377
SELECT ALL ( - SUM ( DISTINCT 21 ) ) FROM tab0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2378
SELECT ( + CAST( + + col2 AS SIGNED ) ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2378
SELECT ( + CAST ( + + col2 AS INTEGER ) ) FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 + + col1 AND 94 - + 12
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2380
SELECT ALL + 8 * col2 * - CAST( NULL AS SIGNED ) col0, - col1 FROM tab0 AS cor0 WHERE NOT 10 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2380
SELECT ALL + 8 * col2 * - CAST ( NULL AS INTEGER ) col0, - col1 FROM tab0 AS cor0 WHERE NOT 10 IS NOT NULL
----

query I rowsort
SELECT - 9 FROM tab1 AS cor0 WHERE NOT col0 + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2382
SELECT - - CAST( ( COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2382
SELECT - - CAST ( ( COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE + + ( - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * - col2 * - - col2 FROM tab2
----
-123200
-225388
-26979

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 NOT IN ( - + 28, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = - - col0 * - 15 * col1 * - + col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 97 / - + col2 BETWEEN NULL AND - - 22 * - col2 / col0
----

query I rowsort
SELECT col1 + - col2 + + col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2389
SELECT + - col2 col0, + CAST( 78 AS SIGNED ) FROM tab1 cor0
----
-59
78
-68
78
-96
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2389
SELECT + - col2 col0, + CAST ( 78 AS INTEGER ) FROM tab1 cor0
----
-59
78
-68
78
-96
78

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 88 + col0 AS col0 FROM tab0 AS cor0
----
103
175
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2392
SELECT ALL ( + CAST( - - col2 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2392
SELECT ALL ( + CAST ( - - col2 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT COUNT( * ) FROM tab1 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2393
SELECT COUNT ( * ) FROM tab1 cor0 WHERE NULL IS NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2394
SELECT DISTINCT - + col0 + - 4 / CAST( NULL AS DECIMAL ) * col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2394
SELECT DISTINCT - + col0 + - 4 / CAST ( NULL AS REAL ) * col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT 86 - + - col1 + + ( col2 ), col0 FROM tab1
----
150
85
196
51
201
91

query I rowsort
SELECT DISTINCT + ( - + col1 ) * col1 * - + 73 FROM tab1
----
14308
161257
1825

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT ALL - 58 + - - COUNT( DISTINCT + + col2 ) FROM tab2
----
-55

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL - 58 + - - COUNT ( DISTINCT + + col2 ) FROM tab2
----
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 col2 FROM tab2 WHERE NULL IS NULL
----
-41
-41
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 * - - col2 col1 FROM tab2
----
1541
2680
3886

query I rowsort
SELECT ALL + col2 * - + col0 * + col2 AS col0 FROM tab0
----
-33135
-8700
-950697

query I rowsort
SELECT - col1 + 39 * + 93 AS col1 FROM tab1 AS cor0
----
3580
3613
3622

query I rowsort
SELECT ALL - col0 + + col0 + col2 * + + col2 * + - col2 FROM tab0 AS cor0
----
-1000
-103823
-970299

query I rowsort
SELECT ALL + + col0 + - - col2 - + ( + - ( col2 ) ) FROM tab2 AS cor0
----
144
191
92

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 31 * + col0 * - + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2405
SELECT DISTINCT - - CAST( - + ( + - col0 ) AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2405
SELECT DISTINCT - - CAST ( - + ( + - col0 ) AS INTEGER ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2406
SELECT + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col1 * - + 52 + - 20 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2406
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col1 * - + 52 + - 20 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 6 + col1 + + col0 + - + 64 * + col0 / + + 29 AND + col1
----

query I rowsort
SELECT - col1 * + - col1 AS col1 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT ALL - + 36 AS col2 FROM tab0 AS cor0
----
-36
-36
-36

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + + col0 ) + + col0 * + 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2411
SELECT 8 DIV - - col1 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2411
SELECT 8 / - - col1 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT DISTINCT - + SUM( - 6 ) * + + MIN( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
414

skipif mysql # not compatible
query I rowsort label-2412
SELECT DISTINCT - + SUM ( - 6 ) * + + MIN ( DISTINCT col2 ) AS col1 FROM tab2 AS cor0
----
414

query I rowsort
SELECT ALL 8 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT ALL ( MIN( - col0 ) ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL ( MIN ( - col0 ) ) AS col2 FROM tab1
----
-91

query II rowsort
SELECT ALL col2 AS col2, 43 AS col2 FROM tab0 WHERE 59 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 NOT IN ( col1, + 47 / - 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT ( - MAX( + col1 ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2417
SELECT ( - MAX ( + col1 ) ) FROM tab0
----
-81

query I rowsort
SELECT DISTINCT 71 FROM tab1 WHERE col1 = - 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT ALL + COUNT( * ) * 72 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-2419
SELECT ALL + COUNT ( * ) * 72 FROM tab1
----
216

query I rowsort
SELECT ALL + col1 + - - col0 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT - COUNT( * ) + - 26 - - ( + - MAX( DISTINCT - col0 ) ) AS col1 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-2421
SELECT - COUNT ( * ) + - 26 - - ( + - MAX ( DISTINCT - col0 ) ) AS col1 FROM tab1
----
22

query I rowsort
SELECT - 39 * - 5 + + col1 + - col0 AS col0 FROM tab0
----
129
261
99

onlyif mysql # DIV for integer division: 
query II rowsort label-2423
SELECT ALL + - col2, - col0 DIV - + col1 + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-10
-437
-47
-6561
-99
96

skipif mysql # not compatible
query II rowsort label-2423
SELECT ALL + - col2, - col0 / - + col1 + col1 * - col1 AS col0 FROM tab0 AS cor0
----
-10
-437
-47
-6561
-99
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 8 col2, + ( + col2 ) * + col0 AS col2 FROM tab2 cor0
----
8
1058
8
2560
8
4350

query II rowsort
SELECT DISTINCT ( col0 ) AS col1, col0 AS col1 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT + 45 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query III rowsort
SELECT * FROM tab0 WHERE + 26 / col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT DISTINCT COUNT( * ) + + COUNT( * ) - 32 * + ( - - 68 ) AS col0 FROM tab2 WHERE NOT + + col1 * - - col1 + 65 + + - col1 * col2 + + + col0 * - - 43 NOT BETWEEN NULL AND - col2 * - col2 + + col2
----
-2176

skipif mysql # not compatible
query I rowsort label-2428
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) - 32 * + ( - - 68 ) AS col0 FROM tab2 WHERE NOT + + col1 * - - col1 + 65 + + - col1 * col2 + + + col0 * - - 43 NOT BETWEEN NULL AND - col2 * - col2 + + col2
----
-2176

query I rowsort
SELECT DISTINCT + + 87 * - col0 * 64 AS col2 FROM tab1 AS cor0
----
-283968
-473280
-506688

onlyif mysql # aggregate syntax: 
query II rowsort label-2430
SELECT + - 62 * - 42 * + 53 + + 92 + + - 20 + + COUNT( + - 75 ) * 57 AS col0, COUNT( * ) AS col1 FROM tab1 AS cor0
----
138255
3

skipif mysql # not compatible
query II rowsort label-2430
SELECT + - 62 * - 42 * + 53 + + 92 + + - 20 + + COUNT ( + - 75 ) * 57 AS col0, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
138255
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2431
SELECT ALL - 89 DIV 61 + col0 + + + col2 AS col1 FROM tab2 AS cor0
----
103
132
68

skipif mysql # not compatible
query I rowsort label-2431
SELECT ALL - 89 / 61 + col0 + + + col2 AS col1 FROM tab2 AS cor0
----
103
132
68

query I rowsort
SELECT 37 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col2 * - col2 * - col0 ) AND NULL NOT BETWEEN + col1 + + + col1 AND + ( - 42 )
----

query I rowsort
SELECT ALL - col0 - - col2 AS col0 FROM tab1 AS cor0
----
-23
-26
45

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT ( NULL ) <= - 99 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2435
SELECT DISTINCT + 9 * + + col1 * + 88 col2, - CAST( NULL AS SIGNED ) FROM tab1
----
11088
NULL
37224
NULL
3960
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2435
SELECT DISTINCT + 9 * + + col1 * + 88 col2, - CAST ( NULL AS INTEGER ) FROM tab1
----
11088
NULL
37224
NULL
3960
NULL

query I rowsort
SELECT + ( + 55 ) + - col2 AS col2 FROM tab0
----
-44
45
8

query I rowsort
SELECT ALL col0 - - + col0 AS col2 FROM tab2
----
128
150
92

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT 84 IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2439
SELECT ALL + COUNT( * ) DIV - ( + 13 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL + COUNT ( * ) / - ( + 13 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT + col0 * col2 * + - 89 FROM tab0
----
-62745
-77430
-854667

query I rowsort
SELECT - col1 FROM tab1 WHERE ( ( NOT + 82 IS NOT NULL ) )
----

query II rowsort
SELECT ( + - 69 ) * - ( + 82 ), + 72 * + col2 AS col0 FROM tab0
----
5658
3384
5658
7128
5658
720

query II rowsort
SELECT DISTINCT - col2 AS col1, - col2 * col1 * + col0 FROM tab2 AS cor0
----
-23
-53958
-40
-197120
-58
-291450

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 89 IS NULL
----

query I rowsort
SELECT ALL - 30 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 60 col0 FROM tab0 AS cor0
----
60
60
60

query I rowsort
SELECT - - col1 + 52 FROM tab2 AS cor0
----
103
119
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2448
SELECT - CAST( NULL AS SIGNED ) * - 39 * - - col2 * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2448
SELECT - CAST ( NULL AS INTEGER ) * - 39 * - - col2 * col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 90 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2450
SELECT + - col2 / CAST( NULL AS SIGNED ) + - 47 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2450
SELECT + - col2 / CAST ( NULL AS INTEGER ) + - 47 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 33 * - 87 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2452
SELECT 12 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2452
SELECT 12 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT ALL MIN( DISTINCT col0 ) col2 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2453
SELECT ALL MIN ( DISTINCT col0 ) col2 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-2454
SELECT - COUNT( * ), - COUNT( * ) AS col1 FROM tab2
----
-3
-3

skipif mysql # not compatible
query II rowsort label-2454
SELECT - COUNT ( * ), - COUNT ( * ) AS col1 FROM tab2
----
-3
-3

query I rowsort
SELECT ALL + ( + col2 ) + + col1 - - - col1 AS col2 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2456
SELECT ALL COUNT( * ) + + - CAST( + + 29 AS SIGNED ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-2456
SELECT ALL COUNT ( * ) + + - CAST ( + + 29 AS INTEGER ) FROM tab0 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT COUNT( * ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2457
SELECT COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL col2 + + - col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2459
SELECT * FROM tab0 WHERE NULL IN ( - col1, - col0 + + + col2, + CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2459
SELECT * FROM tab0 WHERE NULL IN ( - col1, - col0 + + + col2, + CAST ( + col0 AS INTEGER ) )
----

query I rowsort
SELECT 50 * + - ( + col1 ) + + - 34 + + + col0 FROM tab2
----
-2538
-3309
-3820

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2461
SELECT * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT NULL BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-2461
SELECT * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NOT NULL BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE + col0 + - - col2 < + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, - 42 col0 FROM tab2 AS cor0
----
-51
-42
-67
-42
-77
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-2464
SELECT 7 DIV col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2464
SELECT 7 / col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - ( - - 25 ) FROM tab0 AS cor0
----
-25
-25
-25

query I rowsort
SELECT DISTINCT + col0 + ( + col0 ) FROM tab0 AS cor0
----
174
194
30

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2467
SELECT ALL * FROM tab2 WHERE col0 <= NULL AND NOT - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2467
SELECT ALL * FROM tab2 WHERE col0 <= NULL AND NOT - CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT col1 * + col0 - - 50 AS col1 FROM tab2
----
2396
4978
5075

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 BETWEEN NULL AND - 6 + + col2
----

query I rowsort
SELECT col2 * + 76 / + 22 + - col1 / + + col1 FROM tab0 WHERE NOT - + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - - 5 + + ( - - col2 ) AS col2 FROM tab1 WHERE NOT - col2 + - 70 IS NULL
----
101
64
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2472
SELECT ALL - CAST( - 42 AS SIGNED ) AS col0 FROM tab0
----
42
42
42

skipif mysql # not compatible
query I rowsort label-2472
SELECT ALL - CAST ( - 42 AS INTEGER ) AS col0 FROM tab0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2473
SELECT + COUNT( DISTINCT - + ( + 44 ) ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2473
SELECT + COUNT ( DISTINCT - + ( + 44 ) ) FROM tab0 cor0
----
1

query I rowsort
SELECT ALL col2 * col1 - 12 FROM tab2 AS cor0
----
1161
3068
3874

query I rowsort
SELECT ALL 56 * - col2 * ( - + col0 ) FROM tab0 cor0
----
39480
48720
537768

query I rowsort
SELECT + 31 * 99 FROM tab0 AS cor0
----
3069
3069
3069

query I rowsort
SELECT ALL 10 * + col2 FROM tab2
----
230
400
580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, col0 col2 FROM tab1
----
-51
51
-85
85
-91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 47 col2 FROM tab0 AS cor0 WHERE NOT - 69 * - - col1 * - col1 <= - - col1
----
-47
-47
-47

query I rowsort
SELECT + - 50 AS col1 FROM tab0 cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT - + COUNT( - col2 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2481
SELECT - + COUNT ( - col2 ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2482
SELECT DISTINCT + COUNT( * ) AS col2, + 48 FROM tab0 AS cor0
----
3
48

skipif mysql # not compatible
query II rowsort label-2482
SELECT DISTINCT + COUNT ( * ) AS col2, + 48 FROM tab0 AS cor0
----
3
48

query I rowsort
SELECT DISTINCT - col1 * ( + + col1 ) FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT + ( - + col1 ) FROM tab2 AS cor0 WHERE NOT - col0 * + - 55 > - 51
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2485
SELECT ALL + + col1 DIV - 79 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2485
SELECT ALL + + col1 / - 79 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT MAX( col2 ) col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2486
SELECT MAX ( col2 ) col1 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT DISTINCT COUNT( * ) * - ( + MIN( col1 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2487
SELECT DISTINCT COUNT ( * ) * - ( + MIN ( col1 ) ) FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + - 98 + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2489
SELECT col2 + + col1 + col2 DIV + ( + + ( col0 ) ) FROM tab0
----
101
131
31

skipif mysql # not compatible
query I rowsort label-2489
SELECT col2 + + col1 + col2 / + ( + + ( col0 ) ) FROM tab0
----
101
131
31

query I rowsort
SELECT DISTINCT - - col0 + + + ( + - 36 ) FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT DISTINCT - MIN( ALL + 15 ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-2491
SELECT DISTINCT - MIN ( ALL + 15 ) FROM tab1
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-2492
SELECT DISTINCT + col1 + - col0 + col1 DIV col0 + + col0 AS col1 FROM tab0
----
1
21
86

skipif mysql # not compatible
query I rowsort label-2492
SELECT DISTINCT + col1 + - col0 + col1 / col0 + + col0 AS col1 FROM tab0
----
1
21
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2493
SELECT CAST( NULL AS SIGNED ) / - ( + COUNT( * ) ) + - 68 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2493
SELECT CAST ( NULL AS INTEGER ) / - ( + COUNT ( * ) ) + - 68 FROM tab2
----
NULL

query I rowsort
SELECT ALL + ( + - col2 ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL + + col0 * - - col1 + + col2 + + 47 * + col1 + - 36 * + col1 * - - 34 * - ( col0 ) AS col0 FROM tab2 cor0
----
2876270
6040459
6158832

query I rowsort
SELECT DISTINCT + + col0 * + - 77 + + 60 AS col2 FROM tab1 WHERE NOT - + 52 = + 49
----
-3867
-6485
-6947

query I rowsort
SELECT DISTINCT col2 * - + col2 + + 67 AS col2 FROM tab2
----
-1533
-3297
-462

query I rowsort
SELECT col2 * + 90 - col1 * + + col1 AS col1 FROM tab2
----
-2329
-531
731

query I rowsort
SELECT - col2 * - col1 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT - + col1 + + 24 FROM tab0 AS cor0
----
-57
23
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) col0 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT - + col2 * - 21 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT DISTINCT 82 * - - COUNT( * ) FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-2503
SELECT DISTINCT 82 * - - COUNT ( * ) FROM tab0 AS cor0
----
246

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT DISTINCT - SUM( + + 84 ) FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-2504
SELECT DISTINCT - SUM ( + + 84 ) FROM tab2
----
-252

query II rowsort
SELECT + 67 AS col0, - col2 FROM tab2
----
67
-23
67
-40
67
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2506
SELECT + col0, col2 / - CAST( NULL AS SIGNED ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-2506
SELECT + col0, col2 / - CAST ( NULL AS INTEGER ) FROM tab0
----
15
NULL
87
NULL
97
NULL

query II rowsort
SELECT DISTINCT - col1, col0 FROM tab1
----
-14
51
-47
91
-5
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2508
SELECT DISTINCT COUNT( * ) AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-2508
SELECT DISTINCT COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT DISTINCT - MAX( - 26 ) FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT - MAX ( - 26 ) FROM tab0
----
26

query I rowsort
SELECT + col2 * + - 61 * 95 AS col1 FROM tab0
----
-272365
-573705
-57950

query I rowsort
SELECT ALL - + 90 * + col2 FROM tab1 AS cor0
----
-5310
-6120
-8640

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT ALL + - COUNT( + + 0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2512
SELECT ALL + - COUNT ( + + 0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2513
SELECT - col2 * 66 * - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2513
SELECT - col2 * 66 * - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col0 AS col2, col2 * col1 AS col1 FROM tab0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
15
3807
87
210
97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2515
SELECT CAST( - 13 AS SIGNED ) FROM tab0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-2515
SELECT CAST ( - 13 AS INTEGER ) FROM tab0
----
-13
-13
-13

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + 56 * - col2
----

query I rowsort
SELECT DISTINCT - 83 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-83

query I rowsort
SELECT - col0 + - 94 + col2 AS col0 FROM tab2 AS cor0
----
-111
-117
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT - COUNT( * ) col2 FROM tab0 AS cor0 WHERE 8 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2519
SELECT - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE 8 IS NULL
----
0

query I rowsort
SELECT ALL + - col1 + col2 - + - col2 * - + col0 AS col1 FROM tab0 AS cor0
----
-739
-881
-9505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2521
SELECT DISTINCT CAST( - 67 AS SIGNED ) * - col2 - + 27 * - 11 + col2 * ( - col0 ) * col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - - col0 )
----

skipif mysql # not compatible
query I rowsort label-2521
SELECT DISTINCT CAST ( - 67 AS INTEGER ) * - col2 - + 27 * - 11 + col2 * ( - col0 ) * col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - - col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2522
SELECT ( - COUNT( * ) ) DIV - 53 - + COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2522
SELECT ( - COUNT ( * ) ) / - 53 - + COUNT ( * ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT - COUNT( ALL col1 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2524
SELECT - COUNT ( ALL col1 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT ( - col2 ) * + col2 + + col2 FROM tab1
----
-3422
-4556
-9120

query I rowsort
SELECT ALL + 31 * 96 FROM tab2
----
2976
2976
2976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2527
SELECT DISTINCT CAST( 51 AS SIGNED ) FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-2527
SELECT DISTINCT CAST ( 51 AS INTEGER ) FROM tab0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT ALL + 87 * - SUM( ALL - - col0 ) AS col0 FROM tab2
----
-16095

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL + 87 * - SUM ( ALL - - col0 ) AS col0 FROM tab2
----
-16095

query I rowsort
SELECT ALL 39 * - col2 FROM tab2
----
-1560
-2262
-897

query I rowsort
SELECT + + col1 + - - col2 AS col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT DISTINCT + 93 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT + 93 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2532
SELECT + 95 + + COUNT( ALL + CAST( 77 AS DECIMAL ) ) FROM tab1 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-2532
SELECT + 95 + + COUNT ( ALL + CAST ( 77 AS REAL ) ) FROM tab1 AS cor0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2533
SELECT + 56 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2533
SELECT + 56 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2534
SELECT - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT DISTINCT 12 * col0 AS col2 FROM tab2
----
552
768
900

query II rowsort
SELECT - col2 * - - 11 AS col1, - 88 FROM tab0 AS cor0
----
-1089
-88
-110
-88
-517
-88

query I rowsort
SELECT ALL ( ( - col2 ) ) * col0 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT MIN( DISTINCT ( - 27 ) ) FROM tab0 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2538
SELECT MIN ( DISTINCT ( - 27 ) ) FROM tab0 cor0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2539
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COUNT( * ) + - + 44 + CAST( NULL AS SIGNED ) + - 95 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2539
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - + 44 + CAST ( NULL AS INTEGER ) + - 95 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2540
SELECT col2 * - col0 * 46 * - col2 + col2 DIV + + 84 - - col2 DIV col0 col2 FROM tab1 AS cor0
----
13610710
19356064
21620738

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2540
SELECT col2 * - col0 * 46 * - col2 + col2 / + + 84 - - col2 / col0 col2 FROM tab1 AS cor0
----
13610710
19356064
21620738

query II rowsort
SELECT DISTINCT + 98 / - col2, 52 + + + col0 FROM tab2 WHERE + - col1 IN ( + 74 / col0, + col2 / col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col0, col0 AS col0 FROM tab2
----
46
46
64
64
75
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * - col0 = - + 86
----

query I rowsort
SELECT ALL - + col2 + - - col1 AS col1 FROM tab0 AS cor0
----
-98
11
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + col1 col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT DISTINCT + col0 + - - 10 * + + col1 * - ( 93 ) AS col1 FROM tab2 AS cor0
----
-47384
-62235
-71546

query III rowsort
SELECT + + col0 AS col2, - col1 AS col2, + - col2 * - col1 AS col1 FROM tab2 AS cor0
----
9 values hashing to 812796ffdfd74fd6ec63b5a598cda658

onlyif mysql # DIV for integer division: 
query II rowsort label-2548
SELECT - col1 AS col2, col1 + + + 74 DIV - col0 FROM tab0 AS cor0
----
-1
1
-21
21
-81
77

skipif mysql # not compatible
query II rowsort label-2548
SELECT - col1 AS col2, col1 + + + 74 / - col0 FROM tab0 AS cor0
----
-1
1
-21
21
-81
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 39 IS NULL
----

query I rowsort
SELECT ( + + 68 ) + + 40 FROM tab1 cor0
----
108
108
108

query II rowsort
SELECT ALL - col2 + - 44 * + 24 * col0, col1 AS col1 FROM tab1 AS cor0
----
-53952
14
-89819
5
-96164
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2552
SELECT ALL - SUM( CAST( NULL AS SIGNED ) ), COUNT( DISTINCT 83 ) col1 FROM tab0 AS cor0
----
NULL
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2552
SELECT ALL - SUM ( CAST ( NULL AS INTEGER ) ), COUNT ( DISTINCT 83 ) col1 FROM tab0 AS cor0
----
NULL
1

query I rowsort
SELECT DISTINCT col1 * - 53 - - col1 + + - col2 FROM tab0 AS cor0
----
-1102
-151
-4259

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT ALL - + SUM( - + ( + col2 ) ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2554
SELECT ALL - + SUM ( - + ( + col2 ) ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT ALL + 53 + - 82 AS col1 FROM tab0
----
-29
-29
-29

query III rowsort
SELECT * FROM tab1 WHERE - col1 = + ( - col0 ) + col0
----

query II rowsort
SELECT DISTINCT + col0 * + 12, - 71 AS col0 FROM tab1
----
1020
-71
1092
-71
612
-71

query I rowsort
SELECT + 57 + col2 AS col1 FROM tab2
----
115
80
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT DISTINCT COUNT( * ) * + + 53 * - + COUNT( * ) AS col1 FROM tab2
----
-477

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT COUNT ( * ) * + + 53 * - + COUNT ( * ) AS col1 FROM tab2
----
-477

query I rowsort
SELECT DISTINCT col0 * - col0 * - col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
249696
426275
563108

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT DISTINCT + 93 * MIN( ALL - 74 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-6882

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT + 93 * MIN ( ALL - 74 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-6882

query I rowsort
SELECT 66 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1 + 70 col2, + 14 AS col0 FROM tab2 AS cor0
----
121
14
137
14
147
14

query I rowsort
SELECT ALL + col2 * 54 FROM tab1
----
3186
3672
5184

onlyif mysql # aggregate syntax: 
query I rowsort label-2565
SELECT ALL + ( - - COUNT( * ) ) FROM tab2 WHERE NOT - 72 - 49 >= + 90
----
3

skipif mysql # not compatible
query I rowsort label-2565
SELECT ALL + ( - - COUNT ( * ) ) FROM tab2 WHERE NOT - 72 - 49 >= + 90
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2566
SELECT ALL col0 DIV - + col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL col0 / - + col0 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT - 42 * COUNT( * ) * - 83 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2567
SELECT - 42 * COUNT ( * ) * - 83 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

query I rowsort
SELECT col2 * - + 72 FROM tab1 AS cor0
----
-4248
-4896
-6912

onlyif mysql # aggregate syntax: 
query I rowsort label-2569
SELECT ALL - MAX( - col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2569
SELECT ALL - MAX ( - col1 ) AS col2 FROM tab1 AS cor0
----
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1, col1 + + + col2, + 91 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT + MIN( DISTINCT col2 ) * + - MIN( - col0 ) AS col1 FROM tab1 AS cor0
----
5369

skipif mysql # not compatible
query I rowsort label-2571
SELECT + MIN ( DISTINCT col2 ) * + - MIN ( - col0 ) AS col1 FROM tab1 AS cor0
----
5369

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2572
SELECT ALL - 72 DIV - - ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2572
SELECT ALL - 72 / - - ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-24

onlyif mysql # DIV for integer division: 
query III rowsort label-2573
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 DIV + col0 * + col1 <= col1
----

skipif mysql # not compatible
query III rowsort label-2573
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 / + col0 * + col1 <= col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 73 col0, + 27 FROM tab1 cor0
----
73
27
73
27
73
27

query I rowsort
SELECT ALL + 82 * + + col1 FROM tab0 AS cor0
----
1722
6642
82

query I rowsort
SELECT ALL - - 0 * + col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2577
SELECT DISTINCT + COUNT( * ) AS col2, + 47 FROM tab0 AS cor0
----
3
47

skipif mysql # not compatible
query II rowsort label-2577
SELECT DISTINCT + COUNT ( * ) AS col2, + 47 FROM tab0 AS cor0
----
3
47

onlyif mysql # aggregate syntax: 
query II rowsort label-2578
SELECT COUNT( + + col0 ), 65 * - - COUNT( * ) col2 FROM tab2
----
3
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2578
SELECT COUNT ( + + col0 ), 65 * - - COUNT ( * ) col2 FROM tab2
----
3
195

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT SUM( ALL - 51 ) AS col2 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-2579
SELECT SUM ( ALL - 51 ) AS col2 FROM tab2
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT ( - + MIN( - - 13 ) ) AS col1 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-2580
SELECT ( - + MIN ( - - 13 ) ) AS col1 FROM tab1
----
-13

query II rowsort
SELECT 43 * col1, - col2 + col2 AS col0 FROM tab2
----
2193
0
2881
0
3311
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> 93 * 46 / + col2
----

query II rowsort
SELECT col1 * - col2 AS col2, col1 + col2 FROM tab1 AS cor0
----
-1344
110
-295
64
-3196
115

query I rowsort
SELECT ALL - col1 + - 53 AS col1 FROM tab0
----
-134
-54
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-2585
SELECT + col0 DIV + 42 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2585
SELECT + col0 / + 42 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab2 WHERE NOT - + col2 + 29 + + col0 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT + MIN( + col1 ) + COUNT( * ) + + 84 * + 31 * + COUNT( * ) + - 10 * + - COUNT( * ) AS col2 FROM tab1
----
7850

skipif mysql # not compatible
query I rowsort label-2587
SELECT + MIN ( + col1 ) + COUNT ( * ) + + 84 * + 31 * + COUNT ( * ) + - 10 * + - COUNT ( * ) AS col2 FROM tab1
----
7850

query II rowsort
SELECT - col2 * + + 23 + - col2 AS col2, + col0 FROM tab0 cor0
----
-1128
15
-2376
97
-240
87

query I rowsort
SELECT DISTINCT + 31 * + + col0 + 37 FROM tab1 AS cor0
----
1618
2672
2858

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE + 91 * + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2591
SELECT - + CAST( NULL AS SIGNED ), 24 * MIN( - col2 ) AS col2 FROM tab0 AS cor0
----
NULL
-2376

skipif mysql # not compatible
query II rowsort label-2591
SELECT - + CAST ( NULL AS INTEGER ), 24 * MIN ( - col2 ) AS col2 FROM tab0 AS cor0
----
NULL
-2376

onlyif mysql # aggregate syntax: 
query I rowsort label-2592
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE 15 NOT BETWEEN NULL AND - - 26
----
0

skipif mysql # not compatible
query I rowsort label-2592
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE 15 NOT BETWEEN NULL AND - - 26
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT + + COUNT( * ) * 13 FROM tab0 cor0
----
39

skipif mysql # not compatible
query I rowsort label-2593
SELECT + + COUNT ( * ) * 13 FROM tab0 cor0
----
39

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col0 + col2 + - col1 = + ( - ( + col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - + 13 * - + 48 AS col2 FROM tab0
----
54288
60528
9360

query I rowsort
SELECT ALL + col1 * + - col1 AS col2 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT 67 - COUNT( * ) + - 28 FROM tab1, tab1 AS cor0 WHERE NULL <> NULL
----
39

skipif mysql # not compatible
query I rowsort label-2598
SELECT 67 - COUNT ( * ) + - 28 FROM tab1, tab1 AS cor0 WHERE NULL <> NULL
----
39

query I rowsort
SELECT ALL + ( + + col2 ) AS col2 FROM tab0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2600
SELECT DISTINCT col0 DIV col2 - + + 11 AS col1 FROM tab2 AS cor0
----
-10
-9

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT col0 / col2 - + + 11 AS col1 FROM tab2 AS cor0
----
-10
-9

query I rowsort
SELECT ALL + col0 FROM tab1 cor0 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2602
SELECT col0 DIV - + col0 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2602
SELECT col0 / - + col0 AS col1 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT MIN( DISTINCT - 71 ) col0 FROM tab0
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2603
SELECT MIN ( DISTINCT - 71 ) col0 FROM tab0
----
-71

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT + MIN( col1 ) AS col2 FROM tab2 WHERE NOT - col1 BETWEEN + - 36 * + + col1 - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2605
SELECT + MIN ( col1 ) AS col2 FROM tab2 WHERE NOT - col1 BETWEEN + - 36 * + + col1 - col0 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT + col1 * - - col2 FROM tab0 AS cor0 WHERE NOT ( col1 ) IS NULL
----
210
3807
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( + 58 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2608
SELECT - col0 * - col2 * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2608
SELECT - col0 * - col2 * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= + 54
----

query I rowsort
SELECT ALL + col1 * - ( - col2 ) AS col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2611
SELECT DISTINCT COUNT( CAST( - ( + 4 ) AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2611
SELECT DISTINCT COUNT ( CAST ( - ( + 4 ) AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT 6 * col0 FROM tab0 AS cor0
----
522
582
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2613
SELECT ALL - col2 / + col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL - col2 / + col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab0 WHERE NOT - 5 = col1
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2615
SELECT ALL col2 DIV + 55 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL col2 / + 55 FROM tab0
----
0
0
1

query II rowsort
SELECT 58, col1 FROM tab2
----
58
51
58
67
58
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2617
SELECT + CAST( + 6 AS SIGNED ) AS col0 FROM tab1
----
6
6
6

skipif mysql # not compatible
query I rowsort label-2617
SELECT + CAST ( + 6 AS INTEGER ) AS col0 FROM tab1
----
6
6
6

query I rowsort
SELECT + ( 39 ) AS col1 FROM tab1
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT + ( - - 11 ) * - + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2619
SELECT + ( - - 11 ) * - + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2620
SELECT + col2 * 36 + - CAST( NULL AS SIGNED ) + - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2620
SELECT + col2 * 36 + - CAST ( NULL AS INTEGER ) + - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 31 * - col0 col2 FROM tab2 AS cor0
----
1426
1984
2325

onlyif mysql # DIV for integer division: 
query I rowsort label-2622
SELECT ALL + col0 DIV + + 55 AS col2 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL + col0 / + + 55 AS col2 FROM tab1 cor0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2623
SELECT DISTINCT + CAST( - 37 AS SIGNED ) FROM tab0 WHERE NULL IS NULL
----
-37

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT + CAST ( - 37 AS INTEGER ) FROM tab0 WHERE NULL IS NULL
----
-37

query I rowsort
SELECT DISTINCT 4 + - - 93 FROM tab1, tab1 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2625
SELECT DISTINCT - 79 DIV - - 36 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-2

skipif mysql # not compatible
query I rowsort label-2625
SELECT DISTINCT - 79 / - - 36 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2626
SELECT + ( - + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2626
SELECT + ( - + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2628
SELECT DISTINCT col1 + col1 + CAST( NULL AS SIGNED ) * 16 AS col1, ( + col1 ) * + col1 + col1 FROM tab2 AS cor0
----
NULL
2652
NULL
4556
NULL
6006

skipif mysql # not compatible
query II rowsort label-2628
SELECT DISTINCT col1 + col1 + CAST ( NULL AS INTEGER ) * 16 AS col1, ( + col1 ) * + col1 + col1 FROM tab2 AS cor0
----
NULL
2652
NULL
4556
NULL
6006

query I rowsort
SELECT - 84 - col2 AS col0 FROM tab1 AS cor0
----
-143
-152
-180

query I rowsort
SELECT - col0 - - + col2 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2631
SELECT + 88 + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2631
SELECT + 88 + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 16 + col2 FROM tab2
----
39
56
74

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 53 + ( - col2 ) * + col2 / - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 30 * + col2 AS col1 FROM tab2
----
1200
1740
690

query II rowsort
SELECT - 45, col1 * + 93 AS col0 FROM tab2
----
-45
4743
-45
6231
-45
7161

query I rowsort
SELECT + 15 * - 78 AS col0 FROM tab2
----
-1170
-1170
-1170

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 96 BETWEEN - + col2 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 44 * + col2 AS col1 FROM tab2
----
1012
1760
2552

query II rowsort
SELECT - col1 AS col0, + col1 FROM tab2
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2640
SELECT ALL COUNT( * ) * - COUNT( DISTINCT + 62 ) DIV COUNT( * ) DIV - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2640
SELECT ALL COUNT ( * ) * - COUNT ( DISTINCT + 62 ) / COUNT ( * ) / - COUNT ( * ) FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2641
SELECT DISTINCT + ( MAX( DISTINCT - - CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2641
SELECT DISTINCT + ( MAX ( DISTINCT - - CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2642
SELECT + col2, CAST( - 61 AS SIGNED ) AS col0 FROM tab0
----
10
-61
47
-61
99
-61

skipif mysql # not compatible
query II rowsort label-2642
SELECT + col2, CAST ( - 61 AS INTEGER ) AS col0 FROM tab0
----
10
-61
47
-61
99
-61

query I rowsort
SELECT DISTINCT - - 6 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-2644
SELECT + COUNT( * ) AS col0, 69 FROM tab2
----
3
69

skipif mysql # not compatible
query II rowsort label-2644
SELECT + COUNT ( * ) AS col0, 69 FROM tab2
----
3
69

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2645
SELECT * FROM tab0 WHERE NOT NULL <> - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2645
SELECT * FROM tab0 WHERE NOT NULL <> - CAST ( NULL AS REAL )
----

query I rowsort
SELECT - col0 * + ( - - col2 ) AS col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT + - ( - + col2 ) * - + col0 FROM tab0 AS cor0
----
-705
-870
-9603

query II rowsort
SELECT ALL + - col1, - col1 AS col2 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2649
SELECT DISTINCT + - COUNT( * ) * + - COUNT( * ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT + - COUNT ( * ) * + - COUNT ( * ) FROM tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2650
SELECT ALL - 26 + + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col2 * + col2 + + col2 + - 75 >= - 30 + + 9
----
-26

skipif mysql # not compatible
query I rowsort label-2650
SELECT ALL - 26 + + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col2 * + col2 + + col2 + - 75 >= - 30 + + 9
----
-26

query I rowsort
SELECT ALL - col0 * + 37 AS col2 FROM tab0 AS cor0
----
-3219
-3589
-555

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 <= - col2 + + 8 / col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT - COUNT( ALL - + 11 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2653
SELECT - COUNT ( ALL - + 11 ) AS col2 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-2654
SELECT col1 DIV 96 AS col2, + col1 AS col1 FROM tab1
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-2654
SELECT col1 / 96 AS col2, + col1 AS col1 FROM tab1
----
0
14
0
47
0
5

query I rowsort
SELECT ALL col2 + + col2 * + + col2 AS col2 FROM tab0
----
110
2256
9900

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) <= + 20
----

query I rowsort
SELECT + 0 FROM tab2 AS cor0 WHERE col2 + + col0 * - + col0 + - - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT - COUNT( * ) * 52 AS col0 FROM tab0 cor0 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2658
SELECT - COUNT ( * ) * 52 AS col0 FROM tab0 cor0 WHERE + col1 IS NULL
----
0

query I rowsort
SELECT - - col2 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2660
SELECT col1 + + col1 + - col2 / + CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2660
SELECT col1 + + col1 + - col2 / + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 31 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f4b05206ee2fc0cf8007d9c3514885fa

query I rowsort
SELECT + - 81 + + 26 + - col1 FROM tab0 WHERE + col2 - + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT ALL + - 25 * - + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
225

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL + - 25 * - + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
225

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 33 AND - col2
----

query I rowsort
SELECT DISTINCT - + col2 * - - 40 FROM tab1 AS cor0
----
-2360
-2720
-3840

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT DISTINCT COUNT( * ) + + 60 col2 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2666
SELECT DISTINCT COUNT ( * ) + + 60 col2 FROM tab0 AS cor0
----
63

query II rowsort
SELECT + 97 AS col1, - 47 FROM tab0 cor0
----
97
-47
97
-47
97
-47

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT + MIN( - + col2 ) AS col2 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2669
SELECT + MIN ( - + col2 ) AS col2 FROM tab2 cor0
----
-58

query I rowsort
SELECT DISTINCT 71 * - col1 * + + col2 - + col2 AS col1 FROM tab0 AS cor0
----
-14920
-270344
-7128

query I rowsort
SELECT DISTINCT col2 + - - col2 AS col2 FROM tab0
----
198
20
94

query I rowsort
SELECT col2 * - 55 - col2 FROM tab0
----
-2632
-5544
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-2673
SELECT ALL - COUNT( * ) - 49 AS col2 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-2673
SELECT ALL - COUNT ( * ) - 49 AS col2 FROM tab1
----
-52

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NOT + 34 + ( - 69 ) > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 72 + - col2 + 92 IN ( - col0, col1, 83, + - 8 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 1 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT ALL - SUM( - 21 ) AS col0 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL - SUM ( - 21 ) AS col0 FROM tab2
----
63

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * - ( + + col0 ) - + + col0 * + + col2 - + col2 + - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col2, col0 - - ( - col0 ) AS col0 FROM tab0 AS cor0
----
10
0
47
0
99
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col0, - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2681
SELECT col1 FROM tab1 AS cor0 WHERE NOT + col0 + - + col2 BETWEEN + col0 AND - CAST( NULL AS SIGNED ) + - + 93 + + col0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2681
SELECT col1 FROM tab1 AS cor0 WHERE NOT + col0 + - + col2 BETWEEN + col0 AND - CAST ( NULL AS INTEGER ) + - + 93 + + col0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT SUM( - col1 ) AS col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2682
SELECT SUM ( - col1 ) AS col0 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT DISTINCT - + 28 * + ( ( col2 ) ) + + ( + 6 ) FROM tab0 AS cor0
----
-1310
-274
-2766

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2684
SELECT + + ( + CAST( 2 AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT col2 * + 19 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2684
SELECT + + ( + CAST ( 2 AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT col2 * + 19 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2685
SELECT ALL + SUM( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2685
SELECT ALL + SUM ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT 42, col1 FROM tab2
----
42
51
42
67
42
77

query II rowsort
SELECT ALL col0 AS col1, + 86 + col1 AS col2 FROM tab1
----
51
100
85
91
91
133

query II rowsort
SELECT DISTINCT col2, 30 + - 55 FROM tab0
----
10
-25
47
-25
99
-25

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 + - 27 + col0 - + col0 / - + 66 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * - col1 * 8 FROM tab2
----
-18768
-39424
-40200

query I rowsort
SELECT 63 + + col2 * - 24 FROM tab0
----
-1065
-177
-2313

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT DISTINCT + 7 * - COUNT( * ) + + 97 AS col2 FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-2692
SELECT DISTINCT + 7 * - COUNT ( * ) + + 97 AS col2 FROM tab1 AS cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT ALL + COUNT( * ) + + ( 66 ) AS col2 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL + COUNT ( * ) + + ( 66 ) AS col2 FROM tab1 AS cor0
----
69

query I rowsort
SELECT DISTINCT + + col1 + col0 * - 35 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-3024
-3394
-444

query I rowsort
SELECT ( col0 ) + - - 55 AS col2 FROM tab0 AS cor0
----
142
152
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2696
SELECT - + CAST( - 37 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-2696
SELECT - + CAST ( - 37 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT DISTINCT - - ( - + COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2697
SELECT DISTINCT - - ( - + COUNT ( * ) ) FROM tab1 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT DISTINCT - - ( - + COUNT( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT - - ( - + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT - col0 + + + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + 28 + + col1 - - 60 + - + col2 - - ( col1 ) * + col0 * col0 AS col0 FROM tab1 AS cor0
----
36159
36420
389274

query I rowsort
SELECT - + col1 + + col2 AS col1 FROM tab2 cor0
----
-28
-37
-9

query I rowsort
SELECT ALL - + col2 - + col2 - + + col0 FROM tab1 AS cor0
----
-203
-227
-243

query I rowsort
SELECT ALL col2 - + 8 * + 14 * + col0 * - col0 AS col0 FROM tab1
----
291408
809259
927540

query I rowsort
SELECT - col0 * - - col0 AS col2 FROM tab0
----
-225
-7569
-9409

query III rowsort
SELECT ALL * FROM tab2 WHERE - 8 IN ( col2 + 24, col1 )
----

query I rowsort
SELECT DISTINCT col2 * + 18 * - col1 AS col0 FROM tab1
----
-24192
-5310
-57528

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2708
SELECT DISTINCT * FROM tab1 WHERE ( ( CAST( + 91 AS DECIMAL ) * + col0 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2708
SELECT DISTINCT * FROM tab1 WHERE ( ( CAST ( + 91 AS REAL ) * + col0 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT DISTINCT - MAX( DISTINCT + - col2 ) col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2709
SELECT DISTINCT - MAX ( DISTINCT + - col2 ) col1 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL ( 30 ) * + col2 + - col1 AS col1 FROM tab2
----
1123
1673
639

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( col0 * - col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col1 ) <= ( + col2 * 97 )
----

query I rowsort
SELECT col0 * - 41 FROM tab1 WHERE NOT NULL <> - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - 46
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col2 / + 34 + - 25 * - col1 ) >= NULL
----

query I rowsort
SELECT DISTINCT 18 + - col2 AS col1 FROM tab0 WHERE NOT ( - col1 + + col1 * 59 ) IS NOT NULL
----

query I rowsort
SELECT 82 FROM tab0 WHERE + col1 <= ( + col1 - - col0 )
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2718
SELECT ALL * FROM tab2 WHERE NOT ( - CAST( NULL AS SIGNED ) ) * + col2 NOT BETWEEN 94 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2718
SELECT ALL * FROM tab2 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) * + col2 NOT BETWEEN 94 AND NULL
----

query I rowsort
SELECT ALL col0 FROM tab1 WHERE ( NULL ) NOT IN ( 35 )
----

query I rowsort
SELECT 54 + + ( + col2 ) AS col1 FROM tab0
----
101
153
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2721
SELECT ALL * FROM tab0 WHERE + CAST( NULL AS SIGNED ) / - col1 IN ( col2 * col1 )
----

skipif mysql # not compatible
query III rowsort label-2721
SELECT ALL * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) / - col1 IN ( col2 * col1 )
----

query I rowsort
SELECT - 65 - + col2 FROM tab0
----
-112
-164
-75

query I rowsort
SELECT ALL 76 + + col1 AS col1 FROM tab0
----
157
77
97

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT 39 - + col0 IN ( + col2 )
----
1
21
81

query I rowsort
SELECT + 54 * - col1 FROM tab0
----
-1134
-4374
-54

query I rowsort
SELECT - col0 * 27 AS col1 FROM tab1
----
-1377
-2295
-2457

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE - col1 NOT BETWEEN + 56 AND NULL
----
46
64
75

query I rowsort
SELECT ALL 0 + - 6 AS col0 FROM tab1
----
-6
-6
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2729
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + CAST( NULL AS DECIMAL ) - + col2 / + col2 )
----

skipif mysql # not compatible
query III rowsort label-2729
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + CAST ( NULL AS REAL ) - + col2 / + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT MAX( DISTINCT col2 ) - SUM( DISTINCT col0 ) AS col1 FROM tab1
----
-131

skipif mysql # not compatible
query I rowsort label-2730
SELECT MAX ( DISTINCT col2 ) - SUM ( DISTINCT col0 ) AS col1 FROM tab1
----
-131

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 <> 90 * col1
----

query I rowsort
SELECT ALL 50 FROM tab1 WHERE NOT - ( - col1 ) + + 22 * + ( 16 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < - 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2734
SELECT MIN( + col0 ) / - 77 AS col1 FROM tab2 WHERE NOT 5 <= 56 - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2734
SELECT MIN ( + col0 ) / - 77 AS col1 FROM tab2 WHERE NOT 5 <= 56 - - col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab0 WHERE NOT col0 BETWEEN - col0 - col1 AND 0 * col0
----
15
87
97

query I rowsort
SELECT DISTINCT 42 * - col2 FROM tab2
----
-1680
-2436
-966

onlyif mysql # DIV for integer division: 
query I rowsort label-2737
SELECT + 56 DIV col2 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2737
SELECT + 56 / col2 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 - col1 * 47 FROM tab0 AS cor0 WHERE + col0 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT DISTINCT MIN( - col1 ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-2739
SELECT DISTINCT MIN ( - col1 ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-50

query I rowsort
SELECT - 81 + col2 AS col1 FROM tab1 AS cor0
----
-13
-22
15

query I rowsort
SELECT ALL 95 * 27 - + col2 AS col0 FROM tab2
----
2507
2525
2542

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT ALL 62 + 82 * COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
800

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2742
SELECT ALL 62 + 82 * COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
800

onlyif mysql # DIV for integer division: 
query I rowsort label-2743
SELECT 14 DIV + col1 AS col2 FROM tab0 AS cor0
----
0
0
14

skipif mysql # not compatible
query I rowsort label-2743
SELECT 14 / + col1 AS col2 FROM tab0 AS cor0
----
0
0
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2744
SELECT DISTINCT - 64 - + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT ( 35 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT - 64 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT ( 35 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT COUNT( * ) + + 67 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
67

skipif mysql # not compatible
query I rowsort label-2745
SELECT COUNT ( * ) + + 67 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
67

query I rowsort
SELECT DISTINCT - 14 + + ( col2 + 84 ) AS col2 FROM tab1 AS cor0
----
129
138
166

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT - MAX( col2 ) * ( 64 * 8 + - 47 ) FROM tab1 AS cor0
----
-44640

skipif mysql # not compatible
query I rowsort label-2747
SELECT - MAX ( col2 ) * ( 64 * 8 + - 47 ) FROM tab1 AS cor0
----
-44640

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT + MAX( ALL + col0 ) - - 98 * MIN( col1 * - col1 ) FROM tab2 AS cor0
----
-580967

skipif mysql # not compatible
query I rowsort label-2748
SELECT + MAX ( ALL + col0 ) - - 98 * MIN ( col1 * - col1 ) FROM tab2 AS cor0
----
-580967

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2749
SELECT DISTINCT + COUNT( * ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2749
SELECT DISTINCT + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 35 - 4 AS col0 FROM tab2 AS cor0
----
31
31
31

onlyif mysql # DIV for integer division: 
query I rowsort label-2751
SELECT col1 DIV col2 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2751
SELECT col1 / col2 col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 52 AS col2 FROM tab0 AS cor0 WHERE ( col0 * col2 ) IS NOT NULL
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-2753
SELECT DISTINCT + - ( 82 ) * COUNT( * ) FROM tab2 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT + - ( 82 ) * COUNT ( * ) FROM tab2 AS cor0
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT MAX( ALL + + 16 ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-2754
SELECT MAX ( ALL + + 16 ) FROM tab2
----
16

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NOT ( + 88 ) BETWEEN col1 AND 82
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT ( - 52 ) * + ( - col2 + col1 ) AS col0 FROM tab2
----
-1456
-1924
-468

query I rowsort
SELECT DISTINCT + col1 * - - col0 AS col0 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT ALL 65 + COUNT( * ) FROM tab2 WHERE NOT ( - col0 + - col0 ) NOT IN ( 63 * col1 )
----
65

skipif mysql # not compatible
query I rowsort label-2759
SELECT ALL 65 + COUNT ( * ) FROM tab2 WHERE NOT ( - col0 + - col0 ) NOT IN ( 63 * col1 )
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT DISTINCT 73 * + MIN( ALL col0 ) AS col1 FROM tab2 WHERE NOT ( col1 * col0 ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT 73 * + MIN ( ALL col0 ) AS col1 FROM tab2 WHERE NOT ( col1 * col0 ) <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT + COUNT( * ) + 61 col0 FROM tab2 WHERE NOT - col2 NOT BETWEEN ( col1 ) * + col0 AND NULL
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2761
SELECT + COUNT ( * ) + 61 col0 FROM tab2 WHERE NOT - col2 NOT BETWEEN ( col1 ) * + col0 AND NULL
----
61

query I rowsort
SELECT - col2 * - - 22 FROM tab0
----
-1034
-2178
-220

query I rowsort
SELECT - ( col0 ) FROM tab2 WHERE NOT - col0 IS NULL
----
-46
-64
-75

query I rowsort
SELECT - ( + 15 ) AS col1 FROM tab0 AS cor0
----
-15
-15
-15

query I rowsort
SELECT ( - 98 ) FROM tab0 AS cor0 WHERE NOT NULL <= - 41 * col0 - - 55
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2766
SELECT DISTINCT col2 * CAST( 70 AS SIGNED ) FROM tab1 AS cor0
----
4130
4760
6720

skipif mysql # not compatible
query I rowsort label-2766
SELECT DISTINCT col2 * CAST ( 70 AS INTEGER ) FROM tab1 AS cor0
----
4130
4760
6720

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT ( - col0 ) BETWEEN ( - col0 ) AND 45 )
----

query I rowsort
SELECT DISTINCT 54 FROM tab0 WHERE NULL NOT IN ( - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 * - col2 ) > NULL
----

query II rowsort
SELECT DISTINCT col1 AS col0, 10 AS col1 FROM tab2 AS cor0
----
51
10
67
10
77
10

onlyif mysql # aggregate syntax: 
query II rowsort label-2771
SELECT - 90, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-90
-3

skipif mysql # not compatible
query II rowsort label-2771
SELECT - 90, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-90
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT 29 * - MAX( - - col0 ) + 41 FROM tab1 AS cor0
----
-2598

skipif mysql # not compatible
query I rowsort label-2772
SELECT 29 * - MAX ( - - col0 ) + 41 FROM tab1 AS cor0
----
-2598

query I rowsort
SELECT ALL + - col1 + + - col0 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2774
SELECT - COUNT( * ) col1, 44 AS col0 FROM tab2 AS cor0
----
-3
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2774
SELECT - COUNT ( * ) col1, 44 AS col0 FROM tab2 AS cor0
----
-3
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2775
SELECT - ( - - CAST( - col2 AS SIGNED ) ) * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2775
SELECT - ( - - CAST ( - col2 AS INTEGER ) ) * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * col1 + + + 49 FROM tab1 AS cor0
----
1393
3245
344

query II rowsort
SELECT - - 44 AS col0, col1 AS col0 FROM tab1 cor0
----
44
14
44
47
44
5

query I rowsort
SELECT DISTINCT + 51 + + - 10 + - col1 * col1 AS col2 FROM tab1 AS cor0
----
-155
-2168
16

query I rowsort
SELECT ALL - col1 + ( ( + 33 ) ) * 10 FROM tab1
----
283
316
325

query I rowsort
SELECT DISTINCT - 39 * - - 65 * - 12 * col0 AS col0 FROM tab0
----
2646540
2950740
456300

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 77 >= NULL
----

query I rowsort
SELECT + col2 FROM tab1 WHERE ( NULL ) >= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2783
SELECT + CAST( NULL AS SIGNED ) + - col2 + col2 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2783
SELECT + CAST ( NULL AS INTEGER ) + - col2 + col2 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 25 + 10 * + col2 FROM tab2 WHERE + col1 IS NOT NULL
----
205
375
555

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + - col0 + + ( - 71 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2786
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE + - 73 > 23 * - ( + col0 - - CAST( NULL AS SIGNED ) * + col1 )
----

skipif mysql # not compatible
query I rowsort label-2786
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE + - 73 > 23 * - ( + col0 - - CAST ( NULL AS INTEGER ) * + col1 )
----

query I rowsort
SELECT DISTINCT - 95 AS col1 FROM tab1 WHERE NOT NULL BETWEEN - + col2 AND - - 78
----

query I rowsort
SELECT DISTINCT + 33 / + col2 FROM tab1 AS cor0 WHERE + 4 + - col2 * + col0 - - col2 * + 94 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2789
SELECT ALL - COUNT( * ) + - 23 AS col0, - 6 FROM tab2 AS cor0
----
-26
-6

skipif mysql # not compatible
query II rowsort label-2789
SELECT ALL - COUNT ( * ) + - 23 AS col0, - 6 FROM tab2 AS cor0
----
-26
-6

query II rowsort
SELECT DISTINCT - col0 + - col0 AS col1, + 23 * + col0 AS col0 FROM tab0 AS cor0
----
-174
2001
-194
2231
-30
345

query I rowsort
SELECT col1 + - - col2 + - ( 70 ) * + - ( col1 ) * + 94 FROM tab2
----
335654
440985
506777

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1 + - + col1 )
----

query I rowsort
SELECT DISTINCT col0 * + col2 * col0 * + col1 + 66 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 9 * - 29 FROM tab2 AS cor0
----
-261

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2795
SELECT DISTINCT - col0 * + + 21 * + - col2 * - + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2795
SELECT DISTINCT - col0 * + + 21 * + - col2 * - + CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2796
SELECT DISTINCT COUNT( * ) AS col1, - ( - + 56 ) * - 99 FROM tab2
----
3
-5544

skipif mysql # not compatible
query II rowsort label-2796
SELECT DISTINCT COUNT ( * ) AS col1, - ( - + 56 ) * - 99 FROM tab2
----
3
-5544

query I rowsort
SELECT ALL col2 * 16 * + - 51 AS col2 FROM tab2
----
-18768
-32640
-47328

query II rowsort
SELECT DISTINCT col0 AS col2, col2 * + col0 FROM tab1
----
51
4896
85
5015
91
6188

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 + + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col2 AS col0, + col2 AS col1 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT CAST( 19 AS SIGNED ) AS col2 FROM tab2
----
19
19
19

skipif mysql # not compatible
query I rowsort label-2801
SELECT CAST ( 19 AS INTEGER ) AS col2 FROM tab2
----
19
19
19

query II rowsort
SELECT + col0 AS col1, + 24 FROM tab1
----
51
24
85
24
91
24

query I rowsort
SELECT DISTINCT - + col0 * ( - + 26 ) FROM tab1 cor0
----
1326
2210
2366

onlyif mysql # aggregate syntax: 
query I rowsort label-2804
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2804
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2805
SELECT ALL - 24 * + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL - 24 * + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT SUM( DISTINCT 36 ) FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-2806
SELECT SUM ( DISTINCT 36 ) FROM tab1 AS cor0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2807
SELECT + COUNT( * ) DIV 2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2807
SELECT + COUNT ( * ) / 2 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2808
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN - col1 AND + - col0 * - 79 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2808
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN - col1 AND + - col0 * - 79 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2809
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2809
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT ALL + + MAX( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL + + MAX ( ALL + col2 ) AS col2 FROM tab1 AS cor0
----
96

query I rowsort
SELECT ALL - + ( + col0 ) * 54 FROM tab0 AS cor0 WHERE ( - ( - - col1 ) ) * - 83 IS NULL
----

query II rowsort
SELECT ALL - + 13 AS col2, - col1 * + - col0 + + col0 FROM tab0 AS cor0 WHERE NOT ( NOT - - col2 IS NULL )
----

query I rowsort
SELECT DISTINCT + 65 + + col1 + - + col1 AS col2 FROM tab1 AS cor0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2814
SELECT DISTINCT + COUNT( * ) DIV + - COUNT( DISTINCT + - 38 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT + COUNT ( * ) / + - COUNT ( DISTINCT + - 38 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT + 34 * + - COUNT( * ) AS col1 FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-2815
SELECT + 34 * + - COUNT ( * ) AS col1 FROM tab0
----
-102

onlyif mysql # DIV for integer division: 
query I rowsort label-2816
SELECT 12 DIV + col0 FROM tab2 WHERE + 46 * + 35 + col0 + + 8 - col1 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2816
SELECT 12 / + col0 FROM tab2 WHERE + 46 * + 35 + col0 + + 8 - col1 IS NOT NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 36 col2, + ( + col2 ) + - 32 FROM tab0
----
36
-22
36
15
36
67

query II rowsort
SELECT DISTINCT col0, - 11 * col1 AS col1 FROM tab0
----
15
-891
87
-231
97
-11

query II rowsort
SELECT - - 27 AS col1, col2 * 71 AS col1 FROM tab2 WHERE + 93 IS NULL
----

query II rowsort
SELECT DISTINCT - 22 AS col0, col1 * - col2 AS col0 FROM tab2
----
-22
-1173
-22
-3080
-22
-3886

query I rowsort
SELECT DISTINCT ( + col1 ) + + col2 * - col1 * - col1 FROM tab1
----
1480
150259
18830

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, - col1 * - 8 FROM tab2 AS cor0
----
46
408
64
616
75
536

onlyif mysql # aggregate syntax: 
query II rowsort label-2823
SELECT DISTINCT + 17 col0, + COUNT( - col0 ) col0 FROM tab1 AS cor0
----
17
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2823
SELECT DISTINCT + 17 col0, + COUNT ( - col0 ) col0 FROM tab1 AS cor0
----
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT - COUNT( * ) + COUNT( * ) AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2824
SELECT - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2825
SELECT ALL + + COUNT( * ) + + + 38 - - - COUNT( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-2825
SELECT ALL + + COUNT ( * ) + + + 38 - - - COUNT ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
41

query I rowsort
SELECT DISTINCT - 20 + - + col2 FROM tab2 AS cor0
----
-43
-60
-78

query I rowsort
SELECT ALL - - col1 + col0 * 2 FROM tab1 AS cor0
----
116
175
229

query I rowsort
SELECT + 98 + - col2 AS col2 FROM tab0 AS cor0
----
-1
51
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query I rowsort
SELECT + 55 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NULL IN ( + + col1 + - 9, - ( + 32 ), + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT - ( + MAX( - - 21 ) ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2832
SELECT - ( + MAX ( - - 21 ) ) FROM tab1 AS cor0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-2833
SELECT + 86 DIV + - col2 FROM tab2 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2833
SELECT + 86 / + - col2 FROM tab2 cor0
----
-1
-2
-3

query I rowsort
SELECT - col0 * col1 + - 28 FROM tab1 AS cor0
----
-4305
-453
-742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col2 + + + col2 col0 FROM tab2 AS cor0
----
-1560
-3306
-506

query II rowsort
SELECT + + ( col1 ) AS col0, + col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2837
SELECT - 21 DIV col2 DIV 64 * - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2837
SELECT - 21 / col2 / 64 * - col0 FROM tab1
----
0
0
0

query II rowsort
SELECT - col2 * col0 AS col2, - col2 AS col0 FROM tab1 WHERE NOT + - 95 IS NULL
----
-4896
-96
-5015
-59
-6188
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-2839
SELECT ALL SUM( - 74 ) FROM tab1
----
-222

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL SUM ( - 74 ) FROM tab1
----
-222

query II rowsort
SELECT ALL - 95 AS col2, col2 AS col0 FROM tab2
----
-95
23
-95
40
-95
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col1 >= - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2842
SELECT ALL - MAX( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2842
SELECT ALL - MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + 71 + - col0 FROM tab2 WHERE NOT NULL <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT DISTINCT - 0 * - MIN( - + col1 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT - 0 * - MIN ( - + col1 ) FROM tab1
----
0

query I rowsort
SELECT + 2 + ( + 2 ) AS col2 FROM tab0 AS cor0
----
4
4
4

query I rowsort
SELECT - 9 + - - 11 AS col1 FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT DISTINCT + 37 + col1 FROM tab1 cor0
----
42
51
84

query I rowsort
SELECT DISTINCT ( - - col0 ) AS col1 FROM tab1 WHERE NOT - + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2849
SELECT ALL + col1 col2 FROM tab0 WHERE NOT - col2 / + + CAST( NULL AS SIGNED ) / - col2 > ( + 62 - - col1 * - 47 + - col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2849
SELECT ALL + col1 col2 FROM tab0 WHERE NOT - col2 / + + CAST ( NULL AS INTEGER ) / - col2 > ( + 62 - - col1 * - 47 + - col0 )
----

query I rowsort
SELECT ALL + col2 * - - col0 AS col2 FROM tab2
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-2851
SELECT col2 DIV - + 98 * - 18 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2851
SELECT col2 / - + 98 * - 18 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 72 * + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 56 * col0 + - col2 FROM tab2 AS cor0
----
2553
3544
4142

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT ( - MIN( + 10 ) ) FROM tab2 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2854
SELECT ( - MIN ( + 10 ) ) FROM tab2 cor0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-2855
SELECT ALL + - col0 + - col1 DIV - 23 AS col0 FROM tab0 AS cor0
----
-12
-87
-97

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL + - col0 + - col1 / - 23 AS col0 FROM tab0 AS cor0
----
-12
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2856
SELECT - CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-2856
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT 63 + - - 84 + 37 * + col0 FROM tab0 cor0
----
3366
3736
702

query I rowsort
SELECT + 33 + - col2 AS col2 FROM tab2 cor0
----
-25
-7
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2859
SELECT ALL - MAX( + ( col2 ) ) + 28 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL - MAX ( + ( col2 ) ) + 28 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2860
SELECT * FROM tab1 AS cor0 WHERE col1 * + + 54 / 1 / CAST( + - col0 AS DECIMAL ) + - + col2 + - col0 + + 36 * - ( 10 ) - + 67 * - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2860
SELECT * FROM tab1 AS cor0 WHERE col1 * + + 54 / 1 / CAST ( + - col0 AS REAL ) + - + col2 + - col0 + + 36 * - ( 10 ) - + 67 * - col1 IS NULL
----

query I rowsort
SELECT - 47 + - 67 * + + 82 * - col1 * + + 63 FROM tab2 cor0
----
17652175
23190127
26651347

query I rowsort
SELECT DISTINCT - 51 AS col2 FROM tab2 WHERE NOT NULL < + + 76
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2863
SELECT ALL col2 - - 82 + - col0 + - + col0 DIV col0 AS col0, col1 FROM tab0
----
113
81
4
21
83
1

skipif mysql # not compatible
query II rowsort label-2863
SELECT ALL col2 - - 82 + - col0 + - + col0 / col0 AS col0, col1 FROM tab0
----
113
81
4
21
83
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2864
SELECT DISTINCT 98 - + - COUNT( col2 ) + - 28 * - SUM( ALL col0 ) FROM tab2
----
5281

skipif mysql # not compatible
query I rowsort label-2864
SELECT DISTINCT 98 - + - COUNT ( col2 ) + - 28 * - SUM ( ALL col0 ) FROM tab2
----
5281

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2865
SELECT * FROM tab2 WHERE ( ( NOT ( + - 77 + + col1 ) NOT BETWEEN CAST( col0 AS DECIMAL ) AND + col0 * col1 + + 62 ) )
----

skipif mysql # not compatible
query III rowsort label-2865
SELECT * FROM tab2 WHERE ( ( NOT ( + - 77 + + col1 ) NOT BETWEEN CAST ( col0 AS REAL ) AND + col0 * col1 + + 62 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2866
SELECT + col1 FROM tab1 WHERE - - CAST( NULL AS SIGNED ) - + ( + col1 ) NOT BETWEEN + 90 AND - 71 * ( - + col1 ) * - col1
----

skipif mysql # not compatible
query I rowsort label-2866
SELECT + col1 FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) - + ( + col1 ) NOT BETWEEN + 90 AND - 71 * ( - + col1 ) * - col1
----

query I rowsort
SELECT DISTINCT + 42 * - - col1 AS col0 FROM tab0 AS cor0
----
3402
42
882

query I rowsort
SELECT ALL + - col1 * + + col0 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT - 45 * + - 1 * MIN( DISTINCT 65 ) AS col0 FROM tab0 AS cor0 WHERE - col1 + - 56 NOT IN ( + col0 )
----
2925

skipif mysql # not compatible
query I rowsort label-2870
SELECT - 45 * + - 1 * MIN ( DISTINCT 65 ) AS col0 FROM tab0 AS cor0 WHERE - col1 + - 56 NOT IN ( + col0 )
----
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT ALL + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IN ( 55 + + ( - col0 ), - col0 + + 50 * - - 87 * col1 + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2871
SELECT ALL + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IN ( 55 + + ( - col0 ), - col0 + + 50 * - - 87 * col1 + - col1 )
----
0

query I rowsort
SELECT ALL - col1 * - - 4 * + + col1 * 36 FROM tab0
----
-144
-63504
-944784

query I rowsort
SELECT - - col2 FROM tab2 WHERE NOT + col2 >= NULL
----

query I rowsort
SELECT 72 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT DISTINCT - + 79 FROM tab0 cor0
----
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, - col1 + - + col1 col1 FROM tab2 AS cor0
----
46
-102
64
-154
75
-134

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 88 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2878
SELECT ALL + - CAST( + 41 AS SIGNED ) FROM tab2 AS cor0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-2878
SELECT ALL + - CAST ( + 41 AS INTEGER ) FROM tab2 AS cor0
----
-41
-41
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2879
SELECT + col0 / + ( - col0 ) * + + CAST( NULL AS SIGNED ) - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2879
SELECT + col0 / + ( - col0 ) * + + CAST ( NULL AS INTEGER ) - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2880
SELECT - SUM( 5 ) DIV 60 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2880
SELECT - SUM ( 5 ) / 60 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2881
SELECT MIN( DISTINCT ( - - col0 ) ) * - 96 FROM tab1
----
-4896

skipif mysql # not compatible
query I rowsort label-2881
SELECT MIN ( DISTINCT ( - - col0 ) ) * - 96 FROM tab1
----
-4896

query I rowsort
SELECT 77 * + 10 FROM tab0
----
770
770
770

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT ALL + SUM( DISTINCT - col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2883
SELECT ALL + SUM ( DISTINCT - col0 ) AS col1 FROM tab1
----
-227

query I rowsort
SELECT ALL ( ( + - col1 ) ) AS col1 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 20 AND - col0
----

query I rowsort
SELECT DISTINCT - col2 + - col2 AS col1 FROM tab0 cor0
----
-198
-20
-94

query II rowsort
SELECT ALL - col1 * + 25 * col0 AS col1, col1 AS col1 FROM tab0
----
-2425
1
-30375
81
-45675
21

query I rowsort
SELECT - 3 + col0 + + 69 + - - 37 + + col1 * + - col2 AS col0 FROM tab2
----
-1024
-2913
-3708

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2889
SELECT ALL - 79 DIV ( + COUNT( - - col0 ) ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL - 79 / ( + COUNT ( - - col0 ) ) FROM tab2 AS cor0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2890
SELECT + + MAX( DISTINCT - col2 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) / - 44 IS NULL
----
-26

skipif mysql # not compatible
query I rowsort label-2890
SELECT + + MAX ( DISTINCT - col2 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) / - 44 IS NULL
----
-26

query I rowsort
SELECT DISTINCT - - 92 + col0 FROM tab1 AS cor0
----
143
177
183

query I rowsort
SELECT DISTINCT - col1 + - 44 AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 92 col2 FROM tab0 AS cor0
----
-92
-92
-92

query I rowsort
SELECT ALL - 56 + + col2 AS col0 FROM tab0 AS cor0
----
-46
-9
43

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT DISTINCT + + COUNT( * ) + + 44 + + + 85 FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT + + COUNT ( * ) + + 44 + + + 85 FROM tab2 AS cor0
----
132

query I rowsort
SELECT col2 * + - 24 FROM tab0
----
-1128
-2376
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT ALL - 83 + + SUM( DISTINCT col0 ) FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-2897
SELECT ALL - 83 + + SUM ( DISTINCT col0 ) FROM tab2
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2898
SELECT DISTINCT + SUM( DISTINCT - col2 ) - COUNT( - CAST( + - 58 AS SIGNED ) ) * ( - 92 ) AS col1 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-2898
SELECT DISTINCT + SUM ( DISTINCT - col2 ) - COUNT ( - CAST ( + - 58 AS INTEGER ) ) * ( - 92 ) AS col1 FROM tab1
----
53

query I rowsort
SELECT - col1 * col2 - - + col0 FROM tab1
----
-1293
-210
-3105

query II rowsort
SELECT ALL 14 * col0 - - col1 - - - col2 AS col1, + 49 * - col0 FROM tab1
----
1136
-4165
1253
-4459
632
-2499

query I rowsort
SELECT ALL - ( + - col0 ) * 68 AS col0 FROM tab2
----
3128
4352
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL - COUNT( - col1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL - COUNT ( - col1 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + - 41 * + + col2 AS col2 FROM tab1 AS cor0
----
-2419
-2788
-3936

query I rowsort
SELECT - - 66 * + col2 AS col1 FROM tab0 AS cor0
----
3102
6534
660

query I rowsort
SELECT 7 FROM tab0 AS cor0 WHERE NOT col2 + + 96 + + + col1 * col0 * - - 41 IS NULL
----
7
7
7

query I rowsort
SELECT + + col1 * 86 FROM tab2 AS cor0
----
4386
5762
6622

query I rowsort
SELECT ALL col1 * + ( + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT 53 * + COUNT( * ) FROM tab2 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-2908
SELECT 53 * + COUNT ( * ) FROM tab2 AS cor0
----
159

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + + + col0 <> - col2
----

query I rowsort
SELECT 6 * 20 AS col2 FROM tab2
----
120
120
120

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT - + col2 * + - col1 - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2911
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT - + col2 * + - col1 - col1 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( + col0 ) IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2913
SELECT 0 * + col1 DIV - 87 AS col2 FROM tab2 WHERE NOT - 37 > - 9
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2913
SELECT 0 * + col1 / - 87 AS col2 FROM tab2 WHERE NOT - 37 > - 9
----
0
0
0

query I rowsort
SELECT col1 FROM tab0 WHERE NOT + + col2 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 + 48 col2 FROM tab2
----
102
102
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 + + 47 * - + col0 + + 7 col2 FROM tab1 AS cor0
----
-2317
-3915
-4197

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE col1 / + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - ( col2 ) + + col1 AS col1 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2919
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + col2 * - 79 * - col1 > ( + col2 * - 72 + - CAST( - 86 AS DECIMAL ) * 74 )
----
-3

skipif mysql # not compatible
query I rowsort label-2919
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + col2 * - 79 * - col1 > ( + col2 * - 72 + - CAST ( - 86 AS REAL ) * 74 )
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 62 * + col2 / + + col0 + + col2 + + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 23 * - ( col2 ) AS col2 FROM tab2 AS cor0
----
1334
529
920

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT ALL COUNT( * ) + - ( - + 57 ) * - COUNT( * ) FROM tab0 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL COUNT ( * ) + - ( - + 57 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-168

query III rowsort
SELECT * FROM tab1 cor0 WHERE 6 / + - 52 IS NULL
----

query I rowsort
SELECT 79 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2926
SELECT ALL 53 * COUNT( - CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2926
SELECT ALL 53 * COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT MAX( - 73 ) FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-2927
SELECT MAX ( - 73 ) FROM tab0
----
-73

query I rowsort
SELECT DISTINCT + 50 * + col0 FROM tab2
----
2300
3200
3750

query I rowsort
SELECT DISTINCT + col2 + + + 36 AS col1 FROM tab0 AS cor0
----
135
46
83

query I rowsort
SELECT ALL + + 12 * 78 - + col0 FROM tab0 AS cor0
----
839
849
921

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT + 67 * - col1 * + col0 + - col0 + + - col0 * + - col2 * - col0 DIV - + col0 AS col2 FROM tab2 AS cor0
----
-156170
-327680
-332400

skipif mysql # not compatible
query I rowsort label-2931
SELECT + 67 * - col1 * + col0 + - col0 + + - col0 * + - col2 * - col0 / - + col0 AS col2 FROM tab2 AS cor0
----
-156170
-327680
-332400

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + + + 69 AS col1 FROM tab1 AS cor0
----
116
74
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2934
SELECT 91 * - CAST( NULL AS SIGNED ) * - + col2 * + - col1 * - 24 AS col2, + col0 AS col0 FROM tab1 cor0 WHERE ( NULL ) > NULL
----

skipif mysql # not compatible
query II rowsort label-2934
SELECT 91 * - CAST ( NULL AS INTEGER ) * - + col2 * + - col1 * - 24 AS col2, + col0 AS col0 FROM tab1 cor0 WHERE ( NULL ) > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 96 <> + 31
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2936
SELECT ALL 71 DIV - ( + SUM( + col0 ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2936
SELECT ALL 71 / - ( + SUM ( + col0 ) ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT 20 - - col2 FROM tab2
----
43
60
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT + MAX( - 13 ) * - + MAX( + 56 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2938
SELECT + MAX ( - 13 ) * - + MAX ( + 56 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT DISTINCT 99 - 4 + COUNT( * ) * COUNT( * ) AS col1 FROM tab1
----
104

skipif mysql # not compatible
query I rowsort label-2939
SELECT DISTINCT 99 - 4 + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1
----
104

query I rowsort
SELECT col0 * - - col1 AS col2 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT ALL COUNT( * ) * - MAX( - col2 ) AS col1 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2941
SELECT ALL COUNT ( * ) * - MAX ( - col2 ) AS col1 FROM tab0 AS cor0
----
30

query I rowsort
SELECT 64 + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT 83, + col1 * - col1 + 15 + + 12 AS col0 FROM tab2
----
83
-2574
83
-4462
83
-5902

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2944
SELECT 27 AS col1, CAST( - col2 AS SIGNED ) FROM tab1
----
27
-59
27
-68
27
-96

skipif mysql # not compatible
query II rowsort label-2944
SELECT 27 AS col1, CAST ( - col2 AS INTEGER ) FROM tab1
----
27
-59
27
-68
27
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 69 + 23 col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-46

query I rowsort
SELECT + col1 - - 81 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2947
SELECT ALL SUM( DISTINCT + 88 ) FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-2947
SELECT ALL SUM ( DISTINCT + 88 ) FROM tab2 AS cor0
----
88

query I rowsort
SELECT - - col1 * - + 95 FROM tab0 AS cor0 WHERE NOT - ( + - col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col2 + + + 7 * 34 AS col2 FROM tab0 cor0
----
248
285
337

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, col0 FROM tab2 cor0
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2951
SELECT ALL ( + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2951
SELECT ALL ( + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 <= col0
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2953
SELECT CAST( + - 85 AS SIGNED ) / AVG ( ALL + - col0 ) + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2953
SELECT CAST ( + - 85 AS INTEGER ) / AVG ( ALL + - col0 ) + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT COUNT( DISTINCT 84 ) FROM tab2 WHERE NOT + 71 IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-2954
SELECT COUNT ( DISTINCT 84 ) FROM tab2 WHERE NOT + 71 IS NULL
----
1

query I rowsort
SELECT DISTINCT + 4 * + + 88 FROM tab1
----
352

onlyif mysql # DIV for integer division: 
query II rowsort label-2956
SELECT DISTINCT col0 DIV + - 68 AS col0, + col0 AS col0 FROM tab0
----
-1
87
-1
97
0
15

skipif mysql # not compatible
query II rowsort label-2956
SELECT DISTINCT col0 / + - 68 AS col0, + col0 AS col0 FROM tab0
----
-1
87
-1
97
0
15

query I rowsort
SELECT + col0 * - 99 AS col1 FROM tab0
----
-1485
-8613
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2958
SELECT DISTINCT COUNT( + CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT - - col2 + + col2 + 59 * + col1 - + 18 FROM tab2 AS cor0
----
3037
4051
4605

onlyif mysql # aggregate syntax: 
query II rowsort label-2960
SELECT DISTINCT + COUNT( * ) + - + 84 AS col1, + COUNT( * ) * + 54 FROM tab1 AS cor0
----
-81
162

skipif mysql # not compatible
query II rowsort label-2960
SELECT DISTINCT + COUNT ( * ) + - + 84 AS col1, + COUNT ( * ) * + 54 FROM tab1 AS cor0
----
-81
162

onlyif mysql # DIV for integer division: 
query II rowsort label-2961
SELECT - col1 + - col1 DIV - 58, col1 FROM tab0
----
-1
1
-21
21
-80
81

skipif mysql # not compatible
query II rowsort label-2961
SELECT - col1 + - col1 / - 58, col1 FROM tab0
----
-1
1
-21
21
-80
81

query I rowsort
SELECT DISTINCT + 27 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
27

query II rowsort
SELECT + 10, col0 FROM tab0 cor0
----
10
15
10
87
10
97

query II rowsort
SELECT ALL + col1 AS col0, + col0 + + col2 FROM tab0 AS cor0
----
1
196
21
97
81
62

query I rowsort
SELECT DISTINCT + 71 + + - 21 AS col2 FROM tab2 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT + 1 - COUNT( * ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2966
SELECT + 1 - COUNT ( * ) FROM tab0 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT ALL COUNT( * ) - COUNT( * ) + - 38 FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-2967
SELECT ALL COUNT ( * ) - COUNT ( * ) + - 38 FROM tab1 AS cor0
----
-38

query I rowsort
SELECT + col0 - + 72 * col2 * - 43 FROM tab1 AS cor0
----
182749
210619
297267

query II rowsort
SELECT DISTINCT - - col1 + - - col1 + + 99 AS col2, + 72 AS col0 FROM tab2 AS cor0
----
201
72
233
72
253
72

query I rowsort
SELECT - + col1 - + + col0 + + col0 AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 ) <> ( NULL )
----

query I rowsort
SELECT + 51 - - col0 FROM tab1 AS cor0
----
102
136
142

query I rowsort
SELECT DISTINCT ( - ( + + col1 ) ) AS col0 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2974
SELECT DISTINCT + 38 * 79 AS col0, COUNT( * ) AS col2 FROM tab0
----
3002
3

skipif mysql # not compatible
query II rowsort label-2974
SELECT DISTINCT + 38 * 79 AS col0, COUNT ( * ) AS col2 FROM tab0
----
3002
3

query I rowsort
SELECT ALL + - col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 56 col0 FROM tab2 AS cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT + + 81 * COUNT( * ) + + SUM( + col1 ) AS col0 FROM tab0 AS cor0
----
346

skipif mysql # not compatible
query I rowsort label-2978
SELECT + + 81 * COUNT ( * ) + + SUM ( + col1 ) AS col0 FROM tab0 AS cor0
----
346

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2979
SELECT DISTINCT + CAST( NULL AS SIGNED ), 29 + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query II rowsort label-2979
SELECT DISTINCT + CAST ( NULL AS INTEGER ), 29 + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - - 11 * col1 FROM tab0 AS cor0
----
11
231
891

onlyif mysql # aggregate syntax: 
query II rowsort label-2981
SELECT ALL - COUNT( * ) AS col0, + 2 AS col0 FROM tab2
----
-3
2

skipif mysql # not compatible
query II rowsort label-2981
SELECT ALL - COUNT ( * ) AS col0, + 2 AS col0 FROM tab2
----
-3
2

query I rowsort
SELECT + col0 * + - 3 FROM tab0 AS cor0
----
-261
-291
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 37 col2, col1 FROM tab0 AS cor0
----
37
1
37
21
37
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 19 * - ( 68 ) > - + 62
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( + col1 + - col1, 44, 5, + 93, - + col1, - + 56 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
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-2986
SELECT - ( - COUNT ( * ) ) col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 22 >= + - 86
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 - + + col1 * - col1 col0 FROM tab1
----
151
2232
51

onlyif mysql # DIV for integer division: 
query I rowsort label-2989
SELECT + col2 DIV + 95 + - col2 AS col2 FROM tab0
----
-10
-47
-98

skipif mysql # not compatible
query I rowsort label-2989
SELECT + col2 / + 95 + - col2 AS col2 FROM tab0
----
-10
-47
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-2990
SELECT ALL + 3 AS col2, 67 DIV + ( - - col0 ) + + + col0 AS col2 FROM tab0
----
3
19
3
87
3
97

skipif mysql # not compatible
query II rowsort label-2990
SELECT ALL + 3 AS col2, 67 / + ( - - col0 ) + + + col0 AS col2 FROM tab0
----
3
19
3
87
3
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2991
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE col0 IN ( + + col1, 18 * + col0 / + + 26 - - + col1 + - - CAST( NULL AS SIGNED ), - + 37 * - + col2 )
----

skipif mysql # not compatible
query I rowsort label-2991
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE col0 IN ( + + col1, 18 * + col0 / + + 26 - - + col1 + - - CAST ( NULL AS INTEGER ), - + 37 * - + col2 )
----

query II rowsort
SELECT + 4, + 33 * col0 AS col2 FROM tab1 cor0
----
4
1683
4
2805
4
3003

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 51 = + - 52 - + col1
----

query I rowsort
SELECT ALL 95 + + + 46 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f127c88dbadbed59c64310450c6f0695

query I rowsort
SELECT DISTINCT 58 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
58

query I rowsort
SELECT - 14 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT col0 + - 19 AS col2 FROM tab0 AS cor0
----
-4
68
78

query II rowsort
SELECT DISTINCT + 34 * - col0 AS col1, - col0 FROM tab1 cor0
----
-1734
-51
-2890
-85
-3094
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT - SUM( DISTINCT + 58 ) FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-2999
SELECT - SUM ( DISTINCT + 58 ) FROM tab1
----
-58

query II rowsort
SELECT ALL + col2 AS col2, ( + 72 ) FROM tab1
----
59
72
68
72
96
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3001
SELECT - AVG ( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3001
SELECT - AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT - ( - + 98 ) AS col0 FROM tab0
----
98
98
98

query II rowsort
SELECT + 90, 2 AS col0 FROM tab2
----
90
2
90
2
90
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3004
SELECT ALL * FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3004
SELECT ALL * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1 * col0 AS col1, col1 + + col1 AS col0 FROM tab2
----
2346
102
4928
154
5025
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3006
SELECT DISTINCT - MIN( DISTINCT - CAST( 62 AS SIGNED ) ) AS col2 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-3006
SELECT DISTINCT - MIN ( DISTINCT - CAST ( 62 AS INTEGER ) ) AS col2 FROM tab2
----
62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3007
SELECT DISTINCT - + 59 DIV + 71 + - col0 DIV + col0 col1 FROM tab1 WHERE + col2 * CAST( - 74 AS SIGNED ) IS NOT NULL
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3007
SELECT DISTINCT - + 59 / + 71 + - col0 / + col0 col1 FROM tab1 WHERE + col2 * CAST ( - 74 AS INTEGER ) IS NOT NULL
----
-1

query I rowsort
SELECT DISTINCT 74 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
74

query I rowsort
SELECT DISTINCT - col0 / col2 AS col2 FROM tab1 WHERE + 18 BETWEEN + 72 AND NULL
----

query I rowsort
SELECT DISTINCT - col1 * - col1 + ( col1 ) * + col0 AS col1 FROM tab1
----
450
6486
910

query I rowsort
SELECT - 79 + - col0 FROM tab0 AS cor0
----
-166
-176
-94

query I rowsort
SELECT - - 69 + + 72 FROM tab1 AS cor0
----
141
141
141

query II rowsort
SELECT ALL col2 * - + col2, col2 FROM tab2 AS cor0
----
-1600
40
-3364
58
-529
23

query I rowsort
SELECT ALL - col0 / + col1 AS col1 FROM tab0 AS cor0 WHERE ( - col2 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3015
SELECT DISTINCT - col0 + - + 9 DIV - + 71 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT - col0 + - + 9 / - + 71 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3016
SELECT - COUNT( * ) * 30 DIV + COUNT( col1 ) AS col2 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-3016
SELECT - COUNT ( * ) * 30 / + COUNT ( col1 ) AS col2 FROM tab2
----
-30

query II rowsort
SELECT DISTINCT col2 AS col0, + col2 * + + 9 - - col0 + + col1 * 55 AS col0 FROM tab1
----
59
891
68
3288
96
1685

query I rowsort
SELECT + col1 * + + col0 * - col0 * col1 FROM tab2
----
-24285184
-25250625
-5503716

query I rowsort
SELECT ALL - ( 66 ) AS col0 FROM tab0
----
-66
-66
-66

query II rowsort
SELECT - col2 * - + col2 * col2, + col2 FROM tab0
----
1000
10
103823
47
970299
99

query I rowsort
SELECT ALL 30 * col0 FROM tab2
----
1380
1920
2250

onlyif mysql # DIV for integer division: 
query I rowsort label-3022
SELECT - ( - col2 ) * col1 DIV 56 AS col0 FROM tab2
----
20
55
69

skipif mysql # not compatible
query I rowsort label-3022
SELECT - ( - col2 ) * col1 / 56 AS col0 FROM tab2
----
20
55
69

query III rowsort
SELECT * FROM tab1 WHERE - + col2 <> + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3024
SELECT - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3024
SELECT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL - ( - + col2 ) AS col2 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3026
SELECT DISTINCT + - CAST( col2 AS SIGNED ) + + - 35 * - 1 FROM tab1 AS cor0
----
-24
-33
-61

skipif mysql # not compatible
query I rowsort label-3026
SELECT DISTINCT + - CAST ( col2 AS INTEGER ) + + - 35 * - 1 FROM tab1 AS cor0
----
-24
-33
-61

query I rowsort
SELECT col1 + + 41 AS col1 FROM tab2 AS cor0
----
108
118
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT + SUM( ALL col1 ) + - 57 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-3028
SELECT + SUM ( ALL col1 ) + - 57 FROM tab2 AS cor0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT ALL - MAX( col2 ) * - 58 FROM tab0
----
5742

skipif mysql # not compatible
query I rowsort label-3029
SELECT ALL - MAX ( col2 ) * - 58 FROM tab0
----
5742

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3030
SELECT CAST( - col0 AS SIGNED ) FROM tab1 WHERE NULL <= - + 47
----

skipif mysql # not compatible
query I rowsort label-3030
SELECT CAST ( - col0 AS INTEGER ) FROM tab1 WHERE NULL <= - + 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT ALL + MIN( - + col2 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3031
SELECT ALL + MIN ( - + col2 ) AS col1 FROM tab1
----
-96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 78 > - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3033
SELECT DISTINCT + col2, - CAST( NULL AS SIGNED ) / - col2 AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-3033
SELECT DISTINCT + col2, - CAST ( NULL AS INTEGER ) / - col2 AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query II rowsort
SELECT DISTINCT + 62 AS col1, col2 FROM tab0 AS cor0
----
62
10
62
47
62
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3035
SELECT DISTINCT - COUNT( * ) DIV + 82 col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3035
SELECT DISTINCT - COUNT ( * ) / + 82 col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3036
SELECT ALL + + COUNT( * ) DIV + - COUNT( * ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL + + COUNT ( * ) / + - COUNT ( * ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT - + ( - 0 ) AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 30 col1 FROM tab2
----
-30
-30
-30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3039
SELECT * FROM tab1 WHERE NOT NULL <> + col1 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3039
SELECT * FROM tab1 WHERE NOT NULL <> + col1 * + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 16 / - col0 < ( + col1 )
----

query I rowsort
SELECT DISTINCT - ( + - col1 ) FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3042
SELECT DISTINCT - MIN( ALL - - ( + + CAST( + col2 AS SIGNED ) ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT - MIN ( ALL - - ( + + CAST ( + col2 AS INTEGER ) ) ) FROM tab0 AS cor0
----
-10

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 92 col2 FROM tab0 AS cor0
----
-92

query I rowsort
SELECT DISTINCT - + 89 - col2 FROM tab1 WHERE NOT NULL > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3046
SELECT ALL + + 41 + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL + + 41 + - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
38

query I rowsort
SELECT DISTINCT + col2 + - - col1 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT col0 + + + col2 * col0 FROM tab0 AS cor0
----
720
957
9700

onlyif mysql # aggregate syntax: 
query I rowsort label-3049
SELECT - + COUNT( ALL col1 ) - 26 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----
-26

skipif mysql # not compatible
query I rowsort label-3049
SELECT - + COUNT ( ALL col1 ) - 26 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT ALL + ( - - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3050
SELECT ALL + ( - - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - col1 + - 92 FROM tab2 cor0
----
-143
-159
-169

query I rowsort
SELECT ALL + 49 + - - 89 FROM tab0 AS cor0
----
138
138
138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3053
SELECT ALL - CAST( NULL AS SIGNED ) + - + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL - CAST ( NULL AS INTEGER ) + - + col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3054
SELECT - 34 AS col1 FROM tab1 WHERE ( - CAST( NULL AS DECIMAL ) ) BETWEEN col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3054
SELECT - 34 AS col1 FROM tab1 WHERE ( - CAST ( NULL AS REAL ) ) BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT ALL COUNT( * ) * + + SUM( + - 8 ) AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL COUNT ( * ) * + + SUM ( + - 8 ) AS col2 FROM tab2
----
-72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3056
SELECT ALL + MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3056
SELECT ALL + MAX ( DISTINCT - CAST ( NULL AS REAL ) ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT col1 * + + col1 AS col2 FROM tab1
----
196
2209
25

query I rowsort
SELECT 77 * - col2 AS col0 FROM tab2
----
-1771
-3080
-4466

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - col0 ) col1, - col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3060
SELECT - + CAST( NULL AS SIGNED ) / - 65 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3060
SELECT - + CAST ( NULL AS INTEGER ) / - 65 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0 - + + 81 + - col2 + 83, + col0 FROM tab1 AS cor0
----
-43
51
25
91
28
85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( col2, + ( - 66 ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 / 96 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT - SUM( col0 ) * 62 FROM tab1
----
-14074

skipif mysql # not compatible
query I rowsort label-3064
SELECT - SUM ( col0 ) * 62 FROM tab1
----
-14074

query I rowsort
SELECT + col1 * + col1 - + + 69 + - + col1 AS col2 FROM tab2 AS cor0
----
2481
4353
5783

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT ALL + - 57 * COUNT( * ) FROM tab2 cor0
----
-171

skipif mysql # not compatible
query I rowsort label-3066
SELECT ALL + - 57 * COUNT ( * ) FROM tab2 cor0
----
-171

query II rowsort
SELECT ALL + - 95 AS col1, - col2 AS col0 FROM tab0 AS cor0
----
-95
-10
-95
-47
-95
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 AS cor0 WHERE NOT - col0 + - + col1 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT ALL SUM( - + 60 ) AS col2 FROM tab0 cor0
----
-180

skipif mysql # not compatible
query I rowsort label-3069
SELECT ALL SUM ( - + 60 ) AS col2 FROM tab0 cor0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT DISTINCT - + MIN( ALL + 36 ) FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-3070
SELECT DISTINCT - + MIN ( ALL + 36 ) FROM tab0 AS cor0
----
-36

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 62 IS NULL
----

query II rowsort
SELECT + col2, - 45 AS col1 FROM tab1
----
59
-45
68
-45
96
-45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3073
SELECT 52 AS col0, - AVG ( + 17 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
52
NULL

skipif mysql # not compatible
query II rowsort label-3073
SELECT 52 AS col0, - AVG ( + 17 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
52
NULL

query I rowsort
SELECT ALL + col0 * + + 33 FROM tab0
----
2871
3201
495

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3075
SELECT ALL col2 AS col0 FROM tab2 WHERE ( CAST( NULL AS DECIMAL ) * + col1 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-3075
SELECT ALL col2 AS col0 FROM tab2 WHERE ( CAST ( NULL AS REAL ) * + col1 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 NOT BETWEEN 36 + 54 + + + col2 * + ( + 19 ) AND NULL
----

query II rowsort
SELECT ALL - 68, col2 AS col0 FROM tab1
----
-68
59
-68
68
-68
96

query II rowsort
SELECT ALL - col1 AS col2, col0 FROM tab1
----
-14
51
-47
91
-5
85

query II rowsort
SELECT + col2 AS col1, - 80 FROM tab1
----
59
-80
68
-80
96
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3080
SELECT DISTINCT + col1 col0, - CAST( NULL AS DECIMAL ) * - ( col2 ) 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-3080
SELECT DISTINCT + col1 col0, - CAST ( NULL AS REAL ) * - ( col2 ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT ALL + ( + 21 ) FROM tab1 AS cor0
----
21
21
21

query I rowsort
SELECT ALL + + 26 * col1 AS col1 FROM tab0 AS cor0
----
2106
26
546

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3083
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) / - 58 * + + 4 * + 7 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3083
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) / - 58 * + + 4 * + 7 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT ALL + COUNT( * ) + + 68 AS col0 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-3084
SELECT ALL + COUNT ( * ) + + 68 AS col0 FROM tab0 AS cor0
----
71

query I rowsort
SELECT ALL - col2 + + 87 AS col2 FROM tab2 AS cor0
----
29
47
64

query I rowsort
SELECT DISTINCT 5 - - col2 AS col2 FROM tab1 AS cor0
----
101
64
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 + - col2 + - col1 * - 44 col2 FROM tab2 cor0
----
2170
2823
3271

query I rowsort
SELECT ALL - col0 * 41 AS col1 FROM tab0 AS cor0
----
-3567
-3977
-615

query I rowsort
SELECT ALL - col0 * ( 60 ) AS col0 FROM tab0
----
-5220
-5820
-900

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 NOT BETWEEN NULL AND - col0 - + col2 * + + col0 * + + 32
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 4 * + 94 AS col1 FROM tab0
----
-376
-376
-376

onlyif mysql # DIV for integer division: 
query I rowsort label-3092
SELECT ALL + col0 DIV + col0 + + + col2 AS col0 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL + col0 / + col0 + + + col2 AS col0 FROM tab0
----
100
11
48

query I rowsort
SELECT 47 FROM tab2 WHERE NULL IS NULL
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + + col1 col2 FROM tab1 WHERE NOT + - 81 * 22 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3095
SELECT ALL 89 - + - col1 DIV 96, - col2 AS col2 FROM tab1
----
89
-59
89
-68
89
-96

skipif mysql # not compatible
query II rowsort label-3095
SELECT ALL 89 - + - col1 / 96, - col2 AS col2 FROM tab1
----
89
-59
89
-68
89
-96

query I rowsort
SELECT 13 FROM tab1 WHERE ( - col2 ) IS NOT NULL
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT DISTINCT COUNT( * ) * - 26 FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT COUNT ( * ) * - 26 FROM tab0
----
-78

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col0 * + - col1 ) < + col0 * col1 + + col0 * + + 75
----

query I rowsort
SELECT DISTINCT + ( - 73 ) * - + col1 FROM tab2 AS cor0 WHERE NULL IN ( - col2, 0 + + col0, - col0 / - col2 + + + col2, - col2 * col2 + - 70 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT COUNT( * ) * + 19 + - ( + - 1 ) * - 66 FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3100
SELECT COUNT ( * ) * + 19 + - ( + - 1 ) * - 66 FROM tab0 cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3102
SELECT CAST( + col1 AS DECIMAL ) * + 55 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3102
SELECT CAST ( + col1 AS REAL ) * + 55 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * - col0 - col0 col2 FROM tab1 AS cor0
----
4845
4930
6097

query I rowsort
SELECT + 77 * - col2 - + col2 FROM tab1 AS cor0
----
-4602
-5304
-7488

onlyif mysql # aggregate syntax: 
query I rowsort label-3105
SELECT DISTINCT - MIN( ALL - 27 ) AS col1 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3105
SELECT DISTINCT - MIN ( ALL - 27 ) AS col1 FROM tab0 AS cor0
----
27

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab0 WHERE NOT + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NULL BETWEEN NULL AND - 16
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3108
SELECT ALL + col2 DIV - col2 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL + col2 / - col2 AS col2 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT DISTINCT - 66 * + 42 AS col1 FROM tab2
----
-2772

query I rowsort
SELECT ALL ( 64 ) FROM tab0
----
64
64
64

query I rowsort
SELECT - + col1 + + + col2 - - 31 AS col1 FROM tab0 WHERE NOT - + ( - 78 ) IS NOT NULL
----

query I rowsort
SELECT col0 * + 22 + + - col1 FROM tab0
----
1893
2133
249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + ( - col0 ) * col2 col2 FROM tab2 cor0
----
-1035
-2520
-4292

query I rowsort
SELECT ALL - col2 * - col1 AS col2 FROM tab0 cor0 WHERE 53 * + col1 + - 85 < + - col0
----

query I rowsort
SELECT DISTINCT - 0 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 74 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3116
SELECT ALL col2 AS col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-3116
SELECT ALL col2 AS col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3117
SELECT - col2 + - CAST( + - 43 AS SIGNED ) + + - ( + col1 ) + + col0 + - col0 * col2 AS col0 FROM tab0 AS cor0
----
-771
-775
-9563

skipif mysql # not compatible
query I rowsort label-3117
SELECT - col2 + - CAST ( + - 43 AS INTEGER ) + + - ( + col1 ) + + col0 + - col0 * col2 AS col0 FROM tab0 AS cor0
----
-771
-775
-9563

onlyif mysql # DIV for integer division: 
query I rowsort label-3118
SELECT DISTINCT + - 49 DIV - - col1 + - + 77 * col2 + - 52 AS col0 FROM tab0 cor0
----
-3671
-7724
-824

skipif mysql # not compatible
query I rowsort label-3118
SELECT DISTINCT + - 49 / - - col1 + - + 77 * col2 + - 52 AS col0 FROM tab0 cor0
----
-3671
-7724
-824

query I rowsort
SELECT ALL col0 + + col1 + - - 44 * - - 63 FROM tab0 AS cor0
----
2868
2870
2880

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT ALL 74 - - - MIN( ALL col2 ) * - 21 * 88 FROM tab2 AS cor0
----
42578

skipif mysql # not compatible
query I rowsort label-3120
SELECT ALL 74 - - - MIN ( ALL col2 ) * - 21 * 88 FROM tab2 AS cor0
----
42578

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT DISTINCT COUNT( * ) + + - 12 AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3121
SELECT DISTINCT COUNT ( * ) + + - 12 AS col0 FROM tab2 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 * - + 95 > - col1 + - ( - - 18 )
----

query I rowsort
SELECT + col2 FROM tab0 WHERE - + col1 + col2 * + + col0 IS NOT NULL
----
10
47
99

query I rowsort
SELECT ALL + 72 FROM tab2, tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3125
SELECT DISTINCT AVG ( + 41 ) - - 13 - CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3125
SELECT DISTINCT AVG ( + 41 ) - - 13 - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> - 30
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN 58 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT + 53 * - + col0 * + + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NOT + col0 * col0 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3130
SELECT + 56 * CAST( NULL AS SIGNED ) * + col1 + - col1 AS col1 FROM tab1 cor0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-3130
SELECT + 56 * CAST ( NULL AS INTEGER ) * + col1 + - col1 AS col1 FROM tab1 cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 = - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT COUNT( + col0 ) * - 32 + - 69 AS col1 FROM tab0 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-3132
SELECT COUNT ( + col0 ) * - 32 + - 69 AS col1 FROM tab0 AS cor0
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT ALL 65 * + COUNT( * ) * MAX( ALL - - col2 ) FROM tab0 cor0
----
19305

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL 65 * + COUNT ( * ) * MAX ( ALL - - col2 ) FROM tab0 cor0
----
19305

query I rowsort
SELECT DISTINCT + - 63 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3135
SELECT DISTINCT * FROM tab2 WHERE + col0 * + CAST( NULL AS SIGNED ) IN ( - col0 * + 93 * - 41 * + + 29 )
----

skipif mysql # not compatible
query III rowsort label-3135
SELECT DISTINCT * FROM tab2 WHERE + col0 * + CAST ( NULL AS INTEGER ) IN ( - col0 * + 93 * - 41 * + + 29 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3136
SELECT - COUNT( * ) DIV - + 51 AS col2, 56 * 55 * - 97 AS col1 FROM tab0
----
0
-298760

skipif mysql # not compatible
query II rowsort label-3136
SELECT - COUNT ( * ) / - + 51 AS col2, 56 * 55 * - 97 AS col1 FROM tab0
----
0
-298760

onlyif mysql # DIV for integer division: 
query I rowsort label-3137
SELECT + col1 DIV + + ( + col1 ) AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3137
SELECT + col1 / + + ( + col1 ) AS col2 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3138
SELECT + ( - + CAST( NULL AS DECIMAL ) ) col1, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3138
SELECT + ( - + CAST ( NULL AS REAL ) ) col1, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 + - col0 - - + col0 * + col1 * - - 68 + - col1 col0 FROM tab2
----
159374
334906
341501

query I rowsort
SELECT col2 + - 26 + + col1 AS col1 FROM tab2 AS cor0
----
48
91
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT DISTINCT 93 + - - COUNT( * ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-3141
SELECT DISTINCT 93 + - - COUNT ( * ) FROM tab2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT + 0 * - - COUNT( * ) + COUNT( * ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3142
SELECT + 0 * - - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - 77 + + + col1 FROM tab1 AS cor0
----
-30
-63
-72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3144
SELECT * FROM tab0 AS cor0 WHERE ( - CAST( NULL AS SIGNED ) ) BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3144
SELECT * FROM tab0 AS cor0 WHERE ( - CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3145
SELECT + CAST( NULL AS SIGNED ) AS col0, 4 AS col2 FROM tab1 AS cor0 WHERE 22 * + col2 + + 88 IS NOT NULL
----
NULL
4
NULL
4
NULL
4

skipif mysql # not compatible
query II rowsort label-3145
SELECT + CAST ( NULL AS INTEGER ) AS col0, 4 AS col2 FROM tab1 AS cor0 WHERE 22 * + col2 + + 88 IS NOT NULL
----
NULL
4
NULL
4
NULL
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3146
SELECT + col2 - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3146
SELECT + col2 - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 34 + + - 66 * + + 82 FROM tab0 AS cor0
----
-5446
-5446
-5446

query I rowsort
SELECT DISTINCT + 23 - - col1 AS col2 FROM tab0 AS cor0
----
104
24
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3149
SELECT DISTINCT CAST( NULL AS SIGNED ) - + 46 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3149
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 46 FROM tab2
----
NULL

query I rowsort
SELECT + 78 - + + ( col0 ) + + - col1 * + col0 FROM tab2
----
-2314
-4914
-5022

query I rowsort
SELECT ALL - col0 - + - col2 AS col1 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT ALL - 57 - - col0 * col1 FROM tab1
----
368
4220
657

query I rowsort
SELECT ALL 84 - col0 AS col2 FROM tab2
----
20
38
9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3154
SELECT DISTINCT - ( - col2 ) + + - CAST( - col1 AS DECIMAL ) + + - CAST( NULL AS SIGNED ) * - - col2 FROM tab1 WHERE 5 >= - 58
----
NULL

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT - ( - col2 ) + + - CAST ( - col1 AS REAL ) + + - CAST ( NULL AS INTEGER ) * - - col2 FROM tab1 WHERE 5 >= - 58
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3155
SELECT + CAST( NULL AS SIGNED ) * + + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3155
SELECT + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT - - 86 * - + 13 AS col2 FROM tab0 AS cor0
----
-1118
-1118
-1118

query II rowsort
SELECT + + col0, col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----

query II rowsort
SELECT - 44 AS col2, col1 AS col0 FROM tab0 AS cor0
----
-44
1
-44
21
-44
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + - col2 col0 FROM tab0 WHERE NULL IS NULL
----
-98
11
34

query I rowsort
SELECT + col2 * - - 8 FROM tab0 AS cor0
----
376
792
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3161
SELECT ALL + - 93 + 64 + + col1 + + col0 DIV - + 59 FROM tab1 AS cor0
----
-15
-25
17

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL + - 93 + 64 + + col1 + + col0 / - + 59 FROM tab1 AS cor0
----
-15
-25
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3162
SELECT - + CAST( COUNT( + - col1 ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3162
SELECT - + CAST ( COUNT ( + - col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 49 * + col1 AS col0, col2 + - col0 + - + col2 col2 FROM tab0 AS cor0
----
-1029
-87
-3969
-15
-49
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + - 69 / + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * + - col2 + + col2 FROM tab1 AS cor0
----
3540
4692
9312

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3166
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST( + + 96 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-3166
SELECT DISTINCT * FROM tab1 WHERE NOT + CAST ( + + 96 AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT DISTINCT SUM( DISTINCT - ( + - col1 ) ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-3167
SELECT DISTINCT SUM ( DISTINCT - ( + - col1 ) ) AS col2 FROM tab0
----
103

query I rowsort
SELECT + 42 + - col0 FROM tab2
----
-22
-33
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT DISTINCT MIN( ALL + 22 ) + ( COUNT( DISTINCT - 24 ) ) FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3169
SELECT DISTINCT MIN ( ALL + 22 ) + ( COUNT ( DISTINCT - 24 ) ) FROM tab0 AS cor0
----
23

query I rowsort
SELECT DISTINCT + col2 * + + 91 * 11 FROM tab0 AS cor0
----
10010
47047
99099

query I rowsort
SELECT ALL col0 + + + col2 * + 4 AS col0 FROM tab2 AS cor0
----
138
224
307

query I rowsort
SELECT - 59 * - - col0 * + col1 FROM tab0 cor0
----
-107793
-5723
-71685

onlyif mysql # aggregate syntax: 
query II rowsort label-3173
SELECT ALL - + COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3173
SELECT ALL - + COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3
3

query I rowsort
SELECT DISTINCT - 97 * + ( - 43 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
4171

query I rowsort
SELECT - ( + col0 ) + - col2 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE NOT col0 + + col0 NOT BETWEEN NULL AND ( - 92 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT MIN( DISTINCT + 21 ) AS col0 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-3177
SELECT MIN ( DISTINCT + 21 ) AS col0 FROM tab1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT + ( COUNT( * ) ) + - MIN( ALL col2 ) AS col0 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-3178
SELECT + ( COUNT ( * ) ) + - MIN ( ALL col2 ) AS col0 FROM tab0
----
-7

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 54 + ( col1 ) ) NOT IN ( + 58 + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT 65 * COUNT( * ) - 68 AS col2 FROM tab0
----
127

skipif mysql # not compatible
query I rowsort label-3180
SELECT 65 * COUNT ( * ) - 68 AS col2 FROM tab0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT DISTINCT - 79 + + COUNT( * ) FROM tab1 WHERE col0 IS NULL
----
-79

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT - 79 + + COUNT ( * ) FROM tab1 WHERE col0 IS NULL
----
-79

query I rowsort
SELECT 13 * - ( - col0 ) - - ( + col0 ) AS col1 FROM tab2
----
1050
644
896

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT ALL - COUNT( * ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3183
SELECT ALL - COUNT ( * ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> + 1
----

query I rowsort
SELECT 5 * col1 + - col0 AS col2 FROM tab2
----
209
260
321

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3186
SELECT * FROM tab2 WHERE NOT 30 = - CAST( col0 AS SIGNED ) + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3186
SELECT * FROM tab2 WHERE NOT 30 = - CAST ( col0 AS INTEGER ) + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3187
SELECT DISTINCT + 46 DIV + ( - COUNT( * ) ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-3187
SELECT DISTINCT + 46 / + ( - COUNT ( * ) ) FROM tab2
----
-15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 IN ( + col0 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3189
SELECT ALL col2 / ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL col2 / ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3190
SELECT DISTINCT - ( - col1 ) DIV - 86 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT - ( - col1 ) / - 86 FROM tab0
----
0

query I rowsort
SELECT col0 FROM tab1 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 WHERE NOT - col2 / col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 > - col1 * col0 + - 20
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) = 17 - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT SUM( ALL 80 ) AS col0 FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-3195
SELECT SUM ( ALL 80 ) AS col0 FROM tab1
----
240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3196
SELECT ALL col0 + + col1 FROM tab2 WHERE NOT NULL IN ( CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3196
SELECT ALL col0 + + col1 FROM tab2 WHERE NOT NULL IN ( CAST ( col1 AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 ) NOT IN ( + col1 * + 17 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3198
SELECT COUNT( * ) + COUNT( ALL col2 ) * + COUNT( * ) FROM tab1 WHERE + 14 + col1 IS NOT NULL
----
12

skipif mysql # not compatible
query I rowsort label-3198
SELECT COUNT ( * ) + COUNT ( ALL col2 ) * + COUNT ( * ) FROM tab1 WHERE + 14 + col1 IS NOT NULL
----
12

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 - col0 IS NOT NULL
----

query I rowsort
SELECT - col2 * - 4 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3201
SELECT ALL ( - CAST( col0 AS SIGNED ) ) AS col2 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3201
SELECT ALL ( - CAST ( col0 AS INTEGER ) ) AS col2 FROM tab0 cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT 67 * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0
----
603

skipif mysql # not compatible
query I rowsort label-3203
SELECT 67 * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0
----
603

onlyif mysql # aggregate syntax: 
query I rowsort label-3204
SELECT MIN( DISTINCT col0 ) col2 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3204
SELECT MIN ( DISTINCT col0 ) col2 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT ALL SUM( DISTINCT 88 ) * SUM( - col2 + + 65 ) FROM tab2
----
6512

skipif mysql # not compatible
query I rowsort label-3205
SELECT ALL SUM ( DISTINCT 88 ) * SUM ( - col2 + + 65 ) FROM tab2
----
6512

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 40 ) NOT BETWEEN col2 AND 75 - + col1
----

query I rowsort
SELECT DISTINCT 68 + - ( col1 ) FROM tab2 AS cor0 WHERE NOT col0 > ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3208
SELECT DISTINCT - MIN( CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3208
SELECT DISTINCT - MIN ( CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 * col1 ) NOT BETWEEN ( + col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3210
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * 47 AS col0 FROM tab2
----
2162
3008
3525

query I rowsort
SELECT - col0 FROM tab2 WHERE col2 >= NULL
----

query I rowsort
SELECT DISTINCT - 0 * col1 FROM tab0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3214
SELECT COUNT( * ) DIV - 15 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3214
SELECT COUNT ( * ) / - 15 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 - + col0 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3216
SELECT CAST( - + 87 AS SIGNED ) DIV - COUNT( * ) FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-3216
SELECT CAST ( - + 87 AS INTEGER ) / - COUNT ( * ) FROM tab2
----
29

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col2 * col0 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3218
SELECT ALL + col1 * col0 / - 72 + 61 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT ALL + col1 * col0 / - 72 + 61 + + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 19 + - - 1 + + col2 FROM tab0 AS cor0
----
-8
29
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3220
SELECT DISTINCT + + CAST( col0 AS SIGNED ) + - col2 AS col2 FROM tab0 AS cor0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-3220
SELECT DISTINCT + + CAST ( col0 AS INTEGER ) + - col2 AS col2 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3221
SELECT DISTINCT - + CAST( + col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3221
SELECT DISTINCT - + CAST ( + col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE col2 <> NULL
----

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE - + col2 * col2 + 52 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT ALL - 16 * - COUNT( * ) + + + 92 AS col0 FROM tab2
----
140

skipif mysql # not compatible
query I rowsort label-3224
SELECT ALL - 16 * - COUNT ( * ) + + + 92 AS col0 FROM tab2
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT + - MAX( + col0 ) FROM tab2 AS cor0 WHERE 66 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3225
SELECT + - MAX ( + col0 ) FROM tab2 AS cor0 WHERE 66 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3226
SELECT + 69 * CAST( + COUNT( * ) AS SIGNED ) - 45 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-3226
SELECT + 69 * CAST ( + COUNT ( * ) AS INTEGER ) - 45 FROM tab2 AS cor0
----
162

onlyif mysql # DIV for integer division: 
query I rowsort label-3227
SELECT 9 DIV ( - + 79 ) - - col1 * col2 FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-3227
SELECT 9 / ( - + 79 ) - - col1 * col2 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3228
SELECT - - 68 DIV - 37 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3228
SELECT - - 68 / - 37 FROM tab2 cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + 25
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3230
SELECT ALL CAST( NULL AS SIGNED ) * col1 col1, 9 FROM tab1
----
NULL
9
NULL
9
NULL
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3230
SELECT ALL CAST ( NULL AS INTEGER ) * col1 col1, 9 FROM tab1
----
NULL
9
NULL
9
NULL
9

query I rowsort
SELECT DISTINCT + 61 * + 15 * col0 AS col1 FROM tab0
----
13725
79605
88755

query III rowsort
SELECT * FROM tab0 WHERE NOT - 39 - + 24 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab2 WHERE + 19 <> - - 46 * col0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3234
SELECT DISTINCT ( + 44 ) / + + CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3234
SELECT DISTINCT ( + 44 ) / + + CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3235
SELECT - CAST( 50 AS SIGNED ) + - 16 FROM tab2 WHERE NOT 65 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3235
SELECT - CAST ( 50 AS INTEGER ) + - 16 FROM tab2 WHERE NOT 65 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3236
SELECT + + col1 + - CAST( NULL AS SIGNED ) + - col0 * - col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3236
SELECT + + col1 + - CAST ( NULL AS INTEGER ) + - col0 * - col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * col2 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 92 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 39 AS col2 FROM tab2 AS cor0 WHERE NOT + 58 = - col1
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT + - 44 * COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-3240
SELECT + - 44 * COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-129

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 ) IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT MAX( 32 ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-3242
SELECT MAX ( 32 ) FROM tab1
----
32

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 30 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 3 + 55 - + 94 + - 11 * 74 AS col1 FROM tab0 AS cor0
----
-850
-850
-850

query I rowsort
SELECT + + 8 AS col0 FROM tab2 cor0
----
8
8
8

query I rowsort
SELECT DISTINCT - col0 + - - col0 * 60 AS col2 FROM tab2 AS cor0
----
2714
3776
4425

query I rowsort
SELECT 60 + + + 99 AS col2 FROM tab2 AS cor0
----
159
159
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3248
SELECT ALL 50 * - CAST( NULL AS SIGNED ) * - col1 * - 36 + - col1 + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL 50 * - CAST ( NULL AS INTEGER ) * - col1 * - 36 + - col1 + + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 + col1 col2 FROM tab1
----
110
68
77

query II rowsort
SELECT DISTINCT 77, - 37 AS col1 FROM tab2
----
77
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3251
SELECT DISTINCT CAST( col0 AS SIGNED ) + + col2 * ( col2 ) col2 FROM tab1
----
3566
4715
9267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3251
SELECT DISTINCT CAST ( col0 AS INTEGER ) + + col2 * ( col2 ) col2 FROM tab1
----
3566
4715
9267

query I rowsort
SELECT - col2 * - + 71 FROM tab0
----
3337
7029
710

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT + + COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3253
SELECT + + COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + 34 * - 88 FROM tab1 AS cor0
----
-2992
-2992
-2992

query I rowsort
SELECT - - col1 * - 38 FROM tab2 AS cor0
----
-1938
-2546
-2926

onlyif mysql # DIV for integer division: 
query I rowsort label-3256
SELECT ALL - 0 + - - 45 * 29 DIV ( col1 ) FROM tab1 AS cor0
----
261
27
93

skipif mysql # not compatible
query I rowsort label-3256
SELECT ALL - 0 + - - 45 * 29 / ( col1 ) FROM tab1 AS cor0
----
261
27
93

query I rowsort
SELECT ALL - + 1 + + + col1 AS col2 FROM tab1 AS cor0
----
13
4
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 - ( + - 0 ) col0 FROM tab2
----
-69
-69
-69

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE NOT NULL IS NULL AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 / col2 FROM tab1 WHERE NULL > col0 AND NULL IN ( col0 + + 55 - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT + COUNT( * ) + 36 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-3261
SELECT + COUNT ( * ) + 36 FROM tab0
----
39

query III rowsort
SELECT * FROM tab1 WHERE + 7 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE col2 NOT BETWEEN ( NULL ) AND - 92
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3264
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( + 13 )
----
0

skipif mysql # not compatible
query I rowsort label-3264
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( + 13 )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT 96 * - - COUNT( * ) + - COUNT( * ) * - 35 FROM tab2 AS cor0 WHERE NOT ( - col0 + - 14 ) < ( 53 )
----
0

skipif mysql # not compatible
query I rowsort label-3266
SELECT 96 * - - COUNT ( * ) + - COUNT ( * ) * - 35 FROM tab2 AS cor0 WHERE NOT ( - col0 + - 14 ) < ( 53 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT + MIN( + + col0 ) AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3267
SELECT + MIN ( + + col0 ) AS col0 FROM tab1 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3268
SELECT 4 DIV + col0 * col2 * - - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3268
SELECT 4 / + col0 * col2 * - - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - 21 / - - col2 + col2 * ( - col2 ) * ( 66 ) + 60 ) AND - col0 * col1
----

query I rowsort
SELECT DISTINCT col2 * + - col2 AS col0 FROM tab0
----
-100
-2209
-9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 * + + col0 col2 FROM tab2
----
4232
5888
6900

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * + col1 * - + col0 / + - col2 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3273
SELECT ALL MAX( DISTINCT - col0 ) DIV + 73 * 35 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL MAX ( DISTINCT - col0 ) / + 73 * 35 AS col2 FROM tab1
----
0

query II rowsort
SELECT + 34 * + 71 * + 68 AS col2, + col2 AS col2 FROM tab1
----
164152
59
164152
68
164152
96

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN ( ( + 77 ) ) AND NULL OR NOT ( + 60 ) IS NOT NULL
----

query I rowsort
SELECT ( 81 ) * + col2 FROM tab0
----
3807
8019
810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3277
SELECT DISTINCT ( - col0 ) / - ( - - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT ( - col0 ) / - ( - - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3278
SELECT ALL 30 AS col2, 3 + - + COUNT( * ) col2 FROM tab2
----
30
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3278
SELECT ALL 30 AS col2, 3 + - + COUNT ( * ) col2 FROM tab2
----
30
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 1 < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT ALL + - SUM( DISTINCT + col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3280
SELECT ALL + - SUM ( DISTINCT + col2 ) FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT ALL - + 66 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-3281
SELECT ALL - + 66 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-198

onlyif mysql # aggregate syntax: 
query II rowsort label-3282
SELECT DISTINCT - MIN( ALL col0 ) col0, COUNT( * ) col1 FROM tab0
----
-15
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3282
SELECT DISTINCT - MIN ( ALL col0 ) col0, COUNT ( * ) col1 FROM tab0
----
-15
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3283
SELECT DISTINCT 75 DIV col0 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3283
SELECT DISTINCT 75 / col0 AS col0 FROM tab2
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3284
SELECT col2 / col2 + + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3284
SELECT col2 / col2 + + - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 59 * + + 98 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to ad845c4674e1035d7ec95b3c1ca24a98

query III rowsort
SELECT * FROM tab2 WHERE col2 - col2 * col2 * - 25 IS NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab0 cor0 WHERE ( NULL ) >= - col2 * - col2
----

query I rowsort
SELECT DISTINCT col1 * + col2 + + + col2 AS col0 FROM tab1 cor0
----
1440
3264
354

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3289
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) AS col1, col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-3289
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) AS col1, col1 AS col2 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3290
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 43 + 10, CAST( NULL AS SIGNED ), - 63 * - col1 )
----

skipif mysql # not compatible
query III rowsort label-3290
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 43 + 10, CAST ( NULL AS INTEGER ), - 63 * - col1 )
----

query I rowsort
SELECT - col2 * - + ( + - col0 ) AS col2 FROM tab1 cor0
----
-4896
-5015
-6188

query I rowsort
SELECT ALL - + col2 / + + col2 + + ( + col1 ) AS col2 FROM tab2 WHERE NULL IN ( - 35, col2, - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col2 AND + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 - col2 col1 FROM tab1
----
-133
-142
-170

query I rowsort
SELECT ALL + 41 * col0 FROM tab0
----
3567
3977
615

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 - 58 col0 FROM tab2
----
29
29
29

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 59 / - + 84 + - + col1 BETWEEN - - col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 12 + + - col2 AS col0 FROM tab0 AS cor0
----
-35
-87
2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( NOT ( NULL >= ( - 83 ) ) ) )
----

query I rowsort
SELECT ALL + col1 * + 75 + + col2 AS col1 FROM tab1 cor0
----
1146
3593
434

query I rowsort
SELECT - 22 + + - 31 FROM tab2 AS cor0
----
-53
-53
-53

query I rowsort
SELECT ALL + col1 + - + col1 + + + 42 FROM tab1 cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT DISTINCT - 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-3303
SELECT DISTINCT - COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + 91 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-3305
SELECT ALL + + 48 AS col1, COUNT( * ) FROM tab2 AS cor0
----
48
3

skipif mysql # not compatible
query II rowsort label-3305
SELECT ALL + + 48 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
48
3

query I rowsort
SELECT 52 / + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT col0 * + - 34 < + - col2
----

query I rowsort
SELECT DISTINCT 63 * + ( + - col2 ) AS col0 FROM tab0 AS cor0
----
-2961
-6237
-630

query II rowsort
SELECT DISTINCT - 3, - col1 * - 75 + - col2 AS col1 FROM tab0 AS cor0
----
-3
-24
-3
1565
-3
6028

query I rowsort
SELECT DISTINCT - + ( + + col1 ) * - col2 * + 53 FROM tab1 AS cor0
----
15635
169388
71232

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT + MIN( DISTINCT ( 80 ) ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-3310
SELECT + MIN ( DISTINCT ( 80 ) ) FROM tab2
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 98 * - + col0 col1 FROM tab0
----
-1470
-8526
-9506

query I rowsort
SELECT ALL 91 FROM tab1 WHERE 21 IS NULL
----

query I rowsort
SELECT - col1 + 16 FROM tab0 AS cor0
----
-5
-65
15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 16 NOT BETWEEN 67 AND - 6
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3315
SELECT CAST( NULL AS DECIMAL ) * - 55 / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3315
SELECT CAST ( NULL AS REAL ) * - 55 / - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3316
SELECT DISTINCT + col2 DIV - 67 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3316
SELECT DISTINCT + col2 / - 67 AS col1 FROM tab0 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3317
SELECT ALL col0 col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL OR NOT col1 + - CAST( - col2 AS SIGNED ) * col1 / - col0 <> + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3317
SELECT ALL col0 col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL OR NOT col1 + - CAST ( - col2 AS INTEGER ) * col1 / - col0 <> + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3318
SELECT + col1 DIV + - col2, + col2 FROM tab2 AS cor0
----
-1
40
-1
58
-2
23

skipif mysql # not compatible
query II rowsort label-3318
SELECT + col1 / + - col2, + col2 FROM tab2 AS cor0
----
-1
40
-1
58
-2
23

query I rowsort
SELECT - + 65 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE + 11 IS NOT NULL
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

onlyif mysql # aggregate syntax: 
query I rowsort label-3320
SELECT ( MAX( ALL + col1 ) ) AS col2 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-3320
SELECT ( MAX ( ALL + col1 ) ) AS col2 FROM tab0 cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3321
SELECT ALL - CAST( col2 AS SIGNED ) * - col1, - col0 AS col1 FROM tab0 AS cor0 WHERE + 23 BETWEEN NULL AND - - col1 * CAST( NULL AS SIGNED ) + + + col1
----

skipif mysql # not compatible
query II rowsort label-3321
SELECT ALL - CAST ( col2 AS INTEGER ) * - col1, - col0 AS col1 FROM tab0 AS cor0 WHERE + 23 BETWEEN NULL AND - - col1 * CAST ( NULL AS INTEGER ) + + + col1
----

query I rowsort
SELECT col2 + 28 * + - col1 AS col2 FROM tab2 cor0
----
-1405
-1818
-2116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + - col0 * ( + - col2 ), 32 col2 FROM tab0 AS cor0
----
658
32
860
32
9504
32

query I rowsort
SELECT - col1 + - - 39 * + col0 AS col2 FROM tab2 AS cor0
----
1743
2419
2858

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT 46 + COUNT( * ) - + 88 * + + COUNT( * ) FROM tab1 AS cor0
----
-215

skipif mysql # not compatible
query I rowsort label-3325
SELECT 46 + COUNT ( * ) - + 88 * + + COUNT ( * ) FROM tab1 AS cor0
----
-215

query II rowsort
SELECT ALL + col2 + + col2 - - 53, - col0 * - + 85 AS col1 FROM tab2 AS cor0
----
133
5440
169
6375
99
3910

onlyif mysql # DIV for integer division: 
query I rowsort label-3327
SELECT DISTINCT - 66 DIV + - 57 - - col1 + - 22 - - ( - 67 ) FROM tab1 AS cor0
----
-41
-74
-83

skipif mysql # not compatible
query I rowsort label-3327
SELECT DISTINCT - 66 / + - 57 - - col1 + - 22 - - ( - 67 ) FROM tab1 AS cor0
----
-41
-74
-83

query I rowsort
SELECT DISTINCT - - 76 AS col0 FROM tab1 AS cor0 WHERE 49 <> 28
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3329
SELECT CAST( NULL AS SIGNED ) + + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3329
SELECT CAST ( NULL AS INTEGER ) + + col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - col2 FROM tab0 cor0 WHERE - 76 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3331
SELECT DISTINCT + COUNT( * ) * SUM( col2 ) * CAST( NULL AS SIGNED ) - 85 + + SUM( DISTINCT - - 68 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3331
SELECT DISTINCT + COUNT ( * ) * SUM ( col2 ) * CAST ( NULL AS INTEGER ) - 85 + + SUM ( DISTINCT - - 68 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE ( NOT - col2 * + col2 * + - col1 NOT IN ( - col2 * + col0 ) )
----

query I rowsort
SELECT DISTINCT - 7 + + col0 AS col0 FROM tab1
----
44
78
84

query III rowsort
SELECT * FROM tab0 WHERE + - 11 / + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * + col0 AS col2, + col1 * - 33 * - 59 + - ( - col1 ) col2 FROM tab0
----
1215
157788
1827
40908
97
1948

query I rowsort
SELECT + 36 * col2 AS col2 FROM tab0
----
1692
3564
360

query I rowsort
SELECT DISTINCT ( col1 ) * + 63 * - col1 FROM tab0 WHERE NOT - + col0 <= - - 65 * - - ( - + col2 )
----
-27783
-413343
-63

query I rowsort
SELECT ALL - ( - + col2 ) + - + col1 AS col0 FROM tab2
----
-28
-37
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 * - + 33 col0 FROM tab0
----
198
198
198

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT - 3 IS NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3341
SELECT + 80 - 75 - + CAST( NULL AS SIGNED ) - + + COUNT( ALL - col1 ) / SUM( - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3341
SELECT + 80 - 75 - + CAST ( NULL AS INTEGER ) - + + COUNT ( ALL - col1 ) / SUM ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3342
SELECT - 85 + + ( - COUNT( * ) ) DIV - - 81 * + 73 * + 50 FROM tab1 AS cor0 WHERE NOT - col1 <> ( NULL )
----
-85

skipif mysql # not compatible
query I rowsort label-3342
SELECT - 85 + + ( - COUNT ( * ) ) / - - 81 * + 73 * + 50 FROM tab1 AS cor0 WHERE NOT - col1 <> ( NULL )
----
-85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) < + - 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT ALL - + COUNT( * ) * + 34 * 24 FROM tab2 AS cor0
----
-2448

skipif mysql # not compatible
query I rowsort label-3344
SELECT ALL - + COUNT ( * ) * + 34 * 24 FROM tab2 AS cor0
----
-2448

onlyif mysql # aggregate syntax: 
query II rowsort label-3345
SELECT 81 AS col2, MAX( - 66 ) * COUNT( * ) * + - 24 FROM tab0 AS cor0
----
81
4752

skipif mysql # not compatible
query II rowsort label-3345
SELECT 81 AS col2, MAX ( - 66 ) * COUNT ( * ) * + - 24 FROM tab0 AS cor0
----
81
4752

query I rowsort
SELECT ALL 41 AS col2 FROM tab2 cor0
----
41
41
41

query II rowsort
SELECT DISTINCT + 96, col0 + + 5 * col1 AS col0 FROM tab1 AS cor0
----
96
110
96
121
96
326

onlyif mysql # aggregate syntax: 
query I rowsort label-3348
SELECT MIN( - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 * + 97 AND + - col1 * + + col2 - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3348
SELECT MIN ( - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col2 * + 97 AND + - col1 * + + col2 - col2
----
NULL

query I rowsort
SELECT 60 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT DISTINCT - - ( + COUNT( * ) ) * + 7 - - + 56 AS col0 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3350
SELECT DISTINCT - - ( + COUNT ( * ) ) * + 7 - - + 56 AS col0 FROM tab0 AS cor0
----
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 = ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3352
SELECT + ( - CAST( NULL AS SIGNED ) ) AS col0, + col2 AS col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3352
SELECT + ( - CAST ( NULL AS INTEGER ) ) AS col0, + col2 AS col1 FROM tab1
----
NULL
59
NULL
68
NULL
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3353
SELECT ALL - COUNT( ALL 2 ) AS col2, + 70 FROM tab1
----
-3
70

skipif mysql # not compatible
query II rowsort label-3353
SELECT ALL - COUNT ( ALL 2 ) AS col2, + 70 FROM tab1
----
-3
70

query II rowsort
SELECT DISTINCT + col2, col2 FROM tab1 WHERE col0 + 74 + col2 > NULL
----

query I rowsort
SELECT ( - 34 ) FROM tab2
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT MIN( ALL + 66 ) AS col0 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-3356
SELECT MIN ( ALL + 66 ) AS col0 FROM tab2
----
66

query II rowsort
SELECT DISTINCT - col0 AS col2, ( - col2 ) FROM tab2
----
-46
-23
-64
-40
-75
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3358
SELECT + CAST( + col0 AS SIGNED ) * ( + col0 ) FROM tab0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-3358
SELECT + CAST ( + col0 AS INTEGER ) * ( + col0 ) FROM tab0
----
225
7569
9409

query I rowsort
SELECT + 86 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
86
86
86

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 77 <> col1 - + - col1 + - - ( - + col1 ) + - - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3361
SELECT + 65 * + COUNT( * ) * + CAST( NULL AS SIGNED ) + + - 34 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3361
SELECT + 65 * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + + - 34 AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT DISTINCT COUNT( + col2 ) AS col0 FROM tab0 cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3362
SELECT DISTINCT COUNT ( + col2 ) AS col0 FROM tab0 cor0 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3363
SELECT * FROM tab0 WHERE NOT col0 - col0 IS NOT NULL OR + - CAST( + - 4 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3363
SELECT * FROM tab0 WHERE NOT col0 - col0 IS NOT NULL OR + - CAST ( + - 4 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 11 * - col0 AS col0 FROM tab0 AS cor0
----
-1067
-165
-957

query I rowsort
SELECT ALL col2 * - col1 + + col1 AS col1 FROM tab2 AS cor0
----
-1122
-3003
-3819

query I rowsort
SELECT ALL col1 + + col1 + - col2 FROM tab1 cor0
----
-49
-68
26

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT DISTINCT + COUNT( * ) + + 41 AS col2 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-3368
SELECT DISTINCT + COUNT ( * ) + + 41 AS col2 FROM tab0 AS cor0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3369
SELECT ( + AVG ( ALL + CAST( NULL AS SIGNED ) ) ) * + 88 AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3369
SELECT ( + AVG ( ALL + CAST ( NULL AS INTEGER ) ) ) * + 88 AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 71 col0 FROM tab1 AS cor0
----
-71
-71
-71

query I rowsort
SELECT ( + + ( - 62 ) ) * 24 FROM tab1, tab0 AS cor0
----
9 values hashing to c00d5f5f09efa61110c354ff94f5815d

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3372
SELECT DISTINCT col0 + - + CAST( + 22 AS SIGNED ) AS col1 FROM tab1
----
29
63
69

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT col0 + - + CAST ( + 22 AS INTEGER ) AS col1 FROM tab1
----
29
63
69

query I rowsort
SELECT - col2 - + 34 AS col0 FROM tab2
----
-57
-74
-92

query I rowsort
SELECT ALL - col1 - - 67 * 10 + - col1 * + col2 FROM tab0
----
-3218
439
570

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3375
SELECT DISTINCT - CAST( + 37 AS SIGNED ) * + COUNT( * ) FROM tab2
----
-111

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT - CAST ( + 37 AS INTEGER ) * + COUNT ( * ) FROM tab2
----
-111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + col0 ) + + col2 col2, col2 FROM tab1
----
144
59
147
96
159
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3377
SELECT ALL CAST( - 74 AS SIGNED ) FROM tab1
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-3377
SELECT ALL CAST ( - 74 AS INTEGER ) FROM tab1
----
-74
-74
-74

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3379
SELECT DISTINCT MAX( DISTINCT col0 ) / + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT MAX ( DISTINCT col0 ) / + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3380
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL = col2 * + - 35 / + col0 * + CAST( NULL AS SIGNED ) / 5 )
----

skipif mysql # not compatible
query III rowsort label-3380
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL = col2 * + - 35 / + col0 * + CAST ( NULL AS INTEGER ) / 5 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3381
SELECT ALL col1 DIV + col0 * + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL col1 / + col0 * + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT DISTINCT - COUNT( - 95 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT - COUNT ( - 95 ) AS col1 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 * - + 41 IS NOT NULL
----

query I rowsort
SELECT 81 * + col1 - col2 AS col1 FROM tab0 AS cor0
----
-18
1691
6514

onlyif mysql # DIV for integer division: 
query I rowsort label-3385
SELECT + col1 DIV + + 13 FROM tab2 AS cor0
----
3
5
5

skipif mysql # not compatible
query I rowsort label-3385
SELECT + col1 / + + 13 FROM tab2 AS cor0
----
3
5
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3386
SELECT - - CAST( NULL AS SIGNED ) * - + MIN( - - ( col1 ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3386
SELECT - - CAST ( NULL AS INTEGER ) * - + MIN ( - - ( col1 ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT - 83 * + - COUNT( * ) - - 21 FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-3387
SELECT - 83 * + - COUNT ( * ) - - 21 FROM tab0 AS cor0
----
270

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT 94 IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT ( 96 ) AS col1 FROM tab2
----
96

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 < + - col1 + 12 - - + ( - col1 ) * 50 + - - col0 + 97
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT - COUNT( ALL col2 ) + - 2 - + + 42 * ( + - COUNT( * ) ) * - 9 FROM tab0
----
-1139

skipif mysql # not compatible
query I rowsort label-3391
SELECT - COUNT ( ALL col2 ) + - 2 - + + 42 * ( + - COUNT ( * ) ) * - 9 FROM tab0
----
-1139

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3392
SELECT DISTINCT - CAST( + 33 AS SIGNED ) FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-3392
SELECT DISTINCT - CAST ( + 33 AS INTEGER ) FROM tab0
----
-33

query I rowsort
SELECT col2 + 85 AS col1 FROM tab1
----
144
153
181

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3394
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col2, - 35 + - ( - 41 ) + + col2 + - - 53 + - 58 + col0 * + - CAST( + 4 AS DECIMAL ) + - 86 * - 62 * - 98 )
----

skipif mysql # not compatible
query III rowsort label-3394
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col2, - 35 + - ( - 41 ) + + col2 + - - 53 + - 58 + col0 * + - CAST ( + 4 AS REAL ) + - 86 * - 62 * - 98 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3395
SELECT ALL 34 + col2 DIV 10 AS col0 FROM tab2 AS cor0
----
36
38
39

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL 34 + col2 / 10 AS col0 FROM tab2 AS cor0
----
36
38
39

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 14 NOT BETWEEN NULL AND NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NOT 77 <> NULL
----

query I rowsort
SELECT + 77 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT + 80 + - + 34 AS col1 FROM tab1 cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT - - MAX( ALL + 35 ) + - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-3400
SELECT - - MAX ( ALL + 35 ) + - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
32

query I rowsort
SELECT + + ( - col2 ) * - col1 + - 91 + - col0 FROM tab0 AS cor0
----
-89
32
3701

onlyif mysql # DIV for integer division: 
query I rowsort label-3402
SELECT + - col0 + col2 DIV + col0 AS col0 FROM tab1 AS cor0
----
-50
-85
-91

skipif mysql # not compatible
query I rowsort label-3402
SELECT + - col0 + col2 / + col0 AS col0 FROM tab1 AS cor0
----
-50
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT + COUNT( * ) + - ( + + COUNT( * ) ) + + 15 * + - ( COUNT( * ) ) FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-3403
SELECT + COUNT ( * ) + - ( + + COUNT ( * ) ) + + 15 * + - ( COUNT ( * ) ) FROM tab2 AS cor0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3404
SELECT ALL + - col2 + col0 + - - col1 + + - col2 + CAST( NULL AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL + - col2 + col0 + - - col1 + + - col2 + CAST ( NULL AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3405
SELECT ALL + CAST( NULL AS DECIMAL ) - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL + CAST ( NULL AS REAL ) - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3406
SELECT CAST( NULL AS DECIMAL ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3406
SELECT CAST ( NULL AS REAL ) col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + + col2 * - 49 AS col2 FROM tab2
----
-1178
-2037
-2909

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3408
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) - - + 64 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) - - + 64 FROM tab1
----
67

query I rowsort
SELECT ALL - 23 * + - col1 * - 91 AS col2 FROM tab0
----
-169533
-2093
-43953

query II rowsort
SELECT DISTINCT 9 * + + 65, - 83 AS col1 FROM tab1
----
585
-83

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NOT + col1 * 38 + + col1 IS NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3412
SELECT 83 DIV - col2 AS col2 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-3412
SELECT 83 / - col2 AS col2 FROM tab0
----
-1
-8
0

query I rowsort
SELECT col0 * - 91 FROM tab1
----
-4641
-7735
-8281

onlyif mysql # DIV for integer division: 
query I rowsort label-3414
SELECT DISTINCT col0 DIV + + col0 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT col0 / + + col0 AS col2 FROM tab2
----
1

query I rowsort
SELECT 82 * + 82 - - + 9 AS col1 FROM tab0 AS cor0
----
6733
6733
6733

query I rowsort
SELECT ALL - - col0 FROM tab0 cor0 WHERE NOT col0 * 92 >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3417
SELECT COUNT( + - 60 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3417
SELECT COUNT ( + - 60 ) col0 FROM tab1
----
3

query II rowsort
SELECT + - col1, 57 AS col0 FROM tab2 AS cor0
----
-51
57
-67
57
-77
57

query I rowsort
SELECT ALL - 86 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - 68 + + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT ALL - + MAX( 28 ) * - + COUNT( * ) * + 64 + - + COUNT( * ) AS col1 FROM tab0 cor0
----
5373

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL - + MAX ( 28 ) * - + COUNT ( * ) * + 64 + - + COUNT ( * ) AS col1 FROM tab0 cor0
----
5373

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3421
SELECT * FROM tab0 AS cor0 WHERE NOT col1 > CAST( col1 AS SIGNED ) * - col0 / - - CAST( + 82 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3421
SELECT * FROM tab0 AS cor0 WHERE NOT col1 > CAST ( col1 AS INTEGER ) * - col0 / - - CAST ( + 82 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3422
SELECT + + 83 DIV 6 col2 FROM tab0 AS cor0
----
13
13
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3422
SELECT + + 83 / 6 col2 FROM tab0 AS cor0
----
13
13
13

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = NULL AND NOT ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT ALL - COUNT( * ) * + COUNT( * ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL - COUNT ( * ) * + COUNT ( * ) FROM tab1 cor0
----
-9

query I rowsort
SELECT - 52 * + 66 FROM tab1 AS cor0
----
-3432
-3432
-3432

query I rowsort
SELECT col0 * + + col1 * - col1 AS col2 FROM tab2
----
-119646
-336675
-379456

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE - - 7 <> + - 56 + - 24
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 - + - col1 * + + col0 IS NOT NULL
----

query I rowsort
SELECT + - ( + + col0 ) * + col0 + + - col0 + + 68 FROM tab1 WHERE NULL IS NULL
----
-2584
-7242
-8304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3430
SELECT col1 * + CAST( 82 AS SIGNED ) FROM tab2
----
4182
5494
6314

skipif mysql # not compatible
query I rowsort label-3430
SELECT col1 * + CAST ( 82 AS INTEGER ) FROM tab2
----
4182
5494
6314

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col0 FROM tab1
----
44
44
44

onlyif mysql # DIV for integer division: 
query II rowsort label-3432
SELECT - col0 DIV + 56 AS col0, - 5 * - ( + col0 ) AS col0 FROM tab1
----
-1
425
-1
455
0
255

skipif mysql # not compatible
query II rowsort label-3432
SELECT - col0 / + 56 AS col0, - 5 * - ( + col0 ) AS col0 FROM tab1
----
-1
425
-1
455
0
255

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - col0 AND + col2 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT DISTINCT MAX( - - col1 ) col0 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3434
SELECT DISTINCT MAX ( - - col1 ) col0 FROM tab1
----
47

query I rowsort
SELECT + col0 + - ( 52 ) + + - 93 FROM tab0 AS cor0
----
-130
-48
-58

query I rowsort
SELECT ALL 70 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
70
70
70

query I rowsort
SELECT col2 + col0 + - + col2 * + + col0 FROM tab2
----
-2456
-4217
-989

onlyif mysql # aggregate syntax: 
query I rowsort label-3438
SELECT - - 2 * - + COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-3438
SELECT - - 2 * - + COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-18

query I rowsort
SELECT - - ( - 85 ) FROM tab1 AS cor0
----
-85
-85
-85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 9 + + col0 + + col2 * - col0 * col2 = ( - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3441
SELECT - 72 - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3441
SELECT - 72 - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3442
SELECT * FROM tab0 cor0 WHERE - col2 + - CAST( NULL AS SIGNED ) + + + 17 * - col0 BETWEEN + - ( - col1 ) AND col2
----

skipif mysql # not compatible
query III rowsort label-3442
SELECT * FROM tab0 cor0 WHERE - col2 + - CAST ( NULL AS INTEGER ) + + + 17 * - col0 BETWEEN + - ( - col1 ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT COUNT( ALL - 73 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3443
SELECT COUNT ( ALL - 73 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3444
SELECT col2 DIV - 96 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3444
SELECT col2 / - 96 FROM tab2
----
0
0
0

query II rowsort
SELECT col2 AS col0, 1 FROM tab2
----
23
1
40
1
58
1

query I rowsort
SELECT + ( + col1 ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT DISTINCT - COUNT( * ) * + 10 AS col1 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT - COUNT ( * ) * + 10 AS col1 FROM tab2
----
-30

query I rowsort
SELECT 74 + + - col1 FROM tab2 WHERE NOT + + col2 + - ( - col1 ) IS NULL
----
-3
23
7

query I rowsort
SELECT + col1 * + + col2 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT ALL + + col2 * 59 FROM tab2 AS cor0
----
1357
2360
3422

onlyif mysql # aggregate syntax: 
query I rowsort label-3451
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col1 < + col1
----
0

skipif mysql # not compatible
query I rowsort label-3451
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col1 < + col1
----
0

query I rowsort
SELECT DISTINCT - + 87 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3453
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 37 NOT BETWEEN NULL AND + + col1 / 73 * - CAST( NULL AS DECIMAL ) - col1 / + col1 OR col1 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3453
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 37 NOT BETWEEN NULL AND + + col1 / 73 * - CAST ( NULL AS REAL ) - col1 / + col1 OR col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - - col0 * + - 25 FROM tab0 AS cor0
----
-2175
-2425
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT ALL - - COUNT( * ) * 2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3455
SELECT ALL - - COUNT ( * ) * 2 FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3456
SELECT * FROM tab2 WHERE ( - col0 * - + col0 ) BETWEEN col0 * - + col1 - + + col0 AND col2 + + - CAST( ( 31 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3456
SELECT * FROM tab2 WHERE ( - col0 * - + col0 ) BETWEEN col0 * - + col1 - + + col0 AND col2 + + - CAST ( ( 31 ) AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3457
SELECT DISTINCT * FROM tab2 WHERE NOT - 54 * + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3457
SELECT DISTINCT * FROM tab2 WHERE NOT - 54 * + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT - - MIN( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3458
SELECT - - MIN ( ALL - col0 ) AS col0 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT DISTINCT col0 + + + col1 + - col2 FROM tab0 AS cor0
----
-1
49
98

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE col2 * - 51 + + col1 BETWEEN - - col1 AND + col1 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE 9 * 47 < + col1
----
0

skipif mysql # not compatible
query I rowsort label-3461
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE 9 * 47 < + col1
----
0

query I rowsort
SELECT ALL - - ( - + col1 ) + col0 + + col0 FROM tab1 AS cor0
----
135
165
88

query II rowsort
SELECT col1, + col2 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3464
SELECT DISTINCT 35 * + col0 * + col2 + - col0 FROM tab1 cor0 WHERE NOT ( NULL ) = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT 35 * + col0 * + col2 + - col0 FROM tab1 cor0 WHERE NOT ( NULL ) = - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 58 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( + + ( - col0 ) ) * - + ( col0 ) FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3467
SELECT * FROM tab2 cor0 WHERE NOT 98 / CAST( col2 AS SIGNED ) + - col0 = + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3467
SELECT * FROM tab2 cor0 WHERE NOT 98 / CAST ( col2 AS INTEGER ) + - col0 = + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 83 AS col1, col2 AS col0 FROM tab2
----
83
23
83
40
83
58

query I rowsort
SELECT DISTINCT 4 * + col0 FROM tab1
----
204
340
364

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3470
SELECT + SUM( 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-3470
SELECT + SUM ( ALL - CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
NULL

query II rowsort
SELECT - col0 AS col1, 80 FROM tab1
----
-51
80
-85
80
-91
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT ALL 88 * + COUNT( * ) FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-3472
SELECT ALL 88 * + COUNT ( * ) FROM tab0
----
264

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT DISTINCT + SUM( ALL - 31 ) AS col1 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-3473
SELECT DISTINCT + SUM ( ALL - 31 ) AS col1 FROM tab2
----
-93

query I rowsort
SELECT DISTINCT - 24 AS col1 FROM tab1 WHERE NOT + 8 IS NULL
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT + MAX( ALL - + ( + 58 ) ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3475
SELECT + MAX ( ALL - + ( + 58 ) ) AS col1 FROM tab2
----
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 36 IS NULL
----

query I rowsort
SELECT ALL + col2 - + + 90 * + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT 24 NOT BETWEEN col0 * - - col1 + - ( 2 ) * + - col1 * col1 AND - col2
----

query I rowsort
SELECT DISTINCT + - ( 55 ) AS col0 FROM tab0 AS cor0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3479
SELECT ALL + CAST( col1 AS SIGNED ) * col2 + + col2 * col0 FROM tab2 cor0
----
2231
5640
8236

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL + CAST ( col1 AS INTEGER ) * col2 + + col2 * col0 FROM tab2 cor0
----
2231
5640
8236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3480
SELECT ALL - - 4 DIV - + ( + SUM( DISTINCT - - col0 ) ) * - - ( COUNT( * ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL - - 4 / - + ( + SUM ( DISTINCT - - col0 ) ) * - - ( COUNT ( * ) ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 43 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT DISTINCT - ( COUNT( * ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3482
SELECT DISTINCT - ( COUNT ( * ) ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT ALL + - 14 AS col2 FROM tab1 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + 0 ) col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3485
SELECT + MIN( + - col0 ) DIV - - ( + COUNT( * ) ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3485
SELECT + MIN ( + - col0 ) / - - ( + COUNT ( * ) ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-33

query I rowsort
SELECT ALL + - col2 + + - col0 AS col2 FROM tab1 AS cor0
----
-144
-147
-159

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 NOT IN ( + col0, - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * + + col2 * + ( - - col0 ) + + 25 AS col0 FROM tab0 AS cor0
----
33160
8725
950722

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3489
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( NOT col0 IN ( - col2 + col1, col1 * + CAST( - col2 AS SIGNED ), - 69 ) ) )
----

skipif mysql # not compatible
query III rowsort label-3489
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( NOT col0 IN ( - col2 + col1, col1 * + CAST ( - col2 AS INTEGER ), - 69 ) ) )
----

query II rowsort
SELECT DISTINCT - col2 + 65, ( - - 24 ) AS col2 FROM tab2 AS cor0
----
25
24
42
24
7
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3491
SELECT DISTINCT + col0 + - CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
17
23
24

skipif mysql # not compatible
query I rowsort label-3491
SELECT DISTINCT + col0 + - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
17
23
24

query I rowsort
SELECT ALL 61 + - col0 FROM tab0
----
-26
-36
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT ALL + COUNT( col1 ) - + 89 AS col0 FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-3493
SELECT ALL + COUNT ( col1 ) - + 89 AS col0 FROM tab0
----
-86

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - + col0 ) * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * + 99 FROM tab2
----
-4554
-6336
-7425

query I rowsort
SELECT + col0 + + + 17 FROM tab0 cor0
----
104
114
32

query I rowsort
SELECT ALL - - 62 * + 19 * - ( + 31 ) - 66 FROM tab2 AS cor0
----
-36584
-36584
-36584

query II rowsort
SELECT DISTINCT - 4 + - 22, + col2 + - + col1 + - - col2 AS col1 FROM tab0 AS cor0
----
-26
-1
-26
13
-26
197

query II rowsort
SELECT ALL + col2 + + col2 AS col1, + col1 AS col2 FROM tab2 AS cor0
----
116
67
46
51
80
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT DISTINCT + COUNT( * ) - - 70 FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-3500
SELECT DISTINCT + COUNT ( * ) - - 70 FROM tab1
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3501
SELECT DISTINCT 44 DIV 78 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3501
SELECT DISTINCT 44 / 78 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query III rowsort
SELECT * FROM tab2 WHERE 89 NOT BETWEEN + col1 AND NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab0 AS cor1 ON NOT + 43 = + - 82
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT DISTINCT - + 58 * + col1 + + - col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3505
SELECT - col1, + col2 FROM tab0 AS cor0 WHERE NOT 90 * CAST( NULL AS SIGNED ) + + 6 >= col2
----

skipif mysql # not compatible
query II rowsort label-3505
SELECT - col1, + col2 FROM tab0 AS cor0 WHERE NOT 90 * CAST ( NULL AS INTEGER ) + + 6 >= col2
----

query I rowsort
SELECT col0 * - - col1 * + 19 * - - col1 FROM tab1 cor0
----
189924
3819361
40375

query I rowsort
SELECT + + 36 FROM tab2 AS cor0 WHERE NOT + col2 <> col2
----
36
36
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col0, 80 * + - 86 col1 FROM tab2 AS cor0
----
51
-6880
67
-6880
77
-6880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 col1 FROM tab2
----
14

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT ( - ( + col0 ) ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 65 NOT IN ( + + 19 / ( + col2 ) + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + + col1 AS col2, 11 FROM tab0 WHERE NOT - + col2 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( + - 33 ) > NULL
----

query I rowsort
SELECT 94 * - col2 + + col2 AS col1 FROM tab1 AS cor0
----
-5487
-6324
-8928

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT ALL - + COUNT( * ) + - 14 AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
-14

skipif mysql # not compatible
query I rowsort label-3515
SELECT ALL - + COUNT ( * ) + - 14 AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3516
SELECT DISTINCT + col1 * - 33 AS col1, - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-2673
-47
-33
-99
-693
-10

skipif mysql # not compatible
query II rowsort label-3516
SELECT DISTINCT + col1 * - 33 AS col1, - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-2673
-47
-33
-99
-693
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT 45 * - - MAX( DISTINCT + col1 ) FROM tab2 AS cor0
----
3465

skipif mysql # not compatible
query I rowsort label-3517
SELECT 45 * - - MAX ( DISTINCT + col1 ) FROM tab2 AS cor0
----
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT 33 * - + 57 * + - COUNT( * ) AS col0 FROM tab0
----
5643

skipif mysql # not compatible
query I rowsort label-3518
SELECT 33 * - + 57 * + - COUNT ( * ) AS col0 FROM tab0
----
5643

onlyif mysql # aggregate syntax: 
query I rowsort label-3519
SELECT - - COUNT( * ) + - 39 FROM tab2 WHERE col2 <= + col2 * col0 * - 87 - col0
----
-39

skipif mysql # not compatible
query I rowsort label-3519
SELECT - - COUNT ( * ) + - 39 FROM tab2 WHERE col2 <= + col2 * col0 * - 87 - col0
----
-39

query I rowsort
SELECT + 88 * - col1 - col2 AS col2 FROM tab2 WHERE NULL > - + col2
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 + - col0 = NULL
----

query I rowsort
SELECT - - 70 + - col1 + - col2 + - + col1 FROM tab0 AS cor0
----
-139
-31
18

query II rowsort
SELECT 89 / - 68, - col2 / 19 AS col2 FROM tab0 AS cor0 WHERE col0 * col0 * - col0 - + col1 + col1 * col0 * + + col1 * - + col2 + - 37 BETWEEN NULL AND col2
----

query I rowsort
SELECT 47 + + - col1 AS col1 FROM tab0 AS cor0
----
-34
26
46

onlyif mysql # DIV for integer division: 
query I rowsort label-3525
SELECT DISTINCT + + ( - col0 ) DIV - + col0 + + 68 AS col1 FROM tab0 cor0
----
69

skipif mysql # not compatible
query I rowsort label-3525
SELECT DISTINCT + + ( - col0 ) / - + col0 + + 68 AS col1 FROM tab0 cor0
----
69

query II rowsort
SELECT DISTINCT 84 + - 97 * - col2 AS col2, 92 FROM tab2 AS cor0
----
2315
92
3964
92
5710
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3527
SELECT DISTINCT + COUNT( ALL - CAST( NULL AS SIGNED ) ) * - ( + 72 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3527
SELECT DISTINCT + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * - ( + 72 ) AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * - - col0 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE + + 53 IS NULL
----

query I rowsort
SELECT DISTINCT + 90 FROM tab2, tab2 cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3531
SELECT ALL * FROM tab1 WHERE NOT - + 22 + - col2 + + - CAST( + col0 AS SIGNED ) NOT IN ( - 32, col2 * - ( + - 86 ) - col0, col2 )
----

skipif mysql # not compatible
query III rowsort label-3531
SELECT ALL * FROM tab1 WHERE NOT - + 22 + - col2 + + - CAST ( + col0 AS INTEGER ) NOT IN ( - 32, col2 * - ( + - 86 ) - col0, col2 )
----

query I rowsort
SELECT DISTINCT 33 - 93 FROM tab0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3533
SELECT - 72 * + MIN( ALL + col1 ) FROM tab0
----
-72

skipif mysql # not compatible
query I rowsort label-3533
SELECT - 72 * + MIN ( ALL + col1 ) FROM tab0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3534
SELECT ALL - COUNT( * ) * + + COUNT( * ) col0 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3534
SELECT ALL - COUNT ( * ) * + + COUNT ( * ) col0 FROM tab0
----
-9

query I rowsort
SELECT ALL col2 * + + col1 * + - 20 FROM tab1
----
-26880
-5900
-63920

query I rowsort
SELECT col0 * - + 20 FROM tab2
----
-1280
-1500
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT ALL + - MIN( DISTINCT - col1 ) + - + MIN( + + 26 ) FROM tab1 cor0 WHERE NOT - ( col2 ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL + - MIN ( DISTINCT - col1 ) + - + MIN ( + + 26 ) FROM tab1 cor0 WHERE NOT - ( col2 ) <= NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3538
SELECT DISTINCT + - 71 + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3538
SELECT DISTINCT + - 71 + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - - col0 * + col1 + - + 72 col1 FROM tab2 cor0
----
2325
4933
5020

query I rowsort
SELECT + ( + - col2 ) - - - col0 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT - 36 - - 70 FROM tab0 cor0
----
34
34
34

query I rowsort
SELECT - col0 * - col2 + col1 + col1 AS col1 FROM tab1 AS cor0
----
4924
5025
6282

query I rowsort
SELECT + 66 * col1 + + col0 FROM tab1 cor0
----
3193
415
975

query I rowsort
SELECT + + col0 + col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3545
SELECT DISTINCT - + 14 col2 FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) NOT IN ( - col1 + col2, col0 + - 56, - col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3545
SELECT DISTINCT - + 14 col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) NOT IN ( - col1 + col2, col0 + - 56, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ALL + MIN( - + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL + MIN ( - + col2 ) AS col0 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT ALL + col1 + col1 FROM tab1 AS cor0 WHERE NOT col0 * - col2 IS NULL
----
10
28
94

query II rowsort
SELECT col2 AS col2, + 19 + - col1 FROM tab1
----
59
14
68
-28
96
5

query I rowsort
SELECT col1 * - 73 AS col1 FROM tab2
----
-3723
-4891
-5621

query I rowsort
SELECT DISTINCT + 31 AS col2 FROM tab0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3551
SELECT - - COUNT( col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3551
SELECT - - COUNT ( col2 ) AS col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT - - 27, + col0 FROM tab0 AS cor0
----
27
15
27
87
27
97

query I rowsort
SELECT - 27 + col2 FROM tab0
----
-17
20
72

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE + 36 IS NULL
----

query I rowsort
SELECT ALL - + col2 + - 11 * - + col2 AS col1 FROM tab0 AS cor0
----
100
470
990

onlyif mysql # DIV for integer division: 
query I rowsort label-3556
SELECT ALL + - ( + 87 ) DIV + - col1 FROM tab0 AS cor0 WHERE + 17 + col0 * + 15 * + + col1 * col2 + + + 42 + + + col0 * 36 NOT IN ( col1, col1 + + + col1 )
----
1
4
87

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL + - ( + 87 ) / + - col1 FROM tab0 AS cor0 WHERE + 17 + col0 * + 15 * + + col1 * col2 + + + 42 + + + col0 * 36 NOT IN ( col1, col1 + + + col1 )
----
1
4
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3557
SELECT - + MAX( DISTINCT + + col1 ), + 76 AS col2 FROM tab1 AS cor0
----
-47
76

skipif mysql # not compatible
query II rowsort label-3557
SELECT - + MAX ( DISTINCT + + col1 ), + 76 AS col2 FROM tab1 AS cor0
----
-47
76

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 91 col1 FROM tab0 AS cor0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT ALL COUNT( * ) + 15 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL COUNT ( * ) + 15 FROM tab1 AS cor0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-3561
SELECT DISTINCT - - col1 + + + col2 DIV + 11 AS col1 FROM tab1 AS cor0
----
10
22
53

skipif mysql # not compatible
query I rowsort label-3561
SELECT DISTINCT - - col1 + + + col2 / + 11 AS col1 FROM tab1 AS cor0
----
10
22
53

query I rowsort
SELECT DISTINCT ( 65 ) AS col1 FROM tab2 AS cor0
----
65

query I rowsort
SELECT - ( 77 ) FROM tab2 cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT ALL - MIN( - 47 ) + ( 0 ) AS col2 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-3564
SELECT ALL - MIN ( - 47 ) + ( 0 ) AS col2 FROM tab0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3565
SELECT 25 - + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3565
SELECT 25 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * + ( + col2 ) FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT 97 - + + COUNT( + 78 ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-3567
SELECT 97 - + + COUNT ( + 78 ) FROM tab0
----
94

query I rowsort
SELECT ALL 81 - - col1 FROM tab1
----
128
86
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3569
SELECT ALL + COUNT( * ) * - 41 FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-3569
SELECT ALL + COUNT ( * ) * - 41 FROM tab0
----
-123

query I rowsort
SELECT col1 + + 57 AS col0 FROM tab2
----
108
124
134

query II rowsort
SELECT DISTINCT col1, - col0 * + col1 + - col1 + 89 + + + col0 AS col1 FROM tab0
----
1
88
21
-1672
81
-1192

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - - col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-3573
SELECT DISTINCT + col1, - col1 DIV - col1 AS col0 FROM tab2 AS cor0
----
51
1
67
1
77
1

skipif mysql # not compatible
query II rowsort label-3573
SELECT DISTINCT + col1, - col1 / - col1 AS col0 FROM tab2 AS cor0
----
51
1
67
1
77
1

query II rowsort
SELECT DISTINCT 47 AS col1, + 5 FROM tab1
----
47
5

query I rowsort
SELECT DISTINCT + col1 * 40 FROM tab1
----
1880
200
560

query II rowsort
SELECT ALL 37, col1 * + - 64 AS col2 FROM tab0
----
37
-1344
37
-5184
37
-64

onlyif mysql # DIV for integer division: 
query II rowsort label-3577
SELECT DISTINCT + 29 DIV col0, - col1 AS col1 FROM tab0 AS cor0
----
0
-1
0
-21
1
-81

skipif mysql # not compatible
query II rowsort label-3577
SELECT DISTINCT + 29 / col0, - col1 AS col1 FROM tab0 AS cor0
----
0
-1
0
-21
1
-81

query I rowsort
SELECT - 89 * + ( - 51 ) FROM tab0 AS cor0
----
4539
4539
4539

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3579
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + + col2 FROM tab2 AS cor0 WHERE NOT + col1 <= NULL
----

skipif mysql # not compatible
query I rowsort label-3579
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + + col2 FROM tab2 AS cor0 WHERE NOT + col1 <= NULL
----

query I rowsort
SELECT ( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col2 AS col0, col1 - + ( + + 6 ) AS col2 FROM tab0 AS cor0
----
10
15
47
75
99
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 94, ( + col0 ) col0 FROM tab1 AS cor0
----
94
51
94
85
94
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3584
SELECT DISTINCT - MAX( + col2 ) * - - CAST( + 69 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-4002

skipif mysql # not compatible
query I rowsort label-3584
SELECT DISTINCT - MAX ( + col2 ) * - - CAST ( + 69 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-4002

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT ALL - 47 * MAX( col2 ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-8178

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL - 47 * MAX ( col2 ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-8178

query I rowsort
SELECT ALL - col1 * - 14 FROM tab2
----
1078
714
938

query III rowsort
SELECT * FROM tab1 WHERE NOT - - ( + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3588
SELECT 95 + MIN( - + col0 ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-3588
SELECT 95 + MIN ( - + col0 ) FROM tab0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3589
SELECT col0 DIV col2 * - col1 * + col0 DIV + + col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-168
0
0

skipif mysql # not compatible
query I rowsort label-3589
SELECT col0 / col2 * - col1 * + col0 / + + col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-168
0
0

query I rowsort
SELECT col0 * + ( col1 ) * - + ( 1 ) * col1 + - 7 * - col0 + - + col0 FROM tab1
----
-1615
-200473
-9690

onlyif mysql # aggregate syntax: 
query I rowsort label-3591
SELECT + + COUNT( * ) * + 58 + + 52 AS col2 FROM tab1 AS cor0
----
226

skipif mysql # not compatible
query I rowsort label-3591
SELECT + + COUNT ( * ) * + 58 + + 52 AS col2 FROM tab1 AS cor0
----
226

query I rowsort
SELECT DISTINCT - 75 + + + col2 FROM tab0 AS cor0
----
-28
-65
24

onlyif mysql # DIV for integer division: 
query I rowsort label-3593
SELECT ALL - + 84 DIV + - col0 + col0 + + + col2 + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1103
-2975
-3752

skipif mysql # not compatible
query I rowsort label-3593
SELECT ALL - + 84 / + - col0 + col0 + + + col2 + col2 * - col1 AS col0 FROM tab2 AS cor0
----
-1103
-2975
-3752

onlyif mysql # aggregate syntax: 
query II rowsort label-3594
SELECT 59 AS col2, COUNT( * ) FROM tab0
----
59
3

skipif mysql # not compatible
query II rowsort label-3594
SELECT 59 AS col2, COUNT ( * ) FROM tab0
----
59
3

query I rowsort
SELECT 70 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query II rowsort
SELECT ( - col2 ) + + - 15 AS col1, - col0 * - - 58 - col0 FROM tab0 cor0
----
-114
-5723
-25
-5133
-62
-885

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 22 / + + col2 >= - col1 + - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT - - 61 + - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-3598
SELECT - - 61 + - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
64

onlyif mysql # DIV for integer division: 
query II rowsort label-3599
SELECT 46 DIV 61 + + - col2, col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

skipif mysql # not compatible
query II rowsort label-3599
SELECT 46 / 61 + + - col2, col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT ALL COUNT( * ) * + COUNT( * ) + 22 AS col1 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL COUNT ( * ) * + COUNT ( * ) + 22 AS col1 FROM tab1 AS cor0
----
31

query I rowsort
SELECT + + col0 + - 42 AS col0 FROM tab0 AS cor0
----
-27
45
55

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) IN ( + ( col1 ), col2, + 70 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) * + col2 >= - - 24 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 - + 94 FROM tab0
----
-47
-84
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 25 col0 FROM tab0
----
-1175
-2475
-250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 4 - + col1 col1 FROM tab2
----
-47
-63
-73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3607
SELECT * FROM tab2 WHERE - + CAST( NULL AS SIGNED ) + - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3607
SELECT * FROM tab2 WHERE - + CAST ( NULL AS INTEGER ) + - col1 IS NOT NULL
----

query I rowsort
SELECT col0 * - - 63 AS col1 FROM tab0
----
5481
6111
945

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3609
SELECT DISTINCT SUM( + ( 59 ) ), - COUNT( * ) DIV - 51 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
177
0

skipif mysql # not compatible
query II rowsort label-3609
SELECT DISTINCT SUM ( + ( 59 ) ), - COUNT ( * ) / - 51 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
177
0

query I rowsort
SELECT - ( - + 23 ) + - + ( + 87 ) * + - 43 * col2 FROM tab2 AS cor0 WHERE NOT 37 * + 36 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT - COUNT( - + 94 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3611
SELECT - COUNT ( - + 94 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT 3 * + col2 * + 49 AS col2 FROM tab0
----
14553
1470
6909

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT ALL + 29 + - 96 + MAX( + + 43 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-24

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL + 29 + - 96 + MAX ( + + 43 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-24

query I rowsort
SELECT DISTINCT col2 * + col0 - - 14 AS col0 FROM tab1 AS cor0
----
4910
5029
6202

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT ALL - MIN( + 70 ) * - + 49 FROM tab1 cor0
----
3430

skipif mysql # not compatible
query I rowsort label-3615
SELECT ALL - MIN ( + 70 ) * - + 49 FROM tab1 cor0
----
3430

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 - col1 IN ( - - 26 + 97, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT DISTINCT SUM( ALL + col1 ) col2 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3617
SELECT DISTINCT SUM ( ALL + col1 ) col2 FROM tab2
----
195

query II rowsort
SELECT + col1, col1 AS col0 FROM tab2
----
51
51
67
67
77
77

query II rowsort
SELECT + col1, 52 + + 49 FROM tab0
----
1
101
21
101
81
101

query I rowsort
SELECT DISTINCT + ( - + col1 ) FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT ALL + MIN( ALL + 22 ) AS col1 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-3621
SELECT ALL + MIN ( ALL + 22 ) AS col1 FROM tab0
----
22

query I rowsort
SELECT - 31 * - 26 AS col0 FROM tab2
----
806
806
806

query II rowsort
SELECT + col1 AS col0, - col2 FROM tab0
----
1
-99
21
-10
81
-47

query I rowsort
SELECT - + col2 + 79 FROM tab2 AS cor0
----
21
39
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3625
SELECT - 93 + - CAST( NULL AS SIGNED ) * + - ( - col2 ) + - col1 + - 86 - - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3625
SELECT - 93 + - CAST ( NULL AS INTEGER ) * + - ( - col2 ) + - col1 + - 86 - - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 - - + 8 FROM tab0
----
105
23
95

query I rowsort
SELECT DISTINCT - + 50 + - 23 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-73

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT ALL + - 7 FROM tab2 AS cor0 WHERE NOT 70 * + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3630
SELECT - col1 / CAST( NULL AS SIGNED ) * + col1 + - 62 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3630
SELECT - col1 / CAST ( NULL AS INTEGER ) * + col1 + - 62 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3631
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST( col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3631
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST ( col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-3632
SELECT DISTINCT - col1 - - col1 AS col1, + ( - 30 ) DIV - col0 - + col2 * + + col0 AS col2 FROM tab0 AS cor0
----
0
-703
0
-870
0
-9603

skipif mysql # not compatible
query II rowsort label-3632
SELECT DISTINCT - col1 - - col1 AS col1, + ( - 30 ) / - col0 - + col2 * + + col0 AS col2 FROM tab0 AS cor0
----
0
-703
0
-870
0
-9603

query II rowsort
SELECT ALL - 85 + col0 AS col1, - col2 AS col1 FROM tab0 AS cor0
----
-70
-47
12
-99
2
-10

query II rowsort
SELECT + 17 - 3 AS col2, col0 * - - 6 AS col1 FROM tab1 AS cor0
----
14
306
14
510
14
546

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + col1 col2 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT + 38 * + col2 - + ( 29 ) AS col0 FROM tab1
----
2213
2555
3619

query II rowsort
SELECT ALL + col0 * + col2 + + - col1 AS col0, col0 + 60 + + 82 AS col2 FROM tab2
----
1007
188
2483
206
4283
217

query III rowsort
SELECT * FROM tab1 WHERE - - ( 5 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3639
SELECT - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3639
SELECT - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 col2 FROM tab1
----
86
86
86

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( - + 28 ) BETWEEN col1 AND col0 * + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - col2 - - + col2 FROM tab0 cor0 WHERE NOT col1 IS NULL
----
198
20
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3643
SELECT COUNT( * ), CAST( - 92 AS SIGNED ) + - 88 AS col2 FROM tab1 AS cor0
----
3
-180

skipif mysql # not compatible
query II rowsort label-3643
SELECT COUNT ( * ), CAST ( - 92 AS INTEGER ) + - 88 AS col2 FROM tab1 AS cor0
----
3
-180

query I rowsort
SELECT DISTINCT - col1 * + col2 * - - col0 AS col1 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT col1 / + col2 + + + col1 + + - 21 AS col2 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 51 ) * 61 IN ( 11 - col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3647
SELECT - SUM( + col1 ) DIV 15 - COUNT( * ) col2 FROM tab1
----
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3647
SELECT - SUM ( + col1 ) / 15 - COUNT ( * ) col2 FROM tab1
----
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-3648
SELECT + col2 DIV col1 + 64 FROM tab2
----
64
64
64

skipif mysql # not compatible
query I rowsort label-3648
SELECT + col2 / col1 + 64 FROM tab2
----
64
64
64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 93 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 70 + - 61 FROM tab2
----
-131
-131
-131

onlyif mysql # DIV for integer division: 
query I rowsort label-3651
SELECT DISTINCT 14 + col1 DIV 2 FROM tab1
----
16
21
37

skipif mysql # not compatible
query I rowsort label-3651
SELECT DISTINCT 14 + col1 / 2 FROM tab1
----
16
21
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT DISTINCT MAX( + 25 ) AS col2 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT MAX ( + 25 ) AS col2 FROM tab0
----
25

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT COUNT( * ) + + 22 AS col0 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-3654
SELECT COUNT ( * ) + + 22 AS col0 FROM tab2
----
25

query I rowsort
SELECT col2 + col1 * col2 AS col0 FROM tab2 WHERE col0 BETWEEN + col0 AND ( NULL )
----

query I rowsort
SELECT 73 * - 23 + + 90 FROM tab1
----
-1589
-1589
-1589

query III rowsort
SELECT * FROM tab0 WHERE NOT - 20 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT ALL - COUNT( * ) * COUNT( * ) col1 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3658
SELECT ALL - COUNT ( * ) * COUNT ( * ) col1 FROM tab1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3659
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + ( + col0 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT DISTINCT - ( - COUNT( * ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT - ( - COUNT ( * ) ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3662
SELECT - ( - COUNT( * ) ) / - MAX( ALL ( col0 ) * + col1 ) FROM tab2 WHERE col1 + - 55 / + CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3662
SELECT - ( - COUNT ( * ) ) / - MAX ( ALL ( col0 ) * + col1 ) FROM tab2 WHERE col1 + - 55 / + CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT BETWEEN - col2 AND ( col0 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 + + 65 * + col0 NOT BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 23 * - col1 col1 FROM tab2
----
1196
1599
1811

onlyif mysql # DIV for integer division: 
query I rowsort label-3667
SELECT DISTINCT + col1 + + col2 DIV + col2 AS col2 FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT + col1 + + col2 / + col2 AS col2 FROM tab0
----
2
22
82

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * + col1 IS NOT NULL
----

query I rowsort
SELECT - 53 * col0 AS col1 FROM tab0
----
-4611
-5141
-795

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT + COUNT( * ) * + 41 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-3670
SELECT + COUNT ( * ) * + 41 FROM tab2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT DISTINCT 98 + SUM( DISTINCT + col1 ) AS col0 FROM tab1
----
164

skipif mysql # not compatible
query I rowsort label-3671
SELECT DISTINCT 98 + SUM ( DISTINCT + col1 ) AS col0 FROM tab1
----
164

query I rowsort
SELECT - 43 * - col0 FROM tab0
----
3741
4171
645

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) > ( - 14 - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3674
SELECT DISTINCT + COUNT( col0 ) * COUNT( * ) AS col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND ( 41 )
----
0

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT + COUNT ( col0 ) * COUNT ( * ) AS col2 FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND ( 41 )
----
0

query I rowsort
SELECT ALL + col0 * col0 + - col1 * 25 FROM tab1
----
2251
7100
7106

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3676
SELECT * FROM tab1 WHERE + col0 * + CAST( NULL AS DECIMAL ) NOT BETWEEN ( + 59 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-3676
SELECT * FROM tab1 WHERE + col0 * + CAST ( NULL AS REAL ) NOT BETWEEN ( + 59 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT DISTINCT + 59 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT + 59 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT ALL - 26 + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-3678
SELECT ALL - 26 + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
-17

query I rowsort
SELECT DISTINCT col0 * + col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3680
SELECT DISTINCT - col2 * 21 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3680
SELECT DISTINCT - col2 * 21 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 80 - 97 FROM tab0 AS cor0
----
-17

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <> ( - ( + 16 ) + - col2 )
----

query I rowsort
SELECT ( - col0 ) + - col0 AS col0 FROM tab2
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT + MIN( DISTINCT col2 ) + - 58 AS col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3685
SELECT + MIN ( DISTINCT col2 ) + - 58 AS col1 FROM tab1 cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 / - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT ALL - MIN( DISTINCT col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - col1 ) IN ( + 25 )
----
-1

skipif mysql # not compatible
query I rowsort label-3688
SELECT ALL - MIN ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - col1 ) IN ( + 25 )
----
-1

query I rowsort
SELECT - - 72 + + col2 AS col0 FROM tab1 AS cor0
----
131
140
168

query I rowsort
SELECT 1 / 33 FROM tab2 AS cor0 WHERE + col2 * 64 + + 89 * + 9 IN ( ( - 14 ) )
----

query I rowsort
SELECT ALL col0 * col1 + + 2 AS col2 FROM tab2 cor0
----
2348
4930
5027

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 20 NOT BETWEEN 59 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 + 9 AS col2 FROM tab2 AS cor0
----
-37
-55
-66

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 92 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 99 * 53 AS col2 FROM tab2
----
5247
5247
5247

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE - col0 * col0 = ( NULL )
----

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT - 26 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT DISTINCT + COUNT( 92 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3698
SELECT DISTINCT + COUNT ( 92 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT + ( - + 14 ) FROM tab1
----
-14
-14
-14

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT NULL >= ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3701
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3701
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3702
SELECT ALL + COUNT( ALL - col2 ) FROM tab1 WHERE NOT - col1 * - col1 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL + COUNT ( ALL - col2 ) FROM tab1 WHERE NOT - col1 * - col1 <> NULL
----
0

query II rowsort
SELECT - 11 AS col1, col1 * - 35 FROM tab1
----
-11
-1645
-11
-175
-11
-490

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 >= ( NULL )
----

query I rowsort
SELECT - col0 + - + col2 AS col2 FROM tab0
----
-196
-62
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3706
SELECT ALL + CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3706
SELECT ALL + CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT ALL + 10 + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 16 IS NULL
----
10

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL + 10 + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 16 IS NULL
----
10

query I rowsort
SELECT - ( + col1 ) + + + col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3709
SELECT ( - 91 ) * CAST( NULL AS SIGNED ) col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3709
SELECT ( - 91 ) * CAST ( NULL AS INTEGER ) col1 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - 55 * + col0 + + col2 * col2 FROM tab0
----
-4685
1384
4466

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT DISTINCT + COUNT( DISTINCT col1 ) AS col2 FROM tab0 AS cor0 WHERE ( - 58 + + col2 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT + COUNT ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0 WHERE ( - 58 + + col2 ) < NULL
----
0

query I rowsort
SELECT ALL + 83 + col0 FROM tab2 AS cor0
----
129
147
158

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT ALL + + MIN( DISTINCT + + 57 ) AS col0 FROM tab0 cor0
----
57

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL + + MIN ( DISTINCT + + 57 ) AS col0 FROM tab0 cor0
----
57

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 / + - ( col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3715
SELECT ALL - col0 * 41 FROM tab1 AS cor0 WHERE - CAST( - col1 AS DECIMAL ) IS NOT NULL
----
-2091
-3485
-3731

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL - col0 * 41 FROM tab1 AS cor0 WHERE - CAST ( - col1 AS REAL ) IS NOT NULL
----
-2091
-3485
-3731

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 16 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 / 98 col1 FROM tab0 cor0 WHERE - col0 IN ( + col2 )
----

query II rowsort
SELECT ALL + + col2, col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3719
SELECT DISTINCT MAX( DISTINCT + col2 ) AS col0 FROM tab0 WHERE NOT ( + - CAST( NULL AS SIGNED ) ) > ( - col2 * + col1 + + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3719
SELECT DISTINCT MAX ( DISTINCT + col2 ) AS col0 FROM tab0 WHERE NOT ( + - CAST ( NULL AS INTEGER ) ) > ( - col2 * + col1 + + col2 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3720
SELECT - col2 DIV - ( - col1 ) DIV 1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3720
SELECT - col2 / - ( - col1 ) / 1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3721
SELECT - CAST( + col0 AS SIGNED ), col1 * 47 AS col0 FROM tab0
----
-15
3807
-87
987
-97
47

skipif mysql # not compatible
query II rowsort label-3721
SELECT - CAST ( + col0 AS INTEGER ), col1 * 47 AS col0 FROM tab0
----
-15
3807
-87
987
-97
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col1 ) NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT ALL + 26 * + COUNT( * ) * - COUNT( * ) * ( + MIN( - col1 ) ) FROM tab0
----
18954

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL + 26 * + COUNT ( * ) * - COUNT ( * ) * ( + MIN ( - col1 ) ) FROM tab0
----
18954

query I rowsort
SELECT ALL col2 FROM tab2 WHERE 35 NOT BETWEEN NULL AND ( + col0 ) AND NOT ( col1 ) BETWEEN + col1 AND NULL
----

query I rowsort
SELECT ALL 77 * - - col1 AS col0 FROM tab1
----
1078
3619
385

query I rowsort
SELECT - 27 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT - COUNT( * ) + - + 96 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3727
SELECT - COUNT ( * ) + - + 96 FROM tab2 AS cor0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3728
SELECT - 1 DIV + + col1 + - 45 col0 FROM tab2 AS cor0
----
-45
-45
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3728
SELECT - 1 / + + col1 + - 45 col0 FROM tab2 AS cor0
----
-45
-45
-45

query I rowsort
SELECT ALL + 18 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 25 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT - col0 * + ( + col2 ) - - 27 * + col0 FROM tab2 AS cor0
----
-2325
-832
184

query II rowsort
SELECT + 25 + - - 10 AS col0, - 35 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( - col1 )
----

query I rowsort
SELECT - ( - 98 ) AS col0 FROM tab2 AS cor0
----
98
98
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3735
SELECT - col1 AS col2, - 92 DIV - CAST( col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-14
1
-47
1
-5
1

skipif mysql # not compatible
query II rowsort label-3735
SELECT - col1 AS col2, - 92 / - CAST ( col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-14
1
-47
1
-5
1

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col0 + + - ( + 71 ) * - - 58 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 col0 FROM tab1 AS cor0
----
-2
-2
-2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 < ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 - - 25 col2 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + 39 ) col2 FROM tab1
----
39
39
39

onlyif mysql # DIV for integer division: 
query I rowsort label-3741
SELECT 48 DIV - + 84 * - + 63 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3741
SELECT 48 / - + 84 * - + 63 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - 19 * col2 AS col1 FROM tab0
----
-1881
-190
-893

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT ALL 96 * - COUNT( - 19 ) FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-3743
SELECT ALL 96 * - COUNT ( - 19 ) FROM tab0
----
-288

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3744
SELECT DISTINCT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) + + 34 * col2 < + col2
----

skipif mysql # not compatible
query III rowsort label-3744
SELECT DISTINCT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) + + 34 * col2 < + col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3745
SELECT col2, + 70 DIV + - col2 AS col1 FROM tab1
----
59
-1
68
-1
96
0

skipif mysql # not compatible
query II rowsort label-3745
SELECT col2, + 70 / + - col2 AS col1 FROM tab1
----
59
-1
68
-1
96
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3746
SELECT * FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) * - - col1 * + - col0 + col1 + 6 BETWEEN - 21 AND CAST( CAST( NULL AS SIGNED ) AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3746
SELECT * FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) * - - col1 * + - col0 + col1 + 6 BETWEEN - 21 AND CAST ( CAST ( NULL AS INTEGER ) AS REAL )
----

query I rowsort
SELECT - 55 * - 39 * - 1 AS col1 FROM tab1 WHERE NOT NULL IN ( 36 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3748
SELECT DISTINCT + MAX( ALL col1 ) FROM tab1 WHERE - col1 * - col0 - - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3748
SELECT DISTINCT + MAX ( ALL col1 ) FROM tab1 WHERE - col1 * - col0 - - col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT ALL 22 - - COUNT( * ) FROM tab1 AS cor0 WHERE ( col1 + col0 ) IS NOT NULL
----
25

skipif mysql # not compatible
query I rowsort label-3749
SELECT ALL 22 - - COUNT ( * ) FROM tab1 AS cor0 WHERE ( col1 + col0 ) IS NOT NULL
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, + col1 col2 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT - - COUNT( DISTINCT col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3751
SELECT - - COUNT ( DISTINCT col0 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT + - 25 AS col1, + col0 * 19 FROM tab0 AS cor0
----
-25
1653
-25
1843
-25
285

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3754
SELECT - MIN( DISTINCT col2 ) col0, 4 FROM tab0 cor0
----
-10
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3754
SELECT - MIN ( DISTINCT col2 ) col0, 4 FROM tab0 cor0
----
-10
4

query II rowsort
SELECT DISTINCT + + 4 + - col2 AS col2, col1 AS col1 FROM tab0 AS cor0
----
-43
81
-6
21
-95
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3756
SELECT ALL - COUNT( * ) + + - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL - COUNT ( * ) + + - COUNT ( * ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT DISTINCT - - ( + - 98 ) FROM tab2 AS cor0
----
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-3758
SELECT + col0 DIV 69 + + 9 * + col2 FROM tab0 AS cor0
----
423
892
91

skipif mysql # not compatible
query I rowsort label-3758
SELECT + col0 / 69 + + 9 * + col2 FROM tab0 AS cor0
----
423
892
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT + 67 + - COUNT( - col1 ) AS col2 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-3759
SELECT + 67 + - COUNT ( - col1 ) AS col2 FROM tab0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT ALL - 92 + + COUNT( * ) FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-3760
SELECT ALL - 92 + + COUNT ( * ) FROM tab1
----
-89

query I rowsort
SELECT ALL + ( - ( - col1 ) ) + - 54 FROM tab0
----
-33
-53
27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3762
SELECT * FROM tab1 WHERE - + CAST( - - col1 AS SIGNED ) / - col0 * 99 + - - col0 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3762
SELECT * FROM tab1 WHERE - + CAST ( - - col1 AS INTEGER ) / - col0 * 99 + - - col0 BETWEEN NULL AND NULL
----

query II rowsort
SELECT + col0 AS col1, col1 * - col1 FROM tab2 WHERE NULL IS NULL
----
46
-2601
64
-5929
75
-4489

query III rowsort
SELECT * FROM tab1 WHERE + col1 * + 40 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * + col0 + 1 AS col0 FROM tab0 WHERE NOT NULL IN ( 78 )
----

query III rowsort
SELECT * FROM tab1 WHERE 78 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 77 + 48 AS col0 FROM tab2
----
-29
-29
-29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3768
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + ( + 60 ), CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3768
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + ( + 60 ), CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 26 - + + col1 * + col0 AS col1 FROM tab1 AS cor0
----
-399
-4251
-688

query I rowsort
SELECT ALL col0 + - 77 FROM tab0 AS cor0
----
-62
10
20

onlyif mysql # DIV for integer division: 
query I rowsort label-3771
SELECT ALL col0 DIV - - col2 AS col0 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-3771
SELECT ALL col0 / - - col2 AS col0 FROM tab0
----
0
0
8

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3773
SELECT 76 DIV + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
8

skipif mysql # not compatible
query I rowsort label-3773
SELECT 76 / + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3774
SELECT + SUM( - CAST( + 12 AS SIGNED ) ) FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-3774
SELECT + SUM ( - CAST ( + 12 AS INTEGER ) ) FROM tab1 AS cor0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-3775
SELECT - + 3 DIV - + col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3775
SELECT - + 3 / - + col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3776
SELECT + col0 DIV + + 73 - 40 + - + col0 DIV + col2 FROM tab2 AS cor0
----
-40
-41
-42

skipif mysql # not compatible
query I rowsort label-3776
SELECT + col0 / + + 73 - 40 + - + col0 / + col2 FROM tab2 AS cor0
----
-40
-41
-42

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 + - + col0 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3778
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) = + CAST( NULL AS SIGNED ) - + 43 * ( 22 ) + col0
----

skipif mysql # not compatible
query III rowsort label-3778
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) = + CAST ( NULL AS INTEGER ) - + 43 * ( 22 ) + col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 21 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 59 * 40 * + - col1 * col0 * - col1 AS col2 FROM tab0
----
-228920
-232259400
-90546120

query I rowsort
SELECT ALL + 76 * - 44 - 60 + + ( - col2 ) * + + col0 + col2 FROM tab1 WHERE + + col2 + + - col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3782
SELECT + COUNT( * ) DIV 16 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3782
SELECT + COUNT ( * ) / 16 AS col2 FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - 27 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3784
SELECT DISTINCT + 32 DIV col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3784
SELECT DISTINCT + 32 / col2 FROM tab1
----
0

query II rowsort
SELECT col0, - 55 FROM tab2
----
46
-55
64
-55
75
-55

query II rowsort
SELECT + col1 AS col2, col1 FROM tab0
----
1
1
21
21
81
81

query II rowsort
SELECT ALL col0 AS col0, col0 AS col1 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3788
SELECT ALL + - CAST( NULL AS DECIMAL ) + - 27 - - + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL + - CAST ( NULL AS REAL ) + - 27 - - + col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 10 + - + col1 FROM tab2 AS cor0
----
-41
-57
-67

query I rowsort
SELECT - ( - 54 ) + col1 FROM tab1
----
101
59
68

query III rowsort
SELECT * FROM tab0 WHERE col0 + - - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab0 WHERE NOT - col2 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3793
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( + 84 AS SIGNED ) + - 31 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3793
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( + 84 AS INTEGER ) + - 31 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT ALL - MAX( ALL col0 ) + - ( 53 ) AS col1 FROM tab2 AS cor0
----
-128

skipif mysql # not compatible
query I rowsort label-3794
SELECT ALL - MAX ( ALL col0 ) + - ( 53 ) AS col1 FROM tab2 AS cor0
----
-128

query I rowsort
SELECT DISTINCT + 49 * - - col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
2891
3332
4704

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3796
SELECT DISTINCT COUNT( * ) + + 10 DIV 92 AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3796
SELECT DISTINCT COUNT ( * ) + + 10 / 92 AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT DISTINCT + SUM( + 64 ) FROM tab2 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-3797
SELECT DISTINCT + SUM ( + 64 ) FROM tab2 AS cor0
----
192

query II rowsort
SELECT 55, + 32 AS col2 FROM tab2 AS cor0
----
55
32
55
32
55
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3799
SELECT DISTINCT MAX( DISTINCT + + col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3799
SELECT DISTINCT MAX ( DISTINCT + + col2 ) FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3800
SELECT DISTINCT col0 * + ( - col1 ) - - 84 + - CAST( NULL AS SIGNED ) * + 85 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT col0 * + ( - col1 ) - - 84 + - CAST ( NULL AS INTEGER ) * + 85 FROM tab1
----
NULL

query I rowsort
SELECT + col1 - - 18 AS col0 FROM tab2
----
69
85
95

query I rowsort
SELECT + 75 * - - col0 - + + ( col2 ) FROM tab0
----
1078
6515
7176

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT DISTINCT - SUM( + col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3803
SELECT DISTINCT - SUM ( + col1 ) FROM tab2
----
-195

query I rowsort
SELECT 49 + + col0 + + col0 FROM tab1
----
151
219
231

query II rowsort
SELECT DISTINCT ( - 32 ), - 55 AS col0 FROM tab2
----
-32
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-3806
SELECT ALL col2 + col2 + + - 18 DIV 74 col0 FROM tab0 AS cor0
----
198
20
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3806
SELECT ALL col2 + col2 + + - 18 / 74 col0 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # DIV for integer division: 
query I rowsort label-3807
SELECT ALL - - 37 DIV + col1 + + col2 FROM tab1 cor0
----
66
68
98

skipif mysql # not compatible
query I rowsort label-3807
SELECT ALL - - 37 / + col1 + + col2 FROM tab1 cor0
----
66
68
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3808
SELECT + col0 AS col2, - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT 91 IS NULL
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-3808
SELECT + col0 AS col2, - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT 91 IS NULL
----
51
NULL
85
NULL
91
NULL

query II rowsort
SELECT ALL 20 AS col1, + col2 AS col1 FROM tab0
----
20
10
20
47
20
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * col0 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * + col2 FROM tab0 AS cor0 WHERE NOT 27 > col1
----
705

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3812
SELECT + 58 DIV + COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-3812
SELECT + 58 / + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
22

query I rowsort
SELECT ALL - 32 AS col0 FROM tab1 cor0
----
-32
-32
-32

query I rowsort
SELECT DISTINCT - - ( ( 5 ) ) AS col2 FROM tab0 AS cor0
----
5

query I rowsort
SELECT DISTINCT - 91 * col0 AS col1 FROM tab2 AS cor0
----
-4186
-5824
-6825

query I rowsort
SELECT DISTINCT col2 * col1 * + + col2 * + col2 FROM tab2 AS cor0
----
13072504
4928000
620517

query I rowsort
SELECT ( - + col2 ) * - col1 * + 54 FROM tab0 AS cor0
----
11340
205578
5346

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3818
SELECT + + 82, CAST( + col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
82
51
82
85
82
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3818
SELECT + + 82, CAST ( + col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
82
51
82
85
82
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3819
SELECT ALL col0 DIV + + col0 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3819
SELECT ALL col0 / + + col0 AS col0 FROM tab0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 + - col0 > col0
----

query I rowsort
SELECT + col0 + col0 * + - col1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2300
-4864
-4950

query I rowsort
SELECT ( + - 93 ) * col1 * - 12 FROM tab1 AS cor0
----
15624
52452
5580

onlyif mysql # aggregate syntax: 
query I rowsort label-3823
SELECT ALL - - 51 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL - - 51 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * + col1 + + 27 col1 FROM tab0 cor0
----
-1188
-1800
-70

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= 82
----

query I rowsort
SELECT DISTINCT 60 AS col1 FROM tab2, tab1 AS cor0
----
60

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col2 * - col1 * - + col2 AND - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 / col1 <= NULL
----

query I rowsort
SELECT ( + col1 ) + - 96 AS col0 FROM tab2 AS cor0
----
-19
-29
-45

query I rowsort
SELECT - - 68 + - - col0 AS col0 FROM tab1 AS cor0
----
119
153
159

query I rowsort
SELECT ALL + col2 + - - col1 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT ALL + col2 - - 61 AS col0 FROM tab0 AS cor0
----
108
160
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3833
SELECT DISTINCT AVG ( - 81 ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT DISTINCT AVG ( - 81 ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

query II rowsort
SELECT DISTINCT - col2 - - - ( + col1 ) * - col1 AS col0, 79 AS col2 FROM tab2
----
2578
79
4431
79
5889
79

query I rowsort
SELECT ALL - ( 2 ) FROM tab1
----
-2
-2
-2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 20 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT DISTINCT MAX( 83 ) - - SUM( DISTINCT + col2 ) AS col2 FROM tab1
----
306

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT MAX ( 83 ) - - SUM ( DISTINCT + col2 ) AS col2 FROM tab1
----
306

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3838
SELECT ALL - CAST( - col2 AS SIGNED ), + col2 FROM tab0
----
10
10
47
47
99
99

skipif mysql # not compatible
query II rowsort label-3838
SELECT ALL - CAST ( - col2 AS INTEGER ), + col2 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE - 31 = + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <> - - col1 - col1 / - 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT + SUM( - 98 ) * - 97 FROM tab2
----
28518

skipif mysql # not compatible
query I rowsort label-3841
SELECT + SUM ( - 98 ) * - 97 FROM tab2
----
28518

onlyif mysql # aggregate syntax: 
query II rowsort label-3842
SELECT + 67 AS col0, 34 + + COUNT( * ) FROM tab1
----
67
37

skipif mysql # not compatible
query II rowsort label-3842
SELECT + 67 AS col0, 34 + + COUNT ( * ) FROM tab1
----
67
37

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT 12 - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3843
SELECT 12 - COUNT ( * ) FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3844
SELECT - COUNT( * ) - 98 AS col2 FROM tab0 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-3844
SELECT - COUNT ( * ) - 98 AS col2 FROM tab0 AS cor0
----
-101

query I rowsort
SELECT ALL - 55 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT DISTINCT - MAX( DISTINCT col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT - MAX ( DISTINCT col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT ALL + SUM( DISTINCT + - ( - 13 ) ) AS col1 FROM tab1 cor0
----
13

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL + SUM ( DISTINCT + - ( - 13 ) ) AS col1 FROM tab1 cor0
----
13

query II rowsort
SELECT + col0 * - 2 AS col2, col0 - - 67 AS col1 FROM tab0
----
-174
154
-194
164
-30
82

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 47 AND + col0 * + + 20
----

query I rowsort
SELECT DISTINCT + col1 * + + 45 AS col2 FROM tab0 AS cor0
----
3645
45
945

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 71 * - col1 IS NOT NULL
----

query I rowsort
SELECT + 84 * col2 + - col1 FROM tab2 AS cor0
----
1881
3283
4805

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3853
SELECT * FROM tab1 AS cor0 WHERE NOT - 8 / CAST( - 7 AS SIGNED ) IS NULL AND col1 <> + col1
----

skipif mysql # not compatible
query III rowsort label-3853
SELECT * FROM tab1 AS cor0 WHERE NOT - 8 / CAST ( - 7 AS INTEGER ) IS NULL AND col1 <> + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col1, - col2 col2 FROM tab1
----
59
-59
68
-68
96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, + col0 * 81 FROM tab1
----
14
4131
47
7371
5
6885

query II rowsort
SELECT - 6 AS col0, + ( ( - col0 ) ) FROM tab0
----
-6
-15
-6
-87
-6
-97

query II rowsort
SELECT + 79, - 79 AS col0 FROM tab0
----
79
-79
79
-79
79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT + MAX( - col1 ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3858
SELECT + MAX ( - col1 ) AS col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT - 88 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 )
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE + 85 IS NOT NULL
----
10
47
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < 35 * - + ( 7 ) * + + col2 + + - 72 + ( + - col2 ) * 42 * col0 + + col2 - col2 * - col2 * - col0 * col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3862
SELECT - - COUNT( * ) + COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3862
SELECT - - COUNT ( * ) + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 30 + + ( + col2 ) FROM tab1 AS cor0
----
29
38
66

query I rowsort
SELECT - 71 + - + col1 AS col1 FROM tab1
----
-118
-76
-85

query I rowsort
SELECT 26 * + 7 AS col0 FROM tab2
----
182
182
182

query I rowsort
SELECT ALL col1 + 30 FROM tab2 AS cor0
----
107
81
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT + + 11 = - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 40 + + - col1 - col1 FROM tab1 AS cor0
----
-134
-50
-68

query I rowsort
SELECT ALL 89 * 49 AS col2 FROM tab1 AS cor0
----
4361
4361
4361

query I rowsort
SELECT ALL col1 + - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3871
SELECT DISTINCT + col0 - + col1, - CAST( + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
37
-14
44
-47
80
-5

skipif mysql # not compatible
query II rowsort label-3871
SELECT DISTINCT + col0 - + col1, - CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
37
-14
44
-47
80
-5

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - ( + 33 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-33

query III rowsort
SELECT * FROM tab0 WHERE - + col0 + - ( + col0 ) = - + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + ( - col0 ) ) NOT IN ( 94, col0 )
----

query I rowsort
SELECT + - 5 * + + 34 FROM tab0 AS cor0
----
-170
-170
-170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3877
SELECT DISTINCT + - CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3877
SELECT DISTINCT + - CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-3878
SELECT DISTINCT + ( + - col0 ) DIV - col1 AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3878
SELECT DISTINCT + ( + - col0 ) / - col1 AS col2 FROM tab2 AS cor0
----
0
1

query II rowsort
SELECT ALL col2 AS col2, - 38 FROM tab0
----
10
-38
47
-38
99
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT DISTINCT + COUNT( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT + COUNT ( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9

query I rowsort
SELECT + + 70 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT DISTINCT 67 FROM tab2 WHERE col2 < 33
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT ALL - ( + - MIN( + 99 ) ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL - ( + - MIN ( + 99 ) ) AS col1 FROM tab0 AS cor0
----
99

query II rowsort
SELECT DISTINCT 47 AS col2, col2 FROM tab2 AS cor0
----
47
23
47
40
47
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT + - MAX( - ( + - col0 ) ) col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3885
SELECT + - MAX ( - ( + - col0 ) ) col1 FROM tab2 AS cor0
----
-75

query II rowsort
SELECT DISTINCT col1, ( + ( 43 ) ) * 47 * col1 + - - 47 AS col0 FROM tab1 AS cor0
----
14
28341
47
95034
5
10152

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 44 + - - col1 + 27 IS NOT NULL
----

query I rowsort
SELECT ALL - 88 * + col2 AS col1 FROM tab0
----
-4136
-8712
-880

query I rowsort
SELECT 78 + - 19 FROM tab2
----
59
59
59

query I rowsort
SELECT ALL + col0 * + col2 * + col2 FROM tab0
----
33135
8700
950697

query I rowsort
SELECT DISTINCT - + 87 * col0 FROM tab2 AS cor0
----
-4002
-5568
-6525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - ( + + col2 ) AS col2, - ( + col1 ) col2 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT DISTINCT + COUNT( * ) * - 89 AS col0 FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-3893
SELECT DISTINCT + COUNT ( * ) * - 89 AS col0 FROM tab2
----
-267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3894
SELECT MIN( DISTINCT 66 ) - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3894
SELECT MIN ( DISTINCT 66 ) - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 * - 80 AS col2 FROM tab1
----
-1120
-3760
-400

query I rowsort
SELECT - + 82 + - col2 - + + col0 * + 63 AS col2 FROM tab1 AS cor0
----
-3391
-5496
-5883

query I rowsort
SELECT 3 + col1 FROM tab2 AS cor0
----
54
70
80

query I rowsort
SELECT + col2 + + - col0 AS col1 FROM tab1 AS cor0
----
-23
-26
45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( col2 + - col1 ) AND col1 * + - 59
----

query I rowsort
SELECT - ( - 24 ) FROM tab1 AS cor0
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT + - MIN( DISTINCT + - col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3901
SELECT + - MIN ( DISTINCT + - col0 ) AS col0 FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL col2 - 32 AS col2 FROM tab2 AS cor0
----
-9
26
8

query I rowsort
SELECT ALL col2 * + col2 * 92 FROM tab0
----
203228
901692
9200

onlyif mysql # aggregate syntax: 
query I rowsort label-3904
SELECT ALL MAX( - 63 ) FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL MAX ( - 63 ) FROM tab2
----
-63

query I rowsort
SELECT - col1 / - col2 AS col1 FROM tab1 WHERE NOT + - col2 * - + 96 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3906
SELECT + - CAST( + - 74 AS SIGNED ) * + 42 + 19 col1 FROM tab2 AS cor0
----
3127
3127
3127

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3906
SELECT + - CAST ( + - 74 AS INTEGER ) * + 42 + 19 col1 FROM tab2 AS cor0
----
3127
3127
3127

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3907
SELECT ALL CAST( - col0 AS SIGNED ) col2, col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3907
SELECT ALL CAST ( - col0 AS INTEGER ) col2, col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3908
SELECT - col2 DIV - - col2 AS col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3908
SELECT - col2 / - - col2 AS col1 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-3909
SELECT - COUNT( * ) AS col1, + 95 col0 FROM tab0 AS cor0
----
-3
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3909
SELECT - COUNT ( * ) AS col1, + 95 col0 FROM tab0 AS cor0
----
-3
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3910
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) / - col1 * 92 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3910
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) / - col1 * 92 IS NULL
----

query I rowsort
SELECT - + col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - ( - - col2 ) FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT - COUNT( * ) * - 90 AS col2 FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-3913
SELECT - COUNT ( * ) * - 90 AS col2 FROM tab2
----
270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 22 AS col0, col1 * - + col0 + col0 - - col2 + + - 32 col2 FROM tab0
----
22
-1185
22
-1762
22
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT SUM( ALL + - 74 ) FROM tab1
----
-222

skipif mysql # not compatible
query I rowsort label-3915
SELECT SUM ( ALL + - 74 ) FROM tab1
----
-222

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 >= NULL OR NOT col2 * + 7 + + col2 < + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT DISTINCT + COUNT( * ) + + 16 AS col1 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT + COUNT ( * ) + + 16 AS col1 FROM tab1
----
19

query I rowsort
SELECT DISTINCT ( col0 ) * - + col2 * col2 FROM tab2
----
-102400
-24334
-252300

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT - 91 * - ( COUNT( * ) ) AS col2 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-3919
SELECT - 91 * - ( COUNT ( * ) ) AS col2 FROM tab1
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT 63 + + COUNT( * ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-3920
SELECT 63 + + COUNT ( * ) FROM tab0
----
66

query I rowsort
SELECT DISTINCT + 53 + + col0 AS col0 FROM tab0
----
140
150
68

query I rowsort
SELECT + 67 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + ( + col2 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3924
SELECT + CAST( NULL AS SIGNED ) + + col0 * - + CAST( - col1 AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT + CAST ( NULL AS INTEGER ) + + col0 * - + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3925
SELECT DISTINCT CAST( + ( + + 49 ) AS SIGNED ) * - col2 AS col0 FROM tab0
----
-2303
-4851
-490

skipif mysql # not compatible
query I rowsort label-3925
SELECT DISTINCT CAST ( + ( + + 49 ) AS INTEGER ) * - col2 AS col0 FROM tab0
----
-2303
-4851
-490

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 * - col1 * col2 col1 FROM tab2
----
-169400
-213730
-64515

query II rowsort
SELECT + 18 + + - 18 - + - 96 + + 33 * - 95 * + col1, + col2 FROM tab2 cor0 WHERE 65 * + col1 + + 10 IS NOT NULL
----
-159789
23
-209949
58
-241299
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT + 63 - + + MIN( ALL + + col1 ) col2 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3928
SELECT + 63 - + + MIN ( ALL + + col1 ) col2 FROM tab2 AS cor0
----
12

query I rowsort
SELECT + 32 * - col2 - + - col1 FROM tab1 AS cor0
----
-1883
-2129
-3058

query I rowsort
SELECT ALL 38 + - col0 AS col2 FROM tab2 AS cor0
----
-26
-37
-8

query I rowsort
SELECT ALL + 41 * + col2 - - col2 FROM tab1 AS cor0
----
2478
2856
4032

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - 58
----

query I rowsort
SELECT DISTINCT ( ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= - col1 + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 83 * - 56 * - col1 col2, - 75 * - col1 FROM tab2
----
237048
3825
311416
5025
357896
5775

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT SUM( DISTINCT + + ( - + col1 ) ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3936
SELECT SUM ( DISTINCT + + ( - + col1 ) ) AS col2 FROM tab1
----
-66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3937
SELECT ALL - COUNT( * ) * - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL - COUNT ( * ) * - CAST ( NULL AS REAL ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 > - col1 + + + 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3939
SELECT DISTINCT col2 DIV + + col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-3939
SELECT DISTINCT col2 / + + col0 FROM tab1
----
0
1

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * 13 + ( - col1 ) * col1 BETWEEN - col2 AND NULL
----
15
81
47

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 59 * + col2 * + col0 FROM tab1
----
288864
295885
365092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3943
SELECT ALL - col0 * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3943
SELECT ALL - col0 * - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 19 * 71 / + col2 + 21 * - + 26 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3945
SELECT + + 92 DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-3945
SELECT + + 92 / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3946
SELECT DISTINCT ( + col0 ) * col1 * - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT ( + col0 ) * col1 * - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT COUNT( * ) * - - COUNT( * ) col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3947
SELECT COUNT ( * ) * - - COUNT ( * ) col1 FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT + + 0 * - 39 - - ( - col1 ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - + 70 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 2 + - 48 + col2 AS col2 FROM tab2 AS cor0
----
-23
-6
12

query I rowsort
SELECT + + ( + - col1 ) FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 cor0 WHERE 43 = + 58
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3953
SELECT - 95 DIV col1 + - + ( - col0 ) + + 49 FROM tab1 AS cor0
----
115
138
94

skipif mysql # not compatible
query I rowsort label-3953
SELECT - 95 / col1 + - + ( - col0 ) + + 49 FROM tab1 AS cor0
----
115
138
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT + 44 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-3954
SELECT + 44 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3955
SELECT DISTINCT CAST( NULL AS SIGNED ) col2, COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3955
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
3

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN - col0 AND ( + col0 )
----
15
81
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 46 * col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3958
SELECT ALL - col1 / - + col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL - col1 / - + col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT DISTINCT - MAX( - 50 ) FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT - MAX ( - 50 ) FROM tab0
----
50

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 90 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3961
SELECT 92 AS col1 FROM tab1 WHERE - - col1 * + col1 * - 56 * + col2 * - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3961
SELECT 92 AS col1 FROM tab1 WHERE - - col1 * + col1 * - 56 * + col2 * - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - 64 + col1 AS col0 FROM tab0 cor0 WHERE ( NULL IS NULL ) OR NOT NULL IS NOT NULL
----
-43
-63
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3963
SELECT DISTINCT - col1 + - ( - + CAST( + col0 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-3963
SELECT DISTINCT - col1 + - ( - + CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT - 12 * - col1 FROM tab2 AS cor0 WHERE 18 < - - ( - - col0 ) OR - col2 IS NULL
----
612
804
924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3965
SELECT 40 AS col2 FROM tab2 AS cor0 WHERE ( - col0 + - CAST( - 72 AS SIGNED ) ) <> 71 * - - 60
----
40
40
40

skipif mysql # not compatible
query I rowsort label-3965
SELECT 40 AS col2 FROM tab2 AS cor0 WHERE ( - col0 + - CAST ( - 72 AS INTEGER ) ) <> 71 * - - 60
----
40
40
40

query I rowsort
SELECT DISTINCT + 21 + 55 + - col1 FROM tab0
----
-5
55
75

query III rowsort
SELECT * FROM tab0 WHERE - - 83 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT - CAST( NULL AS SIGNED ) * - 14 + + + col2 - - + col2 + col2 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3968
SELECT - CAST ( NULL AS INTEGER ) * - 14 + + + col2 - - + col2 + col2 + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3969
SELECT + MIN( ALL col0 ) * + ( + + ( + 45 ) ) * 56 + COUNT( * ) FROM tab2 cor0
----
115923

skipif mysql # not compatible
query I rowsort label-3969
SELECT + MIN ( ALL col0 ) * + ( + + ( + 45 ) ) * 56 + COUNT ( * ) FROM tab2 cor0
----
115923

query I rowsort
SELECT + - col0 AS col1 FROM tab2 cor0 WHERE NOT + 40 >= + + 46 * + 50
----
-46
-64
-75

query II rowsort
SELECT 46, 46 AS col2 FROM tab0 AS cor0
----
46
46
46
46
46
46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + ( + + ( 38 ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3973
SELECT 5 AS col2, SUM( + - col0 ) FROM tab1 AS cor0
----
5
-227

skipif mysql # not compatible
query II rowsort label-3973
SELECT 5 AS col2, SUM ( + - col0 ) FROM tab1 AS cor0
----
5
-227

query II rowsort
SELECT DISTINCT + 47, - 48 AS col1 FROM tab0 cor0
----
47
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 12 col1 FROM tab2 AS cor0
----
-12
-12
-12

query I rowsort
SELECT + 2 + - 80 + - 63 * - 97 FROM tab2 WHERE NOT NULL IS NOT NULL
----
6033
6033
6033

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT ALL MAX( ALL - col0 ) AS col2 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL MAX ( ALL - col0 ) AS col2 FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT ALL + MAX( ALL + + col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3978
SELECT ALL + MAX ( ALL + + col0 ) AS col0 FROM tab2
----
75

onlyif mysql # DIV for integer division: 
query II rowsort label-3979
SELECT + col2 * + col1 AS col2, + col2 DIV 3 DIV 88 * - + 89 * 17 FROM tab2
----
1173
0
3080
0
3886
0

skipif mysql # not compatible
query II rowsort label-3979
SELECT + col2 * + col1 AS col2, + col2 / 3 / 88 * - + 89 * 17 FROM tab2
----
1173
0
3080
0
3886
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT + COUNT( * ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3980
SELECT + COUNT ( * ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - ( + col1 ) col0 FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3982
SELECT ALL 48 * 49 DIV - + 59 + 81 AS col0 FROM tab1 AS cor0
----
42
42
42

skipif mysql # not compatible
query I rowsort label-3982
SELECT ALL 48 * 49 / - + 59 + 81 AS col0 FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT col2 * - 86 AS col1 FROM tab0 AS cor0
----
-4042
-8514
-860

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab0 cor0 WHERE 94 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL + 60 + - 72 FROM tab0 cor0
----
-12
-12
-12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3986
SELECT + 58 AS col0, CAST( - col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
58
-51
58
-67
58
-77

skipif mysql # not compatible
query II rowsort label-3986
SELECT + 58 AS col0, CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
58
-51
58
-67
58
-77

query I rowsort
SELECT ALL - 52 + + 14 FROM tab1 AS cor0
----
-38
-38
-38

query I rowsort
SELECT DISTINCT - ( - + col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT 73 * + + col1 FROM tab0
----
1533
5913
73

onlyif mysql # DIV for integer division: 
query I rowsort label-3990
SELECT 23 DIV - col1 - - + col1 AS col1 FROM tab1
----
1
13
47

skipif mysql # not compatible
query I rowsort label-3990
SELECT 23 / - col1 - - + col1 AS col1 FROM tab1
----
1
13
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3991
SELECT 29 DIV - - 76 + + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3991
SELECT 29 / - - 76 + + col2 FROM tab1
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL < ( NULL ) )
----

query I rowsort
SELECT DISTINCT - col2 - - 70 FROM tab0
----
-29
23
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT + MAX( DISTINCT 81 ) AS col1 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-3994
SELECT + MAX ( DISTINCT 81 ) AS col1 FROM tab1
----
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 54 - 44 * 88 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN - ( 68 ) + - col2 * - col0 + + 8 AND 40
----

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT col1 / - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT - - SUM( DISTINCT + col1 ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-3998
SELECT - - SUM ( DISTINCT + col1 ) FROM tab1 cor0
----
66

query II rowsort
SELECT ALL - col1, col0 FROM tab1 cor0
----
-14
51
-47
91
-5
85

query I rowsort
SELECT - 40 FROM tab0 cor0 WHERE NOT - col0 NOT IN ( + col2, col1 )
----

query I rowsort
SELECT + - col2 * - + col0 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT ALL 79 * + col2 * 90 + + + col2 - - - col1 * - col0 FROM tab1 AS cor0
----
419974
487825
683370

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + - - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4004
SELECT DISTINCT - COUNT( * ) AS col1, - COUNT( * ) FROM tab1
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4004
SELECT DISTINCT - COUNT ( * ) AS col1, - COUNT ( * ) FROM tab1
----
-3
-3

query I rowsort
SELECT - ( - - ( + 80 ) ) AS col2 FROM tab0
----
-80
-80
-80

query I rowsort
SELECT DISTINCT + - 65 * col2 - - - col1 AS col0 FROM tab1 WHERE NULL IS NULL
----
-3840
-4467
-6254

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT ALL + COUNT( - - col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4007
SELECT ALL + COUNT ( - - col0 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT col0 + - - col2 FROM tab1 cor0 WHERE NOT ( NULL ) < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT ALL 65 + + + COUNT( ALL + col2 ) * - AVG ( col1 ) FROM tab2 AS cor0 WHERE NULL = col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4009
SELECT ALL 65 + + + COUNT ( ALL + col2 ) * - AVG ( col1 ) FROM tab2 AS cor0 WHERE NULL = col1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 64 = - col0 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 + + - col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4012
SELECT - CAST( NULL AS SIGNED ) + - + col1 + 80 - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT - CAST ( NULL AS INTEGER ) + - + col1 + 80 - + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 82 * + col0 FROM tab2 AS cor0
----
3772
5248
6150

query I rowsort
SELECT DISTINCT - 52 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 94 + + ( - col0 ) / + col2 * - 49
----

query I rowsort
SELECT ALL + 93 + - + ( - col2 ) FROM tab2 AS cor0
----
116
133
151

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT 11 * + col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4017
SELECT ALL + + col1 + + + 27 + - col1 * col0 DIV - + ( - 31 ) AS col1 FROM tab1 AS cor0
----
-63
18
19

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL + + col1 + + + 27 + - col1 * col0 / - + ( - 31 ) AS col1 FROM tab1 AS cor0
----
-63
18
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 7 col1 FROM tab0 AS cor0
----
28
8
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4019
SELECT - CAST( NULL AS SIGNED ) * - 22 + col1 * + col1 FROM tab1 cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4019
SELECT - CAST ( NULL AS INTEGER ) * - 22 + col1 * + col1 FROM tab1 cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col1 + - col0, + 55 + + col0 AS col0 FROM tab2 AS cor0
----
-8
130
13
119
5
101

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab2 AS cor0 WHERE + col1 + + - 42 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4022
SELECT DISTINCT - CAST( - + 85 AS SIGNED ) * + 95 - col2 + + col1 FROM tab2
----
8084
8103
8112

skipif mysql # not compatible
query I rowsort label-4022
SELECT DISTINCT - CAST ( - + 85 AS INTEGER ) * + 95 - col2 + + col1 FROM tab2
----
8084
8103
8112

query I rowsort
SELECT ALL - col1 * 39 AS col2 FROM tab1
----
-1833
-195
-546

query I rowsort
SELECT col0 - - col1 + - col1 AS col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4025
SELECT - - CAST( + - MAX( ALL - col0 ) AS SIGNED ) - COUNT( * ) FROM tab2 cor0
----
43

skipif mysql # not compatible
query I rowsort label-4025
SELECT - - CAST ( + - MAX ( ALL - col0 ) AS INTEGER ) - COUNT ( * ) FROM tab2 cor0
----
43

query I rowsort
SELECT DISTINCT - + col0 FROM tab2 WHERE + - 9 * - - 91 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + 92 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT - - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4028
SELECT - - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query II rowsort
SELECT DISTINCT + ( 53 ) AS col1, 86 * 23 FROM tab0 AS cor0
----
53
1978

query I rowsort
SELECT ALL - - col1 * col2 * col0 - - + col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT + 67 * + COUNT( * ) FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-4031
SELECT + 67 * + COUNT ( * ) FROM tab0 AS cor0
----
201

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1 AS col2, - col0 * + - 51 AS col1 FROM tab1
----
14
2601
47
4641
5
4335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4034
SELECT - col0 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4034
SELECT - col0 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 52 AS col2 FROM tab2 WHERE NOT 89 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 8 NOT BETWEEN - col2 - - - col2 AND + 62
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + + + col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 + - col1, - ( - col1 ) * - col0 - + col2 )
----

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE NOT - - col2 + - col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 94 AS col0, 87 * + col1 FROM tab0
----
94
1827
94
7047
94
87

query I rowsort
SELECT ALL + + 58 * col2 + + col2 FROM tab0 AS cor0
----
2773
5841
590

query I rowsort
SELECT + + col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * + - 77 IS NULL
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE + ( col1 ) > - + col0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT + + MIN( - + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4044
SELECT + + MIN ( - + col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT + - col0 + + 9 AS col0 FROM tab0 AS cor0
----
-6
-78
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT COUNT( * ) - + 87 + COUNT( * ) AS col2 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4046
SELECT COUNT ( * ) - + 87 + COUNT ( * ) AS col2 FROM tab0 cor0
----
-81

query I rowsort
SELECT + + col2 * - col0 - col0 AS col2 FROM tab1 AS cor0
----
-4947
-5100
-6279

query I rowsort
SELECT DISTINCT + col0 * 16 FROM tab1
----
1360
1456
816

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4049
SELECT DISTINCT + + AVG ( 50 ) / - - CAST( NULL AS DECIMAL ) FROM tab2 WHERE - - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT DISTINCT + + AVG ( 50 ) / - - CAST ( NULL AS REAL ) FROM tab2 WHERE - - col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 91 - col1 AS col1 FROM tab1
----
44
77
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4051
SELECT + MAX( - - col1 ) + - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4051
SELECT + MAX ( - - col1 ) + - CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT + col1 + - ( - 70 ) FROM tab1
----
117
75
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4053
SELECT - - col0 FROM tab0 WHERE - ( - col1 ) * - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4053
SELECT - - col0 FROM tab0 WHERE - ( - col1 ) * - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT + MAX( DISTINCT - col2 ) + + SUM( - col0 ) AS col0 FROM tab1
----
-286

skipif mysql # not compatible
query I rowsort label-4054
SELECT + MAX ( DISTINCT - col2 ) + + SUM ( - col0 ) AS col0 FROM tab1
----
-286

query I rowsort
SELECT + + col2 - + 15 AS col2 FROM tab1 WHERE ( 60 IS NOT NULL )
----
44
53
81

query I rowsort
SELECT 47 * + - 8 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c0eb1b09850230aa311d8ca42d5df14d

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4057
SELECT col1, - CAST( + + col1 AS SIGNED ) + col0 FROM tab2
----
51
-5
67
8
77
-13

skipif mysql # not compatible
query II rowsort label-4057
SELECT col1, - CAST ( + + col1 AS INTEGER ) + col0 FROM tab2
----
51
-5
67
8
77
-13

query I rowsort
SELECT + col1 / col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 5 + + - col2, - col0 )
----

query I rowsort
SELECT DISTINCT + 74 FROM tab2 cor0
----
74

query II rowsort
SELECT col0, col1 * - col0 * + + 99 FROM tab2 AS cor0
----
46
-232254
64
-487872
75
-497475

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT ALL ( - - MAX( col0 ) ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-4061
SELECT ALL ( - - MAX ( col0 ) ) AS col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT - + 58 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-58
-58
-58

query I rowsort
SELECT - col2 * + col0 + col2 * col0 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4064
SELECT ALL + CAST( - + ( + - col0 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4064
SELECT ALL + CAST ( - + ( + - col0 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ( + 43 ) * - 67 FROM tab0 AS cor0
----
-2881
-2881
-2881

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT ALL COUNT( * ) FROM tab2 cor0 WHERE NOT ( NOT + col2 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL COUNT ( * ) FROM tab2 cor0 WHERE NOT ( NOT + col2 IS NOT NULL )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 25 col1 FROM tab0 AS cor0
----
25

query I rowsort
SELECT 33 / + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT - col1 - + 94 > + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4069
SELECT - COUNT( * ) DIV - CAST( + - COUNT( * ) AS SIGNED ) + 65 * 3 col0 FROM tab0 AS cor0
----
194

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4069
SELECT - COUNT ( * ) / - CAST ( + - COUNT ( * ) AS INTEGER ) + 65 * 3 col0 FROM tab0 AS cor0
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT DISTINCT MAX( DISTINCT - col2 ) * - + COUNT( * ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4070
SELECT DISTINCT MAX ( DISTINCT - col2 ) * - + COUNT ( * ) FROM tab2 AS cor0
----
69

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT + 12 NOT BETWEEN - + col1 AND col2
----
15
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT + COUNT( * ) + + 19 AS col1 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-4072
SELECT + COUNT ( * ) + + 19 AS col1 FROM tab1
----
22

query I rowsort
SELECT + 0 + - col2 + + 0 FROM tab0 WHERE NOT + col0 <> - 16
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4074
SELECT ALL * FROM tab1 WHERE + CAST( NULL AS SIGNED ) * - 49 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4074
SELECT ALL * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) * - 49 IS NOT NULL
----

query I rowsort
SELECT ALL 25 * - col1 + + + col1 + + col0 - col0 + - - col1 * - col2 FROM tab0
----
-123
-5751
-714

query I rowsort
SELECT DISTINCT - 98 + col0 * - col1 FROM tab0 AS cor0
----
-1313
-1925
-195

onlyif mysql # aggregate syntax: 
query II rowsort label-4077
SELECT ALL + + AVG ( ALL + col0 ), - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4077
SELECT ALL + + AVG ( ALL + col0 ), - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) > NULL
----
NULL
0

query I rowsort
SELECT - - ( - col1 ) * - 68 AS col0 FROM tab0 AS cor0
----
1428
5508
68

query I rowsort
SELECT DISTINCT 32 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
32

query I rowsort
SELECT ALL + 38 + + - col2 + - col2 FROM tab1 AS cor0
----
-154
-80
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4081
SELECT DISTINCT - 74 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-4081
SELECT DISTINCT - 74 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-71

query I rowsort
SELECT DISTINCT + - col1 + - + 7 FROM tab2 AS cor0
----
-58
-74
-84

query II rowsort
SELECT - ( + + col2 ) + + col1, - col1 + + + col2 AS col0 FROM tab2 AS cor0
----
28
-28
37
-37
9
-9

query I rowsort
SELECT - + col1 + 9 FROM tab0 AS cor0
----
-12
-72
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT DISTINCT - 65 + COUNT( * ) + + COUNT( - col1 ) FROM tab2 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4085
SELECT DISTINCT - 65 + COUNT ( * ) + + COUNT ( - col1 ) FROM tab2 cor0
----
-59

query III rowsort
SELECT * FROM tab0 WHERE col0 > - - col2
----
87
21
10

query I rowsort
SELECT DISTINCT + col2 * - ( - col0 ) - col2 FROM tab0
----
658
860
9504

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * - - col1 BETWEEN NULL AND + + col0
----

query I rowsort
SELECT DISTINCT - 62 - col0 FROM tab0
----
-149
-159
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 ) + - ( + col0 ) / - col2 <> NULL
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT col1 * - col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4092
SELECT CAST( + - col1 AS SIGNED ) DIV - col2 + - col1 FROM tab2 AS cor0
----
-49
-66
-76

skipif mysql # not compatible
query I rowsort label-4092
SELECT CAST ( + - col1 AS INTEGER ) / - col2 + - col1 FROM tab2 AS cor0
----
-49
-66
-76

query I rowsort
SELECT 30 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT ALL 49 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # aggregate syntax: 
query I rowsort label-4095
SELECT SUM( + 87 ) - + - 27 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 90 IS NOT NULL
----
810

skipif mysql # not compatible
query I rowsort label-4095
SELECT SUM ( + 87 ) - + - 27 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 90 IS NOT NULL
----
810

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 * col0 IS NULL
----

query II rowsort
SELECT DISTINCT col2 * col2 * + - col1, col2 FROM tab2 cor0
----
-123200
40
-225388
58
-26979
23

query I rowsort
SELECT ALL - + 32 AS col2 FROM tab2 AS cor0
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 >= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4100
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col1 AS col0, - ( - 38 ) AS col1 FROM tab2 AS cor0
----
NULL
38

skipif mysql # not compatible
query II rowsort label-4100
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col1 AS col0, - ( - 38 ) AS col1 FROM tab2 AS cor0
----
NULL
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4101
SELECT ALL - 21 * col0 DIV + col0 AS col1 FROM tab1 cor0
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-4101
SELECT ALL - 21 * col0 / + col0 AS col1 FROM tab1 cor0
----
-21
-21
-21

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4103
SELECT - 4 col0, + col0 DIV - col2 AS col2 FROM tab0
----
-4
-8
-4
0
-4
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4103
SELECT - 4 col0, + col0 / - col2 AS col2 FROM tab0
----
-4
-8
-4
0
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT + 64 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4104
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT + 64 IS NULL
----
3

query II rowsort
SELECT ALL + col0 AS col0, ( - - col2 ) * - col2 * - col1 * - col1 AS col0 FROM tab0
----
15
-14493249
87
-44100
97
-9801

query II rowsort
SELECT DISTINCT col0 AS col1, + 44 FROM tab1
----
51
44
85
44
91
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT ALL COUNT( + col1 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4107
SELECT ALL COUNT ( + col1 ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT ALL - SUM( ALL - + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-4108
SELECT ALL - SUM ( ALL - + col0 ) FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4109
SELECT ALL + col1 / - col0 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4109
SELECT ALL + col1 / - col0 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col0 <= + + 25
----

query I rowsort
SELECT DISTINCT col2 + + + 55 FROM tab2
----
113
78
95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 <> col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT ALL + - ( - COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL + - ( - COUNT ( * ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 65 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4115
SELECT 36 + - 69 * - CAST( NULL AS SIGNED ) * + col0 + + - 72 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4115
SELECT 36 + - 69 * - CAST ( NULL AS INTEGER ) * + col0 + + - 72 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4116
SELECT ALL 34 DIV + ( + 71 ) - + MAX( ALL 84 ) FROM tab1 cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL 34 / + ( + 71 ) - + MAX ( ALL 84 ) FROM tab1 cor0
----
-84

query I rowsort
SELECT ALL 79 * - col2 + - 55 FROM tab1
----
-4716
-5427
-7639

query I rowsort
SELECT + col1 + - col0 * col1 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-2295
-4851
-4958

query I rowsort
SELECT DISTINCT - 27 AS col0 FROM tab1 WHERE + ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT ALL + COUNT( * ) * - COUNT( * ) col1 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4120
SELECT ALL + COUNT ( * ) * - COUNT ( * ) col1 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT ALL - SUM( - 62 ) + COUNT( + col1 + - 53 ) FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL - SUM ( - 62 ) + COUNT ( + col1 + - 53 ) FROM tab2
----
189

query I rowsort
SELECT - 60 * + col0 + col2 * col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 * - 54 + col2 AS col1 FROM tab1
----
-2658
-4531
-4846

query I rowsort
SELECT ALL - 98 * - col2 AS col2 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND ( - col1 )
----

query I rowsort
SELECT - 57 + - col1 FROM tab0
----
-138
-58
-78

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col1 AND ( NULL )
----

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4128
SELECT + CAST( 22 AS SIGNED ) FROM tab2
----
22
22
22

skipif mysql # not compatible
query I rowsort label-4128
SELECT + CAST ( 22 AS INTEGER ) FROM tab2
----
22
22
22

onlyif mysql # DIV for integer division: 
query I rowsort label-4129
SELECT 19 DIV 44 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4129
SELECT 19 / 44 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE 65 / + 77 < + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 ) + + 39 NOT BETWEEN - col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4132
SELECT ALL COUNT( ALL + col1 ) DIV - 64 + 87 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-4132
SELECT ALL COUNT ( ALL + col1 ) / - 64 + 87 FROM tab0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4133
SELECT 80 DIV - CAST( 87 * + COUNT( * ) AS SIGNED ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4133
SELECT 80 / - CAST ( 87 * + COUNT ( * ) AS INTEGER ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT + COUNT( 70 ) * + COUNT( + col0 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4134
SELECT + COUNT ( 70 ) * + COUNT ( + col0 ) FROM tab0
----
9

query I rowsort
SELECT DISTINCT + 48 * 95 AS col2 FROM tab1 WHERE + col1 / col2 + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + 14 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4137
SELECT DISTINCT - 14 + + COUNT( * ) FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-4137
SELECT DISTINCT - 14 + + COUNT ( * ) FROM tab1
----
-11

query I rowsort
SELECT 47 AS col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 < + col1
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT DISTINCT COUNT( DISTINCT 34 ) + + COUNT( DISTINCT - 78 ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT COUNT ( DISTINCT 34 ) + + COUNT ( DISTINCT - 78 ) FROM tab1
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4141
SELECT ALL + CAST( + col2 AS SIGNED ) AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4141
SELECT ALL + CAST ( + col2 AS INTEGER ) AS col2 FROM tab0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN ( col2 * col0 ) AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT + COUNT( + col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4143
SELECT + COUNT ( + col2 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT MAX( DISTINCT + 45 ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-4144
SELECT MAX ( DISTINCT + 45 ) FROM tab1
----
45

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 29 + - 88 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4146
SELECT ALL + MAX( ALL CAST( - 88 AS SIGNED ) ) AS col2 FROM tab0 cor0
----
-88

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL + MAX ( ALL CAST ( - 88 AS INTEGER ) ) AS col2 FROM tab0 cor0
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 91 + + col0 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
142
176
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4148
SELECT 17 DIV COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
1

skipif mysql # not compatible
query I rowsort label-4148
SELECT 17 / COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4149
SELECT - 70 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT - 70 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4150
SELECT ALL - COUNT( * ) * - 77 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col0 + 80 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4150
SELECT ALL - COUNT ( * ) * - 77 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - col0 + 80 AND NULL
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL >= + col1 / 94
----

query I rowsort
SELECT ALL col1 + 20 AS col1 FROM tab0 AS cor0
----
101
21
41

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 )
----

query I rowsort
SELECT ALL + ( col0 ) * ( + col1 + - col0 ) FROM tab0 AS cor0
----
-5742
-9312
990

onlyif mysql # DIV for integer division: 
query I rowsort label-4155
SELECT DISTINCT - - 31 DIV + 36 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4155
SELECT DISTINCT - - 31 / + 36 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - col1 * 47 FROM tab0 AS cor0
----
-3807
-47
-987

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4157
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab0 cor0 WHERE ( NULL ) BETWEEN col1 + 42 AND col0 + col0 * + col2
----

skipif mysql # not compatible
query I rowsort label-4157
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab0 cor0 WHERE ( NULL ) BETWEEN col1 + 42 AND col0 + col0 * + col2
----

query I rowsort
SELECT 19 + + col2 FROM tab2 AS cor0
----
42
59
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT + 35 * - COUNT( * ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-4159
SELECT + 35 * - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-102

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4160
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 / CAST( NULL AS DECIMAL ) + 4 ) > ( - 30 )
----

skipif mysql # not compatible
query III rowsort label-4160
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 / CAST ( NULL AS REAL ) + 4 ) > ( - 30 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4161
SELECT DISTINCT + - col1 DIV col0 col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4161
SELECT DISTINCT + - col1 / col0 col2 FROM tab2 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT - - COUNT( * ) + 24 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-4162
SELECT - - COUNT ( * ) + 24 FROM tab1 AS cor0
----
27

query I rowsort
SELECT + col1 + - - col2 + col0 AS col2 FROM tab2
----
120
181
200

query I rowsort
SELECT - col1 + - - col1 + - col1 AS col2 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT 17 + - + COUNT( * ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-4165
SELECT 17 + - + COUNT ( * ) FROM tab2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT ALL + SUM( + 76 ) AS col1 FROM tab1 WHERE NOT ( col2 / + col1 + - col2 ) NOT BETWEEN NULL AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL + SUM ( + 76 ) AS col1 FROM tab1 WHERE NOT ( col2 / + col1 + - col2 ) NOT BETWEEN NULL AND + col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4167
SELECT AVG ( col1 ) / + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4167
SELECT AVG ( col1 ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 57 ) BETWEEN col1 * - ( col1 ) + + 57 * col0 AND col2 * col0
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > ( - 99 * col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( 81 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4171
SELECT - - COUNT( * ) - + 60 DIV - COUNT( * ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4171
SELECT - - COUNT ( * ) - + 60 / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
23

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col0 + 14 ) BETWEEN ( col0 ) AND ( 42 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 + - col2 AS col1 FROM tab1 WHERE 87 + col0 NOT BETWEEN NULL AND + col0
----
-118
-136
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT + COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IN ( - 68 )
----
0

skipif mysql # not compatible
query I rowsort label-4174
SELECT + COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) IN ( - 68 )
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 97 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * col1 - - col1 >= + col0
----
15
81
47
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 96 + 91 * 24 IS NOT NULL
----

query I rowsort
SELECT ALL + 19 + ( col1 ) FROM tab2 AS cor0
----
70
86
96

query I rowsort
SELECT - - ( + col0 ) + 17 AS col0 FROM tab0 AS cor0
----
104
114
32

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col1 ) + + col2 IS NULL
----

query I rowsort
SELECT + 96 * + 26 AS col1 FROM tab2 AS cor0
----
2496
2496
2496

query I rowsort
SELECT DISTINCT col2 + 55 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4183
SELECT DISTINCT + col1 DIV + + 39 AS col0 FROM tab0 cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-4183
SELECT DISTINCT + col1 / + + 39 AS col0 FROM tab0 cor0
----
0
2

query I rowsort
SELECT ALL ( + - 52 ) FROM tab2
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT - COUNT( * ) * + AVG ( DISTINCT + col2 ) AS col0 FROM tab1 WHERE NOT ( 41 * ( col0 ) ) > - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4185
SELECT - COUNT ( * ) * + AVG ( DISTINCT + col2 ) AS col0 FROM tab1 WHERE NOT ( 41 * ( col0 ) ) > - col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4186
SELECT col0 * 62 DIV - col2 AS col2 FROM tab1
----
-32
-82
-89

skipif mysql # not compatible
query I rowsort label-4186
SELECT col0 * 62 / - col2 AS col2 FROM tab1
----
-32
-82
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT DISTINCT - SUM( DISTINCT - 13 ) AS col1 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT - SUM ( DISTINCT - 13 ) AS col1 FROM tab0
----
13

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 * ( col2 ) ) NOT BETWEEN + 38 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col0 + - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT ALL - + ( - - COUNT( * ) ) col2 FROM tab1 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-4191
SELECT ALL - + ( - - COUNT ( * ) ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 35 IS NOT NULL
----

query I rowsort
SELECT ALL 87 + 7 AS col2 FROM tab0 WHERE NOT col1 NOT IN ( ( - - col0 ) )
----

query I rowsort
SELECT col2 + + ( col0 ) AS col2 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT DISTINCT 8 * + 25 + MIN( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE 68 NOT IN ( + 38, + col1 )
----
103

skipif mysql # not compatible
query I rowsort label-4195
SELECT DISTINCT 8 * + 25 + MIN ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE 68 NOT IN ( + 38, + col1 )
----
103

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN col2 * + + ( - col0 ) + - col0 AND col2
----
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> col2 - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4198
SELECT ALL col0 DIV - - col2 + col1 AS col2 FROM tab0 AS cor0
----
1
29
81

skipif mysql # not compatible
query I rowsort label-4198
SELECT ALL col0 / - - col2 + col1 AS col2 FROM tab0 AS cor0
----
1
29
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT + - MAX( - - col0 ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4199
SELECT + - MAX ( - - col0 ) AS col0 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - col1 / + 56 + + 72 * 72 AND - 42 * + ( col1 / - col0 ) - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4201
SELECT ( - 35 ) DIV - - col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4201
SELECT ( - 35 ) / - - col0 AS col2 FROM tab1
----
0
0
0

query II rowsort
SELECT - col2 * - col1, + col2 FROM tab2
----
1173
23
3080
40
3886
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4203
SELECT ALL MAX( 65 ) AS col2 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-4203
SELECT ALL MAX ( 65 ) AS col2 FROM tab1
----
65

query III rowsort
SELECT * FROM tab2 WHERE ( NOT NULL < NULL )
----

query I rowsort
SELECT DISTINCT 74 FROM tab0 WHERE NOT + 80 > ( ( col1 ) * + 4 * col2 + + 82 * col1 )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4206
SELECT col2 + - CAST( + col1 AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4206
SELECT col2 + - CAST ( + col1 AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 51 * col1 FROM tab2
----
-2601
-3417
-3927

onlyif mysql # DIV for integer division: 
query I rowsort label-4208
SELECT - col2 DIV col0 + + col2 AS col2 FROM tab0
----
10
44
98

skipif mysql # not compatible
query I rowsort label-4208
SELECT - col2 / col0 + + col2 AS col2 FROM tab0
----
10
44
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4209
SELECT ALL CAST( + col1 AS SIGNED ) * + - 30 FROM tab2
----
-1530
-2010
-2310

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL CAST ( + col1 AS INTEGER ) * + - 30 FROM tab2
----
-1530
-2010
-2310

query I rowsort
SELECT 74 + col0 * - - 44 * - - ( + - col0 ) AS col2 FROM tab0
----
-332962
-413922
-9826

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4211
SELECT DISTINCT 82 AS col0 FROM tab0 AS cor0 WHERE ( + col0 / ( - 14 ) ) <> - col1 + - CAST( col2 AS SIGNED ) - 22 * - col0
----
82

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT 82 AS col0 FROM tab0 AS cor0 WHERE ( + col0 / ( - 14 ) ) <> - col1 + - CAST ( col2 AS INTEGER ) - 22 * - col0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4212
SELECT DISTINCT + col0 * col2 - - - 91 + - CAST( NULL AS SIGNED ) / - - col0 + 22 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4212
SELECT DISTINCT + col0 * col2 - - - 91 + - CAST ( NULL AS INTEGER ) / - - col0 + 22 AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT 13 + - col2 - col1 FROM tab0 AS cor0
----
-115
-18
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4214
SELECT DISTINCT 15 + - COUNT( * ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT 15 + - COUNT ( * ) FROM tab2 AS cor0
----
12

query I rowsort
SELECT - + 17 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT DISTINCT 77 FROM tab0 WHERE - - col1 * + + col0 - - col1 * - + ( - 93 ) IS NOT NULL
----
77

query I rowsort
SELECT + 98 + - - col1 FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( + + col2 + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 * - + col0 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN 71 AND + col1 + - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4219
SELECT ALL 37 DIV + col0 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL 37 / + col0 FROM tab0 AS cor0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT ALL + - COUNT( * ) col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4220
SELECT ALL + - COUNT ( * ) col0 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT + SUM( ALL - 95 ) FROM tab0 cor0
----
-285

skipif mysql # not compatible
query I rowsort label-4221
SELECT + SUM ( ALL - 95 ) FROM tab0 cor0
----
-285

query I rowsort
SELECT 77 FROM tab1 AS cor0 WHERE NOT ( + 48 + - col0 ) <> ( + col2 + + 91 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT COUNT( DISTINCT - ( - col0 ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4223
SELECT COUNT ( DISTINCT - ( - col0 ) ) FROM tab2 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4224
SELECT - + col1 DIV + + 91 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4224
SELECT - + col1 / + + 91 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 + - col1 * + col1 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 70 col2, + col1 + - - col0 + + col0 col0 FROM tab2
----
70
143
70
205
70
217

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 * - 19 - - - 55 NOT BETWEEN NULL AND col0 * - 52
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4228
SELECT DISTINCT ( - - CAST( - - col1 AS SIGNED ) ) * col1 AS col2, col1 + 98 col0 FROM tab1
----
196
112
2209
145
25
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4228
SELECT DISTINCT ( - - CAST ( - - col1 AS INTEGER ) ) * col1 AS col2, col1 + 98 col0 FROM tab1
----
196
112
2209
145
25
103

query I rowsort
SELECT ALL 97 * + + col1 AS col2 FROM tab2 WHERE NOT + 66 IS NOT NULL
----

query I rowsort
SELECT - + ( ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4231
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN + CAST( NULL AS SIGNED ) AND - CAST( + 83 AS SIGNED )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-4231
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN + CAST ( NULL AS INTEGER ) AND - CAST ( + 83 AS INTEGER )
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT DISTINCT - COUNT( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4232
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT - col0, col0 AS col2 FROM tab0 cor0
----
-15
15
-87
87
-97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4234
SELECT - col1 DIV - + col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4234
SELECT - col1 / - + col2 FROM tab0 AS cor0
----
0
1
2

query III rowsort
SELECT ALL * FROM tab1 WHERE 91 IS NULL
----

query I rowsort
SELECT col1 * + ( + + ( - 54 ) ) AS col0 FROM tab2
----
-2754
-3618
-4158

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT ALL MAX( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-4237
SELECT ALL MAX ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4238
SELECT ALL COUNT( * ) DIV + 87 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL COUNT ( * ) / + 87 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
0

query I rowsort
SELECT - - 69 + + + col1 * - + col0 FROM tab2 AS cor0
----
-2277
-4859
-4956

query I rowsort
SELECT ALL + + 38 + - 24 FROM tab1 AS cor0
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 42 + col0 col0 FROM tab0 AS cor0
----
129
139
57

query I rowsort
SELECT DISTINCT + 90 - - col1 AS col1 FROM tab2
----
141
157
167

onlyif mysql # DIV for integer division: 
query I rowsort label-4243
SELECT ALL 64 + - + col0 DIV + col0 FROM tab2
----
63
63
63

skipif mysql # not compatible
query I rowsort label-4243
SELECT ALL 64 + - + col0 / + col0 FROM tab2
----
63
63
63

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 - - + col0 IN ( + 20, col0 / + col1 * + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + - 19 ) FROM tab2
----
19
19
19

query I rowsort
SELECT DISTINCT + + col1 + + + col0 * - 9 FROM tab2 AS cor0
----
-363
-499
-608

query I rowsort
SELECT + ( 98 ) FROM tab0 AS cor0 WHERE - 79 * + - ( 70 ) > - col2
----
98
98
98

query I rowsort
SELECT ALL col1 * + + col0 - - col2 FROM tab2
----
2369
4968
5083

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4249
SELECT DISTINCT COUNT( * ) DIV 72 - - + 44 - - 91 col1 FROM tab0
----
135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4249
SELECT DISTINCT COUNT ( * ) / 72 - - + 44 - - 91 col1 FROM tab0
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4250
SELECT ALL + CAST( NULL AS SIGNED ) * 40 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4250
SELECT ALL + CAST ( NULL AS INTEGER ) * 40 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 2 * col0 FROM tab0
----
174
194
30

onlyif mysql # aggregate syntax: 
query II rowsort label-4252
SELECT DISTINCT + + COUNT( * ) AS col0, - 92 AS col1 FROM tab2 AS cor0
----
3
-92

skipif mysql # not compatible
query II rowsort label-4252
SELECT DISTINCT + + COUNT ( * ) AS col0, - 92 AS col1 FROM tab2 AS cor0
----
3
-92

query II rowsort
SELECT DISTINCT + col0 AS col1, col2 + - ( - col2 ) * + - col2 AS col2 FROM tab0 AS cor0
----
15
-2162
87
-90
97
-9702

query I rowsort
SELECT ALL col0 * - - 86 FROM tab2 AS cor0
----
3956
5504
6450

onlyif mysql # aggregate syntax: 
query II rowsort label-4255
SELECT - 87 col0, SUM( col1 ) FROM tab0 AS cor0
----
-87
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4255
SELECT - 87 col0, SUM ( col1 ) FROM tab0 AS cor0
----
-87
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4256
SELECT - + CAST( + + ( + col1 ) AS SIGNED ) * col1 - col2 FROM tab2 cor0 WHERE NOT - ( + - col1 ) + - col1 + + + 86 + + col1 * col1 * - 36 * - col1 <> NULL
----

skipif mysql # not compatible
query I rowsort label-4256
SELECT - + CAST ( + + ( + col1 ) AS INTEGER ) * col1 - col2 FROM tab2 cor0 WHERE NOT - ( + - col1 ) + - col1 + + + 86 + + col1 * col1 * - 36 * - col1 <> NULL
----

query I rowsort
SELECT DISTINCT - 71 * - col1 FROM tab0 AS cor0
----
1491
5751
71

query II rowsort
SELECT DISTINCT 51 AS col2, - 7 + + col1 FROM tab1 AS cor0
----
51
-2
51
40
51
7

query I rowsort
SELECT ALL ( col0 ) * - 43 AS col0 FROM tab0 cor0
----
-3741
-4171
-645

query I rowsort
SELECT ALL - - 2 * + - 89 * - - col1 AS col2 FROM tab2 AS cor0
----
-11926
-13706
-9078

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) > + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4262
SELECT CAST( col2 AS SIGNED ) AS col2, 92 AS col2 FROM tab2
----
23
92
40
92
58
92

skipif mysql # not compatible
query II rowsort label-4262
SELECT CAST ( col2 AS INTEGER ) AS col2, 92 AS col2 FROM tab2
----
23
92
40
92
58
92

onlyif mysql # DIV for integer division: 
query I rowsort label-4263
SELECT ALL col2 DIV + - 85 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL col2 / + - 85 AS col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 20 col2 FROM tab0 WHERE NOT + col0 IS NULL
----
20
20
20

query II rowsort
SELECT ALL + + ( - + col1 ) AS col0, 57 FROM tab1 WHERE + col1 IS NOT NULL
----
-14
57
-47
57
-5
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4266
SELECT ALL COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4266
SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4267
SELECT ALL + CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL + CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 * - col2 * col1 FROM tab0 AS cor0
----
308367
4410
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4269
SELECT - + 18 + - 43, - MIN( col2 ) AS col2 FROM tab0 AS cor0
----
-61
-10

skipif mysql # not compatible
query II rowsort label-4269
SELECT - + 18 + - 43, - MIN ( col2 ) AS col2 FROM tab0 AS cor0
----
-61
-10

query I rowsort
SELECT - col2 + + + col1 AS col2 FROM tab0
----
-98
11
34

onlyif mysql # DIV for integer division: 
query I rowsort label-4271
SELECT col1 * col2 DIV - col1 + - col2 AS col1 FROM tab0
----
-198
-20
-94

skipif mysql # not compatible
query I rowsort label-4271
SELECT col1 * col2 / - col1 + - col2 AS col1 FROM tab0
----
-198
-20
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 46 ) + - 34 + + + 80 col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4273
SELECT ALL COUNT( ALL - 22 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4273
SELECT ALL COUNT ( ALL - 22 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT + MAX( DISTINCT - - ( - - ( + 16 ) ) ) * + MAX( + col0 ) AS col0 FROM tab1 AS cor0
----
1456

skipif mysql # not compatible
query I rowsort label-4274
SELECT + MAX ( DISTINCT - - ( - - ( + 16 ) ) ) * + MAX ( + col0 ) AS col0 FROM tab1 AS cor0
----
1456

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 - + col0 + col0 * + + col2 BETWEEN NULL AND ( col2 / + - ( - - col0 ) + - - col0 )
----
3

skipif mysql # not compatible
query I rowsort label-4275
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 - + col0 + col0 * + + col2 BETWEEN NULL AND ( col2 / + - ( - - col0 ) + - - col0 )
----
3

query I rowsort
SELECT ALL + - col1 + - 85 FROM tab1 AS cor0
----
-132
-90
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < 50
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT MAX( ALL + + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4279
SELECT MAX ( ALL + + col0 ) FROM tab0 AS cor0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - col2 col2 FROM tab0
----
100
128
31

query I rowsort
SELECT 7 - - - col1 AS col0 FROM tab2
----
-44
-60
-70

query I rowsort
SELECT 15 + - col0 + + 15 FROM tab0
----
-57
-67
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT ALL + 88 - + COUNT( + ( col0 ) ) FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL + 88 - + COUNT ( + ( col0 ) ) FROM tab2
----
85

query I rowsort
SELECT ( - + 80 ) * - - col0 + + col2 + - - col0 + + col0 AS col1 FROM tab1
----
-3882
-6571
-7030

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ALL COUNT( ALL + 68 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4285
SELECT ALL COUNT ( ALL + 68 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + + col1 + + + col0 * - col2 AS col0 FROM tab1 AS cor0
----
-4882
-5010
-6141

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4287
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-4287
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * - CAST ( NULL AS INTEGER ) <= NULL
----

query I rowsort
SELECT DISTINCT + 34 + - - col0 FROM tab0 cor0
----
121
131
49

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col0 * - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 84, 30 AS col1 FROM tab0
----
84
30
84
30
84
30

query I rowsort
SELECT ALL + 3 * - col1 + col2 AS col1 FROM tab2 AS cor0
----
-130
-143
-191

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4293
SELECT DISTINCT + 85 DIV col0 * + + col0 AS col1 FROM tab0 AS cor0
----
0
75

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT + 85 / col0 * + + col0 AS col1 FROM tab0 AS cor0
----
0
75

query I rowsort
SELECT - 19 * ( - col0 ) + + 11 AS col2 FROM tab1 AS cor0
----
1626
1740
980

onlyif mysql # DIV for integer division: 
query I rowsort label-4295
SELECT DISTINCT ( - + ( col2 ) ) DIV - + col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT ( - + ( col2 ) ) / - + col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4296
SELECT COUNT( * ) DIV - 27 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4296
SELECT COUNT ( * ) / - 27 AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4297
SELECT + 48 + + - 4 AS col0 FROM tab2 WHERE NOT + - CAST( NULL AS SIGNED ) + + 3 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4297
SELECT + 48 + + - 4 AS col0 FROM tab2 WHERE NOT + - CAST ( NULL AS INTEGER ) + + 3 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4298
SELECT ALL 80 * COUNT( ALL col0 ) col2 FROM tab0
----
240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4298
SELECT ALL 80 * COUNT ( ALL col0 ) col2 FROM tab0
----
240

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4299
SELECT DISTINCT CAST( - - COUNT( ALL - col2 ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4299
SELECT DISTINCT CAST ( - - COUNT ( ALL - col2 ) AS INTEGER ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4300
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 WHERE - + 57 + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 WHERE - + 57 + col0 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT ALL ( MAX( + - col2 ) ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL ( MAX ( + - col2 ) ) AS col1 FROM tab0
----
-10

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 * - ( - 11 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 0 * - 26 FROM tab1
----
0
0
0

query I rowsort
SELECT + ( + - 68 ) FROM tab2
----
-68
-68
-68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4305
SELECT DISTINCT - - ( + 2 ) DIV COUNT( * ) col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4305
SELECT DISTINCT - - ( + 2 ) / COUNT ( * ) col2 FROM tab1 AS cor0
----
0

query II rowsort
SELECT - col2, + 64 AS col1 FROM tab2 AS cor0
----
-23
64
-40
64
-58
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + - 47, - col1 col0 FROM tab0 AS cor0
----
-32
-81
40
-21
50
-1

query I rowsort
SELECT ALL - - 76 + col1 FROM tab0 AS cor0
----
157
77
97

query II rowsort
SELECT DISTINCT + ( col1 ), + 38 FROM tab0
----
1
38
21
38
81
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE NOT + col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT + col2 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT + - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - col0 <> col2
----
-3

skipif mysql # not compatible
query I rowsort label-4311
SELECT + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - col0 <> col2
----
-3

query I rowsort
SELECT DISTINCT + - 68 + - + col0 FROM tab2 AS cor0
----
-114
-132
-143

query I rowsort
SELECT col1 * - 37 * - col2 + 24 - - col0 * + 98 * - 66 * col2 AS col2 FROM tab1 AS cor0
----
-31617576
-32426081
-39905708

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4314
SELECT - CAST( NULL AS DECIMAL ) + + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4314
SELECT - CAST ( NULL AS REAL ) + + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 93 + - ( - 40 ) + - - col0 AS col1 FROM tab2 AS cor0
----
179
197
208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4316
SELECT - + 5 / - col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL <= + col1
----

skipif mysql # not compatible
query I rowsort label-4316
SELECT - + 5 / - col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL <= + col1
----

query I rowsort
SELECT 70 + - + col2 AS col2 FROM tab2 AS cor0
----
12
30
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4318
SELECT ALL - 40 + + col1 DIV + - col2 AS col2 FROM tab2 cor0
----
-41
-41
-42

skipif mysql # not compatible
query I rowsort label-4318
SELECT ALL - 40 + + col1 / + - col2 AS col2 FROM tab2 cor0
----
-41
-41
-42

query I rowsort
SELECT ALL + ( + - AVG ( ALL + ( + + col0 ) ) ) FROM tab1 AS cor0 WHERE 80 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 * col0 - - - col2 AS col0 FROM tab0 AS cor0
----
658
860
9504

onlyif mysql # DIV for integer division: 
query I rowsort label-4321
SELECT DISTINCT - 63 DIV + + ( + col1 ) + + col2 FROM tab1 AS cor0
----
47
67
92

skipif mysql # not compatible
query I rowsort label-4321
SELECT DISTINCT - 63 / + + ( + col1 ) + + col2 FROM tab1 AS cor0
----
47
67
92

query I rowsort
SELECT ALL col1 * 46 * + + col2 * + col2 / + col1 AS col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT - col2 FROM tab1 WHERE 47 NOT IN ( - col2 )
----
-59
-68
-96

query I rowsort
SELECT ALL + col0 + + 35 AS col2 FROM tab2
----
110
81
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4325
SELECT - ( CAST( - - 34 AS SIGNED ) ) AS col1 FROM tab2
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-4325
SELECT - ( CAST ( - - 34 AS INTEGER ) ) AS col1 FROM tab2
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4326
SELECT DISTINCT COUNT( 83 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4326
SELECT DISTINCT COUNT ( 83 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT ALL col0 AS col1, col1 + + col2 AS col2 FROM tab2
----
46
74
64
117
75
125

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + - 3 ) IS NULL
----

query I rowsort
SELECT + col1 - + + col0 AS col2 FROM tab0
----
-66
-96
66

query I rowsort
SELECT ALL + - ( - col1 ) * + col0 * + + col2 + + + col1 FROM tab0 AS cor0
----
18291
57186
9604

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4331
SELECT SUM( DISTINCT + col1 ) * + COUNT( * ) / 1 * - + COUNT( * ) FROM tab0 AS cor0 WHERE + col1 * - CAST( NULL AS SIGNED ) NOT IN ( - col2 * - ( + 36 ) + + 97 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4331
SELECT SUM ( DISTINCT + col1 ) * + COUNT ( * ) / 1 * - + COUNT ( * ) FROM tab0 AS cor0 WHERE + col1 * - CAST ( NULL AS INTEGER ) NOT IN ( - col2 * - ( + 36 ) + + 97 )
----
NULL

query I rowsort
SELECT + ( + - col0 ) * - - 73 AS col1 FROM tab2 AS cor0
----
-3358
-4672
-5475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4333
SELECT ALL + MAX( ALL CAST( + col2 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL + MAX ( ALL CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
96

query I rowsort
SELECT + 29 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 22 + + ( 11 ) / + + 58 IS NOT NULL
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT + COUNT( + ( - 17 ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4335
SELECT + COUNT ( + ( - 17 ) ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT ( - 71 ) FROM tab2 cor0
----
-71

query I rowsort
SELECT + col1 * 98 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= + col1
----

query II rowsort
SELECT DISTINCT + col1 AS col2, + col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
14
47
47
5
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * 6 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 49 FROM tab2 AS cor0 WHERE NOT col2 / + col0 / - 42 = + + 28
----
49
49
49

query I rowsort
SELECT - 84 * + - col0 FROM tab1 AS cor0
----
4284
7140
7644

query I rowsort
SELECT - col2 * - 75 AS col2 FROM tab2
----
1725
3000
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4343
SELECT - CAST( + 8 AS SIGNED ) FROM tab1
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-4343
SELECT - CAST ( + 8 AS INTEGER ) FROM tab1
----
-8
-8
-8

query II rowsort
SELECT ALL - 49, 26 AS col1 FROM tab2
----
-49
26
-49
26
-49
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT ALL - COUNT( * ) + + + MAX( + col1 ) FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-4345
SELECT ALL - COUNT ( * ) + + + MAX ( + col1 ) FROM tab1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT ALL 10 * - COUNT( DISTINCT - col1 ) AS col0 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-4346
SELECT ALL 10 * - COUNT ( DISTINCT - col1 ) AS col0 FROM tab1
----
-30

query II rowsort
SELECT DISTINCT + - 18 / col2 * + col2, + 22 AS col2 FROM tab0 WHERE NULL <> col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 26 * col1 col1 FROM tab0 AS cor0
----
-2106
-26
-546

onlyif mysql # DIV for integer division: 
query I rowsort label-4349
SELECT DISTINCT - 52 + + 15 DIV + ( - 85 ) FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT - 52 + + 15 / + ( - 85 ) FROM tab1 AS cor0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT ALL - 63 + - ( + MIN( ALL + - col1 ) ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL - 63 + - ( + MIN ( ALL + - col1 ) ) FROM tab0 AS cor0
----
18

query I rowsort
SELECT DISTINCT + col2 - + 26 FROM tab2
----
-3
14
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 41 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT ALL col2 * + 47 AS col2 FROM tab2
----
1081
1880
2726

query I rowsort
SELECT - col2 * - - 27 AS col0 FROM tab1 cor0
----
-1593
-1836
-2592

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 5 NOT IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 23 * col1 / + 55 - + + col2 > + 23
----

query I rowsort
SELECT + col2 - col2 * col2 * - 76 AS col2 FROM tab0 AS cor0
----
167931
744975
7610

query I rowsort
SELECT DISTINCT col0 + 25 + col0 FROM tab0
----
199
219
55

query I rowsort
SELECT + col1 + + 8 FROM tab1
----
13
22
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4360
SELECT COUNT( * ) DIV + 91 + + - COUNT( * ) * + - 67 FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-4360
SELECT COUNT ( * ) / + 91 + + - COUNT ( * ) * + - 67 FROM tab2
----
201

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4361
SELECT * FROM tab0 WHERE CAST( NULL AS SIGNED ) <= + + col0
----

skipif mysql # not compatible
query III rowsort label-4361
SELECT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) <= + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4362
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE + col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4363
SELECT - COUNT( * ) + - + COUNT( * ) AS col2, MIN( DISTINCT + ( 93 ) ) AS col2 FROM tab1
----
-6
93

skipif mysql # not compatible
query II rowsort label-4363
SELECT - COUNT ( * ) + - + COUNT ( * ) AS col2, MIN ( DISTINCT + ( 93 ) ) AS col2 FROM tab1
----
-6
93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT ALL COUNT( - 13 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL COUNT ( - 13 ) AS col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4366
SELECT ALL + 5 DIV - - CAST( - - 73 AS SIGNED ) AS col0, ( - col0 ) AS col1 FROM tab2
----
0
-46
0
-64
0
-75

skipif mysql # not compatible
query II rowsort label-4366
SELECT ALL + 5 / - - CAST ( - - 73 AS INTEGER ) AS col0, ( - col0 ) AS col1 FROM tab2
----
0
-46
0
-64
0
-75

query I rowsort
SELECT DISTINCT 34 * - col1 + col0 AS col2 FROM tab2 cor0
----
-1688
-2203
-2554

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4368
SELECT ALL - COUNT( * ) DIV - ( SUM( ALL - col0 ) ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL - COUNT ( * ) / - ( SUM ( ALL - col0 ) ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT DISTINCT - - MIN( DISTINCT + ( col1 ) ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT - - MIN ( DISTINCT + ( col1 ) ) AS col1 FROM tab1 AS cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( - - col0 ) + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 5 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT DISTINCT + MAX( ALL + - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4372
SELECT DISTINCT + MAX ( ALL + - col0 ) FROM tab2
----
-46

query I rowsort
SELECT - col1 * + - col1 * + - col1 - col2 + - col0 / + 60 FROM tab1 WHERE NOT col0 NOT BETWEEN col2 AND 54
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT DISTINCT SUM( ALL col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT SUM ( ALL col1 ) AS col0 FROM tab1
----
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 13 IN ( + 88 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT ALL + MIN( ALL col0 ) * + 35 FROM tab0 cor0
----
525

skipif mysql # not compatible
query I rowsort label-4376
SELECT ALL + MIN ( ALL col0 ) * + 35 FROM tab0 cor0
----
525

onlyif mysql # DIV for integer division: 
query II rowsort label-4377
SELECT + col0 AS col1, + col2 + ( + col1 ) DIV col0 AS col1 FROM tab0 AS cor0
----
15
52
87
10
97
99

skipif mysql # not compatible
query II rowsort label-4377
SELECT + col0 AS col1, + col2 + ( + col1 ) / col0 AS col1 FROM tab0 AS cor0
----
15
52
87
10
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT DISTINCT - - MIN( ALL + + col0 ) + + SUM( DISTINCT + col1 ) FROM tab2 AS cor0
----
241

skipif mysql # not compatible
query I rowsort label-4378
SELECT DISTINCT - - MIN ( ALL + + col0 ) + + SUM ( DISTINCT + col1 ) FROM tab2 AS cor0
----
241

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + + 1 IS NOT NULL
----

query I rowsort
SELECT - 45 * + 48 AS col2 FROM tab1 cor0
----
-2160
-2160
-2160

query I rowsort
SELECT + col0 * + + 30 * 94 - col2 FROM tab2 AS cor0
----
129697
180440
211442

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col0 NOT BETWEEN NULL AND - + col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( + - 58 ) NOT BETWEEN - col2 + - 68 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4384
SELECT - col1 + - col1 / - - 86 * CAST( NULL AS SIGNED ) * - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4384
SELECT - col1 + - col1 / - - 86 * CAST ( NULL AS INTEGER ) * - + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT DISTINCT + COUNT( * ) * + + COUNT( + + col2 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4385
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( + + col2 ) FROM tab0
----
9

query I rowsort
SELECT DISTINCT - col2 * + col0 * col1 * - ( col1 ) AS col1 FROM tab0
----
383670
4625505
9603

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT col2 + + ( - - col2 ) FROM tab1
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT DISTINCT - 54 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-4389
SELECT DISTINCT - 54 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
162

query I rowsort
SELECT DISTINCT col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 49 * 71 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT + 52 - COUNT( * ) FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-4392
SELECT + 52 - COUNT ( * ) FROM tab0
----
49

query I rowsort
SELECT DISTINCT col0 * - ( - col0 ) FROM tab1
----
2601
7225
8281

query I rowsort
SELECT + col1 + 39 FROM tab0 AS cor0
----
120
40
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT COUNT( * ) + + 15 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4395
SELECT COUNT ( * ) + + 15 FROM tab2 AS cor0
----
18

query I rowsort
SELECT - col1 + - col1 * + 90 FROM tab1 AS cor0
----
-1274
-4277
-455

query I rowsort
SELECT + - col0 * + col1 * + col0 AS col1 FROM tab2 AS cor0
----
-107916
-315392
-376875

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 + - col0 IS NULL
----

query I rowsort
SELECT ALL + - 85 - 20 AS col0 FROM tab2 AS cor0
----
-105
-105
-105

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 > ( col1 + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2 AS col1, - 28 AS col0 FROM tab1
----
59
-28
68
-28
96
-28

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 98 IS NULL
----

query I rowsort
SELECT DISTINCT + ( - 55 ) AS col1 FROM tab1
----
-55

query II rowsort
SELECT - col0 AS col2, ( + 50 ) AS col1 FROM tab1
----
-51
50
-85
50
-91
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT DISTINCT - 44 * - - COUNT( * ) FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-4405
SELECT DISTINCT - 44 * - - COUNT ( * ) FROM tab1
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4406
SELECT CAST( - CAST( + - col1 AS SIGNED ) AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4406
SELECT CAST ( - CAST ( + - col1 AS INTEGER ) AS INTEGER ) FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT NULL > + col0 + - + col1
----

query I rowsort
SELECT - 24 * 8 FROM tab2
----
-192
-192
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT + COUNT( * ) * + + 58 col0 FROM tab1
----
174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4409
SELECT + COUNT ( * ) * + + 58 col0 FROM tab1
----
174

onlyif mysql # DIV for integer division: 
query I rowsort label-4410
SELECT DISTINCT - col1 DIV + + 52 - - col0 FROM tab1 cor0 WHERE NOT col0 * 55 - + col1 + col1 IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT - col1 / + + 52 - - col0 FROM tab1 cor0 WHERE NOT col0 * 55 - + col1 + col1 IS NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT - + COUNT( DISTINCT + ( + 42 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-4412
SELECT - + COUNT ( DISTINCT + ( + 42 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4413
SELECT DISTINCT col1 + - - col1, CAST( - col0 AS SIGNED ) AS col1 FROM tab1
----
10
-85
28
-51
94
-91

skipif mysql # not compatible
query II rowsort label-4413
SELECT DISTINCT col1 + - - col1, CAST ( - col0 AS INTEGER ) AS col1 FROM tab1
----
10
-85
28
-51
94
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL + + ( + COUNT( col0 ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4414
SELECT ALL + + ( + COUNT ( col0 ) ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 58 + - ( - + 45 ) AS col1 FROM tab2 AS cor0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-4416
SELECT col2 DIV + - 26 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4416
SELECT col2 / + - 26 FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT 98 * + 36 FROM tab2
----
3528
3528
3528

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4418
SELECT 88 + + 44 + + ( ( + 76 ) ) * - col2 AS col1 FROM tab2 WHERE - - ( CAST( NULL AS DECIMAL ) ) IS NULL
----
-1616
-2908
-4276

skipif mysql # not compatible
query I rowsort label-4418
SELECT 88 + + 44 + + ( ( + 76 ) ) * - col2 AS col1 FROM tab2 WHERE - - ( CAST ( NULL AS REAL ) ) IS NULL
----
-1616
-2908
-4276

onlyif mysql # aggregate syntax: 
query I rowsort label-4419
SELECT - SUM( 15 ) AS col0 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-4419
SELECT - SUM ( 15 ) AS col0 FROM tab0
----
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, col2 * + col1 AS col2 FROM tab1
----
59
295
68
3196
96
1344

query I rowsort
SELECT + col0 AS col1 FROM tab2 WHERE + - col0 IS NOT NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 col0 FROM tab0 AS cor0
----
-68
-68
-68

query I rowsort
SELECT col1 - - 40 AS col0 FROM tab2 AS cor0
----
107
117
91

query II rowsort
SELECT col0 * + - col2 AS col2, col2 AS col2 FROM tab0 AS cor0
----
-705
47
-870
10
-9603
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4425
SELECT + SUM( ALL col2 ) FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-4425
SELECT + SUM ( ALL col2 ) FROM tab0 cor0
----
156

query I rowsort
SELECT + - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL > col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4427
SELECT DISTINCT - ( - - 43 ) DIV + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4427
SELECT DISTINCT - ( - - 43 ) / + col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 31 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - + 13 col2 FROM tab0
----
-1287
-130
-611

query I rowsort
SELECT DISTINCT + col2 * ( - - col0 ) - - col0 FROM tab0 cor0
----
720
957
9700

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 / + 21 + + col0 AND - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4432
SELECT DISTINCT 75 DIV + + COUNT( * ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT 75 / + + COUNT ( * ) FROM tab2
----
25

query II rowsort
SELECT DISTINCT + 47 AS col0, ( - + col2 ) FROM tab0 cor0
----
47
-10
47
-47
47
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-4434
SELECT ALL + - col1 + - col0 DIV 2 - - col2, + 65 AS col2 FROM tab2 AS cor0
----
-46
65
-51
65
-69
65

skipif mysql # not compatible
query II rowsort label-4434
SELECT ALL + - col1 + - col0 / 2 - - col2, + 65 AS col2 FROM tab2 AS cor0
----
-46
65
-51
65
-69
65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 * - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * 69 + - + 30 + - + col1 * - col1 * 46 FROM tab2 AS cor0
----
116097
201841
267391

query I rowsort
SELECT 62 + + col1 + - col2 * 95 * 40 FROM tab2 AS cor0
----
-151861
-220271
-87287

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT DISTINCT + SUM( + + 39 ) + + 40 AS col1 FROM tab1 AS cor0
----
157

skipif mysql # not compatible
query I rowsort label-4438
SELECT DISTINCT + SUM ( + + 39 ) + + 40 AS col1 FROM tab1 AS cor0
----
157

query I rowsort
SELECT ALL - col1 + - col1 + - + col0 AS col2 FROM tab1 AS cor0
----
-185
-79
-95

query I rowsort
SELECT DISTINCT 7 + + - 7 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4441
SELECT DISTINCT + col2 AS col1, - ( ( + + CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-4441
SELECT DISTINCT + col2 AS col1, - ( ( + + CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4442
SELECT CAST( + 37 AS SIGNED ) + + ( + + col1 ) + + 44 AS col0 FROM tab2 AS cor0
----
132
148
158

skipif mysql # not compatible
query I rowsort label-4442
SELECT CAST ( + 37 AS INTEGER ) + + ( + + col1 ) + + 44 AS col0 FROM tab2 AS cor0
----
132
148
158

query I rowsort
SELECT + 82 + 95 AS col1 FROM tab0 AS cor0
----
177
177
177

query I rowsort
SELECT - col1 + col0 * - + 95 FROM tab1 AS cor0
----
-4859
-8080
-8692

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + + ( + col2 ) + - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 11 + col0 * - 77 + - 25 FROM tab2
----
-3556
-4942
-5789

query I rowsort
SELECT 29 + - - col1 - col2 FROM tab0
----
-69
40
63

onlyif mysql # DIV for integer division: 
query I rowsort label-4448
SELECT ALL 12 DIV - 20 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL 12 / - 20 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE + col2 / col0 IS NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE + col1 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4451
SELECT + MIN( DISTINCT - col1 ) AS col2, - 58 + 4 col1 FROM tab1
----
-47
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4451
SELECT + MIN ( DISTINCT - col1 ) AS col2, - 58 + 4 col1 FROM tab1
----
-47
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT + - SUM( 22 ) - 94 AS col0 FROM tab1 AS cor0
----
-160

skipif mysql # not compatible
query I rowsort label-4452
SELECT + - SUM ( 22 ) - 94 AS col0 FROM tab1 AS cor0
----
-160

query I rowsort
SELECT + - 7 - 9 FROM tab2 AS cor0
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-4454
SELECT DISTINCT ( - ( 72 ) ) - - COUNT( - + ( col0 ) ) AS col2, - COUNT( * ) AS col1 FROM tab2
----
-69
-3

skipif mysql # not compatible
query II rowsort label-4454
SELECT DISTINCT ( - ( 72 ) ) - - COUNT ( - + ( col0 ) ) AS col2, - COUNT ( * ) AS col1 FROM tab2
----
-69
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4455
SELECT ALL - - COUNT( * ) col0 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-4455
SELECT ALL - - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query II rowsort
SELECT ALL col1 AS col2, 6 FROM tab2
----
51
6
67
6
77
6

onlyif mysql # aggregate syntax: 
query II rowsort label-4457
SELECT - 52 + ( - 54 ) AS col2, - COUNT( * ) AS col1 FROM tab1
----
-106
-3

skipif mysql # not compatible
query II rowsort label-4457
SELECT - 52 + ( - 54 ) AS col2, - COUNT ( * ) AS col1 FROM tab1
----
-106
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN NULL AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4459
SELECT + CAST( + + col0 AS SIGNED ) AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4459
SELECT + CAST ( + + col0 AS INTEGER ) AS col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4460
SELECT - COUNT( * ) AS col1, 75 AS col1 FROM tab0 AS cor0 WHERE NOT + 65 IS NULL
----
-3
75

skipif mysql # not compatible
query II rowsort label-4460
SELECT - COUNT ( * ) AS col1, 75 AS col1 FROM tab0 AS cor0 WHERE NOT + 65 IS NULL
----
-3
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT + MAX( ALL - col1 ) * COUNT( * ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4461
SELECT + MAX ( ALL - col1 ) * COUNT ( * ) FROM tab1 AS cor0
----
-15

query II rowsort
SELECT ALL + 11 AS col0, - col2 + - + col0 AS col0 FROM tab0 AS cor0
----
11
-196
11
-62
11
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > ( 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT DISTINCT - + MAX( ALL + col0 ) col0 FROM tab1 AS cor0 WHERE - col0 <> + 2
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4464
SELECT DISTINCT - + MAX ( ALL + col0 ) col0 FROM tab1 AS cor0 WHERE - col0 <> + 2
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-4465
SELECT ALL COUNT( * ) * - - 91, + COUNT( * ) AS col1 FROM tab0
----
273
3

skipif mysql # not compatible
query II rowsort label-4465
SELECT ALL COUNT ( * ) * - - 91, + COUNT ( * ) AS col1 FROM tab0
----
273
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 * + 56 / + col2 AND + col2
----

query I rowsort
SELECT ALL + col1 / - col0 AS col2 FROM tab0 WHERE NOT NULL >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT COUNT( ALL + + col2 ) * + 49 AS col0 FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-4468
SELECT COUNT ( ALL + + col2 ) * + 49 AS col0 FROM tab1
----
147

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 97 * - + 2 / col0 + - 68 NOT BETWEEN NULL AND - col2 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT DISTINCT - COUNT( col0 ) * + - COUNT( * ) col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4470
SELECT DISTINCT - COUNT ( col0 ) * + - COUNT ( * ) col2 FROM tab1 AS cor0
----
9

query I rowsort
SELECT ALL + + col2 * + + 41 AS col1 FROM tab0 cor0
----
1927
4059
410

query I rowsort
SELECT DISTINCT + col1 * - col0 + - 50 FROM tab2 AS cor0
----
-2396
-4978
-5075

query I rowsort
SELECT DISTINCT + - 9 AS col1 FROM tab1 cor0 WHERE NOT ( col1 ) + + - 45 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col2 + 0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT MAX( 53 ) FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-4475
SELECT MAX ( 53 ) FROM tab0 AS cor0
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT DISTINCT + + col2 + col0 + - - 85 DIV col1 DIV 64 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-4476
SELECT DISTINCT + + col2 + col0 + - - 85 / col1 / 64 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL + col0 - - 59 FROM tab0 AS cor0
----
146
156
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4479
SELECT ( + CAST( + - col2 AS SIGNED ) ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4479
SELECT ( + CAST ( + - col2 AS INTEGER ) ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT + col0 * - - col0 AS col2 FROM tab0
----
225
7569
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - col2 col0 FROM tab0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4482
SELECT - 1 * + CAST( - col2 AS SIGNED ) + - + 75 AS col0 FROM tab2
----
-17
-35
-52

skipif mysql # not compatible
query I rowsort label-4482
SELECT - 1 * + CAST ( - col2 AS INTEGER ) + - + 75 AS col0 FROM tab2
----
-17
-35
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 56 AS col0, - col2 * + col2 * + 67 - - ( - 63 ) - - - col2 col1 FROM tab0
----
56
-148113
56
-656829
56
-6773

query I rowsort
SELECT - 89 + + + col1 FROM tab2
----
-12
-22
-38

query I rowsort
SELECT + ( - col0 ) + + col1 * - col2 * - col2 AS col0 FROM tab0
----
178914
2013
9704

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4487
SELECT DISTINCT col0 * col2 DIV col0 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4487
SELECT DISTINCT col0 * col2 / col0 FROM tab1 cor0
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col2 * - + col0 AND NULL
----

query I rowsort
SELECT DISTINCT + 50 - + col1 AS col2 FROM tab1 AS cor0
----
3
36
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4490
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE + - col1 + - - col0 BETWEEN + - col2 AND + - 38
----
0

skipif mysql # not compatible
query I rowsort label-4490
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE + - col1 + - - col0 BETWEEN + - col2 AND + - 38
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4491
SELECT ALL + 47 * COUNT( * ) + + COUNT( * ) AS col0, + COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-4491
SELECT ALL + 47 * COUNT ( * ) + + COUNT ( * ) AS col0, + COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT DISTINCT - MAX( - col1 ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-4492
SELECT DISTINCT - MAX ( - col1 ) FROM tab2 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT DISTINCT - MIN( - 22 ) * + - MIN( DISTINCT 47 ) + + SUM( ALL + + col0 ) AS col1 FROM tab1 cor0
----
-807

skipif mysql # not compatible
query I rowsort label-4493
SELECT DISTINCT - MIN ( - 22 ) * + - MIN ( DISTINCT 47 ) + + SUM ( ALL + + col0 ) AS col1 FROM tab1 cor0
----
-807

query I rowsort
SELECT DISTINCT - 4 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4495
SELECT ALL + CAST( - + col2 AS SIGNED ) AS col1, col2 AS col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

skipif mysql # not compatible
query II rowsort label-4495
SELECT ALL + CAST ( - + col2 AS INTEGER ) AS col1, col2 AS col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT DISTINCT col1 * + col0 * - col0 FROM tab0 AS cor0
----
-158949
-18225
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4497
SELECT col1 * + CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4497
SELECT col1 * + CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4498
SELECT + 30 * MAX( ALL - col2 ) FROM tab2 AS cor0 WHERE NOT 13 NOT IN ( + 84 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4498
SELECT + 30 * MAX ( ALL - col2 ) FROM tab2 AS cor0 WHERE NOT 13 NOT IN ( + 84 )
----
NULL

query I rowsort
SELECT + - col1 FROM tab0 WHERE NOT - + col1 + 60 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4500
SELECT + COUNT( ALL - - col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4500
SELECT + COUNT ( ALL - - col1 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ( + - 23 ) * - 88 * - 86 FROM tab0 WHERE NOT - - ( - - 46 ) >= NULL
----

query II rowsort
SELECT DISTINCT + col0, col2 * 10 + + col0 FROM tab0
----
15
485
87
187
97
1087

query I rowsort
SELECT DISTINCT col0 + 2 AS col2 FROM tab1 WHERE col1 IS NOT NULL
----
53
87
93

query I rowsort
SELECT DISTINCT 82 * + col0 FROM tab1
----
4182
6970
7462

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT + SUM( ALL - col2 ) col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4505
SELECT + SUM ( ALL - col2 ) col1 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT ALL 58 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4507
SELECT + - col0 + + CAST( + col0 AS SIGNED ) DIV + - 48 AS col2 FROM tab0 AS cor0
----
-15
-88
-99

skipif mysql # not compatible
query I rowsort label-4507
SELECT + - col0 + + CAST ( + col0 AS INTEGER ) / + - 48 AS col2 FROM tab0 AS cor0
----
-15
-88
-99

query I rowsort
SELECT + 83 + - + col2 * - ( + 47 ) FROM tab1 AS cor0
----
2856
3279
4595

query I rowsort
SELECT ALL - - 4 * + + 63 FROM tab1 AS cor0
----
252
252
252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4510
SELECT - COUNT( * ) + + - CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4510
SELECT - COUNT ( * ) + + - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT - col2 + - - col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT ALL + + col2 - + - col1 - - col2 AS col0 FROM tab1 AS cor0
----
123
183
206

query I rowsort
SELECT ALL + 92 + + col2 * - + col0 AS col0 FROM tab2 AS cor0
----
-2468
-4258
-966

query II rowsort
SELECT - col2 + + col0 + + + col0 * - col1, col1 AS col0 FROM tab2 AS cor0
----
-2323
51
-4904
77
-5008
67

query I rowsort
SELECT ALL 86 * - + col0 FROM tab0
----
-1290
-7482
-8342

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 + + 39 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE - + 34 + col2 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT ALL COUNT( * ) - COUNT( - + 15 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4519
SELECT ALL COUNT ( * ) - COUNT ( - + 15 ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT DISTINCT - 8 * - 74 + - COUNT( ALL + 86 ) + - SUM( col0 ) + + 4 * + 5 FROM tab2 AS cor0
----
424

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT - 8 * - 74 + - COUNT ( ALL + 86 ) + - SUM ( col0 ) + + 4 * + 5 FROM tab2 AS cor0
----
424

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT DISTINCT - 82 + MIN( col2 ) FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4521
SELECT DISTINCT - 82 + MIN ( col2 ) FROM tab1 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT - ( - MIN( - + 29 ) ) AS col2 FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-4522
SELECT - ( - MIN ( - + 29 ) ) AS col2 FROM tab1 AS cor0
----
-29

query I rowsort
SELECT ALL + + 72 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT DISTINCT - + 80 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT + COUNT( + 43 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4525
SELECT + COUNT ( + 43 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query II rowsort
SELECT 40, 34 AS col1 FROM tab2
----
40
34
40
34
40
34

query I rowsort
SELECT + 82 * - ( + - col0 ) AS col1 FROM tab1 AS cor0
----
4182
6970
7462

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT + COUNT( * ) * - - COUNT( * ) AS col0 FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4528
SELECT + COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab1 cor0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 18 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4530
SELECT DISTINCT + COUNT( * ) DIV - 79 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4530
SELECT DISTINCT + COUNT ( * ) / - 79 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT ( + COUNT( ALL ( + col2 ) ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4531
SELECT ( + COUNT ( ALL ( + col2 ) ) ) AS col2 FROM tab0
----
3

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT ( col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + col1 * + col1 * + 6 FROM tab0
----
2646
39366
6

query I rowsort
SELECT DISTINCT + - 8 + col0 + + - col2 FROM tab0 AS cor0 WHERE NOT ( NULL < NULL ) OR - 8 IS NOT NULL
----
-10
-40
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT ALL - - COUNT( col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL - - COUNT ( col1 ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 27 * + ( - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE 42 > - col0 * - col0
----

query I rowsort
SELECT ALL + ( - - 95 ) FROM tab2
----
95
95
95

query II rowsort
SELECT ALL - col2 AS col1, - col1 AS col1 FROM tab0
----
-10
-21
-47
-81
-99
-1

query I rowsort
SELECT ALL + 8 * - - col2 AS col1 FROM tab0
----
376
792
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT ALL - 18 + + COUNT( * ) FROM tab2 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4541
SELECT ALL - 18 + + COUNT ( * ) FROM tab2 cor0
----
-15

query I rowsort
SELECT DISTINCT 63 + - 54 * + ( + + 7 ) FROM tab2 AS cor0
----
-315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4543
SELECT DISTINCT + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( - + 55 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( - + 55 ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - 64 - - 75 FROM tab0 cor0
----
11
11
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4545
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL - col1 - - col0 + - col2 + + + col1 AS col0 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4547
SELECT col2 DIV + + col1 + col0 + + - col1 FROM tab2
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-4547
SELECT col2 / + + col1 + col0 + + - col1 FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT SUM( ALL 47 ) + - COUNT( * ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-4548
SELECT SUM ( ALL 47 ) + - COUNT ( * ) FROM tab2
----
138

query II rowsort
SELECT + 49 + + + col0, col2 AS col0 FROM tab0
----
136
10
146
99
64
47

onlyif mysql # aggregate syntax: 
query II rowsort label-4550
SELECT + COUNT( * ) AS col0, - 70 FROM tab0 WHERE - col1 + col2 * + col1 >= + + col2 + + + col2 + - col2
----
2
-70

skipif mysql # not compatible
query II rowsort label-4550
SELECT + COUNT ( * ) AS col0, - 70 FROM tab0 WHERE - col1 + col2 * + col1 >= + + col2 + + + col2 + - col2
----
2
-70

query I rowsort
SELECT 72 + + col0 * + 44 FROM tab2
----
2096
2888
3372

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4552
SELECT DISTINCT - COUNT( * ) * + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT - COUNT ( * ) * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 col2 FROM tab1 AS cor0
----
67
67
67

query II rowsort
SELECT + col2 AS col2, 80 FROM tab0 AS cor0 WHERE NOT NULL = + 49 + col0 + 89
----

query I rowsort
SELECT col2 + - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
144
147
159

query I rowsort
SELECT DISTINCT col2 - + ( - col1 ) * - 95 * + + col1 + + col1 + 19 * col1 - - col2 / col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4557
SELECT - + CAST( NULL AS SIGNED ) * 26 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4557
SELECT - + CAST ( NULL AS INTEGER ) * 26 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 47 * col1 FROM tab2 AS cor0
----
2397
3149
3619

query I rowsort
SELECT + col1 * - col2 * ( - col2 ) + - + col0 * + col2 FROM tab0 AS cor0
----
1230
178224
198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + - col0 col2, + col1 AS col2 FROM tab0
----
-174
21
-194
1
-30
81

query I rowsort
SELECT DISTINCT - ( + 90 ) FROM tab0
----
-90

query I rowsort
SELECT col1 + + 47 + 8 FROM tab1
----
102
60
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT + COUNT( * ) col0 FROM tab0 WHERE NOT NULL >= - - col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4563
SELECT + COUNT ( * ) col0 FROM tab0 WHERE NOT NULL >= - - col2
----
0

query I rowsort
SELECT col1 + col1 * + 16 + + + ( + 1 ) * + - col2 - - col0 AS col2 FROM tab2
----
1156
1333
890

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT ALL - COUNT( * ) * 46 FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-4565
SELECT ALL - COUNT ( * ) * 46 FROM tab0
----
-138

query I rowsort
SELECT ALL 64 FROM tab0 WHERE NOT - - col2 + + - col1 / + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4567
SELECT DISTINCT - col0 AS col2, - 86 + CAST( NULL AS SIGNED ) + + - 60 - + col1 AS col0 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-4567
SELECT DISTINCT - col0 AS col2, - 86 + CAST ( NULL AS INTEGER ) + + - 60 - + col1 AS col0 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 85 IS NOT NULL
----

query II rowsort
SELECT ALL 31 AS col2, + 96 FROM tab1
----
31
96
31
96
31
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4570
SELECT DISTINCT CAST( NULL AS SIGNED ) + 12 AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 12 AS col1 FROM tab0 cor0
----
NULL

query II rowsort
SELECT - 85 AS col1, - ( - col0 ) AS col0 FROM tab0 AS cor0
----
-85
15
-85
87
-85
97

query II rowsort
SELECT - col2, 2 AS col1 FROM tab0 AS cor0
----
-10
2
-47
2
-99
2

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + + col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 17 * - + col2 BETWEEN - - ( + col2 ) + - col0 + col1 AND - col2 * - + col2
----
87
21
10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 >= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT DISTINCT CAST( NULL AS SIGNED ) + - col0 - - + col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4576
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - col0 - - + col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 41 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 67 col0 FROM tab2 AS cor0
----
1541
2680
3886

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4579
SELECT - CAST( - col2 AS SIGNED ) AS col0, 59 DIV + col2 FROM tab1 AS cor0
----
59
1
68
0
96
0

skipif mysql # not compatible
query II rowsort label-4579
SELECT - CAST ( - col2 AS INTEGER ) AS col0, 59 / + col2 FROM tab1 AS cor0
----
59
1
68
0
96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4580
SELECT DISTINCT 89 + COUNT( * ) AS col2 FROM tab1 cor0
----
92

skipif mysql # not compatible
query I rowsort label-4580
SELECT DISTINCT 89 + COUNT ( * ) AS col2 FROM tab1 cor0
----
92

query I rowsort
SELECT ALL - col0 + + - 7 FROM tab0
----
-104
-22
-94

query II rowsort
SELECT ALL col2 * col0, - 90 AS col1 FROM tab2 WHERE NOT ( NOT ( NULL ) IS NULL )
----
1058
-90
2560
-90
4350
-90

query II rowsort
SELECT ALL - col2 AS col2, col2 AS col1 FROM tab2
----
-23
23
-40
40
-58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4584
SELECT ALL ( + 93 ) - - 60 + + CAST( - - 12 AS SIGNED ) col2 FROM tab1
----
165
165
165

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4584
SELECT ALL ( + 93 ) - - 60 + + CAST ( - - 12 AS INTEGER ) col2 FROM tab1
----
165
165
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 col1 FROM tab0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT ALL + COUNT( * ) * - 74 FROM tab0 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-4586
SELECT ALL + COUNT ( * ) * - 74 FROM tab0 AS cor0
----
-222

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 >= - col1
----

query I rowsort
SELECT DISTINCT - 13 * + ( + col2 ) AS col1 FROM tab2 AS cor0
----
-299
-520
-754

query II rowsort
SELECT + 60, col0 AS col0 FROM tab1 AS cor0
----
60
51
60
85
60
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4590
SELECT ALL CAST( 40 AS SIGNED ) FROM tab0
----
40
40
40

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL CAST ( 40 AS INTEGER ) FROM tab0
----
40
40
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 65 ) col2 FROM tab1 WHERE NOT NULL NOT BETWEEN col1 + 13 AND - 59 * - 9
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT ( 90 ) IN ( - col0 + 51 )
----
10
47
99

query I rowsort
SELECT + 54 + + col0 AS col2 FROM tab1
----
105
139
145

query III rowsort
SELECT * FROM tab2 WHERE col1 = ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4595
SELECT MAX( DISTINCT + CAST( 95 AS SIGNED ) ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-4595
SELECT MAX ( DISTINCT + CAST ( 95 AS INTEGER ) ) FROM tab0
----
95

query I rowsort
SELECT + 44 + - col2 AS col0 FROM tab0
----
-3
-55
34

query I rowsort
SELECT ALL col2 FROM tab1 WHERE 71 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4598
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ) FROM tab1 WHERE col0 + col1 = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4598
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ) FROM tab1 WHERE col0 + col1 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT - COUNT( + col0 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4599
SELECT - COUNT ( + col0 ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT col0 * col1 - - col1 AS col2 FROM tab2
----
2397
5005
5092

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT COUNT( * ) AS col1 FROM tab0 WHERE - 98 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4601
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE - 98 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT ALL - ( ( + 14 ) ) * MIN( col2 * + col1 ) + - ( 15 + + 47 ) FROM tab1
----
-4192

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL - ( ( + 14 ) ) * MIN ( col2 * + col1 ) + - ( 15 + + 47 ) FROM tab1
----
-4192

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NULL IN ( col1 / col0 - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4603
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NULL IN ( col1 / col0 - col2 )
----
0

query I rowsort
SELECT 74 AS col2 FROM tab0 WHERE col2 * - col1 IS NOT NULL
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT DISTINCT - COUNT( * ) - + ( AVG ( col2 ) ) AS col1 FROM tab2 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT - COUNT ( * ) - + ( AVG ( col2 ) ) AS col1 FROM tab2 WHERE NOT NULL <= NULL
----
NULL

query I rowsort
SELECT col1 + - col1 FROM tab1 WHERE + col1 + + 30 IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT ALL - COUNT( * ) * - 21 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN + 21 / col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4607
SELECT ALL - COUNT ( * ) * - 21 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN + 21 / col0 AND NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NULL <> - 8
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4609
SELECT col1 DIV + col1 + col0 AS col1 FROM tab1 WHERE NOT ( - 30 * col0 ) > 84 * col2 + - 50 * ( ( col1 ) )
----
52
86
92

skipif mysql # not compatible
query I rowsort label-4609
SELECT col1 / + col1 + col0 AS col1 FROM tab1 WHERE NOT ( - 30 * col0 ) > 84 * col2 + - 50 * ( ( col1 ) )
----
52
86
92

query I rowsort
SELECT DISTINCT ( + 33 ) AS col1 FROM tab0 WHERE NOT + col0 NOT IN ( + col0 / - col2 )
----

query I rowsort
SELECT ( col0 ) FROM tab0 WHERE NOT NULL < col0 + col0
----

query I rowsort
SELECT DISTINCT col1 * ( + 53 ) FROM tab2
----
2703
3551
4081

query I rowsort
SELECT + 17 - + 55 FROM tab1
----
-38
-38
-38

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT - COUNT( col1 ) AS col0 FROM tab0 AS cor0 WHERE ( - 94 ) <= 27
----
-3

skipif mysql # not compatible
query I rowsort label-4615
SELECT - COUNT ( col1 ) AS col0 FROM tab0 AS cor0 WHERE ( - 94 ) <= 27
----
-3

query I rowsort
SELECT DISTINCT + col1 * col0 + 84 FROM tab2 AS cor0
----
2430
5012
5109

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 42 NOT BETWEEN ( 19 ) AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4618
SELECT - 60 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + CAST( col0 AS SIGNED ) + - col2 AND - col0
----

skipif mysql # not compatible
query I rowsort label-4618
SELECT - 60 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + CAST ( col0 AS INTEGER ) + - col2 AND - col0
----

query I rowsort
SELECT - col1 FROM tab2 WHERE 16 + + col2 IS NOT NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4620
SELECT ALL 1 - - ( - ( + CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL 1 - - ( - ( + CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab0 WHERE NOT col1 - + col1 * - col0 NOT BETWEEN NULL AND + 5
----

query I rowsort
SELECT DISTINCT + 78 + - col0 AS col2 FROM tab1 cor0
----
-13
-7
27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4623
SELECT * FROM tab0 AS cor0 WHERE + CAST( + col0 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-4623
SELECT * FROM tab0 AS cor0 WHERE + CAST ( + col0 AS INTEGER ) > NULL
----

query I rowsort
SELECT ALL - 24 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT DISTINCT + COUNT( * ) + - 47 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT + COUNT ( * ) + - 47 FROM tab1 AS cor0
----
-44

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN - ( - 94 ) * col2 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 1 - - col0 AS col1 FROM tab1 AS cor0
----
52
86
92

query I rowsort
SELECT ALL + + col1 + 6 * col0 AS col2 FROM tab0 AS cor0
----
171
543
583

query I rowsort
SELECT col1 - ( + 78 ) FROM tab2 AS cor0
----
-1
-11
-27

query I rowsort
SELECT - col0 * - 2 + col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 AND + col2
----

query I rowsort
SELECT DISTINCT + + col1 + + 62 FROM tab2 AS cor0
----
113
129
139

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT + 21 / col0 + col1 * col1 NOT BETWEEN col0 + col1 AND - col0 / - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 / 72 - col2 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4634
SELECT CAST( NULL AS SIGNED ) * - - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT CAST ( NULL AS INTEGER ) * - - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 47 FROM tab1 WHERE NOT - col1 - - 23 = col2 + col1
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT ALL - COUNT( DISTINCT + 73 ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL - COUNT ( DISTINCT + 73 ) AS col0 FROM tab2
----
-1

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT ( 94 * - col1 ) NOT BETWEEN col0 * col1 + + col0 AND + 16
----

query I rowsort
SELECT ALL - ( - + 99 ) FROM tab2
----
99
99
99

query I rowsort
SELECT DISTINCT - 59 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-59

query II rowsort
SELECT - col1 AS col1, - col2 FROM tab0
----
-1
-99
-21
-10
-81
-47

query I rowsort
SELECT ALL 95 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT DISTINCT - 20 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4643
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab0 WHERE ( NULL ) NOT IN ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab0 WHERE ( NULL ) NOT IN ( - col2 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 37 + - 64 col0 FROM tab0 AS cor0 WHERE NOT NULL > - col1 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT - COUNT( * ) + - 49 - + 64 FROM tab2 AS cor0
----
-116

skipif mysql # not compatible
query I rowsort label-4645
SELECT - COUNT ( * ) + - 49 - + 64 FROM tab2 AS cor0
----
-116

onlyif mysql # DIV for integer division: 
query I rowsort label-4646
SELECT + ( + col2 ) + 39 - - col1 DIV col1 FROM tab2 AS cor0
----
63
80
98

skipif mysql # not compatible
query I rowsort label-4646
SELECT + ( + col2 ) + 39 - - col1 / col1 FROM tab2 AS cor0
----
63
80
98

query II rowsort
SELECT DISTINCT + col1 AS col0, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT - 53 + + + col2 AS col1 FROM tab0 AS cor0
----
-43
-6
46

query I rowsort
SELECT + 56 + - col0 - - 39 FROM tab2 AS cor0
----
20
31
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * + col0, - col0 * col1 col1 FROM tab0
----
1215
-1215
1827
-1827
97
-97

query I rowsort
SELECT 1 + + + 7 * + + 77 AS col1 FROM tab1
----
540
540
540

query I rowsort
SELECT - 41 + col0 AS col0 FROM tab2
----
23
34
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 11 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-4654
SELECT + col2 DIV - - col0 AS col2, col0 AS col0 FROM tab1
----
0
85
0
91
1
51

skipif mysql # not compatible
query II rowsort label-4654
SELECT + col2 / - - col0 AS col2, col0 AS col0 FROM tab1
----
0
85
0
91
1
51

query I rowsort
SELECT ALL 88 * + 75 + - col0 FROM tab0
----
6503
6513
6585

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN + + 49 AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT - COUNT( * ) FROM tab0 WHERE - - col2 BETWEEN 14 + + col2 AND - 95 * col1
----
0

skipif mysql # not compatible
query I rowsort label-4657
SELECT - COUNT ( * ) FROM tab0 WHERE - - col2 BETWEEN 14 + + col2 AND - 95 * col1
----
0

query I rowsort
SELECT DISTINCT - col0 + - - col0 * + col2 + - col1 AS col0 FROM tab0 AS cor0
----
609
762
9505

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 + col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 * + + 62 >= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT ALL + COUNT( * ) + + COUNT( * ) + - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL + COUNT ( * ) + + COUNT ( * ) + - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT - SUM( ALL 34 ) AS col1 FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-4662
SELECT - SUM ( ALL 34 ) AS col1 FROM tab1 AS cor0
----
-102

query I rowsort
SELECT + col2 * - col0 * + 93 FROM tab1 AS cor0
----
-455328
-466395
-575484

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * - 60 NOT BETWEEN 81 * + col2 + - 61 AND + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * - col1 IS NOT NULL
----

query I rowsort
SELECT 96 + - col1 FROM tab2 cor0 WHERE NOT ( col1 * + - col2 + - col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col0 ) NOT BETWEEN + - 7 * + 75 * 19 AND ( col1 )
----

query I rowsort
SELECT - ( + col2 ) * 30 FROM tab1 cor0
----
-1770
-2040
-2880

query III rowsort
SELECT * FROM tab0 WHERE NOT 82 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4670
SELECT + 75, col2 * + + col2 * - CAST( col0 AS SIGNED ) - - + col0 * - col0 AS col1 FROM tab1
----
75
-303110
75
-429065
75
-472617

skipif mysql # not compatible
query II rowsort label-4670
SELECT + 75, col2 * + + col2 * - CAST ( col0 AS INTEGER ) - - + col0 * - col0 AS col1 FROM tab1
----
75
-303110
75
-429065
75
-472617

query I rowsort
SELECT ALL - 38 FROM tab1, tab1 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 97 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 86 * - - 85 * + + col2 FROM tab2
----
-168130
-292400
-423980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 col2 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4675
SELECT CAST( NULL AS SIGNED ), - col1 AS col0 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-4675
SELECT CAST ( NULL AS INTEGER ), - col1 AS col0 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

query II rowsort
SELECT ALL + col2 AS col0, col0 AS col1 FROM tab2
----
23
46
40
64
58
75

query I rowsort
SELECT + ( - 46 ) * - - col1 AS col1 FROM tab0
----
-3726
-46
-966

query II rowsort
SELECT DISTINCT col1 AS col0, col1 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT ALL 79 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + col0 * + 49 FROM tab0 AS cor0
----
4263
4753
735

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT DISTINCT + - COUNT( 17 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT + - COUNT ( 17 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - col2 + - + 17 * col0 FROM tab2
----
-1128
-1333
-805

query II rowsort
SELECT ALL ( col1 ) AS col0, 28 FROM tab0
----
1
28
21
28
81
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4684
SELECT DISTINCT - + COUNT( * ) * + ( + 48 ) DIV - SUM( col0 ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4684
SELECT DISTINCT - + COUNT ( * ) * + ( + 48 ) / - SUM ( col0 ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT MAX( DISTINCT - 21 ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-4685
SELECT MAX ( DISTINCT - 21 ) FROM tab0 AS cor0
----
-21

query II rowsort
SELECT DISTINCT + 44 + + col0 AS col2, col0 AS col1 FROM tab1 AS cor0
----
129
85
135
91
95
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * - ( col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 52 AS col2 FROM tab1 cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT DISTINCT COUNT( ALL col1 ) * + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 - - col1 * - ( ( + 34 ) ) NOT IN ( - 5 )
----
0

skipif mysql # not compatible
query I rowsort label-4689
SELECT DISTINCT COUNT ( ALL col1 ) * + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 - - col1 * - ( ( + 34 ) ) NOT IN ( - 5 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( - ( - col2 ) ) col0 FROM tab0
----
210
3807
99

query I rowsort
SELECT + col2 + - + col2 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 + - 14 FROM tab2
----
32
50
61

query I rowsort
SELECT + 48 AS col1 FROM tab0 WHERE + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col0 * + + col1 AS col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT + - 24 + col0 + col2 + col2 + + - col0 * col2 * - col0 AS col0 FROM tab2 AS cor0
----
163960
326417
48736

query I rowsort
SELECT DISTINCT col2 + col1 - col2 FROM tab2
----
51
67
77

query I rowsort
SELECT ( 63 ) * - 5 FROM tab1
----
-315
-315
-315

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT + - 11 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + ( + col1 ) * + col0 BETWEEN - 1 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4702
SELECT - + ( 83 ) / - 66 - + col1 / + - col0 * + + CAST( NULL AS SIGNED ) / - - col0 * + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4702
SELECT - + ( 83 ) / - 66 - + col1 / + - col0 * + + CAST ( NULL AS INTEGER ) / - - col0 * + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE + col2 + 49 * - + col0 <> + + 23 + col0
----
-3

skipif mysql # not compatible
query I rowsort label-4703
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE + col2 + 49 * - + col0 <> + + 23 + col0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4704
SELECT - col2 * col1 DIV + col2 AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4704
SELECT - col2 * col1 / + col2 AS col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT + COUNT( DISTINCT - - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4705
SELECT + COUNT ( DISTINCT - - col1 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4706
SELECT col1 AS col2, col0 DIV - - ( - ( + col2 ) ) + + col1 - + col1 FROM tab2
----
51
-2
67
-1
77
-1

skipif mysql # not compatible
query II rowsort label-4706
SELECT col1 AS col2, col0 / - - ( - ( + col2 ) ) + + col1 - + col1 FROM tab2
----
51
-2
67
-1
77
-1

query I rowsort
SELECT - + col2 FROM tab1 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 <= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4709
SELECT col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( + 27 + + ( 90 ) * col1 + + CAST( NULL AS SIGNED ) * + + col1 * - col1 + + + col0 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4709
SELECT col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( + 27 + + ( 90 ) * col1 + + CAST ( NULL AS INTEGER ) * + + col1 * - col1 + + + col0 ) AND NULL
----

query II rowsort
SELECT ALL + col1, 18 FROM tab0 AS cor0
----
1
18
21
18
81
18

query II rowsort
SELECT - 86, col2 FROM tab0 AS cor0
----
-86
10
-86
47
-86
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT + COUNT( * ) + 42 AS col1 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-4712
SELECT + COUNT ( * ) + 42 AS col1 FROM tab1
----
45

query II rowsort
SELECT col0 * + 30 * + + col0 + + col0 AS col1, col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
216835
59
248521
68
78081
96

query I rowsort
SELECT DISTINCT col1 + + col1 * + col1 + + col1 AS col2 FROM tab0 cor0
----
3
483
6723

onlyif mysql # DIV for integer division: 
query I rowsort label-4715
SELECT DISTINCT - 47 + ( - col1 ) DIV ( - + 55 ) AS col2 FROM tab2 AS cor0
----
-46
-47

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT - 47 + ( - col1 ) / ( - + 55 ) AS col2 FROM tab2 AS cor0
----
-46
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4716
SELECT + + col2 + CAST( NULL AS SIGNED ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4716
SELECT + + col2 + CAST ( NULL AS INTEGER ) * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 + ( - - col2 ) AS col0 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # DIV for integer division: 
query II rowsort label-4718
SELECT DISTINCT col2 DIV col2 + + - ( 33 ) DIV - col1 + + col0 AS col0, - col0 + + col2 * 99 + col2 FROM tab2 AS cor0
----
47
2254
65
3936
76
5725

skipif mysql # not compatible
query II rowsort label-4718
SELECT DISTINCT col2 / col2 + + - ( 33 ) / - col1 + + col0 AS col0, - col0 + + col2 * 99 + col2 FROM tab2 AS cor0
----
47
2254
65
3936
76
5725

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT DISTINCT - + SUM( col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4719
SELECT DISTINCT - + SUM ( col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT - col1 + - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-100
-128
-31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= 68 + - + 43
----

query II rowsort
SELECT ALL - col2 * 87 AS col1, 15 FROM tab2
----
-2001
15
-3480
15
-5046
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT DISTINCT + 48 + COUNT( * ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4723
SELECT DISTINCT + 48 + COUNT ( * ) AS col0 FROM tab2
----
51

query I rowsort
SELECT ALL + AVG ( DISTINCT + 72 ) FROM tab1 WHERE NOT 80 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4725
SELECT MAX( ALL - col1 ) DIV COUNT( * ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4725
SELECT MAX ( ALL - col1 ) / COUNT ( * ) AS col2 FROM tab1
----
-1

query I rowsort
SELECT ALL 89 * + col2 AS col0 FROM tab2
----
2047
3560
5162

query III rowsort
SELECT * FROM tab1 WHERE ( - 95 + ( + 77 ) * + 30 > - + col0 + + col0 * - ( + - ( - col1 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4728
SELECT CAST( - col1 AS SIGNED ) * - 93, + col0 AS col2 FROM tab0
----
1953
87
7533
15
93
97

skipif mysql # not compatible
query II rowsort label-4728
SELECT CAST ( - col1 AS INTEGER ) * - 93, + col0 AS col2 FROM tab0
----
1953
87
7533
15
93
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 * + 15 col1 FROM tab2 AS cor0 WHERE NULL <> + ( + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 * + col2 ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 * - 17 col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4732
SELECT DISTINCT - col2 DIV + + col2 AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4732
SELECT DISTINCT - col2 / + + col2 AS col1 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT + col0 * + col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND + col2 + - + 35
----

query I rowsort
SELECT - col2 * - - 33 AS col2 FROM tab0 AS cor0
----
-1551
-3267
-330

query II rowsort
SELECT + col0 AS col0, 47 * - + 6 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4736
SELECT - CAST( - + col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4736
SELECT - CAST ( - + col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4737
SELECT + 4 DIV + - col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4737
SELECT + 4 / + - col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col1 * 60 AS col1 FROM tab1
----
-2820
-300
-840

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4740
SELECT ALL - COUNT( DISTINCT + + 64 ) + + MIN( - - col1 ) col1, + MAX( DISTINCT + - ( + col2 ) ) AS col0 FROM tab1
----
4
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4740
SELECT ALL - COUNT ( DISTINCT + + 64 ) + + MIN ( - - col1 ) col1, + MAX ( DISTINCT + - ( + col2 ) ) AS col0 FROM tab1
----
4
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4741
SELECT + CAST( - + col0 AS SIGNED ) AS col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4741
SELECT + CAST ( - + col0 AS INTEGER ) AS col0 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4742
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - + col2 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4742
SELECT DISTINCT CAST ( NULL AS REAL ) + - + col2 AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 25 / + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * + - 74 * + col2 - + col0 AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + - col2 + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE + - 46 * col2 * + 40 + + - col1 + col1 + - ( - col2 ) IS NULL
----

query I rowsort
SELECT ALL - 90 + - 61 AS col0 FROM tab0 AS cor0
----
-151
-151
-151

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 = NULL
----

query I rowsort
SELECT DISTINCT - + 21 + + col2 AS col2 FROM tab0 cor0
----
-11
26
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT ALL 82 + - COUNT( * ) FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-4750
SELECT ALL 82 + - COUNT ( * ) FROM tab2 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT 45 - COUNT( * ) AS col2 FROM tab1 cor0
----
42

skipif mysql # not compatible
query I rowsort label-4751
SELECT 45 - COUNT ( * ) AS col2 FROM tab1 cor0
----
42

query I rowsort
SELECT 46 - - + col1 AS col0 FROM tab2 cor0
----
113
123
97

query II rowsort
SELECT ALL + col0 AS col0, col0 AS col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT DISTINCT 99 + + MIN( - col1 ) - + + 87 * COUNT( * ) AS col0 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT 99 + + MIN ( - col1 ) - + + 87 * COUNT ( * ) AS col0 FROM tab0
----
-243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 11 col1 FROM tab2
----
40
56
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT ALL - 46 - - - COUNT( * ) + 64 + + COUNT( * ) AS col1 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL - 46 - - - COUNT ( * ) + 64 + + COUNT ( * ) AS col1 FROM tab0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT DISTINCT + ( - - COUNT( * ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4757
SELECT DISTINCT + ( - - COUNT ( * ) ) AS col1 FROM tab2
----
3

query I rowsort
SELECT 9 + - col1 * col0 FROM tab1 WHERE ( - col0 + + 12 + + col1 / + col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4759
SELECT ALL - 81 DIV + col0 + col1 - + col0 FROM tab2 cor0
----
-9
12
4

skipif mysql # not compatible
query I rowsort label-4759
SELECT ALL - 81 / + col0 + col1 - + col0 FROM tab2 cor0
----
-9
12
4

query II rowsort
SELECT col1, - col2 * - col0 FROM tab2 AS cor0
----
51
1058
67
4350
77
2560

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4761
SELECT DISTINCT + 6 * + - col1 * CAST( NULL AS DECIMAL ) * + + col2 + + 2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4761
SELECT DISTINCT + 6 * + - col1 * CAST ( NULL AS REAL ) * + + col2 + + 2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( col1 ) IS NULL )
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 WHERE + 57 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT - SUM( ALL - - 15 ) AS col0 FROM tab2 WHERE NOT + 21 + + - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4764
SELECT - SUM ( ALL - - 15 ) AS col0 FROM tab2 WHERE NOT + 21 + + - col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4765
SELECT ALL * FROM tab2 WHERE - 6 + + + col1 <= - ( - + CAST( col0 AS DECIMAL ) )
----
46
51
23
75
67
58

skipif mysql # not compatible
query III rowsort label-4765
SELECT ALL * FROM tab2 WHERE - 6 + + + col1 <= - ( - + CAST ( col0 AS REAL ) )
----
46
51
23
75
67
58

query I rowsort
SELECT ALL 0 * ( + col1 ) + - - col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4767
SELECT DISTINCT - - col2 DIV - 86 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT - - col2 / - 86 AS col0 FROM tab1 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4768
SELECT + 73 DIV col1 - - - 81 FROM tab1 AS cor0
----
-67
-76
-80

skipif mysql # not compatible
query I rowsort label-4768
SELECT + 73 / col1 - - - 81 FROM tab1 AS cor0
----
-67
-76
-80

query I rowsort
SELECT 25 * + - ( + - col2 ) AS col1 FROM tab2 AS cor0
----
1000
1450
575

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 94 * col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4771
SELECT DISTINCT - - col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT - - col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4772
SELECT DISTINCT - MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT DISTINCT - MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4773
SELECT DISTINCT 17 DIV - + 78 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4773
SELECT DISTINCT 17 / - + 78 FROM tab1
----
0

query II rowsort
SELECT ALL - col0, col1 AS col0 FROM tab1
----
-51
14
-85
5
-91
47

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col1 * + + col0 BETWEEN + - 89 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4776
SELECT + 1 * - - 32 + col0 + + 30 DIV - + 52 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
117
123
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4776
SELECT + 1 * - - 32 + col0 + + 30 / - + 52 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
117
123
83

query I rowsort
SELECT ALL + - col1 * col0 + + col0 + - col2 FROM tab0 cor0
----
-1247
-1750
-99

query I rowsort
SELECT ALL + + col1 + + col1 AS col0 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT 45 * - col2 * + + col0 FROM tab1 AS cor0
----
-220320
-225675
-278460

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT - MIN( DISTINCT + - 14 ) FROM tab1 cor0
----
14

skipif mysql # not compatible
query I rowsort label-4780
SELECT - MIN ( DISTINCT + - 14 ) FROM tab1 cor0
----
14

query I rowsort
SELECT ALL - col1 + + - 6 FROM tab2 AS cor0
----
-57
-73
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4782
SELECT COUNT( ALL - 14 ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4782
SELECT COUNT ( ALL - 14 ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 22 + col1 AS col1 FROM tab2 AS cor0
----
73
89
99

query I rowsort
SELECT + - col1 + - 19 * col2 FROM tab2 AS cor0
----
-1169
-488
-837

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 50 BETWEEN - 15 AND + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT DISTINCT - - COUNT( * ) + COUNT( DISTINCT + col2 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4786
SELECT DISTINCT - - COUNT ( * ) + COUNT ( DISTINCT + col2 ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL SUM( - ( - - ( col2 ) ) ) - + 99 AS col2 FROM tab1 AS cor0
----
-322

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL SUM ( - ( - - ( col2 ) ) ) - + 99 AS col2 FROM tab1 AS cor0
----
-322

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4788
SELECT - ( + 56 ) + 5 * + COUNT( * ) DIV COUNT( * ) + 10 FROM tab0 cor0
----
-41

skipif mysql # not compatible
query I rowsort label-4788
SELECT - ( + 56 ) + 5 * + COUNT ( * ) / COUNT ( * ) + 10 FROM tab0 cor0
----
-41

query II rowsort
SELECT + col2, + 81 * 56 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 * + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT + - 97 <= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4791
SELECT + col2 + - + CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) + col0 AS col0, - col1 * - + col2 col1 FROM tab0 AS cor0
----
NULL
210
NULL
3807
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4791
SELECT + col2 + - + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) + col0 AS col0, - col1 * - + col2 col1 FROM tab0 AS cor0
----
NULL
210
NULL
3807
NULL
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 / + col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT DISTINCT - COUNT( * ) + - 53 AS col1 FROM tab0 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-4793
SELECT DISTINCT - COUNT ( * ) + - 53 AS col1 FROM tab0 AS cor0
----
-56

query I rowsort
SELECT ALL col1 + 13 AS col0 FROM tab2 AS cor0
----
64
80
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4795
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 BETWEEN + col0 AND - + ( ( + col2 ) ) OR NULL <= NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 3 - col2 FROM tab0
----
-44
-7
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT - MAX( - col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4798
SELECT - MAX ( - col0 ) AS col2 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT ALL SUM( DISTINCT - - col2 ) - - + 67 - ( SUM( - col1 ) ) FROM tab0
----
326

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL SUM ( DISTINCT - - col2 ) - - + 67 - ( SUM ( - col1 ) ) FROM tab0
----
326

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT ALL MAX( + 2 ) AS col1 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL MAX ( + 2 ) AS col1 FROM tab1
----
2

query I rowsort
SELECT + col2 - col0 + 97 + 99 AS col1 FROM tab2
----
172
173
179

query I rowsort
SELECT ALL ( + + 83 ) FROM tab1 AS cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT ALL + MAX( + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL + MAX ( + col2 ) FROM tab2 AS cor0
----
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 52 < - + ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 11 IS NULL
----

query I rowsort
SELECT ALL + - col2 * - 55 + - col1 FROM tab1 WHERE NOT col2 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL - col2 * + col1 + - col0 AS col0 FROM tab1 AS cor0
----
-1395
-3287
-380

query II rowsort
SELECT 35 AS col2, + ( 58 ) AS col0 FROM tab0 AS cor0
----
35
58
35
58
35
58

query I rowsort
SELECT ALL - col2 * + 96 FROM tab1 AS cor0
----
-5664
-6528
-9216

query I rowsort
SELECT DISTINCT - 74 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 50 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4811
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - 91 * - 92 + - ( col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4811
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - 91 * - 92 + - ( col1 ) IS NOT NULL
----

query II rowsort
SELECT ALL + col2 * - 42 * col1 * + col2 + - col1 + - 6 AS col1, 89 FROM tab2 cor0
----
-1133175
89
-5174483
89
-9466369
89

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4813
SELECT DISTINCT * FROM tab1 WHERE NOT + - CAST( - col2 AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query III rowsort label-4813
SELECT DISTINCT * FROM tab1 WHERE NOT + - CAST ( - col2 AS REAL ) = NULL
----

query I rowsort
SELECT 15 * - - col0 * - col2 FROM tab0
----
-10575
-13050
-144045

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT ( - 5 ) * COUNT( * ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4815
SELECT ( - 5 ) * COUNT ( * ) AS col0 FROM tab0
----
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-4816
SELECT 56 DIV - + col1, + col0 AS col2 FROM tab0
----
-2
87
-56
97
0
15

skipif mysql # not compatible
query II rowsort label-4816
SELECT 56 / - + col1, + col0 AS col2 FROM tab0
----
-2
87
-56
97
0
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4817
SELECT + 80 DIV + + col1 FROM tab0
----
0
3
80

skipif mysql # not compatible
query I rowsort label-4817
SELECT + 80 / + + col1 FROM tab0
----
0
3
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT DISTINCT + MIN( DISTINCT col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4818
SELECT DISTINCT + MIN ( DISTINCT col0 ) AS col0 FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4819
SELECT ALL + 63 + + CAST( NULL AS SIGNED ) AS col1, - col2 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-4819
SELECT ALL + 63 + + CAST ( NULL AS INTEGER ) AS col1, - col2 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4820
SELECT + + MIN( DISTINCT col0 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4820
SELECT + + MIN ( DISTINCT col0 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + col2 + + 22 FROM tab1 AS cor0
----
-37
-46
-74

query I rowsort
SELECT ALL - 45 + + 78 FROM tab1 AS cor0
----
33
33
33

query II rowsort
SELECT DISTINCT - + ( - col0 ) * - + col2 + + - ( + - col2 ), ( - col1 ) AS col2 FROM tab0 AS cor0
----
-658
-81
-860
-21
-9504
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4824
SELECT col2 + - + col1 + ( + CAST( NULL AS SIGNED ) ) + ( col1 ) - + col1 * + col0 / + + 82 * - 42 * + 95 * + + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4824
SELECT col2 + - + col1 + ( + CAST ( NULL AS INTEGER ) ) + ( col1 ) - + col1 * + col0 / + + 82 * - 42 * + 95 * + + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 37 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
37

query I rowsort
SELECT col0 * 5 FROM tab2
----
230
320
375

query I rowsort
SELECT 53 * + 28 AS col0 FROM tab0
----
1484
1484
1484

onlyif mysql # aggregate syntax: 
query I rowsort label-4828
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE 29 = - - col2
----
0

skipif mysql # not compatible
query I rowsort label-4828
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE 29 = - - col2
----
0

query I rowsort
SELECT col0 * + 96 AS col0 FROM tab0
----
1440
8352
9312

query III rowsort
SELECT * FROM tab2 WHERE + col1 * + - col1 * + col0 <= ( + 68 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT DISTINCT 20 * COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 11 IS NULL
----
180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4831
SELECT DISTINCT 20 * COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 11 IS NULL
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT ALL + 60 * - COUNT( * ) FROM tab0 AS cor0 WHERE NULL >= NULL AND NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL + 60 * - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL >= NULL AND NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL 66 + - col2 FROM tab2 AS cor0
----
26
43
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4834
SELECT + COUNT( * ) - - SUM( col2 ) FROM tab2 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-4834
SELECT + COUNT ( * ) - - SUM ( col2 ) FROM tab2 AS cor0
----
124

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4835
SELECT DISTINCT CAST( NULL AS DECIMAL ) * 56 - - col1 * - 40 + - col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4835
SELECT DISTINCT CAST ( NULL AS REAL ) * 56 - - col1 * - 40 + - col0 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4836
SELECT + col1 * - col0 + + ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4836
SELECT + col1 * - col0 + + ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4837
SELECT - COUNT( - col2 ) FROM tab0 WHERE + CAST( NULL AS DECIMAL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4837
SELECT - COUNT ( - col2 ) FROM tab0 WHERE + CAST ( NULL AS REAL ) IS NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4838
SELECT - COUNT( * ) / CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) * - 7 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4838
SELECT - COUNT ( * ) / CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) * - 7 col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 5 + + - col0 + + 58 + - col1, + col0 col2 FROM tab2
----
-44
46
-88
64
-89
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( col2, col1 * - col1, + ( col2 ) + + col2 + col1 + col1 * - ( + - col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4841
SELECT DISTINCT - 63 DIV - - col2 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-4841
SELECT DISTINCT - 63 / - - col2 FROM tab2
----
-1
-2

query I rowsort
SELECT ALL + col1 * - - 22 FROM tab2
----
1122
1474
1694

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - col0 ) * col2 IN ( + 98, col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 74 col2 FROM tab0 AS cor0
----
74
74
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4845
SELECT DISTINCT - - 22 * - col2 + 71 - + + 12 DIV + - col0 AS col2 FROM tab0 AS cor0
----
-149
-2107
-963

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT - - 22 * - col2 + 71 - + + 12 / + - col0 AS col2 FROM tab0 AS cor0
----
-149
-2107
-963

query I rowsort
SELECT DISTINCT - 11 * + col0 FROM tab2 cor0
----
-506
-704
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT ALL - 47 + COUNT( * ) FROM tab2 cor0
----
-44

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL - 47 + COUNT ( * ) FROM tab2 cor0
----
-44

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + col1 - - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * - - 91 * 60 * - - ( + col0 ) AS col1 FROM tab1 AS cor0
----
-2320500
-23352420
-3898440

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT + + ( COUNT( * ) ) * + 86 FROM tab0 cor0
----
258

skipif mysql # not compatible
query I rowsort label-4851
SELECT + + ( COUNT ( * ) ) * + 86 FROM tab0 cor0
----
258

query I rowsort
SELECT ALL + 18 AS col0 FROM tab1 AS cor0 WHERE ( NULL IS NULL )
----
18
18
18

query I rowsort
SELECT ALL + 38 + + - 16 FROM tab0 AS cor0
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-4854
SELECT ALL + SUM( + col2 ) * + 71 + - COUNT( * ) AS col1 FROM tab0
----
11073

skipif mysql # not compatible
query I rowsort label-4854
SELECT ALL + SUM ( + col2 ) * + 71 + - COUNT ( * ) AS col1 FROM tab0
----
11073

query III rowsort
SELECT * FROM tab0 WHERE ( + - ( + + col0 ) ) - - col1 NOT BETWEEN - 87 AND + 42
----
15
81
47
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + - 50 >= NULL
----

query I rowsort
SELECT + + 87 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col0
----

query II rowsort
SELECT 22 + + - 4 * 22 AS col2, col0 FROM tab0
----
-66
15
-66
87
-66
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT ALL + COUNT( * ) * + 36 FROM tab2 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL + COUNT ( * ) * + 36 FROM tab2 AS cor0
----
108

query I rowsort
SELECT - + 22 FROM tab0 cor0 WHERE - col1 + - col2 - - 32 * + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - + col1 + col1 * - col0 * + 49 AS col0 FROM tab1 AS cor0
----
-20830
-209620
-35000

query I rowsort
SELECT ALL - col1 - col2 * + col0 - 28 AS col1 FROM tab2 AS cor0
----
-1137
-2665
-4445

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4863
SELECT ALL CAST( NULL AS SIGNED ) + + col0 * - col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL CAST ( NULL AS INTEGER ) + + col0 * - col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 50 AS col0, 2 col0 FROM tab1
----
50
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT MAX( DISTINCT + + 2 ) AS col0 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-4865
SELECT MAX ( DISTINCT + + 2 ) AS col0 FROM tab0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT ALL + COUNT( * ) * ( COUNT( * ) ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL + COUNT ( * ) * ( COUNT ( * ) ) AS col0 FROM tab1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4867
SELECT DISTINCT 55 DIV + col0 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4867
SELECT DISTINCT 55 / + col0 AS col2 FROM tab1
----
0
1

query I rowsort
SELECT col0 * - 26 AS col0 FROM tab2
----
-1196
-1664
-1950

query I rowsort
SELECT ALL col0 * col1 * + 20 AS col1 FROM tab1
----
14280
8500
85540

onlyif mysql # DIV for integer division: 
query I rowsort label-4870
SELECT DISTINCT + col0 DIV - 14 AS col2 FROM tab1
----
-3
-6

skipif mysql # not compatible
query I rowsort label-4870
SELECT DISTINCT + col0 / - 14 AS col2 FROM tab1
----
-3
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 * - + col2 col1 FROM tab0
----
-1128
-2376
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT COUNT( ALL + - col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4872
SELECT COUNT ( ALL + - col2 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT DISTINCT + SUM( 94 ) col2 FROM tab2 cor0
----
282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4873
SELECT DISTINCT + SUM ( 94 ) col2 FROM tab2 cor0
----
282

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 + ( col1 ) IS NOT NULL
----

query I rowsort
SELECT - - 26 * + + col1 + - + col0 * + + col1 FROM tab1 cor0
----
-295
-3055
-350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4876
SELECT - CAST( NULL AS SIGNED ) * + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4876
SELECT - CAST ( NULL AS INTEGER ) * + + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 93 + + + col0 FROM tab0
----
-6
-78
4

query I rowsort
SELECT col2 + + 87 AS col0 FROM tab1
----
146
155
183

query II rowsort
SELECT DISTINCT col0 AS col1, + 43 AS col2 FROM tab0
----
15
43
87
43
97
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4880
SELECT + 60 * 42 + - 6 * + + CAST( + + col0 AS SIGNED ) AS col0 FROM tab0
----
1938
1998
2430

skipif mysql # not compatible
query I rowsort label-4880
SELECT + 60 * 42 + - 6 * + + CAST ( + + col0 AS INTEGER ) AS col0 FROM tab0
----
1938
1998
2430

query I rowsort
SELECT + 96 FROM tab1 WHERE NULL IS NULL
----
96
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4882
SELECT ALL col0 + 70 - + + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4882
SELECT ALL col0 + 70 - + + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4883
SELECT ALL 52 FROM tab2 WHERE 34 + - - 89 IN ( CAST( 31 AS SIGNED ), 1 )
----

skipif mysql # not compatible
query I rowsort label-4883
SELECT ALL 52 FROM tab2 WHERE 34 + - - 89 IN ( CAST ( 31 AS INTEGER ), 1 )
----

query I rowsort
SELECT DISTINCT + 66 + - col0 AS col0 FROM tab0 AS cor0
----
-21
-31
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= col0 / - + 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT + SUM( DISTINCT + - col0 ) AS col0 FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4886
SELECT + SUM ( DISTINCT + - col0 ) AS col0 FROM tab2 cor0
----
-185

onlyif mysql # aggregate syntax: 
query II rowsort label-4887
SELECT COUNT( * ), 27 AS col1 FROM tab2
----
3
27

skipif mysql # not compatible
query II rowsort label-4887
SELECT COUNT ( * ), 27 AS col1 FROM tab2
----
3
27

onlyif mysql # aggregate syntax: 
query II rowsort label-4888
SELECT 80 AS col2, + MAX( col1 ) * + - COUNT( 87 ) + + 83 AS col2 FROM tab2
----
80
-148

skipif mysql # not compatible
query II rowsort label-4888
SELECT 80 AS col2, + MAX ( col1 ) * + - COUNT ( 87 ) + + 83 AS col2 FROM tab2
----
80
-148

query II rowsort
SELECT ALL col2 AS col1, 43 AS col1 FROM tab1
----
59
43
68
43
96
43

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 65 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + + 12, ( - - col2 ) AS col2 FROM tab0 AS cor0
----
12
10
12
47
12
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT - + MAX( DISTINCT - 36 ) * 35 FROM tab2 AS cor0
----
1260

skipif mysql # not compatible
query I rowsort label-4893
SELECT - + MAX ( DISTINCT - 36 ) * 35 FROM tab2 AS cor0
----
1260

query I rowsort
SELECT - 88 * + 29 FROM tab1 AS cor0
----
-2552
-2552
-2552

query II rowsort
SELECT ALL 65 * - 75 AS col0, col0 FROM tab2
----
-4875
46
-4875
64
-4875
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4896
SELECT DISTINCT AVG ( + 72 ) * - + CAST( NULL AS SIGNED ) / - + 4 + 58 + - 54 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT AVG ( + 72 ) * - + CAST ( NULL AS INTEGER ) / - + 4 + 58 + - 54 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT 63 * - - 30 FROM tab1 WHERE NOT NULL = - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 92 * 48 + - col1 < 98 * - + 36 + col1
----

query I rowsort
SELECT ALL + col1 * - ( + col2 ) FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 27 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * col0 + - col0 - + + col0 - + col2 * - 79 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col1 - - 80 * 92 AS col1 FROM tab0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT 3 * + COUNT( + col2 ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4903
SELECT 3 * + COUNT ( + col2 ) AS col1 FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4904
SELECT ALL + ( col1 ) * + ( 19 ) * - 48 AS col2, + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
-12768
NULL
-42864
NULL
-4560
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4904
SELECT ALL + ( col1 ) * + ( 19 ) * - 48 AS col2, + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
-12768
NULL
-42864
NULL
-4560
NULL

query I rowsort
SELECT col1 * - - 14 FROM tab1 AS cor0
----
196
658
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT MIN( ALL + - 2 ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4906
SELECT MIN ( ALL + - 2 ) FROM tab0 AS cor0
----
-2

query I rowsort
SELECT + 82 + col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) < col1
----

query II rowsort
SELECT DISTINCT - col0 AS col0, + 77 * - col2 FROM tab1
----
-51
-7392
-85
-4543
-91
-5236

onlyif mysql # aggregate syntax: 
query II rowsort label-4909
SELECT COUNT( * ) AS col1, - 6 AS col0 FROM tab1
----
3
-6

skipif mysql # not compatible
query II rowsort label-4909
SELECT COUNT ( * ) AS col1, - 6 AS col0 FROM tab1
----
3
-6

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col0, col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 + + + col1 + - 75 col0, + col1 FROM tab1 AS cor0
----
-10
14
15
5
63
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT DISTINCT + SUM( ALL - ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4912
SELECT DISTINCT + SUM ( ALL - ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT - 3 + + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4913
SELECT - 3 + + COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4914
SELECT + col0 + CAST( NULL AS SIGNED ) * 7 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4914
SELECT + col0 + CAST ( NULL AS INTEGER ) * 7 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - + 2 ) AS col1 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT ALL + + 78 AS col1 FROM tab2 WHERE NOT + col0 * + 55 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col0 - - - ( + col2 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + 23 AND NULL
----

query I rowsort
SELECT ALL col0 + - 67 + - + 89 AS col0 FROM tab0 AS cor0
----
-141
-59
-69

query I rowsort
SELECT - 69 * + 48 FROM tab2 AS cor0
----
-3312
-3312
-3312

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 6 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4922
SELECT ALL + col0 * + 58 + col2 - col1 + col0 DIV col1 - - 51 + + col1 AS col0 FROM tab2 AS cor0
----
2742
3803
4460

skipif mysql # not compatible
query I rowsort label-4922
SELECT ALL + col0 * + 58 + col2 - col1 + col0 / col1 - - 51 + + col1 AS col0 FROM tab2 AS cor0
----
2742
3803
4460

query I rowsort
SELECT + ( 14 ) - 85 AS col1 FROM tab0 AS cor0
----
-71
-71
-71

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 25 + + - col0 >= + 53
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4925
SELECT ALL - COUNT( * ) - 44 DIV - COUNT( * ) AS col0 FROM tab2 cor0
----
11

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL - COUNT ( * ) - 44 / - COUNT ( * ) AS col0 FROM tab2 cor0
----
11

query I rowsort
SELECT DISTINCT col0 - + col0 + - - col1 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4927
SELECT + + COUNT( + + col0 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4927
SELECT + + COUNT ( + + col0 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4928
SELECT MIN( DISTINCT col1 ) AS col0 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-4928
SELECT MIN ( DISTINCT col1 ) AS col0 FROM tab1 cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4929
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * 34 BETWEEN + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4929
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * 34 BETWEEN + col0 AND NULL
----

query I rowsort
SELECT ALL col1 * + + 63 AS col0 FROM tab2 AS cor0
----
3213
4221
4851

query I rowsort
SELECT DISTINCT + 40 * + 2 * + col0 FROM tab1 AS cor0
----
4080
6800
7280

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 AND + col2 + - + 71
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 NOT IN ( - col1, 24, col1, - col2 * - - 41, - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) = - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4935
SELECT * FROM tab1 WHERE NOT + ( + + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4935
SELECT * FROM tab1 WHERE NOT + ( + + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT DISTINCT + COUNT( * ) * - 25 AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4936
SELECT DISTINCT + COUNT ( * ) * - 25 AS col0 FROM tab2
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4937
SELECT 47 DIV + + col1 FROM tab0
----
0
2
47

skipif mysql # not compatible
query I rowsort label-4937
SELECT 47 / + + col1 FROM tab0
----
0
2
47

query II rowsort
SELECT + - col0, col0 * + ( + col2 ) * + 37 AS col2 FROM tab2 AS cor0
----
-46
39146
-64
94720
-75
160950

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 + + 52 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 35 * + - col0 AS col0 FROM tab1 AS cor0 WHERE NOT 97 <= NULL
----

query I rowsort
SELECT DISTINCT - col0 * - + 77 AS col2 FROM tab0 AS cor0
----
1155
6699
7469

onlyif mysql # DIV for integer division: 
query I rowsort label-4942
SELECT ALL col2 DIV col1 + col2 * - 32 + - - 47 AS col1 FROM tab2 AS cor0
----
-1233
-1809
-689

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL col2 / col1 + col2 * - 32 + - - 47 AS col1 FROM tab2 AS cor0
----
-1233
-1809
-689

query I rowsort
SELECT DISTINCT + - 56 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT DISTINCT 4 * - COUNT( * ) * + + 60 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-2160

skipif mysql # not compatible
query I rowsort label-4944
SELECT DISTINCT 4 * - COUNT ( * ) * + + 60 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-2160

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT ALL MAX( + 60 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
60

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL MAX ( + 60 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT DISTINCT - COUNT( * ) + - + 1 AS col2 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT - COUNT ( * ) + - + 1 AS col2 FROM tab0
----
-4

query I rowsort
SELECT + + 10 AS col2 FROM tab0 cor0
----
10
10
10

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 cor0 WHERE NULL > + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 8 BETWEEN - + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4951
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = - col2 / - CAST( + col0 AS DECIMAL ) / + CAST( NULL AS DECIMAL ) + col0 + CAST( + 16 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = - col2 / - CAST ( + col0 AS REAL ) / + CAST ( NULL AS REAL ) + col0 + CAST ( + 16 AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + col0
----

query II rowsort
SELECT ALL + - 12 + + col0 AS col1, - 80 * + - 11 FROM tab1 AS cor0
----
39
880
73
880
79
880

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4954
SELECT DISTINCT 55 DIV - + MAX( DISTINCT 21 ) - + + 80 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-4954
SELECT DISTINCT 55 / - + MAX ( DISTINCT 21 ) - + + 80 FROM tab2 AS cor0
----
-82

query II rowsort
SELECT ALL - col2, - col0 + + col1 AS col1 FROM tab1
----
-59
-80
-68
-44
-96
-37

query I rowsort
SELECT col0 - - col0 * 29 * - col2 AS col1 FROM tab2
----
-126075
-30636
-74176

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT DISTINCT + ( 56 ) - - COUNT( * ) FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-4957
SELECT DISTINCT + ( 56 ) - - COUNT ( * ) FROM tab2
----
59

query I rowsort
SELECT - col0 + - + col1 AS col1 FROM tab1
----
-138
-65
-90

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( - + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT ALL - COUNT( ALL - 84 ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4960
SELECT ALL - COUNT ( ALL - 84 ) col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT DISTINCT - SUM( 84 ) FROM tab0
----
-252

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT - SUM ( 84 ) FROM tab0
----
-252

onlyif mysql # DIV for integer division: 
query I rowsort label-4962
SELECT col2 DIV col1 * + 82 + - 21 FROM tab2
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-4962
SELECT col2 / col1 * + 82 + - 21 FROM tab2
----
-21
-21
-21

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 57 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 * + col0 + 90 AS col2 FROM tab2 AS cor0
----
-2256
-4838
-4935

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT DISTINCT - - 88 * - - SUM( ALL - 29 ) + + 7 FROM tab1 AS cor0
----
-7649

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT - - 88 * - - SUM ( ALL - 29 ) + + 7 FROM tab1 AS cor0
----
-7649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - col1 col2 FROM tab1 AS cor0
----
-138
-65
-90

query I rowsort
SELECT ALL - + 57 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 < 4 + - col0 + + - col2 * + - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4969
SELECT col1 DIV + + ( - col1 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4969
SELECT col1 / + + ( - col1 ) FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL 56 * + - col0 + col2 FROM tab2 AS cor0
----
-2553
-3544
-4142

query I rowsort
SELECT DISTINCT AVG ( 53 ) AS col2 FROM tab1 WHERE NOT NULL < - col1 * col2 - 15
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4972
SELECT 37 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4972
SELECT 37 / col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + - col0 + + col1 FROM tab0 WHERE NULL <= - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 11 col2 FROM tab2
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 col2 FROM tab2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT DISTINCT + + MIN( ALL + + 98 ) FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT + + MIN ( ALL + + 98 ) FROM tab0 AS cor0
----
98

query I rowsort
SELECT ALL col2 + - 9 AS col2 FROM tab0 AS cor0
----
1
38
90

query I rowsort
SELECT ALL - + col0 FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN 50 AND NULL
----

query I rowsort
SELECT + + 34 * col0 AS col2 FROM tab2 AS cor0
----
1564
2176
2550

query III rowsort
SELECT * FROM tab2 WHERE + 65 <> ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 + 42 + - 46 + + col1 * - col1 * + col1 AS col0 FROM tab0
----
-531430
-9178
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT - MIN( - 46 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
46

skipif mysql # not compatible
query I rowsort label-4982
SELECT - MIN ( - 46 ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
46

query I rowsort
SELECT - col2 + col2 + 98 AS col1 FROM tab0
----
98
98
98

query I rowsort
SELECT DISTINCT + col1 + + ( + col1 ) AS col2 FROM tab0 AS cor0
----
162
2
42

query II rowsort
SELECT + col2 + - 44 AS col0, - 4 AS col1 FROM tab1 AS cor0
----
15
-4
24
-4
52
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-4986
SELECT + 87 + COUNT( * ) AS col2, + 75 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
90
75

skipif mysql # not compatible
query II rowsort label-4986
SELECT + 87 + COUNT ( * ) AS col2, + 75 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
90
75

query I rowsort
SELECT DISTINCT - col2 * - col0 + + - 33 + - col2 FROM tab0 AS cor0
----
625
827
9471

onlyif mysql # aggregate syntax: 
query I rowsort label-4988
SELECT ALL - 44 + + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-4988
SELECT ALL - 44 + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT DISTINCT - COUNT( col0 ) col2 FROM tab2 cor0 WHERE - col2 * col0 * ( 41 ) / + + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4989
SELECT DISTINCT - COUNT ( col0 ) col2 FROM tab2 cor0 WHERE - col2 * col0 * ( 41 ) / + + col1 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT DISTINCT - MAX( - col0 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4990
SELECT DISTINCT - MAX ( - col0 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT - ( + + col2 ) + col1 + - col0 AS col1 FROM tab1 AS cor0
----
-112
-133
-139

query II rowsort
SELECT ALL + ( 53 ), col1 AS col2 FROM tab1 AS cor0 WHERE 79 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4993
SELECT + COUNT( * ), COUNT( * ) + + + COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4993
SELECT + COUNT ( * ), COUNT ( * ) + + + COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
3
3

query II rowsort
SELECT ALL + 35 - + col2 AS col2, col0 * - ( col2 ) FROM tab0 AS cor0
----
-12
-705
-64
-9603
25
-870

query I rowsort
SELECT DISTINCT 92 + col1 AS col1 FROM tab1
----
106
139
97

query I rowsort
SELECT DISTINCT + 71 - - col1 + - col2 FROM tab2
----
108
80
99

query III rowsort
SELECT * FROM tab0 WHERE ( + ( 73 ) + col0 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4998
SELECT + 30 * + ( - - MIN( + - col1 ) ) AS col0 FROM tab2
----
-2310

skipif mysql # not compatible
query I rowsort label-4998
SELECT + 30 * + ( - - MIN ( + - col1 ) ) AS col0 FROM tab2
----
-2310

query I rowsort
SELECT DISTINCT 78 * - col0 * - col0 FROM tab0
----
17550
590382
733902

query I rowsort
SELECT - col2 - ( - - col1 ) + col0 AS col1 FROM tab1
----
-24
-59
21

query I rowsort
SELECT + 4 - 45 AS col1 FROM tab0 AS cor0
----
-41
-41
-41

query I rowsort
SELECT DISTINCT - col1 + - + col2 FROM tab1 AS cor0
----
-110
-115
-64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * ( - col0 ) * 54 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5004
SELECT - col1 * + col1 - - CAST( NULL AS SIGNED ) + 51 + + 69 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5004
SELECT - col1 * + col1 - - CAST ( NULL AS INTEGER ) + 51 + + 69 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - 43 ) AS col2 FROM tab0
----
-43
-43
-43

query II rowsort
SELECT ALL - 79, + ( + 88 ) AS col1 FROM tab2 AS cor0
----
-79
88
-79
88
-79
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5007
SELECT COUNT( ALL + + col2 ) * - - COUNT( * ) DIV - - 24 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5007
SELECT COUNT ( ALL + + col2 ) * - - COUNT ( * ) / - - 24 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5008
SELECT + col0 DIV + - 61 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5008
SELECT + col0 / + - 61 FROM tab1
----
-1
-1
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < col2 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT DISTINCT SUM( col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT SUM ( col2 ) AS col1 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT ALL MIN( ALL - 41 ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL MIN ( ALL - 41 ) FROM tab1
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT ALL COUNT( ALL + 53 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5012
SELECT ALL COUNT ( ALL + 53 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5013
SELECT - COUNT( * ) DIV - ( MIN( ALL col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5013
SELECT - COUNT ( * ) / - ( MIN ( ALL col1 ) ) FROM tab0
----
3

query I rowsort
SELECT ALL 3 FROM tab0, tab0 cor0
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT DISTINCT - - col1 + - - 98 AS col1 FROM tab2 AS cor0
----
149
165
175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5016
SELECT DISTINCT - 87 + + 7 * CAST( 20 AS SIGNED ) * - 76 + + + 60 + - col1 FROM tab0 AS cor0
----
-10668
-10688
-10748

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT - 87 + + 7 * CAST ( 20 AS INTEGER ) * - 76 + + + 60 + - col1 FROM tab0 AS cor0
----
-10668
-10688
-10748

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT ALL - + MAX( ALL - col1 ) - + ( + + COUNT( * ) ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-5017
SELECT ALL - + MAX ( ALL - col1 ) - + ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
48

query I rowsort
SELECT - - 68 + 50 AS col2 FROM tab2 AS cor0
----
118
118
118

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT ALL COUNT( ALL + col0 ) - + 72 * + COUNT( * ) * - + COUNT( * ) FROM tab2 AS cor0
----
651

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL COUNT ( ALL + col0 ) - + 72 * + COUNT ( * ) * - + COUNT ( * ) FROM tab2 AS cor0
----
651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5020
SELECT + CAST( NULL AS SIGNED ) + col1 + + 8 * - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5020
SELECT + CAST ( NULL AS INTEGER ) + col1 + + 8 * - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 1 - - 29 + + col0 AS col2 FROM tab1
----
115
121
81

query I rowsort
SELECT ALL + 26 * + col1 + - col2 FROM tab1
----
1154
268
71

query I rowsort
SELECT ALL + col0 * + 43 AS col1 FROM tab1
----
2193
3655
3913

query II rowsort
SELECT DISTINCT + ( + - col0 ) AS col1, col0 AS col2 FROM tab0
----
-15
15
-87
87
-97
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + - 38 IS NOT NULL
----

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab2 WHERE col0 <= + col2 / col2 * - ( + 60 ) - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5027
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5027
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT + + 67 * + + 44 * col1 FROM tab1 AS cor0
----
138556
14740
41272

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT DISTINCT + + COUNT( - ( + col1 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5029
SELECT DISTINCT + + COUNT ( - ( + col1 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 col1 FROM tab1 AS cor0
----
-69
-69
-69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * col2 * + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5032
SELECT ALL - col2 DIV + + col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL - col2 / + + col0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - col2 + + + 80 FROM tab0
----
-19
33
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5034
SELECT + col1 + + + 72 + - 1 * - + col0 * - CAST( + col1 AS SIGNED ) AS col2 FROM tab1
----
-348
-4158
-628

skipif mysql # not compatible
query I rowsort label-5034
SELECT + col1 + + + 72 + - 1 * - + col0 * - CAST ( + col1 AS INTEGER ) AS col2 FROM tab1
----
-348
-4158
-628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, + col2 col2 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT + ( - 93 ) AS col2 FROM tab0 AS cor0
----
-93

query II rowsort
SELECT - 36, - 66 AS col1 FROM tab2 cor0
----
-36
-66
-36
-66
-36
-66

query I rowsort
SELECT col1 FROM tab1 WHERE - 19 + 40 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL - col0 + + ( col2 ) AS col1 FROM tab0
----
-77
2
32

query I rowsort
SELECT ( - 71 ) * col1 AS col1 FROM tab1
----
-3337
-355
-994

query I rowsort
SELECT ALL 55 FROM tab0 WHERE NULL IS NULL
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5042
SELECT COUNT( * ) * - 36 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-5042
SELECT COUNT ( * ) * - 36 FROM tab2
----
-108

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 NOT BETWEEN NULL AND ( col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5044
SELECT - 99 DIV 7 + SUM( + ( 73 ) ) * - COUNT( * ) AS col0 FROM tab1
----
-671

skipif mysql # not compatible
query I rowsort label-5044
SELECT - 99 / 7 + SUM ( + ( 73 ) ) * - COUNT ( * ) AS col0 FROM tab1
----
-671

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5045
SELECT 17 * + COUNT( - CAST( 57 AS SIGNED ) * col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5045
SELECT 17 * + COUNT ( - CAST ( 57 AS INTEGER ) * col0 ) FROM tab1
----
51

query I rowsort
SELECT - col1 * ( col1 ) + - 19 AS col0 FROM tab0
----
-20
-460
-6580

query I rowsort
SELECT DISTINCT 3 + col2 AS col2 FROM tab1 WHERE 78 NOT IN ( 27 )
----
62
71
99

query I rowsort
SELECT 29 * + 94 AS col0 FROM tab2
----
2726
2726
2726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5049
SELECT ALL COUNT( * ) * - SUM( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5049
SELECT ALL COUNT ( * ) * - SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5050
SELECT - 55 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5050
SELECT - 55 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5051
SELECT ALL * FROM tab1 WHERE NOT - 89 / CAST( NULL AS SIGNED ) >= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5051
SELECT ALL * FROM tab1 WHERE NOT - 89 / CAST ( NULL AS INTEGER ) >= ( NULL )
----

query I rowsort
SELECT DISTINCT 99 AS col2 FROM tab2 WHERE NOT NULL < - col0
----

query I rowsort
SELECT + 44 - col2 * col0 FROM tab2
----
-1014
-2516
-4306

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT ALL COUNT( * ) * SUM( + 72 ) AS col2 FROM tab1
----
648

skipif mysql # not compatible
query I rowsort label-5054
SELECT ALL COUNT ( * ) * SUM ( + 72 ) AS col2 FROM tab1
----
648

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT DISTINCT + COUNT( * ) * + 63 FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-5055
SELECT DISTINCT + COUNT ( * ) * + 63 FROM tab1
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT DISTINCT COUNT( * ) * + SUM( DISTINCT - col2 ) FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-5056
SELECT DISTINCT COUNT ( * ) * + SUM ( DISTINCT - col2 ) FROM tab1
----
-669

query I rowsort
SELECT DISTINCT 90 * col1 AS col1 FROM tab0
----
1890
7290
90

query III rowsort
SELECT * FROM tab0 WHERE 88 BETWEEN ( + col2 ) AND ( - col1 )
----

query I rowsort
SELECT 32 AS col0 FROM tab2 WHERE ( NULL ) >= - ( ( - col1 ) ) * + 84 + col1
----

query I rowsort
SELECT ALL - col1 + + col0 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) <> - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 5 col0 FROM tab2 WHERE NOT + col0 * - 72 IS NOT NULL
----

query I rowsort
SELECT - col2 - 32 AS col2 FROM tab1
----
-100
-128
-91

query I rowsort
SELECT + ( + 58 ) FROM tab2
----
58
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5065
SELECT + CAST( 61 AS SIGNED ) AS col0 FROM tab0
----
61
61
61

skipif mysql # not compatible
query I rowsort label-5065
SELECT + CAST ( 61 AS INTEGER ) AS col0 FROM tab0
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT + COUNT( col1 ) + + 83 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-5066
SELECT + COUNT ( col1 ) + + 83 FROM tab0
----
86

query I rowsort
SELECT ALL + col2 * + 14 + col0 FROM tab2
----
368
624
887

query I rowsort
SELECT ALL + 93 * + ( col1 ) FROM tab2 AS cor0
----
4743
6231
7161

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 6 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT col2 * + 44 FROM tab0 WHERE ( col1 ) IS NOT NULL
----
2068
4356
440

query I rowsort
SELECT 20 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT + 68 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query III rowsort
SELECT ALL * FROM tab1 WHERE + 31 IN ( - 71 + 19 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * 77 NOT BETWEEN NULL AND 80 * - 15
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 85 * 55 FROM tab2 AS cor0
----
-4675
-4675
-4675

query I rowsort
SELECT ALL col0 * + col2 AS col1 FROM tab2 AS cor0 WHERE col0 * col0 IS NULL
----

query I rowsort
SELECT 72 * - col0 FROM tab1 AS cor0
----
-3672
-6120
-6552

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT COUNT( + 43 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( - 85 + ( 25 ) ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5078
SELECT COUNT ( + 43 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( - 85 + ( 25 ) ) IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 73 <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5080
SELECT DISTINCT SUM( ALL - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5080
SELECT DISTINCT SUM ( ALL - col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5081
SELECT ALL - 31 * CAST( NULL AS DECIMAL ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL - 31 * CAST ( NULL AS REAL ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT ALL - - COUNT( * ) * + COUNT( - 21 + - col0 * col0 ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL - - COUNT ( * ) * + COUNT ( - 21 + - col0 * col0 ) AS col2 FROM tab2 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 col2 FROM tab0 AS cor0 WHERE NOT ( col1 ) IN ( col0 * + col2 )
----
58
58
58

query I rowsort
SELECT DISTINCT col1 * ( 3 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 * + 85 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE col0 BETWEEN col2 / col2 AND NULL
----

query I rowsort
SELECT ALL 76 * col1 AS col2 FROM tab2
----
3876
5092
5852

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5088
SELECT * FROM tab0 WHERE col0 NOT IN ( + col2 / col2 + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5088
SELECT * FROM tab0 WHERE col0 NOT IN ( + col2 / col2 + + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 WHERE ( 82 ) - - 96 BETWEEN + 62 * - col1 AND ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5090
SELECT col0 * - + col1 * 98 + + col1 DIV col2 AS col1 FROM tab0
----
-119069
-179044
-9506

skipif mysql # not compatible
query I rowsort label-5090
SELECT col0 * - + col1 * 98 + + col1 / col2 AS col1 FROM tab0
----
-119069
-179044
-9506

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5091
SELECT ALL + 92 DIV + + COUNT( * ) + MAX( DISTINCT - col0 ) AS col1 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL + 92 / + + COUNT ( * ) + MAX ( DISTINCT - col0 ) AS col1 FROM tab1
----
-21

query III rowsort
SELECT * FROM tab0 WHERE ( + 82 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT MIN( ( 79 ) ) + COUNT( * ) AS col2 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-5093
SELECT MIN ( ( 79 ) ) + COUNT ( * ) AS col2 FROM tab1
----
82

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 ) > ( - col1 )
----
15
81
47
87
21
10

query I rowsort
SELECT col0 + + - col0 * ( col0 ) FROM tab2 AS cor0
----
-2070
-4032
-5550

query III rowsort
SELECT * FROM tab0 WHERE + + col2 NOT BETWEEN - 50 AND NULL
----

query I rowsort
SELECT + col2 FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL 97 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col0 col2 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5100
SELECT 4 col0 FROM tab0 WHERE + col0 * - col2 - ( + col1 ) * + CAST( + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5100
SELECT 4 col0 FROM tab0 WHERE + col0 * - col2 - ( + col1 ) * + CAST ( + col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT - 9 - col2 + + - 64 * + col2 FROM tab2
----
-1504
-2609
-3779

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5102
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-5102
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 NOT IN ( + 74 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( - 26 ) FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN - col1 AND + col2 * + col2
----
-26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * - + 47 BETWEEN ( - 32 ) AND col2
----

query I rowsort
SELECT + + col0 + col2 * + + 59 * col0 + 84 * col0 FROM tab0 AS cor0
----
42870
574822
58725

query II rowsort
SELECT DISTINCT col1, + col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5108
SELECT CAST( - 96 AS SIGNED ) FROM tab1 cor0
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-5108
SELECT CAST ( - 96 AS INTEGER ) FROM tab1 cor0
----
-96
-96
-96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5109
SELECT - ( - COUNT( * ) ) / CAST( NULL AS DECIMAL ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5109
SELECT - ( - COUNT ( * ) ) / CAST ( NULL AS REAL ) col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT MAX( DISTINCT - 88 ) col0 FROM tab1
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5110
SELECT MAX ( DISTINCT - 88 ) col0 FROM tab1
----
-88

query I rowsort
SELECT - - col0 AS col2 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT - ( - ( + - col1 ) ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT + - col0 AS col1 FROM tab0 WHERE NOT 56 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( col0 ) FROM tab2 WHERE NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 NOT BETWEEN ( + - 55 ) AND - 17
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5116
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 WHERE col1 * + ( col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE col1 * + ( col2 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT DISTINCT + COUNT( * ) + - MAX( ALL - 67 ) FROM tab0 WHERE NOT - + 77 IS NULL
----
70

skipif mysql # not compatible
query I rowsort label-5117
SELECT DISTINCT + COUNT ( * ) + - MAX ( ALL - 67 ) FROM tab0 WHERE NOT - + 77 IS NULL
----
70

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= ( col1 * + - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5119
SELECT - CAST( NULL AS SIGNED ) / - COUNT( * ) + - COUNT( * ) * + + 33 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5119
SELECT - CAST ( NULL AS INTEGER ) / - COUNT ( * ) + - COUNT ( * ) * + + 33 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col0 * - col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-425
-4277
-714

query I rowsort
SELECT ALL 14 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # aggregate syntax: 
query II rowsort label-5122
SELECT ALL + + COUNT( * ) col1, + 86 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5122
SELECT ALL + + COUNT ( * ) col1, + 86 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
86

query I rowsort
SELECT + + 78 * - col0 FROM tab0 AS cor0
----
-1170
-6786
-7566

query II rowsort
SELECT DISTINCT col0 + + col2 * - 61 AS col1, - 93 + 0 AS col1 FROM tab0 AS cor0
----
-2852
-93
-523
-93
-5942
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-5125
SELECT 9 * + col0 + - 6 + 75 + + + col0 DIV col1 * - col2 + - col2 FROM tab0 cor0
----
-8760
157
802

skipif mysql # not compatible
query I rowsort label-5125
SELECT 9 * + col0 + - 6 + 75 + + + col0 / col1 * - col2 + - col2 FROM tab0 cor0
----
-8760
157
802

query I rowsort
SELECT - + col0 + - - ( + + col1 ) AS col2 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT + + 6 * + MAX( ALL - col2 ) FROM tab0 AS cor0 WHERE NULL <> col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5127
SELECT + + 6 * + MAX ( ALL - col2 ) FROM tab0 AS cor0 WHERE NULL <> col0
----
NULL

query I rowsort
SELECT DISTINCT - 44 * 18 + + col1 * - 51 + + 12 + + col2 AS col2 FROM tab1 AS cor0
----
-1398
-3109
-976

query I rowsort
SELECT 61 + + col2 FROM tab1 AS cor0
----
120
129
157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 * col0 col2 FROM tab1 AS cor0 WHERE + col0 NOT IN ( + - col2 )
----
-295885
-420784
-470016

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 + col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5133
SELECT - + 0 + + - 97 DIV + MAX( col1 ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5133
SELECT - + 0 + + - 97 / + MAX ( col1 ) FROM tab1 AS cor0
----
-2

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * + 39 >= - 77 * + col1 + - 26
----

query I rowsort
SELECT 3 + + col1 FROM tab0
----
24
4
84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5136
SELECT DISTINCT CAST( NULL AS SIGNED ) DIV col1 AS col1, col0 + + 4 + 88 DIV + - 42 FROM tab0
----
NULL
17
NULL
89
NULL
99

skipif mysql # not compatible
query II rowsort label-5136
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col1 AS col1, col0 + + 4 + 88 / + - 42 FROM tab0
----
NULL
17
NULL
89
NULL
99

query II rowsort
SELECT + 46, col1 + + + col0 AS col1 FROM tab1
----
46
138
46
65
46
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5138
SELECT DISTINCT 6 FROM tab0 WHERE col0 >= + ( - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5138
SELECT DISTINCT 6 FROM tab0 WHERE col0 >= + ( - - CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT col1 AS col2, - col1 AS col0 FROM tab0
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT ALL - COUNT( * ) * 8 + + 48 * - ( SUM( 86 ) ) FROM tab2
----
-12408

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL - COUNT ( * ) * 8 + + 48 * - ( SUM ( 86 ) ) FROM tab2
----
-12408

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5141
SELECT CAST( - col1 AS SIGNED ) DIV col1 * col2 AS col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5141
SELECT CAST ( - col1 AS INTEGER ) / col1 * col2 AS col1 FROM tab0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT - + ( - col0 ) DIV + col2 + col1 FROM tab0 AS cor0
----
1
29
81

skipif mysql # not compatible
query I rowsort label-5142
SELECT - + ( - col0 ) / + col2 + col1 FROM tab0 AS cor0
----
1
29
81

query II rowsort
SELECT + col0, + 12 + - - col0 * 80 FROM tab2 AS cor0
----
46
3692
64
5132
75
6012

query I rowsort
SELECT DISTINCT - - col0 * col2 + col0 + col2 * + - col1 FROM tab2 AS cor0
----
-456
-69
539

query I rowsort
SELECT - col1 + - 55 * ( - col2 ) + - col1 - - col0 * col0 FROM tab2 AS cor0
----
3279
6142
8681

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT COUNT( * ) FROM tab0 WHERE ( col2 * col2 ) NOT IN ( 91 - col0 + + + 46 * col0 )
----
3

skipif mysql # not compatible
query I rowsort label-5146
SELECT COUNT ( * ) FROM tab0 WHERE ( col2 * col2 ) NOT IN ( 91 - col0 + + + 46 * col0 )
----
3

query I rowsort
SELECT - col2 + col2 + - 15 * + 13 + 87 FROM tab1
----
-108
-108
-108

onlyif mysql # DIV for integer division: 
query I rowsort label-5148
SELECT col2 DIV 2 AS col0 FROM tab1
----
29
34
48

skipif mysql # not compatible
query I rowsort label-5148
SELECT col2 / 2 AS col0 FROM tab1
----
29
34
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5149
SELECT + + col0 DIV + + 90 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5149
SELECT + + col0 / + + 90 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5150
SELECT + COUNT( ALL 47 ) FROM tab1 AS cor0 WHERE NOT NULL <> ( 79 * - - ( + col2 ) / + CAST( + col0 AS SIGNED ) + 12 )
----
0

skipif mysql # not compatible
query I rowsort label-5150
SELECT + COUNT ( ALL 47 ) FROM tab1 AS cor0 WHERE NOT NULL <> ( 79 * - - ( + col2 ) / + CAST ( + col0 AS INTEGER ) + 12 )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 38 * + col2 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 87 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5153
SELECT DISTINCT - ( + CAST( + + COUNT( * ) AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5153
SELECT DISTINCT - ( + CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 col0 FROM tab2 cor0
----
42
42
42

query II rowsort
SELECT col0 * ( + 3 ) AS col0, 85 FROM tab0 cor0
----
261
85
291
85
45
85

query I rowsort
SELECT ALL col0 * 51 FROM tab2
----
2346
3264
3825

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col1 + - + 83 / col2 + + 16 ) <= NULL
----

query II rowsort
SELECT - col1, - col2 + col1 AS col2 FROM tab0
----
-1
-98
-21
11
-81
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT ALL + SUM( DISTINCT + 43 ) col2 FROM tab0
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5159
SELECT ALL + SUM ( DISTINCT + 43 ) col2 FROM tab0
----
43

onlyif mysql # aggregate syntax: 
query II rowsort label-5160
SELECT - 81, + MAX( ALL + 60 ) + + MIN( - 97 ) AS col1 FROM tab1
----
-81
-37

skipif mysql # not compatible
query II rowsort label-5160
SELECT - 81, + MAX ( ALL + 60 ) + + MIN ( - 97 ) AS col1 FROM tab1
----
-81
-37

query II rowsort
SELECT col2 AS col0, - col2 AS col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT ALL + col1 * - 47 AS col1 FROM tab0 AS cor0
----
-3807
-47
-987

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 + - col2 IS NULL
----

query I rowsort
SELECT ALL 55 + + + 30 AS col0 FROM tab1 AS cor0
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col2 ) col0 FROM tab2 cor0
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * - col2 BETWEEN - col2 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 48 * 2 + - 71 AS col2 FROM tab0 AS cor0
----
25

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE + col2 * + - 57 * + col0 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT ALL + - COUNT( * ) * + ( - + 32 ) + - - ( 96 ) * + MAX( - col2 ) + - 77 AS col2 FROM tab2 cor0
----
-2189

skipif mysql # not compatible
query I rowsort label-5169
SELECT ALL + - COUNT ( * ) * + ( - + 32 ) + - - ( 96 ) * + MAX ( - col2 ) + - 77 AS col2 FROM tab2 cor0
----
-2189

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT ALL MAX( + 78 ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL MAX ( + 78 ) FROM tab1
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-5171
SELECT 72 DIV - col2 + - - 54 - 49 * - - col2 FROM tab1
----
-2838
-3279
-4650

skipif mysql # not compatible
query I rowsort label-5171
SELECT 72 / - col2 + - - 54 - 49 * - - col2 FROM tab1
----
-2838
-3279
-4650

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT ALL - MAX( ALL - - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL - MAX ( ALL - - col2 ) FROM tab0
----
-99

query I rowsort
SELECT col0 + - + 36 AS col1 FROM tab1
----
15
49
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT ALL - SUM( DISTINCT col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL - SUM ( DISTINCT col1 ) AS col0 FROM tab2
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-5175
SELECT - 65 DIV + + col0 + 54 col1 FROM tab2
----
53
53
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5175
SELECT - 65 / + + col0 + 54 col1 FROM tab2
----
53
53
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5176
SELECT + 62 + + - COUNT( * ) FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-5176
SELECT + 62 + + - COUNT ( * ) FROM tab0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5177
SELECT ALL - CAST( AVG ( DISTINCT - col1 ) AS SIGNED ) AS col2 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL - CAST ( AVG ( DISTINCT - col1 ) AS INTEGER ) AS col2 FROM tab2
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT ALL + 65 * COUNT( * ) AS col1 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-5178
SELECT ALL + 65 * COUNT ( * ) AS col1 FROM tab1
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5179
SELECT + 1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5179
SELECT + 1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT DISTINCT + MAX( col0 ) + - - MAX( col0 ) FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-5180
SELECT DISTINCT + MAX ( col0 ) + - - MAX ( col0 ) FROM tab2 AS cor0
----
150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5181
SELECT - 20 * - + CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5181
SELECT - 20 * - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT + COUNT( ALL + - col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5182
SELECT + COUNT ( ALL + - col2 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 WHERE + col2 > + 13
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5184
SELECT ALL MAX( DISTINCT col0 ) AS col1, - CAST( NULL AS SIGNED ) * + SUM( + - col2 ) AS col2 FROM tab0
----
97
NULL

skipif mysql # not compatible
query II rowsort label-5184
SELECT ALL MAX ( DISTINCT col0 ) AS col1, - CAST ( NULL AS INTEGER ) * + SUM ( + - col2 ) AS col2 FROM tab0
----
97
NULL

query I rowsort
SELECT DISTINCT + - 15 FROM tab2 WHERE + col2 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL - 22 * - col0 AS col0 FROM tab1 AS cor0
----
1122
1870
2002

query I rowsort
SELECT - col0 AS col2 FROM tab2 cor0 WHERE NOT ( - + col1 ) NOT IN ( - - 23, ( - + 90 ) / + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5188
SELECT + SUM( ALL - + col1 ) DIV + - 21 AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5188
SELECT + SUM ( ALL - + col1 ) / + - 21 AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL BETWEEN NULL AND 12
----

query I rowsort
SELECT - + 62 AS col0 FROM tab2 cor0 WHERE NOT + col2 * + col0 IS NULL
----
-62
-62
-62

query I rowsort
SELECT - col2 * - 7 FROM tab2
----
161
280
406

query I rowsort
SELECT ALL + 59 * - 53 FROM tab2
----
-3127
-3127
-3127

onlyif mysql # aggregate syntax: 
query I rowsort label-5193
SELECT ALL MAX( DISTINCT + - col0 ) col2 FROM tab2
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5193
SELECT ALL MAX ( DISTINCT + - col0 ) col2 FROM tab2
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 81 * - 20 col0, col2 FROM tab1 AS cor0
----
-1620
59
-1620
68
-1620
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5195
SELECT CAST( NULL AS SIGNED ) * 82 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5195
SELECT CAST ( NULL AS INTEGER ) * 82 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5196
SELECT COUNT( * ) * + ( - 78 ) * - SUM( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5196
SELECT COUNT ( * ) * + ( - 78 ) * - SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = + 70 + 16 - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT DISTINCT MAX( ALL + + col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-5198
SELECT DISTINCT MAX ( ALL + + col2 ) FROM tab2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5199
SELECT - CAST( + 93 AS SIGNED ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

skipif mysql # not compatible
query I rowsort label-5199
SELECT - CAST ( + 93 AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NULL NOT IN ( + 77, + col2, + 49, + 40 + - - col1 )
----

query I rowsort
SELECT 49 + + 51 FROM tab0 AS cor0
----
100
100
100

query I rowsort
SELECT ALL ( + + col1 ) + ( col2 ) FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT + 4 + - col0 AS col1 FROM tab1 AS cor0
----
-47
-81
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT ALL + + SUM( ALL + 36 ) + - - 57 FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL + + SUM ( ALL + 36 ) + - - 57 FROM tab1 AS cor0
----
165

query I rowsort
SELECT - + col2 + + 8 AS col1 FROM tab2 AS cor0
----
-15
-32
-50

query I rowsort
SELECT - col2 * + - 60 - + - col1 * - + col2 * col1 + - col0 FROM tab1 AS cor0
----
-13107
-146223
1980

onlyif mysql # DIV for integer division: 
query I rowsort label-5207
SELECT - col2 DIV col2 + - + col0 - - + col2 AS col2 FROM tab0 AS cor0
----
-78
1
31

skipif mysql # not compatible
query I rowsort label-5207
SELECT - col2 / col2 + - + col0 - - + col2 AS col2 FROM tab0 AS cor0
----
-78
1
31

query II rowsort
SELECT ALL + col0 - - 37 AS col2, + col0 FROM tab2
----
101
64
112
75
83
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 75 col0 FROM tab1
----
75

query III rowsort
SELECT * FROM tab2 WHERE - col2 <= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5211
SELECT + + col0 + ( - + 81 ) col1 FROM tab1 WHERE + + col0 / - CAST( NULL AS SIGNED ) NOT BETWEEN + + 29 * + - col0 / + col1 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5211
SELECT + + col0 + ( - + 81 ) col1 FROM tab1 WHERE + + col0 / - CAST ( NULL AS INTEGER ) NOT BETWEEN + + 29 * + - col0 / + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5212
SELECT ALL - - 21 + - + CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL - - 21 + - + CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT - + 56 - - SUM( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
139

skipif mysql # not compatible
query I rowsort label-5213
SELECT - + 56 - - SUM ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
139

query I rowsort
SELECT DISTINCT - - col0 + + 51 AS col0 FROM tab1 AS cor0
----
102
136
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 27 * + 13 * - col1 col1 FROM tab0
----
28431
351
7371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + - col0 ) col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5217
SELECT ALL + 53 * MIN( ALL - 53 ) FROM tab0
----
-2809

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL + 53 * MIN ( ALL - 53 ) FROM tab0
----
-2809

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT - MIN( DISTINCT + 6 ) * + COUNT( * ) FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-5218
SELECT - MIN ( DISTINCT + 6 ) * + COUNT ( * ) FROM tab1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT ALL + COUNT( ALL - + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL + COUNT ( ALL - + col2 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 75 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 92 AS col1 FROM tab0 cor0
----
-92

onlyif mysql # aggregate syntax: 
query II rowsort label-5222
SELECT - - 79 AS col2, COUNT( ALL + col1 ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
79
9

skipif mysql # not compatible
query II rowsort label-5222
SELECT - - 79 AS col2, COUNT ( ALL + col1 ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
79
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT ALL COUNT( * ) AS col0 FROM tab0 cor0 WHERE NOT - col0 * - col1 * - - 16 + - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5223
SELECT ALL COUNT ( * ) AS col0 FROM tab0 cor0 WHERE NOT - col0 * - col1 * - - 16 + - col1 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 49 ) <> - + col2
----

query I rowsort
SELECT ALL + + ( - 88 ) FROM tab2 AS cor0
----
-88
-88
-88

query I rowsort
SELECT + - col2 * - 81 FROM tab2 AS cor0
----
1863
3240
4698

query II rowsort
SELECT ALL + col2 AS col2, + col2 * - 37 * - col0 AS col1 FROM tab2 cor0
----
23
39146
40
94720
58
160950

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT - COUNT( * ) FROM tab1 cor0 WHERE NOT col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5228
SELECT - COUNT ( * ) FROM tab1 cor0 WHERE NOT col2 <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5229
SELECT DISTINCT + - CAST( + col0 AS SIGNED ) * + 7 AS col0 FROM tab1 AS cor0
----
-357
-595
-637

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT + - CAST ( + col0 AS INTEGER ) * + 7 AS col0 FROM tab1 AS cor0
----
-357
-595
-637

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT ALL SUM( col0 ) * - 83 col1 FROM tab0
----
-16517

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5230
SELECT ALL SUM ( col0 ) * - 83 col1 FROM tab0
----
-16517

query I rowsort
SELECT + col1 * - - col2 * - 53 * + + col2 FROM tab2
----
-11945564
-1429887
-6529600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5232
SELECT 13 / - col0 FROM tab0 WHERE NOT - + CAST( NULL AS SIGNED ) >= ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-5232
SELECT 13 / - col0 FROM tab0 WHERE NOT - + CAST ( NULL AS INTEGER ) >= ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5233
SELECT 95 AS col2 FROM tab1 WHERE NOT CAST( - + 97 AS SIGNED ) IS NULL
----
95
95
95

skipif mysql # not compatible
query I rowsort label-5233
SELECT 95 AS col2 FROM tab1 WHERE NOT CAST ( - + 97 AS INTEGER ) IS NULL
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT ALL - COUNT( ALL + - col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL - COUNT ( ALL + - col0 ) FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 60 NOT BETWEEN + col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5236
SELECT ALL col0 AS col1, CAST( 11 AS SIGNED ) AS col0 FROM tab1
----
51
11
85
11
91
11

skipif mysql # not compatible
query II rowsort label-5236
SELECT ALL col0 AS col1, CAST ( 11 AS INTEGER ) AS col0 FROM tab1
----
51
11
85
11
91
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5237
SELECT col1 + 21 + - CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-45
-75
87

skipif mysql # not compatible
query I rowsort label-5237
SELECT col1 + 21 + - CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-45
-75
87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5239
SELECT + - ( + 28 ), col1 FROM tab1 AS cor0 WHERE ( - col1 ) >= - col2 / CAST( + ( - + 12 ) AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-5239
SELECT + - ( + 28 ), col1 FROM tab1 AS cor0 WHERE ( - col1 ) >= - col2 / CAST ( + ( - + 12 ) AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5240
SELECT 83 DIV - col0 + - 9 * ( - 87 ) + + - 87 + + - col0 FROM tab0 AS cor0
----
599
609
676

skipif mysql # not compatible
query I rowsort label-5240
SELECT 83 / - col0 + - 9 * ( - 87 ) + + - 87 + + - col0 FROM tab0 AS cor0
----
599
609
676

onlyif mysql # DIV for integer division: 
query I rowsort label-5241
SELECT - ( - col0 ) DIV - + col0 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5241
SELECT - ( - col0 ) / - + col0 AS col0 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
98

query I rowsort
SELECT DISTINCT - ( + 45 ) AS col0 FROM tab2
----
-45

query I rowsort
SELECT col2 * - + 37 + + col2 * + + col2 FROM tab1 cor0
----
1298
2108
5664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5245
SELECT ALL CAST( - - col1 AS SIGNED ) * + ( + col1 ) + col0 AS col1 FROM tab0 AS cor0
----
528
6576
98

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL CAST ( - - col1 AS INTEGER ) * + ( + col1 ) + col0 AS col1 FROM tab0 AS cor0
----
528
6576
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT DISTINCT - + MIN( + - 22 ) * - - COUNT( * ) + + 95 AS col0 FROM tab0 AS cor0
----
161

skipif mysql # not compatible
query I rowsort label-5246
SELECT DISTINCT - + MIN ( + - 22 ) * - - COUNT ( * ) + + 95 AS col0 FROM tab0 AS cor0
----
161

query I rowsort
SELECT DISTINCT + - 53 - col1 FROM tab0 AS cor0
----
-134
-54
-74

query I rowsort
SELECT ALL + + 98 * - - col0 + - - col2 - + + ( - 20 ) FROM tab1 AS cor0
----
5114
8409
9006

query I rowsort
SELECT + 57 + + + col1 AS col1 FROM tab0
----
138
58
78

query I rowsort
SELECT ALL + 71 - - ( + 38 ) AS col0 FROM tab2
----
109
109
109

query I rowsort
SELECT col0 + - col2 + - + 82 FROM tab2
----
-58
-59
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT 3 + SUM( - + col1 ) AS col2 FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-5252
SELECT 3 + SUM ( - + col1 ) AS col2 FROM tab0
----
-100

query I rowsort
SELECT 80 + + 9 * + + 79 * + col2 FROM tab0
----
33497
70469
7190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 95 col1 FROM tab0
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 22 col0 FROM tab0
----
-1914
-2134
-330

query I rowsort
SELECT DISTINCT - 77 + + + col0 AS col2 FROM tab2 AS cor0
----
-13
-2
-31

query I rowsort
SELECT ALL ( - 72 ) FROM tab0 cor0
----
-72
-72
-72

query I rowsort
SELECT - - col2 * + - col2 AS col1 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2 * + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2 * + + col1 )
----
0

query I rowsort
SELECT ALL + + col1 * + 93 AS col2 FROM tab1 AS cor0
----
1302
4371
465

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5261
SELECT ALL + col0 + 97 FROM tab1 AS cor0 WHERE 23 NOT BETWEEN + + col0 * col2 AND - col1 - + 26 + + + 41 + - col0 * - + col2 * - col0 OR + CAST( + col0 AS DECIMAL ) + + + col0 <= - + col1 + CAST( NULL AS DECIMAL ) / + - ( col1 )
----
148
182
188

skipif mysql # not compatible
query I rowsort label-5261
SELECT ALL + col0 + 97 FROM tab1 AS cor0 WHERE 23 NOT BETWEEN + + col0 * col2 AND - col1 - + 26 + + + 41 + - col0 * - + col2 * - col0 OR + CAST ( + col0 AS REAL ) + + + col0 <= - + col1 + CAST ( NULL AS REAL ) / + - ( col1 )
----
148
182
188

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL AND NULL < 10
----

query I rowsort
SELECT - + col0 FROM tab2 WHERE NOT + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col1 * 95 + - col2 - + - 18 * col1 FROM tab2 cor0
----
5740
7513
8661

query I rowsort
SELECT + ( - - 23 ) FROM tab0 AS cor0
----
23
23
23

query II rowsort
SELECT DISTINCT + col0 * col0 * - ( - col0 ) AS col1, - ( - + 89 ) * col1 FROM tab0 AS cor0
----
3375
7209
658503
1869
912673
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT ALL - MIN( ALL col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL - MIN ( ALL col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5268
SELECT ALL + col2 * col1 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL + col2 * col1 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5269
SELECT + col2 + - col0 + + + CAST( + + col1 AS SIGNED ) AS col0, 44 AS col2 FROM tab2 AS cor0
----
28
44
50
44
53
44

skipif mysql # not compatible
query II rowsort label-5269
SELECT + col2 + - col0 + + + CAST ( + + col1 AS INTEGER ) AS col0, 44 AS col2 FROM tab2 AS cor0
----
28
44
50
44
53
44

onlyif mysql # aggregate syntax: 
query II rowsort label-5270
SELECT ALL 8 * + MAX( - col0 ) AS col1, ( + MIN( - col1 ) ) FROM tab2
----
-368
-77

skipif mysql # not compatible
query II rowsort label-5270
SELECT ALL 8 * + MAX ( - col0 ) AS col1, ( + MIN ( - col1 ) ) FROM tab2
----
-368
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5271
SELECT - col2 + CAST( + 71 AS SIGNED ) AS col0, col0 * - ( + col2 ) AS col0 FROM tab0
----
-28
-9603
24
-705
61
-870

skipif mysql # not compatible
query II rowsort label-5271
SELECT - col2 + CAST ( + 71 AS INTEGER ) AS col0, col0 * - ( + col2 ) AS col0 FROM tab0
----
-28
-9603
24
-705
61
-870

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 IN ( - col2 + col2, col1 + 12, + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5273
SELECT DISTINCT 26 DIV - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5273
SELECT DISTINCT 26 / - col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5274
SELECT DISTINCT + 36 + - + 90 * 42 FROM tab1 WHERE + - col1 <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5274
SELECT DISTINCT + 36 + - + 90 * 42 FROM tab1 WHERE + - col1 <= CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5275
SELECT DISTINCT col2 DIV - CAST( + + col1 AS SIGNED ) col0 FROM tab1
----
-1
-11
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5275
SELECT DISTINCT col2 / - CAST ( + + col1 AS INTEGER ) col0 FROM tab1
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-5276
SELECT DISTINCT 23 AS col0, + COUNT( * ) AS col0 FROM tab0
----
23
3

skipif mysql # not compatible
query II rowsort label-5276
SELECT DISTINCT 23 AS col0, + COUNT ( * ) AS col0 FROM tab0
----
23
3

query I rowsort
SELECT ALL - 45 FROM tab2 WHERE 2 IS NOT NULL
----
-45
-45
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-5278
SELECT DISTINCT + col2 DIV + - 68 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT + col2 / + - 68 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE col1 * col2 IS NULL
----

query I rowsort
SELECT ALL col2 + 10 AS col1 FROM tab2 AS cor0
----
33
50
68

onlyif mysql # aggregate syntax: 
query II rowsort label-5281
SELECT ALL 47 col0, - COUNT( DISTINCT + col2 ) FROM tab1 AS cor0
----
47
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5281
SELECT ALL 47 col0, - COUNT ( DISTINCT + col2 ) FROM tab1 AS cor0
----
47
-3

query I rowsort
SELECT DISTINCT col0 * - + col0 + + col2 FROM tab1 AS cor0
----
-2505
-7166
-8213

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT ALL - MAX( + ( + 47 ) ) FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL - MAX ( + ( + 47 ) ) FROM tab0
----
-47

query I rowsort
SELECT ALL + - col2 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 90 + 10 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to fdbc64d082fd12518b9c868f375d2675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 55 col0 FROM tab0 cor0
----
-102
-154
-65

query I rowsort
SELECT - col2 + - col1 * + + col0 AS col1 FROM tab2 cor0
----
-2369
-4968
-5083

query I rowsort
SELECT ALL + col0 + col0 + + - col1 AS col2 FROM tab0 AS cor0
----
-51
153
193

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 NOT IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5290
SELECT ALL + - col1 AS col2 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * 0 = + + col0
----

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL + - col1 AS col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * 0 = + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5291
SELECT ALL 20 * + CAST( NULL AS SIGNED ) / + col2 - + + 14 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL 20 * + CAST ( NULL AS INTEGER ) / + col2 - + + 14 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 41 * - col0 col2, - 71 FROM tab1
----
-2091
-71
-3485
-71
-3731
-71

query I rowsort
SELECT ALL + 69 * - - col2 + - 92 AS col0 FROM tab1 WHERE NOT col2 BETWEEN col0 + col0 AND col1
----
3979
4600
6532

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT - 10 * - COUNT( DISTINCT - + col1 ) col1 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5294
SELECT - 10 * - COUNT ( DISTINCT - + col1 ) col1 FROM tab1 AS cor0
----
30

query I rowsort
SELECT + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT + 67 IS NOT NULL )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT DISTINCT + + MAX( ALL 36 ) AS col2 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-5296
SELECT DISTINCT + + MAX ( ALL 36 ) AS col2 FROM tab2 AS cor0
----
36

query I rowsort
SELECT - col0 + ( 33 ) FROM tab2 AS cor0 WHERE NOT col1 * - 92 IS NULL
----
-13
-31
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 20, - 54 col2 FROM tab2
----
20
-54

query I rowsort
SELECT ALL col0 * - + col1 AS col1 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT + col2 * - + col0 * + col1 AS col2 FROM tab0 AS cor0
----
-18270
-57105
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col0 FROM tab0 cor0
----
54
54
54

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> ( + + col0 ) * + 28
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 39 = + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 24 * + - col0 AS col0 FROM tab2 AS cor0
----
1104
1536
1800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5305
SELECT ALL AVG ( ALL - CAST( NULL AS SIGNED ) ) + + + 53 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL AVG ( ALL - CAST ( NULL AS INTEGER ) ) + + + 53 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 + 74 + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5306
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 + 74 + col1 IS NULL
----
3

query I rowsort
SELECT DISTINCT + col2 * - 69 FROM tab1 AS cor0
----
-4071
-4692
-6624

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT - SUM( - 37 ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
111

skipif mysql # not compatible
query I rowsort label-5308
SELECT - SUM ( - 37 ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
111

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 <= - - col1 * - - col0 * + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT + SUM( - + ( col0 ) ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-5311
SELECT + SUM ( - + ( col0 ) ) AS col2 FROM tab1
----
-227

query I rowsort
SELECT ALL + col1 + - col2 + - ( + col2 ) AS col2 FROM tab0
----
-13
-197
1

query I rowsort
SELECT DISTINCT - 17 * + col1 + + 97 AS col0 FROM tab0
----
-1280
-260
80

query I rowsort
SELECT 40 + + + 54 AS col0 FROM tab2
----
94
94
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5315
SELECT DISTINCT COUNT( * ) + + SUM( + col2 ) * + ( + + CAST( - COUNT( * ) AS SIGNED ) ) AS col0 FROM tab2
----
-360

skipif mysql # not compatible
query I rowsort label-5315
SELECT DISTINCT COUNT ( * ) + + SUM ( + col2 ) * + ( + + CAST ( - COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab2
----
-360

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * - col1 + 64 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 19 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 56 - + + col0 AS col0 FROM tab1 AS cor0
----
-107
-141
-147

query I rowsort
SELECT ALL - 93 * - col1 FROM tab0 AS cor0
----
1953
7533
93

query I rowsort
SELECT + 14 + - + 32 * + - col1 + - col2 + - ( - - col0 ) FROM tab0 cor0
----
-150
2544
589

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5321
SELECT ALL - CAST( NULL AS SIGNED ) * CAST( + + col2 AS SIGNED ) * 32 - - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5321
SELECT ALL - CAST ( NULL AS INTEGER ) * CAST ( + + col2 AS INTEGER ) * 32 - - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5322
SELECT + MIN( DISTINCT + col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5322
SELECT + MIN ( DISTINCT + col1 ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5323
SELECT ALL + 36 AS col2, MAX( + - col1 ) FROM tab0
----
36
-1

skipif mysql # not compatible
query II rowsort label-5323
SELECT ALL + 36 AS col2, MAX ( + - col1 ) FROM tab0
----
36
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 76 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col1 IN ( col1, 9 / + - 60, - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5326
SELECT + 20 * - 71 + + + CAST( - col1 AS SIGNED ) + - col0 FROM tab2 WHERE NOT - col0 + col1 * - + col2 = + col1
----
-1517
-1561
-1562

skipif mysql # not compatible
query I rowsort label-5326
SELECT + 20 * - 71 + + + CAST ( - col1 AS INTEGER ) + - col0 FROM tab2 WHERE NOT - col0 + col1 * - + col2 = + col1
----
-1517
-1561
-1562

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT DISTINCT - - 28 - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
19

skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT - - 28 - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT DISTINCT + MIN( + + 62 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) < - 10
----
NULL

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT + MIN ( + + 62 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) < - 10
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5330
SELECT DISTINCT col1 - CAST( NULL AS SIGNED ) / - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 * + 49 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5330
SELECT DISTINCT col1 - CAST ( NULL AS INTEGER ) / - - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 * + 49 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * 29 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + + col0 / - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + + 40 + col1, - 79 + + col0 * col2 * - col1 )
----

query I rowsort
SELECT DISTINCT + 70 + - ( + col0 ) + col0 + + - 21 * col0 FROM tab1 AS cor0
----
-1001
-1715
-1841

query II rowsort
SELECT + col2 + + col2 AS col1, col1 FROM tab1 AS cor0
----
118
5
136
47
192
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5335
SELECT DISTINCT COUNT( DISTINCT - col0 ) AS col1, - CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-5335
SELECT DISTINCT COUNT ( DISTINCT - col0 ) AS col1, - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3
-3

query I rowsort
SELECT ALL ( - - 6 ) FROM tab1 AS cor0
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 54 ) col2 FROM tab1
----
-54

query I rowsort
SELECT + col1 * + 46 + - + 91 AS col2 FROM tab0
----
-45
3635
875

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5339
SELECT DISTINCT * FROM tab1 WHERE NOT - + 0 + + col1 + 3 * + 48 * CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND - col2 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5339
SELECT DISTINCT * FROM tab1 WHERE NOT - + 0 + + col1 + 3 * + 48 * CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND - col2 + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT ALL MAX( - - 34 ) FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-5340
SELECT ALL MAX ( - - 34 ) FROM tab2
----
34

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + col0 * - col2 AND NULL
----

query II rowsort
SELECT - - col2 AS col2, 79 + col0 FROM tab2 AS cor0
----
23
125
40
143
58
154

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 43 * + - col0 >= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5344
SELECT ALL - 76 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL - 76 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5345
SELECT - + col0 / CAST( NULL AS SIGNED ) + + - 57 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5345
SELECT - + col0 / CAST ( NULL AS INTEGER ) + + - 57 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5346
SELECT DISTINCT + + 10 DIV COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT + + 10 / COUNT ( * ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT + + ( - - COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5347
SELECT + + ( - - COUNT ( * ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5348
SELECT MAX( ALL - 97 ) col1 FROM tab1
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5348
SELECT MAX ( ALL - 97 ) col1 FROM tab1
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5349
SELECT ALL CAST( + - 24 AS SIGNED ) * + ( - COUNT( * ) ) AS col0 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-5349
SELECT ALL CAST ( + - 24 AS INTEGER ) * + ( - COUNT ( * ) ) AS col0 FROM tab2
----
72

query I rowsort
SELECT - + col0 * + - col2 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT DISTINCT + col0 AS col0, - col1 * + 21 AS col0 FROM tab1 AS cor0
----
51
-294
85
-105
91
-987

query I rowsort
SELECT DISTINCT + - col2 + col0 AS col2 FROM tab2 cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT ALL - SUM( + col0 ) col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5354
SELECT ALL - SUM ( + col0 ) col2 FROM tab0 AS cor0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-5355
SELECT col1 + 8 DIV + + col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5355
SELECT col1 + 8 / + + col2 FROM tab1
----
14
47
5

query II rowsort
SELECT col1 + + - col0, 31 AS col0 FROM tab2
----
-8
31
13
31
5
31

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5357
SELECT ALL CAST( NULL AS SIGNED ) * col2 * + 59 * - + CAST( + 41 AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL CAST ( NULL AS INTEGER ) * col2 * + 59 * - + CAST ( + 41 AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5358
SELECT col2 + - col2 + + + CAST( + + 68 AS SIGNED ) AS col0 FROM tab2
----
68
68
68

skipif mysql # not compatible
query I rowsort label-5358
SELECT col2 + - col2 + + + CAST ( + + 68 AS INTEGER ) AS col0 FROM tab2
----
68
68
68

query I rowsort
SELECT DISTINCT + col0 - + col2 AS col1 FROM tab0
----
-2
-32
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + ( - 83 ) AND NULL
----

query I rowsort
SELECT ALL ( - + 1 ) FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5362
SELECT DISTINCT + COUNT( * ) + + - 59 FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT + COUNT ( * ) + + - 59 FROM tab0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT ALL - MAX( - 60 ) AS col0 FROM tab2 cor0
----
60

skipif mysql # not compatible
query I rowsort label-5363
SELECT ALL - MAX ( - 60 ) AS col0 FROM tab2 cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT DISTINCT + - ( SUM( ALL + col0 ) ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5364
SELECT DISTINCT + - ( SUM ( ALL + col0 ) ) AS col1 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT ALL + 75 * col1 AS col1 FROM tab1 AS cor0
----
1050
3525
375

query I rowsort
SELECT DISTINCT + + ( + col1 ) * + col1 + - col0 AS col1 FROM tab1 cor0
----
-60
145
2118

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT - COUNT( * ) FROM tab1 WHERE NOT - 3 > - 19 * - ( + col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-5367
SELECT - COUNT ( * ) FROM tab1 WHERE NOT - 3 > - 19 * - ( + col2 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5368
SELECT DISTINCT col2 / - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT col2 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col0 * + 39 FROM tab0
----
-3393
-3783
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT SUM( 57 ) AS col2 FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-5370
SELECT SUM ( 57 ) AS col2 FROM tab1
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-5371
SELECT DISTINCT col1 DIV + 85 * - + col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5371
SELECT DISTINCT col1 / + 85 * - + col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - ( - 78 ) AS col2 FROM tab2 cor0
----
78

query I rowsort
SELECT - 0 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5374
SELECT ALL + COUNT( + + col0 ), + COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-5374
SELECT ALL + COUNT ( + + col0 ), + COUNT ( * ) FROM tab1 AS cor0
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5375
SELECT DISTINCT 75 DIV + - 66 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5375
SELECT DISTINCT 75 / + - 66 FROM tab1
----
-1

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT ALL SUM( DISTINCT + col0 ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL SUM ( DISTINCT + col0 ) AS col0 FROM tab0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5378
SELECT DISTINCT col2 + - + CAST( col0 AS SIGNED ) + - col1 * col2 * + col1 AS col0 FROM tab2
----
-237184
-260379
-59846

skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT col2 + - + CAST ( col0 AS INTEGER ) + - col1 * col2 * + col1 AS col0 FROM tab2
----
-237184
-260379
-59846

query I rowsort
SELECT + col0 * - col1 - + col0 + + - col1 + + - col2 * - col0 * + col0 AS col2 FROM tab1 cor0
----
248917
425760
558693

query I rowsort
SELECT + 70 + col0 AS col0 FROM tab0 AS cor0
----
157
167
85

onlyif mysql # DIV for integer division: 
query I rowsort label-5381
SELECT col2 DIV - 32 + + col0 FROM tab2 AS cor0
----
46
63
74

skipif mysql # not compatible
query I rowsort label-5381
SELECT col2 / - 32 + + col0 FROM tab2 AS cor0
----
46
63
74

query I rowsort
SELECT ALL + col0 + + + col0 + 93 * + 12 FROM tab2 AS cor0
----
1208
1244
1266

query I rowsort
SELECT DISTINCT 84 + 20 AS col1 FROM tab2 AS cor0
----
104

onlyif mysql # aggregate syntax: 
query II rowsort label-5384
SELECT + - 37 * - 77 * + COUNT( * ) AS col1, ( - MIN( DISTINCT + col2 ) ) * + MIN( DISTINCT col2 ) * - + COUNT( * ) + 79 FROM tab0 AS cor0
----
8547
379

skipif mysql # not compatible
query II rowsort label-5384
SELECT + - 37 * - 77 * + COUNT ( * ) AS col1, ( - MIN ( DISTINCT + col2 ) ) * + MIN ( DISTINCT col2 ) * - + COUNT ( * ) + 79 FROM tab0 AS cor0
----
8547
379

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT COUNT( * ) * + 10 AS col1 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-5385
SELECT COUNT ( * ) * + 10 AS col1 FROM tab0
----
30

query I rowsort
SELECT ALL 80 + + - col2 AS col2 FROM tab1
----
-16
12
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5387
SELECT * FROM tab1 WHERE NULL BETWEEN - col0 + - 21 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5387
SELECT * FROM tab1 WHERE NULL BETWEEN - col0 + - 21 AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 93 + + - col2 FROM tab0 WHERE + 39 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5389
SELECT ALL col2 + + + 41 DIV + col2 AS col2 FROM tab0
----
14
47
99

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL col2 + + + 41 / + col2 AS col2 FROM tab0
----
14
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5390
SELECT + COUNT( * ), 8 AS col0 FROM tab2
----
3
8

skipif mysql # not compatible
query II rowsort label-5390
SELECT + COUNT ( * ), 8 AS col0 FROM tab2
----
3
8

query I rowsort
SELECT ALL - col0 + 44 FROM tab2 cor0
----
-2
-20
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5392
SELECT + + MIN( DISTINCT - 46 ) - + 2 AS col1 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5392
SELECT + + MIN ( DISTINCT - 46 ) - + 2 AS col1 FROM tab2 AS cor0
----
-48

query I rowsort
SELECT DISTINCT - col0 + - col2 * + col2 AS col1 FROM tab2 AS cor0
----
-1664
-3439
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT - COUNT( col0 ) - COUNT( * ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5394
SELECT - COUNT ( col0 ) - COUNT ( * ) FROM tab0 cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5395
SELECT ALL + - 93 DIV + CAST( + + 13 AS SIGNED ) + col0 + + - col1 FROM tab1 AS cor0
----
30
37
73

skipif mysql # not compatible
query I rowsort label-5395
SELECT ALL + - 93 / + CAST ( + + 13 AS INTEGER ) + col0 + + - col1 FROM tab1 AS cor0
----
30
37
73

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5396
SELECT - col0 FROM tab1 WHERE - + 99 BETWEEN + 0 AND - + col2 + - + CAST( + ( - - CAST( NULL AS SIGNED ) ) AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-5396
SELECT - col0 FROM tab1 WHERE - + 99 BETWEEN + 0 AND - + col2 + - + CAST ( + ( - - CAST ( NULL AS INTEGER ) ) AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5397
SELECT ALL - CAST( - col2 AS SIGNED ) AS col2, + 4 FROM tab2
----
23
4
40
4
58
4

skipif mysql # not compatible
query II rowsort label-5397
SELECT ALL - CAST ( - col2 AS INTEGER ) AS col2, + 4 FROM tab2
----
23
4
40
4
58
4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= col0 + - 59 * - + 72 * + + 86
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5399
SELECT + col2 DIV + + ( - - 51 ) - - col0 + - col2 FROM tab1 AS cor0
----
-44
24
27

skipif mysql # not compatible
query I rowsort label-5399
SELECT + col2 / + + ( - - 51 ) - - col0 + - col2 FROM tab1 AS cor0
----
-44
24
27

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5400
SELECT ALL + col1 * 33 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL + col1 * 33 * - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 55 * + 34 * - col1 FROM tab0 AS cor0
----
-151470
-1870
-39270

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT DISTINCT - MIN( - 62 ) * - ( - ( + COUNT( * ) ) ) FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT - MIN ( - 62 ) * - ( - ( + COUNT ( * ) ) ) FROM tab0
----
186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5403
SELECT DISTINCT COUNT( * ) DIV 12 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5403
SELECT DISTINCT COUNT ( * ) / 12 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5404
SELECT ALL CAST( 10 AS SIGNED ) * - - 78 * col0 FROM tab1
----
39780
66300
70980

skipif mysql # not compatible
query I rowsort label-5404
SELECT ALL CAST ( 10 AS INTEGER ) * - - 78 * col0 FROM tab1
----
39780
66300
70980

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5405
SELECT * FROM tab1 WHERE NOT CAST( - 80 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5405
SELECT * FROM tab1 WHERE NOT CAST ( - 80 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - 12 FROM tab0 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT DISTINCT - - 18 + + 81 * MIN( + col1 ) + + COUNT( * ) FROM tab1 cor0
----
426

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT - - 18 + + 81 * MIN ( + col1 ) + + COUNT ( * ) FROM tab1 cor0
----
426

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5408
SELECT DISTINCT - + MAX( - 50 ) * + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5408
SELECT DISTINCT - + MAX ( - 50 ) * + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 46 col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT DISTINCT + + col2 FROM tab2 cor0 WHERE ( NULL ) BETWEEN - - 60 AND + 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT DISTINCT + + ( + COUNT( * ) ) + 37 FROM tab2 cor0
----
40

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT + + ( + COUNT ( * ) ) + 37 FROM tab2 cor0
----
40

query I rowsort
SELECT ALL + - col2 + - - col1 * + 84 FROM tab1 AS cor0
----
1080
361
3880

query I rowsort
SELECT + 43 * + - col1 FROM tab2 AS cor0
----
-2193
-2881
-3311

query III rowsort
SELECT * FROM tab0 cor0 WHERE 90 * + - col1 BETWEEN NULL AND + 58
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - - 95 ) - col0 * - col0 col0, 29 AS col0 FROM tab0 AS cor0
----
130
29
7474
29
9314
29

query III rowsort
SELECT * FROM tab2 WHERE - col1 NOT BETWEEN NULL AND + + col2 + + - 26 + col2 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5417
SELECT 2 DIV col2 + col0 AS col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5417
SELECT 2 / col2 + col0 AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT - col0 * col0 + + ( col1 ) FROM tab1
----
-2587
-7220
-8234

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT + COUNT( * ) * - MIN( + 44 ) + 0 FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-5419
SELECT + COUNT ( * ) * - MIN ( + 44 ) + 0 FROM tab0
----
-132

query I rowsort
SELECT ALL - + col1 + 69 FROM tab1 AS cor0
----
22
55
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT DISTINCT COUNT( DISTINCT + - 48 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5421
SELECT DISTINCT COUNT ( DISTINCT + - 48 ) AS col1 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5422
SELECT ALL - 62 AS col0, - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + 21 * - 14 * col1 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-5422
SELECT ALL - 62 AS col0, - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + 21 * - 14 * col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 52 * - 64 AS col1 FROM tab1
----
-3328
-3328
-3328

onlyif mysql # aggregate syntax: 
query II rowsort label-5424
SELECT DISTINCT - + COUNT( * ) AS col1, - 95 + - COUNT( * ) FROM tab1 AS cor0
----
-3
-98

skipif mysql # not compatible
query II rowsort label-5424
SELECT DISTINCT - + COUNT ( * ) AS col1, - 95 + - COUNT ( * ) FROM tab1 AS cor0
----
-3
-98

query I rowsort
SELECT ALL + col2 * ( + - 15 ) AS col1 FROM tab2 cor0
----
-345
-600
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT ALL - 11 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-5426
SELECT ALL - 11 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5427
SELECT - + CAST( NULL AS SIGNED ) * col0 * - col0 + - - CAST( NULL AS SIGNED ) * 97 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5427
SELECT - + CAST ( NULL AS INTEGER ) * col0 * - col0 + - - CAST ( NULL AS INTEGER ) * 97 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 + col1 col1 FROM tab1 AS cor0 WHERE NOT + col0 + + + 75 IS NULL
----
122
80
89

query I rowsort
SELECT - - ( + + 44 ) AS col0 FROM tab2 cor0
----
44
44
44

query I rowsort
SELECT DISTINCT col0 * - - 24 FROM tab1
----
1224
2040
2184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5431
SELECT ALL - 63 / - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL - 63 / - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE NULL = - - 74
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 43 col2 FROM tab0
----
-43
-43
-43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5434
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( + 82 AS SIGNED ) NOT BETWEEN - - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5434
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( + 82 AS INTEGER ) NOT BETWEEN - - col1 AND NULL
----

query I rowsort
SELECT ( - - col2 ) * + col1 * - - col1 FROM tab2 AS cor0
----
237160
260362
59823

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5436
SELECT ALL col2 + + + col2 * - col0 + + col1 AS col1, - CAST( NULL AS SIGNED ) * - - 41 AS col2 FROM tab2
----
-2443
NULL
-4225
NULL
-984
NULL

skipif mysql # not compatible
query II rowsort label-5436
SELECT ALL col2 + + + col2 * - col0 + + col1 AS col1, - CAST ( NULL AS INTEGER ) * - - 41 AS col2 FROM tab2
----
-2443
NULL
-4225
NULL
-984
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5437
SELECT CAST( NULL AS SIGNED ) + col2 + - - col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5437
SELECT CAST ( NULL AS INTEGER ) + col2 + - - col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT ALL - 76 + + ( + - COUNT( * ) ) * - + COUNT( * ) FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL - 76 + + ( + - COUNT ( * ) ) * - + COUNT ( * ) FROM tab0 AS cor0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT DISTINCT + - 96 + SUM( + col2 ) AS col2 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-5439
SELECT DISTINCT + - 96 + SUM ( + col2 ) AS col2 FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + 15 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-5440
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + 15 FROM tab2 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT ALL - COUNT( * ) + - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL - COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col0 * + 41 + + col2 FROM tab2 AS cor0
----
-1863
-2584
-3017

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 57 <= - 29 + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT - COUNT( * ) + 94 AS col1 FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5444
SELECT - COUNT ( * ) + 94 AS col1 FROM tab0 AS cor0
----
91

query I rowsort
SELECT DISTINCT ( col1 ) + - - 93 FROM tab2 AS cor0
----
144
160
170

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND 99
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 9 * - 1 IS NULL
----

query I rowsort
SELECT ALL - 98 + 94 FROM tab1 AS cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT ALL + COUNT( - 46 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL + COUNT ( - 46 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 25 + + + col0 + - + col0 + col2 * + col2 FROM tab0 AS cor0
----
125
2234
9826

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 - - - 42 col1 FROM tab0
----
-71
-71
-71

onlyif mysql # DIV for integer division: 
query I rowsort label-5452
SELECT DISTINCT - 37 DIV col0 DIV - col1 + - ( - col2 ) AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5452
SELECT DISTINCT - 37 / col0 / - col1 + - ( - col2 ) AS col1 FROM tab2
----
23
40
58

query III rowsort
SELECT * FROM tab2 WHERE NULL > - col1 * + col2
----

query I rowsort
SELECT - col2 - - 22 * 88 + - col1 FROM tab0
----
1808
1836
1905

query II rowsort
SELECT col0 - col0 + + - ( - col0 ) AS col2, col1 AS col0 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5456
SELECT col2 - + + col1 DIV - 45 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
query I rowsort label-5456
SELECT col2 - + + col1 / - 45 FROM tab2 AS cor0
----
24
41
59

query I rowsort
SELECT ALL - col0 + + 93 + 32 AS col0 FROM tab0 AS cor0
----
110
28
38

query I rowsort
SELECT DISTINCT 28 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5459
SELECT 50 * + CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5459
SELECT 50 * + CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5460
SELECT ALL CAST( NULL AS SIGNED ) * + - ( - MIN( ALL + col0 ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL CAST ( NULL AS INTEGER ) * + - ( - MIN ( ALL + col0 ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5461
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 / - col1 * - CAST( - 18 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5461
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 / - col1 * - CAST ( - 18 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5462
SELECT ALL - + ( 96 ) * col1 * CAST( + - col1 AS SIGNED ) * col0 + 82 + + col0 * + col1 FROM tab1 AS cor0
----
19302183
204507
960412

skipif mysql # not compatible
query I rowsort label-5462
SELECT ALL - + ( 96 ) * col1 * CAST ( + - col1 AS INTEGER ) * col0 + 82 + + col0 * + col1 FROM tab1 AS cor0
----
19302183
204507
960412

query I rowsort
SELECT ALL - ( - + col0 ) + - col2 - + col0 FROM tab2 WHERE NOT - + 76 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT DISTINCT MIN( - col1 ) col0 FROM tab1
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5465
SELECT DISTINCT MIN ( - col1 ) col0 FROM tab1
----
-47

query II rowsort
SELECT + col2 AS col2, - col1 * + 64 AS col0 FROM tab2
----
23
-3264
40
-4928
58
-4288

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE NOT - 10 IS NULL
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 col1 FROM tab2
----
64
64
64

query III rowsort
SELECT * FROM tab2 WHERE NOT + 80 > NULL
----

query II rowsort
SELECT ALL col2 AS col1, - col0 * col0 AS col1 FROM tab0
----
10
-7569
47
-225
99
-9409

query I rowsort
SELECT DISTINCT + col2 * + - 87 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) + 34 col0 FROM tab0
----
121
131
49

query I rowsort
SELECT - + 88 + - 85 FROM tab1 AS cor0
----
-173
-173
-173

query II rowsort
SELECT ALL 84 AS col0, col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + col0 AS col0 FROM tab1 WHERE 72 * col2 IS NOT NULL
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT DISTINCT COUNT( * ) * + 52 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
468

skipif mysql # not compatible
query I rowsort label-5476
SELECT DISTINCT COUNT ( * ) * + 52 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
468

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT + - MAX( ALL + + 90 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-90

skipif mysql # not compatible
query I rowsort label-5477
SELECT + - MAX ( ALL + + 90 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5478
SELECT - 87 col2, - col0 / - + CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-87
NULL
-87
NULL
-87
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5478
SELECT - 87 col2, - col0 / - + CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-87
NULL
-87
NULL
-87
NULL

query II rowsort
SELECT ALL col2 + - col2, 32 AS col2 FROM tab0 AS cor0
----
0
32
0
32
0
32

query I rowsort
SELECT DISTINCT + 49 + + col1 AS col2 FROM tab1 AS cor0
----
54
63
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5481
SELECT DISTINCT + - col0 - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT + - col0 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5482
SELECT DISTINCT col1 - - 72 DIV col1 FROM tab2 AS cor0
----
52
68
77

skipif mysql # not compatible
query I rowsort label-5482
SELECT DISTINCT col1 - - 72 / col1 FROM tab2 AS cor0
----
52
68
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5483
SELECT ALL + COUNT( col0 ) - - - MAX( DISTINCT - - 72 ) DIV - + 81 AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL + COUNT ( col0 ) - - - MAX ( DISTINCT - - 72 ) / - + 81 AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col2 + col2 + + - col2 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL col1 * - 74 - col0 FROM tab2
----
-3820
-5033
-5762

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5486
SELECT 37 + + - 80 * CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5486
SELECT 37 + + - 80 * CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + col0 - - col1 + + col2 FROM tab1 WHERE NOT ( NOT ( - col1 - + 68 ) IS NOT NULL )
----
149
161
206

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5488
SELECT DISTINCT - 12 DIV COUNT( * ) AS col0 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-5488
SELECT DISTINCT - 12 / COUNT ( * ) AS col0 FROM tab1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT ALL + ( - + COUNT( * ) ) * + - ( - 44 ) AS col2 FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-5489
SELECT ALL + ( - + COUNT ( * ) ) * + - ( - 44 ) AS col2 FROM tab1
----
-132

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5490
SELECT * FROM tab2 WHERE NOT + + CAST( NULL AS SIGNED ) - + col2 <> NULL
----

skipif mysql # not compatible
query III rowsort label-5490
SELECT * FROM tab2 WHERE NOT + + CAST ( NULL AS INTEGER ) - + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT - + COUNT( * ) AS col2 FROM tab2 WHERE NOT ( NOT col0 IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-5491
SELECT - + COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( NOT col0 IS NOT NULL )
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2 col1, - col0 * - 42 col0 FROM tab1 cor0
----
59
3570
68
3822
96
2142

query I rowsort
SELECT ALL col2 + - - col1 + ( col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
157
183
97

query I rowsort
SELECT + 99 FROM tab0 WHERE NOT - col0 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT - ( col2 ) * 25 AS col1 FROM tab0 WHERE 18 BETWEEN col0 AND 27
----
-1175

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 + col1 NOT BETWEEN col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col0 IN ( - col1 )
----

query I rowsort
SELECT + 84 AS col0 FROM tab0 WHERE ( - 44 ) >= col0 + + col0
----

query I rowsort
SELECT DISTINCT col2 + 78 * col1 FROM tab0
----
1648
177
6365

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * 12 <= ( + col2 + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 16 + + col0 * col0 FROM tab0
----
241
7585
9425

query I rowsort
SELECT + col1 * + col1 FROM tab1 WHERE col0 IN ( col2 - - col0 )
----

query I rowsort
SELECT - 12 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5504
SELECT ALL ( COUNT( col2 ) ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5504
SELECT ALL ( COUNT ( col2 ) ) col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5505
SELECT + CAST( - 97 AS SIGNED ) * - col0 + + col2 * col1 AS col0 FROM tab2
----
11161
5635
9288

skipif mysql # not compatible
query I rowsort label-5505
SELECT + CAST ( - 97 AS INTEGER ) * - col0 + + col2 * col1 AS col0 FROM tab2
----
11161
5635
9288

onlyif mysql # DIV for integer division: 
query I rowsort label-5506
SELECT - col2 DIV + col1 + col1 AS col1 FROM tab0
----
-98
21
81

skipif mysql # not compatible
query I rowsort label-5506
SELECT - col2 / + col1 + col1 AS col1 FROM tab0
----
-98
21
81

query I rowsort
SELECT + 22 * col2 + col1 AS col2 FROM tab1
----
1303
1543
2126

query I rowsort
SELECT ALL 71 * col1 - 36 FROM tab1
----
319
3301
958

query I rowsort
SELECT - col1 + - 82 AS col1 FROM tab1
----
-129
-87
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 WHERE NOT + 2 IS NOT NULL
----

query I rowsort
SELECT 45 * + ( col0 ) AS col1 FROM tab0
----
3915
4365
675

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT 82 - COUNT( * ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-5512
SELECT 82 - COUNT ( * ) FROM tab1
----
79

query I rowsort
SELECT ALL - col2 * - col2 + - 14 FROM tab2
----
1586
3350
515

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 71 col2 FROM tab0
----
3337
7029
710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab0 WHERE NOT + col0 + col2 IS NULL
----
-1
-21
-81

query I rowsort
SELECT ALL - 25 * col0 FROM tab2
----
-1150
-1600
-1875

query I rowsort
SELECT ALL 7 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT ALL COUNT( * ) + COUNT( * ) FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL COUNT ( * ) + COUNT ( * ) FROM tab1 cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5519
SELECT DISTINCT col0 DIV - 50 + + 91 AS col2 FROM tab0 AS cor0
----
90
91

skipif mysql # not compatible
query I rowsort label-5519
SELECT DISTINCT col0 / - 50 + + 91 AS col2 FROM tab0 AS cor0
----
90
91

query I rowsort
SELECT col1 * - ( col1 ) AS col1 FROM tab2 AS cor0 WHERE ( col0 + + col0 ) <= 7 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5521
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-5521
SELECT ALL ( CAST ( NULL AS INTEGER ) ) col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT ALL + COUNT( * ) * COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
81

skipif mysql # not compatible
query I rowsort label-5522
SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
81

query III rowsort
SELECT * FROM tab1 WHERE - 40 NOT IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + - 26 AS col1 FROM tab1
----
-12
-21
21

onlyif mysql # DIV for integer division: 
query I rowsort label-5525
SELECT col1 * - 55 + + 48 DIV - 87 col0 FROM tab1
----
-2585
-275
-770

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5525
SELECT col1 * - 55 + + 48 / - 87 col0 FROM tab1
----
-2585
-275
-770

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-5526
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9

query I rowsort
SELECT + ( + col2 ) * col1 + + col2 FROM tab1
----
1440
3264
354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5528
SELECT 21 + CAST( NULL AS SIGNED ) * 78 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5528
SELECT 21 + CAST ( NULL AS INTEGER ) * 78 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT DISTINCT COUNT( * ) * + 11 + + 85 AS col2 FROM tab2 AS cor0
----
118

skipif mysql # not compatible
query I rowsort label-5529
SELECT DISTINCT COUNT ( * ) * + 11 + + 85 AS col2 FROM tab2 AS cor0
----
118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 * col0 col1 FROM tab1 AS cor0
----
102
170
182

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT - col0 * col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-5533
SELECT ALL + - col2 * 58 - 40 DIV col1 FROM tab0 AS cor0
----
-2726
-5782
-581

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL + - col2 * 58 - 40 / col1 FROM tab0 AS cor0
----
-2726
-5782
-581

onlyif mysql # DIV for integer division: 
query I rowsort label-5534
SELECT - 80 DIV + col0 AS col2 FROM tab0 cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-5534
SELECT - 80 / + col0 AS col2 FROM tab0 cor0
----
-5
0
0

query I rowsort
SELECT 53 * + col0 FROM tab2 cor0
----
2438
3392
3975

query I rowsort
SELECT + 4 + col2 AS col2 FROM tab0 AS cor0 WHERE col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - col2 col0 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT ALL + col0 - - 98 AS col2 FROM tab2 AS cor0
----
144
162
173

query I rowsort
SELECT ALL ( - col0 ) * col1 + - col2 FROM tab0
----
-1262
-1837
-196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - ( col2 ) * col2 col2 FROM tab0
----
187
2224
9898

query I rowsort
SELECT 22 * 90 FROM tab0 WHERE + col2 > col0 + - 29
----
1980
1980

query I rowsort
SELECT 65 * + - col1 FROM tab2
----
-3315
-4355
-5005

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE NOT ( + col0 - + 36 ) IS NULL
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN - 66 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 * - col1 ) IS NOT NULL
----

query I rowsort
SELECT + 12 * - col2 * col2 FROM tab0 AS cor0
----
-117612
-1200
-26508

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * col0 col2 FROM tab2 cor0 WHERE NOT NULL <> ( col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5548
SELECT DISTINCT COUNT( ALL col2 ) DIV 57 + 78 col0 FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( col1 + + col1 )
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5548
SELECT DISTINCT COUNT ( ALL col2 ) / 57 + 78 col0 FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( col1 + + col1 )
----
78

query I rowsort
SELECT - ( + 30 ) FROM tab0 cor0
----
-30
-30
-30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 86 + col1 NOT BETWEEN - col2 - + col2 * ( + 63 ) AND col0 * 56
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 7 AS col0 FROM tab0 cor0
----
7
7
7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 32 ) IS NULL
----

query I rowsort
SELECT - 73 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND ( - 79 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 / 23 - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5555
SELECT DISTINCT COUNT( * ) * - CAST( 84 AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-756

skipif mysql # not compatible
query I rowsort label-5555
SELECT DISTINCT COUNT ( * ) * - CAST ( 84 AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-756

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5556
SELECT DISTINCT COUNT( * ) + CAST( NULL AS DECIMAL ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5556
SELECT DISTINCT COUNT ( * ) + CAST ( NULL AS REAL ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT + ( + 70 ) + - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
56
65

query II rowsort
SELECT + - 16 AS col2, + 36 AS col1 FROM tab0 AS cor0
----
-16
36
-16
36
-16
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5559
SELECT DISTINCT + col1 FROM tab1 cor0 WHERE NOT 32 * - col1 < + CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT + col1 FROM tab1 cor0 WHERE NOT 32 * - col1 < + CAST ( col0 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5560
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5560
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT 51 * + 87 AS col2 FROM tab1 cor0
----
4437
4437
4437

query I rowsort
SELECT DISTINCT + 53 + - - 65 FROM tab1 cor0
----
118

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 * + - 75 ) < NULL
----

query II rowsort
SELECT ALL + - col2, 66 AS col0 FROM tab0 AS cor0
----
-10
66
-47
66
-99
66

query I rowsort
SELECT + 50 * col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > - col1 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5566
SELECT DISTINCT + - col2 * + col0 * 1 DIV - col0 FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT + - col2 * + col0 * 1 / - col0 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT ALL - ( - - 75 ) * - col0 FROM tab2 AS cor0
----
3450
4800
5625

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 <= + - ( 15 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5569
SELECT CAST( NULL AS DECIMAL ) + col2 AS col0 FROM tab2 AS cor0 WHERE col0 <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5569
SELECT CAST ( NULL AS REAL ) + col2 AS col0 FROM tab2 AS cor0 WHERE col0 <> ( NULL )
----

query I rowsort
SELECT 30 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col1 + col0 AND ( col2 + 32 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col2 + - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5571
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col2 + - col2 AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 / col1 col0 FROM tab1 WHERE ( NULL ) BETWEEN ( - col1 ) * - 79 AND 42
----

query II rowsort
SELECT 97 + - col0 AS col1, - 0 * + - 96 + + ( - 93 ) FROM tab2
----
22
-93
33
-93
51
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5574
SELECT ALL ( + - CAST( NULL AS SIGNED ) ) / + col2 + - + 33 * col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5574
SELECT ALL ( + - CAST ( NULL AS INTEGER ) ) / + col2 + - + 33 * col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT ALL MIN( ALL + col0 ) * - + COUNT( * ) FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-5575
SELECT ALL MIN ( ALL + col0 ) * - + COUNT ( * ) FROM tab2 AS cor0
----
-138

onlyif mysql # aggregate syntax: 
query II rowsort label-5576
SELECT ALL + COUNT( * ), MAX( DISTINCT col2 ) AS col1 FROM tab1
----
3
96

skipif mysql # not compatible
query II rowsort label-5576
SELECT ALL + COUNT ( * ), MAX ( DISTINCT col2 ) AS col1 FROM tab1
----
3
96

query I rowsort
SELECT col2 - col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT ALL + 10 + + COUNT( - col2 ) AS col1 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-5578
SELECT ALL + 10 + + COUNT ( - col2 ) AS col1 FROM tab0 AS cor0
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT + COUNT( + 24 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5579
SELECT + COUNT ( + 24 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + ( + col0 ) FROM tab1 AS cor0 WHERE ( NULL ) = + + col2 * + - col0 + - 2
----

query I rowsort
SELECT DISTINCT + ( + - col0 ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5582
SELECT ALL MIN( - col0 ) DIV - 42 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5582
SELECT ALL MIN ( - col0 ) / - 42 AS col2 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5583
SELECT CAST( - ( - 2 ) AS SIGNED ) col2 FROM tab2
----
2
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5583
SELECT CAST ( - ( - 2 ) AS INTEGER ) col2 FROM tab2
----
2
2
2

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5585
SELECT DISTINCT COUNT( * ) col0, COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5585
SELECT DISTINCT COUNT ( * ) col0, COUNT ( * ) FROM tab0
----
3
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5586
SELECT ALL + CAST( NULL AS DECIMAL ) col2 FROM tab1 AS cor0 WHERE NULL BETWEEN - col2 AND ( + - col2 ) OR NOT col2 = 44 * 53 - col2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5586
SELECT ALL + CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0 WHERE NULL BETWEEN - col2 AND ( + - col2 ) OR NOT col2 = 44 * 53 - col2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5587
SELECT DISTINCT + COUNT( * ) * COUNT( * ) - 20 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-5587
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) - 20 FROM tab1 AS cor0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-5588
SELECT ALL - col0 DIV + 31 AS col0 FROM tab2 cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL - col0 / + 31 AS col0 FROM tab2 cor0
----
-1
-2
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-5589
SELECT + 94 DIV - - 44 AS col0 FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5589
SELECT + 94 / - - 44 AS col0 FROM tab1 AS cor0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5590
SELECT ALL + 91 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5590
SELECT ALL + 91 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 64 * + - 89 * - col1 FROM tab2
----
290496
381632
438592

query I rowsort
SELECT ( + 83 ) * col1 AS col0 FROM tab0
----
1743
6723
83

onlyif mysql # aggregate syntax: 
query I rowsort label-5593
SELECT DISTINCT + COUNT( * ) + - + SUM( + - 0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5593
SELECT DISTINCT + COUNT ( * ) + - + SUM ( + - 0 ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN + 16 / col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 = - 46
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = + ( - 18 )
----

query I rowsort
SELECT ( + + col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT + 18 * COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5598
SELECT + 18 * COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) >= ( NULL )
----
0

query I rowsort
SELECT ALL + col1 + - + 33 FROM tab2 AS cor0 WHERE + 56 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + + + 18 + - + col0 * + 36 * + 83 AS col1 FROM tab0 AS cor0
----
-260025
-289915
-44817

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT ALL + + COUNT( * ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5601
SELECT ALL + + COUNT ( * ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5602
SELECT DISTINCT - col0 DIV + - 97 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5602
SELECT DISTINCT - col0 / + - 97 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT col0 + - - 82 AS col0 FROM tab1 AS cor0
----
133
167
173

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5604
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT - CAST( NULL AS DECIMAL ) > + - col0 )
----

skipif mysql # not compatible
query I rowsort label-5604
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT - CAST ( NULL AS REAL ) > + - col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5605
SELECT + + CAST( NULL AS DECIMAL ) + + 19 * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT + + CAST ( NULL AS REAL ) + + 19 * col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col1 IS NOT NULL )
----

query I rowsort
SELECT + col2 * 25 - - 99 AS col1 FROM tab1 AS cor0 WHERE col0 * - col2 IN ( + + col1, - ( - col0 ) )
----

query II rowsort
SELECT ALL 7, + col0 FROM tab0
----
7
15
7
87
7
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5609
SELECT - ( col0 ) DIV - + 8 FROM tab2
----
5
8
9

skipif mysql # not compatible
query I rowsort label-5609
SELECT - ( col0 ) / - + 8 FROM tab2
----
5
8
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT + + MAX( ALL - - col0 ) - + 0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5610
SELECT + + MAX ( ALL - - col0 ) - + 0 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5611
SELECT ALL + CAST( NULL AS SIGNED ) * + col2 + - ( + - col1 ) + + col0 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-5611
SELECT ALL + CAST ( NULL AS INTEGER ) * + col2 + - ( + - col1 ) + + col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5612
SELECT + AVG ( - + 30 ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5612
SELECT + AVG ( - + 30 ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col0 col1 FROM tab2 cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT DISTINCT + MIN( DISTINCT col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5614
SELECT DISTINCT + MIN ( DISTINCT col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT DISTINCT + SUM( DISTINCT 93 ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-5615
SELECT DISTINCT + SUM ( DISTINCT 93 ) FROM tab1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5616
SELECT ( SUM( - 49 ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-441

skipif mysql # not compatible
query I rowsort label-5616
SELECT ( SUM ( - 49 ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-441

query I rowsort
SELECT - col0 * 59 AS col1 FROM tab1 AS cor0
----
-3009
-5015
-5369

query I rowsort
SELECT + + col0 * + col0 + col1 AS col2 FROM tab0 AS cor0
----
306
7590
9410

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT + ( - + COUNT( * ) ) * 41 FROM tab1 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-5619
SELECT + ( - + COUNT ( * ) ) * 41 FROM tab1 AS cor0
----
-123

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 81 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5622
SELECT - CAST( NULL AS SIGNED ) * - col0 * + col1 AS col1, 14 FROM tab2
----
NULL
14
NULL
14
NULL
14

skipif mysql # not compatible
query II rowsort label-5622
SELECT - CAST ( NULL AS INTEGER ) * - col0 * + col1 AS col1, 14 FROM tab2
----
NULL
14
NULL
14
NULL
14

query II rowsort
SELECT + 21 * col2 * + 27, - 91 AS col1 FROM tab1
----
33453
-91
38556
-91
54432
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, - 98 FROM tab1
----
14
-98
47
-98
5
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT DISTINCT COUNT( * ) * 81 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-5625
SELECT DISTINCT COUNT ( * ) * 81 FROM tab0 AS cor0
----
243

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5626
SELECT DISTINCT + CAST( NULL AS SIGNED ), + 53 AS col1 FROM tab1
----
NULL
53

skipif mysql # not compatible
query II rowsort label-5626
SELECT DISTINCT + CAST ( NULL AS INTEGER ), + 53 AS col1 FROM tab1
----
NULL
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5627
SELECT COUNT( * ) DIV + 19 col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5627
SELECT COUNT ( * ) / + 19 col1 FROM tab0
----
0

query I rowsort
SELECT ALL + + 1 + 11 + - col2 AS col1 FROM tab1 AS cor0
----
-47
-56
-84

query II rowsort
SELECT DISTINCT + col0 + - 89, col1 FROM tab0 AS cor0
----
-2
21
-74
81
8
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * ( + - col1 ) IS NULL
----

query I rowsort
SELECT ALL col1 + - + 57 FROM tab0 AS cor0
----
-36
-56
24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5632
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 * - CAST( - - 19 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-5632
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 * - CAST ( - - 19 AS INTEGER ) <> NULL
----

query I rowsort
SELECT + + col1 AS col1 FROM tab1 AS cor0 WHERE - col1 / - - 58 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT COUNT( + - 59 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5634
SELECT COUNT ( + - 59 ) AS col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT + col0, - col1 * 69 FROM tab1 AS cor0
----
51
-966
85
-345
91
-3243

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT DISTINCT + SUM( DISTINCT + - col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-5636
SELECT DISTINCT + SUM ( DISTINCT + - col0 ) AS col0 FROM tab2
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5637
SELECT col0 + + - CAST( - col2 AS SIGNED ) col0 FROM tab1
----
144
147
159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5637
SELECT col0 + + - CAST ( - col2 AS INTEGER ) col0 FROM tab1
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5638
SELECT ALL * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-5638
SELECT ALL * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) <= NULL
----

query I rowsort
SELECT ALL col1 * - - col2 AS col2 FROM tab1
----
1344
295
3196

query I rowsort
SELECT + col1 + 88 FROM tab1
----
102
135
93

query I rowsort
SELECT ALL - 29 * + col0 FROM tab1
----
-1479
-2465
-2639

query I rowsort
SELECT DISTINCT + col0 * + 9 * + col2 + col1 * 28 + col1 + col0 FROM tab1 AS cor0
----
44521
45365
57146

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT DISTINCT + MAX( ALL col2 ) FROM tab0 AS cor0 WHERE NULL <> 12 * + 3
----
NULL

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT + MAX ( ALL col2 ) FROM tab0 AS cor0 WHERE NULL <> 12 * + 3
----
NULL

query I rowsort
SELECT DISTINCT + col1 * + col1 * - - col0 - col2 - - + col0 FROM tab1
----
201042
2151
9951

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= col2 + + + 63
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 64 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 4 AS col2, col1 * + col1 AS col1 FROM tab2 cor0
----
-4
2601
-4
4489
-4
5929

onlyif mysql # DIV for integer division: 
query I rowsort label-5648
SELECT - - col1 DIV - ( - 60 ) - - + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5648
SELECT - - col1 / - ( - 60 ) - - + col2 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT DISTINCT col1 AS col2, - 56 * - col1 FROM tab0 cor0
----
1
56
21
1176
81
4536

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5650
SELECT + + col2 AS col2, + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-5650
SELECT + + col2 AS col2, + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5651
SELECT ALL + MAX( ALL + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL + MAX ( ALL + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 80 * + - ( - ( + 49 ) ) col2 FROM tab2
----
-3920
-3920
-3920

query III rowsort
SELECT * FROM tab1 WHERE NOT + 84 + + + 48 * - col1 + 97 / + + 87 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 29 > ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + + col1 * + 20 AS col0, col2 AS col1 FROM tab2 AS cor0
----
1020
23
1340
58
1540
40

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 71 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 74 = - - col1 + - col1
----

query I rowsort
SELECT ALL - col0 * + 98 AS col2 FROM tab0 AS cor0
----
-1470
-8526
-9506

query I rowsort
SELECT 32 * col2 + - - col0 AS col2 FROM tab2 AS cor0
----
1344
1931
782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5660
SELECT + ( - CAST( NULL AS SIGNED ) ) / - col2 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5660
SELECT + ( - CAST ( NULL AS INTEGER ) ) / - col2 + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 97 * + + ( - + 53 ) + 73 AS col0 FROM tab1 AS cor0
----
5214
5214
5214

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5664
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + 59 + - + ( + CAST( - MIN( + col1 ) AS SIGNED ) ) AS col0, - 77 FROM tab0 AS cor0
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-5664
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + 59 + - + ( + CAST ( - MIN ( + col1 ) AS INTEGER ) ) AS col0, - 77 FROM tab0 AS cor0
----
NULL
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5665
SELECT CAST( col2 AS DECIMAL ) * ( - col1 ) AS col0, col1 * - 80 * + - col0 FROM tab2 WHERE ( 74 ) > NULL
----

skipif mysql # not compatible
query II rowsort label-5665
SELECT CAST ( col2 AS REAL ) * ( - col1 ) AS col0, col1 * - 80 * + - col0 FROM tab2 WHERE ( 74 ) > NULL
----

query I rowsort
SELECT ALL - 62 - ( + col1 ) FROM tab1
----
-109
-67
-76

query II rowsort
SELECT col1, 92 * - col2 AS col0 FROM tab2
----
51
-2116
67
-5336
77
-3680

onlyif mysql # aggregate syntax: 
query II rowsort label-5668
SELECT ALL - 13 * COUNT( * ) AS col2, 11 AS col0 FROM tab0
----
-39
11

skipif mysql # not compatible
query II rowsort label-5668
SELECT ALL - 13 * COUNT ( * ) AS col2, 11 AS col0 FROM tab0
----
-39
11

query I rowsort
SELECT col1 - - + col2 AS col1 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT 50 - + COUNT( DISTINCT - + 29 ) AS col0 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-5670
SELECT 50 - + COUNT ( DISTINCT - + 29 ) AS col0 FROM tab0 AS cor0
----
49

query I rowsort
SELECT - - 53 + + col0 + col2 AS col1 FROM tab2 AS cor0
----
122
157
186

query I rowsort
SELECT DISTINCT + col2 - + col1 + + col1 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5673
SELECT + - 46 * + col1 + + + 51 DIV - col1 FROM tab2 cor0
----
-2347
-3082
-3542

skipif mysql # not compatible
query I rowsort label-5673
SELECT + - 46 * + col1 + + + 51 / - col1 FROM tab2 cor0
----
-2347
-3082
-3542

query I rowsort
SELECT ALL + - ( - - AVG ( - 48 ) ) FROM tab2 WHERE + 50 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5675
SELECT ALL + 85 DIV + - 53 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL + 85 / + - 53 AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + col0 + - + col1 FROM tab2 WHERE NOT ( + - 24 ) IN ( + - col1, + col0 )
----
-13
-5
8

query II rowsort
SELECT col1 * 61 AS col0, 99 AS col2 FROM tab2
----
3111
99
4087
99
4697
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + + 64
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 1, - 48, - 15 )
----

query I rowsort
SELECT - - 29 * + col2 * - col2 FROM tab0 cor0 WHERE NOT + 81 IS NULL
----
-284229
-2900
-64061

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + - 46 / + col1 + 55
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5682
SELECT + - MIN( 82 ) DIV + SUM( DISTINCT col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5682
SELECT + - MIN ( 82 ) / + SUM ( DISTINCT col2 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5683
SELECT ALL + COUNT( * ), + ( MIN( 94 ) ) + - 28 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5683
SELECT ALL + COUNT ( * ), + ( MIN ( 94 ) ) + - 28 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 21 * 80 >= + + 17
----

query I rowsort
SELECT - col0 + - col1 + - col2 FROM tab0 WHERE NOT + col2 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 97 ) col0 FROM tab2 AS cor0
----
97
97
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col0 ) >= NULL
----

query I rowsort
SELECT - - col1 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT 46 + - col2 + 82 + - 33 FROM tab1 AS cor0
----
-1
27
36

query I rowsort
SELECT DISTINCT 22 + 69 AS col1 FROM tab1 cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 col1, - col0 AS col1 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

query III rowsort
SELECT * FROM tab0 WHERE col2 < ( 91 )
----
15
81
47
87
21
10

query I rowsort
SELECT ALL col2 + 3 + + 55 AS col1 FROM tab2
----
116
81
98

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5694
SELECT + 47 DIV CAST( - + col1 AS SIGNED ) FROM tab0
----
-2
-47
0

skipif mysql # not compatible
query I rowsort label-5694
SELECT + 47 / CAST ( - + col1 AS INTEGER ) FROM tab0
----
-2
-47
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5695
SELECT ALL COUNT( - + 22 ) + 59 AS col0 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-5695
SELECT ALL COUNT ( - + 22 ) + 59 AS col0 FROM tab0 AS cor0
----
62

query I rowsort
SELECT 49 - + 49 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5698
SELECT ALL 27 - col0 + - - col0 + + ( + col0 ) DIV col0 AS col1 FROM tab2
----
28
28
28

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL 27 - col0 + - - col0 + + ( + col0 ) / col0 AS col1 FROM tab2
----
28
28
28

query I rowsort
SELECT 79 + - 69 + - 24 FROM tab2
----
-14
-14
-14

query I rowsort
SELECT DISTINCT + - col2 * - - 9 + 77 AS col1 FROM tab2 WHERE NULL >= - + 90 - - ( - col0 ) * col2
----

query I rowsort
SELECT col0 + 55 AS col0 FROM tab1
----
106
140
146

query II rowsort
SELECT DISTINCT + col2 AS col1, col1 + col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT ALL - MAX( DISTINCT + ( col1 ) ) col1 FROM tab0 WHERE NOT NULL BETWEEN - 56 AND + 17
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5703
SELECT ALL - MAX ( DISTINCT + ( col1 ) ) col1 FROM tab0 WHERE NOT NULL BETWEEN - 56 AND + 17
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT + COUNT( * ) FROM tab2 WHERE + - ( - 8 ) * + col0 + + 14 / 87 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5704
SELECT + COUNT ( * ) FROM tab2 WHERE + - ( - 8 ) * + col0 + + 14 / 87 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - 78 * + col0 FROM tab0
----
-1170
-6786
-7566

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT DISTINCT - ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT - ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 < col2 / + col2 * 78 + - 78 + + 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT - ( + 70 ) * - + COUNT( * ) * + 46 col2 FROM tab1 AS cor0
----
9660

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5708
SELECT - ( + 70 ) * - + COUNT ( * ) * + 46 col2 FROM tab1 AS cor0
----
9660

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + + col1 IS NULL
----

query I rowsort
SELECT - 9 * + col0 AS col2 FROM tab2 AS cor0
----
-414
-576
-675

query I rowsort
SELECT - 26 FROM tab1, tab0 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5712
SELECT CAST( + 89 AS SIGNED ) AS col2 FROM tab2
----
89
89
89

skipif mysql # not compatible
query I rowsort label-5712
SELECT CAST ( + 89 AS INTEGER ) AS col2 FROM tab2
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT DISTINCT - SUM( ALL col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT - SUM ( ALL col1 ) FROM tab1
----
-66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5714
SELECT DISTINCT COUNT( * ) DIV - 8 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5714
SELECT DISTINCT COUNT ( * ) / - 8 AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT ALL + + COUNT( 68 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5715
SELECT ALL + + COUNT ( 68 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + - 79 AS col0 FROM tab2 AS cor0 WHERE NOT + 43 IN ( col2, col0, + + col0, + col2 * col0, - 38 * + col1 )
----
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5717
SELECT ALL + + CAST( - col0 AS SIGNED ) * - - col1 AS col0 FROM tab2 cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-5717
SELECT ALL + + CAST ( - col0 AS INTEGER ) * - - col1 AS col0 FROM tab2 cor0
----
-2346
-4928
-5025

query I rowsort
SELECT + 45 * 40 + + + ( + 78 ) AS col2 FROM tab1 cor0
----
1878
1878
1878

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT - - COUNT( * ) + - + 82 + - 67 FROM tab0 AS cor0
----
-146

skipif mysql # not compatible
query I rowsort label-5719
SELECT - - COUNT ( * ) + - + 82 + - 67 FROM tab0 AS cor0
----
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT COUNT( * ) + - + 22 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-5720
SELECT COUNT ( * ) + - + 22 FROM tab0 AS cor0
----
-19

query I rowsort
SELECT + col2 * - col0 + - 89 FROM tab0 AS cor0
----
-794
-959
-9692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5722
SELECT DISTINCT - + col1 * + + col2 + + CAST( NULL AS SIGNED ) FROM tab1 WHERE - 45 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5722
SELECT DISTINCT - + col1 * + + col2 + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE - 45 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT DISTINCT - MIN( + 91 ) AS col1 FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-5723
SELECT DISTINCT - MIN ( + 91 ) AS col1 FROM tab0
----
-91

query II rowsort
SELECT 19 * - - col0 AS col1, col0 FROM tab0
----
1653
87
1843
97
285
15

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
10
47
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 13 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT ALL ( + ( 8 ) ) * - + 37 + 64 + + - COUNT( * ) FROM tab0 AS cor0
----
-235

skipif mysql # not compatible
query I rowsort label-5727
SELECT ALL ( + ( 8 ) ) * - + 37 + 64 + + - COUNT ( * ) FROM tab0 AS cor0
----
-235

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5728
SELECT ALL 50, CAST( + 50 AS SIGNED ) AS col1 FROM tab0
----
50
50
50
50
50
50

skipif mysql # not compatible
query II rowsort label-5728
SELECT ALL 50, CAST ( + 50 AS INTEGER ) AS col1 FROM tab0
----
50
50
50
50
50
50

query I rowsort
SELECT + ( col1 ) * - - 71 FROM tab0 WHERE - col1 * + col1 IS NULL
----

query I rowsort
SELECT ALL - + 56 AS col2 FROM tab2 AS cor0
----
-56
-56
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 + + 44 col2 FROM tab0 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT + 42 * col1 + 37 - - col2 FROM tab0 AS cor0
----
178
3486
929

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT + MIN( 27 ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-5733
SELECT + MIN ( 27 ) FROM tab2 AS cor0
----
27

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 7 NOT BETWEEN col1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - col1 ) - col1 + - + col1 FROM tab1 AS cor0
----
-141
-15
-42

query I rowsort
SELECT ALL - col1 * col2 * - 62 FROM tab1 AS cor0 WHERE NULL < + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 28, 98 col0 FROM tab1 cor0
----
28
98
28
98
28
98

query III rowsort
SELECT * FROM tab2 WHERE NULL <= - 68
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 WHERE col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 67 * 46 - + + col0 AS col1 FROM tab0
----
2985
2995
3067

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 85 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT DISTINCT - COUNT( DISTINCT - 80 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5743
SELECT DISTINCT - COUNT ( DISTINCT - 80 ) AS col1 FROM tab1
----
-1

query I rowsort
SELECT + col1 * + + col0 AS col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT + + 13 * col2 FROM tab0 AS cor0
----
1287
130
611

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5746
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 * - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-5746
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col2 * - CAST ( NULL AS INTEGER ) > NULL
----

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT - 20 IS NULL
----
-59
-68
-96

query I rowsort
SELECT + - 92 + + col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 + + - 69 BETWEEN NULL AND + - 27 / col1 / + + col1
----
-15

query I rowsort
SELECT + + 47 FROM tab2 AS cor0 WHERE NOT + col0 >= + col1
----
47
47

query II rowsort
SELECT - + col1 AS col0, ( - - ( col2 ) ) + + col2 FROM tab1 cor0
----
-14
192
-47
136
-5
118

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5751
SELECT * FROM tab2 cor0 WHERE NOT ( 45 IN ( + col0 * + col1 + - - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-5751
SELECT * FROM tab2 cor0 WHERE NOT ( 45 IN ( + col0 * + col1 + - - CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5752
SELECT ALL - 91 * + COUNT( - col2 ) col1, CAST( 26 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-273
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5752
SELECT ALL - 91 * + COUNT ( - col2 ) col1, CAST ( 26 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-273
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5753
SELECT ALL - col1 DIV ( - + col1 ) FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5753
SELECT ALL - col1 / ( - + col1 ) FROM tab0 cor0
----
1
1
1

query I rowsort
SELECT ALL - 26 AS col0 FROM tab2 WHERE NULL >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT ALL - COUNT( * ) * + 10 * - - COUNT( * ) AS col1 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL - COUNT ( * ) * + 10 * - - COUNT ( * ) AS col1 FROM tab2
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5756
SELECT col2 * - col1 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT col2 * - col1 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + 34 * - - col2 FROM tab1
----
2006
2312
3264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 6 col2, + 55 AS col0 FROM tab0
----
6
55
6
55
6
55

query I rowsort
SELECT DISTINCT - col1 * + col1 + - 16 AS col0 FROM tab0
----
-17
-457
-6577

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT ALL COUNT( + - 93 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5760
SELECT ALL COUNT ( + - 93 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 62 * + col1 + + col1 + - 18 * - + col2 * - + col2 - - + col1 + col0 + + - 23 IS NULL
----

query I rowsort
SELECT - 16 + - 24 FROM tab0
----
-40
-40
-40

query I rowsort
SELECT DISTINCT - col2 + + - col1 AS col2 FROM tab1 AS cor0
----
-110
-115
-64

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col0 + - - 28 AND - 66 * - 76
----

query I rowsort
SELECT DISTINCT - col0 + - 25 + col0 * + col2 FROM tab1 cor0
----
4820
4905
6072

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5766
SELECT DISTINCT + - COUNT( * ) * CAST( NULL AS SIGNED ) * MIN( ALL - col0 ) * - 77 + COUNT( * ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5766
SELECT DISTINCT + - COUNT ( * ) * CAST ( NULL AS INTEGER ) * MIN ( ALL - col0 ) * - 77 + COUNT ( * ) AS col2 FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + - col1 > - + 75
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * 62 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1302
5022
62

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * - col2 NOT BETWEEN NULL AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT COUNT( DISTINCT - - 30 ) * COUNT( ALL + 42 ) + + MAX( col2 ) col1 FROM tab1
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5770
SELECT COUNT ( DISTINCT - - 30 ) * COUNT ( ALL + 42 ) + + MAX ( col2 ) col1 FROM tab1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5771
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL NOT IN ( - + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5771
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL NOT IN ( - + col0 )
----
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE 36 * 33 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col0 AND - ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5774
SELECT - col0 * 6 DIV + 45 - + + col2 FROM tab2 AS cor0
----
-29
-48
-68

skipif mysql # not compatible
query I rowsort label-5774
SELECT - col0 * 6 / + 45 - + + col2 FROM tab2 AS cor0
----
-29
-48
-68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + + - col2 - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5776
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5776
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 - + 88 + + 94 AS col2 FROM tab0 AS cor0
----
-81
-9
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5778
SELECT DISTINCT - COUNT( * ) * + SUM( DISTINCT - - ( + CAST( + - col2 AS SIGNED ) ) ) + - 62 AS col2 FROM tab1 AS cor0
----
607

skipif mysql # not compatible
query I rowsort label-5778
SELECT DISTINCT - COUNT ( * ) * + SUM ( DISTINCT - - ( + CAST ( + - col2 AS INTEGER ) ) ) + - 62 AS col2 FROM tab1 AS cor0
----
607

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT ALL 66 * COUNT( * ) + - 33 + + - COUNT( * ) col2 FROM tab0 AS cor0
----
162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5779
SELECT ALL 66 * COUNT ( * ) + - 33 + + - COUNT ( * ) col2 FROM tab0 AS cor0
----
162

query I rowsort
SELECT 61 + + + col2 AS col1 FROM tab0
----
108
160
71

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT ALL + MAX( ALL - 95 ) AS col1 FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL + MAX ( ALL - 95 ) AS col1 FROM tab1
----
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5782
SELECT - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5782
SELECT - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT + 38, col2 FROM tab0
----
38
10
38
47
38
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT DISTINCT MIN( DISTINCT - 47 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT MIN ( DISTINCT - 47 ) AS col0 FROM tab1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5785
SELECT + MAX( DISTINCT col1 ) * - CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5785
SELECT + MAX ( DISTINCT col1 ) * - CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col2 * + + 0 + + - ( - - col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab2 WHERE - 8 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 83 FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT ( + col0 ) + col1 AS col0 FROM tab1 cor0
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5790
SELECT * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN + - col0 * - - col0 AND NULL AND NOT 3 - + CAST( - + col2 AS SIGNED ) <= 41
----

skipif mysql # not compatible
query III rowsort label-5790
SELECT * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN + - col0 * - - col0 AND NULL AND NOT 3 - + CAST ( - + col2 AS INTEGER ) <= 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5791
SELECT ALL 5 * - COUNT( * ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5791
SELECT ALL 5 * - COUNT ( * ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT - 29 * 34 + ( - col0 ) + - + col1 FROM tab2 AS cor0
----
-1083
-1127
-1128

query II rowsort
SELECT DISTINCT + 55, col2 FROM tab1 AS cor0 WHERE NOT + 98 + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5794
SELECT CAST( + - col2 AS SIGNED ) - + - 18 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-22
-40
-5

skipif mysql # not compatible
query I rowsort label-5794
SELECT CAST ( + - col2 AS INTEGER ) - + - 18 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-22
-40
-5

query I rowsort
SELECT - ( + 29 ) * + col2 AS col1 FROM tab0
----
-1363
-2871
-290

query III rowsort
SELECT * FROM tab1 WHERE - 24 - - - 93 * - col2 / col2 NOT BETWEEN col1 * 90 AND + 2 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 65 AS col1 FROM tab1, tab2 AS cor0
----
-65

query I rowsort
SELECT - ( - + col2 ) AS col2 FROM tab0 AS cor0 WHERE - col2 * 54 <> + col0
----
10
47
99

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 37 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 1 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query III rowsort
SELECT * FROM tab1 WHERE - col1 < - col2
----

query I rowsort
SELECT ALL - + col2 + - 47 * + col0 * - col0 AS col0 FROM tab0 AS cor0
----
10528
355733
442124

onlyif mysql # DIV for integer division: 
query II rowsort label-5803
SELECT DISTINCT - col2, + col2 DIV - col0 + - 47 AS col2 FROM tab2 AS cor0
----
-23
-47
-40
-47
-58
-47

skipif mysql # not compatible
query II rowsort label-5803
SELECT DISTINCT - col2, + col2 / - col0 + - 47 AS col2 FROM tab2 AS cor0
----
-23
-47
-40
-47
-58
-47

query I rowsort
SELECT DISTINCT - col0 * + 28 AS col1 FROM tab2
----
-1288
-1792
-2100

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 < - 2 + - + 59 * + col0 / - ( + 71 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 * - + col1 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 NOT IN ( - 70 * + col2 - - col2, col0 + 47, 20 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5808
SELECT ALL - MAX( - 4 ) DIV + + 84 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5808
SELECT ALL - MAX ( - 4 ) / + + 84 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5809
SELECT DISTINCT ( + + CAST( - MAX( col1 ) AS SIGNED ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5809
SELECT DISTINCT ( + + CAST ( - MAX ( col1 ) AS INTEGER ) ) FROM tab0 AS cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 + + ( 26 ) + - + col2 col2, col1 FROM tab1 AS cor0 WHERE NOT col1 * 19 < NULL
----

query I rowsort
SELECT DISTINCT - + 41 AS col1 FROM tab2 cor0
----
-41

query II rowsort
SELECT ALL + col2, - 57 FROM tab2
----
23
-57
40
-57
58
-57

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col2 + col2 + col1 IN ( + ( ( + 60 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT + + MIN( 45 ) AS col1 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-5814
SELECT + + MIN ( 45 ) AS col1 FROM tab0 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT ALL - + 36 + - SUM( - ( - - col2 ) ) + ( - + COUNT( * ) ) FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL - + 36 + - SUM ( - ( - - col2 ) ) + ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
82

query I rowsort
SELECT DISTINCT col1 * - 1 AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query II rowsort
SELECT + + col2, - 8 AS col1 FROM tab2 AS cor0
----
23
-8
40
-8
58
-8

onlyif mysql # aggregate syntax: 
query II rowsort label-5818
SELECT - - 11, COUNT( * ) AS col2 FROM tab2 cor0
----
11
3

skipif mysql # not compatible
query II rowsort label-5818
SELECT - - 11, COUNT ( * ) AS col2 FROM tab2 cor0
----
11
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5819
SELECT DISTINCT + col2 + - col0 DIV + 86 AS col0 FROM tab1 cor0
----
59
67
96

skipif mysql # not compatible
query I rowsort label-5819
SELECT DISTINCT + col2 + - col0 / + 86 AS col0 FROM tab1 cor0
----
59
67
96

query II rowsort
SELECT ALL - + 78 AS col1, + col2 FROM tab0 AS cor0
----
-78
10
-78
47
-78
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 20 NOT BETWEEN + + 6 AND col2
----

query II rowsort
SELECT ALL + col2 AS col0, col2 FROM tab0 cor0
----
10
10
47
47
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 + - col1 + 99 AS col0, 73 col0 FROM tab0 cor0
----
-1
73
-29
73
68
73

query III rowsort
SELECT * FROM tab1 WHERE + - col2 * - 48 + col0 + - - 90 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5825
SELECT DISTINCT MIN( DISTINCT + 29 ) FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-5825
SELECT DISTINCT MIN ( DISTINCT + 29 ) FROM tab2
----
29

query I rowsort
SELECT - 8 + - - col2 + + + col0 * - 32 FROM tab0
----
-2782
-3013
-441

query I rowsort
SELECT - col0 + - + col1 FROM tab1
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT ALL MIN( DISTINCT + + ( - - 81 ) ) AS col2 FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-5828
SELECT ALL MIN ( DISTINCT + + ( - - 81 ) ) AS col2 FROM tab2
----
81

query I rowsort
SELECT DISTINCT + 0 * - col0 * col2 + col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - ( ( - + col0 ) ) FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 47 >= 89 + col2 / 47 + + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5832
SELECT ALL col0 DIV + col1 + col2 - - - col2 AS col1 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5832
SELECT ALL col0 / + col1 + col2 - - - col2 AS col1 FROM tab2 AS cor0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * - + 7 / col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT + - SUM( ALL - col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5834
SELECT + - SUM ( ALL - col0 ) FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT ALL + SUM( DISTINCT + + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-5835
SELECT ALL + SUM ( DISTINCT + + col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT col2 * + 23 * 72 + - 58 FROM tab1 AS cor0
----
112550
158918
97646

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, col1 * - 82 * + col2 col1 FROM tab1
----
51
-110208
85
-24190
91
-262072

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - - col0 col2 FROM tab1
----
2601
7225
8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 40 * col1 col1 FROM tab2 AS cor0
----
2040
2680
3080

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5840
SELECT ALL - CAST( NULL AS SIGNED ) col0, + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5840
SELECT ALL - CAST ( NULL AS INTEGER ) col0, + col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT SUM( DISTINCT - + col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5841
SELECT SUM ( DISTINCT - + col1 ) FROM tab1
----
-66

query III rowsort
SELECT * FROM tab2 WHERE NOT - 97 <= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5843
SELECT 42 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5843
SELECT 42 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-5844
SELECT + + col2 * - + col0 - col0 + - col1 + + + col0 DIV 34 AS col0 FROM tab0 AS cor0
----
-801
-9699
-976

skipif mysql # not compatible
query I rowsort label-5844
SELECT + + col2 * - + col0 - col0 + - col1 + + + col0 / 34 AS col0 FROM tab0 AS cor0
----
-801
-9699
-976

query I rowsort
SELECT DISTINCT + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT col1 * + 11 IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5846
SELECT + ( + + 7 ) DIV - + col2 + + + col1 + + col0 AS col2 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-5846
SELECT + ( + + 7 ) / - + col2 + + + col1 + + col0 AS col2 FROM tab0 AS cor0
----
108
96
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5847
SELECT - COUNT( * ) + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5847
SELECT - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col2 + + 99 + col0 AS col1 FROM tab2 cor0
----
168
203
232

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 95 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT DISTINCT 99 - COUNT( + col1 ) AS col1 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-5850
SELECT DISTINCT 99 - COUNT ( + col1 ) AS col1 FROM tab0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT COUNT( * ) - - ( MAX( DISTINCT col0 ) ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-5851
SELECT COUNT ( * ) - - ( MAX ( DISTINCT col0 ) ) FROM tab0
----
100

query I rowsort
SELECT ALL 21 + - 30 - col0 FROM tab0 AS cor0
----
-106
-24
-96

query I rowsort
SELECT ALL - 84 + + + col1 AS col2 FROM tab0 AS cor0
----
-3
-63
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5854
SELECT - CAST( NULL AS SIGNED ) + - + ( 36 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5854
SELECT - CAST ( NULL AS INTEGER ) + - + ( 36 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5855
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 WHERE + col1 + 93 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 col0 FROM tab0 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5858
SELECT - 33 * + + COUNT( * ) col0 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5858
SELECT - 33 * + + COUNT ( * ) col0 FROM tab2 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT + - COUNT( * ) * + + 93 FROM tab0 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-5859
SELECT + - COUNT ( * ) * + + 93 FROM tab0 AS cor0
----
-279

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT + COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5860
SELECT + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT DISTINCT COUNT( * ) * + COUNT( * ) - - - 87 AS col2 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-5861
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) - - - 87 AS col2 FROM tab1 AS cor0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5862
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * ( - - CAST( NULL AS SIGNED ) ) <= + ( + col1 )
----

skipif mysql # not compatible
query III rowsort label-5862
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * ( - - CAST ( NULL AS INTEGER ) ) <= + ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5863
SELECT CAST( NULL AS SIGNED ) * - + col1 + + 70 AS col2 FROM tab2 WHERE NOT 48 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5863
SELECT CAST ( NULL AS INTEGER ) * - + col1 + + 70 AS col2 FROM tab2 WHERE NOT 48 IS NOT NULL
----

query I rowsort
SELECT ALL + 54 * - - col0 AS col1 FROM tab2
----
2484
3456
4050

query I rowsort
SELECT ALL ( 89 ) * + 74 + + col1 FROM tab0
----
6587
6607
6667

query II rowsort
SELECT + col2 AS col1, col2 + + ( 47 ) * - 31 FROM tab2
----
23
-1434
40
-1417
58
-1399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5867
SELECT + col1 FROM tab0 WHERE NOT NULL IN ( - col1 * CAST( NULL AS SIGNED ) * - col1 + - ( + + col2 ) * + 21 )
----

skipif mysql # not compatible
query I rowsort label-5867
SELECT + col1 FROM tab0 WHERE NOT NULL IN ( - col1 * CAST ( NULL AS INTEGER ) * - col1 + - ( + + col2 ) * + 21 )
----

query I rowsort
SELECT + ( + + 92 ) * - col1 + 92 FROM tab2
----
-4600
-6072
-6992

onlyif mysql # DIV for integer division: 
query I rowsort label-5869
SELECT DISTINCT 91 DIV col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5869
SELECT DISTINCT 91 / col2 FROM tab2
----
1
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT DISTINCT + COUNT( * ) + - - 97 + - COUNT( DISTINCT - col2 ) AS col1 FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-5870
SELECT DISTINCT + COUNT ( * ) + - - 97 + - COUNT ( DISTINCT - col2 ) AS col1 FROM tab1
----
97

query II rowsort
SELECT ALL - col2, col2 * + ( - col1 ) AS col0 FROM tab2
----
-23
-1173
-40
-3080
-58
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT COUNT( * ) * - 25 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5872
SELECT COUNT ( * ) * - 25 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5873
SELECT ALL - CAST( NULL AS SIGNED ) * + col1 * - col0 * - col1 * - 1 * - 61 * + - 90 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5873
SELECT ALL - CAST ( NULL AS INTEGER ) * + col1 * - col0 * - col1 * - 1 * - 61 * + - 90 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 48 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col2, col1 + ( col2 ) AS col2 FROM tab2
----
23
74
40
117
58
125

query II rowsort
SELECT - col2 AS col0, - col1 FROM tab0
----
-10
-21
-47
-81
-99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT - MAX( + + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5877
SELECT - MAX ( + + col2 ) AS col0 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT ALL - 48 * - 70 + - col2 AS col2 FROM tab0 AS cor0
----
3261
3313
3350

query I rowsort
SELECT DISTINCT 43 - - - col0 FROM tab1
----
-42
-48
-8

query I rowsort
SELECT col1 * 26 + col2 AS col2 FROM tab2
----
1349
1800
2042

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5881
SELECT + ( + col2 ) * + + 63 + - - col2 + - CAST( + 22 AS SIGNED ) FROM tab0
----
2986
618
6314

skipif mysql # not compatible
query I rowsort label-5881
SELECT + ( + col2 ) * + + 63 + - - col2 + - CAST ( + 22 AS INTEGER ) FROM tab0
----
2986
618
6314

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5882
SELECT DISTINCT + + 31 * col1 AS col0, + col1 * - + CAST( - - 13 AS DECIMAL ) AS col2 FROM tab2 WHERE NOT - col2 <= NULL
----

skipif mysql # not compatible
query II rowsort label-5882
SELECT DISTINCT + + 31 * col1 AS col0, + col1 * - + CAST ( - - 13 AS REAL ) AS col2 FROM tab2 WHERE NOT - col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5883
SELECT DISTINCT - col2 * + col1 + col1 + - CAST( NULL AS SIGNED ) * + + 79 + + 32 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT - col2 * + col1 + col1 + - CAST ( NULL AS INTEGER ) * + + 79 + + 32 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 80 AS col2 FROM tab0 AS cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT DISTINCT MIN( col1 ) col1 FROM tab1 AS cor0 WHERE NULL <= - 87 * - col1 + + col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5885
SELECT DISTINCT MIN ( col1 ) col1 FROM tab1 AS cor0 WHERE NULL <= - 87 * - col1 + + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT DISTINCT + COUNT( * ) + COUNT( * ) + + COUNT( * ) + + MAX( + col2 ) AS col1 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-5886
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) + + COUNT ( * ) + + MAX ( + col2 ) AS col1 FROM tab1 AS cor0
----
105

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 BETWEEN - 83 + + + col2 AND 35
----
64
77
40
75
67
58

query I rowsort
SELECT 38 * 63 FROM tab1
----
2394
2394
2394

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT MIN( - - col1 ) * - COUNT( * ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5889
SELECT MIN ( - - col1 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5890
SELECT + col1 / - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5890
SELECT + col1 / - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT + MIN( DISTINCT - - col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5891
SELECT + MIN ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + ( - + col2 ) ) NOT BETWEEN - col1 AND + col1 * - + 61 + + 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT DISTINCT - SUM( DISTINCT - - 61 ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-5893
SELECT DISTINCT - SUM ( DISTINCT - - 61 ) FROM tab2 AS cor0
----
-61

query I rowsort
SELECT - + 89 * + 37 AS col2 FROM tab1 AS cor0
----
-3293
-3293
-3293

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT ALL - SUM( ( ( ( col1 ) ) ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5895
SELECT ALL - SUM ( ( ( ( col1 ) ) ) ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT ALL - COUNT( * ) * ( + - MAX( - 92 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-828

skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL - COUNT ( * ) * ( + - MAX ( - 92 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT ALL - MIN( DISTINCT + 79 ) AS col1 FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL - MIN ( DISTINCT + 79 ) AS col1 FROM tab2
----
-79

query I rowsort
SELECT DISTINCT - 38 * + - 50 AS col0 FROM tab1 cor0
----
1900

query I rowsort
SELECT DISTINCT + + ( col1 ) + + + col0 + - 0 AS col1 FROM tab2 AS cor0
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 39 * - + col1 col1 FROM tab0 AS cor0
----
3240
40
840

query I rowsort
SELECT ALL - - col1 + + 9 FROM tab0 AS cor0
----
10
30
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT ALL + - COUNT( * ) - - 85 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-5902
SELECT ALL + - COUNT ( * ) - - 85 FROM tab0 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT - - MAX( ALL 94 ) AS col2 FROM tab0 WHERE col2 IS NOT NULL
----
94

skipif mysql # not compatible
query I rowsort label-5903
SELECT - - MAX ( ALL 94 ) AS col2 FROM tab0 WHERE col2 IS NOT NULL
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5904
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT + + col2 / + - col2 <= - col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5904
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT + + col2 / + - col2 <= - col2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 - - col1 NOT IN ( + ( col1 ) )
----

query I rowsort
SELECT DISTINCT 79 * - col1 FROM tab1
----
-1106
-3713
-395

onlyif mysql # aggregate syntax: 
query I rowsort label-5907
SELECT ALL + MAX( DISTINCT 19 ) AS col2 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-5907
SELECT ALL + MAX ( DISTINCT 19 ) AS col2 FROM tab2
----
19

query I rowsort
SELECT - 79 - + 63 FROM tab0
----
-142
-142
-142

query I rowsort
SELECT + 65 * - col0 + col0 AS col2 FROM tab1 AS cor0
----
-3264
-5440
-5824

query II rowsort
SELECT + + col1, + col1 AS col1 FROM tab0 cor0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5911
SELECT + col0 * CAST( NULL AS SIGNED ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5911
SELECT + col0 * CAST ( NULL AS INTEGER ) * - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 70 * col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
1610
2800
4060

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col1 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT + MIN( + col1 ) * - - 74 AS col0 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-5914
SELECT + MIN ( + col1 ) * - - 74 AS col0 FROM tab0 AS cor0
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 * - - col0 col1 FROM tab0 AS cor0
----
1230
7134
7954

query I rowsort
SELECT DISTINCT - 95 + - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-105
-142
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT COUNT( ALL - + 97 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5917
SELECT COUNT ( ALL - + 97 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT 14 + 18 + + - 32 * COUNT( * ) + + 0 AS col0 FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-5918
SELECT 14 + 18 + + - 32 * COUNT ( * ) + + 0 AS col0 FROM tab1
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5919
SELECT + 52 + 12 + - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-5919
SELECT + 52 + 12 + - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5920
SELECT + CAST( + col2 AS SIGNED ) + + + 16 AS col1 FROM tab1
----
112
75
84

skipif mysql # not compatible
query I rowsort label-5920
SELECT + CAST ( + col2 AS INTEGER ) + + + 16 AS col1 FROM tab1
----
112
75
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 74 col1 FROM tab2 AS cor0
----
125
141
151

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5922
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + col0 * + ( + - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5922
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + col0 * + ( + - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5923
SELECT DISTINCT COUNT( + + col0 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5923
SELECT DISTINCT COUNT ( + + col0 ) AS col2 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT - COUNT( * ) * MIN( ALL + - col1 ) AS col2 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-5924
SELECT - COUNT ( * ) * MIN ( ALL + - col1 ) AS col2 FROM tab2 AS cor0
----
231

query II rowsort
SELECT DISTINCT - 63 * col1 * + col1 AS col1, 78 + 81 FROM tab2 AS cor0
----
-163863
159
-282807
159
-373527
159

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT - 15 * 91 + COUNT( * ) AS col2 FROM tab0
----
-1362

skipif mysql # not compatible
query I rowsort label-5926
SELECT - 15 * 91 + COUNT ( * ) AS col2 FROM tab0
----
-1362

query I rowsort
SELECT - ( - col1 ) * - col1 + + col2 FROM tab2
----
-2578
-4431
-5889

query I rowsort
SELECT ALL - 53 AS col0 FROM tab0 WHERE NOT ( 89 ) * col0 IS NULL
----
-53
-53
-53

query I rowsort
SELECT 96 + - 77 AS col2 FROM tab2
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5930
SELECT ALL * FROM tab2 WHERE NOT + 28 BETWEEN + col0 + + col0 AND - CAST( NULL AS SIGNED ) * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5930
SELECT ALL * FROM tab2 WHERE NOT + 28 BETWEEN + col0 + + col0 AND - CAST ( NULL AS INTEGER ) * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5932
SELECT DISTINCT - 98 DIV col1 + - 39 AS col0 FROM tab1
----
-41
-46
-58

skipif mysql # not compatible
query I rowsort label-5932
SELECT DISTINCT - 98 / col1 + - 39 AS col0 FROM tab1
----
-41
-46
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5933
SELECT col2 DIV col2 + + 51 FROM tab0
----
52
52
52

skipif mysql # not compatible
query I rowsort label-5933
SELECT col2 / col2 + + 51 FROM tab0
----
52
52
52

query I rowsort
SELECT col1 FROM tab1 WHERE - 41 >= col2 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + ( col2 * 85 ) col0 FROM tab0
----
59925
73950
816255

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 ) >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( + col0 ) ) NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL col0 - - col2 * 67 AS col1 FROM tab0
----
3164
6730
757

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= + 95
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 74 < ( 50 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 83 * - col1 + 32 AS col2 FROM tab2 WHERE + col0 < 72
----
-4201
-6359

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT - ( ( ( + ( ( 86 ) ) ) ) ) * + COUNT( * ) FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-5942
SELECT - ( ( ( + ( ( 86 ) ) ) ) ) * + COUNT ( * ) FROM tab2
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT + 19 * + COUNT( * ) AS col1 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-5943
SELECT + 19 * + COUNT ( * ) AS col1 FROM tab1
----
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5944
SELECT DISTINCT + 62 DIV + COUNT( * ) col2 FROM tab1
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5944
SELECT DISTINCT + 62 / + COUNT ( * ) col2 FROM tab1
----
20

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 * col0 ) > ( + col1 - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT DISTINCT COUNT( * ) + COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0
----
6

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + + col2 * - 73 NOT BETWEEN NULL AND ( - col0 )
----

query I rowsort
SELECT + 43 * + 58 AS col2 FROM tab0
----
2494
2494
2494

onlyif mysql # DIV for integer division: 
query I rowsort label-5949
SELECT ALL - 3 DIV + col1 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL - 3 / + col1 FROM tab0
----
-3
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5950
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5950
SELECT ALL - CAST ( NULL AS REAL ) FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 / + col0 ) IS NOT NULL
----

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT 76 + col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 * col2 + col2 * + col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT DISTINCT col1 + col0 FROM tab1 WHERE NOT NULL BETWEEN col1 / + col1 + col2 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( - 67 ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-21
-3
8

query I rowsort
SELECT ALL - 89 AS col2 FROM tab0 cor0
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5958
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE ( 30 ) IS NULL
----

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( 12 + 42 ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5961
SELECT - CAST( NULL AS SIGNED ) / + 39 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5961
SELECT - CAST ( NULL AS INTEGER ) / + 39 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 7 * ( - 9 ) AS col1 FROM tab2
----
-63
-63
-63

query I rowsort
SELECT 88 + 74 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 480af13fa97bed507a41d8a44cc231af

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT MAX( ( 99 ) ) + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
108

skipif mysql # not compatible
query I rowsort label-5964
SELECT MAX ( ( 99 ) ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 col1 FROM tab1 AS cor0 WHERE NULL >= ( + 69 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col1 + col0 ) NOT IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 / 10 AS col2 FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + + 99 FROM tab2 cor0
----
150
166
176

onlyif mysql # aggregate syntax: 
query I rowsort label-5969
SELECT + - SUM( ALL 48 ) + + 93 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5969
SELECT + - SUM ( ALL 48 ) + + 93 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT - 64 * - ( col0 + + 90 * + col2 ) + 33 AS col0 FROM tab0 cor0
----
271713
576481
63201

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT ( 65 ) IS NOT NULL
----

query I rowsort
SELECT - 51 + col1 AS col1 FROM tab2 cor0
----
0
16
26

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 90 + - col1 * + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 57 FROM tab2 WHERE NOT + 94 IS NULL
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5975
SELECT 76 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5975
SELECT 76 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * col1 AS col1 FROM tab0 WHERE ( col2 ) NOT IN ( - col0 )
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT DISTINCT ( + COUNT( * ) ) FROM tab0 WHERE ( NULL ) NOT IN ( 34 )
----
0

skipif mysql # not compatible
query I rowsort label-5977
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab0 WHERE ( NULL ) NOT IN ( 34 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 80 > - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 82 AS col1 FROM tab1 WHERE ( ( - col2 ) ) IN ( - ( 70 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5980
SELECT DISTINCT + col1 + - - col2 + - col0 DIV - col0 AS col2 FROM tab0 AS cor0
----
101
129
32

skipif mysql # not compatible
query I rowsort label-5980
SELECT DISTINCT + col1 + - - col2 + - col0 / - col0 AS col2 FROM tab0 AS cor0
----
101
129
32

query I rowsort
SELECT + col2 * - col0 - + col0 FROM tab0 AS cor0
----
-720
-957
-9700

onlyif mysql # DIV for integer division: 
query II rowsort label-5982
SELECT DISTINCT col0, 91 DIV - 98 FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-5982
SELECT DISTINCT col0, 91 / - 98 FROM tab2
----
46
0
64
0
75
0

query I rowsort
SELECT - 66 + + col1 AS col0 FROM tab1 WHERE col0 < NULL
----

query I rowsort
SELECT 88 + + col2 AS col2 FROM tab0
----
135
187
98

query I rowsort
SELECT 0 + ( 4 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT DISTINCT ( 41 ) + + 49 * 13 AS col0 FROM tab0
----
678

onlyif mysql # DIV for integer division: 
query I rowsort label-5987
SELECT - col2 DIV - - col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5987
SELECT - col2 / - - col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 64 * - col2 - - col1 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 IN ( + 7 + + 44 )
----

query I rowsort
SELECT DISTINCT + 90 + ( col2 ) * + 12 AS col2 FROM tab1 AS cor0
----
1242
798
906

query I rowsort
SELECT 81 * 73 FROM tab1 AS cor0
----
5913
5913
5913

query II rowsort
SELECT - col2 AS col2, 50 AS col1 FROM tab2 AS cor0
----
-23
50
-40
50
-58
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 72 + + col1 + - col2 * - col0 col1 FROM tab1 AS cor0
----
4982
5092
6307

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT + - col2 * + 38 + + - col0 FROM tab0 AS cor0
----
-1801
-3859
-467

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 83 + - 67 > NULL
----

query I rowsort
SELECT - col1 - - + col2 FROM tab1 AS cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( col0 ) + col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5998
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( col0 ) + col0 <= NULL
----
0

query I rowsort
SELECT - - 73 + col2 * - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6000
SELECT ALL col0 * CAST( col1 AS SIGNED ) col1 FROM tab1
----
425
4277
714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6000
SELECT ALL col0 * CAST ( col1 AS INTEGER ) col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT ALL 98 * + 20 * + 48 * + + 24 AS col1 FROM tab1
----
2257920
2257920
2257920

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col2 <= ( - + col2 * + col2 + + 5 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 col2 FROM tab1
----
-15
-15
-15

query I rowsort
SELECT - 70 + + col0 FROM tab2 cor0 WHERE NOT + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6005
SELECT + COUNT( * ) * COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
729

skipif mysql # not compatible
query I rowsort label-6005
SELECT + COUNT ( * ) * COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
729

query I rowsort
SELECT - ( + 56 ) AS col1 FROM tab2
----
-56
-56
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-6007
SELECT ALL - + 20 DIV col0 + + + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6007
SELECT ALL - + 20 / col0 + + + col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL ( - - ( - - col2 ) ) FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT - - COUNT( * ) * - 94 FROM tab1 cor0
----
-282

skipif mysql # not compatible
query I rowsort label-6009
SELECT - - COUNT ( * ) * - 94 FROM tab1 cor0
----
-282

query I rowsort
SELECT ALL + col1 + + col0 + - - col1 FROM tab1 cor0
----
185
79
95

query I rowsort
SELECT DISTINCT col2 + - + ( 16 ) * - 1 AS col0 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6013
SELECT ALL - - COUNT( * ) + + 8 AS col1 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL - - COUNT ( * ) + + 8 AS col1 FROM tab0 AS cor0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6014
SELECT DISTINCT col2 + - col1 + col0 + - CAST( + 86 AS SIGNED ) + + col0 * + col0 * 48 FROM tab0 AS cor0
----
10695
363302
451741

skipif mysql # not compatible
query I rowsort label-6014
SELECT DISTINCT col2 + - col1 + col0 + - CAST ( + 86 AS INTEGER ) + + col0 * + col0 * 48 FROM tab0 AS cor0
----
10695
363302
451741

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 = col1 * 34
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6016
SELECT ALL - 94 * - 46 FROM tab1 AS cor0 WHERE NOT - 90 * + + col0 * + col1 / + col1 IN ( CAST( - col1 AS SIGNED ) * + 67 )
----
4324
4324
4324

skipif mysql # not compatible
query I rowsort label-6016
SELECT ALL - 94 * - 46 FROM tab1 AS cor0 WHERE NOT - 90 * + + col0 * + col1 / + col1 IN ( CAST ( - col1 AS INTEGER ) * + 67 )
----
4324
4324
4324

query I rowsort
SELECT + col2 FROM tab0 cor0 WHERE ( 93 * + + col0 + + ( - col1 ) ) <= - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab2 WHERE col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT + 60 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - + col0 ) + + + col1 AS col2 FROM tab1
----
138
65
90

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 2 BETWEEN col2 * - 70 AND - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-6022
SELECT DISTINCT COUNT( * ) AS col2, 50 AS col2 FROM tab1
----
3
50

skipif mysql # not compatible
query II rowsort label-6022
SELECT DISTINCT COUNT ( * ) AS col2, 50 AS col2 FROM tab1
----
3
50

query I rowsort
SELECT + 31 * - col0 + - col1 AS col0 FROM tab1
----
-1595
-2640
-2868

onlyif mysql # aggregate syntax: 
query I rowsort label-6024
SELECT + MAX( DISTINCT + col0 ) + + 56 - COUNT( DISTINCT col0 ) AS col0 FROM tab2
----
128

skipif mysql # not compatible
query I rowsort label-6024
SELECT + MAX ( DISTINCT + col0 ) + + 56 - COUNT ( DISTINCT col0 ) AS col0 FROM tab2
----
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6025
SELECT ALL col1 * + + 98 + - col2 + - CAST( NULL AS SIGNED ) * - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6025
SELECT ALL col1 * + + 98 + - col2 + - CAST ( NULL AS INTEGER ) * - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 * 81 * - + 3 * - col0 - ( col0 ) + 35 * 91 FROM tab2 AS cor0
----
1200625
1224185
573217

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6027
SELECT DISTINCT - col1 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6027
SELECT DISTINCT - col1 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL col2 - + col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6029
SELECT + MIN( - 32 ) * + + CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6029
SELECT + MIN ( - 32 ) * + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> col0 AND NOT 85 = - 23
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6031
SELECT DISTINCT - 22 + + col0 + + col2 DIV + col2 col0 FROM tab0 cor0
----
-6
66
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6031
SELECT DISTINCT - 22 + + col0 + + col2 / + col2 col0 FROM tab0 cor0
----
-6
66
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT MAX( ALL - - 18 ) col1 FROM tab0 AS cor0 WHERE + col1 - col1 * - col1 < NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6032
SELECT MAX ( ALL - - 18 ) col1 FROM tab0 AS cor0 WHERE + col1 - col1 * - col1 < NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( + col2 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-6034
SELECT + ( col2 ) AS col1, 90 DIV - + col0 FROM tab0 AS cor0
----
10
-1
47
-6
99
0

skipif mysql # not compatible
query II rowsort label-6034
SELECT + ( col2 ) AS col1, 90 / - + col0 FROM tab0 AS cor0
----
10
-1
47
-6
99
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6035
SELECT ( + - MIN( col1 ) ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6035
SELECT ( + - MIN ( col1 ) ) FROM tab2 AS cor0
----
-51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - col0 IS NULL )
----

query I rowsort
SELECT ALL col1 * - + ( - col0 ) FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ALL - - ( - 25 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-6039
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 92 * - - 2 <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6039
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 92 * - - 2 <= ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6040
SELECT ALL CAST( NULL AS SIGNED ), + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-6040
SELECT ALL CAST ( NULL AS INTEGER ), + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT DISTINCT - 44 * 88 + - COUNT( DISTINCT - 71 ) AS col2 FROM tab2 AS cor0
----
-3873

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT - 44 * 88 + - COUNT ( DISTINCT - 71 ) AS col2 FROM tab2 AS cor0
----
-3873

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT ( - + COUNT( * ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6042
SELECT ( - + COUNT ( * ) ) AS col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6043
SELECT CAST( NULL AS SIGNED ) * 49 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6043
SELECT CAST ( NULL AS INTEGER ) * 49 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 25 FROM tab0 WHERE NOT - - 35 + - col2 IS NULL
----
-25
-25
-25

query II rowsort
SELECT DISTINCT col1 AS col0, col0 * - col2 AS col2 FROM tab0
----
1
-9603
21
-870
81
-705

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) NOT BETWEEN col2 AND ( + col1 * col2 * + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 76 col0, col0 + - - col1 - col1 * col2 FROM tab1 cor0
----
-76
-1279
-76
-205
-76
-3058

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6048
SELECT ALL 86 AS col2, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + ( - col1 ) NOT IN ( - CAST( NULL AS SIGNED ), col1 )
----

skipif mysql # not compatible
query II rowsort label-6048
SELECT ALL 86 AS col2, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + ( - col1 ) NOT IN ( - CAST ( NULL AS INTEGER ), col1 )
----

query I rowsort
SELECT ALL ( - 0 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6050
SELECT + col0 AS col1, 28 DIV - 36 FROM tab1 AS cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-6050
SELECT + col0 AS col1, 28 / - 36 FROM tab1 AS cor0
----
51
0
85
0
91
0

query I rowsort
SELECT ALL + - col1 * + col1 + + col2 * - + col1 FROM tab2 AS cor0
----
-3774
-8375
-9009

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6052
SELECT + CAST( + + col1 AS SIGNED ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6052
SELECT + CAST ( + + col1 AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT ALL - COUNT( * ) + + - 30 * - + COUNT( * ) AS col1 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL - COUNT ( * ) + + - 30 * - + COUNT ( * ) AS col1 FROM tab1
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6054
SELECT DISTINCT - col2 + + CAST( + - col1 AS SIGNED ) + col1 AS col0 FROM tab1 WHERE - - 45 - + col1 * - 71 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6054
SELECT DISTINCT - col2 + + CAST ( + - col1 AS INTEGER ) + col1 AS col0 FROM tab1 WHERE - - 45 - + col1 * - 71 IS NULL
----

query I rowsort
SELECT DISTINCT + ( + 20 ) FROM tab2 AS cor0 WHERE NULL > + ( - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT DISTINCT + COUNT( * ) + 90 AS col1 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-6056
SELECT DISTINCT + COUNT ( * ) + 90 AS col1 FROM tab0 AS cor0
----
93

query I rowsort
SELECT ALL - 48 * col0 AS col0 FROM tab1 cor0
----
-2448
-4080
-4368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6058
SELECT + CAST( NULL AS SIGNED ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6058
SELECT + CAST ( NULL AS INTEGER ) + + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + - col1 * - + col0 FROM tab0 AS cor0
----
1296
1848
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab2 cor0 WHERE NOT ( col1 ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT DISTINCT - + COUNT( * ) * + - MIN( + - 45 ) AS col0 FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-6061
SELECT DISTINCT - + COUNT ( * ) * + - MIN ( + - 45 ) AS col0 FROM tab2 AS cor0
----
-135

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 71 * 1 * - col1 * - - col2 NOT IN ( 99, 71 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT ALL - COUNT( ( + + col2 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6063
SELECT ALL - COUNT ( ( + + col2 ) ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6064
SELECT ALL + 47 DIV col1 AS col2 FROM tab1
----
1
3
9

skipif mysql # not compatible
query I rowsort label-6064
SELECT ALL + 47 / col1 AS col2 FROM tab1
----
1
3
9

query I rowsort
SELECT ALL ( 6 ) FROM tab0
----
6
6
6

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 15 + - + col2 FROM tab1
----
-44
-53
-81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6068
SELECT 83 DIV CAST( + + 26 AS SIGNED ) AS col0 FROM tab0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-6068
SELECT 83 / CAST ( + + 26 AS INTEGER ) AS col0 FROM tab0
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 35 col0, col0 * col0 AS col1 FROM tab1 AS cor0
----
35
2601
35
7225
35
8281

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 / + col2 NOT IN ( + 48 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col2 + 63 AS col0 FROM tab1 AS cor0
----
-33
-5
4

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 + col0 / - col2 ) = NULL
----

query I rowsort
SELECT + 52 + + 2 * - col2 FROM tab2
----
-28
-64
6

query II rowsort
SELECT ALL - col1 AS col1, + 59 FROM tab2 AS cor0
----
-51
59
-67
59
-77
59

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 10 BETWEEN 76 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT DISTINCT COUNT( DISTINCT + 79 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6076
SELECT DISTINCT COUNT ( DISTINCT + 79 ) FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6077
SELECT + col1 DIV + ( - 87 ) FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6077
SELECT + col1 / + ( - 87 ) FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 50 AS col0 FROM tab0 AS cor0 WHERE NOT 58 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 * 52 AS col2 FROM tab0 cor0
----
-1092
-4212
-52

query I rowsort
SELECT col0 * + 43 AS col0 FROM tab0 AS cor0
----
3741
4171
645

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + col2 * + - col0 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1012
-2496
-4275

query I rowsort
SELECT DISTINCT 63 AS col1 FROM tab1 AS cor0 WHERE col2 - 21 * col0 + - col1 * + col0 BETWEEN + col2 AND ( - + col2 / - col0 * 31 - + col2 + ( 59 + ( 13 - - col2 ) * + 67 ) * col1 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6083
SELECT + 87 * + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-6083
SELECT + 87 * + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6084
SELECT DISTINCT CAST( - MAX( + + col1 ) AS SIGNED ) FROM tab1 AS cor0 WHERE NULL < - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6084
SELECT DISTINCT CAST ( - MAX ( + + col1 ) AS INTEGER ) FROM tab1 AS cor0 WHERE NULL < - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT + COUNT( ALL 74 ) * COUNT( ALL + col2 ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6085
SELECT + COUNT ( ALL 74 ) * COUNT ( ALL + col2 ) FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6086
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT + + CAST( NULL AS SIGNED ) / - col2 + + col1 + + ( + 49 ) * col0 / + - 67 * + col0 - col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6086
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT + + CAST ( NULL AS INTEGER ) / - col2 + + col1 + + ( + 49 ) * col0 / + - 67 * + col0 - col2 IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 77 = NULL
----

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE ( - + 46 ) <> ( - 27 )
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-6089
SELECT ALL - MIN( ALL - col1 ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6089
SELECT ALL - MIN ( ALL - col1 ) AS col2 FROM tab1
----
47

query I rowsort
SELECT + - 38 AS col1 FROM tab0 WHERE NOT + col0 >= + 53
----
-38

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 32 - + 22 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE col1 IS NOT NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col0 FROM tab0 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT + + 77 + col1 AS col1 FROM tab0 cor0
----
158
78
98

query I rowsort
SELECT - col2 + 27 FROM tab1 AS cor0 WHERE 81 >= - col2
----
-32
-41
-69

query II rowsort
SELECT + 78 AS col2, 5 AS col0 FROM tab0 AS cor0
----
78
5
78
5
78
5

query I rowsort
SELECT ALL - - col1 + + - 37 FROM tab2 AS cor0
----
14
30
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6098
SELECT * FROM tab1 AS cor0 WHERE ( + CAST( - col2 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6098
SELECT * FROM tab1 AS cor0 WHERE ( + CAST ( - col2 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = ( + 46 - + 72 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6100
SELECT col2 + 11 + - - col1 + - col1 AS col0, + CAST( - + 50 AS SIGNED ) AS col2 FROM tab0
----
110
-50
21
-50
58
-50

skipif mysql # not compatible
query II rowsort label-6100
SELECT col2 + 11 + - - col1 + - col1 AS col0, + CAST ( - + 50 AS INTEGER ) AS col2 FROM tab0
----
110
-50
21
-50
58
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT + 64 + + - COUNT( * ) AS col1 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-6101
SELECT + 64 + + - COUNT ( * ) AS col1 FROM tab2
----
61

query II rowsort
SELECT ALL 51 * col1, + col2 FROM tab1
----
2397
68
255
59
714
96

query I rowsort
SELECT col0 + + 61 AS col1 FROM tab0
----
148
158
76

query I rowsort
SELECT + col1 + + - col0 FROM tab0
----
-66
-96
66

query I rowsort
SELECT 34 + col1 * + 65 + + col2 + + col0 FROM tab1
----
1091
3248
503

onlyif mysql # aggregate syntax: 
query II rowsort label-6106
SELECT - 98 + - - COUNT( * ), + COUNT( * ) AS col0 FROM tab2
----
-95
3

skipif mysql # not compatible
query II rowsort label-6106
SELECT - 98 + - - COUNT ( * ), + COUNT ( * ) AS col0 FROM tab2
----
-95
3

query I rowsort
SELECT + col1 * 15 * + - col0 AS col2 FROM tab0
----
-1455
-18225
-27405

query III rowsort
SELECT * FROM tab1 WHERE 20 + - - col0 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 20 IN ( + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( + col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + + col2 col2, + col1 * 94 AS col2 FROM tab0 AS cor0
----
100
94
128
7614
31
1974

query I rowsort
SELECT ALL - - 8 * + col2 + - col0 + - + col0 - - - col1 * - col1 AS col0 FROM tab0 AS cor0
----
347
599
6907

query I rowsort
SELECT col1 * col2 - col0 + - col2 * - col2 FROM tab2
----
1656
4616
7175

query I rowsort
SELECT - ( + - col0 ) FROM tab0 AS cor0 WHERE NOT col1 * - ( - + col2 ) >= + 72
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6115
SELECT ALL - ( - 72 ) DIV + col1 AS col0 FROM tab1 cor0
----
1
14
5

skipif mysql # not compatible
query I rowsort label-6115
SELECT ALL - ( - 72 ) / + col1 AS col0 FROM tab1 cor0
----
1
14
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 80 col2 FROM tab1 AS cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT ALL - COUNT( ALL col2 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6117
SELECT ALL - COUNT ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col2 * + - 14 AS col0 FROM tab0 AS cor0
----
-1386
-140
-658

query II rowsort
SELECT DISTINCT 71, - 1 AS col0 FROM tab2
----
71
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT DISTINCT + ( - MAX( DISTINCT - 60 ) ) AS col0 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-6120
SELECT DISTINCT + ( - MAX ( DISTINCT - 60 ) ) AS col0 FROM tab0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6121
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) * - col2 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6121
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) * - col2 col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + + col2, col2, - col2 - 55 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6123
SELECT ALL ( SUM( + 7 ) ) AS col0 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-6123
SELECT ALL ( SUM ( + 7 ) ) AS col0 FROM tab1
----
21

query II rowsort
SELECT ALL - col2, - col1 AS col1 FROM tab2 cor0
----
-23
-51
-40
-77
-58
-67

query I rowsort
SELECT DISTINCT + 85 + + col2 AS col1 FROM tab2 cor0
----
108
125
143

onlyif mysql # aggregate syntax: 
query I rowsort label-6126
SELECT ALL + SUM( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-6126
SELECT ALL + SUM ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT + MIN( + 0 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6127
SELECT + MIN ( + 0 ) FROM tab2 cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + - 36, col2 FROM tab2 AS cor0
----
-36
23
-36
40
-36
58

query I rowsort
SELECT + 36 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT DISTINCT ( - + col2 ) * - 78 FROM tab0
----
3666
7722
780

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col0 + + - 3 + + col1 AS col0 FROM tab0 AS cor0
----
105
93
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6134
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 24 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6134
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 24 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6135
SELECT ALL + CAST( col2 AS SIGNED ), + col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

skipif mysql # not compatible
query II rowsort label-6135
SELECT ALL + CAST ( col2 AS INTEGER ), + col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query II rowsort
SELECT DISTINCT - - 59 + + col2, 47 * + col0 AS col1 FROM tab0 AS cor0
----
106
705
158
4559
69
4089

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT ALL + SUM( ALL - col0 ) + + MIN( DISTINCT - 51 ) AS col1 FROM tab2 AS cor0
----
-236

skipif mysql # not compatible
query I rowsort label-6137
SELECT ALL + SUM ( ALL - col0 ) + + MIN ( DISTINCT - 51 ) AS col1 FROM tab2 AS cor0
----
-236

query I rowsort
SELECT 69 * 40 FROM tab1, tab1 cor0
----
9 values hashing to eac8352df2fb0e23adc4a404881c562e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6139
SELECT - ( CAST( NULL AS SIGNED ) ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6139
SELECT - ( CAST ( NULL AS INTEGER ) ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * col0 * col1 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT - 98 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE + 41 + + 87 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6143
SELECT + COUNT( * ) - - MAX( - 86 ) AS col2 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-6143
SELECT + COUNT ( * ) - - MAX ( - 86 ) AS col2 FROM tab0
----
-83

query I rowsort
SELECT DISTINCT col0 + - 68 + col2 AS col1 FROM tab0
----
-6
128
29

onlyif mysql # DIV for integer division: 
query I rowsort label-6145
SELECT - col2 - col2 + + col2 + + col1 DIV - col2 + col0 col1 FROM tab1
----
-45
23
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6145
SELECT - col2 - col2 + + col2 + + col1 / - col2 + col0 col1 FROM tab1
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 - - - ( col2 ) col1 FROM tab0 AS cor0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6147
SELECT col0 + col2 DIV + - col2 + col2 FROM tab0 AS cor0
----
195
61
96

skipif mysql # not compatible
query I rowsort label-6147
SELECT col0 + col2 / + - col2 + col2 FROM tab0 AS cor0
----
195
61
96

query I rowsort
SELECT + ( + + ( col0 ) ) AS col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL - 42 * + 95 FROM tab2
----
-3990
-3990
-3990

query I rowsort
SELECT DISTINCT 91 * - 24 FROM tab1 AS cor0
----
-2184

query I rowsort
SELECT - - col1 - - - col1 * - 16 AS col1 FROM tab1 cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6152
SELECT - + 16 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6152
SELECT - + 16 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6153
SELECT ALL + CAST( NULL AS SIGNED ) / + COUNT( * ) + + 88 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL + CAST ( NULL AS INTEGER ) / + COUNT ( * ) + + 88 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 66 * - - col2 AS col2 FROM tab0 AS cor0
----
3102
6534
660

query I rowsort
SELECT ALL col2 * col1 + - ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1395
3287
380

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT ALL MAX( + - 7 ) FROM tab2 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-6156
SELECT ALL MAX ( + - 7 ) FROM tab2 cor0
----
-7

query I rowsort
SELECT - - col0 * + + ( - + 54 ) FROM tab0 AS cor0
----
-4698
-5238
-810

query I rowsort
SELECT DISTINCT + + col2 AS col1 FROM tab0 WHERE NOT + - col1 BETWEEN + col0 + + - 67 AND col0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 + - + 93 BETWEEN ( + 45 ) AND + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 * + - col1 col2 FROM tab1
----
-2491
-265
-742

query I rowsort
SELECT + col1 * + 23 AS col1 FROM tab0
----
1863
23
483

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6162
SELECT CAST( NULL AS SIGNED ) AS col1, - col2 + col0 AS col1 FROM tab1
----
NULL
-45
NULL
23
NULL
26

skipif mysql # not compatible
query II rowsort label-6162
SELECT CAST ( NULL AS INTEGER ) AS col1, - col2 + col0 AS col1 FROM tab1
----
NULL
-45
NULL
23
NULL
26

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 8 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT ALL COUNT( - - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL COUNT ( - - col1 ) FROM tab0
----
3

query I rowsort
SELECT ALL col0 + - - 94 FROM tab2
----
140
158
169

query I rowsort
SELECT - col2 + 51 * + col0 - - col2 FROM tab0
----
4437
4947
765

query III rowsort
SELECT * FROM tab1 WHERE NOT + 68 + 82 + + 84 IN ( 50 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6168
SELECT + ( + CAST( - 92 AS SIGNED ) ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-6168
SELECT + ( + CAST ( - 92 AS INTEGER ) ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-89

query I rowsort
SELECT + - 29 * col1 + - - 13 + + col2 FROM tab0 AS cor0
----
-2289
-586
83

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6171
SELECT ( + COUNT( * ) ), 4 + - 87 + - 69 AS col2 FROM tab0
----
3
-152

skipif mysql # not compatible
query II rowsort label-6171
SELECT ( + COUNT ( * ) ), 4 + - 87 + - 69 AS col2 FROM tab0
----
3
-152

query I rowsort
SELECT - 44 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query II rowsort
SELECT + col1 AS col1, + col2 * - 26 FROM tab2
----
51
-598
67
-1508
77
-1040

onlyif mysql # aggregate syntax: 
query I rowsort label-6174
SELECT SUM( DISTINCT + 92 ) * - 61 * + + COUNT( * ) FROM tab0
----
-16836

skipif mysql # not compatible
query I rowsort label-6174
SELECT SUM ( DISTINCT + 92 ) * - 61 * + + COUNT ( * ) FROM tab0
----
-16836

onlyif mysql # aggregate syntax: 
query II rowsort label-6175
SELECT - 8 col2, ( + COUNT( * ) ) FROM tab1 AS cor0
----
-8
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6175
SELECT - 8 col2, ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-8
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6176
SELECT DISTINCT MAX( ALL - 32 ) + + 90 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6176
SELECT DISTINCT MAX ( ALL - 32 ) + + 90 FROM tab0 AS cor0
----
58

query II rowsort
SELECT 47 - - + 87 AS col1, 96 FROM tab1 AS cor0
----
134
96
134
96
134
96

query I rowsort
SELECT DISTINCT col2 * col1 + - col1 + - + col0 + + col2 FROM tab1 cor0
----
1375
264
3126

query I rowsort
SELECT - 66 FROM tab1 cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE - col2 * + ( - 48 ) IS NULL
----

query I rowsort
SELECT - col1 + + + col0 AS col0 FROM tab1 AS cor0 WHERE ( + col2 ) >= + 11 * + col1
----
80

query I rowsort
SELECT DISTINCT 3 - + - 91 * 4 * - - col0 AS col0 FROM tab2
----
16747
23299
27303

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT + 56 + + MAX( DISTINCT col0 ) * COUNT( * ) AS col2 FROM tab0
----
347

skipif mysql # not compatible
query I rowsort label-6183
SELECT + 56 + + MAX ( DISTINCT col0 ) * COUNT ( * ) AS col2 FROM tab0
----
347

query I rowsort
SELECT 78 + + ( col2 ) AS col0 FROM tab2
----
101
118
136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + 67 col0 FROM tab2 WHERE NULL <= ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT DISTINCT + COUNT( * ) * - + ( 54 ) AS col2 FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-6186
SELECT DISTINCT + COUNT ( * ) * - + ( 54 ) AS col2 FROM tab0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT ALL COUNT( * ) - + 44 AS col2 FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-6187
SELECT ALL COUNT ( * ) - + 44 AS col2 FROM tab1
----
-41

query II rowsort
SELECT ALL + 3 * - 58, col0 AS col1 FROM tab2
----
-174
46
-174
64
-174
75

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col2 - - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6190
SELECT MAX( - + 64 ) AS col0, + CAST( NULL AS DECIMAL ) FROM tab2
----
-64
NULL

skipif mysql # not compatible
query II rowsort label-6190
SELECT MAX ( - + 64 ) AS col0, + CAST ( NULL AS REAL ) FROM tab2
----
-64
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6191
SELECT ALL + col1 * - CAST( + col0 AS SIGNED ) FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-6191
SELECT ALL + col1 * - CAST ( + col0 AS INTEGER ) FROM tab2
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6192
SELECT DISTINCT 62 * + CAST( MAX( + 44 ) AS SIGNED ) AS col0 FROM tab2
----
2728

skipif mysql # not compatible
query I rowsort label-6192
SELECT DISTINCT 62 * + CAST ( MAX ( + 44 ) AS INTEGER ) AS col0 FROM tab2
----
2728

query II rowsort
SELECT 3 AS col1, 54 FROM tab1
----
3
54
3
54
3
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6194
SELECT ALL col1, CAST( - col2 AS SIGNED ) + CAST( NULL AS SIGNED ) / - ( 27 ) AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-6194
SELECT ALL col1, CAST ( - col2 AS INTEGER ) + CAST ( NULL AS INTEGER ) / - ( 27 ) AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT col2 - 62 + col1 * + + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT DISTINCT COUNT( DISTINCT - - ( - col0 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6196
SELECT DISTINCT COUNT ( DISTINCT - - ( - col0 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT DISTINCT - 40 * + MAX( ALL - col0 ) AS col2 FROM tab0 cor0
----
600

skipif mysql # not compatible
query I rowsort label-6197
SELECT DISTINCT - 40 * + MAX ( ALL - col0 ) AS col2 FROM tab0 cor0
----
600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6198
SELECT + col1 * - CAST( NULL AS SIGNED ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6198
SELECT + col1 * - CAST ( NULL AS INTEGER ) * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6199
SELECT + - COUNT( * ) AS col2, COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-6199
SELECT + - COUNT ( * ) AS col2, COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-3
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 26, + col2, - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT + COUNT( ALL - + 48 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6201
SELECT + COUNT ( ALL - + 48 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 / + - col1
----

query I rowsort
SELECT + col1 * - 81 * + + 0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - 30 FROM tab0 WHERE NOT ( - 63 NOT IN ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6205
SELECT - + 58 AS col0, + COUNT( * ) FROM tab0 WHERE NOT ( NOT ( NOT - - col2 IS NOT NULL ) )
----
-58
0

skipif mysql # not compatible
query II rowsort label-6205
SELECT - + 58 AS col0, + COUNT ( * ) FROM tab0 WHERE NOT ( NOT ( NOT - - col2 IS NOT NULL ) )
----
-58
0

query I rowsort
SELECT DISTINCT ( - 27 ) AS col2 FROM tab2
----
-27

query I rowsort
SELECT DISTINCT + 70 + - - col1 FROM tab2
----
121
137
147

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * + 97 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 BETWEEN 62 AND NULL
----

query I rowsort
SELECT DISTINCT + + 68 AS col1 FROM tab0 AS cor0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6211
SELECT - col1 + - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6211
SELECT - col1 + - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 71 + + col2 * + - col1 FROM tab0
----
-139
-28
-3736

query III rowsort
SELECT * FROM tab2 WHERE + 52 IN ( + - 71, + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6214
SELECT * FROM tab1 WHERE + 72 - CAST( - 63 AS SIGNED ) NOT IN ( + + 29, - 14, col0, + col0, ( - col1 ) + + + 36 / - 55 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6214
SELECT * FROM tab1 WHERE + 72 - CAST ( - 63 AS INTEGER ) NOT IN ( + + 29, - 14, col0, + col0, ( - col1 ) + + + 36 / - 55 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 35 + - + 8 AS col0 FROM tab0 AS cor0
----
-43
-43
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-6216
SELECT ALL 13 DIV col2 + - col0 * - + col0 FROM tab2 AS cor0
----
2116
4096
5625

skipif mysql # not compatible
query I rowsort label-6216
SELECT ALL 13 / col2 + - col0 * - + col0 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT COUNT( * ) - - 9 AS col2 FROM tab2 cor0
----
12

skipif mysql # not compatible
query I rowsort label-6217
SELECT COUNT ( * ) - - 9 AS col2 FROM tab2 cor0
----
12

query I rowsort
SELECT - + 57 - + 6 AS col1 FROM tab1 AS cor0
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT ALL + SUM( ALL + col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL + SUM ( ALL + col0 ) AS col0 FROM tab2
----
185

query II rowsort
SELECT ALL col2 AS col2, - 6 AS col0 FROM tab0
----
10
-6
47
-6
99
-6

query II rowsort
SELECT + - col2 AS col1, 98 FROM tab0 AS cor0
----
-10
98
-47
98
-99
98

onlyif mysql # aggregate syntax: 
query II rowsort label-6222
SELECT COUNT( * ) AS col2, + ( - 17 ) FROM tab2 AS cor0
----
3
-17

skipif mysql # not compatible
query II rowsort label-6222
SELECT COUNT ( * ) AS col2, + ( - 17 ) FROM tab2 AS cor0
----
3
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT DISTINCT + MAX( DISTINCT + - 12 ) FROM tab0 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6223
SELECT DISTINCT + MAX ( DISTINCT + - 12 ) FROM tab0 cor0
----
-12

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col1 < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT ALL - - SUM( + 22 ) * - + 25 * + 98 * + 40 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-19404000

skipif mysql # not compatible
query I rowsort label-6225
SELECT ALL - - SUM ( + 22 ) * - + 25 * + 98 * + 40 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-19404000

query I rowsort
SELECT ALL - 94 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT DISTINCT ( + 19 ) AS col1 FROM tab0
----
19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 + col2 < - col0 + col1 * + col2
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6229
SELECT DISTINCT + + col2 FROM tab2 cor0 WHERE NOT + CAST( - + ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) * - 76 IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6229
SELECT DISTINCT + + col2 FROM tab2 cor0 WHERE NOT + CAST ( - + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) * - 76 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT + 72 * + - col1 * - col1 FROM tab2 AS cor0
----
187272
323208
426888

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6231
SELECT ( - CAST( NULL AS SIGNED ) ) * - col1 * + - 55 / - col0 - - + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6231
SELECT ( - CAST ( NULL AS INTEGER ) ) * - col1 * + - 55 / - col0 - - + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6232
SELECT ALL + col1 DIV - + col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6232
SELECT ALL + col1 / - + col1 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + col2 col0, col1 FROM tab1 AS cor0
----
3481
5
4624
47
9216
14

query I rowsort
SELECT ALL 74 AS col0 FROM tab1 AS cor0 WHERE NOT ( 76 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 98 AND - + col2 / col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6236
SELECT + CAST( NULL AS SIGNED ) * + + 79 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-6236
SELECT + CAST ( NULL AS INTEGER ) * + + 79 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT ( + - 43 ) * - 40 + COUNT( * ) AS col1 FROM tab2
----
1723

skipif mysql # not compatible
query I rowsort label-6237
SELECT ( + - 43 ) * - 40 + COUNT ( * ) AS col1 FROM tab2
----
1723

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6238
SELECT 79 + + COUNT( * ) DIV - COUNT( * ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-6238
SELECT 79 + + COUNT ( * ) / - COUNT ( * ) FROM tab2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT COUNT( * ) + - 92 FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-6239
SELECT COUNT ( * ) + - 92 FROM tab0
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-6240
SELECT - - col0 * + col0 + + - col1 DIV + + 76 col1 FROM tab1 AS cor0
----
2601
7225
8281

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6240
SELECT - - col0 * + col0 + + - col1 / + + 76 col1 FROM tab1 AS cor0
----
2601
7225
8281

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 44 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6242
SELECT + + col1 DIV - col1 + - - col2 + - - col1 AS col1 FROM tab0 cor0
----
127
30
99

skipif mysql # not compatible
query I rowsort label-6242
SELECT + + col1 / - col1 + - - col2 + - - col1 AS col1 FROM tab0 cor0
----
127
30
99

query I rowsort
SELECT DISTINCT - + 34 FROM tab1 cor0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6244
SELECT + + CAST( NULL AS SIGNED ), 3 col1 FROM tab0 cor0
----
NULL
3
NULL
3
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6244
SELECT + + CAST ( NULL AS INTEGER ), 3 col1 FROM tab0 cor0
----
NULL
3
NULL
3
NULL
3

query III rowsort
SELECT * FROM tab1 WHERE - col0 * + + ( + col2 ) * - 21 / + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6246
SELECT - - COUNT( * ) - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE 79 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6246
SELECT - - COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE 79 <= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6247
SELECT DISTINCT - 17 DIV + col1 + + col1 * col0 - - - col0 AS col2 FROM tab1
----
337
4186
662

skipif mysql # not compatible
query I rowsort label-6247
SELECT DISTINCT - 17 / + col1 + + col1 * col0 - - - col0 AS col2 FROM tab1
----
337
4186
662

query I rowsort
SELECT DISTINCT col2 * col2 + 1 AS col0 FROM tab0
----
101
2210
9802

query I rowsort
SELECT - 28 + ( 29 ) FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col2 + 75 FROM tab1 cor0
----
-21
16
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6251
SELECT ( CAST( NULL AS SIGNED ) ) + - - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6251
SELECT ( CAST ( NULL AS INTEGER ) ) + - - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6252
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( - ( - 42 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6252
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( - ( - 42 ) AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + + col2 - 76 FROM tab2 AS cor0
----
-18
-36
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT - MAX( 43 ) FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-6254
SELECT - MAX ( 43 ) FROM tab2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT ALL + MIN( + col0 ) col2 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6255
SELECT ALL + MIN ( + col0 ) col2 FROM tab1
----
51

query II rowsort
SELECT - + col2 * col1 * + + col2 AS col1, col1 + + 91 + - + 86 FROM tab2 AS cor0
----
-123200
82
-225388
72
-26979
56

query I rowsort
SELECT DISTINCT 73 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
73

query I rowsort
SELECT ( - ( - col0 ) ) + + col2 AS col1 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT DISTINCT - COUNT( * ) + - 39 AS col1 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT - COUNT ( * ) + - 39 AS col1 FROM tab0 AS cor0
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + col2 col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - + col1 * - col1 col2 FROM tab0 AS cor0
----
2
462
6642

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT 50 * + MAX( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
4550

skipif mysql # not compatible
query I rowsort label-6262
SELECT 50 * + MAX ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
4550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 79 col0, col1 - col1 AS col0 FROM tab2 AS cor0
----
79
0
79
0
79
0

query I rowsort
SELECT 85 * + ( + - col1 ) FROM tab0 cor0
----
-1785
-6885
-85

query I rowsort
SELECT - 94 * col1 FROM tab1 cor0
----
-1316
-4418
-470

onlyif mysql # DIV for integer division: 
query I rowsort label-6266
SELECT DISTINCT 62 * col0 DIV 66 * + - 6 + + 58 * + col2 + + + 68 AS col0 FROM tab1 AS cor0
----
3016
3502
5354

skipif mysql # not compatible
query I rowsort label-6266
SELECT DISTINCT 62 * col0 / 66 * + - 6 + + 58 * + col2 + + + 68 AS col0 FROM tab1 AS cor0
----
3016
3502
5354

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT ( COUNT( * ) ) * - COUNT( ALL - col1 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-6267
SELECT ( COUNT ( * ) ) * - COUNT ( ALL - col1 ) FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT 48 * + MAX( + col0 ) AS col0 FROM tab1
----
4368

skipif mysql # not compatible
query I rowsort label-6268
SELECT 48 * + MAX ( + col0 ) AS col0 FROM tab1
----
4368

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT ALL + 33 * - SUM( col2 ) * + COUNT( * ) AS col2 FROM tab1
----
-22077

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL + 33 * - SUM ( col2 ) * + COUNT ( * ) AS col2 FROM tab1
----
-22077

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 col1 FROM tab2 AS cor0
----
-10
-10
-10

query I rowsort
SELECT - 5 * 67 + - 27 FROM tab1 AS cor0
----
-362
-362
-362

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6272
SELECT - col1 + + CAST( - 1 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
-118
-126
-75

skipif mysql # not compatible
query I rowsort label-6272
SELECT - col1 + + CAST ( - 1 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
-118
-126
-75

query I rowsort
SELECT DISTINCT - ( + - ( - 55 ) ) FROM tab1 AS cor0
----
-55

query I rowsort
SELECT + - col0 AS col2 FROM tab2 AS cor0 WHERE ( + col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 / + - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6276
SELECT - ( - - MAX( + - 63 ) ) DIV - + 86 + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-6276
SELECT - ( - - MAX ( + - 63 ) ) / - + 86 + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

query I rowsort
SELECT - 88 * col1 FROM tab1 AS cor0
----
-1232
-4136
-440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6278
SELECT DISTINCT + 17 AS col0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6278
SELECT DISTINCT + 17 AS col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL - - 1 * - + col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6280
SELECT + - col1 * CAST( + + col1 AS SIGNED ) AS col2, + 87 AS col0 FROM tab1 AS cor0
----
-196
87
-2209
87
-25
87

skipif mysql # not compatible
query II rowsort label-6280
SELECT + - col1 * CAST ( + + col1 AS INTEGER ) AS col2, + 87 AS col0 FROM tab1 AS cor0
----
-196
87
-2209
87
-25
87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 - + 1 + - + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6283
SELECT 75 DIV + COUNT( * ) FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-6283
SELECT 75 / + COUNT ( * ) FROM tab1 AS cor0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-6284
SELECT DISTINCT - + col0 DIV col2 * + - col2 AS col0 FROM tab1 AS cor0
----
0
59
68

skipif mysql # not compatible
query I rowsort label-6284
SELECT DISTINCT - + col0 / col2 * + - col2 AS col0 FROM tab1 AS cor0
----
0
59
68

query I rowsort
SELECT DISTINCT + 92 AS col2 FROM tab0 AS cor0 WHERE + 1 / + col2 IS NULL
----

query I rowsort
SELECT DISTINCT ( + + col1 ) FROM tab1 cor0
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - 16 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 / 52 > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE - 17 < NULL
----

query I rowsort
SELECT DISTINCT 94 * + col1 FROM tab0
----
1974
7614
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6291
SELECT + CAST( NULL AS SIGNED ) * + MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6291
SELECT + CAST ( NULL AS INTEGER ) * + MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 23 col0 FROM tab0
----
1081
2277
230

query I rowsort
SELECT ALL ( + 31 ) FROM tab1
----
31
31
31

query I rowsort
SELECT + ( - 47 ) * - 0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - 18 * col2 + + + col0 + col1 AS col0 FROM tab2 AS cor0
----
-317
-579
-902

query II rowsort
SELECT + ( - - col2 ) * 29 * - 85, + col0 * - 41 FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT DISTINCT - + 88 - - - COUNT( * ) col0 FROM tab2 AS cor0 WHERE col1 + - - col1 + - col2 + + col1 <= 51
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6297
SELECT DISTINCT - + 88 - - - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE col1 + - - col1 + - col2 + + col1 <= 51
----
-88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 29 + + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6299
SELECT DISTINCT + - COUNT( * ) * CAST( NULL AS DECIMAL ) + - 93 + CAST( NULL AS DECIMAL ) - - COUNT( * ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6299
SELECT DISTINCT + - COUNT ( * ) * CAST ( NULL AS REAL ) + - 93 + CAST ( NULL AS REAL ) - - COUNT ( * ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + ( - - 31 ) FROM tab0 AS cor0
----
31

query I rowsort
SELECT ALL - + 9 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0 + + col0
----

query II rowsort
SELECT ALL - + col1, + col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 2 + - 74 + 22 >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6304
SELECT - MAX( DISTINCT - 39 ) + - SUM( ALL - - CAST( NULL AS SIGNED ) ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6304
SELECT - MAX ( DISTINCT - 39 ) + - SUM ( ALL - - CAST ( NULL AS INTEGER ) ) col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL - 28 AS col2, 32 AS col2, + + col2 AS col1 FROM tab0
----
9 values hashing to 8ff6080477f18eed3b1a815ea0b123d3

query II rowsort
SELECT ALL col1, - col0 AS col0 FROM tab2
----
51
-46
67
-75
77
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6307
SELECT + MIN( ALL col1 ) + 51 AS col0 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-6307
SELECT + MIN ( ALL col1 ) + 51 AS col0 FROM tab0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6308
SELECT col0 + - CAST( NULL AS SIGNED ) * - col1 + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6308
SELECT col0 + - CAST ( NULL AS INTEGER ) * - col1 + + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + - - col1 AS col1 FROM tab0
----
-98
11
34

query I rowsort
SELECT ALL + col2 * + 50 FROM tab2 WHERE NOT ( ( NULL ) IS NULL )
----

query I rowsort
SELECT - ( ( - col2 ) ) + 44 FROM tab2
----
102
67
84

query I rowsort
SELECT col2 + - - 14 AS col1 FROM tab2
----
37
54
72

query I rowsort
SELECT - 14 + 43 AS col0 FROM tab1
----
29
29
29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 60 * col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 83 <> - + ( col2 ) + - 38
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6316
SELECT * FROM tab1 WHERE NOT + col2 * CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6316
SELECT * FROM tab1 WHERE NOT + col2 * CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6317
SELECT + COUNT( - - 25 ) * + COUNT( * ) * CAST( NULL AS SIGNED ) * + 68 / + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6317
SELECT + COUNT ( - - 25 ) * + COUNT ( * ) * CAST ( NULL AS INTEGER ) * + 68 / + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + 8 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 59 - - + col0 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col0 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN + + 47 AND NULL
----

query I rowsort
SELECT DISTINCT - 94 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6322
SELECT ALL SUM( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-6322
SELECT ALL SUM ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 95 AND + - 94
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 <> - col1 + + col1
----

query I rowsort
SELECT ( + 98 ) FROM tab0
----
98
98
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col0 col2 FROM tab0
----
1
97
21
87
81
15

query II rowsort
SELECT col2 AS col2, col0 * + col1 + + col1 FROM tab2
----
23
2397
40
5005
58
5092

query II rowsort
SELECT col1, + 52 FROM tab1
----
14
52
47
52
5
52

query II rowsort
SELECT 23, col0 FROM tab2
----
23
46
23
64
23
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6330
SELECT COUNT( - + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6330
SELECT COUNT ( - + col0 ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6331
SELECT DISTINCT 3 DIV - col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6331
SELECT DISTINCT 3 / - col0 FROM tab1
----
0

query II rowsort
SELECT - col1 AS col2, col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
97
-21
87
-81
15

query I rowsort
SELECT DISTINCT - 6 * - - col2 AS col2 FROM tab0 AS cor0
----
-282
-594
-60

query II rowsort
SELECT ALL + 20, 79 + + col0 AS col2 FROM tab2 AS cor0
----
20
125
20
143
20
154

query II rowsort
SELECT DISTINCT - - 76, + col1 AS col2 FROM tab2 AS cor0
----
76
51
76
67
76
77

onlyif mysql # aggregate syntax: 
query II rowsort label-6336
SELECT - COUNT( * ) * + - 2, + COUNT( * ) + 69 col1 FROM tab0
----
6
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6336
SELECT - COUNT ( * ) * + - 2, + COUNT ( * ) + 69 col1 FROM tab0
----
6
72

query I rowsort
SELECT ALL + 48 FROM tab1, tab0 cor0
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # aggregate syntax: 
query I rowsort label-6338
SELECT DISTINCT MIN( - 9 ) + 6 + - + ( 64 ) FROM tab0
----
-67

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT MIN ( - 9 ) + 6 + - + ( 64 ) FROM tab0
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT DISTINCT 55 + + - MIN( + col0 ) AS col0 FROM tab0 cor0
----
40

skipif mysql # not compatible
query I rowsort label-6339
SELECT DISTINCT 55 + + - MIN ( + col0 ) AS col0 FROM tab0 cor0
----
40

query I rowsort
SELECT 96 * + 37 + - - col0 AS col1 FROM tab1 AS cor0
----
3603
3637
3643

onlyif mysql # DIV for integer division: 
query I rowsort label-6341
SELECT DISTINCT + - col1 DIV - - col0 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6341
SELECT DISTINCT + - col1 / - - col0 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6342
SELECT DISTINCT col2 - CAST( - col1 AS SIGNED ) * - col2 * - col1 AS col1, col0 AS col1 FROM tab2
----
237200
64
260420
75
59846
46

skipif mysql # not compatible
query II rowsort label-6342
SELECT DISTINCT col2 - CAST ( - col1 AS INTEGER ) * - col2 * - col1 AS col1, col0 AS col1 FROM tab2
----
237200
64
260420
75
59846
46

query III rowsort
SELECT * FROM tab2 WHERE - col2 - col1 IS NULL
----

query I rowsort
SELECT ALL + 44 * - col1 * + + col1 * - + 51 FROM tab2
----
10073316
13304676
5836644

query I rowsort
SELECT 37 + + 6 AS col2 FROM tab2 AS cor0
----
43
43
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT DISTINCT + SUM( ALL - col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-6346
SELECT DISTINCT + SUM ( ALL - col1 ) AS col2 FROM tab1
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
77

query I rowsort
SELECT + - 57 FROM tab0 WHERE NOT + 26 BETWEEN + col0 AND NULL
----
-57
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + + col0 ) col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT col2 * + - col1 * 59 AS col1 FROM tab0 AS cor0
----
-12390
-224613
-5841

query II rowsort
SELECT DISTINCT + + col1 AS col1, 53 * + + col1 FROM tab1 AS cor0
----
14
742
47
2491
5
265

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 * + col2 * + + 39 col1 FROM tab1 AS cor0
----
123552
75933
87516

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT DISTINCT MAX( - 71 ) col1 FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6353
SELECT DISTINCT MAX ( - 71 ) col1 FROM tab1 AS cor0
----
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 * - + col2 col2 FROM tab0 AS cor0
----
1551
3267
330

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * - - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 99 FROM tab1 WHERE + col0 IS NULL
----

query I rowsort
SELECT 33 * col2 * + col0 AS col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 98 col1 FROM tab1
----
98
98
98

query I rowsort
SELECT DISTINCT - 78 + - col0 + col1 AS col1 FROM tab1
----
-115
-122
-158

onlyif mysql # aggregate syntax: 
query II rowsort label-6360
SELECT - + 76 + + COUNT( * ) AS col2, - 17 AS col1 FROM tab0 WHERE NOT - col2 IS NULL
----
-73
-17

skipif mysql # not compatible
query II rowsort label-6360
SELECT - + 76 + + COUNT ( * ) AS col2, - 17 AS col1 FROM tab0 WHERE NOT - col2 IS NULL
----
-73
-17

query I rowsort
SELECT - + 42 + ( - col0 ) AS col2 FROM tab2 AS cor0
----
-106
-117
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT - COUNT( * ) col1 FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 AND col2 * - col2 * + - col1 + col1 + + col1 + - + 21
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6362
SELECT - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 AND col2 * - col2 * + - col1 + col1 + + col1 + - + 21
----
0

query II rowsort
SELECT 20, col1 AS col1 FROM tab0
----
20
1
20
21
20
81

onlyif mysql # aggregate syntax: 
query II rowsort label-6364
SELECT + COUNT( * ) col1, SUM( DISTINCT - col1 ) FROM tab0 AS cor0
----
3
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6364
SELECT + COUNT ( * ) col1, SUM ( DISTINCT - col1 ) FROM tab0 AS cor0
----
3
-103

query I rowsort
SELECT DISTINCT + 28 + + 46 FROM tab0 AS cor0
----
74

query I rowsort
SELECT ALL - col1 * + 41 * + + col2 AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
-12095
-131036
-55104

query I rowsort
SELECT DISTINCT col1 - + ( + col0 ) FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT DISTINCT 14 + MAX( DISTINCT - 56 ) FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-6368
SELECT DISTINCT 14 + MAX ( DISTINCT - 56 ) FROM tab0 AS cor0
----
-42

query I rowsort
SELECT ALL col2 - + col0 AS col0 FROM tab2 cor0
----
-17
-23
-24

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT - 95 + - COUNT( * ) * MIN( ALL - + col2 ) AS col2 FROM tab1 AS cor0
----
193

skipif mysql # not compatible
query I rowsort label-6371
SELECT - 95 + - COUNT ( * ) * MIN ( ALL - + col2 ) AS col2 FROM tab1 AS cor0
----
193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6372
SELECT - - col1 + - col2 * - col2 FROM tab1 WHERE + + 64 / CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6372
SELECT - - col1 + - col2 * - col2 FROM tab1 WHERE + + 64 / CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL - col2 - ( + col1 ) FROM tab2
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6374
SELECT ALL + MAX( ALL + - col2 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-6374
SELECT ALL + MAX ( ALL + - col2 ) AS col2 FROM tab1
----
-59

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 85 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6376
SELECT col1 DIV 69 col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6376
SELECT col1 / 69 col0 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6377
SELECT + 40 * + SUM( col1 ) FROM tab2
----
7800

skipif mysql # not compatible
query I rowsort label-6377
SELECT + 40 * + SUM ( col1 ) FROM tab2
----
7800

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT ALL COUNT( * ) + - MIN( ALL + + col0 ) AS col0 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL COUNT ( * ) + - MIN ( ALL + + col0 ) AS col0 FROM tab2
----
-43

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * + - 12 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6380
SELECT + col0 DIV 42 AS col1 FROM tab1 cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-6380
SELECT + col0 / 42 AS col1 FROM tab1 cor0
----
1
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6381
SELECT COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6381
SELECT COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT MAX( 37 ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
37

skipif mysql # not compatible
query I rowsort label-6382
SELECT MAX ( 37 ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
37

query I rowsort
SELECT - 6 * col2 FROM tab2
----
-138
-240
-348

query I rowsort
SELECT + 72 * - col2 * + - 3 AS col2 FROM tab0
----
10152
21384
2160

query I rowsort
SELECT ALL col0 / + col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + - 49 * 10 * col1 * + col2 col1 FROM tab0 AS cor0
----
-151099830
-2160900
-48510

query I rowsort
SELECT - + 65 * - + col0 + 73 + - + col0 FROM tab2 cor0
----
3017
4169
4873

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT ALL + 15 * - COUNT( * ) FROM tab2 cor0
----
-45

skipif mysql # not compatible
query I rowsort label-6388
SELECT ALL + 15 * - COUNT ( * ) FROM tab2 cor0
----
-45

query I rowsort
SELECT ALL 1 FROM tab2 AS cor0 WHERE NOT - col2 + + + 8 * + col0 NOT BETWEEN - col0 * + - 85 AND NULL
----

query I rowsort
SELECT col1 * + col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
441
6561

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 96 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT DISTINCT + 77 * - COUNT( + col0 ) FROM tab2
----
-231

skipif mysql # not compatible
query I rowsort label-6392
SELECT DISTINCT + 77 * - COUNT ( + col0 ) FROM tab2
----
-231

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6393
SELECT DISTINCT * FROM tab0 WHERE - + CAST( NULL AS SIGNED ) + - 7 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6393
SELECT DISTINCT * FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) + - 7 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6394
SELECT DISTINCT * FROM tab2 WHERE ( - col1 ) NOT BETWEEN - col2 AND + - CAST( - col2 AS SIGNED ) * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6394
SELECT DISTINCT * FROM tab2 WHERE ( - col1 ) NOT BETWEEN - col2 AND + - CAST ( - col2 AS INTEGER ) * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 49 * + col0 FROM tab0 AS cor0 WHERE ( NOT - col1 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + col1, + col1, col0, col2 )
----

query I rowsort
SELECT ALL col2 + + 29 FROM tab0 AS cor0
----
128
39
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6398
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 + - - col2 col2, - col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6398
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 + - - col2 col2, - col2 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / - col0 * - ( + col1 ) <> - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6400
SELECT CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED ), - col2 AS col1 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-6400
SELECT CAST ( + + CAST ( NULL AS REAL ) AS INTEGER ), - col2 AS col1 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

query I rowsort
SELECT DISTINCT - col0 + - 77 AS col1 FROM tab2 AS cor0
----
-123
-141
-152

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - ( - - 22 ) + - - 56 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6403
SELECT SUM( ( - ( col2 ) ) ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-6403
SELECT SUM ( ( - ( col2 ) ) ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT DISTINCT col2 * + 44 - + - col1 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
2149
4357
461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6405
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) / col0 - + - col1 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6405
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) / col0 - + - col1 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT col2 * 15 FROM tab0 AS cor0
----
1485
150
705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6407
SELECT ALL col1 * - + 14 - - + ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL col1 * - + 14 - - + ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6408
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6408
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0, tab1 cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + 21
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab0 WHERE NOT NULL <> - - col1 + 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT DISTINCT MAX( - 74 ) AS col2 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-6411
SELECT DISTINCT MAX ( - 74 ) AS col2 FROM tab2
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6412
SELECT CAST( + col1 AS SIGNED ) - 91 AS col1 FROM tab0
----
-10
-70
-90

skipif mysql # not compatible
query I rowsort label-6412
SELECT CAST ( + col1 AS INTEGER ) - 91 AS col1 FROM tab0
----
-10
-70
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-6413
SELECT DISTINCT - COUNT( * ) * + + 46 FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-6413
SELECT DISTINCT - COUNT ( * ) * + + 46 FROM tab2
----
-138

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 70 + col2 * - 50 < + 95 + 52
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6415
SELECT DISTINCT + + COUNT( * ), SUM( ALL - 43 ) AS col2 FROM tab0 AS cor0
----
3
-129

skipif mysql # not compatible
query II rowsort label-6415
SELECT DISTINCT + + COUNT ( * ), SUM ( ALL - 43 ) AS col2 FROM tab0 AS cor0
----
3
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-6416
SELECT ALL - MAX( DISTINCT 61 ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-6416
SELECT ALL - MAX ( DISTINCT 61 ) FROM tab2 AS cor0
----
-61

query I rowsort
SELECT ALL 44 * - col2 AS col2 FROM tab2 WHERE NOT NULL < ( - col0 )
----

query I rowsort
SELECT ALL 51 AS col2 FROM tab0 WHERE + col2 NOT IN ( + col0 * - 99 )
----
51
51
51

query III rowsort
SELECT * FROM tab0 WHERE + 65 * - 27 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 16 ) IN ( + 61 - 52 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 - - 84 FROM tab0
----
171
181
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT + COUNT( * ) FROM tab2 WHERE NOT 45 * - 79 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6422
SELECT + COUNT ( * ) FROM tab2 WHERE NOT 45 * - 79 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6423
SELECT DISTINCT col2 * col0 + col2 AS col0 FROM tab1 WHERE ( - CAST( NULL AS SIGNED ) ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-6423
SELECT DISTINCT col2 * col0 + col2 AS col0 FROM tab1 WHERE ( - CAST ( NULL AS INTEGER ) ) <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < ( col1 / + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6425
SELECT DISTINCT - MAX( ALL + CAST( + col1 AS SIGNED ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT - MAX ( ALL + CAST ( + col1 AS INTEGER ) ) FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT - 30 - - COUNT( * ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-6426
SELECT - 30 - - COUNT ( * ) FROM tab0
----
-27

query I rowsort
SELECT + 19 - col1 AS col2 FROM tab2
----
-32
-48
-58

query III rowsort
SELECT * FROM tab0 WHERE NULL <= + 24 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NULL IN ( 4 )
----
0

skipif mysql # not compatible
query I rowsort label-6429
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NULL IN ( 4 )
----
0

query I rowsort
SELECT ALL col2 + col2 * + col0 AS col0 FROM tab2 AS cor0
----
1081
2600
4408

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( - col1 - + col0 * + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT DISTINCT - COUNT( * ) + - SUM( ALL col2 ) FROM tab1 AS cor0
----
-226

skipif mysql # not compatible
query I rowsort label-6432
SELECT DISTINCT - COUNT ( * ) + - SUM ( ALL col2 ) FROM tab1 AS cor0
----
-226

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT ALL - COUNT( * ) + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6433
SELECT ALL - COUNT ( * ) + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6434
SELECT 67 DIV COUNT( * ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-6434
SELECT 67 / COUNT ( * ) FROM tab1
----
22

query I rowsort
SELECT col1 - 75 AS col2 FROM tab2
----
-24
-8
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6436
SELECT ALL SUM( ALL - col2 ) * 62 AS col1 FROM tab0
----
-9672

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL SUM ( ALL - col2 ) * 62 AS col1 FROM tab0
----
-9672

onlyif mysql # aggregate syntax: 
query I rowsort label-6437
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NULL >= - 5 + - col2
----
0

skipif mysql # not compatible
query I rowsort label-6437
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NULL >= - 5 + - col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6438
SELECT + COUNT( * ) - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6438
SELECT + COUNT ( * ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT col2 - 89 FROM tab0 AS cor0
----
-42
-79
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT COUNT( * ) + 99 AS col1 FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-6440
SELECT COUNT ( * ) + 99 AS col1 FROM tab2 AS cor0
----
102

query I rowsort
SELECT DISTINCT 7 * + col0 + + col1 AS col2 FROM tab0 AS cor0
----
186
630
680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6442
SELECT - COUNT( * ) + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6442
SELECT - COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + - 38 FROM tab0 AS cor0
----
-28
61
9

query I rowsort
SELECT - ( - 53 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
53
53
53

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE - col0 / col0 NOT BETWEEN + col1 * - col2 AND NULL
----

query I rowsort
SELECT DISTINCT + + col0 + - 51 * + col1 AS col1 FROM tab2 cor0
----
-2555
-3342
-3863

query I rowsort
SELECT ALL col0 - - 93 AS col0 FROM tab1 AS cor0
----
144
178
184

query I rowsort
SELECT 69 * col1 AS col1 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
3243
345
966

onlyif mysql # aggregate syntax: 
query I rowsort label-6449
SELECT ALL + COUNT( * ) + + 91 AS col2 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL + COUNT ( * ) + + 91 AS col2 FROM tab1 AS cor0
----
94

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 63 ) IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6451
SELECT CAST( 66 AS SIGNED ) * COUNT( * ) AS col2 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-6451
SELECT CAST ( 66 AS INTEGER ) * COUNT ( * ) AS col2 FROM tab1
----
198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 col1 FROM tab2
----
-48
-48
-48

query I rowsort
SELECT DISTINCT col0 * - - col1 * + col0 AS col0 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT col0 * + col2 * + ( - col1 ) AS col2 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT DISTINCT 66 * + COUNT( ALL col1 ) AS col2 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-6455
SELECT DISTINCT 66 * + COUNT ( ALL col1 ) AS col2 FROM tab1
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-6456
SELECT ALL + 27 DIV - col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL + 27 / - col0 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT COUNT( DISTINCT + 40 ) col0 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6457
SELECT COUNT ( DISTINCT + 40 ) col0 FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 NOT IN ( ( - 67 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6460
SELECT ALL - COUNT( - 93 ) col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6460
SELECT ALL - COUNT ( - 93 ) col1 FROM tab1 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 91 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT DISTINCT MIN( DISTINCT 93 ) AS col0 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT MIN ( DISTINCT 93 ) AS col0 FROM tab2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT COUNT( * ) + - 89 * + ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-792

skipif mysql # not compatible
query I rowsort label-6463
SELECT COUNT ( * ) + - 89 * + ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-792

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - + col1 * + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + + 56 AS col0, - ( + col1 ) AS col0 FROM tab0 cor0
----
56
-1
56
-21
56
-81

query I rowsort
SELECT - col0 * - 87 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT 35 + - - COUNT( * ) AS col2 FROM tab1 cor0
----
38

skipif mysql # not compatible
query I rowsort label-6468
SELECT 35 + - - COUNT ( * ) AS col2 FROM tab1 cor0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6469
SELECT DISTINCT + CAST( col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-6469
SELECT DISTINCT + CAST ( col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6470
SELECT - col1 DIV - 11 AS col2 FROM tab2 AS cor0
----
4
6
7

skipif mysql # not compatible
query I rowsort label-6470
SELECT - col1 / - 11 AS col2 FROM tab2 AS cor0
----
4
6
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6471
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT CAST( + - col1 AS SIGNED ) NOT BETWEEN - col0 AND col2 * col0 + - col1
----
-75

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT CAST ( + - col1 AS INTEGER ) NOT BETWEEN - col0 AND col2 * col0 + - col1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT DISTINCT + COUNT( ALL - ( - col0 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT + COUNT ( ALL - ( - col0 ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT DISTINCT MAX( + + col2 ) col1 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6473
SELECT DISTINCT MAX ( + + col2 ) col1 FROM tab1
----
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = - 58 * - col0 * col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6475
SELECT COUNT( 3 ) AS col2, ( - 22 ) AS col1 FROM tab0
----
3
-22

skipif mysql # not compatible
query II rowsort label-6475
SELECT COUNT ( 3 ) AS col2, ( - 22 ) AS col1 FROM tab0
----
3
-22

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - - col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( - - ( - col2 ) ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 IN ( + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT ALL - MIN( + col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-6479
SELECT ALL - MIN ( + col0 ) AS col0 FROM tab2
----
-46

query I rowsort
SELECT ALL col0 * + 70 + col0 + - col1 + col1 * col0 AS col1 FROM tab1
----
10691
4321
6455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 * - col1 + - - col2 * - + col2 col1 FROM tab0 cor0
----
-1237
-9789
152

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6482
SELECT + - MIN( ALL + col2 ) * - 10 + + COUNT( * ) DIV 66 FROM tab1 AS cor0
----
590

skipif mysql # not compatible
query I rowsort label-6482
SELECT + - MIN ( ALL + col2 ) * - 10 + + COUNT ( * ) / 66 FROM tab1 AS cor0
----
590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6483
SELECT + 88 * - CAST( NULL AS SIGNED ) * - col2 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6483
SELECT + 88 * - CAST ( NULL AS INTEGER ) * - col2 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + + col0 * + 64 * - - 2 FROM tab1 AS cor0
----
10821
11580
6432

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( - 88 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 23 + + - 12 col1 FROM tab1 AS cor0
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * + ( + + col2 ), col2 * 77 * + ( col2 ) col0 FROM tab0
----
210
7700
3807
170093
99
754677

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT - MAX( DISTINCT col1 ) col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6488
SELECT - MAX ( DISTINCT col1 ) col2 FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6489
SELECT - CAST( + 82 AS SIGNED ) FROM tab0 cor0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-6489
SELECT - CAST ( + 82 AS INTEGER ) FROM tab0 cor0
----
-82
-82
-82

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 - + + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6491
SELECT 14 DIV col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6491
SELECT 14 / col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6492
SELECT - COUNT( * ) - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6492
SELECT - COUNT ( * ) - COUNT ( * ) FROM tab0 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6493
SELECT + CAST( - col0 AS SIGNED ) - - - 40 AS col2 FROM tab0 cor0
----
-127
-137
-55

skipif mysql # not compatible
query I rowsort label-6493
SELECT + CAST ( - col0 AS INTEGER ) - - - 40 AS col2 FROM tab0 cor0
----
-127
-137
-55

query I rowsort
SELECT 39 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE + col1 - - - 7 - - + col0 + + col0 + + col1 / + 2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col0 * + + col1 AS col1 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT DISTINCT + 93 * - COUNT( * ) AS col1 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-6497
SELECT DISTINCT + 93 * - COUNT ( * ) AS col1 FROM tab0
----
-279

query II rowsort
SELECT DISTINCT col0, + 62 FROM tab1
----
51
62
85
62
91
62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6499
SELECT * FROM tab2 WHERE NOT NULL IN ( CAST( ( - ( - - 18 ) ) AS SIGNED ) * - 92 + + col2 )
----

skipif mysql # not compatible
query III rowsort label-6499
SELECT * FROM tab2 WHERE NOT NULL IN ( CAST ( ( - ( - - 18 ) ) AS INTEGER ) * - 92 + + col2 )
----

query I rowsort
SELECT col2 FROM tab0 WHERE NOT col0 < ( col1 )
----
10
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( NULL ) <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6502
SELECT DISTINCT col0 * 2 * - col2 * col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6502
SELECT DISTINCT col0 * 2 * - col2 * col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 / + 32 col1 FROM tab1 WHERE ( NOT - col0 + col2 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6504
SELECT DISTINCT - 39 DIV + 50 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6504
SELECT DISTINCT - 39 / + 50 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, 63 col2 FROM tab2 AS cor0
----
-23
63
-40
63
-58
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6506
SELECT DISTINCT + col1 col0, col2 * + CAST( + col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
4896
47
6188
5
5015

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6506
SELECT DISTINCT + col1 col0, col2 * + CAST ( + col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
4896
47
6188
5
5015

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) IN ( - 83 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6508
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) / + + col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT + - CAST ( NULL AS REAL ) / + + col0 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6509
SELECT + CAST( + col0 AS SIGNED ) * 11 FROM tab1 WHERE NOT col2 * col2 * - 35 IN ( + 10 + - - 1 + + col2 ) AND NULL BETWEEN ( - col2 ) AND ( 59 )
----

skipif mysql # not compatible
query I rowsort label-6509
SELECT + CAST ( + col0 AS INTEGER ) * 11 FROM tab1 WHERE NOT col2 * col2 * - 35 IN ( + 10 + - - 1 + + col2 ) AND NULL BETWEEN ( - col2 ) AND ( 59 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6510
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IN ( 46 * + 97 + 88, + col1 )
----

skipif mysql # not compatible
query I rowsort label-6510
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IN ( 46 * + 97 + 88, + col1 )
----

query I rowsort
SELECT ALL + 88 + + col1 FROM tab1 AS cor0
----
102
135
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT - - SUM( - col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-6512
SELECT - - SUM ( - col0 ) AS col0 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT + ( 42 ) FROM tab2 AS cor0
----
42
42
42

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= - 87
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + + 41 ) < col1 + - 29 + - 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT + ( + SUM( col2 ) ) FROM tab2 AS cor0 WHERE - col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6516
SELECT + ( + SUM ( col2 ) ) FROM tab2 AS cor0 WHERE - col2 < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT + COUNT( * ) + 69 AS col2 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-6517
SELECT + COUNT ( * ) + 69 AS col2 FROM tab2
----
72

query I rowsort
SELECT - 0 + - 31 AS col1 FROM tab0
----
-31
-31
-31

query I rowsort
SELECT DISTINCT + 11 FROM tab1 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT 62 + + col1 FROM tab0
----
143
63
83

query I rowsort
SELECT ALL col2 * - col0 + - col2 + + - col2 * - 32 AS col0 FROM tab2
----
-1320
-2552
-345

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT COUNT( * ) AS col0 FROM tab2 WHERE - 83 IS NULL OR NOT 25 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6522
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE - 83 IS NULL OR NOT 25 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6523
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) >= + + 41 * + col0 * + + CAST( NULL AS SIGNED ) / - col1
----

skipif mysql # not compatible
query III rowsort label-6523
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) >= + + 41 * + col0 * + + CAST ( NULL AS INTEGER ) / - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * + + col1 = NULL
----

query I rowsort
SELECT DISTINCT - col0 + col1 * + col0 * + - col2 AS col0 FROM tab0 AS cor0
----
-18357
-57120
-9700

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6526
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 < ( col0 + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-6528
SELECT ALL 75 + + COUNT( ALL + + col2 ) col2, + COUNT( * ) FROM tab2 AS cor0
----
78
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6528
SELECT ALL 75 + + COUNT ( ALL + + col2 ) col2, + COUNT ( * ) FROM tab2 AS cor0
----
78
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6529
SELECT ALL - col1 * col2 * - - 95 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6529
SELECT ALL - col1 * col2 * - - 95 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - - 54 AS col2 FROM tab2
----
105
121
131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6531
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6531
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + 66 AS col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
66

query II rowsort
SELECT 20 * + col1 + + col1 + + 16 + + col2, - col0 AS col1 FROM tab1 AS cor0
----
1071
-91
180
-85
406
-51

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - 88 ) * + col2 + + 0 > + col2 - + 89
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT DISTINCT + COUNT( * ) * - - ( - + COUNT( * ) ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-6535
SELECT DISTINCT + COUNT ( * ) * - - ( - + COUNT ( * ) ) AS col2 FROM tab2
----
-9

query I rowsort
SELECT DISTINCT + 33 * 5 FROM tab1
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6537
SELECT ALL 72 / - col1 * + + CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6537
SELECT ALL 72 / - col1 * + + CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 AS col2, 90 FROM tab0
----
10
90
47
90
99
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6539
SELECT DISTINCT - 61 * - CAST( NULL AS SIGNED ) * + col0 * + - 59 / + col2, - col2 AS col1 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-6539
SELECT DISTINCT - 61 * - CAST ( NULL AS INTEGER ) * + col0 * + - 59 / + col2, - col2 AS col1 FROM tab2 AS cor0
----
NULL
-23
NULL
-40
NULL
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT ALL - + COUNT( * ) * 31 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-6540
SELECT ALL - + COUNT ( * ) * 31 FROM tab2 AS cor0
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-6541
SELECT DISTINCT - 32 * + col1 + + col0 DIV - col1 FROM tab1 AS cor0
----
-1505
-177
-451

skipif mysql # not compatible
query I rowsort label-6541
SELECT DISTINCT - 32 * + col1 + + col0 / - col1 FROM tab1 AS cor0
----
-1505
-177
-451

query I rowsort
SELECT ALL 98 FROM tab1 AS cor0 WHERE NOT ( + 74 ) NOT IN ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6543
SELECT ALL + 43 DIV + col0 AS col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6543
SELECT ALL + 43 / + col0 AS col2 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT ALL + 84 * col1 AS col0 FROM tab1
----
1176
3948
420

query I rowsort
SELECT DISTINCT - ( - - col0 ) AS col2 FROM tab1 WHERE + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT COUNT( * ) * + 84 + - 93 FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-6546
SELECT COUNT ( * ) * + 84 + - 93 FROM tab2
----
159

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 WHERE ( - 12 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6548
SELECT DISTINCT + 80 * 69 + + 15 - + 36 col0, col2 + CAST( 91 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
5499
114
5499
131
5499
149

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6548
SELECT DISTINCT + 80 * 69 + + 15 - + 36 col0, col2 + CAST ( 91 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
5499
114
5499
131
5499
149

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 23 / + + col2 NOT BETWEEN ( col1 * + col1 ) AND ( ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6550
SELECT DISTINCT - col0 + 36 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) = - col2
----

skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT - col0 + 36 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6551
SELECT - + SUM( + ( - + 8 ) ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-6551
SELECT - + SUM ( + ( - + 8 ) ) FROM tab0 AS cor0
----
24

query I rowsort
SELECT 7 * - - 33 - - - col2 AS col0 FROM tab1 AS cor0
----
135
163
172

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6553
SELECT DISTINCT + 28 DIV + COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT + 28 / + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

query I rowsort
SELECT col1 FROM tab2 WHERE - 72 IS NOT NULL
----
51
67
77

query I rowsort
SELECT - col1 FROM tab2 WHERE - col2 + + 97 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6556
SELECT DISTINCT - + col0 DIV + - col2 AS col0 FROM tab2 WHERE NOT ( ( + 69 ) > + col1 )
----
1

skipif mysql # not compatible
query I rowsort label-6556
SELECT DISTINCT - + col0 / + - col2 AS col0 FROM tab2 WHERE NOT ( ( + 69 ) > + col1 )
----
1

query I rowsort
SELECT ( + col1 ) + - - 81 AS col1 FROM tab0 AS cor0
----
102
162
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 col1 FROM tab0
----
-69
-69
-69

query II rowsort
SELECT 46, - 54 * + col2 AS col2 FROM tab2 AS cor0
----
46
-1242
46
-2160
46
-3132

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6560
SELECT - - CAST( NULL AS DECIMAL ) * - - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6560
SELECT - - CAST ( NULL AS REAL ) * - - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT ALL - SUM( DISTINCT + + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6561
SELECT ALL - SUM ( DISTINCT + + col1 ) FROM tab1 AS cor0
----
-66

query II rowsort
SELECT col0 * - col2 - - 85 AS col2, + col0 * + col0 AS col0 FROM tab2 cor0
----
-2475
4096
-4265
5625
-973
2116

query I rowsort
SELECT DISTINCT col2 * + col2 * + + 97 * col1 FROM tab0 AS cor0
----
17356113
203700
950697

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 * + col2 - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT ALL + + MAX( + + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6565
SELECT ALL + + MAX ( + + col2 ) FROM tab2 AS cor0
----
58

query II rowsort
SELECT ALL - col1, ( col2 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT ALL + SUM( DISTINCT + col1 ) * - + SUM( col2 ) * - + 77 AS col2 FROM tab0
----
1237236

skipif mysql # not compatible
query I rowsort label-6567
SELECT ALL + SUM ( DISTINCT + col1 ) * - + SUM ( col2 ) * - + 77 AS col2 FROM tab0
----
1237236

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 45 * - + 43 >= - 39
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 7 AS col1 FROM tab2
----
7
7
7

query I rowsort
SELECT - 3 * + - col2 AS col2 FROM tab2
----
120
174
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT DISTINCT - MAX( ALL + + col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-6571
SELECT DISTINCT - MAX ( ALL + + col1 ) AS col0 FROM tab0
----
-81

query I rowsort
SELECT DISTINCT + col0 * 18 FROM tab1 AS cor0
----
1530
1638
918

query I rowsort
SELECT DISTINCT + - 85 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT + + COUNT( * ) AS col2 FROM tab1 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6574
SELECT + + COUNT ( * ) AS col2 FROM tab1 WHERE NOT col2 IS NULL
----
3

query I rowsort
SELECT ALL + 26 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT ALL + + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL + + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 67 * - + 52 - - col0 * + - col2 - col0 <= NULL
----

query II rowsort
SELECT + col2, 44 * + 23 FROM tab1 AS cor0
----
59
1012
68
1012
96
1012

query I rowsort
SELECT - 70 * + 13 FROM tab1 AS cor0
----
-910
-910
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT ALL + + COUNT( * ) * 5 col2 FROM tab1 cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6580
SELECT ALL + + COUNT ( * ) * 5 col2 FROM tab1 cor0
----
15

query II rowsort
SELECT ALL - col1 AS col2, + 28 + 92 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + - 5 + - - col1 FROM tab1 AS cor0
----
0
42
9

query I rowsort
SELECT 98 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE + - 50 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT COUNT( * ) AS col1 FROM tab0 WHERE ( + col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6585
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE ( + col2 ) IS NULL
----
0

query I rowsort
SELECT col1 + + - col2 - - col2 AS col1 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6587
SELECT * FROM tab2 WHERE - col2 / - CAST( - col0 AS SIGNED ) * + + ( 38 ) - 93 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6587
SELECT * FROM tab2 WHERE - col2 / - CAST ( - col0 AS INTEGER ) * + + ( 38 ) - 93 IS NULL
----

query I rowsort
SELECT 3 + + 3 - - col0 * 62 + - col0 + + - col0 - - + col2 + - 90 * + + 42 FROM tab1
----
-618
1385
1754

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT DISTINCT 64 + + COUNT( ALL + col0 ) + - COUNT( * ) * + + MAX( + col1 ) / + - 61 FROM tab0 WHERE NOT NULL IN ( + 57 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6589
SELECT DISTINCT 64 + + COUNT ( ALL + col0 ) + - COUNT ( * ) * + + MAX ( + col1 ) / + - 61 FROM tab0 WHERE NOT NULL IN ( + 57 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT ( MAX( DISTINCT + + col1 ) ) * COUNT( * ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-6590
SELECT ( MAX ( DISTINCT + + col1 ) ) * COUNT ( * ) FROM tab1
----
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 * - col1 col1 FROM tab2
----
561
737
847

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 BETWEEN col0 AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + col0 ) col1 FROM tab0 cor0 WHERE - ( - 24 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 AND 59
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - 61 AND + col2 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT DISTINCT + MIN( DISTINCT - 80 ) AS col2 FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-6596
SELECT DISTINCT + MIN ( DISTINCT - 80 ) AS col2 FROM tab0 AS cor0
----
-80

query II rowsort
SELECT ALL col1, col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT ALL + COUNT( DISTINCT - - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6598
SELECT ALL + COUNT ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6599
SELECT COUNT( * ) * + MIN( - + col1 ) AS col1 FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-6599
SELECT COUNT ( * ) * + MIN ( - + col1 ) AS col1 FROM tab1
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6600
SELECT col2 AS col1, col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-6600
SELECT col2 AS col1, col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6601
SELECT ALL + MAX( + - col0 ) + - 35 DIV COUNT( DISTINCT - - 95 ) AS col1 FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-6601
SELECT ALL + MAX ( + - col0 ) + - 35 / COUNT ( DISTINCT - - 95 ) AS col1 FROM tab1
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT DISTINCT COUNT( * ) * COUNT( * ) * - - COUNT( * ) FROM tab2, tab0 AS cor0
----
729

skipif mysql # not compatible
query I rowsort label-6602
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) * - - COUNT ( * ) FROM tab2, tab0 AS cor0
----
729

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6603
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 WHERE ( NULL IS NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6603
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 WHERE ( NULL IS NULL )
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 + + 38 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
61
78
96

query I rowsort
SELECT DISTINCT col2 + col2 + + col1 + + + col1 FROM tab1 AS cor0
----
128
220
230

onlyif mysql # aggregate syntax: 
query I rowsort label-6606
SELECT - - 88 * - MIN( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
7128

skipif mysql # not compatible
query I rowsort label-6606
SELECT - - 88 * - MIN ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
7128

query I rowsort
SELECT DISTINCT + + 83 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
83

query I rowsort
SELECT - 95 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 15 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT ALL - ( + COUNT( * ) ) + + 3 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL - ( + COUNT ( * ) ) + + 3 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 * - 98 * - col0 col1 FROM tab0 AS cor0
----
-545664
-608384
-94080

query I rowsort
SELECT DISTINCT + + col0 + + - col2 + - col0 * col0 FROM tab0 AS cor0
----
-257
-7492
-9411

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6613
SELECT DISTINCT - 7 / - col1 * + - col0 * ( + CAST( NULL AS SIGNED ) ) + + col1 - - col1 + - 13 * + col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6613
SELECT DISTINCT - 7 / - col1 * + - col0 * ( + CAST ( NULL AS INTEGER ) ) + + col1 - - col1 + - 13 * + col1 AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 29 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT ALL + - COUNT( * ) + - COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6615
SELECT ALL + - COUNT ( * ) + - COUNT ( * ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT col0 + 19 + + 9 + - + 96 * 24 FROM tab1 AS cor0 WHERE - 66 IS NULL
----

query I rowsort
SELECT ALL + 10 - + + 81 * col0 AS col0 FROM tab0
----
-1205
-7037
-7847

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6618
SELECT + + 62 AS col0 FROM tab0 WHERE + CAST( - ( + col0 ) AS DECIMAL ) > NULL
----

skipif mysql # not compatible
query I rowsort label-6618
SELECT + + 62 AS col0 FROM tab0 WHERE + CAST ( - ( + col0 ) AS REAL ) > NULL
----

query I rowsort
SELECT DISTINCT - 27 * ( + 40 ) FROM tab2
----
-1080

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT 72 - + + COUNT( * ) AS col2 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-6620
SELECT 72 - + + COUNT ( * ) AS col2 FROM tab1
----
69

query III rowsort
SELECT * FROM tab2 WHERE NULL <= - col1 - + + 58
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 >= NULL
----

query I rowsort
SELECT DISTINCT - 53 + + col1 FROM tab2 AS cor0
----
-2
14
24

query I rowsort
SELECT + - col0 * + + 79 + + + 29 FROM tab1 cor0
----
-4000
-6686
-7160

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 60 IS NULL
----

query I rowsort
SELECT DISTINCT - 90 * - col1 + - - 48 FROM tab1 cor0
----
1308
4278
498

query I rowsort
SELECT DISTINCT + 21 * + 62 FROM tab1 WHERE NULL IS NULL
----
1302

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT + MAX( ALL 47 ) FROM tab2, tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-6628
SELECT + MAX ( ALL 47 ) FROM tab2, tab0 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6629
SELECT 56 AS col1, ( - - COUNT( * ) ) FROM tab1 AS cor0
----
56
3

skipif mysql # not compatible
query II rowsort label-6629
SELECT 56 AS col1, ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
56
3

query II rowsort
SELECT DISTINCT + col2, col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT - MAX( 89 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-6631
SELECT - MAX ( 89 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT ALL + 77 * + COUNT( * ) AS col1 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL + 77 * + COUNT ( * ) AS col1 FROM tab2
----
231

query I rowsort
SELECT + ( + col2 ) + + 76 FROM tab1
----
135
144
172

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT 4 + + 94 + + - COUNT( * ) AS col0 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-6634
SELECT 4 + + 94 + + - COUNT ( * ) AS col0 FROM tab1
----
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6635
SELECT + ( + - CAST( NULL AS SIGNED ) ) + - - COUNT( ALL col2 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6635
SELECT + ( + - CAST ( NULL AS INTEGER ) ) + - - COUNT ( ALL col2 ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * - ( - 86 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 2, - col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6639
SELECT DISTINCT + CAST( + + 90 AS SIGNED ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-6639
SELECT DISTINCT + CAST ( + + 90 AS INTEGER ) FROM tab2
----
90

query I rowsort
SELECT + 62 * - - col0 AS col1 FROM tab1
----
3162
5270
5642

query I rowsort
SELECT - col2 - - - 44 FROM tab2 AS cor0
----
-102
-67
-84

query I rowsort
SELECT ALL + 82 - - 76 AS col1 FROM tab2 AS cor0
----
158
158
158

query I rowsort
SELECT DISTINCT col1 * col1 - + col2 AS col2 FROM tab1
----
-34
100
2141

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col1, 80 * + col2, col2, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6645
SELECT CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6645
SELECT CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 - + + col1 * - col1 AS col2 FROM tab1
----
2277
292
84

query II rowsort
SELECT DISTINCT col2 * - col1 AS col1, + 40 + + - col2 AS col0 FROM tab2
----
-1173
17
-3080
0
-3886
-18

query I rowsort
SELECT DISTINCT + + 14 * - + col2 + + col0 AS col2 FROM tab2 WHERE NOT + - col1 IS NULL
----
-276
-496
-737

query I rowsort
SELECT ALL + col0 * - 30 AS col1 FROM tab0
----
-2610
-2910
-450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6650
SELECT DISTINCT - MAX( ALL - col1 ) * + COUNT( * ) + + CAST( NULL AS SIGNED ) + - + COUNT( * ) * + 27 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6650
SELECT DISTINCT - MAX ( ALL - col1 ) * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + - + COUNT ( * ) * + 27 AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL col2 * 98 * + col1 AS col0 FROM tab0 AS cor0
----
20580
373086
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT SUM( DISTINCT 60 ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-6652
SELECT SUM ( DISTINCT 60 ) FROM tab0
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6653
SELECT DISTINCT 68 * + CAST( NULL AS SIGNED ) * - - 65 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6653
SELECT DISTINCT 68 * + CAST ( NULL AS INTEGER ) * - - 65 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - - 42 col1 FROM tab1
----
-2478
-2856
-4032

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 col1 FROM tab2
----
94
94
94

onlyif mysql # DIV for integer division: 
query I rowsort label-6656
SELECT DISTINCT + col1 DIV - + col2 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-6656
SELECT DISTINCT + col1 / - + col2 FROM tab2
----
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT ALL - SUM( ALL - - 3 ) FROM tab2 AS cor0 WHERE NULL < col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL - SUM ( ALL - - 3 ) FROM tab2 AS cor0 WHERE NULL < col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6658
SELECT DISTINCT CAST( NULL AS SIGNED ) + - MAX( DISTINCT + + col2 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6658
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - MAX ( DISTINCT + + col2 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - 2 + + 23 FROM tab0 cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT - 17 * SUM( 22 ) FROM tab1 AS cor0
----
-1122

skipif mysql # not compatible
query I rowsort label-6660
SELECT - 17 * SUM ( 22 ) FROM tab1 AS cor0
----
-1122

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT + + SUM( - col1 ) * - + 84 AS col0 FROM tab2 AS cor0
----
16380

skipif mysql # not compatible
query I rowsort label-6661
SELECT + + SUM ( - col1 ) * - + 84 AS col0 FROM tab2 AS cor0
----
16380

onlyif mysql # DIV for integer division: 
query I rowsort label-6662
SELECT col2 DIV 92 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6662
SELECT col2 / 92 FROM tab1 AS cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 78 * col2 * 73 col1, + 99 AS col0 FROM tab1 AS cor0
----
335946
99
387192
99
546624
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE col1 / col2 + 49 + + 22 + + col0 * - - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6664
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE col1 / col2 + 49 + + 22 + + col0 * - - col0 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6665
SELECT DISTINCT + col1 DIV + 87 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6665
SELECT DISTINCT + col1 / + 87 FROM tab0
----
0

query II rowsort
SELECT DISTINCT col2 AS col0, 22 FROM tab2
----
23
22
40
22
58
22

query II rowsort
SELECT 20 AS col0, 42 AS col1 FROM tab1
----
20
42
20
42
20
42

query I rowsort
SELECT - col1 FROM tab1 WHERE col1 IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT * FROM tab1 WHERE + - col0 * + - col0 * - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6670
SELECT ALL + col0 * + ( col2 ) + + + 1 + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL + col0 * + ( col2 ) + + + 1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE - col0 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - - col1 + - 7 AS col2 FROM tab2 AS cor0
----
44
60
70

query I rowsort
SELECT ALL col0 - + col0 FROM tab2 AS cor0 WHERE + col1 BETWEEN col0 AND - - ( + + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * - col2 <= NULL
----

query I rowsort
SELECT - col2 + - 88 AS col1 FROM tab1 AS cor0
----
-147
-156
-184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 + - col2 col1 FROM tab1 AS cor0
----
-102
-111
-139

query I rowsort
SELECT col2 + 58 - - - col0 AS col1 FROM tab2 AS cor0
----
34
35
41

query I rowsort
SELECT + 35 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT 67 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT - MIN( ALL + 73 ) AS col1 FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-6680
SELECT - MIN ( ALL + 73 ) AS col1 FROM tab2 AS cor0
----
-73

query I rowsort
SELECT ALL - 58 + + - col1 FROM tab0 AS cor0
----
-139
-59
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-6682
SELECT ALL + col2 - col0 DIV col0 FROM tab1 AS cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-6682
SELECT ALL + col2 - col0 / col0 FROM tab1 AS cor0
----
58
67
95

query I rowsort
SELECT + 9 * + col0 FROM tab0 AS cor0
----
135
783
873

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + + + col1 + - 70 NOT BETWEEN - - 22 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 - + col1 * - + col2 AS col2 FROM tab1 AS cor0
----
1395
3287
380

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT - COUNT( * ) FROM tab1 WHERE NULL <> - col2
----
0

skipif mysql # not compatible
query I rowsort label-6686
SELECT - COUNT ( * ) FROM tab1 WHERE NULL <> - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT ALL - COUNT( * ) * + 76 FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL - COUNT ( * ) * + 76 FROM tab1
----
-228

onlyif mysql # DIV for integer division: 
query I rowsort label-6688
SELECT + - col0 DIV + 59 AS col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6688
SELECT + - col0 / + 59 AS col1 FROM tab2 AS cor0
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6689
SELECT DISTINCT col1 DIV - - ( - - 19 ), + 32 AS col1 FROM tab1 AS cor0
----
0
32
2
32

skipif mysql # not compatible
query II rowsort label-6689
SELECT DISTINCT col1 / - - ( - - 19 ), + 32 AS col1 FROM tab1 AS cor0
----
0
32
2
32

query I rowsort
SELECT - + 9 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT DISTINCT - + COUNT( * ) * - COUNT( * ) col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6691
SELECT DISTINCT - + COUNT ( * ) * - COUNT ( * ) col0 FROM tab2 AS cor0
----
9

query I rowsort
SELECT ALL 95 + + 46 + col2 AS col2 FROM tab2 AS cor0
----
164
181
199

query I rowsort
SELECT + + 84 * col1 + col2 FROM tab2 AS cor0
----
4307
5686
6508

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6694
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT CAST( + 57 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-6694
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT CAST ( + 57 AS INTEGER ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6695
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, - 51 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-6695
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, - 51 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + + col2 * - col1 - + col0 - + + col2 + + - 0 + col1 FROM tab1 AS cor0
----
-1477
-3308
-434

query II rowsort
SELECT DISTINCT + col1 * - + 86 + 99 + - + col1 AS col2, col2 + + col0 - - 34 * + 66 FROM tab0 AS cor0
----
-1728
2341
-6948
2306
12
2440

onlyif mysql # DIV for integer division: 
query I rowsort label-6698
SELECT ALL col0 DIV col2 - - col1 FROM tab2 AS cor0
----
53
68
78

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL col0 / col2 - - col1 FROM tab2 AS cor0
----
53
68
78

query I rowsort
SELECT + col0 * + ( - 95 ) FROM tab0 AS cor0
----
-1425
-8265
-9215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) + + + col2 col0 FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT ALL COUNT( * ) + + - 39 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-6701
SELECT ALL COUNT ( * ) + + - 39 FROM tab2
----
-36

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE - col1 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6703
SELECT 11 * - CAST( + col2 AS SIGNED ) + + col0 AS col2 FROM tab1
----
-1005
-564
-657

skipif mysql # not compatible
query I rowsort label-6703
SELECT 11 * - CAST ( + col2 AS INTEGER ) + + col0 AS col2 FROM tab1
----
-1005
-564
-657

query I rowsort
SELECT - 84 + - + col1 * - col2 FROM tab2
----
1089
2996
3802

query I rowsort
SELECT - 85 * + - ( + col1 ) + - 83 FROM tab1 AS cor0
----
1107
342
3912

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT ALL + + MAX( DISTINCT - col2 ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-6706
SELECT ALL + + MAX ( DISTINCT - col2 ) FROM tab1 cor0
----
-59

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6707
SELECT col1 * - + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6707
SELECT col1 * - + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6708
SELECT DISTINCT 31 DIV + col1 * - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6708
SELECT DISTINCT 31 / + col1 * - col1 FROM tab2
----
0

query I rowsort
SELECT - 15 - + col2 FROM tab2
----
-38
-55
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6710
SELECT COUNT( * ) DIV - COUNT( * ) - - CAST( - + COUNT( * ) AS SIGNED ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-6710
SELECT COUNT ( * ) / - COUNT ( * ) - - CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab0
----
-4

query I rowsort
SELECT ALL + col2 + - + 41 + - - 70 AS col2 FROM tab2
----
52
69
87

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * - col0 IS NOT NULL
----

query I rowsort
SELECT 49 + + + col0 * - - col1 AS col2 FROM tab2 AS cor0
----
2395
4977
5074

onlyif mysql # DIV for integer division: 
query I rowsort label-6714
SELECT + col2 DIV + - 42 + + col1 * - col2 + - ( - col2 ) + 54 FROM tab0 AS cor0
----
-146
-3707
52

skipif mysql # not compatible
query I rowsort label-6714
SELECT + col2 / + - 42 + + col1 * - col2 + - ( - col2 ) + 54 FROM tab0 AS cor0
----
-146
-3707
52

query I rowsort
SELECT ALL + - col1 + - - 86 FROM tab1 AS cor0
----
39
72
81

query I rowsort
SELECT ALL + col1 - + 92 AS col1 FROM tab0 AS cor0
----
-11
-71
-91

query I rowsort
SELECT DISTINCT col0 + + 57 * + + 20 AS col2 FROM tab0 AS cor0
----
1155
1227
1237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 45, col0 + - col2 + + 15 col1 FROM tab0 AS cor0
----
45
-17
45
13
45
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6719
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( col2 AS SIGNED ) <> col2 * + - col0
----

skipif mysql # not compatible
query III rowsort label-6719
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( col2 AS INTEGER ) <> col2 * + - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6720
SELECT + - 69 AS col0, + SUM( + col2 ) FROM tab0 AS cor0
----
-69
156

skipif mysql # not compatible
query II rowsort label-6720
SELECT + - 69 AS col0, + SUM ( + col2 ) FROM tab0 AS cor0
----
-69
156

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT ALL MIN( + 64 ) FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL MIN ( + 64 ) FROM tab1 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT ALL COUNT( * ) * + 1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL COUNT ( * ) * + 1 FROM tab1
----
3

query II rowsort
SELECT ( + + col2 ) AS col2, - col2 AS col1 FROM tab1
----
59
-59
68
-68
96
-96

query III rowsort
SELECT ALL * FROM tab2 WHERE - 82 - - + col0 NOT IN ( + 23 + 63 * - col2 / - col2 * col2 + + + col0 * + col0, + 23 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 * - + col0, col2 AS col0 FROM tab1
----
-2601
96
-7225
59
-8281
68

query I rowsort
SELECT ALL - 56 + + col2 / col1 FROM tab2 WHERE ( + ( col1 ) ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT ALL + + ( 0 ) + - 99 + + + COUNT( * ) + + - COUNT( * ) FROM tab1 WHERE NOT + col1 < col0 + + + 24
----
-99

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL + + ( 0 ) + - 99 + + + COUNT ( * ) + + - COUNT ( * ) FROM tab1 WHERE NOT + col1 < col0 + + + 24
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT DISTINCT - MIN( - 9 ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-6728
SELECT DISTINCT - MIN ( - 9 ) AS col0 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6729
SELECT - 7 * + COUNT( * ) * + - COUNT( * ) FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6729
SELECT - 7 * + COUNT ( * ) * + - COUNT ( * ) FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6730
SELECT ALL + - col0 FROM tab0 WHERE NOT CAST( + - 10 AS SIGNED ) NOT BETWEEN NULL AND - CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL + - col0 FROM tab0 WHERE NOT CAST ( + - 10 AS INTEGER ) NOT BETWEEN NULL AND - CAST ( col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6731
SELECT ALL - COUNT( - 95 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6731
SELECT ALL - COUNT ( - 95 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col1 * + + col0 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT - 92 + - 2 + col1 FROM tab2 cor0
----
-17
-27
-43

query II rowsort
SELECT + col2 - col1 AS col0, col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > + + 24 + + + col2 + - + 69 / - 14
----

query I rowsort
SELECT + - col2 + - col2 - 95 FROM tab0 AS cor0
----
-115
-189
-293

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT ALL 72 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-6736
SELECT ALL 72 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
75

query II rowsort
SELECT col1 + 39 + + + col2 + + - col1 + + + col0 * + col2, col1 FROM tab2 cor0
----
1120
51
2639
77
4447
67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - col0 BETWEEN NULL AND col1 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6739
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) * + + col0 * 71 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6739
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * + + col0 * 71 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6740
SELECT DISTINCT - + col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6740
SELECT DISTINCT - + col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6741
SELECT - 57 * - col2 * - CAST( + + col2 AS SIGNED ) FROM tab2 AS cor0
----
-191748
-30153
-91200

skipif mysql # not compatible
query I rowsort label-6741
SELECT - 57 * - col2 * - CAST ( + + col2 AS INTEGER ) FROM tab2 AS cor0
----
-191748
-30153
-91200

onlyif mysql # DIV for integer division: 
query I rowsort label-6742
SELECT ALL col0 DIV col0 DIV + - 84 * 17 * col2 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-6742
SELECT ALL col0 / col0 / + - 84 * 17 * col2 col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6743
SELECT DISTINCT + MAX( - col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6743
SELECT DISTINCT + MAX ( - col1 ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6744
SELECT + ( + COUNT( * ) ) * + 66 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-6744
SELECT + ( + COUNT ( * ) ) * + 66 FROM tab2
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6745
SELECT - ( - col0 ), - CAST( - 98 AS SIGNED ) col0 FROM tab2
----
46
98
64
98
75
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6745
SELECT - ( - col0 ), - CAST ( - 98 AS INTEGER ) col0 FROM tab2
----
46
98
64
98
75
98

query III rowsort
SELECT * FROM tab1 WHERE + + 93 IS NULL
----

query I rowsort
SELECT ALL 40 * + 69 AS col0 FROM tab0
----
2760
2760
2760

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 BETWEEN NULL AND - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6749
SELECT ALL + + 14 + - + 35 DIV - col0 AS col0 FROM tab1 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL + + 14 + - + 35 / - col0 AS col0 FROM tab1 AS cor0
----
14
14
14

query I rowsort
SELECT + 18 + - - col2 FROM tab1 AS cor0
----
114
77
86

query I rowsort
SELECT + - 49 + - + col2 AS col0 FROM tab0 cor0
----
-148
-59
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6752
SELECT ALL - + col1 * 99 + - 77 - + - CAST( + + col2 AS SIGNED ) FROM tab2 AS cor0
----
-5103
-6652
-7660

skipif mysql # not compatible
query I rowsort label-6752
SELECT ALL - + col1 * 99 + - 77 - + - CAST ( + + col2 AS INTEGER ) FROM tab2 AS cor0
----
-5103
-6652
-7660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + 98 col1 FROM tab0
----
2058
7938
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT MIN( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-6754
SELECT MIN ( DISTINCT + - col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-6755
SELECT 4 DIV 37 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6755
SELECT 4 / 37 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 72 * + col2 AS col2 FROM tab0 AS cor0
----
3384
7128
720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 43 col2 FROM tab0 AS cor0
----
43
43
43

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-6759
SELECT - - 8, ( + + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
8
3

skipif mysql # not compatible
query II rowsort label-6759
SELECT - - 8, ( + + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
8
3

query III rowsort
SELECT ALL * FROM tab1 WHERE 72 <= + col2
----
51
14
96

query I rowsort
SELECT col0 FROM tab1 WHERE NOT NULL = + + ( - - col2 )
----

query II rowsort
SELECT DISTINCT + 38 AS col0, col1 FROM tab0
----
38
1
38
21
38
81

query II rowsort
SELECT DISTINCT 91 AS col0, + 75 AS col2 FROM tab1
----
91
75

query I rowsort
SELECT - - 44 * col2 AS col1 FROM tab0 AS cor0
----
2068
4356
440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6765
SELECT DISTINCT - COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( - + col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6765
SELECT DISTINCT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( - + col1 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6766
SELECT DISTINCT col1 * + 73 - + CAST( - ( col1 ) AS SIGNED ) DIV + col2 AS col0 FROM tab0 AS cor0
----
1535
5914
73

skipif mysql # not compatible
query I rowsort label-6766
SELECT DISTINCT col1 * + 73 - + CAST ( - ( col1 ) AS INTEGER ) / + col2 AS col0 FROM tab0 AS cor0
----
1535
5914
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6767
SELECT - CAST( - 17 AS SIGNED ), 49 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
17
147

skipif mysql # not compatible
query II rowsort label-6767
SELECT - CAST ( - 17 AS INTEGER ), 49 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
17
147

query II rowsort
SELECT ALL + 92, col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col1 * col2 IS NULL
----
92
46
92
64
92
75

query I rowsort
SELECT - ( + col2 ) * - + 32 AS col2 FROM tab1 AS cor0
----
1888
2176
3072

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 + ( - col0 ) + + 78 + 18 + - col2 / - col0 NOT BETWEEN + col1 * + col2 AND - col1 * col1 * + 0 - + 94
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + - 71 ) FROM tab0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6772
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN ( col2 ) AND CAST( + 22 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6772
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN ( col2 ) AND CAST ( + 22 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT DISTINCT + MAX( + col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-6773
SELECT DISTINCT + MAX ( + col1 ) AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL + + ( + col1 ) + - col2 AS col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT 57 + + col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6776
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE ( + col2 * + 29 * + CAST( NULL AS SIGNED ) / 20 * - 36 NOT BETWEEN NULL AND - - 25 + - col2 + - 41 / 13 )
----

skipif mysql # not compatible
query I rowsort label-6776
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE ( + col2 * + 29 * + CAST ( NULL AS INTEGER ) / 20 * - 36 NOT BETWEEN NULL AND - - 25 + - col2 + - 41 / 13 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT DISTINCT - MAX( DISTINCT 13 ) + 35 AS col0 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-6777
SELECT DISTINCT - MAX ( DISTINCT 13 ) + 35 AS col0 FROM tab0 AS cor0
----
22

query I rowsort
SELECT DISTINCT 44 + + - col2 FROM tab0 AS cor0
----
-3
-55
34

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( 19 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 + + ( - 23 ) FROM tab0
----
-13
24
76

query III rowsort
SELECT * FROM tab2 WHERE - col1 BETWEEN NULL AND + ( + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6782
SELECT COUNT( * ) + + - 9 * 54 DIV + 28 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-6782
SELECT COUNT ( * ) + + - 9 * 54 / + 28 FROM tab1
----
-14

query I rowsort
SELECT - col2 + + 29 FROM tab0
----
-18
-70
19

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6784
SELECT + 10 + + - col0 - - 44 AS col1, - col2 * - - 3 + + CAST( NULL AS SIGNED ) FROM tab0
----
-33
NULL
-43
NULL
39
NULL

skipif mysql # not compatible
query II rowsort label-6784
SELECT + 10 + + - col0 - - 44 AS col1, - col2 * - - 3 + + CAST ( NULL AS INTEGER ) FROM tab0
----
-33
NULL
-43
NULL
39
NULL

query II rowsort
SELECT col0, + ( - ( col1 ) ) AS col1 FROM tab2
----
46
-51
64
-77
75
-67

query I rowsort
SELECT DISTINCT + 46 + + 48 FROM tab2 AS cor0
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6787
SELECT ALL + - col0 * col0 - CAST( NULL AS DECIMAL ) * - + col0 / - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL + - col0 * col0 - CAST ( NULL AS REAL ) * - + col0 / - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6788
SELECT + 85 DIV + 76 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6788
SELECT + 85 / + 76 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT + col0 * 7 FROM tab0
----
105
609
679

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6790
SELECT ALL * FROM tab1 WHERE NOT ( NOT col0 * - CAST( - 36 AS SIGNED ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6790
SELECT ALL * FROM tab1 WHERE NOT ( NOT col0 * - CAST ( - 36 AS INTEGER ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + AVG ( ALL + col1 ) FROM tab0 AS cor0 WHERE NOT + 30 * - 87 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6792
SELECT DISTINCT col2 DIV + + col2 AS col2, + 43 FROM tab1 cor0
----
1
43

skipif mysql # not compatible
query II rowsort label-6792
SELECT DISTINCT col2 / + + col2 AS col2, + 43 FROM tab1 cor0
----
1
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT DISTINCT SUM( ALL + 95 ) AS col0 FROM tab1 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-6793
SELECT DISTINCT SUM ( ALL + 95 ) AS col0 FROM tab1 AS cor0
----
285

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + + col1 IS NOT NULL
----

query II rowsort
SELECT ALL col1 * col0 AS col1, 19 AS col0 FROM tab0 cor0
----
1215
19
1827
19
97
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6796
SELECT DISTINCT + + AVG ( - - col0 ) - - - CAST( NULL AS SIGNED ) FROM tab2 WHERE col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6796
SELECT DISTINCT + + AVG ( - - col0 ) - - - CAST ( NULL AS INTEGER ) FROM tab2 WHERE col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6797
SELECT ALL MIN( DISTINCT + - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6797
SELECT ALL MIN ( DISTINCT + - col2 ) FROM tab0
----
-99

query I rowsort
SELECT ALL + ( + 79 ) AS col2 FROM tab0
----
79
79
79

query I rowsort
SELECT + + 13 * - col2 * + 64 AS col0 FROM tab1 AS cor0
----
-49088
-56576
-79872

query I rowsort
SELECT ( - 30 ) * 67 AS col2 FROM tab0 AS cor0
----
-2010
-2010
-2010

onlyif mysql # aggregate syntax: 
query I rowsort label-6801
SELECT + COUNT( ALL col2 ) + - + 13 FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6801
SELECT + COUNT ( ALL col2 ) + - + 13 FROM tab2 AS cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + 49 ) col2 FROM tab0 AS cor0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6803
SELECT - ( - + 77 ), + AVG ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
77
NULL

skipif mysql # not compatible
query II rowsort label-6803
SELECT - ( - + 77 ), + AVG ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT ALL 13 + SUM( DISTINCT 87 ) FROM tab1 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-6804
SELECT ALL 13 + SUM ( DISTINCT 87 ) FROM tab1 AS cor0
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6805
SELECT ( - + 42 ) * 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-6805
SELECT ( - + 42 ) * CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT DISTINCT - 99 - + COUNT( * ) * 63 AS col2 FROM tab0 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT - 99 - + COUNT ( * ) * 63 AS col2 FROM tab0 AS cor0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT - - COUNT( + col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6807
SELECT - - COUNT ( + col0 ) FROM tab2 cor0
----
3

query I rowsort
SELECT col0 * + 97 * - col2 + col0 FROM tab2 AS cor0
----
-102580
-248256
-421875

query II rowsort
SELECT - col0, + col1 AS col2 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT DISTINCT ( col2 ) - - col2 FROM tab1
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6811
SELECT DISTINCT - col1 * ( + + CAST( 28 AS SIGNED ) ) AS col0 FROM tab0
----
-2268
-28
-588

skipif mysql # not compatible
query I rowsort label-6811
SELECT DISTINCT - col1 * ( + + CAST ( 28 AS INTEGER ) ) AS col0 FROM tab0
----
-2268
-28
-588

query I rowsort
SELECT ALL 1 * - col1 AS col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL col2 + + col0 - + 33 AS col2 FROM tab1
----
111
114
126

query I rowsort
SELECT ALL + 69 * - col0 FROM tab2
----
-3174
-4416
-5175

query I rowsort
SELECT col1 * col1 + - - col0 FROM tab0 AS cor0
----
528
6576
98

query I rowsort
SELECT - + 55 + + col0 FROM tab2 AS cor0
----
-9
20
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT DISTINCT - MAX( - col2 ) + COUNT( * ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-6817
SELECT DISTINCT - MAX ( - col2 ) + COUNT ( * ) FROM tab2 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 * + + 51 <= - col0 + - - col0 * - col1
----
3

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 * + + 51 <= - col0 + - - col0 * - col1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-6819
SELECT - - 86 + + COUNT( * ), COUNT( * ) AS col2 FROM tab0 cor0
----
89
3

skipif mysql # not compatible
query II rowsort label-6819
SELECT - - 86 + + COUNT ( * ), COUNT ( * ) AS col2 FROM tab0 cor0
----
89
3

query I rowsort
SELECT ALL 45 * - ( + col0 ) FROM tab1 AS cor0
----
-2295
-3825
-4095

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT DISTINCT + + COUNT( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT + - 83 + + + 53 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT ( + col1 ) * + col1 * 52 FROM tab2
----
135252
233428
308308

onlyif mysql # DIV for integer division: 
query I rowsort label-6824
SELECT ALL col1 DIV - + 55 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6824
SELECT ALL col1 / - + 55 AS col2 FROM tab0 AS cor0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( col1, col2, + 92 / + + ( - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 64 * + 43 AS col1 FROM tab1 AS cor0
----
-2752
-2752
-2752

onlyif mysql # DIV for integer division: 
query I rowsort label-6827
SELECT - 4 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6827
SELECT - 4 / - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6828
SELECT ALL + COUNT( DISTINCT - 94 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL + COUNT ( DISTINCT - 94 ) FROM tab0 AS cor0
----
1

query II rowsort
SELECT + col1 AS col1, ( col2 ) + col0 - + - 78 FROM tab1 AS cor0
----
14
225
47
237
5
222

query I rowsort
SELECT ALL - + 87 * + + 82 AS col0 FROM tab2 AS cor0
----
-7134
-7134
-7134

onlyif mysql # DIV for integer division: 
query I rowsort label-6831
SELECT 46 DIV + + ( + + 70 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6831
SELECT 46 / + + ( + + 70 ) FROM tab2
----
0
0
0

query I rowsort
SELECT - col1 FROM tab2 WHERE ( NULL ) IS NULL OR NOT - col1 - - col0 * + col2 NOT BETWEEN NULL AND NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT DISTINCT - ( + MAX( + col0 ) ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-6833
SELECT DISTINCT - ( + MAX ( + col0 ) ) FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6834
SELECT DISTINCT + + col1 AS col2 FROM tab1 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT + + col1 AS col2 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
14
47
5

query II rowsort
SELECT ALL - + col2 + + col0, + col1 AS col2 FROM tab0 AS cor0
----
-2
1
-32
81
77
21

query II rowsort
SELECT - + col0 + - - col2 AS col0, col0 AS col2 FROM tab0 AS cor0
----
-77
87
2
97
32
15

query I rowsort
SELECT DISTINCT + ( col1 ) + col1 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT ALL + col2 + + + 89 FROM tab1 cor0
----
148
157
185

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 34 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6840
SELECT ALL col2 DIV + - col0 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6840
SELECT ALL col2 / + - col0 AS col1 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6841
SELECT DISTINCT CAST( NULL AS SIGNED ) + - ( + COUNT( * ) ) + 21 + - - 44 * + SUM( ALL + - col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6841
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - ( + COUNT ( * ) ) + 21 + - - 44 * + SUM ( ALL + - col2 ) FROM tab2
----
NULL

query I rowsort
SELECT col1 + - col2 + + + col2 AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT ALL - 51 + - COUNT( * ) col0 FROM tab0 cor0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6843
SELECT ALL - 51 + - COUNT ( * ) col0 FROM tab0 cor0
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 + col0 col0 FROM tab1 AS cor0 WHERE col2 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 70 NOT BETWEEN + ( + col1 ) * + col1 + + col1 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 35 - col0 FROM tab0
----
-122
-132
-50

query I rowsort
SELECT + 6 FROM tab0 WHERE + col1 IS NULL
----

query I rowsort
SELECT - col0 * + - 76 * + col1 FROM tab1
----
32300
325052
54264

query III rowsort
SELECT * FROM tab1 WHERE col2 + - 53 IN ( col1, + 95 )
----

query II rowsort
SELECT + col2 AS col2, 68 FROM tab0
----
10
68
47
68
99
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6851
SELECT 38, - CAST( + 41 AS SIGNED ) + - col0 col1 FROM tab2
----
38
-105
38
-116
38
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6851
SELECT 38, - CAST ( + 41 AS INTEGER ) + - col0 col1 FROM tab2
----
38
-105
38
-116
38
-87

query I rowsort
SELECT DISTINCT + 8 - + ( - 86 ) FROM tab1
----
94

query I rowsort
SELECT DISTINCT - col0 + col2 * + col0 + 86 AS col2 FROM tab0
----
776
869
9592

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6854
SELECT ALL - COUNT( * ) AS col1, 6 + + + 15 / CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-6854
SELECT ALL - COUNT ( * ) AS col1, 6 + + + 15 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6855
SELECT ALL + MIN( 90 ) + - COUNT( * ) AS col1 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-6855
SELECT ALL + MIN ( 90 ) + - COUNT ( * ) AS col1 FROM tab2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT + ( - COUNT( ALL + + col2 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6856
SELECT + ( - COUNT ( ALL + + col2 ) ) FROM tab2
----
-3

query II rowsort
SELECT DISTINCT col1, 26 AS col0 FROM tab2
----
51
26
67
26
77
26

query I rowsort
SELECT - - ( + 64 ) FROM tab0 AS cor0
----
64
64
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 > + col2 * col2 - col1 + col0 / 1 * 63 - - col1 + + 27 + + - col1 * col2 / + 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT DISTINCT 54 * + COUNT( + 16 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT 54 * + COUNT ( + 16 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT ALL + 48 AS col1, 85 FROM tab2 AS cor0
----
48
85
48
85
48
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6862
SELECT - + COUNT( * ) DIV + + COUNT( * ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6862
SELECT - + COUNT ( * ) / + + COUNT ( * ) FROM tab1 cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6863
SELECT DISTINCT col0 AS col1, - CAST( col0 AS SIGNED ) FROM tab1 cor0
----
51
-51
85
-85
91
-91

skipif mysql # not compatible
query II rowsort label-6863
SELECT DISTINCT col0 AS col1, - CAST ( col0 AS INTEGER ) FROM tab1 cor0
----
51
-51
85
-85
91
-91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( + + ( + 83 ) ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + ( - - col2 ) AS col0, - col1 AS col1 FROM tab1
----
59
-5
68
-47
96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT DISTINCT - COUNT( col1 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6866
SELECT DISTINCT - COUNT ( col1 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT + + col1 FROM tab1 WHERE NOT - - col2 + + - ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL 92 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # aggregate syntax: 
query II rowsort label-6869
SELECT ALL - - 38 * + 0, MAX( 40 ) col0 FROM tab0 AS cor0
----
0
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6869
SELECT ALL - - 38 * + 0, MAX ( 40 ) col0 FROM tab0 AS cor0
----
0
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 44 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6871
SELECT ( - CAST( NULL AS SIGNED ) ) * - 56 + ( - - col1 ) 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-6871
SELECT ( - CAST ( NULL AS INTEGER ) ) * - 56 + ( - - col1 ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - + 13 * - col0 AS col1, 74 FROM tab0 AS cor0
----
1131
74
1261
74
195
74

onlyif mysql # DIV for integer division: 
query I rowsort label-6873
SELECT ALL - 2 DIV - 80 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6873
SELECT ALL - 2 / - 80 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6874
SELECT col2 AS col0, CAST( - - col0 AS SIGNED ) AS col1 FROM tab2
----
23
46
40
64
58
75

skipif mysql # not compatible
query II rowsort label-6874
SELECT col2 AS col0, CAST ( - - col0 AS INTEGER ) AS col1 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6875
SELECT + 35 DIV - col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6875
SELECT + 35 / - col0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6876
SELECT - MIN( ALL - 71 ) AS col2 FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-6876
SELECT - MIN ( ALL - 71 ) AS col2 FROM tab1
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6877
SELECT DISTINCT + 8 DIV COUNT( * ) AS col2 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT + 8 / COUNT ( * ) AS col2 FROM tab1
----
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6878
SELECT ALL COUNT( * ) DIV SUM( ALL + col2 ) + MAX( ALL + 85 ) FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL COUNT ( * ) / SUM ( ALL + col2 ) + MAX ( ALL + 85 ) FROM tab2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + col0 <= - + ( - 37 )
----
-2

skipif mysql # not compatible
query I rowsort label-6879
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + col0 <= - + ( - 37 )
----
-2

query I rowsort
SELECT ALL - 14 + 87 AS col1 FROM tab0 AS cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT ALL MAX( col0 ) + + MIN( col1 ) AS col0 FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-6881
SELECT ALL MAX ( col0 ) + + MIN ( col1 ) AS col0 FROM tab2 AS cor0
----
126

query I rowsort
SELECT ALL - - col2 * + 26 - + - col2 AS col1 FROM tab1 AS cor0
----
1593
1836
2592

query I rowsort
SELECT ALL col2 * + 6 FROM tab1 AS cor0
----
354
408
576

query III rowsort
SELECT * FROM tab2 WHERE - 1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NULL IN ( - 91 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT + MAX( + col2 ) * MIN( DISTINCT col1 * - 39 ) AS col2 FROM tab1
----
-175968

skipif mysql # not compatible
query I rowsort label-6886
SELECT + MAX ( + col2 ) * MIN ( DISTINCT col1 * - 39 ) AS col2 FROM tab1
----
-175968

query I rowsort
SELECT + col2 * + 62 AS col2 FROM tab2
----
1426
2480
3596

query III rowsort
SELECT ALL * FROM tab2 WHERE + 34 NOT IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * 47 + 5 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 19 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT - 22 * ( 55 ) + COUNT( * ) AS col2 FROM tab0
----
-1207

skipif mysql # not compatible
query I rowsort label-6891
SELECT - 22 * ( 55 ) + COUNT ( * ) AS col2 FROM tab0
----
-1207

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( + col1 + + 48 * col2 ) = + 3
----
14
47
5

query I rowsort
SELECT ALL col1 / ( col1 ) - + 84 FROM tab2 WHERE NOT ( + col0 * col0 ) NOT BETWEEN - 51 AND - col2 + + col2
----

query I rowsort
SELECT col2 + + 8 * 47 FROM tab2
----
399
416
434

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6895
SELECT DISTINCT 66 col1 FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) ) NOT BETWEEN ( NULL ) AND ( col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6895
SELECT DISTINCT 66 col1 FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) ) NOT BETWEEN ( NULL ) AND ( col1 )
----

query I rowsort
SELECT DISTINCT 27 * ( 91 ) AS col2 FROM tab2 WHERE NOT - col0 + 13 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + col1 * col2 + 75 AS col2 FROM tab0
----
174
285
3882

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * 54 IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 * 32 AS col0 FROM tab1
----
1504
160
448

query I rowsort
SELECT DISTINCT - 94 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6901
SELECT ALL + CAST( NULL AS SIGNED ) / + 45 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6901
SELECT ALL + CAST ( NULL AS INTEGER ) / + 45 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - 62 - 3 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6903
SELECT DISTINCT + 24 * + COUNT( * ) AS col1 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-6903
SELECT DISTINCT + 24 * + COUNT ( * ) AS col1 FROM tab0
----
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6904
SELECT + 93 DIV col2 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-6904
SELECT + 93 / col2 FROM tab2
----
1
2
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6905
SELECT col1 - + CAST( ( - col2 ) AS SIGNED ) FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-6905
SELECT col1 - + CAST ( ( - col2 ) AS INTEGER ) FROM tab2
----
117
125
74

query I rowsort
SELECT ALL + 32 + 62 AS col1 FROM tab1
----
94
94
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6907
SELECT col1 / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6907
SELECT col1 / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT + COUNT( * ) * + 78 - MIN( DISTINCT + 93 ) FROM tab2 WHERE + 27 * - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6908
SELECT + COUNT ( * ) * + 78 - MIN ( DISTINCT + 93 ) FROM tab2 WHERE + 27 * - col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 + - 78 * + 77 FROM tab1
----
-5959
-5992
-6001

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 WHERE 39 NOT IN ( col1 )
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6911
SELECT DISTINCT + 73 DIV ( - col1 * - 65 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT + 73 / ( - col1 * - 65 ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE - 64 + + 40 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT DISTINCT COUNT( * ) + COUNT( DISTINCT 35 ) * + 37 AS col2 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-6913
SELECT DISTINCT COUNT ( * ) + COUNT ( DISTINCT 35 ) * + 37 AS col2 FROM tab2
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-6914
SELECT - col0 DIV + 65 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6914
SELECT - col0 / + 65 FROM tab1
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6915
SELECT + col2 DIV ( col1 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6915
SELECT + col2 / ( col1 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - col0 * + 86 FROM tab1
----
-4386
-7310
-7826

onlyif mysql # DIV for integer division: 
query I rowsort label-6917
SELECT + col2 * - col1 + - col2 DIV col2 FROM tab2
----
-1174
-3081
-3887

skipif mysql # not compatible
query I rowsort label-6917
SELECT + col2 * - col1 + - col2 / col2 FROM tab2
----
-1174
-3081
-3887

query I rowsort
SELECT + 47 * + col2 + + 38 AS col0 FROM tab2
----
1119
1918
2764

query I rowsort
SELECT ALL + ( 34 ) AS col2 FROM tab0
----
34
34
34

onlyif mysql # DIV for integer division: 
query I rowsort label-6920
SELECT col0 DIV + 53 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6920
SELECT col0 / + 53 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6921
SELECT 96 DIV - 33 AS col1 FROM tab2 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-6921
SELECT 96 / - 33 AS col1 FROM tab2 AS cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6922
SELECT col2 + col0 FROM tab0 AS cor0 WHERE NOT - col2 = CAST( NULL AS SIGNED ) * col0 - + col0
----

skipif mysql # not compatible
query I rowsort label-6922
SELECT col2 + col0 FROM tab0 AS cor0 WHERE NOT - col2 = CAST ( NULL AS INTEGER ) * col0 - + col0
----

query I rowsort
SELECT 7 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
7
7
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6924
SELECT COUNT( - CAST( NULL AS SIGNED ) ) + COUNT( * ) * 90 FROM tab1 AS cor0 WHERE NOT ( - 87 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6924
SELECT COUNT ( - CAST ( NULL AS INTEGER ) ) + COUNT ( * ) * 90 FROM tab1 AS cor0 WHERE NOT ( - 87 ) IS NOT NULL
----
0

query I rowsort
SELECT 88 * 28 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 7d3bf0b706033ab10b22f7bd582ec3ad

query III rowsort
SELECT ALL * FROM tab1 WHERE + 89 + col1 IN ( + col0 / + col0 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE col0 + - col1 IN ( + 31 * + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 NOT IN ( - col1 * + 32 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT 20 + + COUNT( 10 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
29

skipif mysql # not compatible
query I rowsort label-6929
SELECT 20 + + COUNT ( 10 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1
----
29

query I rowsort
SELECT 44 * - col0 AS col0 FROM tab1 AS cor0
----
-2244
-3740
-4004

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT ALL - ( COUNT( DISTINCT - 8 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6931
SELECT ALL - ( COUNT ( DISTINCT - 8 ) ) FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6932
SELECT ALL 33 + 2 DIV col1 FROM tab2 AS cor0 WHERE NOT ( - 29 ) IS NULL
----
33
33
33

skipif mysql # not compatible
query I rowsort label-6932
SELECT ALL 33 + 2 / col1 FROM tab2 AS cor0 WHERE NOT ( - 29 ) IS NULL
----
33
33
33

query I rowsort
SELECT DISTINCT + col2 * 95 AS col1 FROM tab2 AS cor0
----
2185
3800
5510

query I rowsort
SELECT + col2 + + col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
116
46
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6935
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 * CAST( NULL AS SIGNED ) NOT BETWEEN + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6935
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 * CAST ( NULL AS INTEGER ) NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 + col2 AS col1 FROM tab2 WHERE NOT ( - ( + col1 ) ) <= ( NULL ) OR col0 * 18 NOT IN ( col0 )
----
117
125
74

query I rowsort
SELECT col1 / + col1 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 * + col1 = ( - 25 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * - col1 + 89 AS col2 FROM tab2
----
-1084
-2991
-3797

query I rowsort
SELECT - col2 * + col0 + ( - col2 ) AS col0 FROM tab1
----
-4992
-5074
-6256

query I rowsort
SELECT + col1 + + col1 + + 47 * + col1 AS col1 FROM tab0
----
1029
3969
49

query I rowsort
SELECT + 51 + + - 29 * 17 AS col0 FROM tab2
----
-442
-442
-442

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE col1 IS NULL
----

query I rowsort
SELECT + - col1 + - - col0 + + 21 FROM tab1 AS cor0
----
101
58
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT 73 + + COUNT( * ) FROM tab2 AS cor0 WHERE - col0 BETWEEN + 45 / + col1 AND NULL
----
73

skipif mysql # not compatible
query I rowsort label-6945
SELECT 73 + + COUNT ( * ) FROM tab2 AS cor0 WHERE - col0 BETWEEN + 45 / + col1 AND NULL
----
73

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> - ( col2 ) / 12 + + col1
----

query I rowsort
SELECT 39 / + 81 FROM tab0 AS cor0 WHERE 89 IS NULL
----

query I rowsort
SELECT ALL 4 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT DISTINCT + 63 * + 19 FROM tab0
----
1197

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT MAX( ALL - 58 ) - + 96 AS col2 FROM tab2
----
-154

skipif mysql # not compatible
query I rowsort label-6950
SELECT MAX ( ALL - 58 ) - + 96 AS col2 FROM tab2
----
-154

query I rowsort
SELECT ALL - col0 + + col1 + - - 57 * - col0 FROM tab0 AS cor0
----
-5025
-5625
-789

onlyif mysql # DIV for integer division: 
query I rowsort label-6952
SELECT DISTINCT + col0 DIV + - col0 + - 34 * col0 AS col1 FROM tab2 AS cor0
----
-1565
-2177
-2551

skipif mysql # not compatible
query I rowsort label-6952
SELECT DISTINCT + col0 / + - col0 + - 34 * col0 AS col1 FROM tab2 AS cor0
----
-1565
-2177
-2551

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 32 * + col2 / 51 - 71 = col2 / - col0 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT ALL + + MAX( DISTINCT - - col1 ) + SUM( DISTINCT + col2 ) + 73 FROM tab0 cor0
----
310

skipif mysql # not compatible
query I rowsort label-6954
SELECT ALL + + MAX ( DISTINCT - - col1 ) + SUM ( DISTINCT + col2 ) + 73 FROM tab0 cor0
----
310

query I rowsort
SELECT 87 AS col1 FROM tab0 cor0 WHERE + col2 + col0 * 55 > ( col2 / 36 )
----
87
87
87

query I rowsort
SELECT 60 + col1 AS col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT ALL - COUNT( * ) * - COUNT( * ) + + + 24 - COUNT( + ( col0 ) - col2 * col0 ) FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL - COUNT ( * ) * - COUNT ( * ) + + + 24 - COUNT ( + ( col0 ) - col2 * col0 ) FROM tab1 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT 11 * + COUNT( + + 99 ) AS col1 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-6959
SELECT 11 * + COUNT ( + + 99 ) AS col1 FROM tab0
----
33

query I rowsort
SELECT DISTINCT col0 * - + col0 FROM tab1
----
-2601
-7225
-8281

query I rowsort
SELECT ALL - 85 * - col1 FROM tab0
----
1785
6885
85

query II rowsort
SELECT - col0 * + + col2, col1 - - + col1 AS col2 FROM tab2
----
-1058
102
-2560
154
-4350
134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6963
SELECT DISTINCT + CAST( - col0 AS SIGNED ) * + col2 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) * + col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT + ( + COUNT( * ) ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6964
SELECT + ( + COUNT ( * ) ) col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT + COUNT( ALL + 0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6965
SELECT + COUNT ( ALL + 0 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT ( - col2 ) NOT IN ( 72 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6967
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + CAST( NULL AS SIGNED ) * + + 62 - - col0 )
----

skipif mysql # not compatible
query III rowsort label-6967
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + CAST ( NULL AS INTEGER ) * + + 62 - - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 60 ) IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6969
SELECT DISTINCT + + MAX( DISTINCT - ( 8 ) ) AS col1 FROM tab0 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-6969
SELECT DISTINCT + + MAX ( DISTINCT - ( 8 ) ) AS col1 FROM tab0 cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT DISTINCT + SUM( + col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6970
SELECT DISTINCT + SUM ( + col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT + col2 IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-6971
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT + col2 IS NOT NULL )
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6972
SELECT 13 DIV - col1 FROM tab1
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-6972
SELECT 13 / - col1 FROM tab1
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col0 ) col1 FROM tab0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 col2 FROM tab2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT COUNT( ALL - - 55 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6975
SELECT COUNT ( ALL - - 55 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col1 / - col1 + - 92 * ( + col1 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 + - 69 FROM tab2 AS cor0
----
-23
-5
6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT - col0 * + + 7 AS col0 FROM tab1 AS cor0
----
-357
-595
-637

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT + - 10 * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-6980
SELECT + - 10 * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6981
SELECT COUNT( * ) * + MIN( + + col1 ) col2 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6981
SELECT COUNT ( * ) * + MIN ( + + col1 ) col2 FROM tab1 AS cor0
----
15

query II rowsort
SELECT DISTINCT 31, + col1 - + col0 AS col0 FROM tab1
----
31
-37
31
-44
31
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + 94 ) col0, col0 AS col1 FROM tab0
----
-94
15
-94
87
-94
97

query I rowsort
SELECT - 42 + - 35 + 46 * 66 FROM tab2, tab0 AS cor0 WHERE + + 99 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT ( + + COUNT( DISTINCT ( - col1 ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6985
SELECT ( + + COUNT ( DISTINCT ( - col1 ) ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6986
SELECT DISTINCT CAST( NULL AS SIGNED ) col0, col1 * col0 + + 97 AS col1 FROM tab2
----
NULL
2443
NULL
5025
NULL
5122

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6986
SELECT DISTINCT CAST ( NULL AS INTEGER ) col0, col1 * col0 + + 97 AS col1 FROM tab2
----
NULL
2443
NULL
5025
NULL
5122

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6987
SELECT CAST( + CAST( + 30 AS SIGNED ) AS SIGNED ) * - col2 * col2 + - col0 + - 84 FROM tab2 AS cor0
----
-101079
-16000
-48148

skipif mysql # not compatible
query I rowsort label-6987
SELECT CAST ( + CAST ( + 30 AS INTEGER ) AS INTEGER ) * - col2 * col2 + - col0 + - 84 FROM tab2 AS cor0
----
-101079
-16000
-48148

onlyif mysql # aggregate syntax: 
query I rowsort label-6988
SELECT ALL 64 + - + MIN( - 90 ) FROM tab1 AS cor0
----
154

skipif mysql # not compatible
query I rowsort label-6988
SELECT ALL 64 + - + MIN ( - 90 ) FROM tab1 AS cor0
----
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - col0 col1 FROM tab0
----
108
96
98

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 33 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 30 * col2 * - + 50 * + col2 AS col2 FROM tab1 AS cor0
----
-13824000
-5221500
-6936000

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 AS cor0 WHERE 83 * + 25 IS NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT + 20 IS NOT NULL )
----

query II rowsort
SELECT ALL + col1 + - - col1, - col0 * + col1 AS col1 FROM tab0 AS cor0
----
162
-1215
2
-97
42
-1827

query I rowsort
SELECT ALL col1 + + ( - col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NOT NULL NOT IN ( col1 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6997
SELECT ALL - - ( + col1 ) col2, CAST( NULL AS SIGNED ) 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-6997
SELECT ALL - - ( + col1 ) col2, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col1 + - col2 * - 62 col0 FROM tab0 AS cor0
----
-1207
1699
6041

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6999
SELECT CAST( - 85 AS SIGNED ) AS col0 FROM tab0
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-6999
SELECT CAST ( - 85 AS INTEGER ) AS col0 FROM tab0
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7000
SELECT DISTINCT COUNT( * ) * + + 63 AS col0 FROM tab0
----
189

skipif mysql # not compatible
query I rowsort label-7000
SELECT DISTINCT COUNT ( * ) * + + 63 AS col0 FROM tab0
----
189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7001
SELECT ALL - COUNT( * ) DIV + + 8 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7001
SELECT ALL - COUNT ( * ) / + + 8 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7002
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE - ( - col1 ) BETWEEN ( NULL ) AND - col0 * - - col1 - col2
----

skipif mysql # not compatible
query I rowsort label-7002
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE - ( - col1 ) BETWEEN ( NULL ) AND - col0 * - - col1 - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 42 * col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query III rowsort label-7004
SELECT DISTINCT 74 col1, + COUNT( * ) * + 26 * + - 28 AS col2, + COUNT( * ) AS col0 FROM tab1
----
74
-2184
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-7004
SELECT DISTINCT 74 col1, + COUNT ( * ) * + 26 * + - 28 AS col2, + COUNT ( * ) AS col0 FROM tab1
----
74
-2184
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 19 col0 FROM tab0
----
-19
-19
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 73 col2 FROM tab2
----
3358
4672
5475

query I rowsort
SELECT DISTINCT - - 75 AS col2 FROM tab2 AS cor0
----
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 < NULL
----

query I rowsort
SELECT + + 81 * - - 75 FROM tab0 AS cor0
----
6075
6075
6075

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7010
SELECT ALL - col1 col1, col2 + CAST( NULL AS DECIMAL ) AS 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-7010
SELECT ALL - col1 col1, col2 + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7011
SELECT DISTINCT 84, COUNT( * ) col1 FROM tab2 AS cor0
----
84
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7011
SELECT DISTINCT 84, COUNT ( * ) col1 FROM tab2 AS cor0
----
84
3

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( ( NULL ) IS NULL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT ALL - 32 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) BETWEEN - ( - + 17 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL - 32 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) BETWEEN - ( - + 17 ) AND NULL
----
0

query I rowsort
SELECT - col2 * - + 50 FROM tab1
----
2950
3400
4800

query III rowsort
SELECT * FROM tab1 WHERE NOT 51 - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT ALL 60 + COUNT( * ) FROM tab1, tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-7016
SELECT ALL 60 + COUNT ( * ) FROM tab1, tab0 AS cor0
----
69

query I rowsort
SELECT ALL - col2 + - col1 + + col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - - ( - - col1 ) + - - col1 AS col1 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7019
SELECT ALL - COUNT( * ) / - + 45 + + CAST( NULL AS DECIMAL ) / COUNT( * ) * - + COUNT( * ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7019
SELECT ALL - COUNT ( * ) / - + 45 + + CAST ( NULL AS REAL ) / COUNT ( * ) * - + COUNT ( * ) col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7020
SELECT ALL 68 col2, CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
68
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7020
SELECT ALL 68 col2, CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
68
-3

query I rowsort
SELECT + col0 * + - col1 * 18 + 50 AS col1 FROM tab0
----
-1696
-21820
-32836

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT COUNT( * ) + + - 15 * COUNT( * ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-7022
SELECT COUNT ( * ) + + - 15 * COUNT ( * ) FROM tab0
----
-42

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - ( - col0 ) - - col1 AND + col2
----

query I rowsort
SELECT - col0 + + 56 + - col0 * col1 FROM tab1
----
-4312
-454
-709

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 91 * col0 col2 FROM tab0
----
1365
7917
8827

query I rowsort
SELECT + ( + - 88 ) AS col1 FROM tab2
----
-88
-88
-88

query II rowsort
SELECT DISTINCT 92 + + ( + col1 ) AS col2, + 2 FROM tab1
----
106
2
139
2
97
2

query I rowsort
SELECT DISTINCT - col2 + + - 40 FROM tab1 AS cor0
----
-108
-136
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( + 52 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7029
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( + 52 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT DISTINCT + COUNT( * ) + + - 52 FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-7030
SELECT DISTINCT + COUNT ( * ) + + - 52 FROM tab1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7031
SELECT col1 / + col2 * col2 AS col0 FROM tab1 WHERE ( CAST( col1 AS SIGNED ) * col2 ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-7031
SELECT col1 / + col2 * col2 AS col0 FROM tab1 WHERE ( CAST ( col1 AS INTEGER ) * col2 ) <> NULL
----

query I rowsort
SELECT 14 + + + col2 + - + col1 AS col2 FROM tab0
----
-20
112
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7033
SELECT ALL - col2 * - - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL - col2 * - - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - ( + col0 ) ) * col1 - + col1 col2 FROM tab1
----
-430
-4324
-728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col2 * - + col0 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT DISTINCT + - MAX( - 81 ) AS col1 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7036
SELECT DISTINCT + - MAX ( - 81 ) AS col1 FROM tab2 AS cor0
----
81

query I rowsort
SELECT - 20 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col2 AS col2, col2 + + + col2 AS col2 FROM tab0 AS cor0
----
10
20
47
94
99
198

onlyif mysql # aggregate syntax: 
query I rowsort label-7039
SELECT + 88 * + COUNT( * ) + - + SUM( DISTINCT - col2 ) FROM tab1 AS cor0
----
487

skipif mysql # not compatible
query I rowsort label-7039
SELECT + 88 * + COUNT ( * ) + - + SUM ( DISTINCT - col2 ) FROM tab1 AS cor0
----
487

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

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 DISTINCT + 63 * - 8 col0, + col1 * + + 7 + + col2 * - + col0 * ( - col2 ) AS col2 FROM tab2
----
-504
102939
-504
24691
-504
252769

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7043
SELECT DISTINCT - 58 DIV CAST( - + MIN( + col0 ) AS SIGNED ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7043
SELECT DISTINCT - 58 / CAST ( - + MIN ( + col0 ) AS INTEGER ) FROM tab1
----
1

query I rowsort
SELECT 19 * col0 FROM tab0
----
1653
1843
285

onlyif mysql # DIV for integer division: 
query I rowsort label-7045
SELECT DISTINCT 64 DIV - col1 AS col2 FROM tab0
----
-3
-64
0

skipif mysql # not compatible
query I rowsort label-7045
SELECT DISTINCT 64 / - col1 AS col2 FROM tab0
----
-3
-64
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7046
SELECT - CAST( - - col2 AS SIGNED ) + + 70 AS col1 FROM tab0 WHERE NOT + - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7046
SELECT - CAST ( - - col2 AS INTEGER ) + + 70 AS col1 FROM tab0 WHERE NOT + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - ( + + 85 ) ) FROM tab1
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-7048
SELECT - + col1 DIV - col1 - - + col2 DIV + col1 col2 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7048
SELECT - + col1 / - col1 - - + col2 / + col1 col2 FROM tab2 cor0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7049
SELECT COUNT( * ) + 63 DIV + 71 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7049
SELECT COUNT ( * ) + 63 / + 71 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT ALL - 63 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT ALL - - 79 FROM tab1 AS cor0 WHERE ( - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT + - 87 + + col2 FROM tab1 AS cor0
----
-19
-28
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT - COUNT( * ) FROM tab2 cor0 WHERE + col0 + 31 = col2
----
0

skipif mysql # not compatible
query I rowsort label-7053
SELECT - COUNT ( * ) FROM tab2 cor0 WHERE + col0 + 31 = col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7054
SELECT - 4 * - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7054
SELECT - 4 * - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL < ( + col1 * + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT DISTINCT + ( - COUNT( * ) ) + 3 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7056
SELECT DISTINCT + ( - COUNT ( * ) ) + 3 FROM tab0 AS cor0
----
0

query II rowsort
SELECT - - 97 * + col0 * + + 35 + + col1 AS col1, col1 FROM tab0 AS cor0 WHERE ( NOT + - 16 IS NULL )
----
295386
21
329316
1
51006
81

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 cor0 WHERE ( 95 * - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT ALL + COUNT( - - 46 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL + COUNT ( - - 46 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col2 + - - col2 - + - col1 + + + ( + col1 ) FROM tab1 AS cor0
----
10
28
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < + + 74
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7063
SELECT + 81 DIV - COUNT( * ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-7063
SELECT + 81 / - COUNT ( * ) FROM tab1
----
-27

query I rowsort
SELECT ALL 55 * 63 AS col1 FROM tab2
----
3465
3465
3465

query III rowsort
SELECT * FROM tab1 WHERE + col0 + + col1 IS NULL
----

query I rowsort
SELECT - 53 * col1 + 65 FROM tab0 AS cor0
----
-1048
-4228
12

query I rowsort
SELECT ALL col2 - col0 + 30 AS col1 FROM tab2 AS cor0
----
13
6
7

query I rowsort
SELECT ALL + - 78 AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 3 * - col2 * + 42
----

query I rowsort
SELECT ALL - - col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - + col0 + + ( + 80 ) + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT ALL - SUM( ALL + col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL - SUM ( ALL + col0 ) FROM tab0 AS cor0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-7072
SELECT + - col0 DIV - 98 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7072
SELECT + - col0 / - 98 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 IN ( - ( - - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7074
SELECT col2 DIV + - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7074
SELECT col2 / + - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT + col2 AS col0, + col1 * 56 AS col0 FROM tab2 AS cor0
----
23
2856
40
4312
58
3752

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT DISTINCT - COUNT( * ) * MIN( DISTINCT + - col2 ) FROM tab1 cor0
----
288

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT - COUNT ( * ) * MIN ( DISTINCT + - col2 ) FROM tab1 cor0
----
288

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7078
SELECT CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7078
SELECT CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 83 NOT BETWEEN 56 * + col2 + + col0 + - 22 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7080
SELECT DISTINCT 8 * - + COUNT( * ) AS col2 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-7080
SELECT DISTINCT 8 * - + COUNT ( * ) AS col2 FROM tab1
----
-24

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( + col2 ) IS NULL
----

query II rowsort
SELECT ALL col1, - 4 FROM tab2
----
51
-4
67
-4
77
-4

query II rowsort
SELECT DISTINCT 86, - col1 AS col2 FROM tab2
----
86
-51
86
-67
86
-77

query I rowsort
SELECT + 63 * col1 + - col0 FROM tab0
----
-34
1236
5088

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7085
SELECT - ( - 62 ) + COUNT( * ) DIV 34 + COUNT( * ) FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-7085
SELECT - ( - 62 ) + COUNT ( * ) / 34 + COUNT ( * ) FROM tab1 AS cor0
----
65

query I rowsort
SELECT col2 + 34 AS col1 FROM tab1 AS cor0
----
102
130
93

query II rowsort
SELECT DISTINCT + col0 * + col1, col0 AS col0 FROM tab1 AS cor0
----
425
85
4277
91
714
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + col1 * - col2 / + 40 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT ALL - MIN( - col1 ) col1 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7089
SELECT ALL - MIN ( - col1 ) col1 FROM tab2
----
77

query I rowsort
SELECT DISTINCT 90 + + + col2 + + col2 + + col1 + + col0 + - + col0 + 10 * - 8 - - - 77 AS col0 FROM tab0 AS cor0
----
-26
108
132

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7092
SELECT DISTINCT + - COUNT( * ) DIV - SUM( ALL - 86 ) + - - 1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT + - COUNT ( * ) / - SUM ( ALL - 86 ) + - - 1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT - col1 + + - 12 * + col2 AS col0 FROM tab2 AS cor0
----
-327
-557
-763

query I rowsort
SELECT ALL + col2 + - - 5 FROM tab1 AS cor0
----
101
64
73

query I rowsort
SELECT - col0 + + col0 * - 10 FROM tab1 AS cor0
----
-1001
-561
-935

query I rowsort
SELECT - col1 + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-28
-37
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( - 65 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col2 - - col2 AS col0, col1 + - col0 AS col0 FROM tab2 AS cor0
----
116
-8
46
5
80
13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7099
SELECT ALL * FROM tab2 WHERE NOT ( + CAST( NULL AS SIGNED ) ) >= + 88
----

skipif mysql # not compatible
query III rowsort label-7099
SELECT ALL * FROM tab2 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) >= + 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-7100
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1, tab1 cor0
----
9

query I rowsort
SELECT 1 * + col0 + 77 FROM tab2
----
123
141
152

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * + ( + 5 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7103
SELECT * FROM tab2 AS cor0 WHERE - 62 + + 77 + - - 6 NOT IN ( - + ( col0 ) + 40 + - col2 * col1, + col0 + - + CAST( col2 AS SIGNED ), + ( + - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7103
SELECT * FROM tab2 AS cor0 WHERE - 62 + + 77 + - - 6 NOT IN ( - + ( col0 ) + 40 + - col2 * col1, + col0 + - + CAST ( col2 AS INTEGER ), + ( + - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( - col0, - col0 + - 29 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7105
SELECT + CAST( + - MIN( DISTINCT - col2 ) AS SIGNED ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-7105
SELECT + CAST ( + - MIN ( DISTINCT - col2 ) AS INTEGER ) FROM tab2 cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7106
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7106
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 > NULL
----

query I rowsort
SELECT DISTINCT + - ( + 37 ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-37

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT - 85 NOT BETWEEN col1 AND ( col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 27 >= 27
----

query I rowsort
SELECT - col1 + - col0 AS col1 FROM tab1 AS cor0 WHERE NOT - 67 BETWEEN col0 AND + col2 + col1
----
-138
-65
-90

query I rowsort
SELECT + 28 * - + 62 FROM tab1 AS cor0
----
-1736
-1736
-1736

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT ( NOT - + 61 IS NULL )
----

query I rowsort
SELECT 50 * - + col0 FROM tab1
----
-2550
-4250
-4550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7115
SELECT - COUNT( DISTINCT - ( 21 ) ), CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-7115
SELECT - COUNT ( DISTINCT - ( 21 ) ), CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-1
NULL

query II rowsort
SELECT + col1 AS col0, + col1 AS col1 FROM tab2
----
51
51
67
67
77
77

query III rowsort
SELECT * FROM tab1 WHERE NOT + 98 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT ( - - MAX( - 94 ) ) FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-7118
SELECT ( - - MAX ( - 94 ) ) FROM tab0
----
-94

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 98 + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 41 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 > + - 75
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + col0 + + 69 col2 FROM tab0 AS cor0
----
1284
166
1896

query II rowsort
SELECT ALL col1, 25 * + + 49 + + col0 FROM tab2
----
51
1271
67
1300
77
1289

query I rowsort
SELECT + 58 AS col0 FROM tab2 WHERE + + col2 * 79 BETWEEN NULL AND - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = 74
----

query I rowsort
SELECT ALL + ( col0 ) * + + col1 + - 13 * 58 + - col0 * + 34 + - col2 AS col1 FROM tab1 AS cor0
----
-1870
-3278
361

query I rowsort
SELECT DISTINCT - + 93 - - 78 + col0 FROM tab2 AS cor0
----
31
49
60

query I rowsort
SELECT ALL + col2 + + + col2 * - 56 AS col1 FROM tab2 AS cor0
----
-1265
-2200
-3190

onlyif mysql # aggregate syntax: 
query II rowsort label-7129
SELECT ALL - 31 AS col0, COUNT( * ) AS col0 FROM tab1 AS cor0
----
-31
3

skipif mysql # not compatible
query II rowsort label-7129
SELECT ALL - 31 AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-31
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT DISTINCT COUNT( * ) + + 35 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-7130
SELECT DISTINCT COUNT ( * ) + + 35 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
41

query II rowsort
SELECT + col1, - col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7132
SELECT - col2, CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-7132
SELECT - col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
-10
NULL
-47
NULL
-99
NULL

query II rowsort
SELECT + + 36 AS col2, col2 * - + col2 FROM tab2 cor0
----
36
-1600
36
-3364
36
-529

query I rowsort
SELECT - col0 - - 85 FROM tab0
----
-12
-2
70

query I rowsort
SELECT - col2 + + 61 + col2 AS col2 FROM tab0
----
61
61
61

query III rowsort
SELECT * FROM tab1 WHERE col0 BETWEEN NULL AND - + col1
----

query I rowsort
SELECT 23 * + col1 AS col1 FROM tab0 cor0
----
1863
23
483

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7138
SELECT ALL CAST( - + col1 AS SIGNED ) AS col0, - 99 FROM tab2 AS cor0
----
-51
-99
-67
-99
-77
-99

skipif mysql # not compatible
query II rowsort label-7138
SELECT ALL CAST ( - + col1 AS INTEGER ) AS col0, - 99 FROM tab2 AS cor0
----
-51
-99
-67
-99
-77
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT - ( - + ( - COUNT( * ) ) ) FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-7139
SELECT - ( - + ( - COUNT ( * ) ) ) FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT DISTINCT + MIN( col2 ) * + COUNT( * ) AS col0 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-7140
SELECT DISTINCT + MIN ( col2 ) * + COUNT ( * ) AS col0 FROM tab2
----
69

query I rowsort
SELECT ALL - 30 * col1 FROM tab2
----
-1530
-2010
-2310

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT COUNT( - 78 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7142
SELECT COUNT ( - 78 ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 83 * + col1 * + col2 NOT IN ( - - col1 )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7145
SELECT - CAST( NULL AS SIGNED ) * 99 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7145
SELECT - CAST ( NULL AS INTEGER ) * 99 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 18 * + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 78 * + 61 AS col2 FROM tab0 AS cor0
----
-4758

query I rowsort
SELECT DISTINCT - 73 FROM tab0 AS cor0 WHERE NOT - col2 + - col1 + + col0 IS NULL
----
-73

query I rowsort
SELECT - 1 + 86 * col1 AS col2 FROM tab1
----
1203
4041
429

query I rowsort
SELECT col2 + + + 31 AS col0 FROM tab2
----
54
71
89

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 ) NOT BETWEEN + ( + 84 ) * col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN ( - col0 ) AND NULL
----

query I rowsort
SELECT - - 2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + 94 + - col1, - 40, - col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 83 + + col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 + + - 34 / + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7157
SELECT ALL - - 19 - - 31 DIV + + 93 FROM tab0 cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-7157
SELECT ALL - - 19 - - 31 / + + 93 FROM tab0 cor0
----
19
19
19

query I rowsort
SELECT - - 31 * - - col0 + - - 91 AS col2 FROM tab0 cor0
----
2788
3098
556

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT DISTINCT + + 22 + + + COUNT( * ) FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-7159
SELECT DISTINCT + + 22 + + + COUNT ( * ) FROM tab0 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7160
SELECT ALL - 15 + - + COUNT( col2 ) + 18 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7160
SELECT ALL - 15 + - + COUNT ( col2 ) + 18 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT DISTINCT + COUNT( * ) * - MIN( - col2 ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT + COUNT ( * ) * - MIN ( - col2 ) FROM tab0
----
297

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7162
SELECT ( + CAST( + SUM( col2 ) AS SIGNED ) ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-7162
SELECT ( + CAST ( + SUM ( col2 ) AS INTEGER ) ) AS col2 FROM tab2
----
121

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT NULL <> ( NULL ) OR NOT ( ( NULL ) <> NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - + col2 * + col0 col0 FROM tab2
----
-163840
-326250
-48668

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - - 56 AND NULL
----

query I rowsort
SELECT col1 * 72 * - col0 AS col2 FROM tab0
----
-131544
-6984
-87480

query II rowsort
SELECT col0 AS col2, - col2 AS col2 FROM tab0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT DISTINCT - MAX( DISTINCT + - col2 ) col2 FROM tab1 cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7168
SELECT DISTINCT - MAX ( DISTINCT + - col2 ) col2 FROM tab1 cor0
----
59

query II rowsort
SELECT ( col0 ), - col2 FROM tab2
----
46
-23
64
-40
75
-58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = + 23 * ( + - col1 )
----

query I rowsort
SELECT - - col1 * + ( + col0 ) FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT - col0 + + col2 * - col2 * + - col0 AS col2 FROM tab1 AS cor0 WHERE NOT 85 <= ( NULL )
----

query I rowsort
SELECT DISTINCT - - 87 AS col2 FROM tab2 cor0
----
87

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < col1 + - 82
----

query I rowsort
SELECT - + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 * 15 <> NULL
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE NOT ( col0 / - + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7177
SELECT * FROM tab0 WHERE NOT - col0 * col0 * 99 + - col0 + col0 * - + 4 > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7177
SELECT * FROM tab0 WHERE NOT - col0 * col0 * 99 + - col0 + col0 * - + 4 > - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT 49 AS col0, + 21 FROM tab0
----
49
21
49
21
49
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT DISTINCT + SUM( DISTINCT - 23 ) AS col1 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-7179
SELECT DISTINCT + SUM ( DISTINCT - 23 ) AS col1 FROM tab0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT DISTINCT + MIN( - - ( + col1 ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-7180
SELECT DISTINCT + MIN ( - - ( + col1 ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
51

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7181
SELECT col1, col1 * col0 + + CAST( NULL AS DECIMAL ) AS col2, - 4 AS col2 FROM tab0
----
9 values hashing to 3815695de751e03fc4c929478a36055a

skipif mysql # not compatible
query III rowsort label-7181
SELECT col1, col1 * col0 + + CAST ( NULL AS REAL ) AS col2, - 4 AS col2 FROM tab0
----
9 values hashing to 3815695de751e03fc4c929478a36055a

query III rowsort
SELECT * FROM tab0 WHERE col0 NOT IN ( col0 * + col2 + col2, + col1, 99 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7183
SELECT ALL + MAX( - col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7183
SELECT ALL + MAX ( - col0 ) AS col1 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT + COUNT( * ) + - 60 AS col0 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-7184
SELECT + COUNT ( * ) + - 60 AS col0 FROM tab2 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT ALL - 71 + COUNT( * ) FROM tab0 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-7185
SELECT ALL - 71 + COUNT ( * ) FROM tab0 AS cor0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7186
SELECT CAST( NULL AS SIGNED ) + - - col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7186
SELECT CAST ( NULL AS INTEGER ) + - - col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 FROM tab0 WHERE + col0 IS NOT NULL
----
10
47
99

query I rowsort
SELECT - 35 FROM tab0 WHERE NULL IS NULL
----
-35
-35
-35

query I rowsort
SELECT + col0 * + 50 AS col2 FROM tab1
----
2550
4250
4550

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT ALL - + 1 + COUNT( * ) + 29 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-7190
SELECT ALL - + 1 + COUNT ( * ) + 29 FROM tab1 AS cor0
----
31

query I rowsort
SELECT + col2 - + 27 FROM tab2 AS cor0
----
-4
13
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 - - 28 col0 FROM tab2 AS cor0
----
-65
-65
-65

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 NOT BETWEEN NULL AND + 75 - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT DISTINCT - MAX( ALL col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-7194
SELECT DISTINCT - MAX ( ALL col0 ) FROM tab1
----
-91

query I rowsort
SELECT + col0 * col0 - - col2 + + col2 AS col0 FROM tab1 AS cor0
----
2793
7343
8417

onlyif mysql # aggregate syntax: 
query II rowsort label-7196
SELECT ALL - 80, COUNT( * ) AS col0 FROM tab0 AS cor0
----
-80
3

skipif mysql # not compatible
query II rowsort label-7196
SELECT ALL - 80, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-80
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + col1 / - col2, col2 + - col1 * + + col0 + col1, 0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7199
SELECT - - ( - CAST( + 92 AS SIGNED ) ) FROM tab0 AS cor0
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-7199
SELECT - - ( - CAST ( + 92 AS INTEGER ) ) FROM tab0 AS cor0
----
-92
-92
-92

query I rowsort
SELECT + - ( + - col2 ) * col0 + - col0 FROM tab1 AS cor0
----
4845
4930
6097

query I rowsort
SELECT 34 * + 23 AS col2 FROM tab2 AS cor0
----
782
782
782

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT MAX( DISTINCT - 54 ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-7202
SELECT MAX ( DISTINCT - 54 ) FROM tab0 AS cor0
----
-54

query II rowsort
SELECT DISTINCT - + ( + 17 ) * + col2 * + + 98 AS col2, - col2 FROM tab1 AS cor0
----
-113288
-68
-159936
-96
-98294
-59

query I rowsort
SELECT ALL - ( col2 ) * - + col1 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7205
SELECT DISTINCT + 53 * + col0 * - CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7205
SELECT DISTINCT + 53 * + col0 * - CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT - - ( + COUNT( * ) ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7206
SELECT - - ( + COUNT ( * ) ) AS col0 FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 + col1 + - ( - 45 ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - col2 * + + col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7209
SELECT DISTINCT MIN( + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-7209
SELECT DISTINCT MIN ( + col0 ) FROM tab1
----
51

query II rowsort
SELECT ( - - col0 ) + - 9 * - col1 AS col2, - col0 AS col2 FROM tab1 WHERE ( col0 ) NOT BETWEEN 68 AND + 74 OR NOT NULL IS NOT NULL
----
130
-85
177
-51
514
-91

query I rowsort
SELECT DISTINCT - col1 + + 74 * - - 31 + + col2 FROM tab1
----
2315
2348
2376

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT ALL - MIN( - col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7212
SELECT ALL - MIN ( - col1 ) FROM tab2
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7213
SELECT col0 DIV - 72 + + 9 FROM tab1
----
8
8
9

skipif mysql # not compatible
query I rowsort label-7213
SELECT col0 / - 72 + + 9 FROM tab1
----
8
8
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7214
SELECT - CAST( NULL AS SIGNED ), 0 FROM tab1 WHERE - - CAST( NULL AS SIGNED ) + col2 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-7214
SELECT - CAST ( NULL AS INTEGER ), 0 FROM tab1 WHERE - - CAST ( NULL AS INTEGER ) + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7215
SELECT CAST( NULL AS SIGNED ) + + col1 + + - col0 * + + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7215
SELECT CAST ( NULL AS INTEGER ) + + col1 + + - col0 * + + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT ALL + 33 + - 22 - COUNT( * ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-7216
SELECT ALL + 33 + - 22 - COUNT ( * ) FROM tab0 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < + + ( - 16 )
----
0

skipif mysql # not compatible
query I rowsort label-7217
SELECT + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < + + ( - 16 )
----
0

query I rowsort
SELECT ALL - 33 * + col0 + 7 - 4 FROM tab2 AS cor0
----
-1515
-2109
-2472

query II rowsort
SELECT - 93 - col1 + + 60 AS col1, - col1 AS col2 FROM tab2
----
-100
-67
-110
-77
-84
-51

query II rowsort
SELECT DISTINCT col1 AS col0, col0 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7221
SELECT + + col1 DIV ( - + col1 ) DIV - col2 + + - col1 + + 55 * - col0 * - - 27 AS col2 FROM tab0 AS cor0
----
-129216
-144046
-22356

skipif mysql # not compatible
query I rowsort label-7221
SELECT + + col1 / ( - + col1 ) / - col2 + + - col1 + + 55 * - col0 * - - 27 AS col2 FROM tab0 AS cor0
----
-129216
-144046
-22356

query I rowsort
SELECT ALL 72 + 39 FROM tab0 cor0
----
111
111
111

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 * - - col0 * - col2 + + + 31 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7224
SELECT ALL + CAST( NULL AS SIGNED ) * - - col0 * 13 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7224
SELECT ALL + CAST ( NULL AS INTEGER ) * - - col0 * 13 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT DISTINCT + MAX( ALL - 52 ) FROM tab2 cor0
----
-52

skipif mysql # not compatible
query I rowsort label-7225
SELECT DISTINCT + MAX ( ALL - 52 ) FROM tab2 cor0
----
-52

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 52 + - + 43 * - 50 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7227
SELECT - MAX( ALL + - col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7227
SELECT - MAX ( ALL + - col1 ) AS col1 FROM tab1
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 col2 FROM tab2
----
-35

onlyif mysql # aggregate syntax: 
query II rowsort label-7229
SELECT DISTINCT MAX( ALL - col0 ) AS col0, + 19 * - COUNT( * ) * 12 FROM tab1
----
-51
-684

skipif mysql # not compatible
query II rowsort label-7229
SELECT DISTINCT MAX ( ALL - col0 ) AS col0, + 19 * - COUNT ( * ) * 12 FROM tab1
----
-51
-684

query I rowsort
SELECT - ( - - 77 ) * col1 + - 95 FROM tab0
----
-1712
-172
-6332

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7231
SELECT ALL CAST( ( - - ( + 26 ) ) AS SIGNED ) col1 FROM tab1
----
26
26
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7231
SELECT ALL CAST ( ( - - ( + 26 ) ) AS INTEGER ) col1 FROM tab1
----
26
26
26

query I rowsort
SELECT - ( - 44 ) * - - col2 + 38 AS col0 FROM tab0
----
2106
4394
478

query II rowsort
SELECT DISTINCT + col1 + - col0 - + col2 AS col1, + 1 FROM tab0 AS cor0
----
-195
1
-76
1
19
1

query I rowsort
SELECT 27 * - ( + 69 ) - + col0 FROM tab2 AS cor0
----
-1909
-1927
-1938

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7235
SELECT CAST( - ( 48 ) AS DECIMAL ) * + col2 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7235
SELECT CAST ( - ( 48 ) AS REAL ) * + col2 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7236
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / - - col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7236
SELECT DISTINCT + CAST ( NULL AS REAL ) / - - col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7237
SELECT - col1 * ( - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7237
SELECT - col1 * ( - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7238
SELECT ALL COUNT( * ) AS col0, - ( + + MAX( + - 63 ) ) FROM tab2
----
3
63

skipif mysql # not compatible
query II rowsort label-7238
SELECT ALL COUNT ( * ) AS col0, - ( + + MAX ( + - 63 ) ) FROM tab2
----
3
63

query I rowsort
SELECT + - ( + + 5 ) + - + col0 FROM tab1 cor0
----
-56
-90
-96

query I rowsort
SELECT ALL + + 39 + + col2 FROM tab0 AS cor0
----
138
49
86

query I rowsort
SELECT - - 72 + + + col1 FROM tab1 AS cor0
----
119
77
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 + + + col1 col1 FROM tab0 cor0
----
24
4
84

query II rowsort
SELECT DISTINCT + col2 + + 43, - 8 AS col2 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7244
SELECT col0 + - CAST( - 43 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
128
134
94

skipif mysql # not compatible
query I rowsort label-7244
SELECT col0 + - CAST ( - 43 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
128
134
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT 1 * - 89 - - + COUNT( * ) FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-7245
SELECT 1 * - 89 - - + COUNT ( * ) FROM tab1 AS cor0
----
-86

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT + 65 * - COUNT( * ) + - - MIN( + col0 ) FROM tab1 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-7247
SELECT + 65 * - COUNT ( * ) + - - MIN ( + col0 ) FROM tab1 AS cor0
----
-144

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NOT + col2 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7249
SELECT - col0 DIV + col2 - + + 85 FROM tab2 AS cor0
----
-86
-86
-87

skipif mysql # not compatible
query I rowsort label-7249
SELECT - col0 / + col2 - + + 85 FROM tab2 AS cor0
----
-86
-86
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-7250
SELECT + + col0 DIV - 90 AS col1 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7250
SELECT + + col0 / - 90 AS col1 FROM tab1 cor0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 38 * + col0 col0, - 88 + - - col2 * - - col2 * - 69 AS col1 FROM tab1 AS cor0
----
-1938
-635992
-3230
-240277
-3458
-319144

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT - MIN( ALL - + 68 ) FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-7252
SELECT - MIN ( ALL - + 68 ) FROM tab0
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 53 col2, - 37 + + + col2 FROM tab2
----
-53
-14
-53
21
-53
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND 1
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7255
SELECT DISTINCT + CAST( - - CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7255
SELECT DISTINCT + CAST ( - - CAST ( NULL AS INTEGER ) AS REAL ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT - 8 * COUNT( * ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-7256
SELECT - 8 * COUNT ( * ) FROM tab1
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7257
SELECT ALL CAST( - - col1 AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7257
SELECT ALL CAST ( - - col1 AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

query II rowsort
SELECT ALL + col2 AS col1, + col1 AS col0 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7259
SELECT ALL + COUNT( * ) DIV - 59 + - 34 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-34

skipif mysql # not compatible
query I rowsort label-7259
SELECT ALL + COUNT ( * ) / - 59 + - 34 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-34

query I rowsort
SELECT DISTINCT 1 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7261
SELECT COUNT( * ) DIV + - ( - - 18 ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7261
SELECT COUNT ( * ) / + - ( - - 18 ) col2 FROM tab2
----
0

query I rowsort
SELECT - + 46 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query II rowsort
SELECT DISTINCT col2 + 23 AS col2, + col1 + - col2 AS col1 FROM tab1 AS cor0
----
119
-82
82
-54
91
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7264
SELECT - + CAST( NULL AS SIGNED ) + 16 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7264
SELECT - + CAST ( NULL AS INTEGER ) + 16 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + + + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7266
SELECT + 20 DIV - 33 + col1 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7266
SELECT + 20 / - 33 + col1 AS col2 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7267
SELECT - ( col2 ) + + - CAST( - ( + col2 ) AS SIGNED ) * col2 FROM tab0
----
2162
90
9702

skipif mysql # not compatible
query I rowsort label-7267
SELECT - ( col2 ) + + - CAST ( - ( + col2 ) AS INTEGER ) * col2 FROM tab0
----
2162
90
9702

query I rowsort
SELECT DISTINCT 80 * + + col1 AS col0 FROM tab1
----
1120
3760
400

query I rowsort
SELECT ( - 69 ) AS col2 FROM tab1
----
-69
-69
-69

query I rowsort
SELECT DISTINCT + 93 * + 76 * + col2 AS col1 FROM tab1
----
417012
480624
678528

query I rowsort
SELECT DISTINCT + 88 + col0 FROM tab0
----
103
175
185

query I rowsort
SELECT ALL - 55 + - col2 + 98 FROM tab2
----
-15
20
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + col2 NOT BETWEEN - ( - col0 ) AND NULL
----
85
5
59

query I rowsort
SELECT 11 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * col2 * + + 72 - + col2 FROM tab1 AS cor0
----
-352608
-361139
-445604

query I rowsort
SELECT + 83 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

query I rowsort
SELECT DISTINCT - 60 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-60

query I rowsort
SELECT col2 * 2 AS col1 FROM tab0
----
198
20
94

query I rowsort
SELECT 26 * + 43 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT DISTINCT - SUM( col2 ) AS col2 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7280
SELECT DISTINCT - SUM ( col2 ) AS col2 FROM tab1 cor0
----
-223

onlyif mysql # aggregate syntax: 
query II rowsort label-7281
SELECT ALL COUNT( * ) AS col0, + 2 + - 7 FROM tab1 AS cor0
----
3
-5

skipif mysql # not compatible
query II rowsort label-7281
SELECT ALL COUNT ( * ) AS col0, + 2 + - 7 FROM tab1 AS cor0
----
3
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT - + COUNT( DISTINCT + - col1 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7282
SELECT - + COUNT ( DISTINCT + - col1 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7283
SELECT - 12 AS col0, AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) * + - ( + ( + COUNT( * ) ) ) AS col1 FROM tab2 AS cor0
----
-12
NULL

skipif mysql # not compatible
query II rowsort label-7283
SELECT - 12 AS col0, AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) * + - ( + ( + COUNT ( * ) ) ) AS col1 FROM tab2 AS cor0
----
-12
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT + MAX( ALL col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7284
SELECT + MAX ( ALL col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT + - col2 + ( - + col0 ) FROM tab1 WHERE + col2 IS NOT NULL
----
-144
-147
-159

query I rowsort
SELECT DISTINCT - 22 AS col1 FROM tab0
----
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-7287
SELECT ALL - 71 + - COUNT( * ) AS col2, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-74
3

skipif mysql # not compatible
query II rowsort label-7287
SELECT ALL - 71 + - COUNT ( * ) AS col2, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-74
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - + col2 col1 FROM tab2
----
-116
-46
-80

query I rowsort
SELECT + 90 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT col2 + col0 FROM tab0 WHERE col0 / - ( col0 ) + - - 59 * col0 IS NULL
----

query I rowsort
SELECT + + ( + 93 ) FROM tab0 AS cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-7292
SELECT - COUNT( + + 38 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7292
SELECT - COUNT ( + + 38 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - col1 AS col2 FROM tab1 cor0 WHERE col1 * - col1 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT + - col2 + - + col1 AS col0 FROM tab1 AS cor0
----
-110
-115
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 82, - ( 62 ) col2 FROM tab2 AS cor0
----
82
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 29 col0 FROM tab0 AS cor0
----
-2349
-29
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT + 98 * - MAX( col1 ) AS col1 FROM tab1 AS cor0
----
-4606

skipif mysql # not compatible
query I rowsort label-7297
SELECT + 98 * - MAX ( col1 ) AS col1 FROM tab1 AS cor0
----
-4606

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7298
SELECT + COUNT( * ) DIV - 92 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7298
SELECT + COUNT ( * ) / - 92 FROM tab2
----
0

query I rowsort
SELECT + 57 * - - ( + 63 ) AS col0 FROM tab1
----
3591
3591
3591

query I rowsort
SELECT 47 - + col0 FROM tab2
----
-17
-28
1

query I rowsort
SELECT DISTINCT + 21 * + + col0 AS col2 FROM tab0
----
1827
2037
315

onlyif mysql # DIV for integer division: 
query I rowsort label-7302
SELECT DISTINCT col0 * + col1 DIV + col1 AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7302
SELECT DISTINCT col0 * + col1 / + col1 AS col2 FROM tab0
----
15
87
97

query I rowsort
SELECT - 18 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( 23 ) + - col2 FROM tab1
----
-36
-45
-73

query I rowsort
SELECT DISTINCT + col1 * - + 1 * - - col2 FROM tab1 cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT DISTINCT + COUNT( * ) + + SUM( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT + COUNT ( * ) + + SUM ( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT - + SUM( + ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-7307
SELECT - + SUM ( + ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT + 75 * - col1 FROM tab1
----
-1050
-3525
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-7309
SELECT ALL COUNT( * ) * + - 51 AS col1 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-7309
SELECT ALL COUNT ( * ) * + - 51 AS col1 FROM tab0
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-7310
SELECT DISTINCT 11 DIV - + col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7310
SELECT DISTINCT 11 / - + col1 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 6 col1 FROM tab0 AS cor0
----
-6
-6
-6

query I rowsort
SELECT 74 * + ( col0 ) FROM tab0 cor0
----
1110
6438
7178

query II rowsort
SELECT + - col0, + 61 * - col2 AS col0 FROM tab0 AS cor0
----
-15
-2867
-87
-610
-97
-6039

query I rowsort
SELECT ALL col2 * + - col1 + - col2 FROM tab1 AS cor0
----
-1440
-3264
-354

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT ALL + 26 * - COUNT( * ) FROM tab1
----
-78

skipif mysql # not compatible
query I rowsort label-7315
SELECT ALL + 26 * - COUNT ( * ) FROM tab1
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-7316
SELECT ALL + 21 DIV + ( + col2 ) FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7316
SELECT ALL + 21 / + ( + col2 ) FROM tab0
----
0
0
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7317
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, - ( + ( - + col0 ) ) FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-7317
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - ( + ( - + col0 ) ) FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7318
SELECT DISTINCT + COUNT( ALL + col0 ) + + + 8 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-7318
SELECT DISTINCT + COUNT ( ALL + col0 ) + + + 8 FROM tab0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-7319
SELECT ALL col0 DIV - 97 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL col0 / - 97 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7320
SELECT DISTINCT + col1 AS col0, 60 - - 54 * - + CAST( NULL AS SIGNED ) + - 29 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-7320
SELECT DISTINCT + col1 AS col0, 60 - - 54 * - + CAST ( NULL AS INTEGER ) + - 29 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7321
SELECT ( + CAST( NULL AS DECIMAL ) ) + + - col2 + + CAST( NULL AS SIGNED ) + + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7321
SELECT ( + CAST ( NULL AS REAL ) ) + + - col2 + + CAST ( NULL AS INTEGER ) + + + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT + 56 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7323
SELECT ALL + col0 + - CAST( - col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
174
194
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7323
SELECT ALL + col0 + - CAST ( - col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7324
SELECT DISTINCT col2 DIV 34 * col1 AS col1 FROM tab2 AS cor0
----
0
67
77

skipif mysql # not compatible
query I rowsort label-7324
SELECT DISTINCT col2 / 34 * col1 AS col1 FROM tab2 AS cor0
----
0
67
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + + 59 = + + 91 * + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - col0 + - - col1 col0 FROM tab0 AS cor0
----
306
7590
9410

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > - 66 * + col2
----

query II rowsort
SELECT ALL + + 10 - - - col0 * - 47, col1 * - + 41 * col2 AS col1 FROM tab1 AS cor0
----
2407
-55104
4005
-12095
4287
-131036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7329
SELECT + ( - - SUM( 65 ) ) + - CAST( NULL AS SIGNED ) FROM tab2, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7329
SELECT + ( - - SUM ( 65 ) ) + - CAST ( NULL AS INTEGER ) FROM tab2, tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT ( - ( - col0 ) ), - col1 AS col2 FROM tab0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT + 8 * - 96 AS col2 FROM tab1
----
-768
-768
-768

onlyif mysql # DIV for integer division: 
query II rowsort label-7332
SELECT - 35 DIV + 77 * col1 * + col2 AS col0, - col2 * - - col0 * col2 FROM tab2
----
0
-102400
0
-24334
0
-252300

skipif mysql # not compatible
query II rowsort label-7332
SELECT - 35 / + 77 * col1 * + col2 AS col0, - col2 * - - col0 * col2 FROM tab2
----
0
-102400
0
-24334
0
-252300

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7334
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 WHERE NOT NULL IN ( col0, 41, col0 )
----

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 WHERE NOT NULL IN ( col0, 41, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT DISTINCT - SUM( + col2 ) FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7335
SELECT DISTINCT - SUM ( + col2 ) FROM tab1 cor0
----
-223

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 >= col2 + col1 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 61 * - ( col2 ) AS col0 FROM tab2 WHERE + col0 - 16 BETWEEN NULL AND 35 + + ( - 32 )
----

query I rowsort
SELECT ALL + 39 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7339
SELECT DISTINCT + CAST( 18 AS SIGNED ) AS col2 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-7339
SELECT DISTINCT + CAST ( 18 AS INTEGER ) AS col2 FROM tab0
----
18

query III rowsort
SELECT * FROM tab0 WHERE NOT + 16 + col1 IS NOT NULL
----

query I rowsort
SELECT + col0 + col2 * - col2 AS col1 FROM tab0
----
-13
-2194
-9704

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 50 IN ( + col2 * + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 FROM tab0 WHERE ( ( col2 ) ) IS NULL
----

query I rowsort
SELECT + 29 AS col1 FROM tab1 WHERE ( - col1 ) IS NOT NULL
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT + COUNT( * ) + - 68 AS col2 FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-7345
SELECT + COUNT ( * ) + - 68 AS col2 FROM tab2
----
-65

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <= col2
----

query I rowsort
SELECT - 45 + 62 AS col1 FROM tab0
----
17
17
17

query I rowsort
SELECT DISTINCT - 54 AS col0 FROM tab0 WHERE NULL NOT BETWEEN - 56 AND ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 BETWEEN 6 AND ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT DISTINCT 94 * COUNT( * ) + + 85 FROM tab1
----
367

skipif mysql # not compatible
query I rowsort label-7350
SELECT DISTINCT 94 * COUNT ( * ) + + 85 FROM tab1
----
367

query I rowsort
SELECT DISTINCT + 60 * col1 + - 29 FROM tab2
----
3031
3991
4591

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7352
SELECT * FROM tab2 WHERE ( - col1 ) >= CAST( NULL AS SIGNED ) + col1
----

skipif mysql # not compatible
query III rowsort label-7352
SELECT * FROM tab2 WHERE ( - col1 ) >= CAST ( NULL AS INTEGER ) + col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT ALL COUNT( * ) * 80 FROM tab1 WHERE 58 >= col1 - col2
----
240

skipif mysql # not compatible
query I rowsort label-7354
SELECT ALL COUNT ( * ) * 80 FROM tab1 WHERE 58 >= col1 - col2
----
240

query I rowsort
SELECT col2 + 39 * + 65 AS col0 FROM tab2
----
2558
2575
2593

query I rowsort
SELECT ALL AVG ( - col0 ) FROM tab1 WHERE - col1 IS NULL
----
NULL

query I rowsort
SELECT ALL - 92 * col0 + col0 AS col0 FROM tab1
----
-4641
-7735
-8281

query III rowsort
SELECT * FROM tab1 WHERE ( 46 * - col1 ) NOT BETWEEN col0 * + col2 - col2 AND - 14 * - 41
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( ( 0 ) ) FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7360
SELECT DISTINCT CAST( NULL AS DECIMAL ) * COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7360
SELECT DISTINCT CAST ( NULL AS REAL ) * COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7361
SELECT + col1 + - col0 DIV col0 AS col2 FROM tab0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-7361
SELECT + col1 + - col0 / col0 AS col2 FROM tab0
----
0
20
80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 70 IN ( 37 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT ALL ( + COUNT( * ) ) * 16 AS col0 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-7363
SELECT ALL ( + COUNT ( * ) ) * 16 AS col0 FROM tab1
----
48

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 > ( - col2 ) + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( col2 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * + col2 + + col0 FROM tab2 AS cor0
----
1664
3439
575

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7368
SELECT ALL + MAX( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL + MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 19 * + 95 <> 85
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 60 + - col0 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT 11 + SUM( + col0 ) AS col2 FROM tab2 cor0
----
196

skipif mysql # not compatible
query I rowsort label-7371
SELECT 11 + SUM ( + col0 ) AS col2 FROM tab2 cor0
----
196

onlyif mysql # DIV for integer division: 
query I rowsort label-7372
SELECT ALL - 81 DIV - 63 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7372
SELECT ALL - 81 / - 63 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT + col1 * col2 + col1 AS col0 FROM tab2 AS cor0
----
1224
3157
3953

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col1 <> - 6
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7375
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2
----
9

skipif mysql # not compatible
query I rowsort label-7375
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2
----
9

query I rowsort
SELECT + col2 + col1 * 27 AS col2 FROM tab2
----
1400
1867
2119

query I rowsort
SELECT - 87 + col1 * 63 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7378
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7378
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT 60 + col2 AS col2 FROM tab1 cor0
----
119
128
156

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE NULL >= ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7382
SELECT DISTINCT - + col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7382
SELECT DISTINCT - + col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * col2 - 71 >= 0 / col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7384
SELECT ALL - col2 DIV 6 + col0 * 30 FROM tab0 AS cor0
----
2609
2894
443

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL - col2 / 6 + col0 * 30 FROM tab0 AS cor0
----
2609
2894
443

onlyif mysql # DIV for integer division: 
query I rowsort label-7385
SELECT + + ( + 91 ) DIV + col2 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7385
SELECT + + ( + 91 ) / + col2 AS col1 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7386
SELECT + 50 - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-7386
SELECT + 50 - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
53

query I rowsort
SELECT DISTINCT - + 36 - - col2 FROM tab2 AS cor0
----
-13
22
4

query I rowsort
SELECT DISTINCT + col2 - 82 FROM tab2 AS cor0
----
-24
-42
-59

query I rowsort
SELECT 25 - 35 FROM tab2 AS cor0
----
-10
-10
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7390
SELECT + CAST( NULL AS SIGNED ) * col0 - col2 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7390
SELECT + CAST ( NULL AS INTEGER ) * col0 - col2 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 60 + - 62 AS col0 FROM tab2 AS cor0
----
-2

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL NOT IN ( + col0 - - col2 )
----

query I rowsort
SELECT col2 - - + 70 AS col0 FROM tab0
----
117
169
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7394
SELECT DISTINCT col0 * col2 - - col2 FROM tab2 WHERE NOT NULL IN ( - col1 + CAST( col1 AS SIGNED ) * col0 )
----

skipif mysql # not compatible
query I rowsort label-7394
SELECT DISTINCT col0 * col2 - - col2 FROM tab2 WHERE NOT NULL IN ( - col1 + CAST ( col1 AS INTEGER ) * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT DISTINCT 85 - - COUNT( * ) AS col1 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT 85 - - COUNT ( * ) AS col1 FROM tab0
----
88

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 63 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 84 * 89 col2 FROM tab1 WHERE NOT col2 + - col2 / 31 IS NULL
----
-7476
-7476
-7476

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT ALL + COUNT( * ) * MIN( + col0 ) + + 34 AS col1 FROM tab0 WHERE NOT 33 / - col0 + - col0 IN ( 49 )
----
79

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL + COUNT ( * ) * MIN ( + col0 ) + + 34 AS col1 FROM tab0 WHERE NOT 33 / - col0 + - col0 IN ( 49 )
----
79

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT col0 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) < col1
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT 76 / 92 <= NULL
----

query I rowsort
SELECT DISTINCT 97 + col2 FROM tab0 AS cor0 WHERE + 71 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7403
SELECT - - ( - 34 ) DIV - col0 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7403
SELECT - - ( - 34 ) / - col0 AS col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7404
SELECT ALL + 68 * 80 AS col1 FROM tab2 cor0 WHERE ( NULL ) IN ( col1 * CAST( - 26 AS SIGNED ) - ( 30 - col0 ) )
----

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL + 68 * 80 AS col1 FROM tab2 cor0 WHERE ( NULL ) IN ( col1 * CAST ( - 26 AS INTEGER ) - ( 30 - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT ALL + ( + COUNT( * ) ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7405
SELECT ALL + ( + COUNT ( * ) ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7406
SELECT DISTINCT COUNT( ALL col2 ) col1 FROM tab1 WHERE ( - - col0 + col0 ) IN ( col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7406
SELECT DISTINCT COUNT ( ALL col2 ) col1 FROM tab1 WHERE ( - - col0 + col0 ) IN ( col0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7407
SELECT COUNT( * ) / CAST( NULL AS SIGNED ) AS col2 FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7407
SELECT COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab0, tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 82 AS col0 FROM tab1
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7409
SELECT DISTINCT + + COUNT( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-7409
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT + ( 83 ) * col0 AS col1 FROM tab0 AS cor0
----
1245
7221
8051

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 59 col2, col0 FROM tab2 AS cor0
----
59
46
59
64
59
75

query I rowsort
SELECT - col0 * - 55 AS col2 FROM tab1 AS cor0
----
2805
4675
5005

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > 99
----

query I rowsort
SELECT + col1 * + + 16 FROM tab2 AS cor0
----
1072
1232
816

query I rowsort
SELECT ALL + - 99 * + col0 AS col2 FROM tab2 AS cor0
----
-4554
-6336
-7425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + - col2 ) col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT 94 FROM tab0 WHERE NOT NULL NOT IN ( + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7418
SELECT col1 * - 99 FROM tab2 WHERE NOT CAST( + col2 AS DECIMAL ) + col1 IS NULL
----
-5049
-6633
-7623

skipif mysql # not compatible
query I rowsort label-7418
SELECT col1 * - 99 FROM tab2 WHERE NOT CAST ( + col2 AS REAL ) + col1 IS NULL
----
-5049
-6633
-7623

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7419
SELECT DISTINCT + COUNT( * ) + + - ( + 13 ) + - CAST( NULL AS SIGNED ) * - 14 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7419
SELECT DISTINCT + COUNT ( * ) + + - ( + 13 ) + - CAST ( NULL AS INTEGER ) * - 14 FROM tab0
----
NULL

query I rowsort
SELECT - 23 + + ( - + 6 ) * - col1 AS col0 FROM tab0
----
-17
103
463

query I rowsort
SELECT DISTINCT col2 + col2 + col0 * - col2 FROM tab1
----
-4704
-4897
-6052

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NOT ( NOT NULL IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT DISTINCT + - COUNT( * ) + + MAX( ALL col1 ) col1 FROM tab1 AS cor0
----
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7423
SELECT DISTINCT + - COUNT ( * ) + + MAX ( ALL col1 ) col1 FROM tab1 AS cor0
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + col1 + + col0 * 17 * col1 col0 FROM tab2 AS cor0
----
39882
83776
85425

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT ALL - COUNT( * ) - + 25 AS col0 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL - COUNT ( * ) - + 25 AS col0 FROM tab1
----
-28

query I rowsort
SELECT DISTINCT 94 + - col2 + - 41 * - 45 FROM tab2 WHERE NOT ( - - 2 ) IS NULL
----
1881
1899
1916

query I rowsort
SELECT ALL 78 FROM tab0 WHERE ( col0 + - ( - col0 ) ) NOT IN ( col1 * 23 )
----
78
78
78

query I rowsort
SELECT col0 + + + col0 AS col0 FROM tab2
----
128
150
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7429
SELECT 14 + - 73 DIV 64 AS col0 FROM tab2 AS cor0
----
13
13
13

skipif mysql # not compatible
query I rowsort label-7429
SELECT 14 + - 73 / 64 AS col0 FROM tab2 AS cor0
----
13
13
13

onlyif mysql # DIV for integer division: 
query I rowsort label-7430
SELECT ALL + 54 + - col1 * - 62 + + col2 + - col2 DIV + col0 FROM tab2 cor0
----
3239
4266
4868

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL + 54 + - col1 * - 62 + + col2 + - col2 / + col0 FROM tab2 cor0
----
3239
4266
4868

query I rowsort
SELECT DISTINCT 32 + + col2 + + 36 - - - col1 AS col2 FROM tab2 AS cor0
----
31
40
59

query I rowsort
SELECT DISTINCT col2 + + col2 AS col0 FROM tab2 AS cor0 WHERE 55 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND - 70
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7434
SELECT ALL COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( col2 - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( col2 - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 35 + + 87 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 34 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( + col1 + col0 )
----

query I rowsort
SELECT ( - + col1 ) * + 80 - - col0 - - + 91 + col0 * + 1 FROM tab0 AS cor0
----
-1415
-6359
205

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE + 12 > ( + col2 )
----

query I rowsort
SELECT ALL col0 * - 18 FROM tab1
----
-1530
-1638
-918

query I rowsort
SELECT 75 * + - col1 AS col0 FROM tab1
----
-1050
-3525
-375

query II rowsort
SELECT + col0, - 31 FROM tab0
----
15
-31
87
-31
97
-31

query I rowsort
SELECT + 52 + + col0 - + 4 + - ( + col1 + + 64 ) * col2 FROM tab0 WHERE NOT + col1 IS NOT NULL
----

query II rowsort
SELECT col2 AS col0, - 24 FROM tab0
----
10
-24
47
-24
99
-24

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 + 66 * - 58 <= + col0 * - 89
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 * + + ( - - col1 ) col1 FROM tab2
----
1173
1541
1771

onlyif mysql # aggregate syntax: 
query II rowsort label-7446
SELECT COUNT( * ) AS col1, COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-7446
SELECT COUNT ( * ) AS col1, COUNT ( * ) FROM tab0
----
3
3

query II rowsort
SELECT col2, col2 * 73 FROM tab1
----
59
4307
68
4964
96
7008

query III rowsort
SELECT * FROM tab0 WHERE NOT 62 NOT IN ( col1 * + - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 8 + + - col2 IS NOT NULL
----

query II rowsort
SELECT ALL - - 54 AS col2, col2 FROM tab0 AS cor0
----
54
10
54
47
54
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT DISTINCT MAX( ALL - - col1 ) col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7451
SELECT DISTINCT MAX ( ALL - - col1 ) col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT col1 + col1 AS col0 FROM tab1 cor0 WHERE NOT - col2 + - + col2 - + col1 * + - 56 NOT BETWEEN + col1 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
14
47
5

query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 IS NULL AND col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 44 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - ( + 82 ) = ( + + col1 * - col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT ( ( NULL ) IS NULL ) )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( col1 * - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query III rowsort label-7460
SELECT DISTINCT - 31 + + 12, 17 + COUNT( ALL - 24 ) AS col2, + + 90 AS col0 FROM tab1 AS cor0
----
-19
20
90

skipif mysql # not compatible
query III rowsort label-7460
SELECT DISTINCT - 31 + + 12, 17 + COUNT ( ALL - 24 ) AS col2, + + 90 AS col0 FROM tab1 AS cor0
----
-19
20
90

query I rowsort
SELECT - col2 * - + ( + col2 ) FROM tab2 cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7462
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT ALL col2 + + + 29 FROM tab0 AS cor0
----
128
39
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7464
SELECT - + MAX( DISTINCT - + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7464
SELECT - + MAX ( DISTINCT - + col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-7465
SELECT + + 53 DIV 31 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7465
SELECT + + 53 / 31 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7466
SELECT - CAST( NULL AS SIGNED ) * - col0 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7466
SELECT - CAST ( NULL AS INTEGER ) * - col0 col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7467
SELECT COUNT( * ) DIV + 65 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7467
SELECT COUNT ( * ) / + 65 FROM tab2
----
0

query II rowsort
SELECT + col1 AS col2, col0 FROM tab0
----
1
97
21
87
81
15

query II rowsort
SELECT 12 AS col0, 74 FROM tab1
----
12
74
12
74
12
74

query I rowsort
SELECT ALL 86 * ( - 67 ) AS col1 FROM tab2
----
-5762
-5762
-5762

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT DISTINCT COUNT( * ) + + 0 AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7471
SELECT DISTINCT COUNT ( * ) + + 0 AS col1 FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE + 49 NOT BETWEEN ( col1 ) AND - 55
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 + col1 AS col2 FROM tab2 WHERE - + col1 * col0 + + col1 * 63 NOT IN ( + ( - - col1 ) )
----
141
142
97

query I rowsort
SELECT ALL + + col1 + 44 + - ( + - col1 ) FROM tab0 cor0
----
206
46
86

onlyif mysql # DIV for integer division: 
query II rowsort label-7475
SELECT - col1 DIV + + col0 + + col0 AS col2, - col2 FROM tab2 AS cor0
----
45
-23
63
-40
75
-58

skipif mysql # not compatible
query II rowsort label-7475
SELECT - col1 / + + col0 + + col0 AS col2, - col2 FROM tab2 AS cor0
----
45
-23
63
-40
75
-58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 17 * col0 + - col0 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - - 72 - + 33 + - - col1 FROM tab1 cor0
----
44
53
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT - ( - 50 ) - ( - + COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE + col2 * - col0 IS NOT NULL
----
53

skipif mysql # not compatible
query I rowsort label-7479
SELECT - ( - 50 ) - ( - + COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE + col2 * - col0 IS NOT NULL
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT ALL - ( - - MIN( ALL - - col2 ) ) * + 11 + 22 FROM tab0 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL - ( - - MIN ( ALL - - col2 ) ) * + 11 + 22 FROM tab0 AS cor0
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 * ( + col1 ) - - 61 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col2 * + 32 * - - col2 * + col0 FROM tab1 AS cor0
----
13465088
15040512
9468320

query I rowsort
SELECT DISTINCT ( 53 ) * + 85 FROM tab0 AS cor0
----
4505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7484
SELECT ALL - col0 * - 84 FROM tab2 AS cor0 WHERE NOT 92 * col2 + + - CAST( + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL - col0 * - 84 FROM tab2 AS cor0 WHERE NOT 92 * col2 + + - CAST ( + col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7485
SELECT DISTINCT + 14 * 81 DIV - col1 FROM tab1 AS cor0
----
-226
-24
-81

skipif mysql # not compatible
query I rowsort label-7485
SELECT DISTINCT + 14 * 81 / - col1 FROM tab1 AS cor0
----
-226
-24
-81

query I rowsort
SELECT ALL 14 FROM tab0 AS cor0 WHERE - 78 IS NOT NULL
----
14
14
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7487
SELECT ALL + SUM( - + col0 ) * COUNT( col1 ) DIV - MIN( + col2 ) FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-7487
SELECT ALL + SUM ( - + col0 ) * COUNT ( col1 ) / - MIN ( + col2 ) FROM tab0
----
59

query II rowsort
SELECT 4 AS col0, + 69 FROM tab0
----
4
69
4
69
4
69

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( - col0 * col0 * ( - col0 ) ) AND col0
----

query I rowsort
SELECT - 78 * + col2 * - + col1 * col0 AS col1 FROM tab0
----
1425060
4454190
749034

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7491
SELECT DISTINCT - col1 col2 FROM tab1 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND ( col1 - + 47 - + col2 * + - col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7491
SELECT DISTINCT - col1 col2 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND ( col1 - + 47 - + col2 * + - col2 )
----

query I rowsort
SELECT DISTINCT 5 * + col0 AS col0 FROM tab1
----
255
425
455

onlyif mysql # aggregate syntax: 
query I rowsort label-7493
SELECT DISTINCT MIN( - col2 ) * COUNT( * ) FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-7493
SELECT DISTINCT MIN ( - col2 ) * COUNT ( * ) FROM tab0
----
-297

query III rowsort
SELECT ALL * FROM tab0 WHERE - 40 NOT BETWEEN + col2 AND - 26
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 87 * - 31 AS col1 FROM tab0
----
-2697

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT - col0 = ( 76 * - + col0 )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT - 50 * - COUNT( * ) FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-7497
SELECT - 50 * - COUNT ( * ) FROM tab1 AS cor0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT DISTINCT - COUNT( + - col2 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT - COUNT ( + - col2 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT ALL + SUM( - 49 ) AS col1 FROM tab2 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-7500
SELECT ALL + SUM ( - 49 ) AS col1 FROM tab2 AS cor0
----
-147

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT + - ( + - COUNT( DISTINCT - col0 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7501
SELECT + - ( + - COUNT ( DISTINCT - col0 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7502
SELECT DISTINCT - CAST( + + col0 AS SIGNED ) DIV - + col1 + - - col0, col0 AS col0 FROM tab2 cor0
----
46
46
64
64
76
75

skipif mysql # not compatible
query II rowsort label-7502
SELECT DISTINCT - CAST ( + + col0 AS INTEGER ) / - + col1 + - - col0, col0 AS col0 FROM tab2 cor0
----
46
46
64
64
76
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7503
SELECT - + ( - MAX( ALL + - 95 ) ) FROM tab2 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-7503
SELECT - + ( - MAX ( ALL + - 95 ) ) FROM tab2 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7504
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE NOT - + 51 + - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7505
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE NOT - + 51 + - col0 IS NOT NULL
----
0

query II rowsort
SELECT + col1 + col0 AS col0, col0 * - col0 FROM tab0
----
108
-7569
96
-225
98
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7507
SELECT ALL * FROM tab1 WHERE NOT ( col1 + + col1 + + + CAST( col0 AS SIGNED ) BETWEEN - col2 AND ( + col1 * + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-7507
SELECT ALL * FROM tab1 WHERE NOT ( col1 + + col1 + + + CAST ( col0 AS INTEGER ) BETWEEN - col2 AND ( + col1 * + col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7508
SELECT ALL + col1 * col0 DIV + col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7508
SELECT ALL + col1 * col0 / + col1 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT COUNT( * ) * 10 + - COUNT( * ) * + 33 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-7509
SELECT COUNT ( * ) * 10 + - COUNT ( * ) * + 33 FROM tab1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT DISTINCT - COUNT( * ) * - 7 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-7510
SELECT DISTINCT - COUNT ( * ) * - 7 FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT DISTINCT 43 * - COUNT( ALL + 69 ) FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-7511
SELECT DISTINCT 43 * - COUNT ( ALL + 69 ) FROM tab0
----
-129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + - + col2 col2, col2 FROM tab2
----
0
23
0
40
0
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7513
SELECT + CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7513
SELECT + CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * 75 FROM tab2
----
-1725
-3000
-4350

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE + col1 >= col0
----
15

query I rowsort
SELECT ALL - 41 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( + 85 ) - + + col1 + - 86 + 80 + - - col0 FROM tab2
----
66
74
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT + 20 * - COUNT( * ) + MIN( ALL - - 90 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-7518
SELECT + 20 * - COUNT ( * ) + MIN ( ALL - - 90 ) FROM tab0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7519
SELECT col2 + + - col0 - - - 5 DIV + - col0 + col1 AS col0 FROM tab2
----
28
50
53

skipif mysql # not compatible
query I rowsort label-7519
SELECT col2 + + - col0 - - - 5 / + - col0 + col1 AS col0 FROM tab2
----
28
50
53

query II rowsort
SELECT DISTINCT + 7 AS col2, col2 AS col1 FROM tab2 AS cor0
----
7
23
7
40
7
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 89 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT DISTINCT - SUM( - 94 ) AS col2 FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-7522
SELECT DISTINCT - SUM ( - 94 ) AS col2 FROM tab1 AS cor0
----
282

query II rowsort
SELECT DISTINCT - - col0, 28 AS col2 FROM tab0 cor0
----
15
28
87
28
97
28

query I rowsort
SELECT ( - 8 ) AS col0 FROM tab0 AS cor0
----
-8
-8
-8

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL + 87 * + 90 * - - ( - col2 ) - 61 FROM tab1 AS cor0
----
-462031
-532501
-751741

onlyif mysql # DIV for integer division: 
query I rowsort label-7527
SELECT DISTINCT + col0 * col1 DIV + col1 AS col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT + col0 * col1 / + col1 AS col0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT ALL 87 * + - MAX( ALL - + 48 ) * + 29 AS col0 FROM tab2
----
121104

skipif mysql # not compatible
query I rowsort label-7528
SELECT ALL 87 * + - MAX ( ALL - + 48 ) * + 29 AS col0 FROM tab2
----
121104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7529
SELECT + CAST( NULL AS SIGNED ) * + 82 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7529
SELECT + CAST ( NULL AS INTEGER ) * + 82 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 40 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE 97 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 / + + col2 * + - ( + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7533
SELECT + ( + COUNT( - 22 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7533
SELECT + ( + COUNT ( - 22 ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7534
SELECT - CAST( NULL AS SIGNED ) * SUM( col2 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7534
SELECT - CAST ( NULL AS INTEGER ) * SUM ( col2 ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 52 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2 * + 79 AS col0, - col1 AS col0 FROM tab2 AS cor0
----
1817
-51
3160
-77
4582
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT DISTINCT - 99 * + COUNT( * ) FROM tab2
----
-297

skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT - 99 * + COUNT ( * ) FROM tab2
----
-297

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + - col2 ) + 68 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7539
SELECT ALL + 22 + 64 + SUM( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-7539
SELECT ALL + 22 + 64 + SUM ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7540
SELECT ALL + - ( 56 ) + - CAST( 98 AS SIGNED ) + - COUNT( * ) + - - MIN( ALL - 40 ) FROM tab2 AS cor0
----
-197

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL + - ( 56 ) + - CAST ( 98 AS INTEGER ) + - COUNT ( * ) + - - MIN ( ALL - 40 ) FROM tab2 AS cor0
----
-197

query I rowsort
SELECT ( 49 ) AS col0 FROM tab1 cor0
----
49
49
49

query I rowsort
SELECT 53 * + col1 FROM tab0 AS cor0
----
1113
4293
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT + 60 * + - ( MAX( + col2 ) ) FROM tab2 AS cor0
----
-3480

skipif mysql # not compatible
query I rowsort label-7543
SELECT + 60 * + - ( MAX ( + col2 ) ) FROM tab2 AS cor0
----
-3480

query I rowsort
SELECT 58 * + col2 AS col1 FROM tab0
----
2726
5742
580

onlyif mysql # DIV for integer division: 
query I rowsort label-7545
SELECT ALL + 20 DIV - + 99 * - col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7545
SELECT ALL + 20 / - + 99 * - col1 AS col1 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE + col1 / col2 <= 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7547
SELECT - COUNT( col0 ) DIV + COUNT( * ) col0 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7547
SELECT - COUNT ( col0 ) / + COUNT ( * ) col0 FROM tab2
----
-1

query I rowsort
SELECT col2 - + ( + col0 ) AS col1 FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7549
SELECT ALL 5 + MAX( DISTINCT CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL 5 + MAX ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7550
SELECT DISTINCT 54 DIV - COUNT( * ) + + MAX( ALL + col1 ) - + COUNT( * ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-7550
SELECT DISTINCT 54 / - COUNT ( * ) + + MAX ( ALL + col1 ) - + COUNT ( * ) FROM tab0
----
60

query II rowsort
SELECT ALL - col0 AS col2, col1 + + col2 FROM tab1
----
-51
110
-85
64
-91
115

query I rowsort
SELECT + col1 FROM tab1 WHERE col1 + - + 30 IS NOT NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 14 + - col0 col0 FROM tab0
----
1289
53
643

query I rowsort
SELECT DISTINCT + + 80 - col0 * - 46 FROM tab2 AS cor0
----
2196
3024
3530

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7555
SELECT ALL + CAST( col1 AS SIGNED ) * + ( - + 86 ) + + - col0 * - col2 AS col0 FROM tab0 AS cor0
----
-6261
-936
9517

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL + CAST ( col1 AS INTEGER ) * + ( - + 86 ) + + - col0 * - col2 AS col0 FROM tab0 AS cor0
----
-6261
-936
9517

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 48 <= 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT + MAX( + + col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7557
SELECT + MAX ( + + col2 ) AS col1 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7558
SELECT ALL - 64 AS col0, + MAX( DISTINCT - + 56 ) + + COUNT( * ) * 19 FROM tab1 WHERE NULL IS NULL
----
-64
1

skipif mysql # not compatible
query II rowsort label-7558
SELECT ALL - 64 AS col0, + MAX ( DISTINCT - + 56 ) + + COUNT ( * ) * 19 FROM tab1 WHERE NULL IS NULL
----
-64
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7559
SELECT ALL - MAX( - 87 ) AS col2 FROM tab1 cor0
----
87

skipif mysql # not compatible
query I rowsort label-7559
SELECT ALL - MAX ( - 87 ) AS col2 FROM tab1 cor0
----
87

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * - - 62 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT DISTINCT + MAX( DISTINCT 27 ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7561
SELECT DISTINCT + MAX ( DISTINCT 27 ) FROM tab2 AS cor0
----
27

query I rowsort
SELECT ALL + col0 + col1 AS col1 FROM tab2 cor0 WHERE NOT 95 <= - col0 * col1
----
141
142
97

onlyif mysql # DIV for integer division: 
query II rowsort label-7563
SELECT - - col1 DIV - ( - col2 ) * + ( - col0 ) AS col2, + col1 AS col2 FROM tab1 cor0
----
0
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-7563
SELECT - - col1 / - ( - col2 ) * + ( - col0 ) AS col2, + col1 AS col2 FROM tab1 cor0
----
0
14
0
47
0
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7564
SELECT ALL + COUNT( ALL - col0 ) DIV - + 89 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7564
SELECT ALL + COUNT ( ALL - col0 ) / - + 89 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL 19 + 2 AS col2 FROM tab2 WHERE ( - 21 NOT BETWEEN ( ( + col1 ) ) AND ( NULL ) )
----
21
21
21

onlyif mysql # DIV for integer division: 
query I rowsort label-7566
SELECT 23 DIV ( - + 56 ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7566
SELECT 23 / ( - + 56 ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT * FROM tab0 WHERE ( + ( - - 61 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 42 * - 94 + ( + col1 ) FROM tab1
----
-3901
-3934
-3943

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT - COUNT( * ) + + + ( - 9 ) FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7569
SELECT - COUNT ( * ) + + + ( - 9 ) FROM tab1 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT ALL + MAX( + col0 ) + 8 AS col2 FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-7570
SELECT ALL + MAX ( + col0 ) + 8 AS col2 FROM tab2 AS cor0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-7571
SELECT + 37 + - 9 DIV + 60 FROM tab2 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-7571
SELECT + 37 + - 9 / + 60 FROM tab2 AS cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7572
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - + ( 56 ) AS col0 FROM tab0 AS cor0 WHERE NULL = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + ( + - 65 ) col2 FROM tab1 cor0
----
-18
-51
-60

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT ( NOT + col1 + - 85 IS NOT NULL )
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7576
SELECT - + CAST( - col0 AS SIGNED ) AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7576
SELECT - + CAST ( - col0 AS INTEGER ) AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL col2 - - + 32 AS col2 FROM tab1
----
100
128
91

query I rowsort
SELECT ( + 98 ) FROM tab2
----
98
98
98

query I rowsort
SELECT DISTINCT + col1 * + 83 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7580
SELECT COUNT( * ) DIV + SUM( DISTINCT + + col1 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7580
SELECT COUNT ( * ) / + SUM ( DISTINCT + + col1 ) FROM tab1
----
0

query I rowsort
SELECT col1 * ( + + col1 ) FROM tab2
----
2601
4489
5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7582
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - col0 * + 72 * col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7582
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - col0 * + 72 * col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab2 WHERE NOT - + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 WHERE NOT - 32 + - + 10 IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7585
SELECT - MIN( DISTINCT + CAST( - 74 AS SIGNED ) ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
74

skipif mysql # not compatible
query I rowsort label-7585
SELECT - MIN ( DISTINCT + CAST ( - 74 AS INTEGER ) ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7586
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) > + + col1 / + - col0 + + + col0
----

skipif mysql # not compatible
query III rowsort label-7586
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) > + + col1 / + - col0 + + + col0
----

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT col2 > NULL
----

query I rowsort
SELECT + + col0 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - ( 83 ) FROM tab0 AS cor0
----
-83
-83
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 * - - col1 * - - 0 * - col1 col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT + 32, - col1 AS col1 FROM tab0 AS cor0
----
32
-1
32
-21
32
-81

query II rowsort
SELECT ALL col1, 4 + col1 FROM tab1 AS cor0
----
14
18
47
51
5
9

query II rowsort
SELECT ALL col0 AS col2, - col0 FROM tab0 cor0
----
15
-15
87
-87
97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT DISTINCT + SUM( ALL + - col1 ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-7594
SELECT DISTINCT + SUM ( ALL + - col1 ) AS col1 FROM tab0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - ( - + col0 ), col1, - - col1 col1 FROM tab2
----
9 values hashing to 5d1784eb339014d636512f82887f25f7

query I rowsort
SELECT DISTINCT 89 FROM tab2 WHERE ( NULL ) > 64
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7597
SELECT + col2 DIV + 36 AS col0, - col0 FROM tab2
----
0
-46
1
-64
1
-75

skipif mysql # not compatible
query II rowsort label-7597
SELECT + col2 / + 36 AS col0, - col0 FROM tab2
----
0
-46
1
-64
1
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT ALL + MIN( DISTINCT col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-7598
SELECT ALL + MIN ( DISTINCT col1 ) AS col0 FROM tab2
----
51

query I rowsort
SELECT ALL - col1 + + - 35 - + - 97 FROM tab1
----
15
48
57

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < + + col2 - col2 + col0 * col0 + - + 64
----

query I rowsort
SELECT ALL 83 + ( - + ( + - ( + + col1 ) ) ) FROM tab2 AS cor0
----
134
150
160

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 6 > + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - ( - col2 ) col0, + col2 AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 53 col0 FROM tab1
----
-53
-53
-53

query I rowsort
SELECT 34 - col1 AS col1 FROM tab0 WHERE - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 + col2 <= - col0 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-7607
SELECT ALL - col0 + - + 53 DIV + col1 AS col2, + 10 AS col2 FROM tab1
----
-54
10
-92
10
-95
10

skipif mysql # not compatible
query II rowsort label-7607
SELECT ALL - col0 + - + 53 / + col1 AS col2, + 10 AS col2 FROM tab1
----
-54
10
-92
10
-95
10

query II rowsort
SELECT col2 AS col2, 39 AS col1 FROM tab2 AS cor0
----
23
39
40
39
58
39

query I rowsort
SELECT - + col0 * - col2 * + - ( + - 35 ) FROM tab1 AS cor0
----
171360
175525
216580

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7610
SELECT + + ( - + CAST( - col2 AS SIGNED ) ) FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7610
SELECT + + ( - + CAST ( - col2 AS INTEGER ) ) FROM tab2 cor0
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-7611
SELECT DISTINCT - + col0 - - 89 + - col1 DIV + col0 FROM tab0 AS cor0
----
-8
2
69

skipif mysql # not compatible
query I rowsort label-7611
SELECT DISTINCT - + col0 - - 89 + - col1 / + col0 FROM tab0 AS cor0
----
-8
2
69

query I rowsort
SELECT + 96 - - + col0 FROM tab0 AS cor0
----
111
183
193

query I rowsort
SELECT col0 + + + 28 FROM tab2
----
103
74
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT ALL ( - + COUNT( * ) ) * 21 AS col1 FROM tab1, tab1 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL ( - + COUNT ( * ) ) * 21 AS col1 FROM tab1, tab1 AS cor0
----
-189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7615
SELECT + + col1 * - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7615
SELECT + + col1 * - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7616
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 32 * 16 * + + col2 * CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7616
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 32 * 16 * + + col2 * CAST ( NULL AS INTEGER ) IS NULL
----
0

query I rowsort
SELECT ALL - col0 * - col2 * - col0 AS col0 FROM tab2
----
-163840
-326250
-48668

onlyif mysql # aggregate syntax: 
query I rowsort label-7618
SELECT DISTINCT - MAX( - + 40 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
40

skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT - MAX ( - + 40 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - col2 + col2, + col1 col0 FROM tab0 AS cor0
----
198
1
220
21
3854
81

query I rowsort
SELECT ALL - col1 * 21 FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND + 35
----

query I rowsort
SELECT + 6 * + 87 FROM tab0 AS cor0
----
522
522
522

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7622
SELECT DISTINCT - 69 / + - CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7622
SELECT DISTINCT - 69 / + - CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7623
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7623
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 15 col1 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT DISTINCT + + col0 AS col1 FROM tab1 AS cor0 WHERE + 60 IS NOT NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( col1 ) col2, - 44 FROM tab0
----
1
-44
21
-44
81
-44

query I rowsort
SELECT + col2 + 99 AS col1 FROM tab1
----
158
167
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT DISTINCT + MIN( + col0 ) col2 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7628
SELECT DISTINCT + MIN ( + col0 ) col2 FROM tab2
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7629
SELECT DISTINCT - COUNT( * ) + + ( - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) ) + ( + COUNT( * ) ), - MIN( ALL - + col0 ) AS col1 FROM tab2 cor0
----
0
75

skipif mysql # not compatible
query II rowsort label-7629
SELECT DISTINCT - COUNT ( * ) + + ( - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) + ( + COUNT ( * ) ), - MIN ( ALL - + col0 ) AS col1 FROM tab2 cor0
----
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT DISTINCT - MIN( - - 89 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-89

skipif mysql # not compatible
query I rowsort label-7630
SELECT DISTINCT - MIN ( - - 89 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT ALL SUM( + - ( - 10 ) ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL SUM ( + - ( - 10 ) ) FROM tab1
----
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7632
SELECT + AVG ( ALL + - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7632
SELECT + AVG ( ALL + - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT - COUNT( * ) * 41 FROM tab0 WHERE - 52 IS NOT NULL
----
-123

skipif mysql # not compatible
query I rowsort label-7633
SELECT - COUNT ( * ) * 41 FROM tab0 WHERE - 52 IS NOT NULL
----
-123

query I rowsort
SELECT ALL 26 * + + 99 + - col1 FROM tab2 AS cor0
----
2497
2507
2523

onlyif mysql # DIV for integer division: 
query I rowsort label-7635
SELECT ALL - + ( + col1 ) DIV - col1 + 87 + + 39 FROM tab0 AS cor0
----
127
127
127

skipif mysql # not compatible
query I rowsort label-7635
SELECT ALL - + ( + col1 ) / - col1 + 87 + + 39 FROM tab0 AS cor0
----
127
127
127

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 5 / - col2 - + 19 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * + 60 + + - ( - - col0 ) FROM tab0 AS cor0
----
-37
1173
4845

query I rowsort
SELECT DISTINCT + + 51 * + 56 FROM tab1 AS cor0
----
2856

query III rowsort
SELECT ALL * FROM tab0 WHERE - 4 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col0, - col2 + + col2 FROM tab2
----
46
0
64
0
75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT ALL + MAX( ALL ( - col0 ) ) * COUNT( DISTINCT 8 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL + MAX ( ALL ( - col0 ) ) * COUNT ( DISTINCT 8 ) FROM tab1
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= 38 / - col1
----

query I rowsort
SELECT + 43 * 16 FROM tab2
----
688
688
688

onlyif mysql # DIV for integer division: 
query I rowsort label-7644
SELECT DISTINCT - col1 DIV col2 - - col1 + + col0 AS col1 FROM tab0 AS cor0
----
106
95
98

skipif mysql # not compatible
query I rowsort label-7644
SELECT DISTINCT - col1 / col2 - - col1 + + col0 AS col1 FROM tab0 AS cor0
----
106
95
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7645
SELECT CAST( + + 37 AS SIGNED ) FROM tab0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-7645
SELECT CAST ( + + 37 AS INTEGER ) FROM tab0
----
37
37
37

query I rowsort
SELECT DISTINCT - + 3 AS col2 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT DISTINCT + MIN( ALL - 4 ) AS col1 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7647
SELECT DISTINCT + MIN ( ALL - 4 ) AS col1 FROM tab1 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT - SUM( + - col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-7648
SELECT - SUM ( + - col2 ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT + + 79 * + col1 FROM tab0 cor0
----
1659
6399
79

onlyif mysql # DIV for integer division: 
query II rowsort label-7650
SELECT + col2 DIV - col1 AS col2, 24 FROM tab1 AS cor0
----
-1
24
-11
24
-6
24

skipif mysql # not compatible
query II rowsort label-7650
SELECT + col2 / - col1 AS col2, 24 FROM tab1 AS cor0
----
-1
24
-11
24
-6
24

query II rowsort
SELECT 53, col2 FROM tab1
----
53
59
53
68
53
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7652
SELECT 72 DIV col1 col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7652
SELECT 72 / col1 col1 FROM tab2
----
0
1
1

query I rowsort
SELECT + col2 * - - col1 * - + 63 FROM tab1
----
-18585
-201348
-84672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - col0 ) col2 FROM tab1
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7655
SELECT + + col2 * - 44 AS col2, - CAST( + col0 AS SIGNED ) / - col1 + - + 43 AS col2 FROM tab2 WHERE - + col1 * - 5 + 10 + + 17 IS NULL
----

skipif mysql # not compatible
query II rowsort label-7655
SELECT + + col2 * - 44 AS col2, - CAST ( + col0 AS INTEGER ) / - col1 + - + 43 AS col2 FROM tab2 WHERE - + col1 * - 5 + 10 + + 17 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col0 AS col0, - ( 86 ) AS col0 FROM tab0
----
-15
-86
-87
-86
-97
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT - MIN( + + col0 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7658
SELECT - MIN ( + + col0 ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + col2 - - col0 + - ( - col1 ) * + 35, + 57 col2 FROM tab2
----
1803
57
2411
57
2722
57

query I rowsort
SELECT DISTINCT 7 * - col2 + col0 AS col1 FROM tab1 AS cor0
----
-328
-385
-621

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT ALL - COUNT( + 31 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL - COUNT ( + 31 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 14 + - + col2 AS col2 FROM tab0 AS cor0
----
-33
-85
4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 / 61 IS NOT NULL
----

query I rowsort
SELECT col0 - + col0 * col1 AS col0 FROM tab1 cor0
----
-340
-4186
-663

query I rowsort
SELECT ALL 56 + - col0 * - 88 FROM tab0 AS cor0
----
1376
7712
8592

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - - col2 col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT - COUNT( * ) * + + 87 + + SUM( DISTINCT + 12 ) AS col2 FROM tab1 AS cor0 WHERE NOT 27 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7667
SELECT - COUNT ( * ) * + + 87 + + SUM ( DISTINCT + 12 ) AS col2 FROM tab1 AS cor0 WHERE NOT 27 < NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 57 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7669
SELECT ALL + col2 * - col1 DIV ( + col2 ) DIV + col2 * col0 * 20 DIV - - col1 + - col0 - - col2 + col1 AS col0 FROM tab1 AS cor0
----
-21
24
59

skipif mysql # not compatible
query I rowsort label-7669
SELECT ALL + col2 * - col1 / ( + col2 ) / + col2 * col0 * 20 / - - col1 + - col0 - - col2 + col1 AS col0 FROM tab1 AS cor0
----
-21
24
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT DISTINCT - - 80 * - - COUNT( * ) * - 16 FROM tab2 AS cor0
----
-3840

skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT - - 80 * - - COUNT ( * ) * - 16 FROM tab2 AS cor0
----
-3840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7671
SELECT CAST( + 47 AS SIGNED ) FROM tab2
----
47
47
47

skipif mysql # not compatible
query I rowsort label-7671
SELECT CAST ( + 47 AS INTEGER ) FROM tab2
----
47
47
47

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 - - col2 BETWEEN NULL AND 3
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 89 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 93 * + - col2 * - + 22 AS col1 FROM tab0
----
202554
20460
96162

query I rowsort
SELECT - + col2 AS col2 FROM tab0 WHERE NOT - col2 IS NULL
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 99 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT 11 * + 24 * col0 FROM tab2
----
12144
16896
19800

onlyif mysql # DIV for integer division: 
query I rowsort label-7678
SELECT + 22 DIV col1 DIV + col2 + + col2 * col1 + 19 * - - col1 col0 FROM tab2 AS cor0
----
2142
4543
5159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7678
SELECT + 22 / col1 / + col2 + + col2 * col1 + 19 * - - col1 col0 FROM tab2 AS cor0
----
2142
4543
5159

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 IS NULL AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7680
SELECT + - CAST( + COUNT( - 85 ) AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7680
SELECT + - CAST ( + COUNT ( - 85 ) AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

query II rowsort
SELECT + - 11 AS col0, + 3 FROM tab0 AS cor0
----
-11
3
-11
3
-11
3

query I rowsort
SELECT DISTINCT - + col2 AS col0 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * - 61 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 * + col0 + + col0 - - col2 FROM tab2 AS cor0
----
2415
5032
5158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 * 69 * - col0 col0 FROM tab0 AS cor0
----
232875
45436707
62974437

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 37 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( + 62 ) FROM tab2 AS cor0
----
62

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN 18 + col2 AND col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 39 < NULL
----

query I rowsort
SELECT DISTINCT + - 93 * 84 AS col0 FROM tab1 cor0
----
-7812

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 22 + + col0 < + 32
----
87
21
10
97
1
99

query I rowsort
SELECT + col1 + - - 48 FROM tab1
----
53
62
95

onlyif mysql # DIV for integer division: 
query I rowsort label-7693
SELECT ALL + col0 DIV col2 DIV + 68 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7693
SELECT ALL + col0 / col2 / + 68 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7694
SELECT DISTINCT - SUM( DISTINCT + col0 ) DIV 14 - - - COUNT( * ) FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-7694
SELECT DISTINCT - SUM ( DISTINCT + col0 ) / 14 - - - COUNT ( * ) FROM tab2
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-7695
SELECT + col2 DIV col0 + 90 FROM tab2
----
90
90
90

skipif mysql # not compatible
query I rowsort label-7695
SELECT + col2 / col0 + 90 FROM tab2
----
90
90
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7696
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN + - col0 * - - col2 AND 70 * 93
----

skipif mysql # not compatible
query III rowsort label-7696
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN + - col0 * - - col2 AND 70 * 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT ALL - 39 + - ( - - COUNT( * ) ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-7697
SELECT ALL - 39 + - ( - - COUNT ( * ) ) FROM tab2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT + COUNT( - - 72 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7698
SELECT + COUNT ( - - 72 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7699
SELECT + col1 AS col1, 7 FROM tab2 AS cor0 WHERE - 17 - - 54 + CAST( NULL AS DECIMAL ) - - + CAST( NULL AS SIGNED ) * col0 + col0 * - col1 + - col0 / - + col1 * + col0 > NULL
----

skipif mysql # not compatible
query II rowsort label-7699
SELECT + col1 AS col1, 7 FROM tab2 AS cor0 WHERE - 17 - - 54 + CAST ( NULL AS REAL ) - - + CAST ( NULL AS INTEGER ) * col0 + col0 * - col1 + - col0 / - + col1 * + col0 > NULL
----

query II rowsort
SELECT ALL - ( col2 ) AS col0, 46 * - 16 + col0 AS col0 FROM tab1 cor0
----
-59
-651
-68
-645
-96
-685

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT DISTINCT - SUM( ALL + 86 ) AS col0 FROM tab1
----
-258

skipif mysql # not compatible
query I rowsort label-7701
SELECT DISTINCT - SUM ( ALL + 86 ) AS col0 FROM tab1
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT DISTINCT + 17 * - 88 * + MIN( + 88 ) AS col0 FROM tab1
----
-131648

skipif mysql # not compatible
query I rowsort label-7702
SELECT DISTINCT + 17 * - 88 * + MIN ( + 88 ) AS col0 FROM tab1
----
-131648

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT + COUNT( * ) + - 92 AS col1 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-7703
SELECT + COUNT ( * ) + - 92 AS col1 FROM tab2
----
-89

query I rowsort
SELECT - + 61 + col1 * - col1 + + + col0 FROM tab2 AS cor0
----
-2616
-4475
-5926

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7705
SELECT DISTINCT - + CAST( - col2 AS SIGNED ) FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7705
SELECT DISTINCT - + CAST ( - col2 AS INTEGER ) FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT ALL 43 * 76 AS col2 FROM tab2 AS cor0
----
3268
3268
3268

query I rowsort
SELECT DISTINCT - + 29 AS col1 FROM tab1 AS cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT DISTINCT + + MAX( ALL - 71 ) FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-7708
SELECT DISTINCT + + MAX ( ALL - 71 ) FROM tab0 AS cor0
----
-71

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT + ( + + col0 ) AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT col1 * - - col2 * col1 AS col2 FROM tab1
----
1475
150212
18816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 26 ) / + - col1 col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT col1 AS col0, col2, + + col1 AS col1 FROM tab0
----
9 values hashing to 65368f27d1aead3101b4cfb29d8ee3cb

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7714
SELECT DISTINCT col0 * + col2 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7714
SELECT DISTINCT col0 * + col2 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query II rowsort
SELECT - col0 AS col0, col2 AS col0 FROM tab1
----
-51
96
-85
59
-91
68

query I rowsort
SELECT ALL + 5 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT DISTINCT MIN( ALL + + col1 ) AS col1 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-7717
SELECT DISTINCT MIN ( ALL + + col1 ) AS col1 FROM tab1 cor0
----
5

query I rowsort
SELECT DISTINCT + 10 FROM tab0 cor0
----
10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 37 BETWEEN + - 83 * + col0 + + - col0 AND ( col0 )
----

query I rowsort
SELECT 49 * ( 65 ) FROM tab1 AS cor0
----
3185
3185
3185

query I rowsort
SELECT ALL + - col1 * + - col1 AS col1 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT ALL 90 * - + col2 FROM tab1
----
-5310
-6120
-8640

query I rowsort
SELECT + 56 + + + 11 * 41 * col0 AS col2 FROM tab1
----
23057
38391
41097

onlyif mysql # aggregate syntax: 
query I rowsort label-7724
SELECT ( + + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7724
SELECT ( + + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7725
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( + ( col0 ) * - + 82 * - col0 IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( + ( col0 ) * - + 82 * - col0 IS NOT NULL )
----

query I rowsort
SELECT - col2 * - col0 * - + 8 + - - col2 AS col1 FROM tab1 AS cor0
----
-39072
-40061
-49436

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + - 85 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7728
SELECT + + CAST( NULL AS SIGNED ) * + 20 + - CAST( NULL AS DECIMAL ) + + - col1 * col2 + - col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7728
SELECT + + CAST ( NULL AS INTEGER ) * + 20 + - CAST ( NULL AS REAL ) + + - col1 * col2 + - col0 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NOT - col0 IS NULL )
----

query I rowsort
SELECT DISTINCT ( - - col1 ) * - col2 + + + col0 AS col0 FROM tab1 AS cor0
----
-1293
-210
-3105

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT DISTINCT + - ( + COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT + - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + + col0 * + 32 + col0 + + col0 + col1 * + - col0 FROM tab0 AS cor0
----
-705
1131
3201

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

query II rowsort
SELECT DISTINCT 97 * col2 * + 61 AS col0, - col2 + 75 * col0 * - + col1 AS col0 FROM tab2 AS cor0
----
136091
-175973
236680
-369640
343186
-376933

query II rowsort
SELECT ALL - col0, + col0 FROM tab1
----
-51
51
-85
85
-91
91

query I rowsort
SELECT 64 * + ( + 17 ) * - col0 AS col1 FROM tab2
----
-50048
-69632
-81600

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT NULL IN ( - col1, + col1 )
----

query I rowsort
SELECT - col2 * 42 AS col0 FROM tab2
----
-1680
-2436
-966

query I rowsort
SELECT col1 - + + 0 + + col1 FROM tab0
----
162
2
42

query I rowsort
SELECT DISTINCT + + 9 FROM tab1 WHERE - col0 + - 58 + + - 37 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7741
SELECT - COUNT( * ) DIV - - 76 AS col1 FROM tab0 AS cor0 WHERE 98 <= col0
----
0

skipif mysql # not compatible
query I rowsort label-7741
SELECT - COUNT ( * ) / - - 76 AS col1 FROM tab0 AS cor0 WHERE 98 <= col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7742
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - col0 / + col1 * + + col2 * + 16 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7742
SELECT DISTINCT - CAST ( NULL AS REAL ) + - col0 / + col1 * + + col2 * + 16 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 0 + + col0 col0 FROM tab0 cor0
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7744
SELECT + CAST( NULL AS SIGNED ) * - COUNT( * ) + - 52 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7744
SELECT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 52 AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE + col1 >= col1
----
-14
-47
-5

query II rowsort
SELECT ALL + col0 * - 76 + + - col0 AS col2, 56 AS col0 FROM tab2 AS cor0
----
-3542
56
-4928
56
-5775
56

query I rowsort
SELECT DISTINCT + - 18 - + col2 FROM tab1 AS cor0
----
-114
-77
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT ALL + 57 - 99 * ( COUNT( * ) ) col1 FROM tab0
----
-240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7748
SELECT ALL + 57 - 99 * ( COUNT ( * ) ) col1 FROM tab0
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT DISTINCT 93 * - - COUNT( * ) AS col1 FROM tab0, tab0 AS cor0
----
837

skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT 93 * - - COUNT ( * ) AS col1 FROM tab0, tab0 AS cor0
----
837

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7750
SELECT - - 89 * + - CAST( NULL AS SIGNED ) * MAX( DISTINCT + col2 ) * + CAST( + - AVG ( ALL + 54 ) AS DECIMAL ) / SUM( ( + col2 ) ) + 12 - - AVG ( - col1 ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7750
SELECT - - 89 * + - CAST ( NULL AS INTEGER ) * MAX ( DISTINCT + col2 ) * + CAST ( + - AVG ( ALL + 54 ) AS REAL ) / SUM ( ( + col2 ) ) + 12 - - AVG ( - col1 ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT - ( - COUNT( * ) ) * - + 97 FROM tab2 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-7751
SELECT - ( - COUNT ( * ) ) * - + 97 FROM tab2 AS cor0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT MIN( + 51 ) AS col0 FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-7752
SELECT MIN ( + 51 ) AS col0 FROM tab2 cor0
----
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 - - - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7754
SELECT + - col1 * 9 DIV + ( - - col2 ) + 12 FROM tab1 AS cor0
----
11
12
6

skipif mysql # not compatible
query I rowsort label-7754
SELECT + - col1 * 9 / + ( - - col2 ) + 12 FROM tab1 AS cor0
----
11
12
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT + MIN( ALL - ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7755
SELECT + MIN ( ALL - ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7756
SELECT DISTINCT - 46 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7756
SELECT DISTINCT - 46 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 <> + 10 * + + col1 + 96
----

query I rowsort
SELECT + 32 * + 74 AS col1 FROM tab0
----
2368
2368
2368

query I rowsort
SELECT ALL col2 * - col0 - ( + - 56 ) + + - col2 * - + col1 FROM tab2 AS cor0
----
-408
171
576

onlyif mysql # aggregate syntax: 
query I rowsort label-7760
SELECT ALL - - MIN( + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7760
SELECT ALL - - MIN ( + col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL 16 + + 93 FROM tab2 AS cor0
----
109
109
109

query I rowsort
SELECT ALL - 17 + + ( - + 2 ) FROM tab2 cor0
----
-19
-19
-19

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 30 * - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( + ( - 62 ) ) FROM tab0
----
-62
-62
-62

query I rowsort
SELECT + + col0 AS col1 FROM tab2 WHERE - 37 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN + 97 AND NULL
----

query I rowsort
SELECT - col2 FROM tab0 WHERE ( - 45 BETWEEN - 51 / - 18 AND - 51 )
----

query I rowsort
SELECT col2 * - 29 AS col2 FROM tab1
----
-1711
-1972
-2784

query II rowsort
SELECT ( col1 ), col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7770
SELECT ALL CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7770
SELECT ALL CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL + - col1 - - - ( + + col2 ) + - - col1 * - col1 FROM tab1 AS cor0
----
-2324
-306
-89

onlyif mysql # DIV for integer division: 
query II rowsort label-7772
SELECT 24, 4 DIV + col0 AS col2 FROM tab1
----
24
0
24
0
24
0

skipif mysql # not compatible
query II rowsort label-7772
SELECT 24, 4 / + col0 AS col2 FROM tab1
----
24
0
24
0
24
0

query I rowsort
SELECT + - 82 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

onlyif mysql # DIV for integer division: 
query I rowsort label-7774
SELECT ALL - ( - col1 ) DIV + col2 AS col0 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL - ( - col1 ) / + col2 AS col0 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7775
SELECT DISTINCT + + SUM( DISTINCT 6 ) DIV 40 * - + 71 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7775
SELECT DISTINCT + + SUM ( DISTINCT 6 ) / 40 * - + 71 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL col0, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT - col0 * + - 95 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT ALL + COUNT( + + 73 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL + COUNT ( + + 73 ) FROM tab0 cor0
----
3

query I rowsort
SELECT ALL + + col1 FROM tab0 AS cor0 WHERE 84 + - + col2 IS NOT NULL
----
1
21
81

query I rowsort
SELECT DISTINCT + col1 * - + 34 AS col2 FROM tab0
----
-2754
-34
-714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7781
SELECT ALL - COUNT( * ) DIV 45 DIV ( - 46 ) col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7781
SELECT ALL - COUNT ( * ) / 45 / ( - 46 ) col0 FROM tab2
----
0

query II rowsort
SELECT DISTINCT col0, col0 AS col0 FROM tab0 WHERE - - col2 * - 70 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7783
SELECT MIN( + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT MIN ( + CAST ( NULL AS REAL ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT ALL - ( - + COUNT( col2 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7784
SELECT ALL - ( - + COUNT ( col2 ) ) FROM tab2
----
3

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - 22 ) * + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7786
SELECT ALL + + ( 99 ) * + col1 + + + CAST( + - ( - 7 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
5056
6640
7630

skipif mysql # not compatible
query I rowsort label-7786
SELECT ALL + + ( 99 ) * + col1 + + + CAST ( + - ( - 7 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
5056
6640
7630

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7787
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7787
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT + ( + + SUM( ALL 57 ) ) + - ( - + COUNT( * ) ) FROM tab0 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-7788
SELECT + ( + + SUM ( ALL 57 ) ) + - ( - + COUNT ( * ) ) FROM tab0 AS cor0
----
174

query I rowsort
SELECT + - col1 * + + col2 - 15 + + col1 + + col2 * + col2 FROM tab1 AS cor0
----
1460
3176
7871

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 15 * + 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7791
SELECT + 64 col1, COUNT( * ) FROM tab2 cor0
----
64
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7791
SELECT + 64 col1, COUNT ( * ) FROM tab2 cor0
----
64
3

query I rowsort
SELECT ALL col1 * ( 67 ) + - col2 * col2 * + + 44 FROM tab1 cor0
----
-152829
-200307
-404566

query I rowsort
SELECT ALL col2 - + col0 AS col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT DISTINCT + col1 + - - 99 AS col2 FROM tab2 AS cor0
----
150
166
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7795
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) + 3 BETWEEN NULL AND NULL OR NOT col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) + 3 BETWEEN NULL AND NULL OR NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL 3 * + col1 AS col1 FROM tab0
----
243
3
63

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE + + col1 NOT BETWEEN + col2 * + + col2 + + col0 AND NULL
----
51
67
77

query I rowsort
SELECT ALL 82 - + 68 FROM tab0
----
14
14
14

query I rowsort
SELECT ALL - col2 * 52 AS col0 FROM tab2
----
-1196
-2080
-3016

onlyif mysql # DIV for integer division: 
query I rowsort label-7800
SELECT ALL + 17 * col2 DIV - col1 FROM tab1
----
-116
-200
-24

skipif mysql # not compatible
query I rowsort label-7800
SELECT ALL + 17 * col2 / - col1 FROM tab1
----
-116
-200
-24

query I rowsort
SELECT + col1 * + col1 AS col2 FROM tab1 WHERE - col1 - col0 BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7802
SELECT ALL - 84 * - + MAX( ALL + col1 ) FROM tab1
----
3948

skipif mysql # not compatible
query I rowsort label-7802
SELECT ALL - 84 * - + MAX ( ALL + col1 ) FROM tab1
----
3948

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7803
SELECT DISTINCT 21 - MAX( DISTINCT col1 ) - - + COUNT( * ) * - CAST( NULL AS DECIMAL ) / + 36, 55 AS col2 FROM tab1 cor0
----
NULL
55

skipif mysql # not compatible
query II rowsort label-7803
SELECT DISTINCT 21 - MAX ( DISTINCT col1 ) - - + COUNT ( * ) * - CAST ( NULL AS REAL ) / + 36, 55 AS col2 FROM tab1 cor0
----
NULL
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT - + COUNT( * ) + + 87 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-7804
SELECT - + COUNT ( * ) + + 87 FROM tab2 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT ALL + COUNT( * ) * ( - 27 ) FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7805
SELECT ALL + COUNT ( * ) * ( - 27 ) FROM tab2 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-7806
SELECT DISTINCT + 6 DIV + col2 col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7806
SELECT DISTINCT + 6 / + col2 col0 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < 23
----

query I rowsort
SELECT - + 85 AS col2 FROM tab1 cor0
----
-85
-85
-85

query II rowsort
SELECT + col0 AS col2, col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT 54 * + - col0 AS col0 FROM tab0 AS cor0
----
-4698
-5238
-810

query II rowsort
SELECT col2, col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT ALL + 76 * + COUNT( * ) FROM tab2 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-7812
SELECT ALL + 76 * + COUNT ( * ) FROM tab2 AS cor0
----
228

onlyif mysql # DIV for integer division: 
query I rowsort label-7813
SELECT + col0 DIV - 71 + col2 FROM tab0 AS cor0
----
47
9
98

skipif mysql # not compatible
query I rowsort label-7813
SELECT + col0 / - 71 + col2 FROM tab0 AS cor0
----
47
9
98

query I rowsort
SELECT + col0 * + - col0 AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + 9 + - col2 AND - 19
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7816
SELECT ALL 82 AS col2, SUM( + col1 ) FROM tab0
----
82
103

skipif mysql # not compatible
query II rowsort label-7816
SELECT ALL 82 AS col2, SUM ( + col1 ) FROM tab0
----
82
103

onlyif mysql # DIV for integer division: 
query I rowsort label-7817
SELECT ALL + 77 DIV + + 51 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7817
SELECT ALL + 77 / + + 51 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT - col1 + 61 FROM tab1
----
14
47
56

query I rowsort
SELECT + col1 + + col0 * - + col1 AS col1 FROM tab1
----
-420
-4230
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT DISTINCT + ( - 69 ) * COUNT( * ) + + 29 AS col1 FROM tab2, tab0 AS cor0
----
-592

skipif mysql # not compatible
query I rowsort label-7820
SELECT DISTINCT + ( - 69 ) * COUNT ( * ) + + 29 AS col1 FROM tab2, tab0 AS cor0
----
-592

onlyif mysql # aggregate syntax: 
query II rowsort label-7821
SELECT DISTINCT 80 AS col1, - COUNT( * ) AS col1 FROM tab0
----
80
-3

skipif mysql # not compatible
query II rowsort label-7821
SELECT DISTINCT 80 AS col1, - COUNT ( * ) AS col1 FROM tab0
----
80
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT DISTINCT + + MIN( + col2 ) col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7822
SELECT DISTINCT + + MIN ( + col2 ) col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT 36 AS col0 FROM tab1 AS cor0 WHERE - col0 * col1 * col1 IS NOT NULL
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-7824
SELECT col1 DIV col2 + 73 FROM tab1
----
73
73
73

skipif mysql # not compatible
query I rowsort label-7824
SELECT col1 / col2 + 73 FROM tab1
----
73
73
73

query I rowsort
SELECT 65 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7826
SELECT - col0 DIV 44 AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7826
SELECT - col0 / 44 AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7827
SELECT col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7827
SELECT col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 8 FROM tab1 WHERE ( - col2 + 32 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7829
SELECT * FROM tab1 WHERE ( 10 + - CAST( NULL AS SIGNED ) ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-7829
SELECT * FROM tab1 WHERE ( 10 + - CAST ( NULL AS INTEGER ) ) <= NULL
----

query I rowsort
SELECT ALL 53 + - col1 * - 59 FROM tab1
----
2826
348
879

query III rowsort
SELECT ALL * FROM tab2 WHERE - 30 + col0 * + col2 > - col0 + 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT - SUM( col2 ) AS col2 FROM tab2 WHERE NOT ( 15 + + col1 * col0 ) NOT BETWEEN col1 + col1 AND - 94
----
NULL

skipif mysql # not compatible
query I rowsort label-7832
SELECT - SUM ( col2 ) AS col2 FROM tab2 WHERE NOT ( 15 + + col1 * col0 ) NOT BETWEEN col1 + col1 AND - 94
----
NULL

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT ( 68 ) = + 84 * col1
----
-51
-85
-91

query I rowsort
SELECT - 32 * - 46 FROM tab0
----
1472
1472
1472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7835
SELECT col1 * CAST( - 15 AS SIGNED ) AS col1 FROM tab1
----
-210
-705
-75

skipif mysql # not compatible
query I rowsort label-7835
SELECT col1 * CAST ( - 15 AS INTEGER ) AS col1 FROM tab1
----
-210
-705
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-7836
SELECT ALL - ( col2 ) + + col1 DIV 49 AS col2 FROM tab2
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL - ( col2 ) + + col1 / 49 AS col2 FROM tab2
----
-22
-39
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT DISTINCT MIN( DISTINCT ( + 8 ) ) * COUNT( * ) AS col2 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-7837
SELECT DISTINCT MIN ( DISTINCT ( + 8 ) ) * COUNT ( * ) AS col2 FROM tab2
----
24

query I rowsort
SELECT 8 - + 18 AS col0 FROM tab1
----
-10
-10
-10

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 94 * - col1 <> col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7840
SELECT DISTINCT col1 DIV 71 AS col2 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-7840
SELECT DISTINCT col1 / 71 AS col2 FROM tab0
----
0
1

query I rowsort
SELECT - ( col0 ) * 16 + + col2 FROM tab0
----
-1382
-1453
-193

query I rowsort
SELECT DISTINCT + 82 * + AVG ( col1 ) FROM tab0 WHERE NOT 80 NOT IN ( - col2 )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 + - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 63 IS NULL
----

query I rowsort
SELECT DISTINCT - 19 * 28 FROM tab1 WHERE ( + col0 ) = - col0 / col0
----

query I rowsort
SELECT - 14 - 86 FROM tab0
----
-100
-100
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT DISTINCT 26 + SUM( ALL 0 ) AS col1 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-7847
SELECT DISTINCT 26 + SUM ( ALL 0 ) AS col1 FROM tab2
----
26

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7848
SELECT DISTINCT + 6 - + 63 * - col2 FROM tab2 WHERE + col1 + - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT + 6 - + 63 * - col2 FROM tab2 WHERE + col1 + - CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7849
SELECT DISTINCT + COUNT( - col2 ) + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-7849
SELECT DISTINCT + COUNT ( - col2 ) + COUNT ( * ) FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7850
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( 88 * + CAST( 35 / - col2 AS SIGNED ) + + 98 )
----

skipif mysql # not compatible
query III rowsort label-7850
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( 88 * + CAST ( 35 / - col2 AS INTEGER ) + + 98 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + col0 col1 FROM tab2 AS cor0 WHERE - ( + 34 ) <> 93 / + col0
----
0

query I rowsort
SELECT DISTINCT 13 * col2 AS col2 FROM tab1 AS cor0
----
1248
767
884

onlyif mysql # aggregate syntax: 
query I rowsort label-7853
SELECT - COUNT( * ) * 92 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
-828

skipif mysql # not compatible
query I rowsort label-7853
SELECT - COUNT ( * ) * 92 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT - COUNT( * ) + 88 FROM tab0 AS cor0 CROSS JOIN tab2
----
79

skipif mysql # not compatible
query I rowsort label-7854
SELECT - COUNT ( * ) + 88 FROM tab0 AS cor0 CROSS JOIN tab2
----
79

query I rowsort
SELECT ALL + - 60 FROM tab2 cor0
----
-60
-60
-60

query I rowsort
SELECT DISTINCT + - 29 * - 88 AS col0 FROM tab1 AS cor0
----
2552

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7857
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 21 NOT BETWEEN - col0 * 90 AND CAST( + col2 AS SIGNED ) * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7857
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 21 NOT BETWEEN - col0 * 90 AND CAST ( + col2 AS INTEGER ) * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * - 61 AS col2 FROM tab0 AS cor0
----
-2867
-6039
-610

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col0 >= col0 * 15
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7860
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7860
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 ) >= ( ( 11 ) * - col2 )
----

query I rowsort
SELECT col1 * - 93 FROM tab1 AS cor0
----
-1302
-4371
-465

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT 97 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT MAX( col0 ) - 89 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN + col0 / 99 - 49 AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7864
SELECT MAX ( col0 ) - 89 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN + col0 / 99 - 49 AND ( NULL )
----
NULL

query I rowsort
SELECT + 50 * + 93 FROM tab2
----
4650
4650
4650

query I rowsort
SELECT ALL + 50 * + col1 AS col0 FROM tab1
----
2350
250
700

query I rowsort
SELECT - 16 * + col2 AS col2 FROM tab2
----
-368
-640
-928

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT DISTINCT 4 * - COUNT( * ) AS col1 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-7868
SELECT DISTINCT 4 * - COUNT ( * ) AS col1 FROM tab0
----
-12

query I rowsort
SELECT + col0 * 67 - + ( 85 ) AS col0 FROM tab0 WHERE NOT + col1 IN ( col1 + - col1 )
----
5744
6414
920

query I rowsort
SELECT DISTINCT - ( + col1 ) AS col2 FROM tab0 WHERE NOT 78 + + col1 NOT IN ( 92 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7871
SELECT ALL - 23 DIV + 28 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7871
SELECT ALL - 23 / + 28 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT NULL <> ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7873
SELECT - ( CAST( + col0 AS SIGNED ) ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7873
SELECT - ( CAST ( + col0 AS INTEGER ) ) FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL - 40 + - col0 FROM tab1
----
-125
-131
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT ALL MAX( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7875
SELECT ALL MAX ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 < ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7877
SELECT + 95 DIV 80 + - 4 FROM tab1 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-7877
SELECT + 95 / 80 + - 4 FROM tab1 AS cor0
----
-3
-3
-3

query I rowsort
SELECT - col2 + 43 AS col2 FROM tab1 AS cor0
----
-16
-25
-53

query I rowsort
SELECT - ( + - 86 ) + + col2 FROM tab1 cor0
----
145
154
182

query I rowsort
SELECT 67 * 98 FROM tab2 AS cor0 WHERE + col2 NOT IN ( - col2 )
----
6566
6566
6566

query I rowsort
SELECT col1 + + ( + col0 ) * col0 FROM tab2 AS cor0 WHERE ( NULL ) <> ( col1 )
----

query I rowsort
SELECT + col1 + + col1 + + col2 AS col2 FROM tab1
----
124
162
69

query I rowsort
SELECT - col0 * col2 + - col0 - - ( col2 ) AS col0 FROM tab0
----
-673
-947
-9601

query I rowsort
SELECT ALL 82 * 44 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9ba722e9d204610ac00c355023669577

query I rowsort
SELECT ALL + 18 AS col1 FROM tab0 WHERE NOT - 40 IS NOT NULL
----

query I rowsort
SELECT ALL col1 + - 77 AS col0 FROM tab1 AS cor0
----
-30
-63
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-7887
SELECT + 37 DIV ( + col2 ) AS col0 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7887
SELECT + 37 / ( + col2 ) AS col0 FROM tab2 cor0
----
0
0
1

query I rowsort
SELECT + + col1 - + col0 * - 2 FROM tab2 AS cor0
----
143
205
217

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 = - + col0 - col2
----

query I rowsort
SELECT - col1 - - col2 + + col1 * 94 AS col0 FROM tab0 AS cor0
----
192
1963
7580

query I rowsort
SELECT ALL + col0 + + + col1 * col1 * - col2 AS col0 FROM tab2 AS cor0
----
-237096
-260287
-59777

query I rowsort
SELECT DISTINCT - 62 FROM tab1 cor0 WHERE ( col1 ) IS NOT NULL
----
-62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 61 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7894
SELECT + - col0 - - + 72 + - CAST( NULL AS SIGNED ) * + col0 * 14 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7894
SELECT + - col0 - - + 72 + - CAST ( NULL AS INTEGER ) * + col0 * 14 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + + 79 ) - + col2 + 86 col1 FROM tab0 cor0
----
118
155
66

onlyif mysql # DIV for integer division: 
query I rowsort label-7896
SELECT ALL + 71 - col2 * + + col1 DIV col1 AS col0 FROM tab0 AS cor0
----
-28
24
61

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL + 71 - col2 * + + col1 / col1 AS col0 FROM tab0 AS cor0
----
-28
24
61

query I rowsort
SELECT - 89 - - 20 FROM tab1
----
-69
-69
-69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7898
SELECT * FROM tab1 WHERE ( - - 63 ) IN ( - col0 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7898
SELECT * FROM tab1 WHERE ( - - 63 ) IN ( - col0 * CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT - MAX( ALL + col1 ) * 96 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7899
SELECT - MAX ( ALL + col1 ) * 96 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 95 - col2 - 90 - 28 FROM tab0
----
-122
-33
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7901
SELECT ALL * FROM tab2 WHERE - col1 * col1 + - CAST( NULL AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query III rowsort label-7901
SELECT ALL * FROM tab2 WHERE - col1 * col1 + - CAST ( NULL AS REAL ) < NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT ( + + 90 ) IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7903
SELECT 26 DIV - + col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7903
SELECT 26 / - + col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + col0 + col2 FROM tab2 AS cor0 WHERE NOT col1 >= NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 44 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 50 col2 FROM tab1
----
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT - + MIN( + - 36 ) * - 6 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-7907
SELECT - + MIN ( + - 36 ) * - 6 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( col0 ) BETWEEN + col0 AND + col0
----
0

skipif mysql # not compatible
query I rowsort label-7908
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( col0 ) BETWEEN + col0 AND + col0
----
0

query II rowsort
SELECT ALL + + 58 + + - col1 + + 21, - 94 AS col1 FROM tab0 AS cor0
----
-2
-94
58
-94
78
-94

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col2 + 15 - + + col2 * + + ( + col2 ) + 82 ) IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col1 * 99 + + col1 AS col2 FROM tab0 AS cor0
----
-2058
-7938
-98

query II rowsort
SELECT - col2 AS col0, col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( col0 / + col2 + - col2 - 12 + + 73 ) AND ( 16 )
----

query III rowsort
SELECT * FROM tab2 WHERE - + col0 * - col1 * - + col2 + + col1 + 30 - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7915
SELECT COUNT( * ) col0 FROM tab0 WHERE ( ( NULL ) BETWEEN col1 AND - - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7915
SELECT COUNT ( * ) col0 FROM tab0 WHERE ( ( NULL ) BETWEEN col1 AND - - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT ALL - COUNT( DISTINCT ( + 31 ) ) * - COUNT( * ) FROM tab2 WHERE NOT 18 >= col0 + 69 * + col1 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL - COUNT ( DISTINCT ( + 31 ) ) * - COUNT ( * ) FROM tab2 WHERE NOT 18 >= col0 + 69 * + col1 * - col2
----
0

query I rowsort
SELECT ALL - col0 + - col2 + + + col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT - 1 + + col2 FROM tab2
----
22
39
57

query I rowsort
SELECT DISTINCT 2 * + col0 + + 55 FROM tab2
----
147
183
205

query I rowsort
SELECT DISTINCT - col2 + 98 FROM tab2 WHERE ( + col1 + - - 89 ) IS NOT NULL
----
40
58
75

query I rowsort
SELECT col1 * 99 FROM tab0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT DISTINCT ( + 35 ) + + MIN( ( - + 57 ) ) FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-7922
SELECT DISTINCT ( + 35 ) + + MIN ( ( - + 57 ) ) FROM tab2
----
-22

query I rowsort
SELECT ALL + col2 * - col1 - 48 + + col1 FROM tab2 AS cor0
----
-1170
-3051
-3867

onlyif mysql # aggregate syntax: 
query I rowsort label-7924
SELECT DISTINCT + 9 * + 41 - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
366

skipif mysql # not compatible
query I rowsort label-7924
SELECT DISTINCT + 9 * + 41 - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
366

query I rowsort
SELECT - 92 * + col0 * 25 * + 21 - 30 + + col0 * + - 27 AS col2 FROM tab0
----
-4204479
-4687749
-724935

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7926
SELECT ALL + - 1 DIV + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7926
SELECT ALL + - 1 / + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT - col2 FROM tab0 WHERE NULL = + - 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT ALL 37 + + SUM( + + 20 ) AS col1 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7928
SELECT ALL 37 + + SUM ( + + 20 ) AS col1 FROM tab2 AS cor0
----
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * - 41 - + col1 FROM tab0 AS cor0
----
-2008
-4060
-431

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col1 * 53 * col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT - SUM( 22 ) AS col1 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-7932
SELECT - SUM ( 22 ) AS col1 FROM tab2
----
-66

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 1 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7934
SELECT 91 AS col0, - COUNT( * ) * + - COUNT( * ) AS col0 FROM tab0
----
91
9

skipif mysql # not compatible
query II rowsort label-7934
SELECT 91 AS col0, - COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab0
----
91
9

query II rowsort
SELECT DISTINCT 64 AS col2, + 67 * + col0 AS col2 FROM tab2 AS cor0
----
64
3082
64
4288
64
5025

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7936
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, 59 + + + CAST( - col2 AS SIGNED ) DIV - + 80 AS col1 FROM tab2 AS cor0
----
NULL
59
NULL
59
NULL
59

skipif mysql # not compatible
query II rowsort label-7936
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 59 + + + CAST ( - col2 AS INTEGER ) / - + 80 AS col1 FROM tab2 AS cor0
----
NULL
59
NULL
59
NULL
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7937
SELECT ALL + + 90 * COUNT( * ) FROM tab1 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-7937
SELECT ALL + + 90 * COUNT ( * ) FROM tab1 AS cor0
----
270

query II rowsort
SELECT + + col1, - 26 * - 84 FROM tab0 AS cor0
----
1
2184
21
2184
81
2184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7939
SELECT 50 AS col0 FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7939
SELECT 50 AS col0 FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT - 21 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7941
SELECT - MIN( - 10 ) + + 47 AS col0 FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-7941
SELECT - MIN ( - 10 ) + + 47 AS col0 FROM tab1
----
57

query I rowsort
SELECT 75 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT ALL + ( 82 ) AS col0 FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
82
82
82

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + + - 42 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col1 + + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7946
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7947
SELECT ALL - SUM( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-7947
SELECT ALL - SUM ( DISTINCT - col2 ) AS col2 FROM tab0 AS cor0
----
156

query I rowsort
SELECT 83 * + + col1 AS col2 FROM tab2
----
4233
5561
6391

onlyif mysql # DIV for integer division: 
query II rowsort label-7949
SELECT ( - - 21 ) DIV col2, 6 AS col2 FROM tab1
----
0
6
0
6
0
6

skipif mysql # not compatible
query II rowsort label-7949
SELECT ( - - 21 ) / col2, 6 AS col2 FROM tab1
----
0
6
0
6
0
6

query II rowsort
SELECT col1 AS col0, - ( - col2 ) FROM tab1
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7951
SELECT 24 DIV + MIN( DISTINCT col1 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7951
SELECT 24 / + MIN ( DISTINCT col1 ) AS col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE 28 > + + col2
----
46
51
23

query I rowsort
SELECT - col2 + col0 FROM tab0 WHERE - col2 - + ( 45 ) NOT BETWEEN - - ( col1 ) + 42 AND col2
----
-2
-32
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7954
SELECT ALL CAST( + MIN( DISTINCT - col1 ) AS SIGNED ) + - - 32 AS col0 FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL CAST ( + MIN ( DISTINCT - col1 ) AS INTEGER ) + - - 32 AS col0 FROM tab0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7955
SELECT CAST( - 81 AS SIGNED ) + - - col1 AS col2 FROM tab2 AS cor0
----
-14
-30
-4

skipif mysql # not compatible
query I rowsort label-7955
SELECT CAST ( - 81 AS INTEGER ) + - - col1 AS col2 FROM tab2 AS cor0
----
-14
-30
-4

query I rowsort
SELECT DISTINCT + 40 + - col1 AS col2 FROM tab2 AS cor0
----
-11
-27
-37

query I rowsort
SELECT ALL 27 + + 8 FROM tab1 AS cor0
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7958
SELECT ALL - + 2 - + ( + ( - 43 ) ) + col1 AS col0, + 26 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
108
NULL
118
NULL
92
NULL

skipif mysql # not compatible
query II rowsort label-7958
SELECT ALL - + 2 - + ( + ( - 43 ) ) + col1 AS col0, + 26 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
108
NULL
118
NULL
92
NULL

query II rowsort
SELECT DISTINCT col2 AS col0, col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT COUNT( DISTINCT - 72 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
1

skipif mysql # not compatible
query I rowsort label-7960
SELECT COUNT ( DISTINCT - 72 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
1

query II rowsort
SELECT DISTINCT col0, col0 AS col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT ALL + col0 * 88 AS col0 FROM tab2 AS cor0 WHERE NOT col1 = + - col1
----
4048
5632
6600

onlyif mysql # DIV for integer division: 
query I rowsort label-7963
SELECT - 82 DIV col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7963
SELECT - 82 / col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL + 82 + - + col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
1
61
81

query II rowsort
SELECT - 35, col2 FROM tab2 AS cor0
----
-35
23
-35
40
-35
58

query I rowsort
SELECT col1 + + - col2 FROM tab1 WHERE NOT + - 76 > - 21
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT ALL SUM( - col1 ) * + + 52 FROM tab1 WHERE col0 * + - 25 * 75 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL SUM ( - col1 ) * + + 52 FROM tab1 WHERE col0 * + - 25 * 75 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT + COUNT( * ) FROM tab2 WHERE NOT 91 NOT BETWEEN col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7968
SELECT + COUNT ( * ) FROM tab2 WHERE NOT 91 NOT BETWEEN col0 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7969
SELECT DISTINCT - COUNT( * ) * - SUM( - ( - col0 ) ) FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT - COUNT ( * ) * - SUM ( - ( - col0 ) ) FROM tab0
----
597

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7970
SELECT ALL - 12 DIV + - SUM( ALL - 77 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL - 12 / + - SUM ( ALL - 77 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT + + ( + COUNT( * ) ) * + MAX( ALL + col1 ) col2 FROM tab0 AS cor0
----
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7971
SELECT + + ( + COUNT ( * ) ) * + MAX ( ALL + col1 ) col2 FROM tab0 AS cor0
----
243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 * + - col1 col2, 1 * - 75 AS col1 FROM tab1 AS cor0
----
425
-75
4277
-75
714
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7973
SELECT - + COUNT( * ) DIV - 86 + + + 7 AS col0 FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-7973
SELECT - + COUNT ( * ) / - 86 + + + 7 AS col0 FROM tab2 AS cor0
----
7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT + 61 - - 34 + + - COUNT( * ) + + + 42 + + COUNT( * ) * - 4 * + 67 * + + 97 * - 50 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
11698328

skipif mysql # not compatible
query I rowsort label-7975
SELECT + 61 - - 34 + + - COUNT ( * ) + + + 42 + + COUNT ( * ) * - 4 * + 67 * + + 97 * - 50 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
11698328

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7976
SELECT COUNT( * ) AS col1, - COUNT( * ) DIV - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
1

skipif mysql # not compatible
query II rowsort label-7976
SELECT COUNT ( * ) AS col1, - COUNT ( * ) / - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
1

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 98 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT 77 * - - col1 + 2 FROM tab0
----
1619
6239
79

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 50 NOT IN ( - col1 + - col1 )
----

query I rowsort
SELECT - col1 * 0 + col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT + col2 + - ( - col1 ) * + - 80 + - - col2 FROM tab1 AS cor0
----
-282
-3624
-928

query I rowsort
SELECT ALL - 82 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 + + + 19 FROM tab1 cor0
----
115
78
87

query II rowsort
SELECT DISTINCT + col0 + + 30, col1 + - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > + col1 + col0
----

query I rowsort
SELECT ALL ( col0 ) * + 92 FROM tab1
----
4692
7820
8372

query I rowsort
SELECT - - col2 FROM tab2 WHERE 68 >= + - col0 / + col1 * + col1 + + 39
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7988
SELECT * FROM tab0 WHERE ( - CAST( NULL AS SIGNED ) ) < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7988
SELECT * FROM tab0 WHERE ( - CAST ( NULL AS INTEGER ) ) < - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col2 * + + 70 FROM tab0
----
-3290
-6930
-700

query I rowsort
SELECT - ( 55 ) FROM tab0 WHERE NULL IS NULL
----
-55
-55
-55

query I rowsort
SELECT - 21 * - + col1 * + + col2 FROM tab1
----
28224
6195
67116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7992
SELECT - CAST( + 92 AS SIGNED ) AS col1 FROM tab2
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-7992
SELECT - CAST ( + 92 AS INTEGER ) AS col1 FROM tab2
----
-92
-92
-92

query I rowsort
SELECT ALL 24 / - col2 FROM tab0 AS cor0 WHERE ( NULL ) < ( + - col2 )
----

query I rowsort
SELECT + + col1 - - 43 FROM tab2 AS cor0
----
110
120
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7995
SELECT DISTINCT - - col0 + - CAST( + col1 AS SIGNED ) DIV col1 * - + col0 FROM tab2 AS cor0
----
128
150
92

skipif mysql # not compatible
query I rowsort label-7995
SELECT DISTINCT - - col0 + - CAST ( + col1 AS INTEGER ) / col1 * - + col0 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7996
SELECT DISTINCT - - col0 - - + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7996
SELECT DISTINCT - - col0 - - + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - 59 - - 14 FROM tab0 AS cor0
----
-45
-45
-45

onlyif mysql # aggregate syntax: 
query II rowsort label-7998
SELECT ALL + 61 AS col2, + 87 + + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
61
96

skipif mysql # not compatible
query II rowsort label-7998
SELECT ALL + 61 AS col2, + 87 + + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
61
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT ALL COUNT( ALL 71 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL COUNT ( ALL 71 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col2 * - - col0 + - + col2 - + col2 AS col2 FROM tab2 AS cor0
----
1012
2480
4234

query II rowsort
SELECT - col1 AS col1, - 16 AS col2 FROM tab2 cor0
----
-51
-16
-67
-16
-77
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 32 col2, 99 AS col1 FROM tab1 cor0
----
32
99
32
99
32
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT DISTINCT + ( - MIN( DISTINCT - col1 ) ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT + ( - MIN ( DISTINCT - col1 ) ) AS col0 FROM tab1
----
47

query II rowsort
SELECT col2 AS col2, 58 AS col2 FROM tab0
----
10
58
47
58
99
58

onlyif mysql # DIV for integer division: 
query II rowsort label-8005
SELECT ALL - col2 DIV col2 AS col1, col1 * - 96 col1 FROM tab1
----
-1
-1344
-1
-4512
-1
-480

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8005
SELECT ALL - col2 / col2 AS col1, col1 * - 96 col1 FROM tab1
----
-1
-1344
-1
-4512
-1
-480

query II rowsort
SELECT ALL + 48, 47 AS col0 FROM tab1
----
48
47
48
47
48
47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8007
SELECT ALL ( + col1 ) DIV - col0 * + CAST( - 79 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL ( + col1 ) / - col0 * + CAST ( - 79 AS INTEGER ) FROM tab1
----
0
0
0

query II rowsort
SELECT ALL 72 AS col1, + 86 FROM tab0 WHERE NOT + col1 >= col2 - - col1
----
72
86
72
86
72
86

query II rowsort
SELECT col2, col2 + - + col2 + + col2 + - - col0 + + 86 * - + 32 + + col1 + col0 AS col1 FROM tab1
----
59
-2518
68
-2455
96
-2540

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 81 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 89, 92 AS col1 FROM tab0
----
89
92

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 13 + + + col1 + + - col1 * - + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8013
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 >= + - CAST( NULL AS SIGNED ) + - + col1 + - - col0 * col1
----

skipif mysql # not compatible
query III rowsort label-8013
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 >= + - CAST ( NULL AS INTEGER ) + - + col1 + - - col0 * col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8014
SELECT + COUNT( * ) + - + CAST( + ( + 77 ) AS SIGNED ) DIV - + SUM( DISTINCT - 84 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8014
SELECT + COUNT ( * ) + - + CAST ( + ( + 77 ) AS INTEGER ) / - + SUM ( DISTINCT - 84 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ALL - + ( + - col0 ) + - 20 AS col0 FROM tab2 AS cor0
----
26
44
55

query I rowsort
SELECT DISTINCT + col0 + col0 * col0 AS col1 FROM tab0 cor0
----
240
7656
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT MAX( ALL + - col2 ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8017
SELECT MAX ( ALL + - col2 ) FROM tab2 cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT ALL + 26 * - - MIN( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
390

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL + 26 * - - MIN ( ALL + col0 ) AS col0 FROM tab0 AS cor0
----
390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8019
SELECT - - CAST( - 18 AS SIGNED ) FROM tab0 AS cor0
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-8019
SELECT - - CAST ( - 18 AS INTEGER ) FROM tab0 AS cor0
----
-18
-18
-18

query I rowsort
SELECT 65 - + 58 AS col2 FROM tab2
----
7
7
7

query III rowsort
SELECT * FROM tab2 WHERE + ( - col2 ) + - col0 IN ( 37 * - col1, - 55 )
----

query I rowsort
SELECT col2 * + + col1 AS col0 FROM tab2 WHERE 40 IS NOT NULL
----
1173
3080
3886

query II rowsort
SELECT ALL + 80 AS col2, - 53 AS col0 FROM tab1
----
80
-53
80
-53
80
-53

query I rowsort
SELECT col2 + - col2 AS col0 FROM tab0 WHERE - ( + + col2 ) BETWEEN ( + 44 ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8025
SELECT + + col2 + - + col0 + col2 DIV + + col1 + - col0 + col2 * + col2 FROM tab1 AS cor0
----
3381
4511
9216

skipif mysql # not compatible
query I rowsort label-8025
SELECT + + col2 + - + col0 + col2 / + + col1 + - col0 + col2 * + col2 FROM tab1 AS cor0
----
3381
4511
9216

query I rowsort
SELECT + + col1 * + 1 + - + 0 + 7 + - - col0 AS col2 FROM tab0 cor0
----
103
105
115

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT - + COUNT( * ) + + + COUNT( ALL col0 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8027
SELECT - + COUNT ( * ) + + + COUNT ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 NOT BETWEEN + + col0 AND - + col1 * - col1 * - col0 - + col2 + + 95
----

query I rowsort
SELECT DISTINCT + ( + 95 ) FROM tab2 AS cor0
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8030
SELECT + 68 * col2 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * 25 >= + col0
----

skipif mysql # not compatible
query I rowsort label-8030
SELECT + 68 * col2 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * 25 >= + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 39 col2 FROM tab0 AS cor0
----
-39
-39
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 74 col1 FROM tab0 AS cor0
----
74
74
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8033
SELECT - ( ( + col2 ) ) DIV + col1 + - col0 * col2 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-8033
SELECT - ( ( + col2 ) ) / + col1 + - col0 * col2 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-8034
SELECT DISTINCT - - col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT - - col1 / - col2 AS col0 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8035
SELECT 55 DIV 52 + - col2 FROM tab2 AS cor0
----
-22
-39
-57

skipif mysql # not compatible
query I rowsort label-8035
SELECT 55 / 52 + - col2 FROM tab2 AS cor0
----
-22
-39
-57

query I rowsort
SELECT + - 68 * - col2 AS col2 FROM tab1 AS cor0
----
4012
4624
6528

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT DISTINCT - COUNT( ALL - col1 ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8037
SELECT DISTINCT - COUNT ( ALL - col1 ) AS col2 FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8038
SELECT ALL + SUM( + 83 ) * - + MIN( - CAST( + + 22 AS SIGNED ) ) AS col0 FROM tab1
----
5478

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL + SUM ( + 83 ) * - + MIN ( - CAST ( + + 22 AS INTEGER ) ) AS col0 FROM tab1
----
5478

query I rowsort
SELECT ALL ( col2 ) * - 49 FROM tab2
----
-1127
-1960
-2842

query III rowsort
SELECT ALL * FROM tab1 WHERE + 79 IS NULL
----

query II rowsort
SELECT DISTINCT + 53 AS col2, col2 FROM tab1
----
53
59
53
68
53
96

query I rowsort
SELECT DISTINCT - col1 * - col2 / + 97 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT DISTINCT 9 * - COUNT( * ) FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-8043
SELECT DISTINCT 9 * - COUNT ( * ) FROM tab1
----
-27

query I rowsort
SELECT + + col0 * + - col1 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-8045
SELECT - 72 DIV - 44 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8045
SELECT - 72 / - 44 AS col0 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + 89 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT - col2 + - col0 + - col0 + - 3 * col0 * + col1 * col0 * 80 FROM tab0 AS cor0
----
-2258453
-38147944
-4374077

query I rowsort
SELECT ALL col0 * 0 + + col0 * + 73 * 54 FROM tab1 AS cor0
----
201042
335070
358722

query I rowsort
SELECT DISTINCT col0 * + - col0 + - - 13 AS col2 FROM tab2 cor0
----
-2103
-4083
-5612

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE NULL = col0
----
0

skipif mysql # not compatible
query I rowsort label-8050
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL = col0
----
0

query I rowsort
SELECT DISTINCT 15 + - col0 AS col1 FROM tab0 cor0
----
-72
-82
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT + MIN( ALL + col1 ) + - 18 AS col1 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-8052
SELECT + MIN ( ALL + col1 ) + - 18 AS col1 FROM tab0 AS cor0
----
-17

query I rowsort
SELECT DISTINCT - 15 - - - col1 * + col2 AS col1 FROM tab1 AS cor0
----
-1359
-310
-3211

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8054
SELECT ( - col0 ) * - col0 * + + 17 * - 89 + + CAST( NULL AS SIGNED ) * - + 6 AS col0 FROM tab0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8054
SELECT ( - col0 ) * - col0 * + + 17 * - 89 + + CAST ( NULL AS INTEGER ) * - + 6 AS col0 FROM tab0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8055
SELECT + ( + SUM( - ( - - col1 ) ) ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8055
SELECT + ( + SUM ( - ( - - col1 ) ) ) AS col0 FROM tab1
----
-66

query I rowsort
SELECT ( - 26 ) * 78 AS col2 FROM tab1
----
-2028
-2028
-2028

onlyif mysql # DIV for integer division: 
query II rowsort label-8057
SELECT - col1 DIV + col0, col0 AS col0 FROM tab2
----
-1
46
-1
64
0
75

skipif mysql # not compatible
query II rowsort label-8057
SELECT - col1 / + col0, col0 AS col0 FROM tab2
----
-1
46
-1
64
0
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT DISTINCT + MIN( - + 46 ) * + COUNT( col0 ) AS col1 FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-8058
SELECT DISTINCT + MIN ( - + 46 ) * + COUNT ( col0 ) AS col1 FROM tab0
----
-138

query I rowsort
SELECT - 13 * - - 70 FROM tab0
----
-910
-910
-910

query I rowsort
SELECT - - 13 + + 44 AS col1 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 col2 FROM tab1 cor0
----
37
37
37

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8063
SELECT ALL - 6 DIV COUNT( * ) FROM tab0 AS cor0 WHERE ( col2 IN ( col2 ) )
----
-2

skipif mysql # not compatible
query I rowsort label-8063
SELECT ALL - 6 / COUNT ( * ) FROM tab0 AS cor0 WHERE ( col2 IN ( col2 ) )
----
-2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8064
SELECT - + COUNT( * ) FROM tab0 WHERE NOT - + CAST( - 53 AS DECIMAL ) * 14 * col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8064
SELECT - + COUNT ( * ) FROM tab0 WHERE NOT - + CAST ( - 53 AS REAL ) * 14 * col0 IS NOT NULL
----
0

query II rowsort
SELECT col1, + 37 * + col1 FROM tab1
----
14
518
47
1739
5
185

query I rowsort
SELECT DISTINCT - col2 * - + ( - 65 ) + 98 FROM tab0 AS cor0
----
-2957
-552
-6337

query I rowsort
SELECT DISTINCT - 4 * + + col0 AS col2 FROM tab0 AS cor0
----
-348
-388
-60

query I rowsort
SELECT - col1 * - 90 AS col1 FROM tab1 cor0
----
1260
4230
450

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT - MIN( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8069
SELECT - MIN ( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8070
SELECT DISTINCT - ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8070
SELECT DISTINCT - ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + 52 * + col0 AS col0 FROM tab0
----
4524
5044
780

query III rowsort
SELECT * FROM tab1 WHERE NOT - 34 * - col2 * - 58 * - - col2 < col2
----

query I rowsort
SELECT ALL 71 * + col0 FROM tab1
----
3621
6035
6461

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT DISTINCT COUNT( * ) + - 27 AS col2 FROM tab2 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8074
SELECT DISTINCT COUNT ( * ) + - 27 AS col2 FROM tab2 cor0
----
-24

query I rowsort
SELECT ALL col0 + + + 26 - + col2 AS col0 FROM tab1
----
-19
49
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT - COUNT( * ) * - - 92 FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-8076
SELECT - COUNT ( * ) * - - 92 FROM tab0
----
-276

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 24 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - ( - + col2 ) * - col2 + - + col0 AS col2 FROM tab2 AS cor0
----
-1664
-3439
-575

query I rowsort
SELECT DISTINCT + + ( + 93 ) + - col0 * col0 FROM tab1 AS cor0
----
-2508
-7132
-8188

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 39 * - ( + + col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT DISTINCT + 76 + COUNT( * ) AS col0 FROM tab1 cor0
----
79

skipif mysql # not compatible
query I rowsort label-8081
SELECT DISTINCT + 76 + COUNT ( * ) AS col0 FROM tab1 cor0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-8082
SELECT - - col0 - - - col0 DIV 30 DIV - - col0 col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8082
SELECT - - col0 - - - col0 / 30 / - - col0 col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + + 36 - - col2 + - col2 * + + 10 AS col2 FROM tab0 AS cor0
----
-387
-54
-855

onlyif mysql # aggregate syntax: 
query I rowsort label-8084
SELECT + + 21 - SUM( DISTINCT ( + col1 ) ) + 62 * + 44 FROM tab2 AS cor0
----
2554

skipif mysql # not compatible
query I rowsort label-8084
SELECT + + 21 - SUM ( DISTINCT ( + col1 ) ) + 62 * + 44 FROM tab2 AS cor0
----
2554

query I rowsort
SELECT - col2 * col1 - + - 1 AS col0 FROM tab0 cor0
----
-209
-3806
-98

query I rowsort
SELECT col0 * + col1 + + + col2 - - + col2 + + col0 + 61 FROM tab2 AS cor0
----
2499
5133
5277

query I rowsort
SELECT - + col2 FROM tab2 AS cor0 WHERE + col1 * - - col1 IS NULL
----

query I rowsort
SELECT - col1 - + col2 * col2 + col0 AS col1 FROM tab0 AS cor0
----
-2275
-34
-9705

query I rowsort
SELECT DISTINCT - col2 * - 65 FROM tab1 AS cor0
----
3835
4420
6240

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8090
SELECT col1 * + CAST( NULL AS DECIMAL ) + + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8090
SELECT col1 * + CAST ( NULL AS REAL ) + + col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col0 * - col1 + - + 12 FROM tab2 WHERE NULL BETWEEN NULL AND + col2 * + 87
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 + + 70 - - 88 FROM tab0
----
143
61
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8094
SELECT DISTINCT - 54 AS col1, CAST( NULL AS SIGNED ) FROM tab1
----
-54
NULL

skipif mysql # not compatible
query II rowsort label-8094
SELECT DISTINCT - 54 AS col1, CAST ( NULL AS INTEGER ) FROM tab1
----
-54
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND - + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8096
SELECT ALL 10 DIV + COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8096
SELECT ALL 10 / + COUNT ( * ) FROM tab1
----
3

query III rowsort
SELECT - 71 AS col2, + col1 AS col0, + col0 + + col0 FROM tab0 AS cor0
----
9 values hashing to 47b21c603a7c7a61198d9623cf8380a1

query II rowsort
SELECT DISTINCT + 34 AS col0, + col2 - + - 98 FROM tab2 AS cor0 WHERE + col1 * 41 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT + + col1, col1 AS col1 FROM tab1 cor0
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT + + ( - col0 ) * - col0 * + ( + + 62 ) AS col2 FROM tab2 AS cor0
----
131192
253952
348750

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 26 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8102
SELECT + CAST( NULL AS DECIMAL ) * - + 73 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8102
SELECT + CAST ( NULL AS REAL ) * - + 73 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT + 78 * + MAX( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-3588

skipif mysql # not compatible
query I rowsort label-8103
SELECT + 78 * + MAX ( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-3588

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT 20 + - COUNT( * ) col0 FROM tab1
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8104
SELECT 20 + - COUNT ( * ) col0 FROM tab1
----
17

query II rowsort
SELECT DISTINCT - col0 AS col0, + 31 AS col0 FROM tab1
----
-51
31
-85
31
-91
31

query I rowsort
SELECT ALL + 87 AS col1 FROM tab2 WHERE NULL NOT IN ( + col1, 2, col0 * + col0 + + col1, + col1 - + 6 + + + 42 * + ( + col1 ), + ( - 55 ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 34 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col1 col0 FROM tab0
----
162
2
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 + + col2 col1 FROM tab0
----
100
11
48

query II rowsort
SELECT 51 AS col1, - col0 FROM tab0
----
51
-15
51
-87
51
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT + ( + MIN( 10 ) ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
10

skipif mysql # not compatible
query I rowsort label-8111
SELECT + ( + MIN ( 10 ) ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 84 ) col0 FROM tab2 AS cor0
----
84
84
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8113
SELECT DISTINCT - CAST( + + 63 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8113
SELECT DISTINCT - CAST ( + + 63 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT DISTINCT + + COUNT( * ) + + SUM( ALL + - 39 ) + - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-8114
SELECT DISTINCT + + COUNT ( * ) + + SUM ( ALL + - 39 ) + - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-117

onlyif mysql # aggregate syntax: 
query II rowsort label-8115
SELECT ALL - 90 AS col2, ( COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE ( ( NOT 0 IS NOT NULL ) )
----
-90
0

skipif mysql # not compatible
query II rowsort label-8115
SELECT ALL - 90 AS col2, ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE ( ( NOT 0 IS NOT NULL ) )
----
-90
0

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT COUNT( * ) + - - 11 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) = NULL
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8117
SELECT COUNT ( * ) + - - 11 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) = NULL
----
11

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) >= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8119
SELECT - 69 + + - CAST( - col0 AS SIGNED ) FROM tab0
----
-54
18
28

skipif mysql # not compatible
query I rowsort label-8119
SELECT - 69 + + - CAST ( - col0 AS INTEGER ) FROM tab0
----
-54
18
28

query I rowsort
SELECT DISTINCT + col0 + col0 + - ( + ( + + ( + + col2 ) ) ) - + - 65 FROM tab1
----
176
179
71

onlyif mysql # DIV for integer division: 
query II rowsort label-8121
SELECT - col0 + col2 AS col0, - col1 DIV - 82 AS col0 FROM tab0 AS cor0
----
-77
0
2
0
32
0

skipif mysql # not compatible
query II rowsort label-8121
SELECT - col0 + col2 AS col0, - col1 / - 82 AS col0 FROM tab0 AS cor0
----
-77
0
2
0
32
0

query I rowsort
SELECT col1 * + col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8123
SELECT - 57 * + CAST( col0 AS SIGNED ) + - col1 + col2 AS col1, - 62 AS col0 FROM tab2 AS cor0
----
-2650
-62
-3685
-62
-4284
-62

skipif mysql # not compatible
query II rowsort label-8123
SELECT - 57 * + CAST ( col0 AS INTEGER ) + - col1 + col2 AS col1, - 62 AS col0 FROM tab2 AS cor0
----
-2650
-62
-3685
-62
-4284
-62

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 - + 26 * + 64 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8125
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 67 ) - + + col2 + + + col1 + - col1 * - CAST( - + 37 AS SIGNED ) * + 97 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8125
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 67 ) - + + col2 + + + col1 + - col1 * - CAST ( - + 37 AS INTEGER ) * + 97 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col0 - + col1 - - 51 FROM tab2 AS cor0
----
38
46
59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col1 ) > ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8129
SELECT ALL MAX( 57 ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-8129
SELECT ALL MAX ( 57 ) FROM tab2
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col1 * 18 col2 FROM tab0 WHERE NOT - 40 = - + 79
----
-1782
-3780
-68526

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN 16 * + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8132
SELECT ALL 20 * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8132
SELECT ALL 20 * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * - - col2 * col2 * 94 AS col0 FROM tab1
----
-12128256
-1636070
-20428832

query I rowsort
SELECT ALL 87 * + 75 AS col0 FROM tab1
----
6525
6525
6525

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8135
SELECT DISTINCT COUNT( * ) * + 7 * - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8135
SELECT DISTINCT COUNT ( * ) * + 7 * - CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8136
SELECT ALL 75 DIV + + col1 AS col1 FROM tab0
----
0
3
75

skipif mysql # not compatible
query I rowsort label-8136
SELECT ALL 75 / + + col1 AS col1 FROM tab0
----
0
3
75

query I rowsort
SELECT ALL + ( 47 ) AS col2 FROM tab2
----
47
47
47

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
1
21
81

query III rowsort
SELECT DISTINCT + 88 + 37 * col1, 7 - + 56 + col0 AS col1, + col0 AS col1 FROM tab0 WHERE - col2 IS NULL
----

query I rowsort
SELECT + + col1 + - col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col2, col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query II rowsort
SELECT DISTINCT - col1, + col2 + + col2 * - 0 + - col0 + + - col1 AS col2 FROM tab1 cor0
----
-14
31
-47
-70
-5
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + - ( + + 92 ) col1 FROM tab1 AS cor0
----
-24
-33
4

query II rowsort
SELECT DISTINCT + col0, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT - col2 * - 95 - - 52 AS col0 FROM tab1 AS cor0
----
5657
6512
9172

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8146
SELECT * FROM tab0 AS cor0 WHERE NULL <= 30 * - ( + CAST( + - ( 18 ) AS DECIMAL ) ) / - col1 + + + col2 + - col2
----

skipif mysql # not compatible
query III rowsort label-8146
SELECT * FROM tab0 AS cor0 WHERE NULL <= 30 * - ( + CAST ( + - ( 18 ) AS REAL ) ) / - col1 + + + col2 + - col2
----

query I rowsort
SELECT + 45 * - ( + 66 ) AS col2 FROM tab0
----
-2970
-2970
-2970

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT - COUNT( * ) AS col1 FROM tab1 WHERE - + col0 NOT BETWEEN - - col1 * + + 68 AND + col1
----
-3

skipif mysql # not compatible
query I rowsort label-8148
SELECT - COUNT ( * ) AS col1 FROM tab1 WHERE - + col0 NOT BETWEEN - - col1 * + + 68 AND + col1
----
-3

query II rowsort
SELECT 89 * + 83 AS col1, - col0 + + col1 AS col0 FROM tab1
----
7387
-37
7387
-44
7387
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-8150
SELECT DISTINCT MIN( DISTINCT - col0 ) col0, + MIN( ALL col2 ) AS col0 FROM tab1
----
-91
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8150
SELECT DISTINCT MIN ( DISTINCT - col0 ) col0, + MIN ( ALL col2 ) AS col0 FROM tab1
----
-91
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8151
SELECT ALL * FROM tab2 WHERE - - col1 * 62 * + CAST( NULL AS SIGNED ) + - 64 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8151
SELECT ALL * FROM tab2 WHERE - - col1 * 62 * + CAST ( NULL AS INTEGER ) + - 64 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8152
SELECT DISTINCT col2 * + - CAST( - - 74 AS SIGNED ), 51 AS col1 FROM tab2
----
-1702
51
-2960
51
-4292
51

skipif mysql # not compatible
query II rowsort label-8152
SELECT DISTINCT col2 * + - CAST ( - - 74 AS INTEGER ), 51 AS col1 FROM tab2
----
-1702
51
-2960
51
-4292
51

query II rowsort
SELECT - col2 * + 15 + col0 AS col2, col1 * + col0 AS col1 FROM tab0 AS cor0
----
-1388
97
-63
1827
-690
1215

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT - + COUNT( * ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8154
SELECT - + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + col1 + - + col1 + + 81 * + col1 AS col2 FROM tab0
----
1701
6561
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT ALL ( - + COUNT( * ) ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL ( - + COUNT ( * ) ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

query I rowsort
SELECT DISTINCT + col0 + 63 AS col2 FROM tab2
----
109
127
138

query I rowsort
SELECT ALL - + 62 AS col1 FROM tab2 cor0
----
-62
-62
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 - col2 - + col0 col0 FROM tab0 AS cor0
----
-767
-967
-9799

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT - COUNT( * ) - + - COUNT( * ) col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8160
SELECT - COUNT ( * ) - + - COUNT ( * ) col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col1 - + col0 AS col2 FROM tab2 cor0
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8162
SELECT ALL + CAST( NULL AS SIGNED ) - 74 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL + CAST ( NULL AS INTEGER ) - 74 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + 65 ) FROM tab1 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query II rowsort label-8164
SELECT - COUNT( * ), + 20 AS col1 FROM tab2 AS cor0
----
-3
20

skipif mysql # not compatible
query II rowsort label-8164
SELECT - COUNT ( * ), + 20 AS col1 FROM tab2 AS cor0
----
-3
20

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 * - 27 FROM tab0
----
-2349
-2619
-405

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8167
SELECT DISTINCT COUNT( DISTINCT - col1 ) DIV COUNT( * ) col0 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8167
SELECT DISTINCT COUNT ( DISTINCT - col1 ) / COUNT ( * ) col0 FROM tab2
----
1

query I rowsort
SELECT - 21 * + + col2 + + - col1 AS col0 FROM tab2 AS cor0
----
-1285
-534
-917

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT ALL - MAX( 0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL - MAX ( 0 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8170
SELECT COUNT( * ) * + 47 FROM tab1 cor0
----
141

skipif mysql # not compatible
query I rowsort label-8170
SELECT COUNT ( * ) * + 47 FROM tab1 cor0
----
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - - ( - 13 ) col1 FROM tab1 AS cor0
----
38
72
78

query I rowsort
SELECT + + col2 * col1 - + col2 FROM tab0 AS cor0
----
0
200
3760

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT DISTINCT ( - COUNT( - col0 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8173
SELECT DISTINCT ( - COUNT ( - col0 ) ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8174
SELECT ALL COUNT( * ) AS col0, + COUNT( * ) FROM tab2 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8174
SELECT ALL COUNT ( * ) AS col0, + COUNT ( * ) FROM tab2 cor0
----
3
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 BETWEEN + - col2 * ( + - 41 ) + col2 * + - 33 AND col1 + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8176
SELECT DISTINCT col1 DIV - col2 + - col0 FROM tab2 AS cor0
----
-48
-65
-76

skipif mysql # not compatible
query I rowsort label-8176
SELECT DISTINCT col1 / - col2 + - col0 FROM tab2 AS cor0
----
-48
-65
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-8177
SELECT ALL - 64 DIV + col2 AS col1 FROM tab0 cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL - 64 / + col2 AS col1 FROM tab0 cor0
----
-1
-6
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8178
SELECT DISTINCT - COUNT( ALL 82 ) / + ( + COUNT( * ) ) * - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8178
SELECT DISTINCT - COUNT ( ALL 82 ) / + ( + COUNT ( * ) ) * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT ALL + COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE - col2 BETWEEN + + 99 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT + + COUNT( * ) AS col1 FROM tab0 WHERE 32 * - col2 - + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8181
SELECT + + COUNT ( * ) AS col1 FROM tab0 WHERE 32 * - col2 - + col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8182
SELECT - 37 DIV - COUNT( * ) AS col2 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-8182
SELECT - 37 / - COUNT ( * ) AS col2 FROM tab0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col0 AS col2, col1 col0 FROM tab2 AS cor0
----
46
51
64
77
75
67

query II rowsort
SELECT ALL - + col1 AS col0, 78 FROM tab0 AS cor0
----
-1
78
-21
78
-81
78

query I rowsort
SELECT DISTINCT 40 * - + 64 FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND col0 + + 36
----

query II rowsort
SELECT col0, + col2 * col0 AS col1 FROM tab0 AS cor0
----
15
705
87
870
97
9603

query I rowsort
SELECT - col2 - - + col0 AS col1 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT ALL - col1 * - + 31 * col2 FROM tab2 AS cor0
----
120466
36363
95480

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 * - col1 BETWEEN 49 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN - - col1 AND 22
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 + - col1 * + ( + - col0 ) <= NULL
----

query I rowsort
SELECT ALL + ( - 94 ) AS col1 FROM tab1 cor0
----
-94
-94
-94

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-1
-21
-81

query I rowsort
SELECT ALL 81 * + 44 * col0 AS col1 FROM tab2
----
163944
228096
267300

onlyif mysql # aggregate syntax: 
query I rowsort label-8195
SELECT ALL 9 * + 9 * - MIN( + col2 ) FROM tab1
----
-4779

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL 9 * + 9 * - MIN ( + col2 ) FROM tab1
----
-4779

query II rowsort
SELECT col0, 46 AS col0 FROM tab0
----
15
46
87
46
97
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT ALL MIN( col1 ) col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8197
SELECT ALL MIN ( col1 ) col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT + COUNT( ALL - col2 ) * - 84 FROM tab0
----
-252

skipif mysql # not compatible
query I rowsort label-8198
SELECT + COUNT ( ALL - col2 ) * - 84 FROM tab0
----
-252

onlyif mysql # DIV for integer division: 
query I rowsort label-8199
SELECT ALL 80 DIV 11 col2 FROM tab1 AS cor0
----
7
7
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8199
SELECT ALL 80 / 11 col2 FROM tab1 AS cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT ALL - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * 0 col0, - 13 FROM tab2
----
0
-13

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 18 IS NOT NULL
----

query II rowsort
SELECT col0 + - + 32, + col2 FROM tab1
----
19
96
53
59
59
68

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT 56 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 + - col2 + - col1 AS col2 FROM tab0 AS cor0
----
-175
-199
-41

query I rowsort
SELECT - - ( - 62 ) * ( col0 ) FROM tab0 AS cor0
----
-5394
-6014
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT ALL + COUNT( * ) * - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 53 < 71
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * 32 AS col1 FROM tab0 AS cor0
----
2784
3104
480

onlyif mysql # DIV for integer division: 
query I rowsort label-8211
SELECT ( - - 89 ) DIV + 32 + - col2 - - + col2 * + - col0 AS col1 FROM tab2 AS cor0
----
-1079
-2598
-4406

skipif mysql # not compatible
query I rowsort label-8211
SELECT ( - - 89 ) / + 32 + - col2 - - + col2 * + - col0 AS col1 FROM tab2 AS cor0
----
-1079
-2598
-4406

query I rowsort
SELECT DISTINCT - col2 FROM tab2 cor0 WHERE ( + + 3 ) IS NOT NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-8213
SELECT ALL - 69 DIV - col2 AS col2 FROM tab2
----
1
1
3

skipif mysql # not compatible
query I rowsort label-8213
SELECT ALL - 69 / - col2 AS col2 FROM tab2
----
1
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8214
SELECT DISTINCT COUNT( ALL + 19 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT COUNT ( ALL + 19 ) AS col0 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8215
SELECT col0 * - col0 + - + col2 DIV + ( + col0 ) + - 12 col1, col0 FROM tab0
----
-240
15
-7581
87
-9422
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8215
SELECT col0 * - col0 + - + col2 / + ( + col0 ) + - 12 col1, col0 FROM tab0
----
-240
15
-7581
87
-9422
97

query III rowsort
SELECT * FROM tab1 WHERE col0 <> - 7
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE ( NOT + 99 + + + col0 >= 6 / + 2 )
----

query I rowsort
SELECT DISTINCT - ( 93 ) FROM tab0 cor0
----
-93

query I rowsort
SELECT DISTINCT - ( + 65 ) + - 38 FROM tab2 AS cor0
----
-103

query I rowsort
SELECT ALL + col0 - + 48 + + - ( + - 62 ) AS col0 FROM tab1 AS cor0
----
105
65
99

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 22 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - - 19 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT ALL - MAX( - col1 ) col1 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8223
SELECT ALL - MAX ( - col1 ) col1 FROM tab0
----
1

query II rowsort
SELECT col0 * + col2 AS col0, col2 FROM tab1
----
4896
96
5015
59
6188
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT + MAX( DISTINCT - - col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-8225
SELECT + MAX ( DISTINCT - - col1 ) FROM tab1 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT MAX( - col0 ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-8226
SELECT MAX ( - col0 ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-138

query II rowsort
SELECT col1 AS col1, 54 AS col0 FROM tab1 cor0
----
14
54
47
54
5
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8228
SELECT 95 * + - col2 - + - col1 * CAST( - 13 AS SIGNED ) + + + CAST( NULL AS SIGNED ) + + col1 * - + col1 + 14 AS col1, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-8228
SELECT 95 * + - col2 - + - col1 * CAST ( - 13 AS INTEGER ) + + + CAST ( NULL AS INTEGER ) + + col1 * - + col1 + 14 AS col1, + col0 FROM tab2 AS cor0
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT - - ( + - col2 ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT + SUM( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8230
SELECT + SUM ( col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

query II rowsort
SELECT ALL col1 AS col1, 75 * - + col2 + + - col0 * + col0 AS col1 FROM tab2 AS cor0
----
51
-3841
67
-9975
77
-7096

onlyif mysql # DIV for integer division: 
query I rowsort label-8232
SELECT - - col1 DIV + - col2 - + 79 * + - 6 FROM tab2 AS cor0
----
472
473
473

skipif mysql # not compatible
query I rowsort label-8232
SELECT - - col1 / + - col2 - + 79 * + - 6 FROM tab2 AS cor0
----
472
473
473

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT 59 - + COUNT( * ) AS col1 FROM tab2, tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-8233
SELECT 59 - + COUNT ( * ) AS col1 FROM tab2, tab0 AS cor0
----
50

query I rowsort
SELECT + col1 * - - col2 * - 81 FROM tab0
----
-17010
-308367
-8019

query I rowsort
SELECT - col0 * 98 AS col1 FROM tab1 AS cor0
----
-4998
-8330
-8918

query I rowsort
SELECT col2 * 45 AS col0 FROM tab2 cor0
----
1035
1800
2610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8237
SELECT ALL + + col1 * + + col1 * - CAST( - 42 AS SIGNED ) + - 4 AS col0 FROM tab1 AS cor0
----
1046
8228
92774

skipif mysql # not compatible
query I rowsort label-8237
SELECT ALL + + col1 * + + col1 * - CAST ( - 42 AS INTEGER ) + - 4 AS col0 FROM tab1 AS cor0
----
1046
8228
92774

onlyif mysql # DIV for integer division: 
query I rowsort label-8238
SELECT DISTINCT - ( + col1 ) DIV + + col1 + - col2 AS col0 FROM tab2
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT - ( + col1 ) / + + col1 + - col2 AS col0 FROM tab2
----
-24
-41
-59

query I rowsort
SELECT - col2 + - - col1 + col2 * + ( + col0 ) FROM tab0
----
739
881
9505

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 IS NULL AND NOT 40 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT - 87 * - 51 + + COUNT( * ) FROM tab1 AS cor0
----
4440

skipif mysql # not compatible
query I rowsort label-8241
SELECT - 87 * - 51 + + COUNT ( * ) FROM tab1 AS cor0
----
4440

query I rowsort
SELECT + col1 + - col0 + + col1 + + 7 FROM tab2 AS cor0
----
63
66
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT - + COUNT( * ) + + + 43 AS col0 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-8244
SELECT - + COUNT ( * ) + + + 43 AS col0 FROM tab2 AS cor0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8245
SELECT DISTINCT col0 + - CAST( - 58 AS SIGNED ) + + - 41 - - + col0 * + col1 * + + col0 + - 55 FROM tab1 AS cor0
----
36172
36427
389260

skipif mysql # not compatible
query I rowsort label-8245
SELECT DISTINCT col0 + - CAST ( - 58 AS INTEGER ) + + - 41 - - + col0 * + col1 * + + col0 + - 55 FROM tab1 AS cor0
----
36172
36427
389260

query I rowsort
SELECT - - 53 FROM tab2 AS cor0 WHERE ( NULL <> NULL )
----

query I rowsort
SELECT DISTINCT col0 - - col1 + + col0 AS col2 FROM tab0
----
111
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT DISTINCT MAX( - col2 ) * + COUNT( * ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-8248
SELECT DISTINCT MAX ( - col2 ) * + COUNT ( * ) FROM tab1
----
-177

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8249
SELECT ALL - CAST( + + COUNT( + 92 ) AS SIGNED ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8249
SELECT ALL - CAST ( + + COUNT ( + 92 ) AS INTEGER ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT - 83 * 32 FROM tab2
----
-2656
-2656
-2656

query I rowsort
SELECT + col0 * - - 68 * 16 AS col0 FROM tab0
----
105536
16320
94656

query I rowsort
SELECT ALL - 8 * - col1 AS col1 FROM tab0
----
168
648
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8253
SELECT + 78 FROM tab1 WHERE + CAST( NULL AS SIGNED ) - col2 < NULL
----

skipif mysql # not compatible
query I rowsort label-8253
SELECT + 78 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) - col2 < NULL
----

query I rowsort
SELECT DISTINCT + col2 * - + col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT + 69 + + + 21 * + 43 AS col0 FROM tab1
----
972

query I rowsort
SELECT - 20 - 10 FROM tab2 cor0
----
-30
-30
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 59 + + 5 * col1 * - col1 col2 FROM tab0 AS cor0
----
-2264
-32864
-64

query I rowsort
SELECT ALL + - col1 - + 40 + - + col2 FROM tab1 AS cor0
----
-104
-150
-155

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = 56
----

query I rowsort
SELECT DISTINCT 48 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
48

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL < NULL )
----

query II rowsort
SELECT + 67, + col1 FROM tab2 AS cor0
----
67
51
67
67
67
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT ( + ( + COUNT( * ) ) ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8264
SELECT ( + ( + COUNT ( * ) ) ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT - + ( + ( + 2 ) ) FROM tab1 AS cor0
----
-2
-2
-2

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 ) > + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col1 AS col0, 42 FROM tab2
----
51
42
67
42
77
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8268
SELECT DISTINCT + CAST( - - col1 AS SIGNED ) AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8268
SELECT DISTINCT + CAST ( - - col1 AS INTEGER ) AS col0 FROM tab2
----
51
67
77

query I rowsort
SELECT col1 + col2 AS col1 FROM tab1 WHERE NOT - col1 IS NULL
----
110
115
64

query I rowsort
SELECT DISTINCT 73 + 32 FROM tab1
----
105

query I rowsort
SELECT + col1 + + - col2 + + col1 + + col2 AS col2 FROM tab2
----
102
134
154

query I rowsort
SELECT - 56 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8273
SELECT ALL + ( - CAST( + - col0 AS SIGNED ) ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL + ( - CAST ( + - col0 AS INTEGER ) ) FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8274
SELECT - col0 / - - col1 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8274
SELECT - col0 / - - col1 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT + ( 97 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 81 / + 96 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 43 + + - col2 + 90 * - + ( + - 18 ) AS col0 FROM tab0 AS cor0
----
1564
1616
1653

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) * col2 col0 FROM tab1 AS cor0
----
-3481
-4624
-9216

query II rowsort
SELECT DISTINCT 60 * - ( + + 23 ) * - + col1 * + - col2 + - - col1 * col2 + col2, col0 * + col2 + - - 45 * - - 35 AS col1 FROM tab1 cor0
----
-1853280
6471
-406746
6590
-4407216
7763

onlyif mysql # DIV for integer division: 
query I rowsort label-8280
SELECT + 32 DIV col1 - 42 FROM tab0 AS cor0
----
-10
-41
-42

skipif mysql # not compatible
query I rowsort label-8280
SELECT + 32 / col1 - 42 FROM tab0 AS cor0
----
-10
-41
-42

query I rowsort
SELECT 22 + + 5 * + + col0 AS col0 FROM tab1
----
277
447
477

query II rowsort
SELECT ALL - col1 * + - col1 * 60, col2 + + + col1 + col2 AS col1 FROM tab2
----
156060
97
269340
183
355740
157

query I rowsort
SELECT col0 + + 57 FROM tab2
----
103
121
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + col0 * 12 + - col0 col2 FROM tab1
----
465
876
933

query I rowsort
SELECT ALL col0 * + + col0 * col1 AS col1 FROM tab2
----
107916
315392
376875

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT COUNT( ALL + + 0 ) + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8286
SELECT COUNT ( ALL + + 0 ) + COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT DISTINCT + 42 * col0 * + 55 AS col1 FROM tab1
----
117810
196350
210210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8288
SELECT - SUM( col0 ) DIV - 24 AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8288
SELECT - SUM ( col0 ) / - 24 AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT + SUM( DISTINCT col0 ) + + 54 * + COUNT( * ) FROM tab0
----
361

skipif mysql # not compatible
query I rowsort label-8289
SELECT + SUM ( DISTINCT col0 ) + + 54 * + COUNT ( * ) FROM tab0
----
361

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8290
SELECT DISTINCT + COUNT( ALL + col0 ) + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8290
SELECT DISTINCT + COUNT ( ALL + col0 ) + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE col0 NOT BETWEEN ( - col2 ) AND + ( 9 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 * col2 col1 FROM tab2
----
-1104
-2624
-4425

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN 99 AND NULL
----

query I rowsort
SELECT ALL 84 * - col2 + - col2 * col1 FROM tab2
----
-3105
-6440
-8758

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 - col1 IS NOT NULL
----

query I rowsort
SELECT col1 * col1 + - col1 FROM tab0 WHERE NOT 67 IS NULL
----
0
420
6480

query I rowsort
SELECT - col2 * - col1 - 11 FROM tab1
----
1333
284
3185

query III rowsort
SELECT * FROM tab1 WHERE ( 71 ) IS NULL
----

query I rowsort
SELECT - col1 * 31 - 9 FROM tab0
----
-2520
-40
-660

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE NOT col1 >= ( + col0 )
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 >= ( - 59 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT COUNT( * ) * 30 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-8302
SELECT COUNT ( * ) * 30 FROM tab0
----
90

query I rowsort
SELECT col0 + col1 * col0 AS col2 FROM tab2
----
2392
4992
5100

query I rowsort
SELECT ALL col2 FROM tab2 WHERE col2 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT DISTINCT + SUM( DISTINCT - 16 ) FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT + SUM ( DISTINCT - 16 ) FROM tab1
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-8306
SELECT col0 * - col0 - 13 DIV col0 FROM tab1
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-8306
SELECT col0 * - col0 - 13 / col0 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-8307
SELECT DISTINCT MAX( col0 ) FROM tab1 WHERE ( - col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8307
SELECT DISTINCT MAX ( col0 ) FROM tab1 WHERE ( - col0 ) IS NULL
----
NULL

query I rowsort
SELECT ALL + ( 21 ) FROM tab1
----
21
21
21

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE ( - col1 ) <= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 68 + col0 * col1 BETWEEN col2 - col1 AND ( 19 + + col1 / - 54 )
----

query I rowsort
SELECT ALL 23 + col1 FROM tab2
----
100
74
90

query I rowsort
SELECT - col1 - + 3 FROM tab2
----
-54
-70
-80

query III rowsort
SELECT * FROM tab1 WHERE NOT 23 + col0 < - col0 + + 75
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * 6 + col2 FROM tab1
----
180
350
89

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 77 )
----

query I rowsort
SELECT ALL 84 + col1 FROM tab2 AS cor0
----
135
151
161

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 5 IN ( 57 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 * - 7 col0 FROM tab0 AS cor0
----
210
210
210

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT DISTINCT - + COUNT( * ) * MAX( DISTINCT - col0 * + col1 ) AS col1 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT - + COUNT ( * ) * MAX ( DISTINCT - col0 * + col1 ) AS col1 FROM tab0 AS cor0
----
291

query I rowsort
SELECT ALL col0 + - 30 AS col2 FROM tab2 AS cor0
----
16
34
45

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT ALL - + 41 - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-8322
SELECT ALL - + 41 - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT MIN( DISTINCT + col2 ) * - COUNT( * ) + - 21 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8323
SELECT MIN ( DISTINCT + col2 ) * - COUNT ( * ) + - 21 FROM tab0 AS cor0
----
-51

query I rowsort
SELECT 24 + ( 44 ) FROM tab1 AS cor0
----
68
68
68

query I rowsort
SELECT ALL - col2 + ( - col2 + + col2 ) FROM tab1 AS cor0
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN + col2 AND + ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - col0 - - col2 FROM tab0 cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT ALL 26 - COUNT( * ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL 26 - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8329
SELECT DISTINCT - 57 AS col0 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN + col0 + - 32 AND ( + CAST( col1 AS SIGNED ) )
----
-57

skipif mysql # not compatible
query I rowsort label-8329
SELECT DISTINCT - 57 AS col0 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN + col0 + - 32 AND ( + CAST ( col1 AS INTEGER ) )
----
-57

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col2 ) NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8331
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * col1 >= NULL
----

skipif mysql # not compatible
query III rowsort label-8331
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * col1 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( 23 )
----

query III rowsort
SELECT * FROM tab0 WHERE 65 >= 48
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 14 - - - 59 FROM tab1
----
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-8335
SELECT ALL + 17 DIV - + 21 * col1 - + col1 AS col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8335
SELECT ALL + 17 / - + 21 * col1 - + col1 AS col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT col0 * + col2 + - 60 FROM tab2
----
2500
4290
998

onlyif mysql # aggregate syntax: 
query I rowsort label-8337
SELECT ( - - COUNT( DISTINCT 15 ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8337
SELECT ( - - COUNT ( DISTINCT 15 ) ) FROM tab2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8338
SELECT MIN( ALL - ( - CAST( NULL AS SIGNED ) ) ) * 66 col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8338
SELECT MIN ( ALL - ( - CAST ( NULL AS INTEGER ) ) ) * 66 col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8339
SELECT DISTINCT ( col1 ) + CAST( col0 + 79 * + 13 AS SIGNED ) AS col0 FROM tab0 cor0 WHERE + col1 * - col0 < + 48 * - col0
----
1123

skipif mysql # not compatible
query I rowsort label-8339
SELECT DISTINCT ( col1 ) + CAST ( col0 + 79 * + 13 AS INTEGER ) AS col0 FROM tab0 cor0 WHERE + col1 * - col0 < + 48 * - col0
----
1123

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * - - col0 col0 FROM tab1 cor0
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8341
SELECT DISTINCT col0 * - col0 * col2 + + CAST( NULL AS SIGNED ) / - col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8341
SELECT DISTINCT col0 * - col0 * col2 + + CAST ( NULL AS INTEGER ) / - col1 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8342
SELECT ALL - 71 DIV col0 AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL - 71 / col0 AS col1 FROM tab2
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, col2 AS col1 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 / - col2 * col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - col1 ) * + ( - 43 ) AS col1 FROM tab1 cor0
----
2021
215
602

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT + col2 + + 3 + col2 AS col2 FROM tab1 AS cor0
----
121
139
195

query II rowsort
SELECT DISTINCT + col1, 43 AS col0 FROM tab0 cor0
----
1
43
21
43
81
43

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8351
SELECT DISTINCT 34 * + CAST( - col1 AS SIGNED ) + col0 FROM tab1 cor0
----
-1507
-425
-85

skipif mysql # not compatible
query I rowsort label-8351
SELECT DISTINCT 34 * + CAST ( - col1 AS INTEGER ) + col0 FROM tab1 cor0
----
-1507
-425
-85

query I rowsort
SELECT - 1 * 16 AS col2 FROM tab0 AS cor0
----
-16
-16
-16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8353
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT ( NULL ) < - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-8353
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) < - CAST ( NULL AS INTEGER )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8354
SELECT ( - + COUNT( * ) ) DIV + 43 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8354
SELECT ( - + COUNT ( * ) ) / + 43 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 + + 54 IS NOT NULL
----

query II rowsort
SELECT - 6 * + 34 AS col1, - col1 FROM tab2
----
-204
-51
-204
-67
-204
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 col2 FROM tab0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8358
SELECT - COUNT( * ) * - 44 col2 FROM tab1
----
132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8358
SELECT - COUNT ( * ) * - 44 col2 FROM tab1
----
132

onlyif mysql # DIV for integer division: 
query I rowsort label-8359
SELECT ALL 9 + - col0 * + 9 * + col1 + col0 DIV - ( col0 ) FROM tab0
----
-10927
-16435
-865

skipif mysql # not compatible
query I rowsort label-8359
SELECT ALL 9 + - col0 * + 9 * + col1 + col0 / - ( col0 ) FROM tab0
----
-10927
-16435
-865

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8360
SELECT DISTINCT + COUNT( * ) DIV + 99 - + 31 AS col0 FROM tab2 AS cor0 WHERE + col1 + 92 + + col0 NOT BETWEEN NULL AND NULL
----
-31

skipif mysql # not compatible
query I rowsort label-8360
SELECT DISTINCT + COUNT ( * ) / + 99 - + 31 AS col0 FROM tab2 AS cor0 WHERE + col1 + 92 + + col0 NOT BETWEEN NULL AND NULL
----
-31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < col0 - col0 + - col1 * 13
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + 12 NOT BETWEEN - col2 AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8363
SELECT col1 DIV + col2 + - 37 FROM tab2 AS cor0
----
-35
-36
-36

skipif mysql # not compatible
query I rowsort label-8363
SELECT col1 / + col2 + - 37 FROM tab2 AS cor0
----
-35
-36
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8364
SELECT - CAST( + + col0 AS SIGNED ) + - 82 AS col2 FROM tab0 AS cor0
----
-169
-179
-97

skipif mysql # not compatible
query I rowsort label-8364
SELECT - CAST ( + + col0 AS INTEGER ) + - 82 AS col2 FROM tab0 AS cor0
----
-169
-179
-97

query I rowsort
SELECT + col1 - + 20 + col0 * + col1 FROM tab0 AS cor0
----
1276
1828
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8366
SELECT - - 51 DIV - COUNT( * ) - 18 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-8366
SELECT - - 51 / - COUNT ( * ) - 18 FROM tab1 AS cor0
----
-35

query I rowsort
SELECT col2 - - - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 12 - + + ( - + 38 ) AS col2 FROM tab0 AS cor0
----
26
26
26

query I rowsort
SELECT - 22 - + 70 AS col1 FROM tab1 AS cor0
----
-92
-92
-92

query I rowsort
SELECT + col1 - - col2 AS col2 FROM tab0 cor0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8371
SELECT * FROM tab0 cor0 WHERE ( + 57 - - col1 * col2 + - CAST( NULL AS SIGNED ) + + col1 * 67 ) BETWEEN NULL AND 3
----

skipif mysql # not compatible
query III rowsort label-8371
SELECT * FROM tab0 cor0 WHERE ( + 57 - - col1 * col2 + - CAST ( NULL AS INTEGER ) + + col1 * 67 ) BETWEEN NULL AND 3
----

query I rowsort
SELECT + - col2 + - + 64 AS col0 FROM tab1 cor0
----
-123
-132
-160

query I rowsort
SELECT col1 + + ( - col0 ) * col0 FROM tab2 AS cor0
----
-2065
-4019
-5558

query I rowsort
SELECT ALL + col1 * + + col0 * - col2 + - col0 AS col0 FROM tab1 AS cor0
----
-25160
-290927
-68595

query I rowsort
SELECT col1 * - 9 * + col2 FROM tab0
----
-1890
-34263
-891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8376
SELECT - ( AVG ( DISTINCT col1 ) ) FROM tab2 WHERE NOT ( - - CAST( NULL AS SIGNED ) ) NOT IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8376
SELECT - ( AVG ( DISTINCT col1 ) ) FROM tab2 WHERE NOT ( - - CAST ( NULL AS INTEGER ) ) NOT IN ( col2 )
----
NULL

query I rowsort
SELECT DISTINCT 40 AS col0 FROM tab0 WHERE NOT + - 77 + + col0 >= NULL
----

query II rowsort
SELECT DISTINCT col2 AS col1, col1 AS col1 FROM tab2
----
23
51
40
77
58
67

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 * - col0 - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 / + - ( - + 88 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8381
SELECT - + col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8381
SELECT - + col2 / - col2 AS col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8382
SELECT ALL + col0 AS col0, col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
51
-1
85
-1
91
-1

skipif mysql # not compatible
query II rowsort label-8382
SELECT ALL + col0 AS col0, col0 / - col0 AS col2 FROM tab1 AS cor0
----
51
-1
85
-1
91
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT DISTINCT 63 * - - 58 * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-10962

skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT 63 * - - 58 * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-10962

onlyif mysql # DIV for integer division: 
query I rowsort label-8384
SELECT - - 74 DIV + col1 AS col2 FROM tab1 AS cor0
----
1
14
5

skipif mysql # not compatible
query I rowsort label-8384
SELECT - - 74 / + col1 AS col2 FROM tab1 AS cor0
----
1
14
5

query I rowsort
SELECT - col1 * ( + 0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8386
SELECT DISTINCT - CAST( ( - MAX( col1 ) ) AS SIGNED ) * - 94 FROM tab2 AS cor0
----
-7238

skipif mysql # not compatible
query I rowsort label-8386
SELECT DISTINCT - CAST ( ( - MAX ( col1 ) ) AS INTEGER ) * - 94 FROM tab2 AS cor0
----
-7238

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT SUM( DISTINCT + - 10 ) FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8387
SELECT SUM ( DISTINCT + - 10 ) FROM tab2 AS cor0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8388
SELECT + + MAX( ALL - - col2 ) / - CAST( NULL AS SIGNED ) - + + 85 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8388
SELECT + + MAX ( ALL - - col2 ) / - CAST ( NULL AS INTEGER ) - + + 85 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 * - + col0 * - ( - col2 ) + col0 AS col2 FROM tab1 cor0
----
-249645
-426190
-563017

query I rowsort
SELECT ALL ( + 61 ) * - - col2 FROM tab1 AS cor0
----
3599
4148
5856

query I rowsort
SELECT DISTINCT - 69 * - + col0 FROM tab1 AS cor0
----
3519
5865
6279

query I rowsort
SELECT + col2 + - - 16 FROM tab1 AS cor0 WHERE NOT + 64 * + 56 > + 47
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( - - col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8394
SELECT ALL - + 86 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8394
SELECT ALL - + 86 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8395
SELECT + CAST( NULL AS SIGNED ) + - AVG ( - col0 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8395
SELECT + CAST ( NULL AS INTEGER ) + - AVG ( - col0 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( col1 ) * - 26 AS col2 FROM tab0 AS cor0
----
2106
26
546

query I rowsort
SELECT + col2 + - + col0 AS col0 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-77
2
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8398
SELECT DISTINCT + COUNT( * ) + 8 FROM tab2 WHERE NOT - col1 * + + col2 - - col1 + ( - CAST( col2 AS SIGNED ) ) - ( + 96 ) * col2 * col2 IN ( + 30 + - 45 )
----
11

skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT + COUNT ( * ) + 8 FROM tab2 WHERE NOT - col1 * + + col2 - - col1 + ( - CAST ( col2 AS INTEGER ) ) - ( + 96 ) * col2 * col2 IN ( + 30 + - 45 )
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8399
SELECT ALL * FROM tab2 WHERE - 28 > ( + CAST( ( col2 ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8399
SELECT ALL * FROM tab2 WHERE - 28 > ( + CAST ( ( col2 ) AS INTEGER ) )
----

query I rowsort
SELECT - 91 * - + 45 FROM tab2
----
4095
4095
4095

onlyif mysql # aggregate syntax: 
query II rowsort label-8401
SELECT ALL - ( - COUNT( DISTINCT + col1 ) ) AS col1, COUNT( * ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-8401
SELECT ALL - ( - COUNT ( DISTINCT + col1 ) ) AS col1, COUNT ( * ) AS col1 FROM tab2
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 45 * - - col2 BETWEEN ( + col2 ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT ALL + 64 + + - COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
64

skipif mysql # not compatible
query I rowsort label-8403
SELECT ALL + 64 + + - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT ALL + ( + + COUNT( * ) ) + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8404
SELECT ALL + ( + + COUNT ( * ) ) + + COUNT ( * ) FROM tab0 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= - + col2 AND 78 / - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 42 - - col1 + - 80 FROM tab0
----
-17
-37
43

query I rowsort
SELECT ALL col0 * + col1 * - col1 AS col0 FROM tab1
----
-201019
-2125
-9996

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT ALL COUNT( * ) + - 99 + - ( - COUNT( * ) ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL COUNT ( * ) + - 99 + - ( - COUNT ( * ) ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT DISTINCT - - MAX( ALL 32 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
32

skipif mysql # not compatible
query I rowsort label-8409
SELECT DISTINCT - - MAX ( ALL 32 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8410
SELECT ( - col1 ) * col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8410
SELECT ( - col1 ) * col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 39 * col0 + 26 FROM tab1 AS cor0
----
-1963
-3289
-3523

query I rowsort
SELECT ALL col1 * - 87 FROM tab2 cor0
----
-4437
-5829
-6699

query I rowsort
SELECT - + 60 * + ( - 56 ) AS col1 FROM tab1 cor0
----
3360
3360
3360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8414
SELECT DISTINCT + 85 + - CAST( 83 AS SIGNED ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-8414
SELECT DISTINCT + 85 + - CAST ( 83 AS INTEGER ) FROM tab1 AS cor0
----
2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 - + col2 FROM tab1 AS cor0 WHERE NOT NULL >= NULL OR NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 91 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) >= - col1 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT - ( 83 ) * + COUNT( * ) FROM tab1
----
-249

skipif mysql # not compatible
query I rowsort label-8418
SELECT - ( 83 ) * + COUNT ( * ) FROM tab1
----
-249

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 * + 71 = col1
----

query I rowsort
SELECT col0 * + - 41 FROM tab1
----
-2091
-3485
-3731

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 col0 FROM tab2
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT ALL COUNT( * ) + + COUNT( * ) col2 FROM tab2 WHERE - 34 IN ( col1, + 52 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8422
SELECT ALL COUNT ( * ) + + COUNT ( * ) col2 FROM tab2 WHERE - 34 IN ( col1, + 52 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 * - + col2 + + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 14 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8425
SELECT col0 * + CAST( col0 AS SIGNED ) + - col2 AS col1 FROM tab2
----
2093
4056
5567

skipif mysql # not compatible
query I rowsort label-8425
SELECT col0 * + CAST ( col0 AS INTEGER ) + - col2 AS col1 FROM tab2
----
2093
4056
5567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8426
SELECT DISTINCT + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8426
SELECT DISTINCT + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN + - 37 * 77 * - - 15 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 35 + col2 IS NOT NULL
----

query II rowsort
SELECT 16 - - 76 + + - col1 * ( + col0 ), 41 * col0 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8430
SELECT ALL 14 * - 91 + + + col0 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8430
SELECT ALL 14 * - 91 + + + col0 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8431
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8431
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) col0 FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-8432
SELECT + + col1, - ( + 12 ) DIV + col2 AS col2 FROM tab1 AS cor0
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-8432
SELECT + + col1, - ( + 12 ) / + col2 AS col2 FROM tab1 AS cor0
----
14
0
47
0
5
0

query II rowsort
SELECT - 14 * - col2, - 42 AS col0 FROM tab1
----
1344
-42
826
-42
952
-42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8434
SELECT + COUNT( * ) DIV - 5 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8434
SELECT + COUNT ( * ) / - 5 FROM tab0
----
0

query I rowsort
SELECT + col1 + col1 + col0 FROM tab2
----
148
209
218

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - + ( 34 ) + + col1 col1 FROM tab1
----
-24
-6
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8437
SELECT ALL ( + - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8437
SELECT ALL ( + - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 NOT IN ( + col1, + col0 + + + col2, + + col1 * + col2 + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 * + 12 * ( - + 54 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8440
SELECT + - 39 * - - 0 AS col0, - 46 + + SUM( - + col2 ) FROM tab2 AS cor0
----
0
-167

skipif mysql # not compatible
query II rowsort label-8440
SELECT + - 39 * - - 0 AS col0, - 46 + + SUM ( - + col2 ) FROM tab2 AS cor0
----
0
-167

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + + + col0 + - 13 <= NULL
----

query I rowsort
SELECT ALL 9 AS col1 FROM tab2 AS cor0 WHERE col0 < - 28
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8443
SELECT + COUNT( * ) DIV + 29 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8443
SELECT + COUNT ( * ) / + 29 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col0 - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8444
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col0 - col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8445
SELECT - COUNT( * ) AS col2, + MAX( ALL + 9 ) FROM tab0 cor0
----
-3
9

skipif mysql # not compatible
query II rowsort label-8445
SELECT - COUNT ( * ) AS col2, + MAX ( ALL + 9 ) FROM tab0 cor0
----
-3
9

query II rowsort
SELECT ALL + 61, + col2 + - col1 AS col0 FROM tab1 AS cor0
----
61
21
61
54
61
82

query II rowsort
SELECT + - col1 AS col0, ( - col1 ) FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8448
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN + 34 * 26 + 17 * + CAST( + - col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-8448
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN + 34 * 26 + 17 * + CAST ( + - col2 AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8449
SELECT - + col2, - ( - 1 ) DIV + + col1 AS col2 FROM tab0 cor0
----
-10
0
-47
0
-99
1

skipif mysql # not compatible
query II rowsort label-8449
SELECT - + col2, - ( - 1 ) / + + col1 AS col2 FROM tab0 cor0
----
-10
0
-47
0
-99
1

query I rowsort
SELECT ALL + col2 + + col0 FROM tab1 WHERE 93 + 5 BETWEEN + + col0 AND - col2 * - + col1 * col1 + - col1
----
144
147
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8451
SELECT DISTINCT MAX( DISTINCT - col2 ) DIV + 4 AS col1 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-8451
SELECT DISTINCT MAX ( DISTINCT - col2 ) / + 4 AS col1 FROM tab0
----
-2

query II rowsort
SELECT ALL - col0 * + col1 AS col2, + 34 AS col2 FROM tab1
----
-425
34
-4277
34
-714
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8453
SELECT ALL CAST( - col2 AS SIGNED ) col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8453
SELECT ALL CAST ( - col2 AS INTEGER ) col1 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + ( col1 ) / - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( 73, + 99 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8456
SELECT 13 DIV - col0 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8456
SELECT 13 / - col0 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 49 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT DISTINCT + + col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8459
SELECT DISTINCT + 44 + + - col2 - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8459
SELECT DISTINCT + 44 + + - col2 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL OR col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * + - 81 * 40 + - col2 + - + col0 col1 FROM tab2 AS cor0
----
-129704
-188053
-74589

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8462
SELECT - + col0 + CAST( - 34 AS SIGNED ) + - col1 AS col1 FROM tab2 AS cor0
----
-131
-175
-176

skipif mysql # not compatible
query I rowsort label-8462
SELECT - + col0 + CAST ( - 34 AS INTEGER ) + - col1 AS col1 FROM tab2 AS cor0
----
-131
-175
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT 36 + - MAX( DISTINCT - + 50 ) - COUNT( * ) - + - MIN( 13 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8463
SELECT 36 + - MAX ( DISTINCT - + 50 ) - COUNT ( * ) - + - MIN ( 13 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + 53 + + col1 + + col0 * - 73 AS col0 FROM tab0 AS cor0
----
-6277
-7027
-961

query I rowsort
SELECT ALL - col0 + + 56 AS col2 FROM tab2 AS cor0 WHERE NOT - 34 * - + col1 IS NULL
----
-19
-8
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT ALL - ( - - COUNT( col2 ) ) * COUNT( * ) + 98 FROM tab2 cor0
----
89

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL - ( - - COUNT ( col2 ) ) * COUNT ( * ) + 98 FROM tab2 cor0
----
89

query II rowsort
SELECT DISTINCT + col2, col0 + + ( - - col0 ) * - - col2 * - + col0 * + 74 * - col2 AS col1 FROM tab2 AS cor0
----
23
82832982
40
484966464
58
1400265075

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 / 21 IS NOT NULL
----

query II rowsort
SELECT ALL - col1 AS col0, + 62 AS col0 FROM tab0
----
-1
62
-21
62
-81
62

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8470
SELECT DISTINCT CAST( NULL AS SIGNED ) col2, - col0 DIV - + col0 AS col1 FROM tab0
----
NULL
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8470
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2, - col0 / - + col0 AS col1 FROM tab0
----
NULL
1

query II rowsort
SELECT ALL col1, col0 + - col1 + - 24 FROM tab0
----
1
72
21
42
81
-90

query II rowsort
SELECT col1 * col0, + 29 AS col1 FROM tab2
----
2346
29
4928
29
5025
29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8473
SELECT DISTINCT + col0 AS col1, - CAST( NULL AS SIGNED ) + col1 AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-8473
SELECT DISTINCT + col0 AS col1, - CAST ( NULL AS INTEGER ) + col1 AS col2 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT DISTINCT + COUNT( * ) * 74 + - - COUNT( * ) FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-8474
SELECT DISTINCT + COUNT ( * ) * 74 + - - COUNT ( * ) FROM tab1
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8475
SELECT CAST( NULL AS SIGNED ) * ( - - 51 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8475
SELECT CAST ( NULL AS INTEGER ) * ( - - 51 ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8476
SELECT - CAST( col1 AS DECIMAL ) * col0 AS col2 FROM tab0 WHERE - - col1 IN ( + ( - - col2 ) / - col2 )
----

skipif mysql # not compatible
query I rowsort label-8476
SELECT - CAST ( col1 AS REAL ) * col0 AS col2 FROM tab0 WHERE - - col1 IN ( + ( - - col2 ) / - col2 )
----

query I rowsort
SELECT ( + 91 ) FROM tab0
----
91
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8478
SELECT - 2, CAST( NULL AS SIGNED ) col2 FROM tab0
----
-2
NULL
-2
NULL
-2
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8478
SELECT - 2, CAST ( NULL AS INTEGER ) col2 FROM tab0
----
-2
NULL
-2
NULL
-2
NULL

query I rowsort
SELECT ALL + col2 + - - 5 + ( + col2 ) * - - col1 AS col1 FROM tab0
----
203
225
3859

query II rowsort
SELECT col2 AS col2, - col2 AS col1 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query II rowsort
SELECT + ( - + 10 ), - col1 FROM tab1 AS cor0 WHERE + 90 IS NULL
----

query I rowsort
SELECT + col2 * col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
100
2209
9801

query I rowsort
SELECT ALL - col2 * + ( + col2 ) FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT MAX( - 29 ) + - + 20 AS col1 FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-8484
SELECT MAX ( - 29 ) + - + 20 AS col1 FROM tab2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT + 64 * - + COUNT( ALL - col0 ) AS col0 FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-8485
SELECT + 64 * - + COUNT ( ALL - col0 ) AS col0 FROM tab2
----
-192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8486
SELECT ALL - COUNT( * ) + - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8486
SELECT ALL - COUNT ( * ) + - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8487
SELECT ALL + CAST( - + col2 AS SIGNED ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8487
SELECT ALL + CAST ( - + col2 AS INTEGER ) FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 + - - col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT + + COUNT( * ) col2 FROM tab2 cor0 WHERE NOT ( + col2 + + col0 ) IN ( - ( + + 18 ), + 82 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8489
SELECT + + COUNT ( * ) col2 FROM tab2 cor0 WHERE NOT ( + col2 + + col0 ) IN ( - ( + + 18 ), + 82 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT - COUNT( * ) * + - 6 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-8490
SELECT - COUNT ( * ) * + - 6 FROM tab0 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT DISTINCT - MIN( DISTINCT - - col1 ) * + COUNT( + col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8491
SELECT DISTINCT - MIN ( DISTINCT - - col1 ) * + COUNT ( + col0 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 AS cor0 WHERE + 3 * 68 >= 9
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 93 col2 FROM tab0
----
4371
9207
930

query I rowsort
SELECT ALL 89 * - - col1 AS col1 FROM tab2
----
4539
5963
6853

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8495
SELECT ALL 16 DIV COUNT( * ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8495
SELECT ALL 16 / COUNT ( * ) AS col1 FROM tab1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8496
SELECT DISTINCT - col0, CAST( - - col1 AS SIGNED ) AS col0 FROM tab1
----
-51
14
-85
5
-91
47

skipif mysql # not compatible
query II rowsort label-8496
SELECT DISTINCT - col0, CAST ( - - col1 AS INTEGER ) AS col0 FROM tab1
----
-51
14
-85
5
-91
47

query III rowsort
SELECT * FROM tab1 WHERE NOT - 47 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 20 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + - 71, ( + col1 ) AS col1 FROM tab0 cor0
----
-71
1
-71
21
-71
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8500
SELECT DISTINCT col0 DIV - 26 FROM tab0
----
-3
0

skipif mysql # not compatible
query I rowsort label-8500
SELECT DISTINCT col0 / - 26 FROM tab0
----
-3
0

query I rowsort
SELECT - 36 + + - col1 FROM tab1
----
-41
-50
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-8502
SELECT DISTINCT COUNT( * ) + ( SUM( + col2 ) ) + - ( - 63 ) AS col1 FROM tab1
----
289

skipif mysql # not compatible
query I rowsort label-8502
SELECT DISTINCT COUNT ( * ) + ( SUM ( + col2 ) ) + - ( - 63 ) AS col1 FROM tab1
----
289

query I rowsort
SELECT DISTINCT + + 28 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
28

query I rowsort
SELECT DISTINCT - col1 * + 55 + + 55 FROM tab0 cor0
----
-1100
-4400
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - 1 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
50
66
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 2 + - + col2 + - + col0 col1 FROM tab2 AS cor0
----
-20
-29
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8507
SELECT ALL col1 + - + CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL col1 + - + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8508
SELECT DISTINCT + col0 * + - col2 - + 20 + + col1 * col0 - - CAST( - + 91 AS SIGNED ) FROM tab1 AS cor0
----
-2022
-4293
-4701

skipif mysql # not compatible
query I rowsort label-8508
SELECT DISTINCT + col0 * + - col2 - + 20 + + col1 * col0 - - CAST ( - + 91 AS INTEGER ) FROM tab1 AS cor0
----
-2022
-4293
-4701

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8509
SELECT ALL col1 * - CAST( NULL AS SIGNED ) - - + col0 * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) - - + col0 * col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT 12 + - COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8510
SELECT 12 + - COUNT ( * ) FROM tab0
----
9

query III rowsort
SELECT * FROM tab0 WHERE NULL = - + col2 - - ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8512
SELECT ALL + + col1 + + col0 AS col1 FROM tab1 WHERE NOT - col0 + - - CAST( NULL AS SIGNED ) - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL + + col1 + + col0 AS col1 FROM tab1 WHERE NOT - col0 + - - CAST ( NULL AS INTEGER ) - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8513
SELECT + 4 * - CAST( - 89 AS SIGNED ) FROM tab2 WHERE + 86 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8513
SELECT + 4 * - CAST ( - 89 AS INTEGER ) FROM tab2 WHERE + 86 IS NULL
----

query I rowsort
SELECT DISTINCT - - 51 FROM tab2 WHERE 62 IS NOT NULL
----
51

query I rowsort
SELECT - col0 FROM tab2 WHERE + 60 - - + 96 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT DISTINCT 82 + + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-8516
SELECT DISTINCT 82 + + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8517
SELECT ALL + 94 + CAST( + - 37 AS SIGNED ) FROM tab0 AS cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-8517
SELECT ALL + 94 + CAST ( + - 37 AS INTEGER ) FROM tab0 AS cor0
----
57
57
57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= - col2 / + + 9
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 74 > + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query II rowsort
SELECT ALL col2 AS col0, - col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8522
SELECT ALL - COUNT( * ) * CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8522
SELECT ALL - COUNT ( * ) * CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT DISTINCT COUNT( * ) FROM tab0 cor0 WHERE - 36 * + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8523
SELECT DISTINCT COUNT ( * ) FROM tab0 cor0 WHERE - 36 * + col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT + 42 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-8524
SELECT + 42 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
126

query II rowsort
SELECT col1 AS col0, + col1 * - + col0 + ( - col0 ) + - col2 AS col1 FROM tab1 AS cor0
----
14
-861
47
-4436
5
-569

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT + + COUNT( ALL col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8526
SELECT + + COUNT ( ALL col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - - col2 * + - 67 AS col0 FROM tab2 AS cor0
----
-1541
-2680
-3886

query II rowsort
SELECT 14, - col0 + + 82 * 52 + - 87 AS col0 FROM tab0 AS cor0
----
14
4080
14
4090
14
4162

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT DISTINCT MIN( ALL + col2 ) * - ( + COUNT( * ) ) FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-8529
SELECT DISTINCT MIN ( ALL + col2 ) * - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-177

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 84 + + - col0 * - 13 - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col2 FROM tab0 WHERE + + ( - col1 ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT 95 * + col0 AS col1 FROM tab0 WHERE + + col0 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 22 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8534
SELECT DISTINCT CAST( - + COUNT( * ) AS SIGNED ) col2, + COUNT( * ) + + SUM( ALL + - 13 ) FROM tab2
----
-3
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8534
SELECT DISTINCT CAST ( - + COUNT ( * ) AS INTEGER ) col2, + COUNT ( * ) + + SUM ( ALL + - 13 ) FROM tab2
----
-3
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT ALL - MAX( ALL - - col0 ) col2 FROM tab2
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8535
SELECT ALL - MAX ( ALL - - col0 ) col2 FROM tab2
----
-75

query I rowsort
SELECT DISTINCT - 38 AS col1 FROM tab2 WHERE col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col0 * - + ( + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8538
SELECT DISTINCT CAST( + - ( col2 ) AS SIGNED ) * - CAST( + 34 AS SIGNED ) + - col0 AS col1 FROM tab0 AS cor0
----
1583
253
3269

skipif mysql # not compatible
query I rowsort label-8538
SELECT DISTINCT CAST ( + - ( col2 ) AS INTEGER ) * - CAST ( + 34 AS INTEGER ) + - col0 AS col1 FROM tab0 AS cor0
----
1583
253
3269

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8539
SELECT + + col0 / - - col0 + CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8539
SELECT + + col0 / - - col0 + CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 97 - + col0 FROM tab1 AS cor0 WHERE col2 + + 10 <> col2
----
12
46
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8541
SELECT DISTINCT - 79 + COUNT( DISTINCT + 34 ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-8541
SELECT DISTINCT - 79 + COUNT ( DISTINCT + 34 ) FROM tab2 AS cor0
----
-78

query I rowsort
SELECT DISTINCT 29 + - 63 FROM tab1 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT + MIN( ALL - 46 ) * + 49 + - 52 FROM tab2 cor0
----
-2306

skipif mysql # not compatible
query I rowsort label-8543
SELECT + MIN ( ALL - 46 ) * + 49 + - 52 FROM tab2 cor0
----
-2306

query I rowsort
SELECT + 32 + + + 48 FROM tab0 AS cor0
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT + 0 + - COUNT( * ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8545
SELECT + 0 + - COUNT ( * ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8546
SELECT - - 33 * col1 + col0 + - CAST( - + 93 AS SIGNED ) + ( + - col2 ) - + 85 * col0 * - + 31 FROM tab2 cor0
----
123009
171298
199946

skipif mysql # not compatible
query I rowsort label-8546
SELECT - - 33 * col1 + col0 + - CAST ( - + 93 AS INTEGER ) + ( + - col2 ) - + 85 * col0 * - + 31 FROM tab2 cor0
----
123009
171298
199946

query I rowsort
SELECT - 5 + + - col1 AS col0 FROM tab0 AS cor0
----
-26
-6
-86

query II rowsort
SELECT DISTINCT col2 / + + 87 AS col2, col2 - - + ( - + col1 ) FROM tab2 cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN - 48 * + - col1 * - 62 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT DISTINCT + 17 - - ( - SUM( ALL - 96 ) ) FROM tab1 AS cor0
----
305

skipif mysql # not compatible
query I rowsort label-8550
SELECT DISTINCT + 17 - - ( - SUM ( ALL - 96 ) ) FROM tab1 AS cor0
----
305

query I rowsort
SELECT + 40 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 >= 89
----
91
47
68

query III rowsort
SELECT * FROM tab0 WHERE + + 50 * 65 IS NULL
----

query I rowsort
SELECT + 70 * - + col1 AS col2 FROM tab2
----
-3570
-4690
-5390

query II rowsort
SELECT ALL ( + 64 ), - 40 AS col1 FROM tab1
----
64
-40
64
-40
64
-40

query I rowsort
SELECT 78 * - 52 - col1 + - 71 * + 94 FROM tab2
----
-10781
-10797
-10807

query I rowsort
SELECT + + col0 AS col0 FROM tab2 WHERE + - col0 < NULL
----

query I rowsort
SELECT - + ( col2 ) - + - col1 AS col1 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT + + 26 * + ( col1 ) AS col2 FROM tab0 cor0
----
2106
26
546

query I rowsort
SELECT ALL + 86 * ( + - col2 ) AS col0 FROM tab0 cor0
----
-4042
-8514
-860

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 + - col0 / col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8562
SELECT - MIN( DISTINCT - col0 ) AS col0 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-8562
SELECT - MIN ( DISTINCT - col0 ) AS col0 FROM tab1 cor0
----
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN + - 47 * - - col1 AND - - ( + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + AVG ( + col1 ) FROM tab1 AS cor0 WHERE NOT + 92 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT DISTINCT 40 AS col1 FROM tab0 AS cor0 WHERE NOT ( col2 * + - col1 ) IS NULL
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8567
SELECT 6 DIV col2 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8567
SELECT 6 / col2 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8568
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 WHERE - - col2 < ( - - col1 / + 99 )
----

skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE - - col2 < ( - - col1 / + 99 )
----

query II rowsort
SELECT - 8 AS col1, - col0 FROM tab2
----
-8
-46
-8
-64
-8
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8570
SELECT ALL MIN( DISTINCT - + ( + - 50 ) ) AS col1 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-8570
SELECT ALL MIN ( DISTINCT - + ( + - 50 ) ) AS col1 FROM tab0
----
50

query II rowsort
SELECT ALL - col0 AS col2, - col2 FROM tab0
----
-15
-47
-87
-10
-97
-99

query I rowsort
SELECT + 33 + - + col0 - 43 + col1 AS col0 FROM tab0 AS cor0
----
-106
-76
56

onlyif mysql # aggregate syntax: 
query II rowsort label-8573
SELECT ALL + SUM( + col2 ) AS col2, 12 FROM tab1 AS cor0
----
223
12

skipif mysql # not compatible
query II rowsort label-8573
SELECT ALL + SUM ( + col2 ) AS col2, 12 FROM tab1 AS cor0
----
223
12

query I rowsort
SELECT + 85 AS col1 FROM tab2 AS cor0 WHERE 12 IS NOT NULL
----
85
85
85

query I rowsort
SELECT ALL 35 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8576
SELECT * FROM tab1 AS cor0 WHERE + CAST( - - col0 AS DECIMAL ) NOT BETWEEN NULL AND + col2 * col1
----

skipif mysql # not compatible
query III rowsort label-8576
SELECT * FROM tab1 AS cor0 WHERE + CAST ( - - col0 AS REAL ) NOT BETWEEN NULL AND + col2 * col1
----

query I rowsort
SELECT - 7 FROM tab2 AS cor0 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT ALL - col2 + + - 6 * 67 * col2 FROM tab1 AS cor0
----
-23777
-27404
-38688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) - - col2 * + - col0 col1 FROM tab1 AS cor0
----
-4947
-5100
-6279

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + ( + col0 ) IS NULL
----

query I rowsort
SELECT ALL + 80 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
80
80
80

query I rowsort
SELECT ALL + ( col1 ) - + - col0 + - + col2 FROM tab2 AS cor0
----
101
74
84

query II rowsort
SELECT ALL - col0 AS col2, + 38 FROM tab2
----
-46
38
-64
38
-75
38

query II rowsort
SELECT DISTINCT + col2, - col0 * - 33 + + col1 * + col0 AS col1 FROM tab1
----
59
3230
68
7280
96
2397

query I rowsort
SELECT ALL + + col1 * 59 AS col0 FROM tab1 WHERE NOT + - 73 IS NULL
----
2773
295
826

query II rowsort
SELECT + 23, + col2 AS col0 FROM tab0 WHERE NOT - col1 + + + col2 + + - col1 * 97 + - - col2 < - + col0
----
23
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8587
SELECT ALL + - COUNT( * ) AS col2, CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8587
SELECT ALL + - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
-3
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8588
SELECT ALL + - col0 DIV - col0 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL + - col0 / - col0 AS col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT ALL SUM( - 40 ) AS col1 FROM tab0
----
-120

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL SUM ( - 40 ) AS col1 FROM tab0
----
-120

onlyif mysql # aggregate syntax: 
query II rowsort label-8590
SELECT DISTINCT + COUNT( - col0 ) AS col0, ( 78 ) + - COUNT( * ) FROM tab1
----
3
75

skipif mysql # not compatible
query II rowsort label-8590
SELECT DISTINCT + COUNT ( - col0 ) AS col0, ( 78 ) + - COUNT ( * ) FROM tab1
----
3
75

query I rowsort
SELECT - - ( 66 ) * 60 FROM tab1 cor0
----
3960
3960
3960

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT SUM( 67 ) FROM tab1 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-8592
SELECT SUM ( 67 ) FROM tab1 AS cor0
----
201

onlyif mysql # aggregate syntax: 
query I rowsort label-8593
SELECT - 82 * - MIN( + - 94 ) FROM tab2 AS cor0
----
-7708

skipif mysql # not compatible
query I rowsort label-8593
SELECT - 82 * - MIN ( + - 94 ) FROM tab2 AS cor0
----
-7708

query II rowsort
SELECT ALL col1 * - col1 AS col0, 12 * 31 AS col0 FROM tab0 AS cor0
----
-1
372
-441
372
-6561
372

query I rowsort
SELECT 24 FROM tab2 AS cor0 WHERE NOT 71 NOT BETWEEN + col0 AND + ( - + col1 )
----

query I rowsort
SELECT + col0 + + 51 - + 11 FROM tab2 AS cor0
----
104
115
86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8597
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 7 * - + col0 * - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8597
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 7 * - + col0 * - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT + ( + - COUNT( * ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8598
SELECT + ( + - COUNT ( * ) ) AS col2 FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 + col0 col0 FROM tab1 WHERE + col2 = col2 * - + 92
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8600
SELECT DISTINCT + CAST( - 77 AS SIGNED ) FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-8600
SELECT DISTINCT + CAST ( - 77 AS INTEGER ) FROM tab1
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + + 29 col2 FROM tab1 AS cor0
----
114
120
80

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( col0 - + 14 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8603
SELECT 90 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8603
SELECT 90 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8604
SELECT col1 + + - col0 * - col2 + col1 DIV + col2 AS col0 FROM tab1
----
4910
5020
6235

skipif mysql # not compatible
query I rowsort label-8604
SELECT col1 + + - col0 * - col2 + col1 / + col2 AS col0 FROM tab1
----
4910
5020
6235

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT DISTINCT - 70 * - 35 + - - COUNT( * ) col2 FROM tab1 AS cor0
----
2453

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8605
SELECT DISTINCT - 70 * - 35 + - - COUNT ( * ) col2 FROM tab1 AS cor0
----
2453

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8606
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = col2 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8606
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = col2 + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT - col1 + - col1 * - col1 + - 51 AS col0, col2 AS col2 FROM tab0 AS cor0
----
-51
99
369
10
6429
47

query II rowsort
SELECT col0, - col1 AS col0 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 BETWEEN - - 51 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col0 + - 28 FROM tab2 cor0
----
18
36
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8612
SELECT 83 col0, + MIN( + CAST( NULL AS SIGNED ) ) + + COUNT( + + col2 ) AS col1 FROM tab2 AS cor0
----
83
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8612
SELECT 83 col0, + MIN ( + CAST ( NULL AS INTEGER ) ) + + COUNT ( + + col2 ) AS col1 FROM tab2 AS cor0
----
83
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 84 + - - 78 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8614
SELECT ALL + + 32, COUNT( ALL + + CAST( NULL AS DECIMAL ) ) * + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
32
0

skipif mysql # not compatible
query II rowsort label-8614
SELECT ALL + + 32, COUNT ( ALL + + CAST ( NULL AS REAL ) ) * + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
32
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8615
SELECT DISTINCT + SUM( ALL - col2 ) AS col2, MIN( DISTINCT + col1 ) FROM tab0 AS cor0
----
-156
1

skipif mysql # not compatible
query II rowsort label-8615
SELECT DISTINCT + SUM ( ALL - col2 ) AS col2, MIN ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-156
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT MIN( + + 10 ) col0 FROM tab2
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8616
SELECT MIN ( + + 10 ) col0 FROM tab2
----
10

query I rowsort
SELECT col1 * - 59 FROM tab1
----
-2773
-295
-826

query II rowsort
SELECT DISTINCT col2 * + col0 AS col2, col2 FROM tab1
----
4896
96
5015
59
6188
68

onlyif mysql # DIV for integer division: 
query II rowsort label-8619
SELECT ALL + ( col0 ) DIV col1 AS col0, + col2 FROM tab0
----
0
47
4
10
97
99

skipif mysql # not compatible
query II rowsort label-8619
SELECT ALL + ( col0 ) / col1 AS col0, + col2 FROM tab0
----
0
47
4
10
97
99

query I rowsort
SELECT + 45 * col0 * + col2 FROM tab1
----
220320
225675
278460

query II rowsort
SELECT col1 * + + col0 AS col2, - col1 * - col0 + 43 * + col2 AS col2 FROM tab2
----
2346
3335
4928
6648
5025
7519

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + 54
----

query II rowsort
SELECT col0 * col0 AS col2, + 19 + + 70 FROM tab2
----
2116
89
4096
89
5625
89

query I rowsort
SELECT + 15 * + col0 AS col2 FROM tab2 AS cor0
----
1125
690
960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 43, 17 * ( - - col0 ) col0 FROM tab1
----
43
1445
43
1547
43
867

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8626
SELECT ALL COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT DISTINCT - COUNT( * ) + + - MIN( + - col0 ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-8627
SELECT DISTINCT - COUNT ( * ) + + - MIN ( + - col0 ) FROM tab2 AS cor0
----
72

query II rowsort
SELECT ALL + + col2 AS col0, - col2 AS col2 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8629
SELECT ALL - col0 + + + 84 + - - CAST( + - 71 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-38
-72
-78

skipif mysql # not compatible
query I rowsort label-8629
SELECT ALL - col0 + + + 84 + - - CAST ( + - 71 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-38
-72
-78

query I rowsort
SELECT 65 * + col1 AS col1 FROM tab1 cor0
----
3055
325
910

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT DISTINCT MAX( - col0 ) AS col2 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8631
SELECT DISTINCT MAX ( - col0 ) AS col2 FROM tab0 cor0
----
-15

query I rowsort
SELECT ALL col2 - - col2 FROM tab2 AS cor0 WHERE NOT + 62 + - 33 IS NULL
----
116
46
80

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8633
SELECT - ( 27 ) * - CAST( NULL AS DECIMAL ) + + - MIN( - + col0 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8633
SELECT - ( 27 ) * - CAST ( NULL AS REAL ) + + - MIN ( - + col0 ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - - col1 < - col2
----

query I rowsort
SELECT + col0 FROM tab2 WHERE NULL BETWEEN col0 AND NULL
----

query I rowsort
SELECT DISTINCT col0 + - + col0 * col1 AS col0 FROM tab2
----
-2300
-4864
-4950

query I rowsort
SELECT - 16 + + - ( 64 ) FROM tab2
----
-80
-80
-80

query I rowsort
SELECT ALL + 59 FROM tab1 WHERE NOT ( NULL ) > + col2 AND NULL < col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 + + 19 col1 FROM tab0 AS cor0
----
107
107
107

query I rowsort
SELECT DISTINCT 1 + + ( + + col1 ) FROM tab2 AS cor0
----
52
68
78

query I rowsort
SELECT col2 * col2 AS col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT col0 * - 59 FROM tab2
----
-2714
-3776
-4425

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT DISTINCT - 61 * - MIN( ALL - + 26 ) AS col2 FROM tab1
----
-1586

skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT - 61 * - MIN ( ALL - + 26 ) AS col2 FROM tab1
----
-1586

query I rowsort
SELECT ALL + - ( + col0 ) FROM tab1 WHERE NOT - col1 * + 90 * + col0 + col1 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT - COUNT( * ) * + 8 * - + 3 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-8645
SELECT - COUNT ( * ) * + 8 * - + 3 FROM tab1
----
72

query I rowsort
SELECT DISTINCT + - 97 + + - 26 AS col0 FROM tab1 AS cor0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT + MIN( 40 ) AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
40

skipif mysql # not compatible
query I rowsort label-8647
SELECT + MIN ( 40 ) AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
40

query I rowsort
SELECT DISTINCT + - ( - + ( - - col1 ) ) + - col1 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8649
SELECT + 47 DIV - 24 col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8649
SELECT + 47 / - 24 col2 FROM tab0 AS cor0
----
-1
-1
-1

query II rowsort
SELECT 40 + - col2 + + col0 AS col1, - col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT + MIN( 78 ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-8651
SELECT + MIN ( 78 ) FROM tab1 AS cor0
----
78

query II rowsort
SELECT + col0 AS col0, + col0 * - col0 AS col1 FROM tab1 AS cor0
----
51
-2601
85
-7225
91
-8281

query II rowsort
SELECT DISTINCT - col2 AS col0, 87 AS col2 FROM tab2 AS cor0
----
-23
87
-40
87
-58
87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8654
SELECT ALL - col0 * + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8654
SELECT ALL - col0 * + - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8655
SELECT * FROM tab1 cor0 WHERE NOT + col0 = - CAST( + - col1 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8655
SELECT * FROM tab1 cor0 WHERE NOT + col0 = - CAST ( + - col1 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 7 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8657
SELECT DISTINCT + col2 * + - CAST( + col0 AS SIGNED ) FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-8657
SELECT DISTINCT + col2 * + - CAST ( + col0 AS INTEGER ) FROM tab0
----
-705
-870
-9603

query II rowsort
SELECT col2, 74 FROM tab2
----
23
74
40
74
58
74

onlyif mysql # DIV for integer division: 
query I rowsort label-8659
SELECT ALL + 94 DIV - 92 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8659
SELECT ALL + 94 / - 92 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8660
SELECT + - ( - - CAST( NULL AS SIGNED ) ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8660
SELECT + - ( - - CAST ( NULL AS INTEGER ) ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 > col0 - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 19 * - 67 * + + 93 + 59 <> NULL
----

query I rowsort
SELECT DISTINCT - ( 70 ) * + col2 AS col0 FROM tab0 AS cor0
----
-3290
-6930
-700

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= - 65
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 72 + col2 col1, - 90 * + - col1 AS col2 FROM tab1 AS cor0
----
131
450
140
4230
168
1260

query I rowsort
SELECT DISTINCT ( + - col2 ) * 45 * - 14 AS col2 FROM tab1 AS cor0
----
37170
42840
60480

query I rowsort
SELECT 11 / + - col1 - + + ( - col1 ) * - col0 + + 58 FROM tab2 AS cor0 WHERE NULL BETWEEN + 41 AND - 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT DISTINCT + MIN( + - col1 ) * - COUNT( - - col0 ) + COUNT( * ) AS col1 FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-8668
SELECT DISTINCT + MIN ( + - col1 ) * - COUNT ( - - col0 ) + COUNT ( * ) AS col1 FROM tab1
----
144

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8669
SELECT DISTINCT + AVG ( + CAST( + - 50 AS SIGNED ) ) + + - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8669
SELECT DISTINCT + AVG ( + CAST ( + - 50 AS INTEGER ) ) + + - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 60 - col2 AS col1 FROM tab2 AS cor0
----
-100
-118
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 + - col1 col2 FROM tab0 AS cor0
----
-11
49
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8672
SELECT ALL - + MAX( DISTINCT + 27 ) * - COUNT( * ) - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8672
SELECT ALL - + MAX ( DISTINCT + 27 ) * - COUNT ( * ) - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE - 66 IS NULL
----

query II rowsort
SELECT col2 + + + col1 AS col1, + col2 FROM tab0
----
100
99
128
47
31
10

query I rowsort
SELECT + - col1 * - col0 * - - 97 * + col1 FROM tab2 AS cor0
----
11605662
32657475
36807232

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 70 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col1 - - 52 ) BETWEEN ( - 0 ) AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + col1 - 54 * col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8679
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-8679
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT 16 FROM tab0 WHERE NOT - col2 BETWEEN NULL AND 68
----

query I rowsort
SELECT DISTINCT - - 84 AS col1 FROM tab1 WHERE NULL > 16
----

query I rowsort
SELECT DISTINCT col0 * + + 44 FROM tab1
----
2244
3740
4004

onlyif mysql # DIV for integer division: 
query I rowsort label-8683
SELECT ALL col0 DIV - 73 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL col0 / - 73 FROM tab1
----
-1
-1
0

query I rowsort
SELECT ALL col2 * + 2 FROM tab0
----
198
20
94

query II rowsort
SELECT ALL 69 AS col0, col0 FROM tab2
----
69
46
69
64
69
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8686
SELECT - CAST( + + 9 AS SIGNED ) FROM tab2
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-8686
SELECT - CAST ( + + 9 AS INTEGER ) FROM tab2
----
-9
-9
-9

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 WHERE - + col2 + + col2 IS NOT NULL
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 17 col1, col0 FROM tab0 AS cor0
----
17
15
17
87
17
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT ALL - SUM( + col0 ) * - - COUNT( DISTINCT + 85 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8689
SELECT ALL - SUM ( + col0 ) * - - COUNT ( DISTINCT + 85 ) AS col2 FROM tab0 AS cor0
----
-199

query II rowsort
SELECT ALL - - 84 * - col2 * + col2 AS col2, col2 * - + col0 AS col0 FROM tab0 cor0
----
-185556
-705
-823284
-9603
-8400
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT ALL + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( + col2 + + + col0 + + col2 IS NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-8691
SELECT ALL + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( + col2 + + + col0 + + col2 IS NULL )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8692
SELECT CAST( NULL AS SIGNED ) + - 32 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8692
SELECT CAST ( NULL AS INTEGER ) + - 32 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 66 AS col2 FROM tab2 WHERE NOT 82 NOT BETWEEN + 1 * - col0 AND ( - col1 + col2 + col1 + - col2 * - 20 * 86 )
----
-66
-66
-66

query III rowsort
SELECT DISTINCT - 60, - col1 AS col1, col1 * - col2 * col2 AS col2 FROM tab1
----
9 values hashing to d5ed99ac77d7075fe6d111040af87262

onlyif mysql # DIV for integer division: 
query I rowsort label-8695
SELECT DISTINCT 92 DIV col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT 92 / col0 FROM tab1
----
1

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT DISTINCT COUNT( * ) * + + SUM( - col2 ) + - COUNT( * ) + - SUM( DISTINCT + 51 ) AS col0 FROM tab1 AS cor0
----
-723

skipif mysql # not compatible
query I rowsort label-8697
SELECT DISTINCT COUNT ( * ) * + + SUM ( - col2 ) + - COUNT ( * ) + - SUM ( DISTINCT + 51 ) AS col0 FROM tab1 AS cor0
----
-723

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT DISTINCT + + 33 * COUNT( * ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8698
SELECT DISTINCT + + 33 * COUNT ( * ) FROM tab1 AS cor0
----
99

query I rowsort
SELECT DISTINCT col2 * 2 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8700
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8700
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL <= ( NULL )
----
0

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab1 AS cor0 WHERE ( col1 ) IS NOT NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 col1 FROM tab1 cor0
----
-196
-2209
-25

query II rowsort
SELECT - 97 * col2, ( + 65 ) AS col1 FROM tab0 AS cor0
----
-4559
65
-9603
65
-970
65

query I rowsort
SELECT + col0 * - col2 * + col0 + - col2 * - col2 * col2 AS col2 FROM tab1
----
-220896
-248676
635040

onlyif mysql # DIV for integer division: 
query II rowsort label-8705
SELECT - col2 + col2, 92 DIV + - 18 AS col0 FROM tab2
----
0
-5
0
-5
0
-5

skipif mysql # not compatible
query II rowsort label-8705
SELECT - col2 + col2, 92 / + - 18 AS col0 FROM tab2
----
0
-5
0
-5
0
-5

query I rowsort
SELECT ALL + 93 + - + 5 AS col2 FROM tab0
----
88
88
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 IS NOT NULL OR NOT + 98 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 49 - - 90 AS col1 FROM tab1 AS cor0
----
139
139
139

query I rowsort
SELECT DISTINCT + 45 + 68 FROM tab0 AS cor0
----
113

query I rowsort
SELECT DISTINCT - 6 - col2 FROM tab2 AS cor0
----
-29
-46
-64

query I rowsort
SELECT DISTINCT - ( + 15 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8712
SELECT ALL COUNT( DISTINCT 21 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8712
SELECT ALL COUNT ( DISTINCT 21 ) FROM tab0
----
1

query I rowsort
SELECT + 75 * 39 AS col1 FROM tab0
----
2925
2925
2925

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab2 cor0 WHERE + 94 / - - ( - col1 ) + 64 IS NOT NULL
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 >= - + 51 / - + col1
----
51
14
96
91
47
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8716
SELECT - - CAST( NULL AS DECIMAL ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8716
SELECT - - CAST ( NULL AS REAL ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8717
SELECT DISTINCT + - col2 AS col1, 19 FROM tab1 cor0 WHERE col2 + + col0 * 52 * + - CAST( NULL AS DECIMAL ) IS NULL
----
-59
19
-68
19
-96
19

skipif mysql # not compatible
query II rowsort label-8717
SELECT DISTINCT + - col2 AS col1, 19 FROM tab1 cor0 WHERE col2 + + col0 * 52 * + - CAST ( NULL AS REAL ) IS NULL
----
-59
19
-68
19
-96
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT DISTINCT - + COUNT( * ) * + COUNT( * ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8718
SELECT DISTINCT - + COUNT ( * ) * + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-12

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 BETWEEN - + 33 AND NULL
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT DISTINCT + COUNT( * ) * 53 AS col1 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-8720
SELECT DISTINCT + COUNT ( * ) * 53 AS col1 FROM tab0
----
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 9 ) col1 FROM tab2
----
-9
-9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - - col0 ) col1, - ( - + ( - col0 ) ) FROM tab1
----
51
-51
85
-85
91
-91

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8724
SELECT + COUNT( * ) * SUM( - 85 ) AS col0 FROM tab0
----
-765

skipif mysql # not compatible
query I rowsort label-8724
SELECT + COUNT ( * ) * SUM ( - 85 ) AS col0 FROM tab0
----
-765

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8726
SELECT - 30 * - 17 * + - CAST( + + 51 AS SIGNED ) col2 FROM tab0 AS cor0
----
-26010
-26010
-26010

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8726
SELECT - 30 * - 17 * + - CAST ( + + 51 AS INTEGER ) col2 FROM tab0 AS cor0
----
-26010
-26010
-26010

query II rowsort
SELECT - 48, ( + - col2 ) * - col0 / + col2 FROM tab2 AS cor0 WHERE NOT + 37 + - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * - col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - ( - 84 ) + + col2 * col0 FROM tab0 AS cor0
----
789
954
9687

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT DISTINCT COUNT( * ) + - 47 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-8730
SELECT DISTINCT COUNT ( * ) + - 47 FROM tab2 AS cor0
----
-44

query I rowsort
SELECT - 99 + + 31 FROM tab1 AS cor0
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT ALL - COUNT( * ) + - + 64 + + ( 45 ) + + COUNT( * ) + COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8732
SELECT ALL - COUNT ( * ) + - + 64 + + ( 45 ) + + COUNT ( * ) + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT + COUNT( * ) + + 85 AS col2 FROM tab0 cor0
----
88

skipif mysql # not compatible
query I rowsort label-8733
SELECT + COUNT ( * ) + + 85 AS col2 FROM tab0 cor0
----
88

onlyif mysql # aggregate syntax: 
query II rowsort label-8734
SELECT DISTINCT COUNT( * ), 90 AS col0 FROM tab0 AS cor0
----
3
90

skipif mysql # not compatible
query II rowsort label-8734
SELECT DISTINCT COUNT ( * ), 90 AS col0 FROM tab0 AS cor0
----
3
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT ALL + COUNT( DISTINCT - + 31 ) AS col0 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8735
SELECT ALL + COUNT ( DISTINCT - + 31 ) AS col0 FROM tab2 cor0
----
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE + ( 25 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 + + 72 + + + col1 * + - col1 AS col0 FROM tab0 cor0
----
-26
-456
-6504

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 70 * + 54 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 - - col1 FROM tab2 cor0
----
102
134
154

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > + + col2 * + col0 + + ( - + 8 ) * 32 + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8741
SELECT - 86 DIV col1 FROM tab0
----
-1
-4
-86

skipif mysql # not compatible
query I rowsort label-8741
SELECT - 86 / col1 FROM tab0
----
-1
-4
-86

query II rowsort
SELECT ALL col2 * 9 AS col0, - col0 + - + col1 AS col0 FROM tab2
----
207
-97
360
-141
522
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT MAX( 21 ) * - COUNT( * ) - COUNT( * ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8743
SELECT MAX ( 21 ) * - COUNT ( * ) - COUNT ( * ) AS col1 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT COUNT( * ) - - 80 AS col0 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-8744
SELECT COUNT ( * ) - - 80 AS col0 FROM tab2
----
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8745
SELECT + col2 - - ( ( + ( + 85 ) ) ) * - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8745
SELECT + col2 - - ( ( + ( + 85 ) ) ) * - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT + - COUNT( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8746
SELECT + - COUNT ( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT DISTINCT - + 28 * - - SUM( DISTINCT + - 78 ) AS col0 FROM tab2 WHERE + 97 * col0 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8747
SELECT DISTINCT - + 28 * - - SUM ( DISTINCT + - 78 ) AS col0 FROM tab2 WHERE + 97 * col0 BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8748
SELECT DISTINCT - COUNT( * ), COUNT( * ) / MIN( - CAST( 48 AS DECIMAL ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
0

skipif mysql # not compatible
query II rowsort label-8748
SELECT DISTINCT - COUNT ( * ), COUNT ( * ) / MIN ( - CAST ( 48 AS REAL ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8749
SELECT ALL + ( + + CAST( NULL AS SIGNED ) ) FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE - 60 < NULL
----

skipif mysql # not compatible
query I rowsort label-8749
SELECT ALL + ( + + CAST ( NULL AS INTEGER ) ) FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE - 60 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT DISTINCT - - COUNT( DISTINCT + ( + col1 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 * + col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-8750
SELECT DISTINCT - - COUNT ( DISTINCT + ( + col1 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 * + col0 < NULL
----
0

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT 76 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT ALL + COUNT( + + col2 ) * COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8752
SELECT ALL + COUNT ( + + col2 ) * COUNT ( * ) FROM tab1 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT DISTINCT COUNT( ALL + 88 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8753
SELECT DISTINCT COUNT ( ALL + 88 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8754
SELECT 62, - COUNT( * ) AS col0 FROM tab1
----
62
-3

skipif mysql # not compatible
query II rowsort label-8754
SELECT 62, - COUNT ( * ) AS col0 FROM tab1
----
62
-3

query II rowsort
SELECT col0 AS col2, 39 FROM tab0
----
15
39
87
39
97
39

onlyif mysql # aggregate syntax: 
query II rowsort label-8756
SELECT DISTINCT - 50 + + ( - COUNT( * ) ) AS col1, 30 AS col2 FROM tab1
----
-53
30

skipif mysql # not compatible
query II rowsort label-8756
SELECT DISTINCT - 50 + + ( - COUNT ( * ) ) AS col1, 30 AS col2 FROM tab1
----
-53
30

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT + col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 6 * - - col2 AS col0 FROM tab1
----
-354
-408
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-8759
SELECT MIN( DISTINCT + - col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-8759
SELECT MIN ( DISTINCT + - col1 ) FROM tab1
----
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-8760
SELECT col2 AS col1, col0 DIV + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
10
1
47
1
99
1

skipif mysql # not compatible
query II rowsort label-8760
SELECT col2 AS col1, col0 / + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
10
1
47
1
99
1

query I rowsort
SELECT ALL 89 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * - + col0 + 40 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8763
SELECT ALL * FROM tab2 WHERE NULL < col2 + + CAST( NULL AS DECIMAL ) * 67
----

skipif mysql # not compatible
query III rowsort label-8763
SELECT ALL * FROM tab2 WHERE NULL < col2 + + CAST ( NULL AS REAL ) * 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8764
SELECT - 57 + - MAX( DISTINCT - col2 ) FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-8764
SELECT - 57 + - MAX ( DISTINCT - col2 ) FROM tab0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT ALL + COUNT( * ) FROM tab1 WHERE col0 NOT BETWEEN ( - col0 - col0 ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8765
SELECT ALL + COUNT ( * ) FROM tab1 WHERE col0 NOT BETWEEN ( - col0 - col0 ) AND ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT ALL + MIN( - 11 ) AS col1 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL + MIN ( - 11 ) AS col1 FROM tab0
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 3 col0 FROM tab1
----
153
255
273

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) <> ( col0 + 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT ALL + 65 * COUNT( * ) AS col2 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL + 65 * COUNT ( * ) AS col2 FROM tab1
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-8770
SELECT ALL + col1 DIV ( + 2 * + col1 ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL + col1 / ( + 2 * + col1 ) AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8771
SELECT + col2 + + col1 * CAST( + col2 AS SIGNED ) AS col2 FROM tab1
----
1440
3264
354

skipif mysql # not compatible
query I rowsort label-8771
SELECT + col2 + + col1 * CAST ( + col2 AS INTEGER ) AS col2 FROM tab1
----
1440
3264
354

query I rowsort
SELECT - col2 * + col2 + + col2 AS col2 FROM tab1
----
-3422
-4556
-9120

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 90 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 22 + + col0 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
68
86
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT - COUNT( * ) + 36 * COUNT( * ) AS col0 FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-8775
SELECT - COUNT ( * ) + 36 * COUNT ( * ) AS col0 FROM tab2
----
105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8776
SELECT ALL + CAST( NULL AS SIGNED ) + + col0 * + col2 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8776
SELECT ALL + CAST ( NULL AS INTEGER ) + + col0 * + col2 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT + 20 * + COUNT( * ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-8777
SELECT + 20 * + COUNT ( * ) FROM tab0
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-8778
SELECT 29 * ( col0 DIV - 30 ) FROM tab0
----
-58
-87
0

skipif mysql # not compatible
query I rowsort label-8778
SELECT 29 * ( col0 / - 30 ) FROM tab0
----
-58
-87
0

query I rowsort
SELECT 97 + 7 FROM tab0
----
104
104
104

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8780
SELECT * FROM tab1 WHERE - CAST( NULL AS DECIMAL ) * + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8780
SELECT * FROM tab1 WHERE - CAST ( NULL AS REAL ) * + col2 IS NOT NULL
----

query I rowsort
SELECT ( - col0 ) * + col0 AS col2 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT ALL 83 * - col0 FROM tab2
----
-3818
-5312
-6225

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT COUNT( * ) * - 5 AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8783
SELECT COUNT ( * ) * - 5 AS col0 FROM tab0 AS cor0
----
-15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <= + 83 * 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8785
SELECT DISTINCT - COUNT( DISTINCT + 97 ) col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8785
SELECT DISTINCT - COUNT ( DISTINCT + 97 ) col0 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 ) BETWEEN ( col0 * - 90 ) AND col0
----

query I rowsort
SELECT ALL col1 FROM tab0 WHERE 14 * - col0 IS NULL
----

query I rowsort
SELECT 79 * + col1 AS col1 FROM tab0
----
1659
6399
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 - - 44 col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT DISTINCT + COUNT( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8790
SELECT DISTINCT + COUNT ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE ( 46 * ( col0 ) ) BETWEEN NULL AND + col1 + - col2 * col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8792
SELECT ALL + CAST( - MAX( ALL - 71 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-8792
SELECT ALL + CAST ( - MAX ( ALL - 71 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT ALL 25 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8793
SELECT ALL 25 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8794
SELECT + - col2 DIV 96 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8794
SELECT + - col2 / 96 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL col0 + col2 FROM tab2 AS cor0 WHERE 43 IS NOT NULL
----
104
133
69

query III rowsort
SELECT * FROM tab0 WHERE NOT 82 NOT BETWEEN - col0 AND ( 66 * 36 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 84 AS col1 FROM tab0 WHERE NOT col2 IN ( - col2 )
----
-84
-84
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 WHERE ( - ( ( col2 ) ) * - col0 ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT 95 / col0 FROM tab1 WHERE NOT NULL >= ( NULL ) OR 31 IS NULL
----

query I rowsort
SELECT DISTINCT 81 + - col2 * col1 FROM tab1 AS cor0
----
-1263
-214
-3115

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NULL IN ( ( col2 ) )
----

query I rowsort
SELECT 31 FROM tab1 AS cor0 WHERE NULL IN ( 7 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT ALL + 67 * - COUNT( * ) FROM tab0
----
-201

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL + 67 * - COUNT ( * ) FROM tab0
----
-201

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 15 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + col0 + - - col1 + 75 + + col0 AS col2 FROM tab1 AS cor0
----
191
250
304

query I rowsort
SELECT ALL col1 + - ( - col2 ) AS col2 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <> - col2
----
0

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <> - col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 > - 64
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 83 AS col0 FROM tab2 AS cor0 WHERE ( - ( + - 2 ) ) IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + 48 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + + col1 AS col1, ( + + col0 ) FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT 91 FROM tab1 AS cor0 WHERE NULL <> ( ( col1 ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 ) * + col2 BETWEEN - col0 + col2 AND NULL
----

query I rowsort
SELECT ALL - 44 - - + col0 FROM tab2 cor0
----
2
20
31

query I rowsort
SELECT ALL col1 * - 48 - - 78 FROM tab1
----
-162
-2178
-594

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT DISTINCT - MAX( col2 ) * - COUNT( * ) AS col2 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-8816
SELECT DISTINCT - MAX ( col2 ) * - COUNT ( * ) AS col2 FROM tab0
----
297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8817
SELECT + CAST( NULL AS SIGNED ) * CAST( + - 19 AS SIGNED ) - + - ( col1 ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8817
SELECT + CAST ( NULL AS INTEGER ) * CAST ( + - 19 AS INTEGER ) - + - ( col1 ) col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT + col1 * + + 23, + col2 FROM tab1
----
1081
68
115
59
322
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT ALL - COUNT( DISTINCT - 63 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL - COUNT ( DISTINCT - 63 ) FROM tab2
----
-1

query I rowsort
SELECT DISTINCT col0 * col2 AS col0 FROM tab1 WHERE NOT - 18 * 24 * - 58 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8821
SELECT CAST( - - COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8821
SELECT CAST ( - - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8822
SELECT ALL + CAST( - ( - - COUNT( * ) ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8822
SELECT ALL + CAST ( - ( - - COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT - col2 < NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL >= - col1 + - col1
----

query I rowsort
SELECT DISTINCT - 93 * + col0 AS col0 FROM tab2
----
-4278
-5952
-6975

query I rowsort
SELECT ALL col0 * 19 AS col1 FROM tab1
----
1615
1729
969

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + - col2 * + 3 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, - ( + 1 ) FROM tab1 cor0
----
14
-1
47
-1
5
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8829
SELECT ALL COUNT( + col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8829
SELECT ALL COUNT ( + col1 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 78 + + col1 FROM tab0 AS cor0
----
159
79
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT DISTINCT ( - + 11 ) * - ( - + COUNT( * ) ) FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-8831
SELECT DISTINCT ( - + 11 ) * - ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
-33

query II rowsort
SELECT ALL + col1 AS col0, col0 FROM tab0 cor0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8833
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8833
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8834
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
0

query I rowsort
SELECT ALL - + ( - + 69 ) FROM tab1 cor0
----
69
69
69

query II rowsort
SELECT DISTINCT - + 2 AS col1, - col1 * 1 AS col1 FROM tab0 AS cor0
----
-2
-1
-2
-21
-2
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT - MIN( ALL + + col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8837
SELECT - MIN ( ALL + + col1 ) AS col0 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8838
SELECT CAST( + ( ( - - col2 ) ) AS SIGNED ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8838
SELECT CAST ( + ( ( - - col2 ) ) AS INTEGER ) FROM tab1
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 3 * + col1 * - 34 - col0 + + col2 / - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8840
SELECT ALL + 81 AS col1, + CAST( NULL AS DECIMAL ) / - + col2 AS col0 FROM tab2
----
81
NULL
81
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-8840
SELECT ALL + 81 AS col1, + CAST ( NULL AS REAL ) / - + col2 AS col0 FROM tab2
----
81
NULL
81
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8841
SELECT MIN( 66 ) AS col2 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-8841
SELECT MIN ( 66 ) AS col2 FROM tab0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT DISTINCT - COUNT( - - col0 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8842
SELECT DISTINCT - COUNT ( - - col0 ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab2 WHERE + col0 * + 59 * + ( + col2 ) IN ( + col2 * 26 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8844
SELECT DISTINCT + CAST( NULL AS SIGNED ) + 0 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8844
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + 0 AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT + MAX( ALL col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8845
SELECT + MAX ( ALL col2 ) FROM tab1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8846
SELECT DISTINCT + 37 DIV + - 95 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8846
SELECT DISTINCT + 37 / + - 95 AS col1 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8848
SELECT DISTINCT + + col2 * 53 / + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT + + col2 * 53 / + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8849
SELECT MAX( ALL - 20 ) + - COUNT( * ) FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8849
SELECT MAX ( ALL - 20 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8850
SELECT ALL col1 * col2 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8850
SELECT ALL col1 * col2 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE - 25 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * col2 * + ( - col2 ) < NULL
----

query I rowsort
SELECT ALL ( - - col0 ) + - 29 FROM tab2 AS cor0
----
17
35
46

query I rowsort
SELECT + + 65 - + + 46 AS col2 FROM tab0 AS cor0
----
19
19
19

onlyif mysql # DIV for integer division: 
query I rowsort label-8855
SELECT - + col2 + col2 + + 97 DIV + 8 FROM tab0 cor0
----
12
12
12

skipif mysql # not compatible
query I rowsort label-8855
SELECT - + col2 + col2 + + 97 / + 8 FROM tab0 cor0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8856
SELECT ALL + COUNT( * ) + 99 AS col2 FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-8856
SELECT ALL + COUNT ( * ) + 99 AS col2 FROM tab1 AS cor0
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-8857
SELECT + col0 + + + col2 DIV col1 AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8857
SELECT + col0 + + + col2 / col1 AS col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT + - COUNT( * ) + + 55 AS col1 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-8858
SELECT + - COUNT ( * ) + + 55 AS col1 FROM tab0 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query II rowsort label-8859
SELECT MAX( DISTINCT + col1 ) AS col2, 82 AS col1 FROM tab2 AS cor0
----
77
82

skipif mysql # not compatible
query II rowsort label-8859
SELECT MAX ( DISTINCT + col1 ) AS col2, 82 AS col1 FROM tab2 AS cor0
----
77
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8860
SELECT - col0 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + col2 + - - ( col1 ) * - col0 * - 56 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8860
SELECT - col0 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + col2 + - - ( col1 ) * - col0 * - 56 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8861
SELECT ALL CAST( - - 15 AS SIGNED ) AS col1 FROM tab1
----
15
15
15

skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL CAST ( - - 15 AS INTEGER ) AS col1 FROM tab1
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT ALL MIN( ALL + col0 ) col1 FROM tab0 WHERE NOT + col1 * col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8862
SELECT ALL MIN ( ALL + col0 ) col1 FROM tab0 WHERE NOT + col1 * col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8863
SELECT ALL col2 + - + col0 FROM tab0 WHERE NOT col2 + + CAST( NULL AS SIGNED ) > - - col2
----

skipif mysql # not compatible
query I rowsort label-8863
SELECT ALL col2 + - + col0 FROM tab0 WHERE NOT col2 + + CAST ( NULL AS INTEGER ) > - - col2
----

query I rowsort
SELECT DISTINCT 26 * + col0 AS col0 FROM tab0 AS cor0
----
2262
2522
390

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NULL > + col2
----

query I rowsort
SELECT ALL 46 * 65 + col1 + + col0 - + - col0 FROM tab2 AS cor0
----
3133
3195
3207

query I rowsort
SELECT ALL + 22 + + - 72 AS col2 FROM tab2 AS cor0
----
-50
-50
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-8868
SELECT col0 DIV - col1 + + col0 col1 FROM tab0 AS cor0
----
0
15
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8868
SELECT col0 / - col1 + + col0 col1 FROM tab0 AS cor0
----
0
15
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8869
SELECT - CAST( col2 AS DECIMAL ) - + col1 FROM tab0 cor0 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-8869
SELECT - CAST ( col2 AS REAL ) - + col1 FROM tab0 cor0 WHERE NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 88 + + - col2 + + 3 col2 FROM tab2 AS cor0
----
33
51
68

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 32 <> col2 + ( - col2 )
----

query I rowsort
SELECT 4 FROM tab0 WHERE col1 + - col0 - + + 47 IS NULL
----

query I rowsort
SELECT ALL + col0 * - + col1 AS col1 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT - - col0 FROM tab0 WHERE NOT + 87 < - - col1
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) >= + col1
----
0

skipif mysql # not compatible
query I rowsort label-8875
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) >= + col1
----
0

query I rowsort
SELECT - 17 FROM tab1 AS cor0 WHERE NULL IN ( col1, + 31, + col0 + - col1 * - - 94 * - 24 )
----

query I rowsort
SELECT - 5 - col1 AS col0 FROM tab1 AS cor0
----
-10
-19
-52

query I rowsort
SELECT DISTINCT - 38 - - + col0 AS col2 FROM tab0 AS cor0
----
-23
49
59

query I rowsort
SELECT ALL col2 * + 47 * col0 + - col0 + - 57 AS col2 FROM tab2 AS cor0 WHERE NOT ( + 75 * + 40 ) IN ( col2 * - col0, 27 )
----
120199
204318
49623

query I rowsort
SELECT - + 33 * + + col1 FROM tab2 AS cor0 WHERE col1 + col1 + 22 IS NOT NULL
----
-1683
-2211
-2541

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 23 NOT IN ( - col1 + + + col1 / - col1 - col1, 54 )
----

query I rowsort
SELECT col0 * - 45 + - - col2 AS col1 FROM tab1
----
-2199
-3766
-4027

query I rowsort
SELECT 10 * + - 14 + - col0 + - 7 FROM tab1
----
-198
-232
-238

query II rowsort
SELECT ALL - col2 AS col1, + 21 FROM tab2 AS cor0
----
-23
21
-40
21
-58
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8885
SELECT ALL CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8885
SELECT ALL CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8886
SELECT ALL + COUNT( * ) - - ( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT ALL + COUNT ( * ) - - ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - + col2 * - ( + col0 ) * + - ( + 72 ) * - col1 + + ( + 16 ) FROM tab2 AS cor0
----
14192656
20984416
3884992

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 * - 41 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8889
SELECT - col1 * - - col1 * + + CAST( col0 AS DECIMAL ) - - - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 81 + + - 75 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8889
SELECT - col1 * - - col1 * + + CAST ( col0 AS REAL ) - - - CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 81 + + - 75 AND NULL
----

query II rowsort
SELECT ALL col2, - 34 AS col0 FROM tab2 AS cor0
----
23
-34
40
-34
58
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE + ( - + 39 ) >= + - col2
----
2

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE + ( - + 39 ) >= + - col2
----
2

query II rowsort
SELECT DISTINCT + 66 AS col2, 60 FROM tab2 AS cor0
----
66
60

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col1 + col2 * col2 * + 15 + - col0 + + col0 + + + 84 * 50 * + 9 * 16 ) IN ( col2 )
----

query I rowsort
SELECT ALL - - 27 * col2 FROM tab1 cor0
----
1593
1836
2592

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 41 * 82 IN ( - + 2 / col1 + + - col1 * + col2, 56 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col1 AS col0 FROM tab2 WHERE NOT - 23 * + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8897
SELECT ALL SUM( DISTINCT - + col0 ) col0, - COUNT( * ) FROM tab2
----
-185
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8897
SELECT ALL SUM ( DISTINCT - + col0 ) col0, - COUNT ( * ) FROM tab2
----
-185
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8898
SELECT 63 * + 92 + - 69 - AVG ( + + 21 ) FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) <> + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8898
SELECT 63 * + 92 + - 69 - AVG ( + + 21 ) FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) <> + col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8899
SELECT + CAST( + 35 AS SIGNED ) AS col0 FROM tab0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-8899
SELECT + CAST ( + 35 AS INTEGER ) AS col0 FROM tab0
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8900
SELECT DISTINCT CAST( - 91 AS SIGNED ) AS col2, col1 AS col1 FROM tab0
----
-91
1
-91
21
-91
81

skipif mysql # not compatible
query II rowsort label-8900
SELECT DISTINCT CAST ( - 91 AS INTEGER ) AS col2, col1 AS col1 FROM tab0
----
-91
1
-91
21
-91
81

query I rowsort
SELECT DISTINCT 34 * col0 AS col0 FROM tab2
----
1564
2176
2550

query I rowsort
SELECT DISTINCT - 25 * + ( + - ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
-1000
-1450
-575

query I rowsort
SELECT DISTINCT + 71 - - + 23 AS col1 FROM tab0 AS cor0 WHERE - 37 NOT IN ( - col2 * + 43 * + 50 * col0 * col0, + 72 * + - col2 )
----
94

query I rowsort
SELECT ALL col2 + - - col0 AS col0 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT ALL + COUNT( * ) * - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8905
SELECT ALL + COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

query II rowsort
SELECT + col1 AS col2, + col2 + - 11 FROM tab1 AS cor0
----
14
85
47
57
5
48

query I rowsort
SELECT DISTINCT col2 * - col1 + col0 FROM tab2 cor0
----
-1127
-3016
-3811

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 50 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8909
SELECT - 62 DIV + + 82 + + MAX( - col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8909
SELECT - 62 / + + 82 + + MAX ( - col1 ) AS col1 FROM tab1 AS cor0
----
-5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + - col2 * - ( - col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8911
SELECT 60 / - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8911
SELECT 60 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( col2 IS NULL )
----

query I rowsort
SELECT + ( + col0 ) * + - 52 FROM tab2
----
-2392
-3328
-3900

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT col0 IS NULL OR NOT ( - col0 + + col1 IS NULL )
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + 41 - - + ( - 20 ) NOT IN ( + + col2 * + col2 + + col0, - col1 * 67, - col2 * 11 * + col1 + + 78 * 24 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 30 * + col1 * + + col0 + - - 36 AS col0 FROM tab0 AS cor0
----
-2874
-36414
-54774

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT + ( - COUNT( * ) ) * + 12 col2 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8917
SELECT + ( - COUNT ( * ) ) * + 12 col2 FROM tab1 AS cor0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-8918
SELECT DISTINCT - col2 DIV + - col0 - col0 + + col0 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-8918
SELECT DISTINCT - col2 / + - col0 - col0 + + col0 FROM tab0
----
0
1
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8919
SELECT DISTINCT col0 DIV col1 AS col0 FROM tab2 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8919
SELECT DISTINCT col0 / col1 AS col0 FROM tab2 cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8920
SELECT DISTINCT - - CAST( 92 AS SIGNED ) FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-8920
SELECT DISTINCT - - CAST ( 92 AS INTEGER ) FROM tab2 AS cor0
----
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8921
SELECT CAST( NULL AS SIGNED ) * - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8921
SELECT CAST ( NULL AS INTEGER ) * - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8922
SELECT 49 DIV - - col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8922
SELECT 49 / - - col0 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8923
SELECT ALL CAST( + 60 AS SIGNED ) FROM tab2 AS cor0
----
60
60
60

skipif mysql # not compatible
query I rowsort label-8923
SELECT ALL CAST ( + 60 AS INTEGER ) FROM tab2 AS cor0
----
60
60
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8924
SELECT - + CAST( + col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8924
SELECT - + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
-23
-40
-58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * + col2 * col2 + col2 IS NULL
----

query I rowsort
SELECT DISTINCT 79 AS col2 FROM tab2 WHERE - 16 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8927
SELECT ALL - SUM( DISTINCT + ( + - col1 ) ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-8927
SELECT ALL - SUM ( DISTINCT + ( + - col1 ) ) FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8928
SELECT - COUNT( * ) FROM tab0 WHERE NOT 76 NOT BETWEEN NULL AND 51
----
0

skipif mysql # not compatible
query I rowsort label-8928
SELECT - COUNT ( * ) FROM tab0 WHERE NOT 76 NOT BETWEEN NULL AND 51
----
0

query I rowsort
SELECT ALL + + 62 * + col1 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8930
SELECT ALL col2 DIV - - col2 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8930
SELECT ALL col2 / - - col2 AS col2 FROM tab1
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, col1 + + 98 AS col2 FROM tab2 AS cor0
----
23
149
40
175
58
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - 54 ) col1, col1 + - 53 FROM tab0
----
-54
-32
-54
-52
-54
28

query I rowsort
SELECT DISTINCT + col2 + - + col0 AS col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8934
SELECT COUNT( * ) * - 44 + - ( - - MAX( DISTINCT - col0 ) ) + - 61 * - - 29 AS col1 FROM tab0 AS cor0
----
-1886

skipif mysql # not compatible
query I rowsort label-8934
SELECT COUNT ( * ) * - 44 + - ( - - MAX ( DISTINCT - col0 ) ) + - 61 * - - 29 AS col1 FROM tab0 AS cor0
----
-1886

query I rowsort
SELECT - ( - 25 ) + + 30 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT DISTINCT col1 + + + 58 AS col2 FROM tab0 AS cor0
----
139
59
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8937
SELECT + 20 + - col2 AS col0, col1 - + 69 + + col2 * + + ( - col1 ) + CAST( - - col0 AS SIGNED ) FROM tab2 AS cor0
----
-20
-3008
-3
-1145
-38
-3813

skipif mysql # not compatible
query II rowsort label-8937
SELECT + 20 + - col2 AS col0, col1 - + 69 + + col2 * + + ( - col1 ) + CAST ( - - col0 AS INTEGER ) FROM tab2 AS cor0
----
-20
-3008
-3
-1145
-38
-3813

query I rowsort
SELECT ALL - 83 + - - col1 + col1 * + col2 FROM tab0 AS cor0
----
148
17
3805

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT DISTINCT + ( + COUNT( * ) ) col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8939
SELECT DISTINCT + ( + COUNT ( * ) ) col0 FROM tab1 cor0
----
3

query II rowsort
SELECT + col0, + 15 + col1 FROM tab2
----
46
66
64
92
75
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8941
SELECT ALL + CAST( + - col2 AS SIGNED ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8941
SELECT ALL + CAST ( + - col2 AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT ALL COUNT( * ) * - + 3 col1 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8942
SELECT ALL COUNT ( * ) * - + 3 col1 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8943
SELECT ALL 94, - COUNT( * ) AS col2 FROM tab0
----
94
-3

skipif mysql # not compatible
query II rowsort label-8943
SELECT ALL 94, - COUNT ( * ) AS col2 FROM tab0
----
94
-3

query III rowsort
SELECT * FROM tab2 WHERE + col1 NOT BETWEEN col1 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 89 * + + col0 FROM tab0
----
-1335
-7743
-8633

query II rowsort
SELECT col1 AS col2, + col2 * + - col2 + - + 9 * ( + - col0 ) * 99 AS col2 FROM tab2
----
51
40457
67
63461
77
55424

onlyif mysql # aggregate syntax: 
query II rowsort label-8947
SELECT DISTINCT COUNT( * ), + 77 AS col1 FROM tab1
----
3
77

skipif mysql # not compatible
query II rowsort label-8947
SELECT DISTINCT COUNT ( * ), + 77 AS col1 FROM tab1
----
3
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8948
SELECT DISTINCT - 93 + - - 72 DIV - col0 + 63 AS col2 FROM tab0
----
-30
-34

skipif mysql # not compatible
query I rowsort label-8948
SELECT DISTINCT - 93 + - - 72 / - col0 + 63 AS col2 FROM tab0
----
-30
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT - COUNT( * ) * - 46 AS col2 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-8949
SELECT - COUNT ( * ) * - 46 AS col2 FROM tab2
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT MIN( ALL - 61 ) AS col0 FROM tab1
----
-61

skipif mysql # not compatible
query I rowsort label-8950
SELECT MIN ( ALL - 61 ) AS col0 FROM tab1
----
-61

query I rowsort
SELECT DISTINCT col0 + - 24 AS col1 FROM tab2 AS cor0
----
22
40
51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 * + 14 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT + - ( - col2 ) <> - + col2
----
0

skipif mysql # not compatible
query I rowsort label-8953
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT + - ( - col2 ) <> - + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT DISTINCT + COUNT( * ) * 85 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-8954
SELECT DISTINCT + COUNT ( * ) * 85 FROM tab0
----
255

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( + ( + 52 ) * - 17 + + col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + col1 > ( NULL ) )
----

query I rowsort
SELECT DISTINCT 65 FROM tab1 cor0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8959
SELECT * FROM tab2 WHERE NOT ( - ( CAST( NULL AS SIGNED ) ) + + col0 - + + 63 * 1 + 40 ) <= 68
----

skipif mysql # not compatible
query III rowsort label-8959
SELECT * FROM tab2 WHERE NOT ( - ( CAST ( NULL AS INTEGER ) ) + + col0 - + + 63 * 1 + 40 ) <= 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT MAX( - ( + 82 ) ) AS col1 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-8960
SELECT MAX ( - ( + 82 ) ) AS col1 FROM tab0
----
-82

query II rowsort
SELECT DISTINCT col1 AS col0, + col1 + - 76 FROM tab0
----
1
-75
21
-55
81
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8962
SELECT DISTINCT - 16 DIV - 22 * + col1 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT - 16 / - 22 * + col1 AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT + ( + MAX( col0 ) ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8963
SELECT + ( + MAX ( col0 ) ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - + 39 AS col1 FROM tab2 AS cor0
----
-39

query III rowsort
SELECT * FROM tab1 WHERE - col2 > + - col2 + + col2
----

query I rowsort
SELECT ALL - 64 FROM tab2 AS cor0 JOIN tab1 cor1 ON NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT - + MAX( - - ( + col1 ) ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8967
SELECT - + MAX ( - - ( + col1 ) ) AS col1 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT DISTINCT - - SUM( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT - - SUM ( ALL - col2 ) AS col2 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL > ( 94 )
----
0

skipif mysql # not compatible
query I rowsort label-8969
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL > ( 94 )
----
0

query II rowsort
SELECT ALL + 76 - + ( + col1 ) * col0 AS col2, + col0 FROM tab0 AS cor0
----
-1139
15
-1751
87
-21
97

query I rowsort
SELECT DISTINCT 82 * - col2 + - col2 AS col2 FROM tab1 AS cor0
----
-4897
-5644
-7968

query I rowsort
SELECT DISTINCT col0 * 35 FROM tab2 AS cor0 WHERE - col0 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT ALL - - SUM( DISTINCT - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-8973
SELECT ALL - - SUM ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-8974
SELECT - - col1 DIV - col1 + 77 FROM tab0 AS cor0
----
76
76
76

skipif mysql # not compatible
query I rowsort label-8974
SELECT - - col1 / - col1 + 77 FROM tab0 AS cor0
----
76
76
76

onlyif mysql # DIV for integer division: 
query I rowsort label-8975
SELECT col1 + + col2 DIV - col1 * + 38 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8975
SELECT col1 + + col2 / - col1 * + 38 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT DISTINCT COUNT( * ) col2 FROM tab2 WHERE NOT - 28 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8976
SELECT DISTINCT COUNT ( * ) col2 FROM tab2 WHERE NOT - 28 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE + ( - col1 ) * - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + 73 AS col2 FROM tab2
----
15
33
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT DISTINCT - SUM( + ( + col2 ) ) + + 78 AS col0 FROM tab0 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-8979
SELECT DISTINCT - SUM ( + ( + col2 ) ) + + 78 AS col0 FROM tab0 cor0
----
-78

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 + - 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8981
SELECT + ( + - MIN( col1 ) ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8981
SELECT + ( + - MIN ( col1 ) ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8982
SELECT * FROM tab0 WHERE NOT NULL <= + + col1 / - CAST( NULL AS SIGNED ) * - 76
----

skipif mysql # not compatible
query III rowsort label-8982
SELECT * FROM tab0 WHERE NOT NULL <= + + col1 / - CAST ( NULL AS INTEGER ) * - 76
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8983
SELECT DISTINCT + col2 DIV + ( + + col1 ) FROM tab0
----
0
99

skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT + col2 / + ( + + col1 ) FROM tab0
----
0
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 83, - ( - col2 ) col1 FROM tab0 AS cor0 WHERE NOT 28 * - col2 * col0 * + col2 IS NULL
----
83
10
83
47
83
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8985
SELECT + - COUNT( * ), - 85 AS col0 FROM tab1 cor0
----
-3
-85

skipif mysql # not compatible
query II rowsort label-8985
SELECT + - COUNT ( * ), - 85 AS col0 FROM tab1 cor0
----
-3
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT + + MIN( DISTINCT - - col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8986
SELECT + + MIN ( DISTINCT - - col1 ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT MIN( ALL - 15 ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-8987
SELECT MIN ( ALL - 15 ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-45

query I rowsort
SELECT ALL - - 44 * + col1 AS col0 FROM tab0 AS cor0
----
3564
44
924

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT + + COUNT( ALL - + ( col1 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= - 82 * - - 74 * col0 * col0 / - + col2 - - - col0
----
0

skipif mysql # not compatible
query I rowsort label-8989
SELECT + + COUNT ( ALL - + ( col1 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= - 82 * - - 74 * col0 * col0 / - + col2 - - - col0
----
0

query I rowsort
SELECT ALL ( + - col1 ) * col0 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col0 / - + col0 >= NULL
----

query I rowsort
SELECT ALL 36 * col2 AS col0 FROM tab2
----
1440
2088
828

query I rowsort
SELECT - ( + 51 ) AS col2 FROM tab2
----
-51
-51
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8994
SELECT ALL * FROM tab1 WHERE - + col1 + CAST( - col0 AS SIGNED ) <= + + 83
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8994
SELECT ALL * FROM tab1 WHERE - + col1 + CAST ( - col0 AS INTEGER ) <= + + 83
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8995
SELECT + - MAX( DISTINCT + ( + 23 ) ) FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8995
SELECT + - MAX ( DISTINCT + ( + 23 ) ) FROM tab0 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8996
SELECT ( - CAST( NULL AS SIGNED ) ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8996
SELECT ( - CAST ( NULL AS INTEGER ) ) * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 + - 48 * col0 > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT + MAX( col2 ) * COUNT( * ) FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-8998
SELECT + MAX ( col2 ) * COUNT ( * ) FROM tab0 AS cor0
----
297

onlyif mysql # DIV for integer division: 
query II rowsort label-8999
SELECT DISTINCT - col2 DIV - col1 AS col0, - col0 FROM tab2 AS cor0
----
0
-46
0
-64
0
-75

skipif mysql # not compatible
query II rowsort label-8999
SELECT DISTINCT - col2 / - col1 AS col0, - col0 FROM tab2 AS cor0
----
0
-46
0
-64
0
-75

query I rowsort
SELECT - - ( + col2 ) * + + 34 + - 87 FROM tab0 AS cor0
----
1511
253
3279

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT DISTINCT - + ( 15 ) + - MIN( ALL 56 ) FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-9001
SELECT DISTINCT - + ( 15 ) + - MIN ( ALL 56 ) FROM tab1 AS cor0
----
-71

query I rowsort
SELECT ALL + ( col1 ) + - col1 * + col2 FROM tab0 AS cor0
----
-189
-3726
-98

query I rowsort
SELECT + - col0 * + col1 * - + col2 + 58 FROM tab2 AS cor0
----
197178
291508
54016

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( NOT NULL IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT ALL - COUNT( * ) - ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9005
SELECT ALL - COUNT ( * ) - ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT DISTINCT - col1 + - + ( - + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 5 / - - col2 FROM tab1 AS cor0 WHERE + 78 IN ( + + col2 * + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9008
SELECT + col0 DIV col1 * col1 AS col0 FROM tab1
----
42
47
85

skipif mysql # not compatible
query I rowsort label-9008
SELECT + col0 / col1 * col1 AS col0 FROM tab1
----
42
47
85

query I rowsort
SELECT + 15 - 64 + - + 82 * + 77 * col2 FROM tab1
----
-372575
-429401
-606193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9010
SELECT ALL - col1 * + + col0 + CAST( + 73 AS SIGNED ) * 28 FROM tab1 WHERE NOT NULL >= + col2
----

skipif mysql # not compatible
query I rowsort label-9010
SELECT ALL - col1 * + + col0 + CAST ( + 73 AS INTEGER ) * 28 FROM tab1 WHERE NOT NULL >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT + COUNT( * ) - 6 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9011
SELECT + COUNT ( * ) - 6 FROM tab0
----
-3

query I rowsort
SELECT col0 * + - 52 - - col2 AS col1 FROM tab2
----
-2369
-3288
-3842

query I rowsort
SELECT ALL - col0 + 20 FROM tab2
----
-26
-44
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-9014
SELECT + col2 DIV - + col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-9014
SELECT + col2 / - + col0 FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9015
SELECT 31, + COUNT( + - col2 ) AS col2 FROM tab2 AS cor0
----
31
3

skipif mysql # not compatible
query II rowsort label-9015
SELECT 31, + COUNT ( + - col2 ) AS col2 FROM tab2 AS cor0
----
31
3

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT NULL < 26
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + col2 NOT BETWEEN + 19 AND 69 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT ALL - COUNT( 17 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL - COUNT ( 17 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9019
SELECT DISTINCT + COUNT( * ) * + 97 AS col1 FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-9019
SELECT DISTINCT + COUNT ( * ) * + 97 AS col1 FROM tab0
----
291

query I rowsort
SELECT + 62 * + - 51 AS col0 FROM tab0
----
-3162
-3162
-3162

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT - - 98 IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 92 * - 18 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= + 10
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 9 AND + col0 * + + 37
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9025
SELECT DISTINCT + - 70 * - + CAST( - + col0 AS SIGNED ) FROM tab1 AS cor0
----
-3570
-5950
-6370

skipif mysql # not compatible
query I rowsort label-9025
SELECT DISTINCT + - 70 * - + CAST ( - + col0 AS INTEGER ) FROM tab1 AS cor0
----
-3570
-5950
-6370

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 26 * - col2 col0, - col0 FROM tab1 cor0
----
-1534
-85
-1768
-91
-2496
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-9027
SELECT + MAX( col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9027
SELECT + MAX ( col0 ) AS col1 FROM tab1 AS cor0
----
91

query I rowsort
SELECT - col2 * + col1 * ( - + col0 ) * + 7 AS col2 FROM tab1
----
175525
2035852
479808

query II rowsort
SELECT + col1 AS col0, col1 * - 13 * 0 FROM tab1
----
14
0
47
0
5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 64 * col0 + + col0, - col2 + col0 col1 FROM tab2
----
-2898
23
-4032
24
-4725
17

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( + ( - col1 ), + 36 )
----

query I rowsort
SELECT col1 + + - 58 FROM tab0 AS cor0
----
-37
-57
23

query I rowsort
SELECT - 34 * + - col1 AS col2 FROM tab0
----
2754
34
714

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT ALL + MIN( ALL + - col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL + MIN ( ALL + - col1 ) FROM tab1
----
-47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 NOT BETWEEN + 81 AND ( + 79 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT DISTINCT + COUNT( * ) + 71 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-9036
SELECT DISTINCT + COUNT ( * ) + 71 FROM tab0
----
74

query I rowsort
SELECT ALL + col0 + - 70 FROM tab2 cor0
----
-24
-6
5

query I rowsort
SELECT DISTINCT + 21 - - ( + col0 ) FROM tab2 AS cor0
----
67
85
96

query I rowsort
SELECT DISTINCT 48 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= - + ( 54 ) AND col2 + + + col1 <= col2
----

query I rowsort
SELECT + col0 * + col1 * + + col0 + + col0 AS col2 FROM tab0
----
159036
18240
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT - COUNT( DISTINCT - col0 ) col0 FROM tab1 WHERE NOT + 73 < - col2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9041
SELECT - COUNT ( DISTINCT - col0 ) col0 FROM tab1 WHERE NOT + 73 < - col2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9042
SELECT DISTINCT CAST( + - 30 AS SIGNED ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-9042
SELECT DISTINCT CAST ( + - 30 AS INTEGER ) FROM tab0
----
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-9043
SELECT ALL + 27, + COUNT( * ) col0 FROM tab2
----
27
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9043
SELECT ALL + 27, + COUNT ( * ) col0 FROM tab2
----
27
3

query IIIIII rowsort
SELECT * FROM tab2, tab2 AS cor0 WHERE NOT 16 IS NOT NULL
----

query I rowsort
SELECT ALL - 16 * - 36 FROM tab0 cor0
----
576
576
576

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT DISTINCT - COUNT( + - col0 ) AS col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9046
SELECT DISTINCT - COUNT ( + - col0 ) AS col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-3

query II rowsort
SELECT - 81 AS col1, col0 FROM tab2
----
-81
46
-81
64
-81
75

query II rowsort
SELECT DISTINCT + col1, + ( col1 ) * - col1 + col1 FROM tab0
----
1
0
21
-420
81
-6480

onlyif mysql # aggregate syntax: 
query II rowsort label-9049
SELECT - ( + 64 ), COUNT( * ) col1 FROM tab1
----
-64
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9049
SELECT - ( + 64 ), COUNT ( * ) col1 FROM tab1
----
-64
3

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 = + 20
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT + 40 * + COUNT( * ) + 49 AS col2 FROM tab0 AS cor0
----
169

skipif mysql # not compatible
query I rowsort label-9051
SELECT + 40 * + COUNT ( * ) + 49 AS col2 FROM tab0 AS cor0
----
169

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9052
SELECT ALL + col2 * - + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9052
SELECT ALL + col2 * - + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * - 98 - + 38 * - col0 FROM tab2 AS cor0
----
-2760
-3840
-4500

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9054
SELECT CAST( COUNT( * ) AS SIGNED ) + + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9054
SELECT CAST ( COUNT ( * ) AS INTEGER ) + + - COUNT ( * ) FROM tab1 AS cor0
----
0

query II rowsort
SELECT DISTINCT + 92 AS col1, - 56 FROM tab2 AS cor0
----
92
-56

query II rowsort
SELECT 73 + - + 11, + ( 98 ) AS col1 FROM tab1 AS cor0
----
62
98
62
98
62
98

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT NULL < + 64
----

query I rowsort
SELECT col2 * + 85 + - 39 FROM tab1
----
4976
5741
8121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col1 ) + + col1 col1 FROM tab1
----
10
28
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9060
SELECT COUNT( - col2 ), COUNT( * ) AS col1 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-9060
SELECT COUNT ( - col2 ), COUNT ( * ) AS col1 FROM tab2
----
3
3

query II rowsort
SELECT DISTINCT - 69 * + col0 AS col1, + col0 * - col0 FROM tab0
----
-1035
-225
-6003
-7569
-6693
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9062
SELECT DISTINCT + col2 + - - col2 + 66 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9062
SELECT DISTINCT + col2 + - - col2 + 66 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col0 * - + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * 28 + + - col2 FROM tab0
----
2426
2617
373

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9065
SELECT CAST( NULL AS SIGNED ) / + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9065
SELECT CAST ( NULL AS INTEGER ) / + col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT + COUNT( * ) * + 99 FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-9066
SELECT + COUNT ( * ) * + 99 FROM tab1 AS cor0
----
297

query I rowsort
SELECT ALL + + ( + 47 ) - col2 AS col1 FROM tab0 AS cor0
----
-52
0
37

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * - 44 + + 12 NOT BETWEEN 55 + col2 - + col1 * - col2 AND 76 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9069
SELECT ALL + COUNT( * ) AS col1, COUNT( * ) FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9069
SELECT ALL + COUNT ( * ) AS col1, COUNT ( * ) FROM tab0 cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 15 * - col0 + 58 + - + col0 + + - col0 col2 FROM tab2 AS cor0
----
1033
656
890

onlyif mysql # aggregate syntax: 
query I rowsort label-9071
SELECT - 35 * - - COUNT( DISTINCT 87 ) AS col0 FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-9071
SELECT - 35 * - - COUNT ( DISTINCT 87 ) AS col0 FROM tab1
----
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-9072
SELECT DISTINCT 74 DIV - - col0 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-9072
SELECT DISTINCT 74 / - - col0 AS col1 FROM tab1
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9073
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NULL AND NOT + 97 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9073
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NULL AND NOT + 97 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9074
SELECT MIN( DISTINCT + 36 ) * + 99 FROM tab0
----
3564

skipif mysql # not compatible
query I rowsort label-9074
SELECT MIN ( DISTINCT + 36 ) * + 99 FROM tab0
----
3564

query I rowsort
SELECT ALL + 33 + 67 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9076
SELECT col1 DIV - + 81 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9076
SELECT col1 / - + 81 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NOT + 49 < - 21
----
15
87
97

query I rowsort
SELECT + col0 * 49 + - - 59 AS col1 FROM tab2 AS cor0
----
2313
3195
3734

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT DISTINCT - 63 + + COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-63

skipif mysql # not compatible
query I rowsort label-9079
SELECT DISTINCT - 63 + + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-9080
SELECT MIN( 59 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9080
SELECT MIN ( 59 ) AS col1 FROM tab1
----
59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 11 IN ( + 44, 58 + + + col1 + - 34 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 48 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 19 * col2 FROM tab0 AS cor0
----
1881
190
893

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT + - SUM( 21 ) FROM tab2 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-9084
SELECT + - SUM ( 21 ) FROM tab2 cor0
----
-63

query I rowsort
SELECT col0 * - 78 AS col0 FROM tab1
----
-3978
-6630
-7098

query I rowsort
SELECT - col2 + + 77 AS col0 FROM tab0
----
-22
30
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9087
SELECT col1 + + col2 DIV 67 * + + col1 DIV - col0 col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9087
SELECT col1 + + col2 / 67 * + + col1 / - col0 col0 FROM tab1
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - ( + 38 ) IS NOT NULL
----

query I rowsort
SELECT + col1 + + - 92 + - 2 * - col1 FROM tab1
----
-50
-77
49

query I rowsort
SELECT 69 + - col1 FROM tab0
----
-12
48
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT ALL + MIN( ( + - col0 ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9091
SELECT ALL + MIN ( ( + - col0 ) ) FROM tab1 AS cor0
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + - - 68 col0 FROM tab1 AS cor0
----
127
136
164

query I rowsort
SELECT ( + + col1 ) * - col2 * - + col2 * - col1 + + + col2 AS col0 FROM tab2
----
-1375906
-15100938
-9486360

query I rowsort
SELECT DISTINCT 80 * + 10 FROM tab0
----
800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9095
SELECT CAST( NULL AS SIGNED ) - + 55 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9095
SELECT CAST ( NULL AS INTEGER ) - + 55 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 68 * + col2 + + - col1 FROM tab0 AS cor0
----
-3277
-6733
-701

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT 6 + - MIN( DISTINCT - 47 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9097
SELECT 6 + - MIN ( DISTINCT - 47 ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT + col1, - col1 FROM tab2 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT ALL - 3 * + SUM( DISTINCT - col0 ) col1 FROM tab1 cor0
----
681

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9099
SELECT ALL - 3 * + SUM ( DISTINCT - col0 ) col1 FROM tab1 cor0
----
681

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9100
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 85 >= - CAST( - 67 AS SIGNED ) * + + 49 * - col2 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9100
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 85 >= - CAST ( - 67 AS INTEGER ) * + + 49 * - col2 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NULL IS NULL
----
10
47
99

query I rowsort
SELECT ALL col0 * + 10 * 50 + - col1 AS col0 FROM tab2 WHERE NOT - col1 / + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 70, - 19 col0 FROM tab2
----
-70
-19
-70
-19
-70
-19

query I rowsort
SELECT ALL col2 * + 68 FROM tab1
----
4012
4624
6528

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 * + + col0 * + col2 * 79 NOT BETWEEN NULL AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * 24 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9108
SELECT col0 * - 44 - CAST( NULL AS SIGNED ) col1 FROM tab0 WHERE NOT + col2 - + - col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9108
SELECT col0 * - 44 - CAST ( NULL AS INTEGER ) col1 FROM tab0 WHERE NOT + col2 - + - col1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9109
SELECT DISTINCT - ( - + 99 ) DIV - col0 + col0 FROM tab0
----
86
9
96

skipif mysql # not compatible
query I rowsort label-9109
SELECT DISTINCT - ( - + 99 ) / - col0 + col0 FROM tab0
----
86
9
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - ( + 60 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 56 * + col0 AS col2 FROM tab2 AS cor0
----
2576
3584
4200

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT DISTINCT + ( + SUM( DISTINCT + 6 ) ) * + 93 + + MAX( ALL 36 ) AS col0 FROM tab2 AS cor0
----
594

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT + ( + SUM ( DISTINCT + 6 ) ) * + 93 + + MAX ( ALL 36 ) AS col0 FROM tab2 AS cor0
----
594

query I rowsort
SELECT DISTINCT + 23 * + - 5 AS col2 FROM tab1
----
-115

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT DISTINCT - 58 + - + COUNT( * ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-9114
SELECT DISTINCT - 58 + - + COUNT ( * ) FROM tab2 AS cor0
----
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 55 + + col2 col1 FROM tab1 AS cor0
----
3304
3808
5376

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9116
SELECT - 95 + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-9116
SELECT - 95 + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9117
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( + + col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9117
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( + + col0 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + - 31 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9119
SELECT + + MIN( DISTINCT - col1 ) AS col0 FROM tab0 WHERE col1 * 9 <= col0 + + ( + - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9119
SELECT + + MIN ( DISTINCT - col1 ) AS col0 FROM tab0 WHERE col1 * 9 <= col0 + + ( + - col0 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9120
SELECT ALL - col1 DIV + 89 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL - col1 / + 89 AS col2 FROM tab1
----
0
0
0

query II rowsort
SELECT + 84 AS col1, + col2 * + ( - ( 19 ) ) AS col1 FROM tab0
----
84
-1881
84
-190
84
-893

query I rowsort
SELECT ALL + ( 43 ) + + col1 AS col0 FROM tab2
----
110
120
94

query I rowsort
SELECT DISTINCT + 25 + 62 + col2 FROM tab2 cor0
----
110
127
145

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT ALL + ( - COUNT( * ) ) - - 58 AS col2 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-9124
SELECT ALL + ( - COUNT ( * ) ) - - 58 AS col2 FROM tab1 AS cor0
----
55

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9125
SELECT 27 + + - CAST( + CAST( NULL AS DECIMAL ) AS DECIMAL ) * + CAST( + col2 AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9125
SELECT 27 + + - CAST ( + CAST ( NULL AS REAL ) AS REAL ) * + CAST ( + col2 AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 64 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT ALL + - SUM( 66 ) AS col0 FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL + - SUM ( 66 ) AS col0 FROM tab1 AS cor0
----
-198

query II rowsort
SELECT col1, + 9 AS col0 FROM tab2 AS cor0
----
51
9
67
9
77
9

onlyif mysql # DIV for integer division: 
query I rowsort label-9129
SELECT - col1 DIV 92 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9129
SELECT - col1 / 92 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 col1 FROM tab2
----
6
6
6

query II rowsort
SELECT DISTINCT 8 * - col0, - 22 AS col1 FROM tab0
----
-120
-22
-696
-22
-776
-22

query I rowsort
SELECT col0 * + col1 * 96 AS col2 FROM tab0
----
116640
175392
9312

query I rowsort
SELECT - + col2 FROM tab1 WHERE NOT col0 * + + col2 * + + 35 IS NOT NULL
----

query II rowsort
SELECT col2 * col2 AS col1, 53 FROM tab1
----
3481
53
4624
53
9216
53

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 83 IS NOT NULL
----

query I rowsort
SELECT + + col2 * - ( ( col1 ) ) FROM tab0 cor0
----
-210
-3807
-99

query I rowsort
SELECT ALL - 85 * - + col1 AS col2 FROM tab2 cor0
----
4335
5695
6545

query II rowsort
SELECT DISTINCT + - col0 * 1, - col2 + col0 * + - 44 AS col2 FROM tab0 AS cor0
----
-15
-707
-87
-3838
-97
-4367

query I rowsort
SELECT DISTINCT + - ( + 69 ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT + SUM( - col2 ) * + 30 FROM tab2
----
-3630

skipif mysql # not compatible
query I rowsort label-9140
SELECT + SUM ( - col2 ) * + 30 FROM tab2
----
-3630

query I rowsort
SELECT DISTINCT 81 * 79 AS col2 FROM tab0
----
6399

query I rowsort
SELECT ALL + + 4 FROM tab0 AS cor0 WHERE 24 * - col1 / - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= ( + 69 * - 32 / - 80 )
----

query I rowsort
SELECT DISTINCT - + 15 + + - col1 AS col2 FROM tab2 cor0
----
-66
-82
-92

query II rowsort
SELECT DISTINCT col0 AS col0, - 52 AS col2 FROM tab1 AS cor0
----
51
-52
85
-52
91
-52

query II rowsort
SELECT ALL + + col0 AS col0, 36 - + + 74 AS col2 FROM tab2 AS cor0
----
46
-38
64
-38
75
-38

query II rowsort
SELECT col0 + col2 AS col0, + col1 FROM tab0
----
196
1
62
81
97
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9148
SELECT - 82 * - col0 + - 7 + - - ( - + col0 ) / + + col0 * col0 * col1 + 79 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9148
SELECT - 82 * - col0 + - 7 + - - ( - + col0 ) / + + col0 * col0 * col1 + 79 + - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9149
SELECT ALL + COUNT( + + ( + + CAST( NULL AS SIGNED ) ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL + COUNT ( + + ( + + CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col1 + - 43 AS col1 FROM tab0
----
-124
-44
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT ALL COUNT( ALL 5 ) + - 67 FROM tab2 cor0
----
-64

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL COUNT ( ALL 5 ) + - 67 FROM tab2 cor0
----
-64

query I rowsort
SELECT DISTINCT + col2 * + - 46 - + + col1 AS col0 FROM tab2 AS cor0
----
-1109
-1917
-2735

query I rowsort
SELECT DISTINCT 98 * + 67 * 46 + + 29 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
302065

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT DISTINCT - 41 * - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
369

skipif mysql # not compatible
query I rowsort label-9154
SELECT DISTINCT - 41 * - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
369

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9155
SELECT + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9155
SELECT + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 79 col2 FROM tab0 AS cor0
----
79
79
79

query I rowsort
SELECT - 10 AS col2 FROM tab2 cor0
----
-10
-10
-10

query I rowsort
SELECT ALL col1 * + - col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT col2 * + col0 * 87 AS col2 FROM tab1 AS cor0
----
425952
436305
538356

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9160
SELECT + COUNT( * ) DIV COUNT( * ) col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9160
SELECT + COUNT ( * ) / COUNT ( * ) col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT col2 * + - 21 + + + col2 + - + col2 * col0 FROM tab2 AS cor0
----
-1518
-3360
-5510

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 73 * - col0 BETWEEN NULL AND - - col2
----

query II rowsort
SELECT ALL + col1 AS col0, 79 AS col2 FROM tab0 AS cor0
----
1
79
21
79
81
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 44 col1 FROM tab1 AS cor0
----
44
44
44

query I rowsort
SELECT ALL - ( + col1 ) * + 91 AS col2 FROM tab0 WHERE - col0 IS NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col0, + 60 FROM tab2
----
23
60
40
60
58
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9167
SELECT DISTINCT + + col0 FROM tab1 WHERE - CAST( + - 99 AS SIGNED ) / + col1 + 72 / + + 72 <= NULL
----

skipif mysql # not compatible
query I rowsort label-9167
SELECT DISTINCT + + col0 FROM tab1 WHERE - CAST ( + - 99 AS INTEGER ) / + col1 + 72 / + + 72 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, 77 FROM tab2
----
51
77
67
77
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9169
SELECT + CAST( NULL AS SIGNED ) * - col2 * - - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9169
SELECT + CAST ( NULL AS INTEGER ) * - col2 * - - col1 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + ( + 18 ) * + col2 AS col0 FROM tab2 AS cor0
----
1044
414
720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * col2 + + col2 + - 0 col1 FROM tab2 cor0
----
-1035
-2520
-4292

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 LEFT JOIN tab1 AS cor1 ON NULL IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT - + col0 + - - col1 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT ALL - MAX( DISTINCT + 82 ) - 26 AS col1 FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL - MAX ( DISTINCT + 82 ) - 26 AS col1 FROM tab1 AS cor0
----
-108

query I rowsort
SELECT ALL + - col1 + - + col1 FROM tab0 AS cor0 WHERE NOT 52 + + col0 IS NULL
----
-162
-2
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9176
SELECT ALL + CAST( NULL AS SIGNED ) - col2 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9176
SELECT ALL + CAST ( NULL AS INTEGER ) - col2 * col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 NOT IN ( - + col0 * - 65 + - + col1, col1, + 36 * - + col2 - - ( - 33 ) + 79, ( + - col0 ), + col2, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9178
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9178
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT DISTINCT ( + col2 ) - - col1 AS col1 FROM tab2
----
117
125
74

query I rowsort
SELECT DISTINCT - 18 + - col0 FROM tab2
----
-64
-82
-93

query II rowsort
SELECT ALL col0, col0 + col2 FROM tab0
----
15
62
87
97
97
196

query I rowsort
SELECT 25 - - 36 - + col1 AS col2 FROM tab0
----
-20
40
60

query I rowsort
SELECT ALL 11 + + col0 * - - col2 AS col2 FROM tab1
----
4907
5026
6199

query I rowsort
SELECT 5 - - col1 * col0 FROM tab1
----
4282
430
719

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT COUNT( DISTINCT - 76 ) - 2 * + - 25 * - 44 AS col2 FROM tab0
----
-2199

skipif mysql # not compatible
query I rowsort label-9185
SELECT COUNT ( DISTINCT - 76 ) - 2 * + - 25 * - 44 AS col2 FROM tab0
----
-2199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9186
SELECT CAST( NULL AS SIGNED ) - - + 79 * col1 * - col0 col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9186
SELECT CAST ( NULL AS INTEGER ) - - + 79 * col1 * - col0 col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 30 - - - col2 AS col2 FROM tab1 AS cor0
----
-29
-38
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9188
SELECT ALL + + MAX( ALL col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9188
SELECT ALL + + MAX ( ALL col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT DISTINCT - + 77 AS col2 FROM tab1 AS cor0
----
-77

query III rowsort
SELECT * FROM tab1 WHERE ( + 57 ) NOT BETWEEN ( col0 * + col2 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 44 + - 59 FROM tab0
----
-15
-15
-15

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NOT NULL IN ( col2 * col1 )
----

query I rowsort
SELECT - 33 + col1 AS col0 FROM tab2
----
18
34
44

query I rowsort
SELECT ( + ( col0 ) ) AS col0 FROM tab0
----
15
87
97

query I rowsort
SELECT ( 23 ) FROM tab1
----
23
23
23

query III rowsort
SELECT * FROM tab0 WHERE ( + 68 ) * 16 IS NULL
----

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT col0 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9198
SELECT + COUNT( - 70 ) FROM tab1 WHERE NOT ( col0 + 13 ) NOT IN ( col1 / - 17 )
----
0

skipif mysql # not compatible
query I rowsort label-9198
SELECT + COUNT ( - 70 ) FROM tab1 WHERE NOT ( col0 + 13 ) NOT IN ( col1 / - 17 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 67 * col0 >= 37
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT 58 IN ( 45 / col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT ALL MIN( DISTINCT + col0 ) + - COUNT( * ) * 57 AS col1 FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-9201
SELECT ALL MIN ( DISTINCT + col0 ) + - COUNT ( * ) * 57 AS col1 FROM tab1
----
-120

query I rowsort
SELECT + col2 + 70 AS col1 FROM tab1
----
129
138
166

query I rowsort
SELECT DISTINCT - 65 + col1 FROM tab2
----
-14
12
2

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 < ( + col0 )
----
46
51
23
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9205
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN CAST( col0 AS SIGNED ) - col0 * + 22 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9205
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN CAST ( col0 AS INTEGER ) - col0 * + 22 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9206
SELECT DISTINCT MIN( col0 ) FROM tab0 WHERE NOT NULL NOT IN ( 96 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9206
SELECT DISTINCT MIN ( col0 ) FROM tab0 WHERE NOT NULL NOT IN ( 96 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT SUM( + 71 ) - 72 AS col0 FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-9207
SELECT SUM ( + 71 ) - 72 AS col0 FROM tab0
----
141

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) = ( + col1 )
----

query I rowsort
SELECT col2 FROM tab0 WHERE NOT - col2 BETWEEN - 10 AND - col0 + - col2
----
10
47
99

query I rowsort
SELECT - col1 * + 12 FROM tab1 WHERE - 61 + 37 / - 50 IS NULL
----

query I rowsort
SELECT + 57 FROM tab1 WHERE NOT - 15 BETWEEN + 57 AND ( NULL )
----
57
57
57

query I rowsort
SELECT DISTINCT - 95 + col1 AS col0 FROM tab0 AS cor0
----
-14
-74
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT SUM( - col2 ) + - 73 AS col0 FROM tab1 AS cor0
----
-296

skipif mysql # not compatible
query I rowsort label-9213
SELECT SUM ( - col2 ) + - 73 AS col0 FROM tab1 AS cor0
----
-296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 + - col0 * col0 col1 FROM tab2 cor0
----
-2054
-4034
-5563

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 30 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9216
SELECT COUNT( * ) * + SUM( ALL - CAST( - 10 AS SIGNED ) ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
90

skipif mysql # not compatible
query I rowsort label-9216
SELECT COUNT ( * ) * + SUM ( ALL - CAST ( - 10 AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-9217
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9218
SELECT + 35 DIV 11 FROM tab0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-9218
SELECT + 35 / 11 FROM tab0
----
3
3
3

query III rowsort
SELECT * FROM tab1 WHERE + 69 * 1 <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9220
SELECT DISTINCT * FROM tab1 WHERE NOT col0 BETWEEN ( col1 ) AND col2 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9220
SELECT DISTINCT * FROM tab1 WHERE NOT col0 BETWEEN ( col1 ) AND col2 + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT DISTINCT COUNT( * ) * COUNT( - col2 ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-9221
SELECT DISTINCT COUNT ( * ) * COUNT ( - col2 ) AS col1 FROM tab1
----
9

query I rowsort
SELECT ALL - col2 + + ( - col1 ) AS col2 FROM tab1 AS cor0
----
-110
-115
-64

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= + col2 / + col1
----

query I rowsort
SELECT DISTINCT - - col1 + + col2 AS col1 FROM tab0 cor0
----
100
128
31

query I rowsort
SELECT ALL + - 25 AS col0 FROM tab0 AS cor0
----
-25
-25
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 20 - - col2 col0 FROM tab1 AS cor0
----
39
48
76

query I rowsort
SELECT 52 AS col2 FROM tab2 AS cor0 WHERE 22 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9228
SELECT COUNT( * ) + SUM( - col2 ) AS col2 FROM tab1 AS cor0
----
-220

skipif mysql # not compatible
query I rowsort label-9228
SELECT COUNT ( * ) + SUM ( - col2 ) AS col2 FROM tab1 AS cor0
----
-220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9229
SELECT ALL col2 - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL col2 - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT col1 * col0 AS col0 FROM tab1 AS cor0 WHERE 24 IS NOT NULL
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 * + col1 + + col0 col1 FROM tab2 cor0
----
1372
1817
2066

onlyif mysql # DIV for integer division: 
query I rowsort label-9232
SELECT 69 DIV 64 + col2 * ( col0 ) FROM tab1
----
4897
5016
6189

skipif mysql # not compatible
query I rowsort label-9232
SELECT 69 / 64 + col2 * ( col0 ) FROM tab1
----
4897
5016
6189

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 < ( 32 * 10 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9234
SELECT DISTINCT 21 * COUNT( * ) * - COUNT( * ) FROM tab2
----
-189

skipif mysql # not compatible
query I rowsort label-9234
SELECT DISTINCT 21 * COUNT ( * ) * - COUNT ( * ) FROM tab2
----
-189

query I rowsort
SELECT 87 + - ( col2 ) FROM tab1
----
-9
19
28

query I rowsort
SELECT ALL AVG ( col2 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9237
SELECT ALL - col0 + + col2 FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 * + CAST( - col1 AS SIGNED ) + + col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL - col0 + + col2 FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 * + CAST ( - col1 AS INTEGER ) + + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9238
SELECT DISTINCT * FROM tab1 WHERE NOT ( CAST( 24 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9238
SELECT DISTINCT * FROM tab1 WHERE NOT ( CAST ( 24 AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT col0 * + col1 + 7 AS col0 FROM tab0
----
104
1222
1834

query I rowsort
SELECT col2 + + - col2 * col1 AS col0 FROM tab2
----
-1150
-3040
-3828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 56 * - col2 col2 FROM tab0
----
2632
5544
560

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 WHERE NOT 99 < + 32
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT ALL - COUNT( * ) * - - COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9243
SELECT ALL - COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9244
SELECT - + col0 DIV - col0 + 95 FROM tab0 AS cor0
----
96
96
96

skipif mysql # not compatible
query I rowsort label-9244
SELECT - + col0 / - col0 + 95 FROM tab0 AS cor0
----
96
96
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9245
SELECT ALL + MAX( ALL - CAST( - col0 AS SIGNED ) ) col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9245
SELECT ALL + MAX ( ALL - CAST ( - col0 AS INTEGER ) ) col0 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT + - SUM( 86 ) AS col1 FROM tab2 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-9246
SELECT + - SUM ( 86 ) AS col1 FROM tab2 AS cor0
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT DISTINCT MIN( DISTINCT - + ( + - col2 ) ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9247
SELECT DISTINCT MIN ( DISTINCT - + ( + - col2 ) ) AS col1 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT - 6 * - - COUNT( * ) FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-9248
SELECT - 6 * - - COUNT ( * ) FROM tab1
----
-18

query I rowsort
SELECT DISTINCT 49 + col1 AS col0 FROM tab1 WHERE NOT + col1 + col2 NOT BETWEEN ( + col2 * - 27 ) AND NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( - col0 ) > col1 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 38 * - 97 + - - col1 * - 47 FROM tab1 AS cor0
----
1477
3028
3451

onlyif mysql # DIV for integer division: 
query I rowsort label-9253
SELECT ALL col0 DIV + + col0 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9253
SELECT ALL col0 / + + col0 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 86 col0, - 90 AS col0 FROM tab1 AS cor0
----
86
-90
86
-90
86
-90

query I rowsort
SELECT - 21 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
-21
-21
-21

query I rowsort
SELECT DISTINCT col2 FROM tab2 cor0 WHERE NOT NULL = col2 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9257
SELECT + + MIN( DISTINCT + 73 ) FROM tab1 cor0
----
73

skipif mysql # not compatible
query I rowsort label-9257
SELECT + + MIN ( DISTINCT + 73 ) FROM tab1 cor0
----
73

query I rowsort
SELECT DISTINCT + ( + - col2 ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) > + + 62 - ( - col0 ) * col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9260
SELECT 58 + + 24 + + 42 + COUNT( * ) DIV - 67 AS col0 FROM tab1 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-9260
SELECT 58 + + 24 + + 42 + COUNT ( * ) / - 67 AS col0 FROM tab1 AS cor0
----
124

onlyif mysql # DIV for integer division: 
query II rowsort label-9261
SELECT DISTINCT + col0, 84 DIV + col0 FROM tab2 AS cor0
----
46
1
64
1
75
1

skipif mysql # not compatible
query II rowsort label-9261
SELECT DISTINCT + col0, 84 / + col0 FROM tab2 AS cor0
----
46
1
64
1
75
1

query I rowsort
SELECT - col0 + - 87 + - col0 * ( 58 ) FROM tab2 AS cor0
----
-2801
-3863
-4512

query I rowsort
SELECT ALL - 70 FROM tab1 WHERE - col2 + + - ( + col0 ) + col1 IS NULL
----

query I rowsort
SELECT DISTINCT 30 FROM tab1 WHERE NOT + 77 IS NULL
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9265
SELECT ALL + col1 DIV ( - 97 ) * + + 85 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9265
SELECT ALL + col1 / ( - 97 ) * + + 85 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 44 col1 FROM tab2
----
2
20
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - 74 ) col2, + ( col0 ) AS col1 FROM tab1
----
-74
51
-74
85
-74
91

query I rowsort
SELECT ALL 12 + - col2 AS col1 FROM tab1
----
-47
-56
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab0 AS cor0 WHERE ( NULL ) IN ( - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9270
SELECT + col2 DIV col1 DIV col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9270
SELECT + col2 / col1 / col0 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
0
0
0

query I rowsort
SELECT col2 * 78 AS col1 FROM tab0 AS cor0 WHERE ( col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9272
SELECT + - 94 * CAST( NULL AS SIGNED ) / ( + - col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9272
SELECT + - 94 * CAST ( NULL AS INTEGER ) / ( + - col1 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + - + ( - 73 ) + + 87 AS col2 FROM tab1 AS cor0
----
219
228
256

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT ALL ( 25 ) + + COUNT( * ) AS col0 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL ( 25 ) + + COUNT ( * ) AS col0 FROM tab2
----
28

query I rowsort
SELECT 86 + - - col0 AS col0 FROM tab2 AS cor0
----
132
150
161

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9276
SELECT ALL - + 27 + + CAST( 49 AS SIGNED ) * + + MAX( ALL - + col2 ) AS col2 FROM tab2 AS cor0
----
-1154

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL - + 27 + + CAST ( 49 AS INTEGER ) * + + MAX ( ALL - + col2 ) AS col2 FROM tab2 AS cor0
----
-1154

query I rowsort
SELECT DISTINCT + + 32 - - col1 FROM tab0 AS cor0
----
113
33
53

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT + 64 IS NULL )
----

query II rowsort
SELECT col0 AS col1, - 20 FROM tab0
----
15
-20
87
-20
97
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT DISTINCT - 95 * + + COUNT( * ) FROM tab2
----
-285

skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT - 95 * + + COUNT ( * ) FROM tab2
----
-285

query I rowsort
SELECT 63 * + - col2 FROM tab2
----
-1449
-2520
-3654

query I rowsort
SELECT DISTINCT - 46 * + + col2 FROM tab1
----
-2714
-3128
-4416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 83, 67 col0 FROM tab0
----
83
67
83
67
83
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT MIN( DISTINCT 37 ) AS col0 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-9285
SELECT MIN ( DISTINCT 37 ) AS col0 FROM tab2
----
37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + 3 / + 67 * - col0 * + - ( col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 46 * + col2 AS col2 FROM tab1 AS cor0
----
2714
3128
4416

query I rowsort
SELECT DISTINCT + + col2 * col1 * ( - col2 ) FROM tab2 cor0
----
-123200
-225388
-26979

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND col1 - + 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT DISTINCT 58 * - COUNT( * ) FROM tab1
----
-174

skipif mysql # not compatible
query I rowsort label-9290
SELECT DISTINCT 58 * - COUNT ( * ) FROM tab1
----
-174

query I rowsort
SELECT DISTINCT - 2 + + + 7 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 94 * col0 * + 8 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + 60 ) IS NOT NULL
----

query I rowsort
SELECT - col1 * + + col2 - + + col1 * ( col1 ) AS col0 FROM tab0 cor0
----
-100
-10368
-651

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT - MIN( - 62 ) AS col1 FROM tab1 cor0
----
62

skipif mysql # not compatible
query I rowsort label-9295
SELECT - MIN ( - 62 ) AS col1 FROM tab1 cor0
----
62

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( - + col1 + - + 73 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT + 95 + col1 + - 49 - 47 NOT IN ( 9 * - col2 * col1 + + 55 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= + 70
----

query I rowsort
SELECT ( 79 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col1 NOT BETWEEN - col1 AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9300
SELECT DISTINCT + 40 DIV - col1 * - col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT + 40 / - col1 * - col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9301
SELECT ( 14 ) DIV + col1 AS col2 FROM tab0
----
0
0
14

skipif mysql # not compatible
query I rowsort label-9301
SELECT ( 14 ) / + col1 AS col2 FROM tab0
----
0
0
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 * col1 col2 FROM tab0
----
1995
7695
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9303
SELECT DISTINCT 22 DIV - + 23 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9303
SELECT DISTINCT 22 / - + 23 col1 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9304
SELECT - ( 43 ) DIV - col1 + - col0 + - col0 AS col0 FROM tab0
----
-151
-172
-30

skipif mysql # not compatible
query I rowsort label-9304
SELECT - ( 43 ) / - col1 + - col0 + - col0 AS col0 FROM tab0
----
-151
-172
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-9305
SELECT ALL + 70, col2 DIV - 62 AS col1 FROM tab1
----
70
-1
70
-1
70
0

skipif mysql # not compatible
query II rowsort label-9305
SELECT ALL + 70, col2 / - 62 AS col1 FROM tab1
----
70
-1
70
-1
70
0

query I rowsort
SELECT ALL col2 + + col0 + - 37 * col1 + + col2 * 17 + col1 FROM tab0
----
-2055
-489
1843

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT ALL + COUNT( * ) + + 38 AS col2 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-9307
SELECT ALL + COUNT ( * ) + + 38 AS col2 FROM tab2
----
41

query I rowsort
SELECT ALL + + col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9309
SELECT ALL - 88 * + 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-9309
SELECT ALL - 88 * + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 9 + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT col1 >= NULL
----

query I rowsort
SELECT - + col0 + + 16 AS col0 FROM tab1 AS cor0
----
-35
-69
-75

query III rowsort
SELECT * FROM tab2 WHERE - 38 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) IN ( - col1 * - 15 - + + 55 )
----

query II rowsort
SELECT DISTINCT col2 + + col2, + col0 FROM tab0
----
198
97
20
87
94
15

query I rowsort
SELECT DISTINCT + ( + col2 ) + 58 AS col2 FROM tab0 AS cor0
----
105
157
68

onlyif mysql # DIV for integer division: 
query I rowsort label-9316
SELECT ALL - - col1 + + - col2 DIV - - col0 * + 35 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9316
SELECT ALL - - col1 + + - col2 / - - col0 * + 35 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= col0 * - col1
----

query II rowsort
SELECT DISTINCT - col2 + + col1 AS col2, 87 AS col0 FROM tab1 AS cor0
----
-21
87
-54
87
-82
87

query I rowsort
SELECT + 75 - + 42 AS col1 FROM tab2 AS cor0
----
33
33
33

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 16 + + col2 IN ( - 4 + + - 99 / - 68 - col2 + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - + 99 * - + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT DISTINCT 65 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9322
SELECT DISTINCT 65 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
195

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 48 <= ( + col1 )
----
15
81
47

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col1 * 43 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9326
SELECT DISTINCT + COUNT( ALL - - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9326
SELECT DISTINCT + COUNT ( ALL - - col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL 59 + col0 FROM tab0 AS cor0 WHERE NOT 26 IS NULL
----
146
156
74

onlyif mysql # DIV for integer division: 
query I rowsort label-9328
SELECT col2 * col0 DIV - col2 AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9328
SELECT col2 * col0 / - col2 AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + 5 * col0 - + + 53 FROM tab1 AS cor0
----
202
372
402

query I rowsort
SELECT ALL - 32 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9331
SELECT DISTINCT - COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9331
SELECT DISTINCT - COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9332
SELECT CAST( NULL AS SIGNED ) + - + 53 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9332
SELECT CAST ( NULL AS INTEGER ) + - + 53 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( - 39 ) * + + ( - col0 ) - + col2 FROM tab2 cor0 WHERE NOT NULL <= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9334
SELECT DISTINCT + - col0 + + ( + col1 ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9334
SELECT DISTINCT + - col0 + + ( + col1 ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 80 + - + 27 FROM tab2 AS cor0
----
53
53
53

query I rowsort
SELECT + col2 + col0 - + col0 AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL 56 + - col0 FROM tab0 AS cor0
----
-31
-41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT - + 96 + + + MAX( ALL + ( - + 15 ) ) FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-9338
SELECT - + 96 + + + MAX ( ALL + ( - + 15 ) ) FROM tab1 AS cor0
----
-111

query I rowsort
SELECT ( + 76 ) FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT 30 FROM tab1 AS cor0 WHERE NULL IS NULL
----
30
30
30

query I rowsort
SELECT ALL col1 * + 8 AS col2 FROM tab1
----
112
376
40

query I rowsort
SELECT DISTINCT - 77 AS col1 FROM tab1 WHERE + 39 IS NOT NULL
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9343
SELECT - ( + CAST( - 80 AS SIGNED ) ) FROM tab0, tab2 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

skipif mysql # not compatible
query I rowsort label-9343
SELECT - ( + CAST ( - 80 AS INTEGER ) ) FROM tab0, tab2 AS cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT DISTINCT 35 * - 15 + - 47 FROM tab2 AS cor0 WHERE + 22 IS NOT NULL
----
-572

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9345
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - 19 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9345
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - 19 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 AS cor0 WHERE + 93 * + + col0 * col1 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE + 66 / col0 - - ( col2 ) + + col1 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab0 WHERE NOT + + 43 = + col1
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - + 14 ) * col2 * - col2 + - col1 col1 FROM tab2 cor0
----
22323
47029
7355

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( + - col2 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 86 AS col2 FROM tab1 AS cor0 WHERE + col1 < + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9352
SELECT + + CAST( 91 AS SIGNED ) * + + 65 AS col0, col0 AS col2 FROM tab1 AS cor0
----
5915
51
5915
85
5915
91

skipif mysql # not compatible
query II rowsort label-9352
SELECT + + CAST ( 91 AS INTEGER ) * + + 65 AS col0, col0 AS col2 FROM tab1 AS cor0
----
5915
51
5915
85
5915
91

query I rowsort
SELECT + ( + ( - col1 ) ) FROM tab2 cor0 WHERE NOT col2 IS NULL
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = NULL OR col0 / 25 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT ALL MIN( ALL + - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9355
SELECT ALL MIN ( ALL + - col0 ) FROM tab2
----
-75

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE NOT - col1 <= + + col2 * - col0 * - col0 + - 16
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9357
SELECT - MIN( ALL + + 47 ) AS col2, + 92 FROM tab0
----
-47
92

skipif mysql # not compatible
query II rowsort label-9357
SELECT - MIN ( ALL + + 47 ) AS col2, + 92 FROM tab0
----
-47
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT ALL COUNT( + 65 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL COUNT ( + 65 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT ALL COUNT( * ) * - COUNT( * ) + - COUNT( * ) FROM tab0 WHERE NOT + + 14 * 19 BETWEEN + col1 AND + + col2 / - col1
----
-12

skipif mysql # not compatible
query I rowsort label-9359
SELECT ALL COUNT ( * ) * - COUNT ( * ) + - COUNT ( * ) FROM tab0 WHERE NOT + + 14 * 19 BETWEEN + col1 AND + + col2 / - col1
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9360
SELECT - ( + col2 ) * + + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9360
SELECT - ( + col2 ) * + + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9361
SELECT * FROM tab0 AS cor0 WHERE NOT + 18 + - col1 * + CAST( + - col1 AS SIGNED ) NOT BETWEEN + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9361
SELECT * FROM tab0 AS cor0 WHERE NOT + 18 + - col1 * + CAST ( + - col1 AS INTEGER ) NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT 47 + + - col1 FROM tab0 AS cor0
----
-34
26
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9363
SELECT - SUM( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-227

skipif mysql # not compatible
query I rowsort label-9363
SELECT - SUM ( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
-227

query I rowsort
SELECT col0 * + 5 AS col0 FROM tab0
----
435
485
75

query I rowsort
SELECT + 16 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT ALL - 86 + + + col2 FROM tab0 AS cor0
----
-39
-76
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9367
SELECT DISTINCT - 97 DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-9367
SELECT DISTINCT - 97 / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-32

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 66 + - - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT ALL SUM( DISTINCT - 24 ) AS col0 FROM tab0 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL SUM ( DISTINCT - 24 ) AS col0 FROM tab0 cor0
----
-24

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col0 ) * - ( - 36 ) * 97 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - col0 + - - col1 FROM tab1 cor0
----
138
65
90

query I rowsort
SELECT ALL - 24 * + col0 + + col1 FROM tab0 AS cor0
----
-2067
-2327
-279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9373
SELECT ALL + ( + CAST( + col0 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL + ( + CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT - COUNT( * ) * - 20 + COUNT( * ) AS col0 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-9374
SELECT - COUNT ( * ) * - 20 + COUNT ( * ) AS col0 FROM tab2
----
63

query I rowsort
SELECT - 83 + - 99 * 14 AS col2 FROM tab2
----
-1469
-1469
-1469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - ( - - col2 ) col2 FROM tab0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9377
SELECT ALL + col2 * col2 DIV - - 81 FROM tab0
----
1
121
27

skipif mysql # not compatible
query I rowsort label-9377
SELECT ALL + col2 * col2 / - - 81 FROM tab0
----
1
121
27

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT ALL MIN( - col0 ) + - MAX( ALL + 64 ) * - - COUNT( * ) AS col1 FROM tab1
----
-283

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL MIN ( - col0 ) + - MAX ( ALL + 64 ) * - - COUNT ( * ) AS col1 FROM tab1
----
-283

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, col2 col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 NOT BETWEEN ( - col1 ) AND - 10 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 - + 5 + + - col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9382
SELECT + MIN( ALL + col1 ) DIV - 91 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9382
SELECT + MIN ( ALL + col1 ) / - 91 AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL 57 AS col2 FROM tab2 cor0
----
57
57
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9384
SELECT - - 88 DIV - 12 col2, - COUNT( * ) FROM tab0 AS cor0
----
-7
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9384
SELECT - - 88 / - 12 col2, - COUNT ( * ) FROM tab0 AS cor0
----
-7
-3

query I rowsort
SELECT ALL - col0 + + - col2 * - col0 * + - 1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4947
-5100
-6279

onlyif mysql # DIV for integer division: 
query I rowsort label-9386
SELECT ALL + col2 DIV - - col0 + col1 AS col2 FROM tab1 AS cor0
----
15
47
5

skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL + col2 / - - col0 + col1 AS col2 FROM tab1 AS cor0
----
15
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9387
SELECT 48 DIV col0 + + - col2 FROM tab0 AS cor0
----
-10
-44
-99

skipif mysql # not compatible
query I rowsort label-9387
SELECT 48 / col0 + + - col2 FROM tab0 AS cor0
----
-10
-44
-99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 60 <> - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 62 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT - ( - MAX( ALL - col2 ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10

skipif mysql # not compatible
query I rowsort label-9390
SELECT - ( - MAX ( ALL - col2 ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT + - 15 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9391
SELECT + - 15 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
45

query II rowsort
SELECT DISTINCT 64, + 39 * 6 + - col0 AS col1 FROM tab1
----
64
143
64
149
64
183

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 = col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9394
SELECT DISTINCT + + col1 AS col1, - CAST( - + ( + 88 ) AS SIGNED ) FROM tab1 WHERE NULL IS NULL
----
14
88
47
88
5
88

skipif mysql # not compatible
query II rowsort label-9394
SELECT DISTINCT + + col1 AS col1, - CAST ( - + ( + 88 ) AS INTEGER ) FROM tab1 WHERE NULL IS NULL
----
14
88
47
88
5
88

query I rowsort
SELECT - + col1 * + - 32 FROM tab2 cor0
----
1632
2144
2464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9396
SELECT - ( + MIN( ALL CAST( NULL AS SIGNED ) ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9396
SELECT - ( + MIN ( ALL CAST ( NULL AS INTEGER ) ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT ALL - MAX( - col0 ) + COUNT( * ) AS col1 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL - MAX ( - col0 ) + COUNT ( * ) AS col1 FROM tab2
----
49

query I rowsort
SELECT DISTINCT - col2 + + + col2 * + col0 FROM tab1
----
4800
4956
6120

query I rowsort
SELECT - col0 + + 0 + 70 AS col1 FROM tab1 AS cor0
----
-15
-21
19

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col1 + 77 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9401
SELECT SUM( - + col1 ) AS col1 FROM tab0 AS cor0 WHERE - 75 * 59 + - 80 IS NOT NULL
----
-103

skipif mysql # not compatible
query I rowsort label-9401
SELECT SUM ( - + col1 ) AS col1 FROM tab0 AS cor0 WHERE - 75 * 59 + - 80 IS NOT NULL
----
-103

query I rowsort
SELECT + col2 + - 84 + + - col2 AS col1 FROM tab0 AS cor0
----
-84
-84
-84

query I rowsort
SELECT + 20 + ( + + col1 ) + + col1 * col1 FROM tab1 AS cor0
----
2276
230
50

query I rowsort
SELECT - + col0 * col1 + + + col2 AS col0 FROM tab2 AS cor0
----
-2323
-4888
-4967

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - col0 + col1 col1 FROM tab1 AS cor0
----
-21
24
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9406
SELECT - + MAX( - col2 ) col1 FROM tab1 cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9406
SELECT - + MAX ( - col2 ) col1 FROM tab1 cor0
----
59

query I rowsort
SELECT ALL + + col2 FROM tab2 WHERE NOT NULL < col0
----

query I rowsort
SELECT - 90 - + - col0 AS col0 FROM tab1 WHERE ( - - col1 ) <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <= + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT COUNT( * ) - + 18 * - 68 + + - MAX( - - col0 ) FROM tab0
----
1130

skipif mysql # not compatible
query I rowsort label-9410
SELECT COUNT ( * ) - + 18 * - 68 + + - MAX ( - - col0 ) FROM tab0
----
1130

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT MAX( - col2 ) - COUNT( * ) AS col0 FROM tab2 WHERE col2 - + + 67 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9411
SELECT MAX ( - col2 ) - COUNT ( * ) AS col0 FROM tab2 WHERE col2 - + + 67 BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT - 66 - + col1 FROM tab1
----
-113
-71
-80

query I rowsort
SELECT col0 - - 69 * + col2 AS col2 FROM tab2 AS cor0
----
1633
2824
4077

query I rowsort
SELECT - ( - col0 ) - - col0 + 78 AS col1 FROM tab1 AS cor0
----
180
248
260

query I rowsort
SELECT ALL + + 29 + - 77 AS col0 FROM tab0 AS cor0
----
-48
-48
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-9416
SELECT ALL 47 - col1 DIV + + 80 * - - col1 AS col1 FROM tab1 AS cor0
----
47
47
47

skipif mysql # not compatible
query I rowsort label-9416
SELECT ALL 47 - col1 / + + 80 * - - col1 AS col1 FROM tab1 AS cor0
----
47
47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * 50 col1, col0 FROM tab2 AS cor0 WHERE - 99 + 38 IS NOT NULL
----
2550
46
3350
75
3850
64

query I rowsort
SELECT DISTINCT 84 * - col1 FROM tab2
----
-4284
-5628
-6468

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9419
SELECT DISTINCT - col1 AS col0, - col1 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-9419
SELECT DISTINCT - col1 AS col0, - col1 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

query II rowsort
SELECT ALL - + col0 AS col2, col0 AS col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 > 40 * col0 + - 89
----

query I rowsort
SELECT DISTINCT - col0 * - 19 * - - col0 * - ( - 84 ) * - ( col2 ) FROM tab1 AS cor0
----
-398514816
-680334900
-898720368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 col2, + 99 FROM tab1 AS cor0
----
14
99
47
99
5
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 41 BETWEEN NULL AND - + col0 * 1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9425
SELECT ALL - COUNT( DISTINCT + + col1 ) * 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-9425
SELECT ALL - COUNT ( DISTINCT + + col1 ) * CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

query II rowsort
SELECT ( - - col0 ), 60 + 76 * + 22 * col0 AS col2 FROM tab1
----
51
85332
85
142180
91
152212

query II rowsort
SELECT col1 AS col1, 78 AS col1 FROM tab0
----
1
78
21
78
81
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT DISTINCT - COUNT( ALL + - 27 ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9428
SELECT DISTINCT - COUNT ( ALL + - 27 ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col2 AND NULL
----
0

query I rowsort
SELECT col0 + + col0 - - - col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL col0 - - + 79 FROM tab2
----
125
143
154

query I rowsort
SELECT col1 + 70 AS col0 FROM tab1
----
117
75
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9432
SELECT * FROM tab1 WHERE - + CAST( NULL AS SIGNED ) * - col2 <= - col2
----

skipif mysql # not compatible
query III rowsort label-9432
SELECT * FROM tab1 WHERE - + CAST ( NULL AS INTEGER ) * - col2 <= - col2
----

query I rowsort
SELECT DISTINCT 73 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT DISTINCT - 80 * + + COUNT( * ) FROM tab2
----
-240

skipif mysql # not compatible
query I rowsort label-9434
SELECT DISTINCT - 80 * + + COUNT ( * ) FROM tab2
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT ALL + COUNT( * ) * MIN( - col1 ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-9435
SELECT ALL + COUNT ( * ) * MIN ( - col1 ) FROM tab1
----
-141

query I rowsort
SELECT DISTINCT + col0 * - - col1 + + col0 AS col1 FROM tab0
----
1230
1914
194

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9437
SELECT DISTINCT + + COUNT( * ) DIV - 55 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9437
SELECT DISTINCT + + COUNT ( * ) / - 55 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9438
SELECT + + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9438
SELECT + + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col0 * - - 12 AS col0 FROM tab1 AS cor0
----
1020
1092
612

query I rowsort
SELECT - col0 * - - col2 AS col2 FROM tab0 cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT - + MIN( - 56 ) col1 FROM tab0 AS cor0
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9441
SELECT - + MIN ( - 56 ) col1 FROM tab0 AS cor0
----
56

query I rowsort
SELECT col2 * + - 9 * - + col1 FROM tab1 AS cor0
----
12096
2655
28764

onlyif mysql # aggregate syntax: 
query I rowsort label-9443
SELECT SUM( ALL + + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9443
SELECT SUM ( ALL + + col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # DIV for integer division: 
query I rowsort label-9444
SELECT - + 75 DIV col1 FROM tab0 AS cor0
----
-3
-75
0

skipif mysql # not compatible
query I rowsort label-9444
SELECT - + 75 / col1 FROM tab0 AS cor0
----
-3
-75
0

query I rowsort
SELECT DISTINCT - + 16 * - - 50 AS col2 FROM tab2 AS cor0
----
-800

onlyif mysql # DIV for integer division: 
query I rowsort label-9446
SELECT DISTINCT - + 17 DIV + col0 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9446
SELECT DISTINCT - + 17 / + col0 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9447
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + 79 / - 87 * col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9447
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 79 / - 87 * col0 FROM tab0
----
NULL

query I rowsort
SELECT + 99 FROM tab2 WHERE NOT NULL <> - 80 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT MIN( DISTINCT - ( - - col1 ) ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-9449
SELECT MIN ( DISTINCT - ( - - col1 ) ) FROM tab1
----
-47

query I rowsort
SELECT ( + + 29 ) - + + 28 * + col1 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + col2, col1 AS col1 FROM tab0
----
10
21
47
81
99
1

query II rowsort
SELECT + - col0 AS col0, col2 + col0 + + col1 * - col1 * + col0 FROM tab0 AS cor0
----
-15
-98353
-87
-38270
-97
99

onlyif mysql # DIV for integer division: 
query II rowsort label-9453
SELECT ALL - + 21 DIV + - 99 + 62 DIV + col1 AS col1, - 53 AS col2 FROM tab2 AS cor0
----
0
-53
0
-53
1
-53

skipif mysql # not compatible
query II rowsort label-9453
SELECT ALL - + 21 / + - 99 + 62 / + col1 AS col1, - 53 AS col2 FROM tab2 AS cor0
----
0
-53
0
-53
1
-53

query I rowsort
SELECT DISTINCT + 70 + + - 49 AS col1 FROM tab1 AS cor0
----
21

query I rowsort
SELECT ALL + - col2 + - + 82 AS col1 FROM tab0 AS cor0
----
-129
-181
-92

query III rowsort
SELECT * FROM tab2 cor0 WHERE 77 * + 45 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 63 + col2 col2 FROM tab0 AS cor0
----
-16
-53
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9458
SELECT - - ( - ( + MAX( col2 ) ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9458
SELECT - - ( - ( + MAX ( col2 ) ) ) FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT DISTINCT + - SUM( ALL - col0 ) + - COUNT( * ) AS col1 FROM tab1 cor0
----
224

skipif mysql # not compatible
query I rowsort label-9459
SELECT DISTINCT + - SUM ( ALL - col0 ) + - COUNT ( * ) AS col1 FROM tab1 cor0
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT ALL - COUNT( * ) - - 35 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-9460
SELECT ALL - COUNT ( * ) - - 35 FROM tab0 AS cor0
----
32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + 88
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9462
SELECT col0 col2 FROM tab1 WHERE NULL IN ( + col1 * + + col0 + - col0, - col2 * + col2 + CAST( NULL AS SIGNED ), - col0 + - col0 - col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9462
SELECT col0 col2 FROM tab1 WHERE NULL IN ( + col1 * + + col0 + - col0, - col2 * + col2 + CAST ( NULL AS INTEGER ), - col0 + - col0 - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9463
SELECT ALL + COUNT( * ) AS col0, MAX( + ( - - col1 ) ) AS col1 FROM tab1
----
3
47

skipif mysql # not compatible
query II rowsort label-9463
SELECT ALL + COUNT ( * ) AS col0, MAX ( + ( - - col1 ) ) AS col1 FROM tab1
----
3
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT ALL + COUNT( + 6 ) + - COUNT( * ) - - + 19 - - 85 FROM tab0
----
104

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL + COUNT ( + 6 ) + - COUNT ( * ) - - + 19 - - 85 FROM tab0
----
104

query III rowsort
SELECT * FROM tab2 WHERE - ( + 97 ) * ( - - col0 ) IS NULL
----

query II rowsort
SELECT ALL 29, col2 AS col2 FROM tab0
----
29
10
29
47
29
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 23, 58 col1 FROM tab1 cor0
----
-23
58
-23
58
-23
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT ALL + SUM( + 95 ) FROM tab2 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL + SUM ( + 95 ) FROM tab2 AS cor0
----
285

query I rowsort
SELECT DISTINCT 28 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT MIN( DISTINCT col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9471
SELECT MIN ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - - col1
----
NULL

query I rowsort
SELECT ALL + ( + col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT + ( - - col2 ) + - 39 IS NULL
----
51
67
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 45 / + 68 > NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL = - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - 27 AS col0, 4 col0 FROM tab2 AS cor0
----
1242
4
1728
4
2025
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT ALL + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9476
SELECT ALL + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT ALL + SUM( DISTINCT + ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9477
SELECT ALL + SUM ( DISTINCT + ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + col0 - col1 + + col1 col0, col0 AS col2 FROM tab2 AS cor0
----
1058
46
2560
64
4350
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9479
SELECT CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - 72 BETWEEN 18 AND NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9479
SELECT CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - 72 BETWEEN 18 AND NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 85 AS col0, col0 col0 FROM tab2
----
85
46
85
64
85
75

query I rowsort
SELECT DISTINCT - col2 + - - 40 AS col0 FROM tab2
----
-18
0
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9482
SELECT ALL - SUM( DISTINCT + col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-9482
SELECT ALL - SUM ( DISTINCT + col2 ) FROM tab0
----
-156

query I rowsort
SELECT ALL col1 + - 97 AS col1 FROM tab1
----
-50
-83
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-9484
SELECT + 58 + col0 DIV - - col1 col1 FROM tab0
----
155
58
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9484
SELECT + 58 + col0 / - - col1 col1 FROM tab0
----
155
58
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9485
SELECT - CAST( NULL AS SIGNED ) * col1 * + - 85 + + col0 * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9485
SELECT - CAST ( NULL AS INTEGER ) * col1 * + - 85 + + col0 * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 52 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + - - col2 AS col2 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9488
SELECT - CAST( NULL AS DECIMAL ) * + - col0 - - 29 + - 68 col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9488
SELECT - CAST ( NULL AS REAL ) * + - col0 - - 29 + - 68 col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + - - ( + 10 ) * col2 FROM tab1 cor0
----
505
589
909

onlyif mysql # DIV for integer division: 
query I rowsort label-9490
SELECT DISTINCT - col2 + + 15 DIV col2 FROM tab0 AS cor0
----
-47
-9
-99

skipif mysql # not compatible
query I rowsort label-9490
SELECT DISTINCT - col2 + + 15 / col2 FROM tab0 AS cor0
----
-47
-9
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9491
SELECT - ( - col1 ) + col1 + + - 91 DIV + + CAST( + col0 AS SIGNED ) + - ( - 85 ) FROM tab0 AS cor0
----
126
241
87

skipif mysql # not compatible
query I rowsort label-9491
SELECT - ( - col1 ) + col1 + + - 91 / + + CAST ( + col0 AS INTEGER ) + - ( - 85 ) FROM tab0 AS cor0
----
126
241
87

query I rowsort
SELECT ALL - 19 + + 67 + + ( col2 ) AS col1 FROM tab0 cor0
----
147
58
95

query I rowsort
SELECT + col2 + col2 * + 8 AS col2 FROM tab2 AS cor0
----
207
360
522

query I rowsort
SELECT DISTINCT - 30 - + col0 * + - 91 FROM tab1 AS cor0
----
4611
7705
8251

query I rowsort
SELECT + - col0 + + 50 * - col0 * + - col0 AS col2 FROM tab2 AS cor0
----
105754
204736
281175

onlyif mysql # DIV for integer division: 
query I rowsort label-9496
SELECT 25 * + col1 + + col2 + + ( - col1 ) * col0 + - + col1 DIV + ( col2 ) + ( + col0 ) FROM tab0
----
-1207
124
871

skipif mysql # not compatible
query I rowsort label-9496
SELECT 25 * + col1 + + col2 + + ( - col1 ) * col0 + - + col1 / + ( col2 ) + ( + col0 ) FROM tab0
----
-1207
124
871

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9497
SELECT - 26 * - 35 + - COUNT( * ) DIV 83 FROM tab1
----
910

skipif mysql # not compatible
query I rowsort label-9497
SELECT - 26 * - 35 + - COUNT ( * ) / 83 FROM tab1
----
910

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 6 - - + col0 >= + 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT + + COUNT( * ) FROM tab0 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9499
SELECT + + COUNT ( * ) FROM tab0 WHERE NOT col2 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - col0 AND + 4 / col0 OR NOT + 63 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9501
SELECT ALL + CAST( + 77 AS SIGNED ) FROM tab0 WHERE NOT col0 = - + col0 + + - col2 - 82 * - col1
----
77
77
77

skipif mysql # not compatible
query I rowsort label-9501
SELECT ALL + CAST ( + 77 AS INTEGER ) FROM tab0 WHERE NOT col0 = - + col0 + + - col2 - 82 * - col1
----
77
77
77

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 WHERE NOT - 70 - + 89 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT ALL - COUNT( - ( - col0 ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9503
SELECT ALL - COUNT ( - ( - col0 ) ) FROM tab0 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 69 BETWEEN NULL AND + - col0 / - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT - COUNT( - col1 ) * + + ( ( - + 37 ) ) AS col2 FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-9505
SELECT - COUNT ( - col1 ) * + + ( ( - + 37 ) ) AS col2 FROM tab0 AS cor0
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9506
SELECT 44 / + + col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9506
SELECT 44 / + + col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 36 * + 84 AS col1 FROM tab1 AS cor0 WHERE NOT 10 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( col0 * - 5 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 IN ( + 13, + 79, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT DISTINCT - ( + + COUNT( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT - ( + + COUNT ( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT - 59 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

onlyif mysql # aggregate syntax: 
query II rowsort label-9513
SELECT ALL + MIN( ALL + 27 ) * - 85, + 26 AS col0 FROM tab0 AS cor0
----
-2295
26

skipif mysql # not compatible
query II rowsort label-9513
SELECT ALL + MIN ( ALL + 27 ) * - 85, + 26 AS col0 FROM tab0 AS cor0
----
-2295
26

query II rowsort
SELECT col0 * + 21 + - - col2 + - + 30, + col2 FROM tab0 AS cor0
----
1807
10
2106
99
332
47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 * - 17 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9516
SELECT 6 * col1 + 81 + + col0 DIV col0 * - CAST( col0 AS SIGNED ) * - 58 FROM tab2 cor0
----
3055
4255
4833

skipif mysql # not compatible
query I rowsort label-9516
SELECT 6 * col1 + 81 + + col0 / col0 * - CAST ( col0 AS INTEGER ) * - 58 FROM tab2 cor0
----
3055
4255
4833

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9517
SELECT + ( + CAST( NULL AS DECIMAL ) ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9517
SELECT + ( + CAST ( NULL AS REAL ) ) + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 69 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 92 * 4 + + col1 AS col0 FROM tab2
----
419
435
445

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9520
SELECT ALL + ( - + SUM( ALL CAST( NULL AS SIGNED ) ) ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9520
SELECT ALL + ( - + SUM ( ALL CAST ( NULL AS INTEGER ) ) ) col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + - col2 FROM tab2 WHERE NOT - col2 IS NULL
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 * col0 col1 FROM tab2 WHERE col2 IS NOT NULL
----
1610
2240
2625

onlyif mysql # aggregate syntax: 
query I rowsort label-9523
SELECT MAX( - 63 ) AS col2 FROM tab0 WHERE - + col1 - col2 + col2 < - col1 / + col2
----
-63

skipif mysql # not compatible
query I rowsort label-9523
SELECT MAX ( - 63 ) AS col2 FROM tab0 WHERE - + col1 - col2 + col2 < - col1 / + col2
----
-63

query I rowsort
SELECT ALL col1 * + - col0 + col2 FROM tab2
----
-2323
-4888
-4967

query I rowsort
SELECT DISTINCT - + col0 * - col2 + 3 + - - col2 + + 20 * col1 AS col0 FROM tab2 AS cor0
----
2104
4143
5751

query I rowsort
SELECT DISTINCT + 16 + col1 FROM tab0 AS cor0
----
17
37
97

query I rowsort
SELECT DISTINCT - - col0 + - 25 * + ( + col1 ) + - col1 AS col1 FROM tab0 AS cor0
----
-2091
-459
71

query II rowsort
SELECT + - col2 - + col1 AS col1, + ( ( + col0 ) ) + + 8 AS col1 FROM tab1 AS cor0
----
-110
59
-115
99
-64
93

query I rowsort
SELECT ALL col0 - - ( - - col1 ) AS col2 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT 38 + + - 22 FROM tab0 AS cor0
----
16
16
16

query I rowsort
SELECT DISTINCT + col2 * - - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 - - - col0 AS col0 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT DISTINCT 7 * + - col1 FROM tab2
----
-357
-469
-539

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT 21 > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL > ( col0 )
----

query I rowsort
SELECT 44 * + col1 AS col1 FROM tab2 AS cor0
----
2244
2948
3388

onlyif mysql # DIV for integer division: 
query I rowsort label-9537
SELECT ALL - + col2 DIV - col2 col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9537
SELECT ALL - + col2 / - col2 col0 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9538
SELECT DISTINCT COUNT( DISTINCT col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT COUNT ( DISTINCT col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query II rowsort
SELECT ALL + - col1, col0 + - 85 + + + col2 * - col0 - + col2 AS col0 FROM tab2 AS cor0
----
-51
-1120
-67
-4418
-77
-2621

query II rowsort
SELECT - 2, col2 AS col1 FROM tab2 WHERE NOT NULL <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9541
SELECT * FROM tab1 WHERE NOT - - CAST( NULL AS SIGNED ) >= + - col1 * + 2 / col0
----

skipif mysql # not compatible
query III rowsort label-9541
SELECT * FROM tab1 WHERE NOT - - CAST ( NULL AS INTEGER ) >= + - col1 * + 2 / col0
----

query I rowsort
SELECT col1 * 6 FROM tab2
----
306
402
462

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9543
SELECT DISTINCT - col0 * - 32 * - col1 * - CAST( NULL AS SIGNED ), 88 + - col0 AS col1 FROM tab2
----
NULL
13
NULL
24
NULL
42

skipif mysql # not compatible
query II rowsort label-9543
SELECT DISTINCT - col0 * - 32 * - col1 * - CAST ( NULL AS INTEGER ), 88 + - col0 AS col1 FROM tab2
----
NULL
13
NULL
24
NULL
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9544
SELECT ALL + col0 FROM tab2 WHERE NOT ( NOT CAST( + + col2 AS SIGNED ) + - col1 - + col1 * + col1 * - col0 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-9544
SELECT ALL + col0 FROM tab2 WHERE NOT ( NOT CAST ( + + col2 AS INTEGER ) + - col1 - + col1 * + col1 * - col0 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9545
SELECT DISTINCT col1 DIV - + col2 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9545
SELECT DISTINCT col1 / - + col2 AS col1 FROM tab1
----
0

query I rowsort
SELECT col0 * + 38 FROM tab2
----
1748
2432
2850

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT DISTINCT ( + COUNT( * ) ) FROM tab1 WHERE NOT ( - ( col1 ) + - - col0 + - + col2 <= NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9547
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab1 WHERE NOT ( - ( col1 ) + - - col0 + - + col2 <= NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT + COUNT( * ) * - + COUNT( * ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9548
SELECT + COUNT ( * ) * - + COUNT ( * ) FROM tab0 cor0
----
-9

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 6 * + 33 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9550
SELECT * FROM tab1 cor0 WHERE NOT - CAST( 7 AS SIGNED ) * + 27 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9550
SELECT * FROM tab1 cor0 WHERE NOT - CAST ( 7 AS INTEGER ) * + 27 IS NOT NULL
----

query I rowsort
SELECT ALL - 8 + col2 FROM tab1 cor0
----
51
60
88

query II rowsort
SELECT ALL + 38 + + col1, + col0 FROM tab1 AS cor0
----
43
85
52
51
85
91

query II rowsort
SELECT DISTINCT - + 34 + - col1, col1 FROM tab0 cor0
----
-115
81
-35
1
-55
21

query III rowsort
SELECT - col0 * col1 AS col0, col1 AS col1, - 58 FROM tab0 AS cor0
----
9 values hashing to 8040d31f323b90fd471566f032a24f56

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 75 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9556
SELECT - COUNT( + col0 ), 49 AS col2 FROM tab1 AS cor0
----
-3
49

skipif mysql # not compatible
query II rowsort label-9556
SELECT - COUNT ( + col0 ), 49 AS col2 FROM tab1 AS cor0
----
-3
49

query I rowsort
SELECT - col2 + col0 - - col1 FROM tab2
----
101
74
84

query II rowsort
SELECT 12 + + + col0 * - - col0, + 84 AS col2 FROM tab1
----
2613
84
7237
84
8293
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9559
SELECT DISTINCT 79 AS col0, CAST( NULL AS SIGNED ) FROM tab0
----
79
NULL

skipif mysql # not compatible
query II rowsort label-9559
SELECT DISTINCT 79 AS col0, CAST ( NULL AS INTEGER ) FROM tab0
----
79
NULL

query I rowsort
SELECT - 17 + - - col2 AS col0 FROM tab0
----
-7
30
82

query I rowsort
SELECT ( - - 0 ) + - col2 - - 23 FROM tab1
----
-36
-45
-73

query I rowsort
SELECT ALL + + col0 AS col1 FROM tab1 WHERE - - col1 <= NULL
----

query I rowsort
SELECT ALL col0 + - + 24 * col1 AS col0 FROM tab1
----
-1037
-285
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT - SUM( ALL col1 ) + - 47 FROM tab1
----
-113

skipif mysql # not compatible
query I rowsort label-9564
SELECT - SUM ( ALL col1 ) + - 47 FROM tab1
----
-113

query I rowsort
SELECT DISTINCT 99 + col0 * + + 1 FROM tab0
----
114
186
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 + col2 * + col0 col0 FROM tab2 WHERE NULL IS NULL
----
1062
2564
4354

query I rowsort
SELECT DISTINCT - 39 - + 75 FROM tab0 AS cor0
----
-114

onlyif mysql # aggregate syntax: 
query II rowsort label-9568
SELECT DISTINCT 2 * COUNT( col0 ) - - 73 AS col2, - ( + 8 ) AS col2 FROM tab0 AS cor0
----
79
-8

skipif mysql # not compatible
query II rowsort label-9568
SELECT DISTINCT 2 * COUNT ( col0 ) - - 73 AS col2, - ( + 8 ) AS col2 FROM tab0 AS cor0
----
79
-8

query I rowsort
SELECT DISTINCT - 8 / - col0 - 0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( 98 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * - col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9572
SELECT DISTINCT - 94 DIV + + col0 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-9572
SELECT DISTINCT - 94 / + + col0 FROM tab0 AS cor0
----
-1
-6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9573
SELECT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + - col0 ) col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9575
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9575
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 cor0
----
-3

query I rowsort
SELECT ALL 3 * + 15 * - + col2 * - col2 FROM tab2
----
151380
23805
72000

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 - - - col1 * - col1 IS NULL
----

query I rowsort
SELECT DISTINCT 39 / - 92 * - + 97 - - 58 * - col1 FROM tab1 WHERE - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9579
SELECT DISTINCT + + COUNT( * ) FROM tab1 WHERE - - col0 BETWEEN NULL AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT + + COUNT ( * ) FROM tab1 WHERE - - col0 BETWEEN NULL AND + col2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 83 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9581
SELECT + + COUNT( * ) DIV - - COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9581
SELECT + + COUNT ( * ) / - - COUNT ( * ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT + COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9582
SELECT + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9583
SELECT + CAST( - + CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9583
SELECT + CAST ( - + CAST ( NULL AS REAL ) AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT DISTINCT - - COUNT( col1 ) * - 60 FROM tab1 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-9584
SELECT DISTINCT - - COUNT ( col1 ) * - 60 FROM tab1 AS cor0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT MIN( - 93 ) AS col1 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-9585
SELECT MIN ( - 93 ) AS col1 FROM tab0
----
-93

query I rowsort
SELECT + col0 + + + col0 AS col1 FROM tab0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9587
SELECT ( + - col2 ) + + - CAST( NULL AS SIGNED ) * + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9587
SELECT ( + - col2 ) + + - CAST ( NULL AS INTEGER ) * + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT - + 21 + + 94, ( ( col0 ) ) FROM tab2 AS cor0
----
73
46
73
64
73
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 68 * - col2 col2 FROM tab2 AS cor0
----
1513
2643
3877

query I rowsort
SELECT ALL + - col1 + - 98 * - col0 AS col2 FROM tab2 AS cor0
----
4457
6195
7283

query I rowsort
SELECT - col1 + + col0 + - - col2 FROM tab0 cor0
----
-19
195
76

query I rowsort
SELECT ALL 62 + - col2 FROM tab0 AS cor0
----
-37
15
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9593
SELECT ALL + MAX( DISTINCT - - col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9593
SELECT ALL + MAX ( DISTINCT - - col2 ) AS col1 FROM tab2 AS cor0
----
58

query I rowsort
SELECT + col0 * + col0 * - col0 + - 53 AS col2 FROM tab2 AS cor0
----
-262197
-421928
-97389

query III rowsort
SELECT * FROM tab0 WHERE - - col2 BETWEEN - 25 / + 10 * + col1 + - col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 ) + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col2 AS col1 FROM tab1 WHERE + 44 IS NULL
----

query I rowsort
SELECT ALL + 49 + + col0 + + - 32 FROM tab1
----
102
108
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9599
SELECT + - 61 - - col2 * + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-160
-271
-3868

skipif mysql # not compatible
query I rowsort label-9599
SELECT + - 61 - - col2 * + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-160
-271
-3868

query I rowsort
SELECT - 56 * + col1 * + col0 - 84 * - ( + ( 28 ) ) AS col1 FROM tab1 AS cor0
----
-21448
-237160
-37632

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT COUNT( * ) + - + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9601
SELECT COUNT ( * ) + - + COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - 88 * - col2 - col1 AS col1 FROM tab1 AS cor0
----
5187
5937
8434

query I rowsort
SELECT + + 43 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) - - 55 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-9604
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) - - 55 FROM tab0
----
64

query I rowsort
SELECT + + ( + + ( + col1 ) ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 BETWEEN ( ( - col0 ) ) AND ( NULL )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT DISTINCT - ( - + 26 ) * - - MIN( col1 ) AS col1 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-9608
SELECT DISTINCT - ( - + 26 ) * - - MIN ( col1 ) AS col1 FROM tab0 AS cor0
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 34 * + col2 - + 11 AS col2, col1 + - col1 col0 FROM tab1 AS cor0
----
1995
0
2301
0
3253
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT + + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL BETWEEN 12 AND col1
----
0

skipif mysql # not compatible
query I rowsort label-9610
SELECT + + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL BETWEEN 12 AND col1
----
0

query I rowsort
SELECT DISTINCT + ( + - 44 ) * - + col1 AS col1 FROM tab1
----
2068
220
616

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT DISTINCT MAX( ALL - 56 ) col0 FROM tab0
----
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9612
SELECT DISTINCT MAX ( ALL - 56 ) col0 FROM tab0
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 * + 58 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + 66 * + col1 FROM tab2
----
3366
4422
5082

onlyif mysql # DIV for integer division: 
query I rowsort label-9615
SELECT ALL col0 DIV + 80 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9615
SELECT ALL col0 / + 80 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT 28 * - 85 * - - col2 AS col0 FROM tab1
----
-140420
-161840
-228480

onlyif mysql # aggregate syntax: 
query I rowsort label-9617
SELECT ALL - MIN( DISTINCT + 93 ) AS col0 FROM tab2 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL - MIN ( DISTINCT + 93 ) AS col0 FROM tab2 AS cor0
----
-93

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 - - col1 >= NULL
----

query I rowsort
SELECT 74 * + - 35 FROM tab2
----
-2590
-2590
-2590

query II rowsort
SELECT + col1 + + - col1 * - - col2, + col2 * - 40 AS col2 FROM tab1 WHERE + - 82 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT ALL - MAX( - 74 ) FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-9621
SELECT ALL - MAX ( - 74 ) FROM tab0
----
74

query II rowsort
SELECT DISTINCT - col0 + + + 62 * - + col1, - 87 AS col2 FROM tab1
----
-3005
-87
-395
-87
-919
-87

query I rowsort
SELECT DISTINCT AVG ( + - 21 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + col1 * - - col2 + + + 84 FROM tab0 AS cor0
----
183
294
3891

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9625
SELECT DISTINCT - + col0 * col2 + - - CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-786
-891
-9604

skipif mysql # not compatible
query I rowsort label-9625
SELECT DISTINCT - + col0 * col2 + - - CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-786
-891
-9604

query I rowsort
SELECT ALL + ( - 77 ) + + col2 FROM tab2 cor0
----
-19
-37
-54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 0 * - col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 + col2 col2 FROM tab1 cor0
----
-6
3
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9629
SELECT - - COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9629
SELECT - - COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT + col2 * + 32 + - - col2 FROM tab0
----
1551
3267
330

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT MIN( + 78 ) + - 62 * + - 40 col2 FROM tab1
----
2558

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9631
SELECT MIN ( + 78 ) + - 62 * + - 40 col2 FROM tab1
----
2558

query I rowsort
SELECT + ( 4 ) + - col2 FROM tab2
----
-19
-36
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT - ( - COUNT( * ) ) * - 38 + 81 AS col0 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-9633
SELECT - ( - COUNT ( * ) ) * - 38 + 81 AS col0 FROM tab0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT - 6 + - 73 * + + COUNT( * ) FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-9634
SELECT - 6 + - 73 * + + COUNT ( * ) FROM tab1
----
-225

query II rowsort
SELECT ALL - 1 AS col2, col2 AS col0 FROM tab1
----
-1
59
-1
68
-1
96

query I rowsort
SELECT DISTINCT + col1 * + col1 * 59 + - col0 FROM tab0
----
-38
25932
387084

query I rowsort
SELECT - col0 * - + 49 * - - 26 + - col2 FROM tab1
----
108231
115866
64878

onlyif mysql # aggregate syntax: 
query I rowsort label-9638
SELECT + 72 + + + SUM( col1 ) AS col1 FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-9638
SELECT + 72 + + + SUM ( col1 ) AS col1 FROM tab2
----
267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9639
SELECT ALL CAST( CAST( AVG ( ALL + col0 ) AS SIGNED ) AS SIGNED ) AS col0 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL CAST ( CAST ( AVG ( ALL + col0 ) AS INTEGER ) AS INTEGER ) AS col0 FROM tab0
----
66

query II rowsort
SELECT DISTINCT 81 AS col0, ( - col1 ) FROM tab0
----
81
-1
81
-21
81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9641
SELECT DISTINCT + + col1 * + 56, ( 54 ) - - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT 91 - + 15 IS NULL
----
1176
NULL
4536
NULL
56
NULL

skipif mysql # not compatible
query II rowsort label-9641
SELECT DISTINCT + + col1 * + 56, ( 54 ) - - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT 91 - + 15 IS NULL
----
1176
NULL
4536
NULL
56
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9642
SELECT CAST( + 20 AS SIGNED ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

skipif mysql # not compatible
query I rowsort label-9642
SELECT CAST ( + 20 AS INTEGER ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

onlyif mysql # aggregate syntax: 
query I rowsort label-9643
SELECT DISTINCT + MAX( ALL - + 57 ) FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT + MAX ( ALL - + 57 ) FROM tab0 AS cor0
----
-57

query I rowsort
SELECT DISTINCT + + col0 * - col2 AS col0 FROM tab2 cor0
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 34 > - + col1
----

query I rowsort
SELECT DISTINCT - - 38 * + - 13 * - col2 AS col1 FROM tab2 AS cor0
----
11362
19760
28652

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT ALL + COUNT( DISTINCT + + col2 ) AS col1 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL + COUNT ( DISTINCT + + col2 ) AS col1 FROM tab2 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9648
SELECT 73 DIV ( col1 ) * - col0 col1 FROM tab0 AS cor0
----
-261
-7081
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9648
SELECT 73 / ( col1 ) * - col0 col1 FROM tab0 AS cor0
----
-261
-7081
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9649
SELECT AVG ( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9649
SELECT AVG ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 / + col0 + - col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9651
SELECT - col1 DIV + col1 AS col0, 86 FROM tab1 cor0
----
-1
86
-1
86
-1
86

skipif mysql # not compatible
query II rowsort label-9651
SELECT - col1 / + col1 AS col0, 86 FROM tab1 cor0
----
-1
86
-1
86
-1
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT + + ( + + ( - COUNT( * ) ) ) * 8 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-9652
SELECT + + ( + + ( - COUNT ( * ) ) ) * 8 FROM tab1 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9653
SELECT CAST( + col1 AS SIGNED ) DIV + 86 - col0 * + + col2 AS col2, 46 AS col1 FROM tab0 AS cor0
----
-705
46
-870
46
-9603
46

skipif mysql # not compatible
query II rowsort label-9653
SELECT CAST ( + col1 AS INTEGER ) / + 86 - col0 * + + col2 AS col2, 46 AS col1 FROM tab0 AS cor0
----
-705
46
-870
46
-9603
46

query I rowsort
SELECT ALL + + col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT DISTINCT MIN( + ( 87 ) ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-9655
SELECT DISTINCT MIN ( + ( 87 ) ) FROM tab1
----
87

query I rowsort
SELECT - + ( 89 ) AS col0 FROM tab0 AS cor0
----
-89
-89
-89

query I rowsort
SELECT + - col2 * + - 62 - - 56 AS col0 FROM tab0 AS cor0
----
2970
6194
676

query I rowsort
SELECT DISTINCT col2 + col0 AS col0 FROM tab0 cor0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9659
SELECT ALL 72 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL 72 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT - MIN( DISTINCT 81 ) + COUNT( * ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-9660
SELECT - MIN ( DISTINCT 81 ) + COUNT ( * ) FROM tab0
----
-78

query I rowsort
SELECT - 20 * col1 FROM tab0
----
-1620
-20
-420

query I rowsort
SELECT + col1 + + ( + col0 ) FROM tab1
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9663
SELECT + 17 * col1 + col1 AS col1 FROM tab1 WHERE NOT CAST( col1 AS SIGNED ) BETWEEN + col1 AND col2 - col1
----
846

skipif mysql # not compatible
query I rowsort label-9663
SELECT + 17 * col1 + col1 AS col1 FROM tab1 WHERE NOT CAST ( col1 AS INTEGER ) BETWEEN + col1 AND col2 - col1
----
846

query I rowsort
SELECT ALL + 79 + + 4 AS col0 FROM tab2
----
83
83
83

query I rowsort
SELECT 63 * col0 FROM tab0 WHERE ( NULL ) <= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 60 IN ( + 17 * + col0 )
----

query I rowsort
SELECT col0 + 25 FROM tab1
----
110
116
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 16 * col2 col1 FROM tab0
----
1584
160
752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) * + col2 col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9670
SELECT + CAST( NULL AS SIGNED ) * 96 + - col1 * + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9670
SELECT + CAST ( NULL AS INTEGER ) * 96 + - col1 * + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9671
SELECT - CAST( NULL AS SIGNED ) * 48 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9671
SELECT - CAST ( NULL AS INTEGER ) * 48 col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 >= 24 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 45 * + col1 FROM tab2
----
-2295
-3015
-3465

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col0 ) >= ( NULL )
----

query I rowsort
SELECT col0 + col2 * 60 FROM tab1
----
3625
4171
5811

query III rowsort
SELECT * FROM tab0 WHERE ( - 72 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - col1 AND ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9678
SELECT - CAST( + col2 AS SIGNED ) + - col0 * + col2 AS col2 FROM tab0
----
-752
-880
-9702

skipif mysql # not compatible
query I rowsort label-9678
SELECT - CAST ( + col2 AS INTEGER ) + - col0 * + col2 AS col2 FROM tab0
----
-752
-880
-9702

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 64 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9680
SELECT ALL + AVG ( DISTINCT CAST( NULL AS SIGNED ) ) / - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL + AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + 7 )
----

query I rowsort
SELECT col2 * + 74 - 21 FROM tab1
----
4345
5011
7083

query I rowsort
SELECT + 16 + col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
21
30
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9684
SELECT - ( MIN( col2 ) ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9684
SELECT - ( MIN ( col2 ) ) AS col2 FROM tab0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-9685
SELECT ALL + col1 DIV 8 FROM tab0
----
0
10
2

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL + col1 / 8 FROM tab0
----
0
10
2

query I rowsort
SELECT ALL - 91 - col2 * + col2 FROM tab2
----
-1691
-3455
-620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9687
SELECT DISTINCT - MIN( DISTINCT + col0 ) FROM tab2 WHERE + CAST( NULL AS SIGNED ) * - col2 NOT BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9687
SELECT DISTINCT - MIN ( DISTINCT + col0 ) FROM tab2 WHERE + CAST ( NULL AS INTEGER ) * - col2 NOT BETWEEN ( NULL ) AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9688
SELECT - col2 DIV + 50 AS col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9688
SELECT - col2 / + 50 AS col2 FROM tab1
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9689
SELECT + col2 DIV ( col0 ) FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9689
SELECT + col2 / ( col0 ) FROM tab1
----
0
0
1

query I rowsort
SELECT ALL + col1 * col2 - 16 AS col1 FROM tab1
----
1328
279
3180

onlyif mysql # DIV for integer division: 
query I rowsort label-9691
SELECT - 84 DIV - col1 FROM tab0
----
1
4
84

skipif mysql # not compatible
query I rowsort label-9691
SELECT - 84 / - col1 FROM tab0
----
1
4
84

onlyif mysql # DIV for integer division: 
query I rowsort label-9692
SELECT - col0 DIV - 85 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9692
SELECT - col0 / - 85 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> 53
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN 42 + 97 AND col0 + 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9695
SELECT DISTINCT - SUM( - 70 ) FROM tab2 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-9695
SELECT DISTINCT - SUM ( - 70 ) FROM tab2 AS cor0
----
210

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 73 * + col0 + col2 / col0 = - col1 * - col2 + 77
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT ( col0 * + col0 ) IS NULL
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 BETWEEN ( col1 * col0 ) AND col2
----

query I rowsort
SELECT 15 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col1 FROM tab2
----
94
94
94

query I rowsort
SELECT DISTINCT - 22 FROM tab0 WHERE NOT NULL NOT IN ( col1 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT MAX( ALL + 8 ) AS col1 FROM tab2 WHERE NOT NULL >= - 46 - + 68
----
NULL

skipif mysql # not compatible
query I rowsort label-9702
SELECT MAX ( ALL + 8 ) AS col1 FROM tab2 WHERE NOT NULL >= - 46 - + 68
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 * - col1 col0 FROM tab1
----
-1316
-4418
-470

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9705
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( col2 * + CAST( NULL AS SIGNED ) ) AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-9705
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( col2 * + CAST ( NULL AS INTEGER ) ) AND - col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( col2 ) - - col0 ) NOT BETWEEN NULL AND ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 51 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT DISTINCT - SUM( ALL + 46 ) AS col1 FROM tab1 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-9709
SELECT DISTINCT - SUM ( ALL + 46 ) AS col1 FROM tab1 AS cor0
----
-138

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 < 89
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT + MIN( col2 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-9711
SELECT + MIN ( col2 ) FROM tab2 cor0
----
23

query I rowsort
SELECT DISTINCT - ( 49 ) AS col1 FROM tab0 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT + MAX( ALL - col0 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9713
SELECT + MAX ( ALL - col0 ) AS col2 FROM tab1
----
-51

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND col2
----

query I rowsort
SELECT ALL - 48 AS col2 FROM tab0 WHERE NOT col0 + + col0 IS NULL
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT ALL + MIN( ALL + - col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-9716
SELECT ALL + MIN ( ALL + - col1 ) AS col2 FROM tab1
----
-47

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE 68 IS NOT NULL
----
59
68
96

query I rowsort
SELECT ( - - 2 ) FROM tab0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9719
SELECT + MIN( 47 ) AS col1 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-9719
SELECT + MIN ( 47 ) AS col1 FROM tab2
----
47

query I rowsort
SELECT DISTINCT col1 + - col0 * col2 AS col0 FROM tab0 WHERE col0 * + 26 IN ( col0 * 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT + COUNT( * ) + - 48 col2 FROM tab0
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9721
SELECT + COUNT ( * ) + - 48 col2 FROM tab0
----
-45

query I rowsort
SELECT + col1 + ( - col1 ) + + 61 * + col1 AS col0 FROM tab2
----
3111
4087
4697

query I rowsort
SELECT - - col0 + + + col2 * col1 FROM tab2 AS cor0
----
1219
3144
3961

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> 85 * col1
----

query I rowsort
SELECT + col1 + - col2 FROM tab1 AS cor0 WHERE ( NULL ) IN ( 4 * - 35 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 69 * col2 + - 41 ) IN ( + 8 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9727
SELECT DISTINCT - MAX( + col2 ) + 83 col0 FROM tab0 cor0
----
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9727
SELECT DISTINCT - MAX ( + col2 ) + 83 col0 FROM tab0 cor0
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * col0 col1 FROM tab2 AS cor0 WHERE NOT + col0 + - col2 IS NULL
----
1058
2560
4350

query I rowsort
SELECT + + col2 * + + 81 AS col2 FROM tab2 AS cor0
----
1863
3240
4698

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 13 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT - 25 * + col1 AS col0 FROM tab0
----
-2025
-25
-525

query I rowsort
SELECT ALL + col0 * - col1 AS col0 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT DISTINCT + SUM( + - col0 ) + + - 25 * COUNT( * ) AS col0 FROM tab0
----
-274

skipif mysql # not compatible
query I rowsort label-9734
SELECT DISTINCT + SUM ( + - col0 ) + + - 25 * COUNT ( * ) AS col0 FROM tab0
----
-274

query I rowsort
SELECT DISTINCT + 65 AS col2 FROM tab1, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9736
SELECT - 58 * COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - 28 >= ( - + ( - col0 ) + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9736
SELECT - 58 * COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - 28 >= ( - + ( - col0 ) + + col1 )
----
0

query I rowsort
SELECT 43 AS col0 FROM tab1 AS cor0 WHERE ( 17 - + col2 ) IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 * - + col0 NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL - col0 - 91 * - col0 * - col2 FROM tab1 AS cor0
----
-445587
-456450
-563199

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT + + COUNT( * ) FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9740
SELECT + + COUNT ( * ) FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT COUNT( * ) * + - 71 + - 97 FROM tab2 AS cor0
----
-310

skipif mysql # not compatible
query I rowsort label-9741
SELECT COUNT ( * ) * + - 71 + - 97 FROM tab2 AS cor0
----
-310

onlyif mysql # DIV for integer division: 
query I rowsort label-9742
SELECT - col2 DIV col1 + + - 23 - + ( col1 ) * col2 AS col2 FROM tab2 AS cor0
----
-1196
-3103
-3909

skipif mysql # not compatible
query I rowsort label-9742
SELECT - col2 / col1 + + - 23 - + ( col1 ) * col2 AS col2 FROM tab2 AS cor0
----
-1196
-3103
-3909

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9743
SELECT ALL - MIN( ALL - 3 ) AS col0 FROM tab2 WHERE - col1 + - CAST( NULL AS SIGNED ) BETWEEN col2 * 98 AND ( + 46 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL - MIN ( ALL - 3 ) AS col0 FROM tab2 WHERE - col1 + - CAST ( NULL AS INTEGER ) BETWEEN col2 * 98 AND ( + 46 )
----
NULL

query I rowsort
SELECT + 49 * - col0 + + 44 * col0 AS col1 FROM tab2
----
-230
-320
-375

query II rowsort
SELECT + 32 + + col0, - 7 - col0 AS col1 FROM tab2
----
107
-82
78
-53
96
-71

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9746
SELECT * FROM tab0 WHERE - col1 + + - 30 / CAST( NULL AS DECIMAL ) <> ( + ( + col2 ) ) + - col0
----

skipif mysql # not compatible
query III rowsort label-9746
SELECT * FROM tab0 WHERE - col1 + + - 30 / CAST ( NULL AS REAL ) <> ( + ( + col2 ) ) + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT + 45 + 27 * MAX( DISTINCT + - col0 ) col0 FROM tab1
----
-1332

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9747
SELECT + 45 + 27 * MAX ( DISTINCT + - col0 ) col0 FROM tab1
----
-1332

query I rowsort
SELECT ALL col0 * + - 90 * 92 AS col0 FROM tab0
----
-124200
-720360
-803160

query I rowsort
SELECT DISTINCT col2 - 4 * + col0 AS col0 FROM tab1
----
-108
-281
-296

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 38 col2 FROM tab0 WHERE NOT ( + 43 * + col2 * col0 + col0 ) < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 89 >= NULL
----

query I rowsort
SELECT ALL col2 * - - 61 FROM tab0
----
2867
6039
610

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 77 = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 NOT BETWEEN ( NULL ) AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9755
SELECT ALL + + 76 DIV + + col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9755
SELECT ALL + + 76 / + + col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT ALL - - 88 * - - 58 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
5104
5104
5104

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + - - col1 + col2 * - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE ( ( - + col2 ) ) <= + 15
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9759
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL NOT IN ( col2 + 60 )
----
0

skipif mysql # not compatible
query I rowsort label-9759
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL NOT IN ( col2 + 60 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9760
SELECT DISTINCT - 9 DIV col2 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9760
SELECT DISTINCT - 9 / col2 AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9761
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) * - col1 * - col2 ) IN ( + 33 )
----

skipif mysql # not compatible
query III rowsort label-9761
SELECT * FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) * - col1 * - col2 ) IN ( + 33 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9762
SELECT ALL + MAX( ( 87 ) ) DIV - 68 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9762
SELECT ALL + MAX ( ( 87 ) ) / - 68 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9763
SELECT 94 AS col0 FROM tab2 AS cor0 WHERE NOT - 61 NOT IN ( + CAST( + 17 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9763
SELECT 94 AS col0 FROM tab2 AS cor0 WHERE NOT - 61 NOT IN ( + CAST ( + 17 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - col0 * + + 80 FROM tab2 cor0
----
-3680
-5120
-6000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9766
SELECT - - MIN( DISTINCT + 50 ) * COUNT( * ) + - ( - - 23 ) + 2 DIV 59 * 97 FROM tab1 cor0
----
127

skipif mysql # not compatible
query I rowsort label-9766
SELECT - - MIN ( DISTINCT + 50 ) * COUNT ( * ) + - ( - - 23 ) + 2 / 59 * 97 FROM tab1 cor0
----
127

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT + 15 - + col0 / - + col2 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9768
SELECT - COUNT( * ) DIV - ( CAST( MIN( 11 ) AS SIGNED ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9768
SELECT - COUNT ( * ) / - ( CAST ( MIN ( 11 ) AS INTEGER ) ) AS col0 FROM tab0
----
0

query II rowsort
SELECT ALL + 67, + col2 AS col0 FROM tab0
----
67
10
67
47
67
99

query III rowsort
SELECT * FROM tab1 WHERE 16 > NULL
----

query I rowsort
SELECT + + 97 FROM tab1 WHERE ( - col1 * col1 ) NOT BETWEEN NULL AND + col0
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - col2 + col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9773
SELECT ALL * FROM tab1 WHERE + 9 * - + CAST( NULL AS SIGNED ) + + 71 < col1
----

skipif mysql # not compatible
query III rowsort label-9773
SELECT ALL * FROM tab1 WHERE + 9 * - + CAST ( NULL AS INTEGER ) + + 71 < col1
----

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN ( - - col0 + - col1 ) AND + col2
----

query I rowsort
SELECT DISTINCT 22 + 46 FROM tab0
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 13 col0, - col1 * - col1 FROM tab1
----
13
196
13
2209
13
25

query I rowsort
SELECT + col0 AS col0 FROM tab2 WHERE ( + 79 * + col0 ) NOT IN ( + 74 )
----
46
64
75

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN ( col2 ) AND col2 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 94 col1, col2 + col1 AS col0 FROM tab1 AS cor0
----
-94
110
-94
115
-94
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9780
SELECT ALL 57 + 60 AS col1, - ( - ( - + CAST( col2 AS SIGNED ) ) ) AS col1 FROM tab0 AS cor0
----
117
-10
117
-47
117
-99

skipif mysql # not compatible
query II rowsort label-9780
SELECT ALL 57 + 60 AS col1, - ( - ( - + CAST ( col2 AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0
----
117
-10
117
-47
117
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, - ( - 77 ) + + col2 AS col0 FROM tab1 AS cor0
----
59
136
68
145
96
173

query I rowsort
SELECT ALL + + 23 AS col2 FROM tab2 cor0
----
23
23
23

query I rowsort
SELECT + AVG ( - col0 ) FROM tab0 WHERE NULL <> NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT DISTINCT MIN( + ( col0 ) ) + + + MAX( ( 74 ) ) FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-9784
SELECT DISTINCT MIN ( + ( col0 ) ) + + + MAX ( ( 74 ) ) FROM tab2
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-9785
SELECT + 17 DIV - 37 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-9785
SELECT + 17 / - 37 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 16 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col1 * + col2 + - col1 * - 34 AS col0 FROM tab0 AS cor0
----
133
6561
924

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9788
SELECT + ( + - 38 ), + col2 * - CAST( col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-38
-210
-38
-3807
-38
-99

skipif mysql # not compatible
query II rowsort label-9788
SELECT + ( + - 38 ), + col2 * - CAST ( col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-38
-210
-38
-3807
-38
-99

query I rowsort
SELECT DISTINCT - col2 + - col0 + - col1 FROM tab0 AS cor0
----
-118
-143
-197

query I rowsort
SELECT ALL + 18 + + ( - ( + col1 ) ) FROM tab0 AS cor0
----
-3
-63
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9791
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9791
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
NULL
3

query I rowsort
SELECT - col1 * - col1 FROM tab1 WHERE NOT + - col1 IS NULL
----
196
2209
25

query I rowsort
SELECT ALL col0 * + 96 AS col0 FROM tab1
----
4896
8160
8736

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT NULL > + ( + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9795
SELECT 80 DIV ( - ( - ( + + CAST( ( - COUNT( * ) ) AS SIGNED ) ) ) ) AS col1 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-9795
SELECT 80 / ( - ( - ( + + CAST ( ( - COUNT ( * ) ) AS INTEGER ) ) ) ) AS col1 FROM tab0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-9796
SELECT col2 DIV - + col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9796
SELECT col2 / - + col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT + + COUNT( ALL col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9797
SELECT + + COUNT ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9798
SELECT ALL + CAST( - 17 AS SIGNED ) FROM tab2 cor0
----
-17
-17
-17

skipif mysql # not compatible
query I rowsort label-9798
SELECT ALL + CAST ( - 17 AS INTEGER ) FROM tab2 cor0
----
-17
-17
-17

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 72 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 81 * 64 AS col1 FROM tab2
----
-5184

query I rowsort
SELECT - col2 * - col1 * + col2 + + 38 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9802
SELECT DISTINCT + + col1 + - + col2 DIV + col2 FROM tab0 AS cor0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-9802
SELECT DISTINCT + + col1 + - + col2 / + col2 FROM tab0 AS cor0
----
0
20
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9803
SELECT + CAST( + 83 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
83
83
83

skipif mysql # not compatible
query I rowsort label-9803
SELECT + CAST ( + 83 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
83
83
83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9804
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN ( col2 + + + 24 + - ( - + col0 ) ) AND + col0 * + col0
----

skipif mysql # not compatible
query III rowsort label-9804
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN ( col2 + + + 24 + - ( - + col0 ) ) AND + col0 * + col0
----

query I rowsort
SELECT DISTINCT + col0 * - col1 FROM tab2 AS cor0 WHERE NOT NULL < 78 - - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9806
SELECT ALL + 65 DIV - col0 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9806
SELECT ALL + 65 / - col0 AS col0 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9807
SELECT + CAST( NULL AS DECIMAL ) / - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9807
SELECT + CAST ( NULL AS REAL ) / - col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 14 * 26 col0 FROM tab2
----
364

query III rowsort
SELECT * FROM tab0 WHERE + + 45 + - col1 - + 46 IN ( - col1 )
----

query I rowsort
SELECT col2 + + - 85 FROM tab1
----
-17
-26
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT DISTINCT - COUNT( * ) + + 94 + + 21 col0 FROM tab2
----
112

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9811
SELECT DISTINCT - COUNT ( * ) + + 94 + + 21 col0 FROM tab2
----
112

query I rowsort
SELECT col1 + - ( - + col1 ) FROM tab1
----
10
28
94

query I rowsort
SELECT ALL + - 18 + + col2 * + col2 FROM tab1 cor0
----
3463
4606
9198

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9814
SELECT * FROM tab2 AS cor0 WHERE ( + col2 ) NOT BETWEEN + 97 AND + - 15 + CAST( col0 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9814
SELECT * FROM tab2 AS cor0 WHERE ( + col2 ) NOT BETWEEN + 97 AND + - 15 + CAST ( col0 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE - + col2 * - 58 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9816
SELECT + MAX( col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9816
SELECT + MAX ( col1 ) AS col2 FROM tab1 AS cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9818
SELECT COUNT( + - col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9818
SELECT COUNT ( + - col1 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL col2 * - ( + col2 ) AS col0 FROM tab0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9820
SELECT CAST( NULL AS SIGNED ) * - - MAX( - col0 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9820
SELECT CAST ( NULL AS INTEGER ) * - - MAX ( - col0 ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT 77 FROM tab2 WHERE NOT ( NOT + col2 * - col1 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < col1 * - - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 * col1 + - 72 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 40 NOT BETWEEN + col2 AND + + col2 - col0
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL BETWEEN + col0 / - col0 AND - ( 64 ) * + - 96
----

query I rowsort
SELECT ALL - - 44 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT 8 + + 67 FROM tab0 cor0
----
75
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9828
SELECT - - col2 DIV col2 * col0 + 58 * + col2 FROM tab1 AS cor0
----
3507
4035
5619

skipif mysql # not compatible
query I rowsort label-9828
SELECT - - col2 / col2 * col0 + 58 * + col2 FROM tab1 AS cor0
----
3507
4035
5619

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT ALL + COUNT( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL + COUNT ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + 96 * - col0 + col0 + - col2 - + + col0 + + 39 AS col1 FROM tab0 cor0
----
-1448
-8323
-9372

query I rowsort
SELECT 60 + + - col2 FROM tab2 AS cor0
----
2
20
37

query I rowsort
SELECT 61 + + col2 AS col2 FROM tab0 AS cor0
----
108
160
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9833
SELECT DISTINCT + + 49 * - CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-9833
SELECT DISTINCT + + 49 * - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9834
SELECT DISTINCT - + ( - - col1 ) + - + CAST( - - col2 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT col2 IS NULL ) )
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-9834
SELECT DISTINCT - + ( - - col1 ) + - + CAST ( - - col2 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT col2 IS NULL ) )
----
-110
-115
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 * + + col1 * col1 + col2 * + col0 col0 FROM tab1 AS cor0
----
-2648
4112
4915

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9836
SELECT SUM( + 82 ) DIV - + 19 AS col0 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-9836
SELECT SUM ( + 82 ) / - + 19 AS col0 FROM tab0
----
-12

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9837
SELECT ALL + COUNT( * ) DIV - + 95 * + SUM( ALL + col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9837
SELECT ALL + COUNT ( * ) / - + 95 * + SUM ( ALL + col1 ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + - col0 * col1 - - col0, + 73, col2 )
----

query I rowsort
SELECT DISTINCT ( + col2 ) + + col1 FROM tab1
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9840
SELECT 12 / + - CAST( NULL AS SIGNED ) AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-9840
SELECT 12 / + - CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT COUNT( ALL - ( + col2 ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9841
SELECT COUNT ( ALL - ( + col2 ) ) AS col0 FROM tab0
----
3

query II rowsort
SELECT col2 - - col1, - col2 AS col1 FROM tab2 cor0
----
117
-40
125
-58
74
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9843
SELECT ALL + ( - + 47 ) + - - 29 - + + COUNT( * ) DIV + + 84 AS col0 FROM tab1 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL + ( - + 47 ) + - - 29 - + + COUNT ( * ) / + + 84 AS col0 FROM tab1 cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT - COUNT( ALL + 2 ) + + - COUNT( * ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9844
SELECT - COUNT ( ALL + 2 ) + + - COUNT ( * ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 AS cor0 WHERE 76 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT - COUNT( * ) * - + 52 FROM tab2 cor0
----
156

skipif mysql # not compatible
query I rowsort label-9846
SELECT - COUNT ( * ) * - + 52 FROM tab2 cor0
----
156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = 13
----

query I rowsort
SELECT DISTINCT + + col2 FROM tab2 cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - + ( ( + col2 ) ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9850
SELECT + col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( col1, col0, col0 - CAST( - - col2 AS SIGNED ), + + col1, - ( - 68 ) / - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9850
SELECT + col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( col1, col0, col0 - CAST ( - - col2 AS INTEGER ), + + col1, - ( - 68 ) / - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9851
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN - CAST( - + col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9851
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN - CAST ( - + col2 AS INTEGER ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 6 + + col2 - col0 IS NULL
----

query I rowsort
SELECT - 40 AS col0 FROM tab0 WHERE NOT - ( - + 96 ) NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT col1 * - col0 * + 48 AS col1 FROM tab2
----
-112608
-236544
-241200

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9855
SELECT DISTINCT col0, CAST( NULL AS SIGNED ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-9855
SELECT DISTINCT col0, CAST ( NULL AS INTEGER ) FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT - 4 FROM tab1 WHERE NOT 80 + + + 41 IS NULL
----
-4
-4
-4

query I rowsort
SELECT + 2 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col2, ( + 46 ) AS col2 FROM tab1
----
-59
46
-68
46
-96
46

query I rowsort
SELECT ALL - - col2 FROM tab1 WHERE - 24 + - ( + 16 ) < - 37
----
59
68
96

query II rowsort
SELECT + 35, + col2 - - 95 + - 23 * col2 * + - 63 AS col1 FROM tab0
----
35
143645
35
14595
35
68245

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 62 col1, + col1 - - + col1 AS col2 FROM tab2
----
-62
102
-62
134
-62
154

onlyif mysql # DIV for integer division: 
query I rowsort label-9862
SELECT - 88 DIV - col2 + + 94 FROM tab1 AS cor0
----
94
95
95

skipif mysql # not compatible
query I rowsort label-9862
SELECT - 88 / - col2 + + 94 FROM tab1 AS cor0
----
94
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT DISTINCT + COUNT( * ) * MIN( 90 ) + + 23 FROM tab0 AS cor0
----
293

skipif mysql # not compatible
query I rowsort label-9863
SELECT DISTINCT + COUNT ( * ) * MIN ( 90 ) + + 23 FROM tab0 AS cor0
----
293

query I rowsort
SELECT ALL - ( - - col2 ) * col1 AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT + COUNT( * ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9865
SELECT + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9867
SELECT + col2 DIV + CAST( + col2 AS SIGNED ) FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9867
SELECT + col2 / + CAST ( + col2 AS INTEGER ) FROM tab1 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= NULL OR NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9868
SELECT + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= NULL OR NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT col1 + + + ( + 70 ) AS col1 FROM tab2 AS cor0
----
121
137
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9870
SELECT DISTINCT - 86 + - - col0 * - + 72 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + CAST( ( - col2 ) AS SIGNED ) AND + 43 / - col1
----

skipif mysql # not compatible
query I rowsort label-9870
SELECT DISTINCT - 86 + - - col0 * - + 72 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + CAST ( ( - col2 ) AS INTEGER ) AND + 43 / - col1
----

query I rowsort
SELECT DISTINCT - 5 * + - col1 * 84 FROM tab0 AS cor0
----
34020
420
8820

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9872
SELECT ALL + CAST( - 24 AS SIGNED ) + - + COUNT( col0 ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9872
SELECT ALL + CAST ( - 24 AS INTEGER ) + - + COUNT ( col0 ) FROM tab1 AS cor0
----
-27

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT + 0 IS NULL
----
-23
-40
-58

query I rowsort
SELECT + + col2 + col1 + - + col1 + - - col0 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT + col1 + - + 18 + - 22 + + col2 AS col2 FROM tab0
----
-9
60
88

query I rowsort
SELECT col1 * col1 + 40 AS col0 FROM tab0
----
41
481
6601

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT ALL 79 + COUNT( * ) AS col1 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-9877
SELECT ALL 79 + COUNT ( * ) AS col1 FROM tab2
----
82

query I rowsort
SELECT ALL + 93 + + col2 AS col1 FROM tab1
----
152
161
189

query I rowsort
SELECT ALL - ( - + 90 ) FROM tab2
----
90
90
90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 71 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT COUNT( + + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9881
SELECT COUNT ( + + col2 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT - - col0 AS col2, 70 - + 63 FROM tab2 cor0
----
46
7
64
7
75
7

query II rowsort
SELECT ALL - 32 + ( + col2 ) AS col0, col1 AS col1 FROM tab1 AS cor0
----
27
5
36
47
64
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT + + COUNT( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9884
SELECT + + COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-9885
SELECT DISTINCT MAX( ALL - + col0 ) AS col0, COUNT( * ) AS col1 FROM tab1
----
-51
3

skipif mysql # not compatible
query II rowsort label-9885
SELECT DISTINCT MAX ( ALL - + col0 ) AS col0, COUNT ( * ) AS col1 FROM tab1
----
-51
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT DISTINCT - COUNT( DISTINCT ( 14 ) ) * + COUNT( * ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9886
SELECT DISTINCT - COUNT ( DISTINCT ( 14 ) ) * + COUNT ( * ) AS col2 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-9887
SELECT ALL 3 DIV + 78 AS col0, col1 + col0 AS col0 FROM tab1 AS cor0
----
0
138
0
65
0
90

skipif mysql # not compatible
query II rowsort label-9887
SELECT ALL 3 / + 78 AS col0, col1 + col0 AS col0 FROM tab1 AS cor0
----
0
138
0
65
0
90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9888
SELECT 76 DIV - + col2 col2, col2 DIV + 5 - + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1
NULL
-1
NULL
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9888
SELECT 76 / - + col2 col2, col2 / + 5 - + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-1
NULL
-1
NULL
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT DISTINCT 40 * - - COUNT( * ) AS col1 FROM tab1 cor0
----
120

skipif mysql # not compatible
query I rowsort label-9889
SELECT DISTINCT 40 * - - COUNT ( * ) AS col1 FROM tab1 cor0
----
120

onlyif mysql # DIV for integer division: 
query II rowsort label-9890
SELECT DISTINCT + col2 DIV + col0 AS col1, + col2 * - ( col0 ) - + col1 FROM tab0 AS cor0
----
0
-891
1
-9604
3
-786

skipif mysql # not compatible
query II rowsort label-9890
SELECT DISTINCT + col2 / + col0 AS col1, + col2 * - ( col0 ) - + col1 FROM tab0 AS cor0
----
0
-891
1
-9604
3
-786

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9891
SELECT 12 * + + CAST( NULL AS SIGNED ) + - 26 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9891
SELECT 12 * + + CAST ( NULL AS INTEGER ) + - 26 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 IN ( + 97 * 19 + ( - + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 * ( - col2 ) AS col2 FROM tab0
----
100
2209
9801

query I rowsort
SELECT - col1 + col1 FROM tab2 WHERE NOT NULL NOT IN ( - - col0 * - + col2 + - col1 - - 81 - - col2 * - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( 17 )
----

query I rowsort
SELECT col2 * + + 36 FROM tab0 AS cor0
----
1692
3564
360

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT DISTINCT + SUM( ( - - col1 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9897
SELECT DISTINCT + SUM ( ( - - col1 ) ) FROM tab1
----
66

query I rowsort
SELECT - col0 + 76 * - col2 FROM tab0
----
-3587
-7621
-847

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT DISTINCT 3 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9899
SELECT DISTINCT 3 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9900
SELECT ALL - col2 + - 29 DIV - 27 FROM tab0 AS cor0
----
-46
-9
-98

skipif mysql # not compatible
query I rowsort label-9900
SELECT ALL - col2 + - 29 / - 27 FROM tab0 AS cor0
----
-46
-9
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 8 col2 FROM tab1 AS cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query II rowsort label-9902
SELECT ALL 13 AS col2, COUNT( * ) FROM tab0 AS cor0
----
13
3

skipif mysql # not compatible
query II rowsort label-9902
SELECT ALL 13 AS col2, COUNT ( * ) FROM tab0 AS cor0
----
13
3

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN - - 8 AND + col2
----

query I rowsort
SELECT DISTINCT ( + col0 ) * - - col0 * + 43 + + 58 AS col1 FROM tab0 AS cor0
----
325525
404645
9733

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9905
SELECT ALL + + MIN( - 65 ) AS col1, + COUNT( * ) DIV - + 91 FROM tab0 AS cor0
----
-65
0

skipif mysql # not compatible
query II rowsort label-9905
SELECT ALL + + MIN ( - 65 ) AS col1, + COUNT ( * ) / - + 91 FROM tab0 AS cor0
----
-65
0

query II rowsort
SELECT + + 24, + col0 FROM tab2 AS cor0
----
24
46
24
64
24
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT DISTINCT + COUNT( * ) - - ( ( - COUNT( * ) ) ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9907
SELECT DISTINCT + COUNT ( * ) - - ( ( - COUNT ( * ) ) ) AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9908
SELECT ALL MIN( ALL + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL MIN ( ALL + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + col1 - - col0 + col1 AS col0 FROM tab0
----
129
177
99

query I rowsort
SELECT 70 + col1 AS col0 FROM tab0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT col1 - + col0 - - 22 AS col1 FROM tab1
----
-15
-22
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + col1 * - - col2 + + col1 col2 FROM tab2
----
-1071
-2926
-3752

onlyif mysql # aggregate syntax: 
query I rowsort label-9913
SELECT DISTINCT + COUNT( * ) + + MAX( DISTINCT + 58 ) AS col0 FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT + COUNT ( * ) + + MAX ( DISTINCT + 58 ) AS col0 FROM tab0 AS cor0
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9914
SELECT DISTINCT 38 * + - MAX( ALL + CAST( NULL AS SIGNED ) ) col0 FROM tab0 WHERE - - col2 * + col0 * - col2 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9914
SELECT DISTINCT 38 * + - MAX ( ALL + CAST ( NULL AS INTEGER ) ) col0 FROM tab0 WHERE - - col2 * + col0 * - col2 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9915
SELECT col2 DIV - - col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9915
SELECT col2 / - - col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - - col2 * + 96 FROM tab1 AS cor0
----
5664
6528
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT DISTINCT SUM( ALL - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9917
SELECT DISTINCT SUM ( ALL - col1 ) FROM tab2 AS cor0
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-9918
SELECT ALL 9 DIV - col2 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9918
SELECT ALL 9 / - col2 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT + ( + - COUNT( * ) ) FROM tab0, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9919
SELECT + ( + - COUNT ( * ) ) FROM tab0, tab2 AS cor0
----
-9

query I rowsort
SELECT 55 + - 68 FROM tab1, tab0 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 col2 FROM tab1
----
32
32
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + - col2 col1 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT DISTINCT - 18 AS col1 FROM tab0 cor0
----
-18

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 / + col1 + 79 BETWEEN + + col1 AND - col2 * - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0, - col0, + + 51 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - + ( col1 ) - - col2 + + col2, + col2 )
----

query I rowsort
SELECT DISTINCT - - 16 AS col2 FROM tab0 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT + COUNT( * ) + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-9928
SELECT + COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
18

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 - + 32 * + 80 IN ( 55 / - 66 + + col2, 32 * + col2 )
----

query I rowsort
SELECT ALL + 10 FROM tab0 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9931
SELECT DISTINCT + - COUNT( * ) + + + 0 AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9931
SELECT DISTINCT + - COUNT ( * ) + + + 0 AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE NULL <> + 39
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9933
SELECT ALL + - CAST( NULL AS SIGNED ) - col2 / - + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL + - CAST ( NULL AS INTEGER ) - col2 / - + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 57 + + col2 AS col0 FROM tab2 AS cor0
----
-17
-34
1

query I rowsort
SELECT DISTINCT - + col0 + - col1 + ( + + 49 ) AS col2 FROM tab0 cor0
----
-47
-49
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9936
SELECT DISTINCT - COUNT( * ) - ( 46 ) AS col0 FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-9936
SELECT DISTINCT - COUNT ( * ) - ( 46 ) AS col0 FROM tab1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT COUNT( * ) + + 32 AS col1 FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-9937
SELECT COUNT ( * ) + + 32 AS col1 FROM tab2
----
35

query I rowsort
SELECT ALL col0 - + col0 * col2 AS col0 FROM tab0
----
-690
-783
-9506

query I rowsort
SELECT - col2 * - - 8 * + 75 FROM tab2
----
-13800
-24000
-34800

query I rowsort
SELECT + + 32 FROM tab2 WHERE + - col0 / + + ( + col0 ) IS NULL
----

query I rowsort
SELECT ( col2 ) * + - 55 AS col1 FROM tab0
----
-2585
-5445
-550

onlyif mysql # DIV for integer division: 
query I rowsort label-9942
SELECT DISTINCT - 12 DIV ( + + col1 ) AS col1 FROM tab1
----
-2
0

skipif mysql # not compatible
query I rowsort label-9942
SELECT DISTINCT - 12 / ( + + col1 ) AS col1 FROM tab1
----
-2
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 17 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, + 96 * + - col2 * + 65 * + col2 AS col0 FROM tab1 AS cor0
----
-14
-57507840
-47
-28853760
-5
-21721440

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT DISTINCT - SUM( DISTINCT - col0 ) col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9945
SELECT DISTINCT - SUM ( DISTINCT - col0 ) col2 FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9946
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) + - col2 <> NULL
----

skipif mysql # not compatible
query III rowsort label-9946
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) + - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9947
SELECT DISTINCT - 64, - 67 + - + COUNT( * ) col2 FROM tab0 AS cor0
----
-64
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9947
SELECT DISTINCT - 64, - 67 + - + COUNT ( * ) col2 FROM tab0 AS cor0
----
-64
-70

query I rowsort
SELECT + + 71 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query II rowsort
SELECT ALL col2, col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
21
47
81
99
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - 38 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * 69 FROM tab2 AS cor0
----
-1587
-2760
-4002

query I rowsort
SELECT DISTINCT - 17 AS col0 FROM tab0 AS cor0
----
-17

query I rowsort
SELECT + col1 * + col2 * - ( - 62 ) AS col2 FROM tab0 AS cor0
----
13020
236034
6138

query I rowsort
SELECT - + col2 * + ( + 58 ) + col2 * - 35 FROM tab0 cor0
----
-4371
-9207
-930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9955
SELECT + CAST( + 48 AS SIGNED ) FROM tab2 cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-9955
SELECT + CAST ( + 48 AS INTEGER ) FROM tab2 cor0
----
48
48
48

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 + 29 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 86 * - 90 FROM tab0
----
-7740

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT DISTINCT - COUNT( - - ( - col0 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9958
SELECT DISTINCT - COUNT ( - - ( - col0 ) ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9959
SELECT - 52 AS col1, + CAST( NULL AS SIGNED ) + 42 * - col2 + + - 95 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-52
NULL
-52
NULL
-52
NULL

skipif mysql # not compatible
query II rowsort label-9959
SELECT - 52 AS col1, + CAST ( NULL AS INTEGER ) + 42 * - col2 + + - 95 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-52
NULL
-52
NULL
-52
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT 74 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0 AS col2, 1 FROM tab0
----
15
1
87
1
97
1

query I rowsort
SELECT ALL + 82 + + col1 AS col2 FROM tab2 AS cor0
----
133
149
159

query I rowsort
SELECT DISTINCT - col2 + - + col2 FROM tab1 AS cor0
----
-118
-136
-192

query II rowsort
SELECT ALL 5 AS col1, col1 + 45 + + + col1 * - + 87 + + col1 FROM tab2 AS cor0
----
5
-4290
5
-5650
5
-6500

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT DISTINCT - - COUNT( * ) + 84 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-9965
SELECT DISTINCT - - COUNT ( * ) + 84 FROM tab0 AS cor0
----
87

query I rowsort
SELECT - 6 * 22 AS col2 FROM tab1 AS cor0
----
-132
-132
-132

query I rowsort
SELECT 24 + - 40 FROM tab2 cor0
----
-16
-16
-16

query I rowsort
SELECT 1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT ALL - col0 + - - 74 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT ALL - COUNT( * ) + + 90 col2 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9970
SELECT ALL - COUNT ( * ) + + 90 col2 FROM tab0 AS cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9971
SELECT ALL + + col0 * + - col1 + - - CAST( NULL AS SIGNED ) * - 65 * + 79, + 84 col0 FROM tab1 AS cor0 WHERE col1 - - col1 >= - col0
----
NULL
84
NULL
84
NULL
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9971
SELECT ALL + + col0 * + - col1 + - - CAST ( NULL AS INTEGER ) * - 65 * + 79, + 84 col0 FROM tab1 AS cor0 WHERE col1 - - col1 >= - col0
----
NULL
84
NULL
84
NULL
84

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + + - col2 >= col1
----

query I rowsort
SELECT + 64 AS col1 FROM tab2 cor0
----
64
64
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9974
SELECT ALL - - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL - - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 - + col0 + col2 col2 FROM tab2 AS cor0 WHERE NOT + col0 < + col1
----
5608

query II rowsort
SELECT DISTINCT + col1 - + 94, col1 + + 98 * - - col2 + - + 17 AS col1 FROM tab2 AS cor0
----
-17
3980
-27
5734
-43
2288

query I rowsort
SELECT - col1 - + - col2 AS col0 FROM tab1
----
21
54
82

query II rowsort
SELECT + col2 * + 81 - - + col1, col1 AS col0 FROM tab1
----
4784
5
5555
47
7790
14

query I rowsort
SELECT ALL ( - col2 ) * - + col0 AS col1 FROM tab0
----
705
870
9603

query I rowsort
SELECT col0 * col0 * - - 49 AS col2 FROM tab0
----
11025
370881
461041

onlyif mysql # aggregate syntax: 
query II rowsort label-9981
SELECT ALL - 53, + MIN( ALL - col2 ) col1 FROM tab1 AS cor0
----
-53
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9981
SELECT ALL - 53, + MIN ( ALL - col2 ) col1 FROM tab1 AS cor0
----
-53
-96

query I rowsort
SELECT DISTINCT 89 AS col2 FROM tab1 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query II rowsort label-9983
SELECT ALL + + 93 col1, MAX( DISTINCT 60 ) + + ( + 26 ) FROM tab2 AS cor0
----
93
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9983
SELECT ALL + + 93 col1, MAX ( DISTINCT 60 ) + + ( + 26 ) FROM tab2 AS cor0
----
93
86

query I rowsort
SELECT ALL - + col2 FROM tab2 AS cor0 WHERE 71 + + col1 IS NULL
----

query II rowsort
SELECT 36, col1 FROM tab0
----
36
1
36
21
36
81

query II rowsort
SELECT DISTINCT col2, col2 * col1 FROM tab1
----
59
295
68
3196
96
1344

query I rowsort
SELECT col2 + + col0 AS col0 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT col1 * - 75 FROM tab1
----
-1050
-3525
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT + 39 * + ( - + COUNT( * ) ) AS col1 FROM tab0 cor0
----
-117

skipif mysql # not compatible
query I rowsort label-9989
SELECT + 39 * + ( - + COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-117

query I rowsort
SELECT ALL + col2 * + + ( - col2 ) - - 72 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 + 89 - - ( 48 ) > - + 67 + - col0
----

query I rowsort
SELECT DISTINCT 90 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9993
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9993
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> CAST ( col2 AS INTEGER )
----

query II rowsort
SELECT DISTINCT col0 AS col1, - col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9995
SELECT - + MIN( 53 ) * - COUNT( * ) * - COUNT( * ), - MIN( DISTINCT - CAST( - - 3 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-477
3

skipif mysql # not compatible
query II rowsort label-9995
SELECT - + MIN ( 53 ) * - COUNT ( * ) * - COUNT ( * ), - MIN ( DISTINCT - CAST ( - - 3 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-477
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9996
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NOT - CAST( NULL AS DECIMAL ) IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9996
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NOT - CAST ( NULL AS REAL ) IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 * - - 34 col2 FROM tab2 AS cor0
----
3264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9998
SELECT ALL + SUM( DISTINCT - col2 ) DIV + 75 AS col1 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL + SUM ( DISTINCT - col2 ) / + 75 AS col1 FROM tab1 AS cor0
----
-2

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 38 IS NOT NULL
----

