sqllogictest
Artifact Content
Not logged in

Artifact aae9b346ed2aba2c8334542f8bc07c35f8cccfae:


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