sqllogictest
Artifact Content
Not logged in

Artifact 4647fafea4abd650f72d3bb33a509129520021f7:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT + MAX( 54 ) FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-0
SELECT + MAX ( 54 ) FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2
SELECT DISTINCT + COUNT( col2 ) + + COUNT( * ) FROM tab0 cor0 WHERE NOT - col0 - - col2 BETWEEN + 54 AND NULL
----
6

skipif mysql # not compatible
query I rowsort label-2
SELECT DISTINCT + COUNT ( col2 ) + + COUNT ( * ) FROM tab0 cor0 WHERE NOT - col0 - - col2 BETWEEN + 54 AND NULL
----
6

query I rowsort
SELECT DISTINCT 85 AS col2 FROM tab2 AS cor0
----
85

query I rowsort
SELECT ALL - 12 * - col2 AS col0 FROM tab1
----
1152
708
816

query III rowsort
SELECT * FROM tab2 WHERE NOT - 77 < NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT DISTINCT COUNT( ALL col2 ) * 58 col1 FROM tab2
----
174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7
SELECT DISTINCT COUNT ( ALL col2 ) * 58 col1 FROM tab2
----
174

onlyif mysql # DIV for integer division: 
query I rowsort label-8
SELECT DISTINCT col1 DIV + + col0 * + 44 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8
SELECT DISTINCT col1 / + + col0 * + 44 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9
SELECT ALL - MAX( DISTINCT col0 ) FROM tab1 WHERE NOT - 25 + + 0 IS NULL
----
-91

skipif mysql # not compatible
query I rowsort label-9
SELECT ALL - MAX ( DISTINCT col0 ) FROM tab1 WHERE NOT - 25 + + 0 IS NULL
----
-91

query I rowsort
SELECT DISTINCT 91 FROM tab1 WHERE NOT col2 BETWEEN col2 + + 49 * + col0 AND NULL
----
91

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-12
SELECT DISTINCT - 19 DIV + - COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-12
SELECT DISTINCT - 19 / + - COUNT ( * ) AS col1 FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-13
SELECT * FROM tab0 WHERE NOT 18 NOT BETWEEN ( CAST( + col2 AS SIGNED ) - 52 ) AND - col1 * + col1
----

skipif mysql # not compatible
query III rowsort label-13
SELECT * FROM tab0 WHERE NOT 18 NOT BETWEEN ( CAST ( + col2 AS INTEGER ) - 52 ) AND - col1 * + col1
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - 18 col0 FROM tab1 WHERE - col2 - ( col1 ) IS NULL
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-19
SELECT + + MIN( + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-19
SELECT + + MIN ( + col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL 38 + col0 AS col0 FROM tab1 AS cor0 WHERE col0 BETWEEN NULL AND ( - 56 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-21
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 WHERE NOT + + col0 + col2 * 56 = ( + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-21
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT + + col0 + col2 * 56 = ( + CAST ( NULL AS INTEGER ) )
----
0

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

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

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

query I rowsort
SELECT 49 * + 11 + + col2 FROM tab0 AS cor0
----
549
586
638

query I rowsort
SELECT - ( 23 ) FROM tab1 AS cor0
----
-23
-23
-23

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-27
SELECT - - 2 DIV + col1 + - col2 FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-27
SELECT - - 2 / + col1 + - col2 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-28
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-28
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT + COUNT( * ) + + 91 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-29
SELECT + COUNT ( * ) + + 91 FROM tab2 AS cor0
----
94

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

query I rowsort
SELECT ALL col1 + - col0 * + + ( + + col0 ) AS col2 FROM tab0
----
-144
-7548
-9408

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

onlyif mysql # aggregate syntax: 
query I rowsort label-33
SELECT DISTINCT 48 * - COUNT( * ) + + + COUNT( * ) * 61 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-33
SELECT DISTINCT 48 * - COUNT ( * ) + + + COUNT ( * ) * 61 FROM tab0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-34
SELECT * FROM tab2 WHERE ( + CAST( NULL AS SIGNED ) - + col1 + + col2 / - col1 ) BETWEEN ( col1 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-34
SELECT * FROM tab2 WHERE ( + CAST ( NULL AS INTEGER ) - + col1 + + col2 / - col1 ) BETWEEN ( col1 ) AND ( NULL )
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( + col0 * + - col0 )
----

query I rowsort
SELECT col0 * - 72 AS col2 FROM tab2
----
-3312
-4608
-5400

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

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT - MAX( - + 40 ) AS col0 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-39
SELECT - MAX ( - + 40 ) AS col0 FROM tab0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-40
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 / - - CAST( NULL AS SIGNED ) + + 99 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-40
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 / - - CAST ( NULL AS INTEGER ) + + 99 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-41
SELECT DISTINCT + - col0 * CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-41
SELECT DISTINCT + - col0 * CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
225
7569
9409

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

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

query I rowsort
SELECT DISTINCT + col1 * - - col1 + - col0 * + 33 * - + col1 + + 3 FROM tab0
----
3205
46659
60735

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

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

query I rowsort
SELECT ALL - AVG ( - col2 ) FROM tab2 AS cor0 WHERE ( 84 * col0 * - 82 ) >= + ( - 71 ) + col1
----
NULL

query I rowsort
SELECT ALL + 4 * - col0 * + col2 FROM tab2 AS cor0
----
-10240
-17400
-4232

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

skipif mysql # not compatible
query II rowsort label-48
SELECT DISTINCT - 90 AS col2, - COUNT ( * ) FROM tab2 AS cor0
----
-90
-3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 - + 66 - - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 1 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-53
SELECT ALL - CAST( - + col2 AS SIGNED ) * col2 * + col0 FROM tab0 AS cor0
----
33135
8700
950697

skipif mysql # not compatible
query I rowsort label-53
SELECT ALL - CAST ( - + col2 AS INTEGER ) * col2 * + col0 FROM tab0 AS cor0
----
33135
8700
950697

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

onlyif mysql # DIV for integer division: 
query I rowsort label-55
SELECT + col0 DIV + + 83 AS col2 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-55
SELECT + col0 / + + 83 AS col2 FROM tab0
----
0
1
1

query I rowsort
SELECT ALL + 34 AS col1 FROM tab2 WHERE NOT - col2 * 82 = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-58
SELECT DISTINCT - 19 col2, - COUNT( * ) + + COUNT( * ) AS col2 FROM tab1
----
-19
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-58
SELECT DISTINCT - 19 col2, - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1
----
-19
0

query II rowsort
SELECT DISTINCT + ( + 30 ) AS col2, + 17 FROM tab0
----
30
17

query I rowsort
SELECT - 98 * 56 FROM tab1
----
-5488
-5488
-5488

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( ( - 30 ) ) > ( NULL ) )
----

query II rowsort
SELECT DISTINCT 7, - 0 AS col1 FROM tab0
----
7
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col0 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

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

query II rowsort
SELECT DISTINCT col0 AS col2, col0 * - 15 * - + ( + ( col1 ) ) FROM tab1 AS cor0
----
51
10710
85
6375
91
64155

onlyif mysql # aggregate syntax: 
query I rowsort label-67
SELECT DISTINCT MIN( 12 ) * - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-108

skipif mysql # not compatible
query I rowsort label-67
SELECT DISTINCT MIN ( 12 ) * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-108

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-71
SELECT - MIN( DISTINCT - col2 ) AS col1, 55 FROM tab0 AS cor0
----
99
55

skipif mysql # not compatible
query II rowsort label-71
SELECT - MIN ( DISTINCT - col2 ) AS col1, 55 FROM tab0 AS cor0
----
99
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT DISTINCT - MAX( - col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-73
SELECT DISTINCT - MAX ( - col1 ) FROM tab2
----
51

onlyif mysql # DIV for integer division: 
query II rowsort label-74
SELECT - 92 DIV - col2 + + 27 AS col1, + col1 * - + 48 FROM tab1
----
27
-672
28
-2256
28
-240

skipif mysql # not compatible
query II rowsort label-74
SELECT - 92 / - col2 + + 27 AS col1, + col1 * - + 48 FROM tab1
----
27
-672
28
-2256
28
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-75
SELECT MAX( DISTINCT 27 ) + COUNT( * ) AS col2 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-75
SELECT MAX ( DISTINCT 27 ) + COUNT ( * ) AS col2 FROM tab2
----
30

query III rowsort
SELECT * FROM tab2 WHERE - 91 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE + col0 BETWEEN + 75 - + col1 AND ( + + 91 )
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + col2 - + + col2 + - col0 * col0 + + col2 FROM tab2
----
-2093
-4056
-5567

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 WHERE + - col0 * - 14 + - + col1 + + col2 IS NULL
----

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 WHERE + - col2 * - col0 + - 59 + - 29 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT 54 * + col0 * + col1 + + - col0 AS col2 FROM tab0
----
5141
65595
98571

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-82
SELECT ALL + 28 * ( - + 91 ) * + 68 * + - CAST( NULL AS SIGNED ) + 23 * + + ( + col1 ) + + 26 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-82
SELECT ALL + 28 * ( - + 91 ) * + 68 * + - CAST ( NULL AS INTEGER ) + 23 * + + ( + col1 ) + + 26 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT col0, 41 * + col0 * 53 FROM tab0 AS cor0
----
15
32595
87
189051
97
210781

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-84
SELECT * FROM tab0 AS cor0 WHERE - CAST( - col0 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-84
SELECT * FROM tab0 AS cor0 WHERE - CAST ( - col0 AS INTEGER ) <> NULL
----

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

query I rowsort
SELECT DISTINCT 88 + - col2 + + + col0 AS col2 FROM tab2
----
105
111
112

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT - SUM( + 84 ) * - 33 - 5 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
24943

skipif mysql # not compatible
query I rowsort label-88
SELECT - SUM ( + 84 ) * - 33 - 5 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
24943

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

skipif mysql # not compatible
query II rowsort label-89
SELECT CAST ( - - 91 AS INTEGER ), - CAST ( NULL AS INTEGER ) + - - col1 AS col2 FROM tab2 AS cor0
----
91
NULL
91
NULL
91
NULL

query II rowsort
SELECT DISTINCT - - 73 * - col2 AS col0, + 89 FROM tab1 AS cor0 WHERE 19 * - ( 28 ) >= - - 50
----

onlyif mysql # DIV for integer division: 
query I rowsort label-91
SELECT DISTINCT + - col1 + - + col1 DIV + col2 AS col0 FROM tab0 AS cor0 WHERE - 19 < col2
----
-1
-23
-82

skipif mysql # not compatible
query I rowsort label-91
SELECT DISTINCT + - col1 + - + col1 / + col2 AS col0 FROM tab0 AS cor0 WHERE - 19 < col2
----
-1
-23
-82

query I rowsort
SELECT DISTINCT - col2 * 90 * - 37 FROM tab1 AS cor0
----
196470
226440
319680

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) * 81 FROM tab2 AS cor0
----
-729

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) * 81 FROM tab2 AS cor0
----
-729

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - 52 + - col0 * col0 * - 11 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT - - MIN( ALL col1 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-97
SELECT - - MIN ( ALL col1 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * col2 + - col1 + 53 * + - col0 + 18 * col0 IS NOT NULL
----

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 25 / - + col1 - - - 99 <= ( + - col1 * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * ( - col1 ) AS col0 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-103
SELECT 39 * ( COUNT( * ) ) AS col1 FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-103
SELECT 39 * ( COUNT ( * ) ) AS col1 FROM tab0
----
117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 / ( + col1 ) col2 FROM tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT col1 + + col0 + col2 + - ( col0 ) FROM tab1
----
110
115
64

query I rowsort
SELECT - 47 FROM tab0 WHERE + 26 <> ( - col0 )
----
-47
-47
-47

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-109
SELECT + COUNT( * ) + + COUNT( 22 ) * 4 + + 71 AS col1 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-109
SELECT + COUNT ( * ) + + COUNT ( 22 ) * 4 + + 71 AS col1 FROM tab2 AS cor0
----
86

onlyif mysql # DIV for integer division: 
query I rowsort label-110
SELECT DISTINCT ( col0 ) * col0 DIV 38 AS col2 FROM tab0 AS cor0
----
199
247
5

skipif mysql # not compatible
query I rowsort label-110
SELECT DISTINCT ( col0 ) * col0 / 38 AS col2 FROM tab0 AS cor0
----
199
247
5

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

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

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

query I rowsort
SELECT - col2 + + 76 + - col1 AS col2 FROM tab1 AS cor0
----
-34
-39
12

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 52 + col1 col1, - col0 AS col1 FROM tab1
----
57
-85
66
-51
99
-91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-117
SELECT ALL - 41 + - COUNT( * ) AS col2 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-117
SELECT ALL - 41 + - COUNT ( * ) AS col2 FROM tab1
----
-44

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

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

query I rowsort
SELECT DISTINCT - col1 + 98 + + + 65 * col0 AS col0 FROM tab0
----
5732
6402
992

query I rowsort
SELECT 45 - 3 AS col1 FROM tab2
----
42
42
42

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 43 AS col1, col0 * 79 / + col2 - col2 col2 FROM tab0 WHERE NOT NULL IS NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-127
SELECT CAST ( NULL AS INTEGER ) / COUNT ( * ) * - 1 / - 40 FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT col1 AS col1, 24 FROM tab1
----
14
24
47
24
5
24

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 NOT BETWEEN col1 AND + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT ( ( 38 ) ) * + col0 + + - 43 * col0 * + ( + col0 ) + ( + 2 ) - - col0 / - - col2 NOT IN ( 95 )
----

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE + col0 * + 58 IS NOT NULL
----
10
47
99

query II rowsort
SELECT - 90 AS col2, 84 - - - 74 FROM tab1 AS cor0
----
-90
10
-90
10
-90
10

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + - col2 col1 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT col2 * 79 * 17 AS col1 FROM tab1
----
128928
79237
91324

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - ( - col2 ) col1 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-141
SELECT 11 DIV COUNT( * ), + 40 AS col2 FROM tab0
----
3
40

skipif mysql # not compatible
query II rowsort label-141
SELECT 11 / COUNT ( * ), + 40 AS col2 FROM tab0
----
3
40

onlyif mysql # DIV for integer division: 
query I rowsort label-142
SELECT - col1 DIV + ( - 3 ) AS col1 FROM tab2
----
17
22
25

skipif mysql # not compatible
query I rowsort label-142
SELECT - col1 / + ( - 3 ) AS col1 FROM tab2
----
17
22
25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-143
SELECT ALL * FROM tab0 WHERE NOT - col2 / + ( - 84 ) + col2 + + col2 + - - CAST( col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-143
SELECT ALL * FROM tab0 WHERE NOT - col2 / + ( - 84 ) + col2 + + col2 + - - CAST ( col1 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 col2 FROM tab1 WHERE NOT NULL = + - 18 / - + 11
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 * - ( col1 ) col2 FROM tab2
----
-1836
-2412
-2772

onlyif mysql # DIV for integer division: 
query I rowsort label-146
SELECT - col0 DIV 4 AS col1 FROM tab1 WHERE NOT 71 DIV + - 68 * + + col1 * - 63 = - 54 - + + col2
----
-12
-21
-22

skipif mysql # not compatible
query I rowsort label-146
SELECT - col0 / 4 AS col1 FROM tab1 WHERE NOT 71 / + - 68 * + + col1 * - 63 = - 54 - + + col2
----
-12
-21
-22

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 NOT IN ( - 4 + + col2 * - 20, - 35 )
----

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

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

query I rowsort
SELECT col2 * + col0 + col2 * + + 73 AS col1 FROM tab1 AS cor0
----
11152
11904
9322

query I rowsort
SELECT ALL + col0 + - 25 FROM tab0 cor0
----
-10
62
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 + + col1 col2 FROM tab2 AS cor0
----
101
75
91

query I rowsort
SELECT + ( - ( - 87 ) ) + col1 FROM tab1
----
101
134
92

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-154
SELECT DISTINCT + COUNT( * ) FROM tab0, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-154
SELECT DISTINCT + COUNT ( * ) FROM tab0, tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-155
SELECT + - MAX( 86 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-86

skipif mysql # not compatible
query I rowsort label-155
SELECT + - MAX ( 86 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-86

query I rowsort
SELECT ALL - 22 + + - col0 FROM tab1 AS cor0 WHERE NOT + col2 + + col1 IS NULL
----
-107
-113
-73

query I rowsort
SELECT 31 - - 25 AS col2 FROM tab1 AS cor0
----
56
56
56

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT ( - 52 ) NOT BETWEEN 40 + 39 AND + + col2 + - - 4
----

onlyif mysql # DIV for integer division: 
query I rowsort label-159
SELECT - 28 DIV - + 42 + + col1 - + col2 AS col0 FROM tab2 AS cor0
----
28
37
9

skipif mysql # not compatible
query I rowsort label-159
SELECT - 28 / - + 42 + + col1 - + col2 AS col0 FROM tab2 AS cor0
----
28
37
9

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( + + ( + 43 ) ) * + 29 >= ( NULL )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-162
SELECT CAST( + - col2 AS SIGNED ) + + - col0 AS col2 FROM tab1
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-162
SELECT CAST ( + - col2 AS INTEGER ) + + - col0 AS col2 FROM tab1
----
-144
-147
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 63 + + 28 - - + col1 * - col2 col0 FROM tab2
----
-1082
-2989
-3795

query I rowsort
SELECT DISTINCT + col2 * col1 + 59 FROM tab2
----
1232
3139
3945

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

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

query I rowsort
SELECT ALL 10 FROM tab0 WHERE - + 98 IS NOT NULL
----
10
10
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-167
SELECT DISTINCT - CAST( NULL AS SIGNED ) col0, col2 * + 21 + 35 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-167
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col0, col2 * + 21 + 35 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND - col0 + + - col2
----

query I rowsort
SELECT ALL + + 86 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-171
SELECT ALL - col2 * 35 * CAST( col0 AS SIGNED ) col2 FROM tab0 AS cor0
----
-24675
-30450
-336105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-171
SELECT ALL - col2 * 35 * CAST ( col0 AS INTEGER ) col2 FROM tab0 AS cor0
----
-24675
-30450
-336105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-172
SELECT ALL CAST( col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL CAST ( col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
51
67
77

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - ( - col1 ) + + col2 col0 FROM tab0 AS cor0
----
101
209
52

query I rowsort
SELECT col2 + - col0 + + 52 * - - col1 AS col2 FROM tab1
----
234
2421
773

query I rowsort
SELECT - 69 * col0 AS col1 FROM tab0
----
-1035
-6003
-6693

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 58 BETWEEN + col1 AND - - 23 + - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col1 * + + col2 * - 82, - col0 AS col1 FROM tab0
----
-17220
-87
-312174
-15
-8118
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-179
SELECT + + 44 AS col0, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
44
3

skipif mysql # not compatible
query II rowsort label-179
SELECT + + 44 AS col0, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
44
3

onlyif mysql # aggregate syntax: 
query I rowsort label-180
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT - ( - col1 ) > ( - + 35 + col2 )
----
1

skipif mysql # not compatible
query I rowsort label-180
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - ( - col1 ) > ( - + 35 + col2 )
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-181
SELECT DISTINCT + - COUNT( * ) * + + 24 * - 29 AS col1 FROM tab1 AS cor0 WHERE NULL < - col1 / - + col1
----
0

skipif mysql # not compatible
query I rowsort label-181
SELECT DISTINCT + - COUNT ( * ) * + + 24 * - 29 AS col1 FROM tab1 AS cor0 WHERE NULL < - col1 / - + col1
----
0

query I rowsort
SELECT 66 + col1 + - - col1 * - + 98 + - col0 * - ( + + col2 ) * + + 15 FROM tab1
----
72148
74806
88327

query I rowsort
SELECT DISTINCT 45 * col1 * col2 + + 48 AS col2 FROM tab2
----
138648
174918
52833

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 33 NOT IN ( - 32, + 14 - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT DISTINCT + 81 * - 2 - col2 FROM tab2 AS cor0
----
-185
-202
-220

query I rowsort
SELECT DISTINCT + 54 * - 11 * col0 + + col2 AS col0 FROM tab1 cor0
----
-30198
-50431
-53986

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

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

query I rowsort
SELECT DISTINCT - - 52 * + 50 + + 19 FROM tab1 AS cor0 WHERE NOT 20 * - - col1 IS NULL
----
2619

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-192
SELECT ALL - + col2 AS col2, - col1 - + - col0 + + - ( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 * - col1 IS NULL
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-192
SELECT ALL - + col2 AS col2, - col1 - + - col0 + + - ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 * - col1 IS NULL
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT DISTINCT - col1 * + col0 * - ( - 95 ) FROM tab2
----
-222870
-468160
-477375

query I rowsort
SELECT 81 * - + col2 AS col2 FROM tab0
----
-3807
-8019
-810

onlyif mysql # DIV for integer division: 
query I rowsort label-195
SELECT ALL + 14 + col0 + col2 DIV + col2 FROM tab1
----
100
106
66

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL + 14 + col0 + col2 / + col2 FROM tab1
----
100
106
66

onlyif mysql # aggregate syntax: 
query I rowsort label-196
SELECT MIN( - + col0 ) AS col1 FROM tab0 WHERE col1 < ( - 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-196
SELECT MIN ( - + col0 ) AS col1 FROM tab0 WHERE col1 < ( - 67 )
----
NULL

query II rowsort
SELECT + ( - + 34 ) - col0, - col2 AS col1 FROM tab2
----
-109
-58
-80
-23
-98
-40

query II rowsort
SELECT DISTINCT + col0 + - - col0 + - col2, + col0 AS col0 FROM tab0
----
-17
15
164
87
95
97

onlyif mysql # aggregate syntax: 
query I rowsort label-199
SELECT DISTINCT ( MIN( 75 ) ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-199
SELECT DISTINCT ( MIN ( 75 ) ) FROM tab2
----
75

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE col1 <> - col1
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-201
SELECT - col1 DIV - 28 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-201
SELECT - col1 / - 28 FROM tab2
----
1
2
2

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-203
SELECT - 30 DIV - COUNT( * ) AS col0 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-203
SELECT - 30 / - COUNT ( * ) AS col0 FROM tab2
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-204
SELECT 73 / - CAST( NULL AS SIGNED ) * + 96 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-204
SELECT 73 / - CAST ( NULL AS INTEGER ) * + 96 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 32 AS col2 FROM tab2
----
1472
2048
2400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-206
SELECT ALL 80 + CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-206
SELECT ALL 80 + CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

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

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

query II rowsort
SELECT ALL - col2 AS col0, 90 * - col1 * + col1 - - col0 AS col1 FROM tab1 AS cor0
----
-59
-2165
-68
-198719
-96
-17589

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE NULL <= 61
----

query I rowsort
SELECT 35 * + col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-212
SELECT DISTINCT 84 DIV + col0 FROM tab0 AS cor0 WHERE 98 BETWEEN + col0 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-212
SELECT DISTINCT 84 / + col0 FROM tab0 AS cor0 WHERE 98 BETWEEN + col0 AND col2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-213
SELECT ALL - + COUNT( * ) AS col0, + 57 AS col0 FROM tab1 AS cor0
----
-3
57

skipif mysql # not compatible
query II rowsort label-213
SELECT ALL - + COUNT ( * ) AS col0, + 57 AS col0 FROM tab1 AS cor0
----
-3
57

onlyif mysql # aggregate syntax: 
query II rowsort label-214
SELECT 77 AS col0, + COUNT( * ) * - 21 FROM tab1 AS cor0
----
77
-63

skipif mysql # not compatible
query II rowsort label-214
SELECT 77 AS col0, + COUNT ( * ) * - 21 FROM tab1 AS cor0
----
77
-63

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 17 ) = 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query III rowsort
SELECT * FROM tab1 WHERE - col1 * + - col0 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-221
SELECT DISTINCT CAST( + + 0 AS SIGNED ) * - col2 * + 95 + col0 + col2 + - col2 + - + col1 * + + col2 FROM tab1
----
-1293
-210
-3105

skipif mysql # not compatible
query I rowsort label-221
SELECT DISTINCT CAST ( + + 0 AS INTEGER ) * - col2 * + 95 + col0 + col2 + - col2 + - + col1 * + + col2 FROM tab1
----
-1293
-210
-3105

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

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

query I rowsort
SELECT ALL - 98 AS col2 FROM tab2 cor0
----
-98
-98
-98

query I rowsort
SELECT ALL 33 * 0 FROM tab0 AS cor0
----
0
0
0

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

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

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

query I rowsort
SELECT ALL col1 * col1 * + col0 * col0 + - col0 + - + col0 AS col2 FROM tab0
----
1476195
3337755
9215

query I rowsort
SELECT ALL - col1 * - ( + col2 ) + - - col2 + + - 41 * + col0 * + col2 * - ( - col2 ) FROM tab2
----
-10340356
-4195280
-996498

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-231
SELECT ALL - ( + col1 ) DIV - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-231
SELECT ALL - ( + col1 ) / - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT + col1 * + col1 + - 13 AS col0 FROM tab2 cor0
----
2588
4476
5916

query I rowsort
SELECT col0 - - - col0 + - ( - col1 ) * + - col1 * + 90 FROM tab0 AS cor0
----
-39690
-590490
-90

query I rowsort
SELECT - col1 + col0 * 83 + - - 88 AS col2 FROM tab2 AS cor0
----
3855
5323
6246

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 + + col2 col2 FROM tab0 AS cor0
----
129
181
92

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

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

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

skipif mysql # not compatible
query I rowsort label-237
SELECT ALL + COUNT ( * ) * + SUM ( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT DISTINCT COUNT( * ) * + + SUM( ALL - col1 ) AS col1 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT COUNT ( * ) * + + SUM ( ALL - col1 ) AS col1 FROM tab1
----
-198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-239
SELECT - ( CAST( col2 AS SIGNED ) ) AS col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-239
SELECT - ( CAST ( col2 AS INTEGER ) ) AS col1 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-240
SELECT ALL + COUNT( * ) * + - 7 + ( 96 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-240
SELECT ALL + COUNT ( * ) * + - 7 + ( 96 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT DISTINCT col1 * + - 21 * + col1 AS col1 FROM tab1 AS cor0
----
-4116
-46389
-525

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

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

query I rowsort
SELECT DISTINCT - - 6 FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL - col2 / - - 63 AS col0 FROM tab1 WHERE - 29 > col0
----

query I rowsort
SELECT 71 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT + 86 * COUNT( * ) AS col1 FROM tab2 cor0
----
258

skipif mysql # not compatible
query I rowsort label-248
SELECT + 86 * COUNT ( * ) AS col1 FROM tab2 cor0
----
258

query II rowsort
SELECT 43, col2 AS col0 FROM tab0 AS cor0
----
43
10
43
47
43
99

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT DISTINCT + 10 + MIN( - ( col2 ) ) + + MIN( DISTINCT + + col2 ) + 82 + + 21 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-255
SELECT DISTINCT + 10 + MIN ( - ( col2 ) ) + + MIN ( DISTINCT + + col2 ) + 82 + + 21 FROM tab2
----
78

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

query II rowsort
SELECT + - col1 AS col0, col1 * + col2 FROM tab0 AS cor0
----
-1
99
-21
210
-81
3807

onlyif mysql # aggregate syntax: 
query II rowsort label-258
SELECT + COUNT( ALL 69 ), - COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-258
SELECT + COUNT ( ALL 69 ), - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
-3

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

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

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

query I rowsort
SELECT ALL - + ( + + col0 ) * - 24 FROM tab0 cor0
----
2088
2328
360

query I rowsort
SELECT DISTINCT 79 * - 3 FROM tab2
----
-237

query II rowsort
SELECT ALL 21 AS col2, 80 AS col0 FROM tab0
----
21
80
21
80
21
80

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

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

query II rowsort
SELECT + col1, col0 * ( - col1 ) AS col0 FROM tab0
----
1
-97
21
-1827
81
-1215

query II rowsort
SELECT col0, - 38 * 86 * - - 68 * - col2 FROM tab2
----
46
5111152
64
8888960
75
12888992

query I rowsort
SELECT ALL col1 * - ( + - col2 ) FROM tab2
----
1173
3080
3886

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-268
SELECT MAX( ALL 9 ) / - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-268
SELECT MAX ( ALL 9 ) / - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

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

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

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

query I rowsort
SELECT col1 + col2 FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN + 14 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-272
SELECT DISTINCT - - 6 DIV - col2 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT - - 6 / - col2 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 * + 75 AS col0 FROM tab2 AS cor0
----
1725
3000
4350

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-275
SELECT - + col1 DIV - + 34 AS col0, + col2 * + col0 AS col1 FROM tab0 AS cor0
----
0
870
0
9603
2
705

skipif mysql # not compatible
query II rowsort label-275
SELECT - + col1 / - + 34 AS col0, + col2 * + col0 AS col1 FROM tab0 AS cor0
----
0
870
0
9603
2
705

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-277
SELECT DISTINCT - + col0 * + col1 * + CAST( 28 AS SIGNED ) + - + 7 * - col1 AS col0 FROM tab1 AS cor0
----
-11865
-119427
-19894

skipif mysql # not compatible
query I rowsort label-277
SELECT DISTINCT - + col0 * + col1 * + CAST ( 28 AS INTEGER ) + - + 7 * - col1 AS col0 FROM tab1 AS cor0
----
-11865
-119427
-19894

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

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

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

query II rowsort
SELECT - 67, col1 FROM tab1
----
-67
14
-67
47
-67
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-281
SELECT + SUM( ALL - col0 ) + COUNT( * ) DIV - 41 AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-281
SELECT + SUM ( ALL - col0 ) + COUNT ( * ) / - 41 AS col0 FROM tab1
----
-227

query I rowsort
SELECT DISTINCT col0 * - col2 + - 30 FROM tab2
----
-1088
-2590
-4380

query I rowsort
SELECT + col0 * + col1 + 2 AS col2 FROM tab2
----
2348
4930
5027

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

query I rowsort
SELECT ALL + - col2 AS col0 FROM tab0 WHERE NOT + + col2 * 35 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab2 WHERE NOT ( + col2 >= - col2 * + 93 )
----
0

skipif mysql # not compatible
query I rowsort label-286
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( + col2 >= - col2 * + 93 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-288
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-289
SELECT COUNT ( + - CAST ( NULL AS INTEGER ) ) col0 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL + + 21 + + col2 * + col1 AS col2 FROM tab2 AS cor0
----
1194
3101
3907

onlyif mysql # aggregate syntax: 
query I rowsort label-291
SELECT SUM( DISTINCT 6 ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
6

skipif mysql # not compatible
query I rowsort label-291
SELECT SUM ( DISTINCT 6 ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
6

query III rowsort
SELECT * FROM tab2 WHERE col0 + col0 + - col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 34 + - col2 col0 FROM tab1 AS cor0 WHERE NOT + 83 IS NULL
----
-102
-130
-93

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

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

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

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

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

query II rowsort
SELECT 25 * - - col2, col1 AS col2 FROM tab0
----
1175
81
2475
1
250
21

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

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

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

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

query I rowsort
SELECT 85 * + + 61 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-302
SELECT COUNT( * ) + - + MIN( ALL + 52 ) FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-302
SELECT COUNT ( * ) + - + MIN ( ALL + 52 ) FROM tab2
----
-49

query I rowsort
SELECT - 20 + + col0 FROM tab2 AS cor0
----
26
44
55

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

query I rowsort
SELECT - 36 FROM tab1 AS cor0 WHERE + 96 * 59 IS NOT NULL
----
-36
-36
-36

query II rowsort
SELECT DISTINCT col1, 91 AS col1 FROM tab2 AS cor0
----
51
91
67
91
77
91

query I rowsort
SELECT ALL + ( - - col0 ) * - + col2 + + col2 FROM tab2 AS cor0
----
-1035
-2520
-4292

query II rowsort
SELECT DISTINCT + col1 AS col2, col0 * + col2 FROM tab1 AS cor0
----
14
4896
47
6188
5
5015

onlyif mysql # DIV for integer division: 
query I rowsort label-309
SELECT DISTINCT 1 DIV 29 + + col1 + - col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-309
SELECT DISTINCT 1 / 29 + + col1 + - col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT 44 + + col2 FROM tab2 cor0
----
102
67
84

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

query I rowsort
SELECT 85 * + col1 + - 3 * - 81 + - 89 AS col2 FROM tab0 AS cor0
----
1939
239
7039

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-314
SELECT ALL col0, col1 + ( - - col1 ) * + + CAST( NULL AS SIGNED ) + - - col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-314
SELECT ALL col0, col1 + ( - - col1 ) * + + CAST ( NULL AS INTEGER ) + - - col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-316
SELECT COUNT( * ) DIV MAX( 31 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-316
SELECT COUNT ( * ) / MAX ( 31 ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT 68 + - 92 * - col0 - - + col1 - + col1 FROM tab0
----
1448
8072
8992

query I rowsort
SELECT DISTINCT + col2 + + - ( + col0 ) * - ( 63 ) FROM tab0
----
5491
6210
992

query I rowsort
SELECT ALL 53 + + - col1 FROM tab2
----
-14
-24
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col0 - + col2 col0 FROM tab0 cor0
----
658
860
9504

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-324
SELECT - 54 DIV - col1 AS col1 FROM tab0
----
0
2
54

skipif mysql # not compatible
query I rowsort label-324
SELECT - 54 / - col1 AS col1 FROM tab0
----
0
2
54

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT MIN( DISTINCT - - col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-325
SELECT MIN ( DISTINCT - - col2 ) FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-326
SELECT DISTINCT ( CAST( + 12 AS SIGNED ) ) AS col0, col2 + - col0 + + - col2 FROM tab0 AS cor0
----
12
-15
12
-87
12
-97

skipif mysql # not compatible
query II rowsort label-326
SELECT DISTINCT ( CAST ( + 12 AS INTEGER ) ) AS col0, col2 + - col0 + + - col2 FROM tab0 AS cor0
----
12
-15
12
-87
12
-97

query I rowsort
SELECT DISTINCT 87 * + - 56 * - - 86 * + 74 AS col2 FROM tab0 AS cor0
----
-31005408

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

query I rowsort
SELECT - 0 * 16 FROM tab1 WHERE NOT NULL <> - 41 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT DISTINCT MIN( + 89 ) FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-330
SELECT DISTINCT MIN ( + 89 ) FROM tab2
----
89

query II rowsort
SELECT col0, + 40 + - col1 * + + col2 FROM tab1
----
51
-1304
85
-255
91
-3156

query I rowsort
SELECT ALL 71 * + 42 * 24 * - - col0 AS col0 FROM tab1
----
3649968
6083280
6512688

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

onlyif mysql # DIV for integer division: 
query II rowsort label-334
SELECT DISTINCT + col0, ( + 2 ) DIV + - col1 FROM tab0 AS cor0
----
15
0
87
0
97
-2

skipif mysql # not compatible
query II rowsort label-334
SELECT DISTINCT + col0, ( + 2 ) / + - col1 FROM tab0 AS cor0
----
15
0
87
0
97
-2

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

query I rowsort
SELECT DISTINCT - 91 AS col2 FROM tab2
----
-91

query I rowsort
SELECT ALL 92 + 2 AS col2 FROM tab1
----
94
94
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-338
SELECT DISTINCT - CAST( + + col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-338
SELECT DISTINCT - CAST ( + + col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
-15
-87
-97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-340
SELECT - 8 DIV - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-340
SELECT - 8 / - col0 AS col0 FROM tab0 AS cor0
----
0
0
0

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * - + 87 AS col2 FROM tab0
----
-4089
-8613
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-345
SELECT ALL MAX( - + col1 ) * - - 45 + + - 89 * + 64 FROM tab1
----
-5921

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL MAX ( - + col1 ) * - - 45 + + - 89 * + 64 FROM tab1
----
-5921

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col0 + - - col2 + - 8 - col1 FROM tab1
----
104
125
131

onlyif mysql # DIV for integer division: 
query I rowsort label-348
SELECT ALL + 99 + + col2 - - 66 DIV col2 AS col1 FROM tab1
----
159
167
195

skipif mysql # not compatible
query I rowsort label-348
SELECT ALL + 99 + + col2 - - 66 / col2 AS col1 FROM tab1
----
159
167
195

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-350
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE NOT ( 92 * - col2 + CAST( NULL AS SIGNED ) IS NULL ) OR NOT NULL IS NOT NULL
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-350
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE NOT ( 92 * - col2 + CAST ( NULL AS INTEGER ) IS NULL ) OR NOT NULL IS NOT NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-351
SELECT DISTINCT + col1 * ( + col2 ) DIV 56 * - - col2 * + + col1 * + 33 - + + 83 * + col1 * col0 + + - col2 FROM tab2
----
5181136
579439
8431289

skipif mysql # not compatible
query I rowsort label-351
SELECT DISTINCT + col1 * ( + col2 ) / 56 * - - col2 * + + col1 * + 33 - + + 83 * + col1 * col0 + + - col2 FROM tab2
----
5181136
579439
8431289

query I rowsort
SELECT DISTINCT + col0 / + col2 * - col2 FROM tab2 WHERE + col2 * + col2 + + 6 + col2 = - 77
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-353
SELECT - + col2 * 56 * - col2 / - CAST( + col2 AS SIGNED ) FROM tab2 WHERE + + 20 IN ( - - 60 + + - 7 * col2 - - col1, ( + col0 ), + col0 + col1 + + 32 )
----

skipif mysql # not compatible
query I rowsort label-353
SELECT - + col2 * 56 * - col2 / - CAST ( + col2 AS INTEGER ) FROM tab2 WHERE + + 20 IN ( - - 60 + + - 7 * col2 - - col1, ( + col0 ), + col0 + col1 + + 32 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-355
SELECT DISTINCT - 76 / - col0 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-355
SELECT DISTINCT - 76 / - col0 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

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

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

query IIIIII rowsort
SELECT * FROM tab1 cor0 LEFT OUTER JOIN tab1 AS cor1 ON - + 55 / - 75 IS NOT NULL WHERE NOT NULL IS NULL
----

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

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

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

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

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

query I rowsort
SELECT - 75 * + col0 * + 85 AS col1 FROM tab1 AS cor0
----
-325125
-541875
-580125

onlyif mysql # DIV for integer division: 
query I rowsort label-362
SELECT ALL + - 29 DIV - + col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-362
SELECT ALL + - 29 / - + col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-363
SELECT CAST( - ( + col1 ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-363
SELECT CAST ( - ( + col1 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 * - 67 + - + 84 col2 FROM tab1 WHERE NOT - col0 > NULL
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-366
SELECT - COUNT( ALL + + col1 ) DIV - COUNT( DISTINCT - col0 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-366
SELECT - COUNT ( ALL + + col1 ) / - COUNT ( DISTINCT - col0 ) FROM tab0
----
1

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 15 > 26 * - - 89 + - 35 * - col2 + - 59
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + col1 + - col0 + + col0 + + - col1 * + col1 FROM tab0 cor0
----
-2
-462
-6642

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

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

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

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

query I rowsort
SELECT 57 + - col2 * + col2 + - col2 FROM tab2
----
-1583
-3365
-495

query I rowsort
SELECT - col0 * + 71 + - col2 FROM tab0
----
-1112
-6187
-6986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 30 col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

query I rowsort
SELECT DISTINCT + 59 * - + 36 - + col1 AS col2 FROM tab2 AS cor0
----
-2175
-2191
-2201

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT ALL + MAX( + + 86 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
86

skipif mysql # not compatible
query I rowsort label-379
SELECT ALL + MAX ( + + 86 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT ALL 57 * MIN( 37 ) FROM tab1 AS cor0
----
2109

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL 57 * MIN ( 37 ) FROM tab1 AS cor0
----
2109

query II rowsort
SELECT - col0 + + - 88, 1 AS col0 FROM tab2 cor0
----
-134
1
-152
1
-163
1

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 / 28 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + 21 * - col2 AS col0 FROM tab1 AS cor0
----
-1298
-1496
-2112

onlyif mysql # DIV for integer division: 
query II rowsort label-385
SELECT ALL - 81, 21 + col1 DIV - col0 AS col0 FROM tab1 AS cor0
----
-81
21
-81
21
-81
21

skipif mysql # not compatible
query II rowsort label-385
SELECT ALL - 81, 21 + col1 / - col0 AS col0 FROM tab1 AS cor0
----
-81
21
-81
21
-81
21

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

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE 9 * + col0 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-388
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-388
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT + SUM( ALL 91 ) AS col0 FROM tab2
----
273

skipif mysql # not compatible
query I rowsort label-389
SELECT + SUM ( ALL 91 ) AS col0 FROM tab2
----
273

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

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

query I rowsort
SELECT ALL - col2 * + + col0 - - - col2 AS col1 FROM tab2
----
-1081
-2600
-4408

query I rowsort
SELECT col1 - ( col0 ) FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT COUNT( * ) - - MAX( col1 ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-393
SELECT COUNT ( * ) - - MAX ( col1 ) FROM tab0
----
84

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-395
SELECT DISTINCT + - col2 DIV col1 FROM tab0 cor0
----
-99
0

skipif mysql # not compatible
query I rowsort label-395
SELECT DISTINCT + - col2 / col1 FROM tab0 cor0
----
-99
0

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

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

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

query I rowsort
SELECT + col0 * + + 82 FROM tab0
----
1230
7134
7954

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

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

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

query II rowsort
SELECT - col0 * - 52 + + col0, col0 FROM tab1 cor0
----
2703
51
4505
85
4823
91

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

query I rowsort
SELECT DISTINCT - + col1 * + 47 * 89 FROM tab0 cor0
----
-338823
-4183
-87843

query I rowsort
SELECT ALL - col0 * 77 AS col2 FROM tab2 AS cor0
----
-3542
-4928
-5775

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-405
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + col0 / + CAST( + - 43 AS SIGNED ) + col0, 51, + - 90, - CAST( + ( col1 ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-405
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + col0 / + CAST ( + - 43 AS INTEGER ) + col0, 51, + - 90, - CAST ( + ( col1 ) AS INTEGER ) )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-407
SELECT DISTINCT + 43 DIV + + col1 AS col2 FROM tab1 AS cor0
----
0
3
8

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT + 43 / + + col1 AS col2 FROM tab1 AS cor0
----
0
3
8

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

query I rowsort
SELECT ALL + 5 + + + col2 + col0 AS col0 FROM tab2
----
109
138
74

query I rowsort
SELECT DISTINCT + col0 + - - col1 AS col2 FROM tab2
----
141
142
97

query I rowsort
SELECT ALL + col1 + 42 AS col0 FROM tab1
----
47
56
89

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

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

query I rowsort
SELECT - 54 FROM tab1 WHERE NULL <= 14 * 74
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-416
SELECT COUNT( * ) + - COUNT( * ) AS col1, 83 FROM tab0 AS cor0
----
0
83

skipif mysql # not compatible
query II rowsort label-416
SELECT COUNT ( * ) + - COUNT ( * ) AS col1, 83 FROM tab0 AS cor0
----
0
83

query I rowsort
SELECT + col0 + + - col1 AS col2 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT DISTINCT 3 + + 8 AS col0 FROM tab1 AS cor0
----
11

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

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

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

query I rowsort
SELECT 97 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-424
SELECT ALL - COUNT( * ) - - MAX( + 78 ) + - COUNT( * ) DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL - COUNT ( * ) - - MAX ( + 78 ) + - COUNT ( * ) / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT + - 78 - - COUNT( * ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-425
SELECT + - 78 - - COUNT ( * ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT col0 + - col0 AS col0 FROM tab2 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT - COUNT( * ) - 42 AS col2 FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-427
SELECT - COUNT ( * ) - 42 AS col2 FROM tab1 AS cor0
----
-45

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

query I rowsort
SELECT - 44 - col2 AS col0 FROM tab2 cor0
----
-102
-67
-84

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 * - 57 - - + col2 <> + col0
----

query I rowsort
SELECT ALL 19 * - - 5 FROM tab0 AS cor0
----
95
95
95

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

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

skipif mysql # not compatible
query I rowsort label-433
SELECT COUNT ( col1 ) AS col0 FROM tab1 AS cor0 WHERE 17 IS NULL
----
0

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - 61 ) + - 57 + - col2 >= NULL
----

query I rowsort
SELECT + 51 + - col2 FROM tab1
----
-17
-45
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-438
SELECT ALL + col2 + - CAST( - 79 AS SIGNED ) AS col2 FROM tab2
----
102
119
137

skipif mysql # not compatible
query I rowsort label-438
SELECT ALL + col2 + - CAST ( - 79 AS INTEGER ) AS col2 FROM tab2
----
102
119
137

query I rowsort
SELECT 44 * - + col0 + - col2 FROM tab1
----
-2340
-3799
-4072

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT DISTINCT 38 + - MIN( + col0 ) FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-440
SELECT DISTINCT 38 + - MIN ( + col0 ) FROM tab1
----
-13

query II rowsort
SELECT ALL - col2 AS col2, 41 AS col2 FROM tab1
----
-59
41
-68
41
-96
41

query I rowsort
SELECT ALL 57 + + 98 AS col0 FROM tab0
----
155
155
155

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-446
SELECT ALL MAX( + - col1 ), 8 AS col1 FROM tab2
----
-51
8

skipif mysql # not compatible
query II rowsort label-446
SELECT ALL MAX ( + - col1 ), 8 AS col1 FROM tab2
----
-51
8

query II rowsort
SELECT 60 AS col1, + 17 * - col2 FROM tab0 AS cor0
----
60
-1683
60
-170
60
-799

query II rowsort
SELECT - - col2 * ( col2 ), 26 FROM tab2 AS cor0 WHERE NOT col2 * col2 = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT DISTINCT + COUNT( ALL + col0 ) FROM tab1 cor0 WHERE NOT - col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-450
SELECT DISTINCT + COUNT ( ALL + col0 ) FROM tab1 cor0 WHERE NOT - col1 = NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-452
SELECT ALL + 60 * - COUNT( * ) FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-452
SELECT ALL + 60 * - COUNT ( * ) FROM tab1
----
-180

query I rowsort
SELECT ALL - 28 AS col1 FROM tab2
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-454
SELECT DISTINCT + MIN( ALL - - 67 ) * - - COUNT( * ) AS col2 FROM tab0
----
201

skipif mysql # not compatible
query I rowsort label-454
SELECT DISTINCT + MIN ( ALL - - 67 ) * - - COUNT ( * ) AS col2 FROM tab0
----
201

query I rowsort
SELECT + + 34 AS col1 FROM tab1 cor0
----
34
34
34

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

query I rowsort
SELECT DISTINCT - 4 * - - col1 - - - col2 AS col2 FROM tab1 AS cor0
----
-152
-256
-79

query I rowsort
SELECT DISTINCT + + 35 FROM tab0 AS cor0
----
35

query I rowsort
SELECT ALL + + ( col1 ) * + + col2 + - - 66 AS col2 FROM tab0 AS cor0
----
165
276
3873

query I rowsort
SELECT ALL - col1 * - col1 + + 55 + col0 FROM tab2 AS cor0
----
2702
4619
6048

query II rowsort
SELECT - - 46 + - + 84, + col2 FROM tab2 AS cor0
----
-38
23
-38
40
-38
58

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

query I rowsort
SELECT DISTINCT + 37 * + 61 * ( - 23 ) FROM tab2
----
-51911

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 63 * + col1 * + 9 * col2 * - col1 col2 FROM tab1
----
-10668672
-836325
-85170204

query I rowsort
SELECT 23 * col0 AS col1 FROM tab2 AS cor0
----
1058
1472
1725

query I rowsort
SELECT DISTINCT - - 55 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + col0 AND - - col1 - 41
----
55

onlyif mysql # DIV for integer division: 
query II rowsort label-467
SELECT col2 DIV - 88 * - col2 DIV + col2 AS col1, - col2 AS col0 FROM tab2 cor0
----
0
-23
0
-40
0
-58

skipif mysql # not compatible
query II rowsort label-467
SELECT col2 / - 88 * - col2 / + col2 AS col1, - col2 AS col0 FROM tab2 cor0
----
0
-23
0
-40
0
-58

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 78 col2 FROM tab1
----
137
146
174

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-470
SELECT DISTINCT COUNT( DISTINCT + col1 ) + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-470
SELECT DISTINCT COUNT ( DISTINCT + col1 ) + + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col1 - + 3 FROM tab1
----
-17
-50
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-472
SELECT - 59 * ( MAX( - col1 ) ) AS col1 FROM tab1
----
295

skipif mysql # not compatible
query I rowsort label-472
SELECT - 59 * ( MAX ( - col1 ) ) AS col1 FROM tab1
----
295

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT ALL ( - COUNT( * ) ) * + 14 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col2
----
0

skipif mysql # not compatible
query I rowsort label-473
SELECT ALL ( - COUNT ( * ) ) * + 14 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col2
----
0

query I rowsort
SELECT 4 * + col1 AS col1 FROM tab2 WHERE NOT col1 + 82 < col1
----
204
268
308

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

query I rowsort
SELECT 85 * - 83 FROM tab0
----
-7055
-7055
-7055

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

query I rowsort
SELECT 91 * 59 FROM tab2
----
5369
5369
5369

query I rowsort
SELECT DISTINCT - col2 * ( 47 ) AS col0 FROM tab1 WHERE NOT ( col1 ) <> ( - col2 + - 55 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 32 + col1 * 8 <> ( + ( + col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) + - col1 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-28
-37
-9

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

skipif mysql # not compatible
query I rowsort label-482
SELECT + CAST ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) + - col2 * + col1 FROM tab2 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - ( 63 ) AS col2 FROM tab2
----
-63
-63
-63

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

onlyif mysql # DIV for integer division: 
query I rowsort label-485
SELECT DISTINCT col1 DIV col1 col1 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-485
SELECT DISTINCT col1 / col1 col1 FROM tab2
----
1

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

query I rowsort
SELECT ALL 4 + - 93 FROM tab0
----
-89
-89
-89

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

query I rowsort
SELECT 97 * col2 + + 74 AS col0 FROM tab1
----
5797
6670
9386

query I rowsort
SELECT DISTINCT - col1 + col0 * + 11 FROM tab2
----
455
627
758

query I rowsort
SELECT 68 FROM tab0 WHERE NOT 86 < NULL
----

query I rowsort
SELECT ALL 81 * col0 + - 99 * 25 FROM tab1
----
1656
4410
4896

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT COUNT( * ) + + COUNT( * ) * + COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-494
SELECT COUNT ( * ) + + COUNT ( * ) * + COUNT ( * ) FROM tab1
----
12

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-495
SELECT + CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT - 9 NOT IN ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-495
SELECT + CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT - 9 NOT IN ( - col0 )
----

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

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

query I rowsort
SELECT 85 * - col0 FROM tab2 WHERE NOT + col2 * - 33 + - col0 NOT BETWEEN 15 - + 62 AND NULL
----

query I rowsort
SELECT - 63 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

query I rowsort
SELECT DISTINCT + 74 AS col0 FROM tab2
----
74

query I rowsort
SELECT DISTINCT + 36 * - 0 FROM tab0 AS cor0
----
0

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT - MIN( DISTINCT col0 ) AS col2 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-507
SELECT - MIN ( DISTINCT col0 ) AS col2 FROM tab0 cor0
----
-15

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( + col1 ) NOT BETWEEN NULL AND ( col2 )
----
15
81
47
87
21
10

query I rowsort
SELECT col0 * col2 FROM tab0 WHERE 62 <> 59
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT ALL + COUNT( * ) * - 18 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-510
SELECT ALL + COUNT ( * ) * - 18 FROM tab1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT - MAX( DISTINCT + col1 ) * + 94 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND ( 10 )
----
NULL

skipif mysql # not compatible
query I rowsort label-511
SELECT - MAX ( DISTINCT + col1 ) * + 94 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND ( 10 )
----
NULL

query I rowsort
SELECT ALL + col2 * - col2 + 68 FROM tab0
----
-2141
-32
-9733

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-513
SELECT ALL col2 DIV + - CAST( col0 AS SIGNED ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL col2 / + - CAST ( col0 AS INTEGER ) FROM tab2
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-516
SELECT ALL MIN( DISTINCT col1 ) FROM tab1 cor0 WHERE NOT col2 * - 84 + + 10 * + col1 IS NULL
----
5

skipif mysql # not compatible
query I rowsort label-516
SELECT ALL MIN ( DISTINCT col1 ) FROM tab1 cor0 WHERE NOT col2 * - 84 + + 10 * + col1 IS NULL
----
5

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

query I rowsort
SELECT DISTINCT 44 + - col0 + col1 FROM tab0 AS cor0
----
-22
-52
110

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-520
SELECT ALL * FROM tab0 WHERE ( NOT CAST( + col2 AS SIGNED ) * + 89 - col1 * - 35 BETWEEN ( 73 ) AND - ( - col0 ) + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-520
SELECT ALL * FROM tab0 WHERE ( NOT CAST ( + col2 AS INTEGER ) * + 89 - col1 * - 35 BETWEEN ( 73 ) AND - ( - col0 ) + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-521
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) = + CAST( - ( + 32 ) AS SIGNED ) + - 89
----

skipif mysql # not compatible
query IIIIII rowsort label-521
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) = + CAST ( - ( + 32 ) AS INTEGER ) + - 89
----

query I rowsort
SELECT + col2 - + + 12 + - + 17 * 18 AS col0 FROM tab2
----
-260
-278
-295

query I rowsort
SELECT ALL - 93 - + + 90 FROM tab2 cor0
----
-183
-183
-183

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-524
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IS NULL OR col0 + col0 * - CAST( NULL AS SIGNED ) < - col1 * - 0
----

skipif mysql # not compatible
query III rowsort label-524
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IS NULL OR col0 + col0 * - CAST ( NULL AS INTEGER ) < - col1 * - 0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-525
SELECT ALL * FROM tab2 AS cor0 WHERE ( - CAST( + ( 59 ) AS SIGNED ) ) < + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-525
SELECT ALL * FROM tab2 AS cor0 WHERE ( - CAST ( + ( 59 ) AS INTEGER ) ) < + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 23 - + + ( 61 ) * col1 FROM tab2 AS cor0
----
-3088
-4064
-4674

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

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

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

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

query I rowsort
SELECT - - 83 AS col1 FROM tab1 cor0
----
83
83
83

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT DISTINCT ( 28 ) * + COUNT( ALL + 68 ) AS col1 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-535
SELECT DISTINCT ( 28 ) * + COUNT ( ALL + 68 ) AS col1 FROM tab1 AS cor0
----
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-536
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-536
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----
0

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

query I rowsort
SELECT DISTINCT 61 FROM tab1 WHERE NOT + + ( - - ( - ( - col2 ) ) ) = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-539
SELECT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) * + col2 BETWEEN + 71 / 34 AND NULL
----

skipif mysql # not compatible
query III rowsort label-539
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * + col2 BETWEEN + 71 / 34 AND NULL
----

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

query I rowsort
SELECT + + col2 - - col2 FROM tab2 WHERE NOT + 96 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-542
SELECT ALL + SUM( ALL - - 97 ) AS col2 FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-542
SELECT ALL + SUM ( ALL - - 97 ) AS col2 FROM tab1
----
291

query I rowsort
SELECT col0 * 24 * + - col0 * + + col1 * + col2 FROM tab2
----
-302776320
-524610000
-59569632

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 72 >= + col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + - 89
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 38 <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-547
SELECT col2 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT - col0 * + - 37 NOT BETWEEN - + 36 AND NULL
----

skipif mysql # not compatible
query I rowsort label-547
SELECT col2 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT - col0 * + - 37 NOT BETWEEN - + 36 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 88 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-549
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( 53 / - CAST( - - col0 AS SIGNED ) * - col1 )
----

skipif mysql # not compatible
query III rowsort label-549
SELECT * FROM tab1 WHERE NOT ( NULL ) IN ( 53 / - CAST ( - - col0 AS INTEGER ) * - col1 )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-552
SELECT + col2 DIV + 73 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-552
SELECT + col2 / + 73 AS col0 FROM tab0
----
0
0
1

query I rowsort
SELECT - col2 + 82 AS col0 FROM tab0 AS cor0
----
-17
35
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-554
SELECT ALL + CAST( NULL AS SIGNED ), + col2 AS col1 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-554
SELECT ALL + CAST ( NULL AS INTEGER ), + col2 AS col1 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT DISTINCT + 89 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND ( + col2 + + + 72 )
----

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

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

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

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

skipif mysql # not compatible
query II rowsort label-558
SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
3

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

query I rowsort
SELECT ALL + ( - + 32 ) + - ( + col0 ) * - - 22 FROM tab1 AS cor0
----
-1154
-1902
-2034

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

skipif mysql # not compatible
query I rowsort label-561
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <> NULL
----
0

query I rowsort
SELECT ALL + + col2 + - + ( col2 ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-563
SELECT DISTINCT + 98 DIV + + SUM( ALL + col1 ) + - + 85 AS col1 FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-563
SELECT DISTINCT + 98 / + + SUM ( ALL + col1 ) + - + 85 AS col1 FROM tab2
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col0 col1 FROM tab0
----
10
87
47
15
99
97

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

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

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

query I rowsort
SELECT - - 53 + - - col1 AS col2 FROM tab2 AS cor0
----
104
120
130

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT + 8 + - 46 - SUM( col0 ) FROM tab1
----
-265

skipif mysql # not compatible
query I rowsort label-569
SELECT + 8 + - 46 - SUM ( col0 ) FROM tab1
----
-265

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-570
SELECT ALL col0 col2 FROM tab0 WHERE NOT + col1 * + CAST( NULL AS SIGNED ) + - + 4 - - CAST( 1 AS SIGNED ) * 36 NOT BETWEEN col1 + - ( + ( col1 ) ) AND + CAST( NULL AS SIGNED ) * 65
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-570
SELECT ALL col0 col2 FROM tab0 WHERE NOT + col1 * + CAST ( NULL AS INTEGER ) + - + 4 - - CAST ( 1 AS INTEGER ) * 36 NOT BETWEEN col1 + - ( + ( col1 ) ) AND + CAST ( NULL AS INTEGER ) * 65
----

query I rowsort
SELECT ALL + 38 + + col1 AS col1 FROM tab2
----
105
115
89

query I rowsort
SELECT DISTINCT - - col2 * + col1 + - 83 + col0 - - col0 AS col0 FROM tab1 WHERE NULL < + col2
----

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

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

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

query I rowsort
SELECT - - ( - - 76 ) * + 96 FROM tab2 AS cor0
----
7296
7296
7296

query I rowsort
SELECT DISTINCT 27 AS col0 FROM tab2 cor0
----
27

query I rowsort
SELECT ALL - + 31 * col2 + - + 64 * - 18 * col1 * - + col0 FROM tab1 AS cor0
----
-491429
-4929212
-825504

query II rowsort
SELECT ALL 42 * - + 56, col2 AS col0 FROM tab0 AS cor0
----
-2352
10
-2352
47
-2352
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - ( - + col1 ) * + col2 col1 FROM tab1 AS cor0
----
129024
17405
217328

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

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - 10 ) NOT IN ( 34 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT DISTINCT SUM( 40 ) FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT SUM ( 40 ) FROM tab2
----
120

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-586
SELECT ( + MIN( - + col0 ) ) DIV + - 84 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-586
SELECT ( + MIN ( - + col0 ) ) / + - 84 FROM tab2
----
0

query I rowsort
SELECT + 22 * - + 58 FROM tab1
----
-1276
-1276
-1276

query I rowsort
SELECT DISTINCT - 25 AS col2 FROM tab0 cor0
----
-25

query I rowsort
SELECT ALL 0 * - 48 + + col2 AS col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL - 95 FROM tab0, tab1 AS cor0 WHERE - 94 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT DISTINCT COUNT( * ) + - 34 + + + 10 AS col1 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-591
SELECT DISTINCT COUNT ( * ) + - 34 + + + 10 AS col1 FROM tab2
----
-21

query I rowsort
SELECT DISTINCT - 53 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-593
SELECT + col1 * - + col2 * + - 15 / + - CAST( NULL AS DECIMAL ) AS col1, - CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-593
SELECT + col1 * - + col2 * + - 15 / + - CAST ( NULL AS REAL ) AS col1, - CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + col0 + 19 AS col0 FROM tab0 AS cor0
----
106
116
34

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT - 69 * - 28 * + - MIN( ( 65 ) ) * + - COUNT( * ) FROM tab2 AS cor0
----
376740

skipif mysql # not compatible
query I rowsort label-596
SELECT - 69 * - 28 * + - MIN ( ( 65 ) ) * + - COUNT ( * ) FROM tab2 AS cor0
----
376740

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-597
SELECT AVG ( ( + - CAST( NULL AS SIGNED ) ) ) * + 75 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-597
SELECT AVG ( ( + - CAST ( NULL AS INTEGER ) ) ) * + 75 AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 > NULL
----

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

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

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

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

query I rowsort
SELECT ALL col2 + + ( - 59 ) * - + col1 FROM tab0
----
1249
158
4826

query I rowsort
SELECT col2 * + - ( col2 ) + - 96 FROM tab2
----
-1696
-3460
-625

query II rowsort
SELECT - col1 AS col0, col2 FROM tab0 WHERE NULL IS NULL
----
-1
99
-21
10
-81
47

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

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

query I rowsort
SELECT ALL 4 - - + col1 FROM tab1 cor0
----
18
51
9

query I rowsort
SELECT DISTINCT - col2 - col2 + - - col0 + col2 * + col0 AS col1 FROM tab0 AS cor0
----
626
937
9502

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

query I rowsort
SELECT + 99 * 65 AS col2 FROM tab0 cor0
----
6435
6435
6435

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

skipif mysql # not compatible
query I rowsort label-610
SELECT - 9 / + 1 AS col1 FROM tab2 AS cor0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT + col1 / + 80 + + col2 AS col0 FROM tab0 WHERE NOT NULL <> - col2
----

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

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

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

query I rowsort
SELECT DISTINCT - + col1 * - 45 FROM tab0 cor0
----
3645
45
945

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

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

query I rowsort
SELECT DISTINCT + 65 * + 12 AS col0 FROM tab2 AS cor0
----
780

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

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT MIN( ALL - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-619
SELECT MIN ( ALL - col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-620
SELECT DISTINCT 35 + - col0 AS col1, + col0 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) + 56 NOT IN ( col0 * CAST( - 31 AS SIGNED ) * + col1 )
----

skipif mysql # not compatible
query II rowsort label-620
SELECT DISTINCT 35 + - col0 AS col1, + col0 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + 56 NOT IN ( col0 * CAST ( - 31 AS INTEGER ) * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT + - COUNT( * ) FROM tab2 WHERE NOT ( NOT 26 * - + 77 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-621
SELECT + - COUNT ( * ) FROM tab2 WHERE NOT ( NOT 26 * - + 77 IS NULL )
----
0

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 WHERE NOT col1 + col0 / + 35 * col2 IS NULL
----
59
68
96

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

query I rowsort
SELECT ALL ( + col1 ) * - 34 AS col0 FROM tab0
----
-2754
-34
-714

query I rowsort
SELECT + col1 * - 42 + + col2 FROM tab2 AS cor0
----
-2119
-2756
-3194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-626
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) / + + ( - col2 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-626
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) / + + ( - col2 ) <= NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-628
SELECT - - MIN( ALL 17 ) + 24 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-628
SELECT - - MIN ( ALL 17 ) + 24 FROM tab2 AS cor0
----
41

query I rowsort
SELECT + 27 + - + 67 FROM tab1 AS cor0
----
-40
-40
-40

query I rowsort
SELECT DISTINCT - 71 - + 95 AS col2 FROM tab0 AS cor0
----
-166

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

query I rowsort
SELECT 67 + - - col0 AS col0 FROM tab2 AS cor0
----
113
131
142

query I rowsort
SELECT + col2 + + col1 * - col2 * - 64 FROM tab0 AS cor0
----
13450
243695
6435

query I rowsort
SELECT + col2 + + - 68 AS col2 FROM tab2 AS cor0
----
-10
-28
-45

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-637
SELECT + 4 AS col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
4
4
4

skipif mysql # not compatible
query I rowsort label-637
SELECT + 4 AS col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
4
4
4

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

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT DISTINCT COUNT( * ) + COUNT( * ) * - COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
-6

skipif mysql # not compatible
query I rowsort label-639
SELECT DISTINCT COUNT ( * ) + COUNT ( * ) * - COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
-6

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

onlyif mysql # DIV for integer division: 
query I rowsort label-641
SELECT DISTINCT - col2 * - + 16 + - + col1 DIV + col0 FROM tab0
----
1584
160
747

skipif mysql # not compatible
query I rowsort label-641
SELECT DISTINCT - col2 * - + 16 + - + col1 / + col0 FROM tab0
----
1584
160
747

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT DISTINCT + COUNT( * ) * + 85 * + + 78 - - - ( - - COUNT( * ) ) FROM tab2
----
19887

skipif mysql # not compatible
query I rowsort label-642
SELECT DISTINCT + COUNT ( * ) * + 85 * + + 78 - - - ( - - COUNT ( * ) ) FROM tab2
----
19887

query I rowsort
SELECT - 75 - + col2 AS col0 FROM tab0
----
-122
-174
-85

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) - + ( 49 ) col0 FROM tab1 cor0
----
10
19
47

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

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

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

query I rowsort
SELECT DISTINCT 62 * - col0 FROM tab1
----
-3162
-5270
-5642

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-651
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 64 - - col0 NOT BETWEEN ( - 92 ) AND ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-651
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 64 - - col0 NOT BETWEEN ( - 92 ) AND ( - CAST ( NULL AS INTEGER ) )
----

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 12 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT ALL + + MAX( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-46

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-656
SELECT + col0 DIV 88 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-656
SELECT + col0 / 88 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT ALL - MIN( DISTINCT - col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-657
SELECT ALL - MIN ( DISTINCT - col2 ) AS col2 FROM tab1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-658
SELECT DISTINCT 47 / - - CAST( NULL AS SIGNED ) * + 62 + + + col1 * - 8 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-658
SELECT DISTINCT 47 / - - CAST ( NULL AS INTEGER ) * + 62 + + + col1 * - 8 AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-659
SELECT CAST( 77 AS SIGNED ) * - 48 + - - 13 col0 FROM tab0
----
-3683
-3683
-3683

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-659
SELECT CAST ( 77 AS INTEGER ) * - 48 + - - 13 col0 FROM tab0
----
-3683
-3683
-3683

query I rowsort
SELECT + col0 * + - 10 AS col0 FROM tab2
----
-460
-640
-750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 55 * - - col0 col1 FROM tab0
----
100485
5335
66825

query I rowsort
SELECT - 48 * + col1 AS col0 FROM tab2
----
-2448
-3216
-3696

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT DISTINCT MAX( + col0 ) FROM tab1 WHERE NOT NULL <> - 65 + - ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-663
SELECT DISTINCT MAX ( + col0 ) FROM tab1 WHERE NOT NULL <> - 65 + - ( col0 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-664
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + AVG ( + 38 ) * + + ( - ( - + ( + COUNT ( * ) ) ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-665
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) DIV + 49 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-665
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) / + 49 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-666
SELECT DISTINCT + + COUNT( * ) AS col2, - COUNT( * ) * - 58 AS col1 FROM tab0 AS cor0
----
3
174

skipif mysql # not compatible
query II rowsort label-666
SELECT DISTINCT + + COUNT ( * ) AS col2, - COUNT ( * ) * - 58 AS col1 FROM tab0 AS cor0
----
3
174

query I rowsort
SELECT + ( + + col1 ) + + + ( + col1 ) FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT 54 + + 37 - - + col1 + + + col2 * - 33 AS col1 FROM tab2 AS cor0
----
-1152
-1756
-617

query I rowsort
SELECT DISTINCT col2 + - 90 FROM tab1
----
-22
-31
6

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

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

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

query II rowsort
SELECT - col1 * - - col0 AS col0, 97 AS col0 FROM tab1 AS cor0
----
-425
97
-4277
97
-714
97

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

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

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

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

query I rowsort
SELECT - - col2 + - col0 * - col0 FROM tab1 cor0
----
2697
7284
8349

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

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

query II rowsort
SELECT - col0 * col1 + + col2, col0 AS col1 FROM tab1
----
-366
85
-4209
91
-618
51

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-679
SELECT COUNT ( * ) + COUNT ( * ) col2 FROM tab0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-680
SELECT - MAX( - col2 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23

skipif mysql # not compatible
query I rowsort label-680
SELECT - MAX ( - col2 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-681
SELECT MAX ( DISTINCT col2 ) col2 FROM tab1 AS cor0
----
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL > + 63 - col2 * + col1
----

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 NOT BETWEEN col2 * + col1 AND NULL
----

query I rowsort
SELECT + 52 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT - SUM( - - 94 ) FROM tab1 cor0 WHERE NOT col0 * + col2 IS NULL
----
-282

skipif mysql # not compatible
query I rowsort label-689
SELECT - SUM ( - - 94 ) FROM tab1 cor0 WHERE NOT col0 * + col2 IS NULL
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT COUNT( 16 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-690
SELECT COUNT ( 16 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT DISTINCT + SUM( 77 ) AS col0 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT + SUM ( 77 ) AS col0 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----
NULL

query I rowsort
SELECT + + col2 + + 70 AS col0 FROM tab2 AS cor0
----
110
128
93

query II rowsort
SELECT ALL col2 * ( + - 77 ) AS col0, - 62 FROM tab1
----
-4543
-62
-5236
-62
-7392
-62

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 >= + + col0
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT - col0 * 44 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-695
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT - col0 * 44 <> NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-696
SELECT ALL COUNT( DISTINCT - - 79 ) DIV COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-696
SELECT ALL COUNT ( DISTINCT - - 79 ) / COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT col0 * - 65 AS col2 FROM tab2 AS cor0
----
-2990
-4160
-4875

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

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

query I rowsort
SELECT DISTINCT col0 * + + 4 + - + 72 AS col2 FROM tab0
----
-12
276
316

query II rowsort
SELECT + col1 AS col1, + col2 * + - col2 AS col1 FROM tab2 AS cor0
----
51
-529
67
-3364
77
-1600

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-703
SELECT * FROM tab2 AS cor0 WHERE 64 = - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-703
SELECT * FROM tab2 AS cor0 WHERE 64 = - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-704
SELECT ALL COUNT( * ) AS col1, + COUNT( * ) * MAX( DISTINCT - + ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
3
-30

skipif mysql # not compatible
query II rowsort label-704
SELECT ALL COUNT ( * ) AS col1, + COUNT ( * ) * MAX ( DISTINCT - + ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
3
-30

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

query II rowsort
SELECT ALL - col1 + - col2 AS col1, 82 FROM tab0 AS cor0
----
-100
82
-128
82
-31
82

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

query I rowsort
SELECT col1 * 25 FROM tab1 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL + col2 * - col2 + 92 * col2 AS col1 FROM tab2 cor0
----
1587
1972
2080

query II rowsort
SELECT DISTINCT + col0 * col0 AS col0, - ( - col0 ) FROM tab1
----
2601
51
7225
85
8281
91

query I rowsort
SELECT 19 - + 32 FROM tab0
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT DISTINCT - COUNT( * ) * + 28 + + COUNT( * ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-712
SELECT DISTINCT - COUNT ( * ) * + 28 + + COUNT ( * ) AS col0 FROM tab0
----
-81

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 17 + 6 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 / + - 18 + col2 + + 43 col1 FROM tab1 AS cor0 WHERE - ( - - col0 ) + + col0 * + + col2 * - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 52 AND NULL
----

query I rowsort
SELECT ALL col1 * 45 AS col0 FROM tab2
----
2295
3015
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-719
SELECT + 36 * + COUNT( DISTINCT - ( col2 ) ) AS col2 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-719
SELECT + 36 * + COUNT ( DISTINCT - ( col2 ) ) AS col2 FROM tab2
----
108

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

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

query II rowsort
SELECT DISTINCT - col1, - 33 - 11 AS col2 FROM tab0 cor0
----
-1
-44
-21
-44
-81
-44

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-724
SELECT 96 AS col0, - MAX( - - 45 ) AS col2 FROM tab0 AS cor0
----
96
-45

skipif mysql # not compatible
query II rowsort label-724
SELECT 96 AS col0, - MAX ( - - 45 ) AS col2 FROM tab0 AS cor0
----
96
-45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-725
SELECT * FROM tab2 WHERE ( NOT ( NULL BETWEEN + - col2 AND CAST( 11 AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-725
SELECT * FROM tab2 WHERE ( NOT ( NULL BETWEEN + - col2 AND CAST ( 11 AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-726
SELECT ALL - 9 + + COUNT( col1 ) DIV 35 AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-726
SELECT ALL - 9 + + COUNT ( col1 ) / 35 AS col2 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT + 16 + + + 75 + - 37 FROM tab2 AS cor0
----
54
54
54

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 + - col0 BETWEEN + col1 + - 57 AND - + 62
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-729
SELECT CAST( + 42 AS SIGNED ) + + + SUM( col1 ) * + + 89 FROM tab0 AS cor0
----
9209

skipif mysql # not compatible
query I rowsort label-729
SELECT CAST ( + 42 AS INTEGER ) + + + SUM ( col1 ) * + + 89 FROM tab0 AS cor0
----
9209

query I rowsort
SELECT - ( + 80 ) AS col1 FROM tab0
----
-80
-80
-80

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-733
SELECT CAST( - col0 AS SIGNED ) + - col2 AS col1 FROM tab0 AS cor0
----
-196
-62
-97

skipif mysql # not compatible
query I rowsort label-733
SELECT CAST ( - col0 AS INTEGER ) + - col2 AS col1 FROM tab0 AS cor0
----
-196
-62
-97

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 * + + col1 + - col1 col2 FROM tab2 AS cor0
----
-2856
-3752
-4312

query II rowsort
SELECT ALL - 6 * - col1 + + col2, ( - - col2 ) AS col0 FROM tab0 AS cor0
----
105
99
136
10
533
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-738
SELECT + + ( + COUNT( * ) ) * 10 DIV + + 41 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-738
SELECT + + ( + COUNT ( * ) ) * 10 / + + 41 AS col1 FROM tab0 AS cor0
----
0

query II rowsort
SELECT 68 AS col2, - col0 AS col0 FROM tab2
----
68
-46
68
-64
68
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-740
SELECT + CAST( NULL AS SIGNED ) AS col1, - 63 - - CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
NULL
-42
NULL
-62
NULL
18

skipif mysql # not compatible
query II rowsort label-740
SELECT + CAST ( NULL AS INTEGER ) AS col1, - 63 - - CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
NULL
-42
NULL
-62
NULL
18

query I rowsort
SELECT 50 * - col0 AS col1 FROM tab1
----
-2550
-4250
-4550

query II rowsort
SELECT - col2 AS col2, - 42 + - - ( col2 ) - col2 FROM tab0
----
-10
-42
-47
-42
-99
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-743
SELECT ALL MIN( + col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-743
SELECT ALL MIN ( + col1 ) AS col0 FROM tab0
----
1

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

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT - col1 * + + 38 / + col2 + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL - - 30 FROM tab2 WHERE NULL < + + 61
----

query I rowsort
SELECT ALL col1 * 94 FROM tab1
----
1316
4418
470

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

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

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

skipif mysql # not compatible
query I rowsort label-749
SELECT COUNT ( - ( 43 ) ) AS col0 FROM tab0 AS cor0
----
3

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

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

query II rowsort
SELECT 14 AS col2, - 61 AS col1 FROM tab2 AS cor0
----
14
-61
14
-61
14
-61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT - COUNT( * ) * MAX( - - col0 ) FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-753
SELECT - COUNT ( * ) * MAX ( - - col0 ) FROM tab0 AS cor0
----
-291

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE ( NULL <> NULL )
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-757
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( - - 35 AS SIGNED ) BETWEEN + col2 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-757
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( - - 35 AS INTEGER ) BETWEEN + col2 AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-758
SELECT - - COUNT( ALL - 80 ) + 63 + - 92 DIV - MIN( - col1 ) FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-758
SELECT - - COUNT ( ALL - 80 ) + 63 + - 92 / - MIN ( - col1 ) FROM tab2 AS cor0
----
65

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

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

query I rowsort
SELECT - col1 * + + 3 + + - col2 FROM tab0 AS cor0
----
-102
-290
-73

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + 8 col0 FROM tab1
----
13
22
55

query III rowsort
SELECT ALL * FROM tab0 WHERE + 27 / - col2 - - ( col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT MIN( ALL + + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-766
SELECT MIN ( ALL + + col0 ) FROM tab2
----
46

query III rowsort
SELECT * FROM tab0 cor0 WHERE 25 * + col0 + + + 22 + + col0 IS NULL
----

query II rowsort
SELECT - + 50 AS col0, + col2 * + - col1 AS col2 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
-50
-1173
-50
-3080
-50
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-769
SELECT DISTINCT + - col0 * col0 + - col2 * + 59 * + + 23 * + CAST( NULL AS SIGNED ) * 91 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-769
SELECT DISTINCT + - col0 * col0 + - col2 * + 59 * + + 23 * + CAST ( NULL AS INTEGER ) * 91 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT COUNT( DISTINCT + - col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-770
SELECT COUNT ( DISTINCT + - col1 ) FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT ALL col2 - 85 + - col0 AS col1 FROM tab2
----
-102
-108
-109

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

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

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

query I rowsort
SELECT DISTINCT + 58 * - - col2 + + 26 + + - col2 AS col2 FROM tab0 AS cor0
----
2705
5669
596

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 17 + + 82 BETWEEN ( + 48 ) AND + col2
----
15
81
47
87
21
10

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

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

query I rowsort
SELECT 19 * col2 * + col2 FROM tab2
----
10051
30400
63916

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT DISTINCT MIN( - col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-780
SELECT DISTINCT MIN ( - col1 ) AS col2 FROM tab2
----
-77

query I rowsort
SELECT DISTINCT - - col1 * + col2 FROM tab2 WHERE NOT - col0 <> - col0
----
1173
3080
3886

query II rowsort
SELECT col0, + col2 * col1 FROM tab0
----
15
3807
87
210
97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-783
SELECT + 38 DIV col1 AS col2 FROM tab0
----
0
1
38

skipif mysql # not compatible
query I rowsort label-783
SELECT + 38 / col1 AS col2 FROM tab0
----
0
1
38

query I rowsort
SELECT ALL + 10 AS col1 FROM tab1 WHERE NOT 11 IS NOT NULL
----

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 INNER JOIN tab0 AS cor1 ON ( NULL IS NULL )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

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

query II rowsort
SELECT + ( 75 ) AS col1, - 40 FROM tab0 AS cor0
----
75
-40
75
-40
75
-40

query II rowsort
SELECT - - 83 AS col1, - col2 + - 67 AS col1 FROM tab2 AS cor0
----
83
-107
83
-125
83
-90

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

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

query I rowsort
SELECT - - 26 + - + col0 * + + 65 AS col1 FROM tab1 AS cor0
----
-3289
-5499
-5889

query III rowsort
SELECT * FROM tab0 WHERE - 35 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-794
SELECT DISTINCT 47 + + - CAST( - ( + - 79 ) AS SIGNED ) + + col0 col0, + 1 + + col1 FROM tab1
----
19
15
53
6
59
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-794
SELECT DISTINCT 47 + + - CAST ( - ( + - 79 ) AS INTEGER ) + + col0 col0, + 1 + + col1 FROM tab1
----
19
15
53
6
59
48

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

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

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

query I rowsort
SELECT + 15 * - col0 AS col2 FROM tab1 WHERE + + col0 < NULL
----

query I rowsort
SELECT ALL - col0 + - + col1 * + col2 FROM tab0
----
-196
-297
-3822

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col2, + col2 + - + col1, - 4, - col1, col1, col2 * - + col2 * - + ( - 29 ) + + col1, col1 )
----

query I rowsort
SELECT + 61 * - + col1 FROM tab2 AS cor0
----
-3111
-4087
-4697

onlyif mysql # aggregate syntax: 
query I rowsort label-803
SELECT ALL - - SUM( ALL + - 98 ) AS col2 FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-803
SELECT ALL - - SUM ( ALL + - 98 ) AS col2 FROM tab1 AS cor0
----
-294

onlyif mysql # aggregate syntax: 
query II rowsort label-804
SELECT - COUNT( * ), - 38 AS col1 FROM tab1 AS cor0
----
-3
-38

skipif mysql # not compatible
query II rowsort label-804
SELECT - COUNT ( * ), - 38 AS col1 FROM tab1 AS cor0
----
-3
-38

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT 78 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-807
SELECT 78 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
234

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 - - - col1 + 38 + + 30 <= - col2 - - + col2 + col0 * - 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 38 NOT BETWEEN + - 69 AND NULL
----

query I rowsort
SELECT ALL + ( + - 11 ) FROM tab2 AS cor0
----
-11
-11
-11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-812
SELECT + - col0 AS col2 FROM tab1 WHERE NOT col2 * - col2 - CAST( NULL AS DECIMAL ) / - + 85 + + col2 > - col0
----

skipif mysql # not compatible
query I rowsort label-812
SELECT + - col0 AS col2 FROM tab1 WHERE NOT col2 * - col2 - CAST ( NULL AS REAL ) / - + 85 + + col2 > - col0
----

query I rowsort
SELECT ALL col1 * 36 FROM tab2 AS cor0
----
1836
2412
2772

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

onlyif mysql # DIV for integer division: 
query I rowsort label-815
SELECT ALL + ( + + 39 ) DIV + col2 + 64 AS col1 FROM tab1 AS cor0
----
64
64
64

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL + ( + + 39 ) / + col2 + 64 AS col1 FROM tab1 AS cor0
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-816
SELECT + + col1 AS col0 FROM tab2 AS cor0 WHERE col1 NOT IN ( col2 + + 76, + col2, col2 / ( + col0 ) + - + col2, - col2 * 91 / - - CAST( + col0 AS SIGNED ) / col2 + col2, col0 )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-816
SELECT + + col1 AS col0 FROM tab2 AS cor0 WHERE col1 NOT IN ( col2 + + 76, + col2, col2 / ( + col0 ) + - + col2, - col2 * 91 / - - CAST ( + col0 AS INTEGER ) / col2 + col2, col0 )
----
51
67
77

query I rowsort
SELECT col2 + - - col2 AS col2 FROM tab2 AS cor0
----
116
46
80

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 col0 FROM tab2 cor0
----
-104
-133
-69

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

query I rowsort
SELECT DISTINCT + 54 + - 97 AS col0 FROM tab1 AS cor0
----
-43

query I rowsort
SELECT + col1 FROM tab2 WHERE ( NULL <= + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-823
SELECT CAST( + + col2 AS SIGNED ) col0, col0 + - col0 + + - col2 DIV col2 AS col0 FROM tab0
----
10
-1
47
-1
99
-1

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

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

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

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

query II rowsort
SELECT + 82 AS col1, + col2 * - col2 FROM tab1
----
82
-3481
82
-4624
82
-9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-827
SELECT ALL + 63 + CAST( + - col0 AS SIGNED ) * - 6 - - 19 * - 7 * + + 68 AS col2 FROM tab1
----
-8435
-8471
-8675

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL + 63 + CAST ( + - col0 AS INTEGER ) * - 6 - - 19 * - 7 * + + 68 AS col2 FROM tab1
----
-8435
-8471
-8675

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 88 BETWEEN - - 9 AND NULL
----

query I rowsort
SELECT - - col0 - + 93 + + col2 * - col0 FROM tab1 AS cor0
----
-4938
-5023
-6190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 94 * + col1 AS col2, 0 * - + col0 + + + col2 col1 FROM tab1
----
-1316
96
-4418
68
-470
59

query I rowsort
SELECT + 76 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # DIV for integer division: 
query I rowsort label-832
SELECT + ( - + 36 ) DIV 98 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-832
SELECT + ( - + 36 ) / 98 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-834
SELECT ALL + CAST( - ( + SUM( ALL col1 ) ) AS SIGNED ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-834
SELECT ALL + CAST ( - ( + SUM ( ALL col1 ) ) AS INTEGER ) FROM tab1 AS cor0
----
-66

query II rowsort
SELECT - + col2 * + 36, 76 AS col1 FROM tab1 AS cor0
----
-2124
76
-2448
76
-3456
76

query I rowsort
SELECT - col0 * - - col0 - + col1 - - col0 + - - 93 AS col2 FROM tab0 cor0
----
-198
-7410
-9220

query I rowsort
SELECT + 60 * - 3 AS col2 FROM tab1 cor0
----
-180
-180
-180

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

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

query I rowsort
SELECT DISTINCT 62 * + col0 AS col2 FROM tab1
----
3162
5270
5642

query I rowsort
SELECT ALL 11 * + - col0 AS col1 FROM tab1
----
-1001
-561
-935

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT - 50 * + - MIN( ALL col2 ) FROM tab2
----
1150

skipif mysql # not compatible
query I rowsort label-841
SELECT - 50 * + - MIN ( ALL col2 ) FROM tab2
----
1150

query II rowsort
SELECT DISTINCT col0 AS col2, - 73 AS col1 FROM tab1 WHERE NOT NULL IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-843
SELECT 36, 35 + + COUNT( * ) AS col1 FROM tab1
----
36
38

skipif mysql # not compatible
query II rowsort label-843
SELECT 36, 35 + + COUNT ( * ) AS col1 FROM tab1
----
36
38

query II rowsort
SELECT + col2, + 45 FROM tab0
----
10
45
47
45
99
45

onlyif mysql # aggregate syntax: 
query II rowsort label-845
SELECT ALL - 77 AS col1, - COUNT( * ) * + COUNT( ALL + 49 ) * + COUNT( * ) col2 FROM tab0
----
-77
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-845
SELECT ALL - 77 AS col1, - COUNT ( * ) * + COUNT ( ALL + 49 ) * + COUNT ( * ) col2 FROM tab0
----
-77
-27

query II rowsort
SELECT DISTINCT + col1 + 17, - ( - 23 ) AS col1 FROM tab1
----
22
23
31
23
64
23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-848
SELECT 2 * - COUNT( * ) AS col1 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-848
SELECT 2 * - COUNT ( * ) AS col1 FROM tab2
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-849
SELECT - - 30 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NOT NULL < - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-849
SELECT - - 30 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NOT NULL < - CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-850
SELECT ALL + + ( - CAST( 41 AS SIGNED ) ) FROM tab0 cor0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL + + ( - CAST ( 41 AS INTEGER ) ) FROM tab0 cor0
----
-41
-41
-41

query I rowsort
SELECT + ( - + col0 ) * - 74 * - 56 * 31 - 75 * + - col2 * - - 24 AS col0 FROM tab1 AS cor0
----
-10813240
-11567824
-6378864

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 * col1 * - col2 IS NOT NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - + 93 ) - col1 col2 FROM tab2 AS cor0
----
16
26
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 88 * col2 + + col2 col2 FROM tab0 AS cor0
----
-4089
-8613
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-856
SELECT + COUNT( * ) + + + 97 * - - COUNT( * ) col2 FROM tab1 AS cor0
----
294

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

query I rowsort
SELECT col0 + - col2 - - col1 AS col0 FROM tab1
----
-31
31
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-858
SELECT DISTINCT 2 + + COUNT( * ) + + CAST( NULL AS SIGNED ) * 23 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-858
SELECT DISTINCT 2 + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) * 23 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT DISTINCT MIN( ALL 49 ) - 1 + - 1 col2 FROM tab2
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-859
SELECT DISTINCT MIN ( ALL 49 ) - 1 + - 1 col2 FROM tab2
----
47

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 ) * - + col1 * + + col2 / 91 IN ( 11 )
----

query I rowsort
SELECT - - col0 * + col2 + - + col0 FROM tab2 WHERE col0 / + col0 + - 86 IS NOT NULL
----
1012
2496
4275

query I rowsort
SELECT DISTINCT col0 + + 5 * - col1 FROM tab0
----
-18
-390
92

query I rowsort
SELECT ALL - col2 + - - 44 AS col2 FROM tab2
----
-14
21
4

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

skipif mysql # not compatible
query I rowsort label-864
SELECT ALL - + COUNT ( * ) * + SUM ( + - 65 ) + + COUNT ( * ) AS col0 FROM tab0 cor0
----
588

onlyif mysql # aggregate syntax: 
query II rowsort label-865
SELECT + MAX( - col1 ) * - 23, + 27 col2 FROM tab2 AS cor0
----
1173
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-865
SELECT + MAX ( - col1 ) * - 23, + 27 col2 FROM tab2 AS cor0
----
1173
27

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-867
SELECT ( col0 ) * - CAST( - col0 AS SIGNED ) * + + col1 AS col2 FROM tab2 cor0
----
107916
315392
376875

skipif mysql # not compatible
query I rowsort label-867
SELECT ( col0 ) * - CAST ( - col0 AS INTEGER ) * + + col1 AS col2 FROM tab2 cor0
----
107916
315392
376875

query I rowsort
SELECT DISTINCT ( + + 96 ) FROM tab1
----
96

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 58 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * - - col2 AS col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

query II rowsort
SELECT - col0 AS col2, - ( + - 75 ) FROM tab0 AS cor0
----
-15
75
-87
75
-97
75

onlyif mysql # DIV for integer division: 
query II rowsort label-874
SELECT + col0, - col1 DIV - col2 FROM tab2 AS cor0
----
46
2
64
1
75
1

skipif mysql # not compatible
query II rowsort label-874
SELECT + col0, - col1 / - col2 FROM tab2 AS cor0
----
46
2
64
1
75
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT DISTINCT + - SUM( + + col0 ) FROM tab1 WHERE NOT ( NOT 21 <= NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-878
SELECT DISTINCT + - SUM ( + + col0 ) FROM tab1 WHERE NOT ( NOT 21 <= NULL )
----
NULL

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT ( + col2 + - 74 ) < - 87
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-880
SELECT 87 DIV 3 FROM tab0
----
29
29
29

skipif mysql # not compatible
query I rowsort label-880
SELECT 87 / 3 FROM tab0
----
29
29
29

onlyif mysql # aggregate syntax: 
query II rowsort label-881
SELECT SUM( DISTINCT - 77 ) AS col2, 59 AS col1 FROM tab1 AS cor0
----
-77
59

skipif mysql # not compatible
query II rowsort label-881
SELECT SUM ( DISTINCT - 77 ) AS col2, 59 AS col1 FROM tab1 AS cor0
----
-77
59

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT COUNT( * ) * MIN( - col1 ) FROM tab2 cor0
----
-231

skipif mysql # not compatible
query I rowsort label-882
SELECT COUNT ( * ) * MIN ( - col1 ) FROM tab2 cor0
----
-231

query I rowsort
SELECT - 33 + - - col1 + + col0 + col0 FROM tab2
----
110
172
184

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-884
SELECT col2 * - - CAST( NULL AS SIGNED ) + - + 71 AS col1, col1 AS col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-884
SELECT col2 * - - CAST ( NULL AS INTEGER ) + - + 71 AS col1, col1 AS col0 FROM tab2
----
NULL
51
NULL
67
NULL
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-885
SELECT DISTINCT CAST( + MAX( ALL - col1 ) AS SIGNED ) - + + 80 FROM tab2
----
-131

skipif mysql # not compatible
query I rowsort label-885
SELECT DISTINCT CAST ( + MAX ( ALL - col1 ) AS INTEGER ) - + + 80 FROM tab2
----
-131

query II rowsort
SELECT - col1 + + 68 * - - 92 AS col0, col1 AS col2 FROM tab2
----
6179
77
6189
67
6205
51

query II rowsort
SELECT - col2 + + - ( - - col1 ) + + - col0 AS col0, + col1 FROM tab1 cor0
----
-149
5
-161
14
-206
47

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

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

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

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

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

query I rowsort
SELECT ALL - col1 * - - 60 FROM tab2 AS cor0
----
-3060
-4020
-4620

query I rowsort
SELECT DISTINCT - 49 * + + col2 * + + col2 + + - 34 + - 48 AS col0 FROM tab1 AS cor0
----
-170651
-226658
-451666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-894
SELECT ALL + 63 + + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-894
SELECT ALL + 63 + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - col1 - + - col1 FROM tab1
----
-182
-20
-2162

onlyif mysql # DIV for integer division: 
query I rowsort label-896
SELECT ALL col0 DIV - - col2 + col1 FROM tab2
----
53
68
78

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL col0 / - - col2 + col1 FROM tab2
----
53
68
78

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE + 34 <> - ( col2 )
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-898
SELECT - ( - 40 ) * + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1 FROM tab0 WHERE - col0 / + + 65 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-898
SELECT - ( - 40 ) * + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab0 WHERE - col0 / + + 65 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT - 95 + - + col1, - col0 * 8 AS col2 FROM tab2
----
-146
-368
-162
-600
-172
-512

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-900
SELECT DISTINCT - 89 - - - ( MAX( ALL - col1 ) ) * - CAST( NULL AS DECIMAL ) * + - 0 col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-900
SELECT DISTINCT - 89 - - - ( MAX ( ALL - col1 ) ) * - CAST ( NULL AS REAL ) * + - 0 col2 FROM tab1
----
NULL

query II rowsort
SELECT ALL - 56 - 9 AS col2, col0 FROM tab0
----
-65
15
-65
87
-65
97

query I rowsort
SELECT + ( - + ( - + 68 ) ) - + 42 * 15 AS col1 FROM tab1
----
-562
-562
-562

query I rowsort
SELECT - col0 * + col2 - - col0 FROM tab2
----
-1012
-2496
-4275

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 16 * - col2, - 33 col1 FROM tab0 AS cor0
----
1584
-33
160
-33
752
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT + SUM( DISTINCT 77 ) AS col2 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-907
SELECT + SUM ( DISTINCT 77 ) AS col2 FROM tab0
----
77

query II rowsort
SELECT ALL - + 59 AS col1, 77 AS col2 FROM tab0 AS cor0
----
-59
77
-59
77
-59
77

query I rowsort
SELECT ALL col2 * col1 * + 86 FROM tab2 AS cor0
----
100878
264880
334196

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 64 + - + col0 * + col2 < NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NOT 70 / col0 BETWEEN ( ( - 16 ) ) + - + 16 AND NULL
----

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE + 92 IS NULL
----

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

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

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

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

query I rowsort
SELECT + col1 - - - 66 AS col2 FROM tab0 AS cor0 WHERE NOT + 73 IS NULL
----
-45
-65
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-916
SELECT 41 + - + col0 * - + col0 col0 FROM tab0 WHERE NOT + col0 / + + ( + CAST( + - col2 AS SIGNED ) ) + col2 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-916
SELECT 41 + - + col0 * - + col0 col0 FROM tab0 WHERE NOT + col0 / + + ( + CAST ( + - col2 AS INTEGER ) ) + col2 IS NOT NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-918
SELECT + MIN ( - + col0 ) FROM tab0
----
-97

query II rowsort
SELECT col2 * + 18, 20 AS col0 FROM tab2
----
1044
20
414
20
720
20

query I rowsort
SELECT col1 + - ( - 64 ) AS col0 FROM tab1
----
111
69
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT - col2 col1, col0, - + col0 col2 FROM tab2
----
9 values hashing to 3686ab7f553ee8b0a22b85180937053f

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col0 * - col2 * - + ( + - 81 ) = + - 2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE col2 + + 88 IS NOT NULL
----
23
40
58

query II rowsort
SELECT DISTINCT + - 73 * + + col2 + + 24 AS col0, col1 FROM tab1 AS cor0
----
-4283
5
-4940
47
-6984
14

onlyif mysql # aggregate syntax: 
query I rowsort label-926
SELECT + 2 - SUM( ALL 10 ) - COUNT( * ) FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-926
SELECT + 2 - SUM ( ALL 10 ) - COUNT ( * ) FROM tab0 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT + 7 + + + COUNT( * ) * + - COUNT( DISTINCT - - col1 ) AS col2 FROM tab2 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-927
SELECT + 7 + + + COUNT ( * ) * + - COUNT ( DISTINCT - - col1 ) AS col2 FROM tab2 cor0
----
-2

query I rowsort
SELECT DISTINCT + ( + - col2 ) * - - ( col1 ) + + col1 * + col1 FROM tab0 AS cor0
----
-98
231
2754

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-929
SELECT CAST( - + 98 AS SIGNED ) + - col1 * - col2 FROM tab2 AS cor0
----
1075
2982
3788

skipif mysql # not compatible
query I rowsort label-929
SELECT CAST ( - + 98 AS INTEGER ) + - col1 * - col2 FROM tab2 AS cor0
----
1075
2982
3788

query II rowsort
SELECT - col1 + + col2, col1 FROM tab0 AS cor0
----
-11
21
-34
81
98
1

query I rowsort
SELECT ALL col0 * col1 + col2 AS col0 FROM tab2 AS cor0
----
2369
4968
5083

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

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT COUNT( * ) * 40 FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-933
SELECT COUNT ( * ) * 40 FROM tab1
----
120

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE ( 41 IS NOT NULL ) OR NULL BETWEEN NULL AND + col2 * 17
----
-1
-21
-81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-939
SELECT ALL SUM( - col0 ) + - COUNT( ALL + 95 + + ( col1 ) ) FROM tab2
----
-188

skipif mysql # not compatible
query I rowsort label-939
SELECT ALL SUM ( - col0 ) + - COUNT ( ALL + 95 + + ( col1 ) ) FROM tab2
----
-188

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-941
SELECT ALL * FROM tab2 WHERE col0 - CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-941
SELECT ALL * FROM tab2 WHERE col0 - CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 - 10 AS col1 FROM tab2
----
-61
-77
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT ALL - MIN( DISTINCT + 74 ) col0 FROM tab1
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-943
SELECT ALL - MIN ( DISTINCT + 74 ) col0 FROM tab1
----
-74

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

query I rowsort
SELECT 65 + 32 AS col2 FROM tab2
----
97
97
97

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

skipif mysql # not compatible
query I rowsort label-946
SELECT ALL CAST ( - 42 AS INTEGER ) AS col1 FROM tab0
----
-42
-42
-42

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) BETWEEN 84 + 40 AND ( + 18 * + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-948
SELECT DISTINCT col1 DIV - col1 + 76 AS col0 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-948
SELECT DISTINCT col1 / - col1 + 76 AS col0 FROM tab0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-949
SELECT + MIN( ALL + col0 ) * - CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
-138

skipif mysql # not compatible
query I rowsort label-949
SELECT + MIN ( ALL + col0 ) * - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT + ( - 89 ) * COUNT( * ) FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-950
SELECT + ( - 89 ) * COUNT ( * ) FROM tab0
----
-267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT ALL + 8 * - col0 FROM tab1
----
-408
-680
-728

query I rowsort
SELECT + 29 * + ( - col2 ) FROM tab1
----
-1711
-1972
-2784

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-954
SELECT ALL * FROM tab2 WHERE ( CAST( - 80 AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-954
SELECT ALL * FROM tab2 WHERE ( CAST ( - 80 AS REAL ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-955
SELECT * FROM tab0 WHERE NOT - 64 + CAST( NULL AS SIGNED ) NOT BETWEEN ( col1 ) AND 49
----

skipif mysql # not compatible
query III rowsort label-955
SELECT * FROM tab0 WHERE NOT - 64 + CAST ( NULL AS INTEGER ) NOT BETWEEN ( col1 ) AND 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT DISTINCT + COUNT( * ) + + 39 AS col1 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-956
SELECT DISTINCT + COUNT ( * ) + + 39 AS col1 FROM tab1
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-957
SELECT + col0 + - ( 9 + + col0 DIV + col2 ) col0 FROM tab2
----
35
54
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-957
SELECT + col0 + - ( 9 + + col0 / + col2 ) col0 FROM tab2
----
35
54
65

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

skipif mysql # not compatible
query I rowsort label-958
SELECT - COUNT ( + 85 ) + COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT ALL 74 * col2 AS col0 FROM tab0
----
3478
7326
740

onlyif mysql # aggregate syntax: 
query I rowsort label-960
SELECT ALL COUNT( * ) * COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-960
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2
----
9

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

skipif mysql # not compatible
query I rowsort label-961
SELECT DISTINCT col1 + - col2 / + col0 AS col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT MIN( ALL - 4 ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-962
SELECT MIN ( ALL - 4 ) FROM tab0
----
-4

query I rowsort
SELECT col0 * col1 - 44 * 99 AS col2 FROM tab1 WHERE NULL NOT IN ( 93 + + 83 )
----

query I rowsort
SELECT + col2 * - col2 + 51 FROM tab2
----
-1549
-3313
-478

onlyif mysql # aggregate syntax: 
query I rowsort label-965
SELECT DISTINCT 88 * + COUNT( * ) FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-965
SELECT DISTINCT 88 * + COUNT ( * ) FROM tab0
----
264

onlyif mysql # DIV for integer division: 
query I rowsort label-966
SELECT + col1 DIV 17 col0 FROM tab0 cor0
----
0
1
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-966
SELECT + col1 / 17 col0 FROM tab0 cor0
----
0
1
4

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-968
SELECT ALL - 3 * CAST( NULL AS DECIMAL ) + - COUNT( ALL - col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-968
SELECT ALL - 3 * CAST ( NULL AS REAL ) + - COUNT ( ALL - col2 ) FROM tab1
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-971
SELECT DISTINCT + col2 - + 17 DIV col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT + col2 - + 17 / col2 FROM tab1 AS cor0
----
59
68
96

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

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

skipif mysql # not compatible
query I rowsort label-973
SELECT + + MAX ( + 64 ) FROM tab2 AS cor0
----
64

query I rowsort
SELECT DISTINCT 99 * 94 AS col0 FROM tab2 AS cor0
----
9306

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + ( + col2 ) ) NOT BETWEEN ( + 31 / col0 + + 39 * - 89 ) AND 59
----
51
14
96
91
47
68

query I rowsort
SELECT DISTINCT - col2 * + col1 - 40 FROM tab2 AS cor0
----
-1213
-3120
-3926

query I rowsort
SELECT ALL - + 5 * - col0 AS col2 FROM tab1 cor0
----
255
425
455

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

onlyif mysql # DIV for integer division: 
query I rowsort label-979
SELECT + col2 DIV - 75 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-979
SELECT + col2 / - 75 FROM tab0 AS cor0
----
-1
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 / + 48 NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 18 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT MAX( + 90 ) AS col0 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-982
SELECT MAX ( + 90 ) AS col0 FROM tab2
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-983
SELECT ALL MIN( - col2 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT ( NULL ) <= col0
----
NULL

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL MIN ( - col2 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT ( NULL ) <= col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-984
SELECT COUNT( ALL - 23 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-984
SELECT COUNT ( ALL - 23 ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + 89 <= - 57 - col2 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

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

query I rowsort
SELECT - 28 * 64 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 33 FROM tab2 cor0
----
-33

query I rowsort
SELECT 81 FROM tab2 AS cor0 WHERE NOT NULL <> col2 + col0 / - 90
----

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 45 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-995
SELECT - CAST( NULL AS SIGNED ) * + MAX( + CAST( + 4 AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-995
SELECT - CAST ( NULL AS INTEGER ) * + MAX ( + CAST ( + 4 AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-996
SELECT DISTINCT col2 AS col1, - col2 DIV + - col0 FROM tab2 AS cor0
----
23
0
40
0
58
0

skipif mysql # not compatible
query II rowsort label-996
SELECT DISTINCT col2 AS col1, - col2 / + - col0 FROM tab2 AS cor0
----
23
0
40
0
58
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-997
SELECT DISTINCT col2 DIV + ( 71 ) + - CAST( + col1 + col1 AS SIGNED ) * 81 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-10854
-12474
-8262

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-997
SELECT DISTINCT col2 / + ( 71 ) + - CAST ( + col1 + col1 AS INTEGER ) * 81 col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-10854
-12474
-8262

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

onlyif mysql # DIV for integer division: 
query I rowsort label-999
SELECT DISTINCT 99 DIV col2 AS col2 FROM tab2 cor0
----
1
2
4

skipif mysql # not compatible
query I rowsort label-999
SELECT DISTINCT 99 / col2 AS col2 FROM tab2 cor0
----
1
2
4

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

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

query I rowsort
SELECT ALL col0 * + col0 + 29 FROM tab2 AS cor0
----
2145
4125
5654

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

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

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

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

query I rowsort
SELECT + 10 + + col0 AS col1 FROM tab0
----
107
25
97

query I rowsort
SELECT ALL 50 + + + col0 + - + 31 AS col2 FROM tab1
----
104
110
70

onlyif mysql # DIV for integer division: 
query I rowsort label-1007
SELECT 52 + 5 DIV + col1 AS col0 FROM tab0
----
52
52
57

skipif mysql # not compatible
query I rowsort label-1007
SELECT 52 + 5 / + col1 AS col0 FROM tab0
----
52
52
57

query I rowsort
SELECT - ( + 95 ) + - col2 + - col2 FROM tab1
----
-213
-231
-287

query I rowsort
SELECT ALL + col1 + - col1 + - col2 * 14 * - 92 * - col0 FROM tab1
----
-6306048
-6459320
-7970144

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT DISTINCT COUNT( * ) + MAX( DISTINCT 76 ) FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT COUNT ( * ) + MAX ( DISTINCT 76 ) FROM tab0
----
79

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= ( 56 - - col1 - col1 ) AND NOT - 53 NOT IN ( ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1013
SELECT + COUNT( * ) + + - ( - - MAX( - + col2 ) ) - + COUNT( * ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-1013
SELECT + COUNT ( * ) + + - ( - - MAX ( - + col2 ) ) - + COUNT ( * ) AS col1 FROM tab1
----
59

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1016
SELECT ALL ( col2 ) DIV + 3 FROM tab0 AS cor0
----
15
3
33

skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL ( col2 ) / + 3 FROM tab0 AS cor0
----
15
3
33

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1017
SELECT - 22 DIV - 26, - CAST( 17 AS SIGNED ) col1 FROM tab0 AS cor0
----
0
-17
0
-17
0
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1017
SELECT - 22 / - 26, - CAST ( 17 AS INTEGER ) col1 FROM tab0 AS cor0
----
0
-17
0
-17
0
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1018
SELECT + CAST( NULL AS SIGNED ) / - + 15 / MIN( - col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1018
SELECT + CAST ( NULL AS INTEGER ) / - + 15 / MIN ( - col1 ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + + col1 col0 FROM tab1
----
10
28
94

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

query I rowsort
SELECT ALL 50 + col0 AS col1 FROM tab0
----
137
147
65

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT + 8, col1 AS col1 FROM tab2 AS cor0
----
8
51
8
67
8
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1027
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 99 >= ( - ( - CAST( NULL AS SIGNED ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-1027
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 99 >= ( - ( - CAST ( NULL AS INTEGER ) ) )
----
0

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

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

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

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

query I rowsort
SELECT 25 FROM tab0 WHERE NOT - col0 + 48 + col0 * + + 85 NOT IN ( col1 + - col2 )
----

query I rowsort
SELECT ALL col1 - - + col1 / + col0 AS col0 FROM tab2 WHERE NOT NULL <> ( - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1033
SELECT - col1 col2, + CAST( 18 AS SIGNED ) * + 74 * + + col0 AS col0 FROM tab1
----
-14
67932
-47
121212
-5
113220

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1033
SELECT - col1 col2, + CAST ( 18 AS INTEGER ) * + 74 * + + col0 AS col0 FROM tab1
----
-14
67932
-47
121212
-5
113220

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

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 45, 10 col0 FROM tab0 AS cor0
----
45
10
45
10
45
10

onlyif mysql # DIV for integer division: 
query I rowsort label-1036
SELECT - + col0 * - col1 DIV col1 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1036
SELECT - + col0 * - col1 / col1 FROM tab2 cor0
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1037
SELECT - + COUNT( * ), + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-1037
SELECT - + COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
-3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, col1 AS col2 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1040
SELECT DISTINCT * FROM tab2 WHERE ( CAST( - 3 AS SIGNED ) ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-1040
SELECT DISTINCT * FROM tab2 WHERE ( CAST ( - 3 AS INTEGER ) ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT DISTINCT 87 + + COUNT( * ) AS col1 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-1041
SELECT DISTINCT 87 + + COUNT ( * ) AS col1 FROM tab1
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT - - 43 * 48 * + col1 * - - col2 + + col2 IN ( - 85 )
----
3

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT - - 43 * 48 * + col1 * - - col2 + + col2 IN ( - 85 )
----
3

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

skipif mysql # not compatible
query I rowsort label-1043
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) + + 52 FROM tab0
----
55

query I rowsort
SELECT - + 27 + + col0 AS col2 FROM tab1 AS cor0
----
24
58
64

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1049
SELECT ALL + MIN( - col2 ) * CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) + + + 66 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1049
SELECT ALL + MIN ( - col2 ) * CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) + + + 66 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1050
SELECT - - COUNT( * ), COUNT( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-1050
SELECT - - COUNT ( * ), COUNT ( * ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1051
SELECT DISTINCT + COUNT( * ) + + - 10 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-1051
SELECT DISTINCT + COUNT ( * ) + + - 10 FROM tab1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1052
SELECT * FROM tab2 WHERE - + col0 IN ( col0 * - - col0 + + 2 - col1 * - CAST( + col2 AS SIGNED ) / col0 - 39 )
----

skipif mysql # not compatible
query III rowsort label-1052
SELECT * FROM tab2 WHERE - + col0 IN ( col0 * - - col0 + + 2 - col1 * - CAST ( + col2 AS INTEGER ) / col0 - 39 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 67 IS NOT NULL
----

query II rowsort
SELECT 75 AS col0, AVG ( DISTINCT - col0 ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
75
NULL

query II rowsort
SELECT DISTINCT - 3 AS col2, + col1 + + col2 AS col0 FROM tab2
----
-3
117
-3
125
-3
74

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

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

query I rowsort
SELECT DISTINCT - 78 - + 81 FROM tab1 AS cor0
----
-159

onlyif mysql # DIV for integer division: 
query I rowsort label-1058
SELECT + col0 + - + col2 DIV 63 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1058
SELECT + col0 + - + col2 / 63 FROM tab2 cor0
----
46
64
75

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

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

query I rowsort
SELECT DISTINCT - col0 * 54 FROM tab1 AS cor0
----
-2754
-4590
-4914

query I rowsort
SELECT + 57 - 63 + - - 72 + col2 + - - 60 FROM tab0 WHERE ( + - 87 ) IS NOT NULL
----
136
173
225

query I rowsort
SELECT DISTINCT 32 - 25 * col0 FROM tab1
----
-1243
-2093
-2243

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

query II rowsort
SELECT - ( col1 ), 19 + + + 27 AS col2 FROM tab0
----
-1
46
-21
46
-81
46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT ALL ( + MIN( ALL col1 ) ) * - COUNT( * ) - + 69 FROM tab2 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-1066
SELECT ALL ( + MIN ( ALL col1 ) ) * - COUNT ( * ) - + 69 FROM tab2 AS cor0
----
-222

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT ALL SUM( + + ( + col2 ) ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-1068
SELECT ALL SUM ( + + ( + col2 ) ) FROM tab1 cor0
----
223

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

query I rowsort
SELECT - + col1 + + + col0 FROM tab0 AS cor0 WHERE NOT col0 + - col2 > + + 90
----
-66
66
96

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - col1
----

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

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

query I rowsort
SELECT ALL - ( - 24 ) FROM tab0
----
24
24
24

query I rowsort
SELECT ALL 51 * + 49 AS col0 FROM tab1
----
2499
2499
2499

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT 79 - - MIN( ALL + col2 ) FROM tab0 AS cor0 WHERE NOT NULL >= col2 + - + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1077
SELECT 79 - - MIN ( ALL + col2 ) FROM tab0 AS cor0 WHERE NOT NULL >= col2 + - + col0
----
NULL

query I rowsort
SELECT - 95 + - col2 - - col2 * - col2 FROM tab0 AS cor0
----
-205
-2351
-9995

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1080
SELECT 19 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-1080
SELECT 19 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
22

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col2 * + col0 col0 FROM tab1
----
249696
426275
563108

query I rowsort
SELECT DISTINCT 92 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT + + SUM( 55 ) * + + COUNT( * ) * + + MAX( - + col2 ) FROM tab2 AS cor0
----
-11385

skipif mysql # not compatible
query I rowsort label-1085
SELECT + + SUM ( 55 ) * + + COUNT ( * ) * + + MAX ( - + col2 ) FROM tab2 AS cor0
----
-11385

query I rowsort
SELECT - col2 - + col2 * col1 + - - col0 FROM tab2 AS cor0
----
-1150
-3056
-3869

query I rowsort
SELECT ALL 20 AS col2 FROM tab2 cor0
----
20
20
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 42 + + col2 + - col2 * + - col2 * - + col2 col0 FROM tab1 AS cor0
----
-205362
-314406
-884682

query I rowsort
SELECT DISTINCT 72 + + col2 FROM tab0
----
119
171
82

onlyif mysql # DIV for integer division: 
query II rowsort label-1090
SELECT ALL - col0 DIV col0 + - + col1 + - col2 + - col1 AS col2, 9 FROM tab1
----
-125
9
-163
9
-70
9

skipif mysql # not compatible
query II rowsort label-1090
SELECT ALL - col0 / col0 + - + col1 + - col2 + - col1 AS col2, 9 FROM tab1
----
-125
9
-163
9
-70
9

query I rowsort
SELECT ALL col0 + - 45 FROM tab1
----
40
46
6

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

query III rowsort
SELECT * FROM tab2 WHERE ( 81 / col0 - - 6 ) IS NULL
----

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

query I rowsort
SELECT + col0 + + + col2 * + ( + col1 ) FROM tab0
----
196
297
3822

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

query I rowsort
SELECT ALL col0 * 80 * - col1 - - col1 + - 22 AS col0 FROM tab1
----
-34017
-342135
-57128

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT DISTINCT 25 * + COUNT( DISTINCT + + 52 ) * 26 AS col2 FROM tab1, tab2 AS cor0
----
650

skipif mysql # not compatible
query I rowsort label-1098
SELECT DISTINCT 25 * + COUNT ( DISTINCT + + 52 ) * 26 AS col2 FROM tab1, tab2 AS cor0
----
650

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - 67 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT - - COUNT( * ) * 68 + - + 75 * 94 AS col1 FROM tab2 cor0
----
-6846

skipif mysql # not compatible
query I rowsort label-1101
SELECT - - COUNT ( * ) * 68 + - + 75 * 94 AS col1 FROM tab2 cor0
----
-6846

query II rowsort
SELECT + - col1 - col2 AS col2, 8 FROM tab0 AS cor0
----
-100
8
-128
8
-31
8

query I rowsort
SELECT ALL - 47 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 6942a0d9558277afd0d00408d65cf5aa

onlyif mysql # DIV for integer division: 
query I rowsort label-1104
SELECT DISTINCT col0 DIV 29 AS col0 FROM tab1
----
1
2
3

skipif mysql # not compatible
query I rowsort label-1104
SELECT DISTINCT col0 / 29 AS col0 FROM tab1
----
1
2
3

query II rowsort
SELECT DISTINCT - col1 AS col0, - col2 * + col2 + + col1 AS col2 FROM tab0
----
-1
-9800
-21
-79
-81
-2128

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

query III rowsort
SELECT * FROM tab2 WHERE NULL = 88 * + 31 AND NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT DISTINCT SUM( DISTINCT 21 ) AS col1 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT SUM ( DISTINCT 21 ) AS col1 FROM tab1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1109
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-1109
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

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

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

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

query II rowsort
SELECT DISTINCT - 47 * - 99 * - col1 AS col2, - 41 * + - col0 * + col2 + col1 + + col1 FROM tab0 AS cor0
----
-376893
29067
-4653
393725
-97713
35712

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1113
SELECT - - CAST( NULL AS SIGNED ), col0 - - + col2 AS col1 FROM tab2 AS cor0
----
NULL
104
NULL
133
NULL
69

skipif mysql # not compatible
query II rowsort label-1113
SELECT - - CAST ( NULL AS INTEGER ), col0 - - + col2 AS col1 FROM tab2 AS cor0
----
NULL
104
NULL
133
NULL
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 41 - + + col0 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 43 BETWEEN + col1 AND + + ( - 19 ) * - 47 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1116
SELECT + col1 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN col2 AND ( + ( - - 4 ) + - + CAST( 23 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1116
SELECT + col1 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN col2 AND ( + ( - - 4 ) + - + CAST ( 23 AS INTEGER ) )
----

query I rowsort
SELECT ALL + col1 * col1 * + col0 AS col0 FROM tab2 AS cor0
----
119646
336675
379456

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

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

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

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

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

query II rowsort
SELECT DISTINCT + col1, + col2 AS col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

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

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

query I rowsort
SELECT ALL + 82 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT + ( - + MAX( DISTINCT - ( 98 ) ) ) FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-1125
SELECT + ( - + MAX ( DISTINCT - ( 98 ) ) ) FROM tab1
----
98

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1127
SELECT CAST( + 21 AS SIGNED ) * col1 FROM tab2
----
1071
1407
1617

skipif mysql # not compatible
query I rowsort label-1127
SELECT CAST ( + 21 AS INTEGER ) * col1 FROM tab2
----
1071
1407
1617

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT COUNT( ALL - 16 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1128
SELECT COUNT ( ALL - 16 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-1129
SELECT ALL + 93 + col2 - - - col0 DIV - + col1 col1, - col0 - + col2 AS col2 FROM tab0 AS cor0
----
107
-97
140
-62
289
-196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1129
SELECT ALL + 93 + col2 - - - col0 / - + col1 col1, - col0 - + col2 AS col2 FROM tab0 AS cor0
----
107
-97
140
-62
289
-196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1130
SELECT + SUM( ALL col1 ) DIV COUNT( * ) col1 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1130
SELECT + SUM ( ALL col1 ) / COUNT ( * ) col1 FROM tab0 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1131
SELECT DISTINCT - ( + 62 ) * MIN( DISTINCT - col1 ) - - 35 + - - COUNT( * ) + + 1 AS col1 FROM tab1 AS cor0
----
2953

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT - ( + 62 ) * MIN ( DISTINCT - col1 ) - - 35 + - - COUNT ( * ) + + 1 AS col1 FROM tab1 AS cor0
----
2953

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

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

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

query I rowsort
SELECT + + ( + col1 ) + - ( + col0 ) FROM tab2 AS cor0
----
-8
13
5

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col0 * + col0 IN ( + + 58, + col0 + - col0, + 19 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 29 * col2 FROM tab0 AS cor0
----
1363
2871
290

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

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

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

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

query I rowsort
SELECT ALL - col1 + + + col0 * + - 51 AS col1 FROM tab1
----
-2615
-4340
-4688

query I rowsort
SELECT 51 - - + col2 FROM tab1
----
110
119
147

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT DISTINCT 81 * + MAX( ALL - 65 ) col2 FROM tab1
----
-5265

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1141
SELECT DISTINCT 81 * + MAX ( ALL - 65 ) col2 FROM tab1
----
-5265

query I rowsort
SELECT - col2 - - col0 FROM tab0 cor0
----
-2
-32
77

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

query I rowsort
SELECT DISTINCT col2 * + col2 * 55 FROM tab2 cor0
----
185020
29095
88000

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

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

skipif mysql # not compatible
query I rowsort label-1146
SELECT - - SUM ( - - col2 ) - + 43 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 28 + 44 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
23
40
58

query II rowsort
SELECT ALL - - col1 * + 56, col2 FROM tab2 AS cor0
----
2856
23
3752
58
4312
40

query I rowsort
SELECT ALL + + 44 * 30 * - - 24 AS col2 FROM tab1 AS cor0
----
31680
31680
31680

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1152
SELECT DISTINCT - 70 DIV col1 * - CAST( - col0 AS SIGNED ) * 99 AS col1 FROM tab0 AS cor0
----
-25839
-672210
0

skipif mysql # not compatible
query I rowsort label-1152
SELECT DISTINCT - 70 / col1 * - CAST ( - col0 AS INTEGER ) * 99 AS col1 FROM tab0 AS cor0
----
-25839
-672210
0

query I rowsort
SELECT ALL - col0 * ( - col1 ) FROM tab1 cor0
----
425
4277
714

query I rowsort
SELECT ALL - - 81 AS col2 FROM tab2 cor0
----
81
81
81

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

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

query I rowsort
SELECT ALL 73 + col0 AS col2 FROM tab0
----
160
170
88

query II rowsort
SELECT + col0, - col1 * + 84 FROM tab0
----
15
-6804
87
-1764
97
-84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1158
SELECT COUNT( * ) DIV + 81 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1158
SELECT COUNT ( * ) / + 81 AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT DISTINCT SUM( - - col2 ) + - 15 FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-1159
SELECT DISTINCT SUM ( - - col2 ) + - 15 FROM tab0
----
141

query I rowsort
SELECT DISTINCT + 47 * - 28 FROM tab1
----
-1316

query I rowsort
SELECT ALL - 36 * + col2 FROM tab2
----
-1440
-2088
-828

query I rowsort
SELECT DISTINCT + ( 25 ) FROM tab1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT 91 + - COUNT( * ) FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-1163
SELECT 91 + - COUNT ( * ) FROM tab2
----
88

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 AS cor0 WHERE NOT + 75 IS NOT NULL
----

query I rowsort
SELECT + + col0 * - - col1 + 84 * + - col0 FROM tab2 cor0
----
-1275
-1518
-448

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

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

query I rowsort
SELECT DISTINCT - + 48 * col1 + - 74 + + - col1 + col2 FROM tab1 AS cor0
----
-2309
-260
-664

query I rowsort
SELECT - 91 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT + COUNT( * ) * + 75 * 64 * - MIN( - col1 ) AS col0 FROM tab0 AS cor0 WHERE + col2 - ( - - ( col0 ) ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1170
SELECT + COUNT ( * ) * + 75 * 64 * - MIN ( - col1 ) AS col0 FROM tab0 AS cor0 WHERE + col2 - ( - - ( col0 ) ) BETWEEN NULL AND NULL
----
NULL

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

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

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

query I rowsort
SELECT + col0 + + col2 * - + col2 FROM tab1 AS cor0
----
-3396
-4533
-9165

onlyif mysql # DIV for integer division: 
query II rowsort label-1175
SELECT ALL + col2 DIV - + 3 + + col0 - - col0, col0 AS col1 FROM tab2 cor0
----
115
64
131
75
85
46

skipif mysql # not compatible
query II rowsort label-1175
SELECT ALL + col2 / - + 3 + + col0 - - col0, col0 AS col1 FROM tab2 cor0
----
115
64
131
75
85
46

query I rowsort
SELECT + ( - col1 ) + + 92 FROM tab2 AS cor0
----
15
25
41

onlyif mysql # DIV for integer division: 
query I rowsort label-1177
SELECT col0 * + col2 DIV + + col2 + + ( 29 ) AS col2 FROM tab2 AS cor0
----
104
75
93

skipif mysql # not compatible
query I rowsort label-1177
SELECT col0 * + col2 / + + col2 + + ( 29 ) AS col2 FROM tab2 AS cor0
----
104
75
93

query I rowsort
SELECT + + 98 + + 40 FROM tab1 AS cor0
----
138
138
138

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1181
SELECT ALL + 14 - + COUNT( * ) AS col1 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-1181
SELECT ALL + 14 - + COUNT ( * ) AS col1 FROM tab0
----
11

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NULL < 66
----

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

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

query I rowsort
SELECT - 11 * + col0 FROM tab2 cor0
----
-506
-704
-825

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

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

query I rowsort
SELECT - 81 + - 44 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 23726b3acc81d0da778ac9662bc92c2b

query II rowsort
SELECT col2, col1 * - - 40 FROM tab1 AS cor0
----
59
200
68
1880
96
560

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1191
SELECT CAST( - col0 AS SIGNED ) * col2 + col0 AS col1 FROM tab0 AS cor0 WHERE NOT 26 * - + col1 IS NULL
----
-690
-783
-9506

skipif mysql # not compatible
query I rowsort label-1191
SELECT CAST ( - col0 AS INTEGER ) * col2 + col0 AS col1 FROM tab0 AS cor0 WHERE NOT 26 * - + col1 IS NULL
----
-690
-783
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT + + 18 + - ( - - MAX( + col1 ) ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-1192
SELECT + + 18 + - ( - - MAX ( + col1 ) ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-1193
SELECT - col0 * + col0 + - col1 DIV + - col2 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-1193
SELECT - col0 * + col0 + - col1 / + - col2 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT + col2 + col0 + - - col1 FROM tab0 AS cor0
----
118
143
197

query I rowsort
SELECT 51 + - col0 FROM tab1 AS cor0
----
-34
-40
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1197
SELECT DISTINCT CAST( - col2 AS SIGNED ) * - + 66 FROM tab1
----
3894
4488
6336

skipif mysql # not compatible
query I rowsort label-1197
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * - + 66 FROM tab1
----
3894
4488
6336

query I rowsort
SELECT ALL 82 * 80 * 75 FROM tab1
----
492000
492000
492000

onlyif mysql # aggregate syntax: 
query I rowsort label-1199
SELECT DISTINCT 22 + + COUNT( * ) AS col1 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-1199
SELECT DISTINCT 22 + + COUNT ( * ) AS col1 FROM tab1
----
25

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1200
SELECT ALL * FROM tab0 WHERE NOT - - CAST( NULL AS DECIMAL ) - + col1 = - + 91
----

skipif mysql # not compatible
query III rowsort label-1200
SELECT ALL * FROM tab0 WHERE NOT - - CAST ( NULL AS REAL ) - + col1 = - + 91
----

query I rowsort
SELECT ALL - col2 + + - 94 FROM tab0
----
-104
-141
-193

query I rowsort
SELECT DISTINCT ( + - col2 ) * + 19 AS col1 FROM tab2
----
-1102
-437
-760

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 BETWEEN + 35 AND NULL
----

query II rowsort
SELECT ALL 56 * - col0 AS col2, + 58 FROM tab2
----
-2576
58
-3584
58
-4200
58

query I rowsort
SELECT - + col1 * + col0 * - - 38 AS col0 FROM tab0 AS cor0
----
-3686
-46170
-69426

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

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

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

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

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

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

query I rowsort
SELECT 42 + - 99 * col2 FROM tab0
----
-4611
-948
-9759

onlyif mysql # DIV for integer division: 
query I rowsort label-1211
SELECT ALL 74 - 62 DIV 75 * col1 AS col1 FROM tab0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL 74 - 62 / 75 * col1 AS col1 FROM tab0
----
74
74
74

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

query I rowsort
SELECT + 9 * 22 + + 51 + 37 AS col1 FROM tab2
----
286
286
286

onlyif mysql # aggregate syntax: 
query I rowsort label-1214
SELECT COUNT( * ) + - SUM( ALL - + col1 ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-1214
SELECT COUNT ( * ) + - SUM ( ALL - + col1 ) FROM tab1
----
69

query I rowsort
SELECT - 92 * + 48 AS col1 FROM tab0 AS cor0
----
-4416
-4416
-4416

query I rowsort
SELECT DISTINCT - ( ( ( 72 ) ) ) - col0 FROM tab2 AS cor0
----
-118
-136
-147

query I rowsort
SELECT DISTINCT + + 64 AS col0 FROM tab1 AS cor0
----
64

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 <= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

skipif mysql # not compatible
query I rowsort label-1221
SELECT + col0 / - - 59 AS col0 FROM tab0
----
0
1
1

query I rowsort
SELECT ( + + col1 ) * - 64 + col2 + + - col1 * + 94 FROM tab1
----
-2116
-731
-7358

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

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

query I rowsort
SELECT ALL - + 90 AS col2 FROM tab1 cor0
----
-90
-90
-90

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

query I rowsort
SELECT + - ( 18 ) FROM tab0 cor0
----
-18
-18
-18

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

query I rowsort
SELECT - ( - 63 ) AS col0 FROM tab0 AS cor0
----
63
63
63

onlyif mysql # aggregate syntax: 
query II rowsort label-1230
SELECT ( + MIN( - 55 ) ) AS col1, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-55
3

skipif mysql # not compatible
query II rowsort label-1230
SELECT ( + MIN ( - 55 ) ) AS col1, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-55
3

query I rowsort
SELECT ALL - 42 + + - col1 * - 51 AS col1 FROM tab1 AS cor0
----
213
2355
672

onlyif mysql # aggregate syntax: 
query II rowsort label-1232
SELECT MAX( + col0 ) AS col0, + 81 AS col0 FROM tab2
----
75
81

skipif mysql # not compatible
query II rowsort label-1232
SELECT MAX ( + col0 ) AS col0, + 81 AS col0 FROM tab2
----
75
81

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

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

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

query I rowsort
SELECT col0 + + 15 FROM tab1
----
100
106
66

query I rowsort
SELECT + col0 + + + col1 AS col1 FROM tab2
----
141
142
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( - 54 * col0 - + col1 * - ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT - - ( + + ( - 18 ) ) + COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-1238
SELECT - - ( + + ( - 18 ) ) + COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
-15

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

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

query II rowsort
SELECT ALL - + 86, col2 AS col0 FROM tab1 cor0
----
-86
59
-86
68
-86
96

query II rowsort
SELECT DISTINCT - 56 AS col1, - 56 * - ( + col1 ) FROM tab1 AS cor0
----
-56
2632
-56
280
-56
784

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

query I rowsort
SELECT DISTINCT 13 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
13

query I rowsort
SELECT 66 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 43 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1246
SELECT DISTINCT - - COUNT( * ) - - MIN( col1 ) DIV + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-1246
SELECT DISTINCT - - COUNT ( * ) - - MIN ( col1 ) / + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
20

query II rowsort
SELECT DISTINCT 41 * - 53, 82 AS col0 FROM tab1 AS cor0
----
-2173
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT - COUNT( * ) + - - 69 AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-1248
SELECT - COUNT ( * ) + - - 69 AS col1 FROM tab1 AS cor0
----
66

query II rowsort
SELECT DISTINCT col0 / - col2 AS col2, col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 45 + + + 1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1251
SELECT DISTINCT + COUNT( * ) * + 69 AS col1 FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-1251
SELECT DISTINCT + COUNT ( * ) * + 69 AS col1 FROM tab0 AS cor0
----
207

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

query II rowsort
SELECT col2 * + + col2, 22 + + 65 / ( + 64 ) * - 6 FROM tab0 cor0 WHERE NOT col1 * + col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1254
SELECT DISTINCT + CAST( - col1 AS SIGNED ) DIV + col0 AS col2 FROM tab0 AS cor0
----
-5
0

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + + ( + col1 ), + col1 * + col2 * 73 / - 63, + col2 + - ( + col2 ) - - + ( - col2 ) * + + col1 * - 6, col1 )
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1260
SELECT - col0 AS col0, 58 DIV col0 AS col2 FROM tab0 AS cor0
----
-15
3
-87
0
-97
0

skipif mysql # not compatible
query II rowsort label-1260
SELECT - col0 AS col0, 58 / col0 AS col2 FROM tab0 AS cor0
----
-15
3
-87
0
-97
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1261
SELECT + 32 col0, 98 DIV - 68 AS col2 FROM tab2 AS cor0
----
32
-1
32
-1
32
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1261
SELECT + 32 col0, 98 / - 68 AS col2 FROM tab2 AS cor0
----
32
-1
32
-1
32
-1

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

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

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

query I rowsort
SELECT + col2 + 93 * - 9 + col0 + + 11 * + + col2 AS col1 FROM tab0 AS cor0
----
-258
-630
448

query I rowsort
SELECT + - 79 + - + col0 FROM tab2 AS cor0
----
-125
-143
-154

query I rowsort
SELECT - ( 87 ) + + + 57 + - col2 + - - col2 * - 5 FROM tab1 AS cor0
----
-384
-438
-606

query I rowsort
SELECT + + col0 + 49 FROM tab0 cor0
----
136
146
64

query I rowsort
SELECT + - 21 + - col0 * - col1 FROM tab0 AS cor0 WHERE - col1 <> NULL
----

query I rowsort
SELECT + 18 + + col1 AS col0 FROM tab2 AS cor0
----
69
85
95

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1271
SELECT + MAX ( + col1 ) col2 FROM tab1
----
47

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

query I rowsort
SELECT ALL ( 4 ) FROM tab1 WHERE col0 IS NOT NULL
----
4
4
4

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

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

query I rowsort
SELECT DISTINCT - col2 + - - col0 * col2 AS col1 FROM tab0
----
658
860
9504

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT DISTINCT + ( + 59 ) * - SUM( + 33 ) AS col2 FROM tab1 AS cor0
----
-5841

skipif mysql # not compatible
query I rowsort label-1277
SELECT DISTINCT + ( + 59 ) * - SUM ( + 33 ) AS col2 FROM tab1 AS cor0
----
-5841

query I rowsort
SELECT DISTINCT - - col1 * 65 * - col2 * + col1 AS col1 FROM tab2 AS cor0
----
-15415400
-16923530
-3888495

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1280
SELECT ALL - + COUNT( * ) DIV + COUNT( * ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1280
SELECT ALL - + COUNT ( * ) / + COUNT ( * ) FROM tab1 cor0
----
-1

query I rowsort
SELECT + 20 * - + ( - ( + col0 ) ) FROM tab2 AS cor0
----
1280
1500
920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - 72 * col1 * + 57 col2 FROM tab1
----
-1210680
-13116384
-5515776

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1283
SELECT * FROM tab1 WHERE NOT - col0 * - + col2 - col1 NOT BETWEEN NULL AND ( - - CAST( NULL AS DECIMAL ) ) OR NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1283
SELECT * FROM tab1 WHERE NOT - col0 * - + col2 - col1 NOT BETWEEN NULL AND ( - - CAST ( NULL AS REAL ) ) OR NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * - 48, + 95 col2 FROM tab0
----
-2256
95
-4752
95
-480
95

query I rowsort
SELECT DISTINCT col2 * 5 FROM tab2
----
115
200
290

query II rowsort
SELECT + 29 AS col0, + col1 AS col0 FROM tab2 WHERE NOT - col1 = col2
----
29
51
29
67
29
77

onlyif mysql # DIV for integer division: 
query I rowsort label-1287
SELECT ALL col2 DIV 55 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL col2 / 55 FROM tab0 cor0
----
0
0
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 92 + - 26 NOT BETWEEN NULL AND + + 25 + col2
----

query I rowsort
SELECT col1 * - + 78 FROM tab0
----
-1638
-6318
-78

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 IN ( - col2, - col1 )
----

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

query II rowsort
SELECT - 75 AS col1, + col2 + + 42 AS col2 FROM tab0 AS cor0
----
-75
141
-75
52
-75
89

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 - col1 IS NULL
----

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

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

query I rowsort
SELECT 9 + - col0 AS col1 FROM tab2
----
-37
-55
-66

onlyif mysql # DIV for integer division: 
query II rowsort label-1301
SELECT + 37 DIV - col0 * + ( + - col1 ) DIV - col2 + - 23 * col0 AS col0, col2 FROM tab2
----
-1058
23
-1472
40
-1725
58

skipif mysql # not compatible
query II rowsort label-1301
SELECT + 37 / - col0 * + ( + - col1 ) / - col2 + - 23 * col0 AS col0, col2 FROM tab2
----
-1058
23
-1472
40
-1725
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1302
SELECT DISTINCT + col0 + + ( - - col1 ) * col2 * 47 DIV col1 FROM tab0
----
2224
4750
557

skipif mysql # not compatible
query I rowsort label-1302
SELECT DISTINCT + col0 + + ( - - col1 ) * col2 * 47 / col1 FROM tab0
----
2224
4750
557

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1304
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1304
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

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

query I rowsort
SELECT ALL col0 * 47 AS col0 FROM tab2 cor0
----
2162
3008
3525

onlyif mysql # aggregate syntax: 
query I rowsort label-1307
SELECT DISTINCT - - MIN( col0 ) * 15 + SUM( col1 ) * 77 FROM tab2 AS cor0
----
15705

skipif mysql # not compatible
query I rowsort label-1307
SELECT DISTINCT - - MIN ( col0 ) * 15 + SUM ( col1 ) * 77 FROM tab2 AS cor0
----
15705

query I rowsort
SELECT - 19 * - col0 * - - 1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( + 11 / + col1, - col2 + + col2, col2 )
----

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

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

query I rowsort
SELECT DISTINCT - col0 * + 19 FROM tab1 AS cor0
----
-1615
-1729
-969

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

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

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

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

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

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

query I rowsort
SELECT - col1 * col0 * 33 AS col0 FROM tab2 cor0
----
-162624
-165825
-77418

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

query I rowsort
SELECT col2 * - - 90 FROM tab2
----
2070
3600
5220

query I rowsort
SELECT DISTINCT - 76 * 81 AS col1 FROM tab0
----
-6156

query I rowsort
SELECT DISTINCT 90 * - col2 FROM tab2
----
-2070
-3600
-5220

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1320
SELECT ALL - col1 * CAST( NULL AS SIGNED ), - col2 AS col2 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-1320
SELECT ALL - col1 * CAST ( NULL AS INTEGER ), - col2 AS col2 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

query I rowsort
SELECT 11 AS col1 FROM tab0 cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT DISTINCT + + 16 * SUM( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
3120

skipif mysql # not compatible
query I rowsort label-1322
SELECT DISTINCT + + 16 * SUM ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
3120

query I rowsort
SELECT DISTINCT col1 + - - col2 AS col2 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1324
SELECT 44 DIV - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-1324
SELECT 44 / - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE - col2 * - - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1325
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE - col2 * - - col2 IS NOT NULL
----
3

query I rowsort
SELECT - ( - 78 ) AS col0 FROM tab1 AS cor0
----
78
78
78

query II rowsort
SELECT ALL + col1 * + col2 AS col1, - 23 + col0 AS col2 FROM tab1
----
1344
28
295
62
3196
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1328
SELECT ALL + ( + MAX( DISTINCT + col0 ) ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1328
SELECT ALL + ( + MAX ( DISTINCT + col0 ) ) AS col1 FROM tab1 AS cor0
----
91

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1330
SELECT DISTINCT 73 DIV COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-1330
SELECT DISTINCT 73 / COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
27

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

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

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

query I rowsort
SELECT DISTINCT ( + col2 ) + - 32 + - + col0 FROM tab0 AS cor0
----
-109
-30
0

query I rowsort
SELECT DISTINCT 36 + 38 + col2 * - + col2 AS col2 FROM tab0
----
-2135
-26
-9727

query I rowsort
SELECT col1 * + col0 + + + 18 FROM tab1 WHERE ( + ( 36 ) ) < NULL
----

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

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

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

query I rowsort
SELECT col2 - - - col0 FROM tab1
----
-23
-26
45

query III rowsort
SELECT * FROM tab2 WHERE ( + 53 ) <= ( NULL )
----

query I rowsort
SELECT - 52 / 14 AS col2 FROM tab0 WHERE + col2 * - 23 IN ( 62, - 67 + - col2, + + col1, + - col0 )
----

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

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

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

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

query I rowsort
SELECT DISTINCT + 62 * - + 22 - col2 FROM tab0 AS cor0
----
-1374
-1411
-1463

query I rowsort
SELECT DISTINCT - 7 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-7

query II rowsort
SELECT ( + + col0 ) AS col2, + col2 * + col2 FROM tab2
----
46
529
64
1600
75
3364

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1349
SELECT ALL ( + MIN( DISTINCT - - col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1349
SELECT ALL ( + MIN ( DISTINCT - - col1 ) ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT - MAX( - col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-1350
SELECT - MAX ( - col1 ) AS col2 FROM tab1
----
5

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1352
SELECT DISTINCT 54 * + - ( - 5 ) AS col1, col1 DIV + 84 FROM tab1
----
270
0

skipif mysql # not compatible
query II rowsort label-1352
SELECT DISTINCT 54 * + - ( - 5 ) AS col1, col1 / + 84 FROM tab1
----
270
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT MAX( DISTINCT - col0 ) * - - SUM( DISTINCT + 81 ) FROM tab0
----
-1215

skipif mysql # not compatible
query I rowsort label-1353
SELECT MAX ( DISTINCT - col0 ) * - - SUM ( DISTINCT + 81 ) FROM tab0
----
-1215

query I rowsort
SELECT col1 * + 53 AS col2 FROM tab0
----
1113
4293
53

query III rowsort
SELECT * FROM tab2 WHERE NOT - 88 - + - 61 = NULL
----

query I rowsort
SELECT 23 FROM tab1 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1357
SELECT + 53 DIV + 75 col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1357
SELECT + 53 / + 75 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 28 * 99 FROM tab2
----
2772
2772
2772

onlyif mysql # aggregate syntax: 
query I rowsort label-1359
SELECT DISTINCT + MAX( ALL 1 ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND - 18
----
NULL

skipif mysql # not compatible
query I rowsort label-1359
SELECT DISTINCT + MAX ( ALL 1 ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND - 18
----
NULL

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND + + 11 + - col1 AND - col0 + col0 <= - + 33
----

query I rowsort
SELECT DISTINCT - - 47 FROM tab0 AS cor0
----
47

query I rowsort
SELECT ALL 55 * - col2 AS col2 FROM tab2 cor0
----
-1265
-2200
-3190

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

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

query II rowsort
SELECT ALL + 82 + + - col0 AS col2, + 2 * + - col2 FROM tab1
----
-3
-118
-9
-136
31
-192

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT ALL - 79 - + + MAX( DISTINCT - 9 ) FROM tab0 WHERE col1 IS NOT NULL
----
-70

skipif mysql # not compatible
query I rowsort label-1371
SELECT ALL - 79 - + + MAX ( DISTINCT - 9 ) FROM tab0 WHERE col1 IS NOT NULL
----
-70

query I rowsort
SELECT - ( + + 51 ) + col1 + + - col1 * + col2 + - 87 FROM tab0
----
-236
-327
-3864

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

query I rowsort
SELECT + - col1 + - col2 AS col2 FROM tab0 WHERE col0 IS NOT NULL
----
-100
-128
-31

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

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

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 * - 35 + + col2 NOT BETWEEN col1 * - col2 * + col2 AND NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1378
SELECT ALL + col2 + 42 + + + 69 + + + 93 + + - col0 AS col2, + col2 + 33 + + ( - 85 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 + - + col2 AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query II rowsort label-1378
SELECT ALL + col2 + 42 + + + 69 + + + 93 + + - col0 AS col2, + col2 + 33 + + ( - 85 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 + - + col2 AND CAST ( NULL AS REAL )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1380
SELECT + - CAST( NULL AS SIGNED ) AS col1, col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-1380
SELECT + - CAST ( NULL AS INTEGER ) AS col1, col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 1, col0 col1 FROM tab2 AS cor0
----
-1
46
-1
64
-1
75

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

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

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

query II rowsort
SELECT + 16, 96 AS col2 FROM tab2 AS cor0
----
16
96
16
96
16
96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 / col1 + 66 col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 20 AS col0 FROM tab1
----
20
20
20

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

skipif mysql # not compatible
query I rowsort label-1389
SELECT + SUM ( col0 ) FROM tab2
----
185

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

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

query I rowsort
SELECT ALL - 77 AS col0 FROM tab1 cor0 WHERE NOT + 64 IS NULL
----
-77
-77
-77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT DISTINCT - COUNT( * ) + + 85 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT - COUNT ( * ) + + 85 FROM tab1
----
82

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT 88 * + SUM( col1 ) AS col1 FROM tab2 AS cor0
----
17160

skipif mysql # not compatible
query I rowsort label-1396
SELECT 88 * + SUM ( col1 ) AS col1 FROM tab2 AS cor0
----
17160

query I rowsort
SELECT - + ( - 64 ) FROM tab0 cor0
----
64
64
64

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1399
SELECT + COUNT( * ) AS col2, SUM( ALL + 33 ) AS col1 FROM tab2 AS cor0
----
3
99

skipif mysql # not compatible
query II rowsort label-1399
SELECT + COUNT ( * ) AS col2, SUM ( ALL + 33 ) AS col1 FROM tab2 AS cor0
----
3
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT ALL + 61 * + MIN( ALL + - 15 ) FROM tab1 AS cor0
----
-915

skipif mysql # not compatible
query I rowsort label-1401
SELECT ALL + 61 * + MIN ( ALL + - 15 ) FROM tab1 AS cor0
----
-915

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

query I rowsort
SELECT ALL - 53 + 29 FROM tab2
----
-24
-24
-24

query III rowsort
SELECT * FROM tab0 WHERE + + col1 / + 49 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1405
SELECT ALL + 99 * COUNT( * ) + + MAX( DISTINCT col1 ) * + CAST( NULL AS SIGNED ) + - + 20 + 5 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1405
SELECT ALL + 99 * COUNT ( * ) + + MAX ( DISTINCT col1 ) * + CAST ( NULL AS INTEGER ) + - + 20 + 5 AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT - 44 - COUNT( * ) FROM tab0
----
-47

skipif mysql # not compatible
query I rowsort label-1406
SELECT - 44 - COUNT ( * ) FROM tab0
----
-47

query I rowsort
SELECT - col2 * - 74 - - + 63 AS col2 FROM tab2
----
1765
3023
4355

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, - col0 AS col2 FROM tab0
----
-15
-15
-87
-87
-97
-97

query II rowsort
SELECT DISTINCT 27, 90 AS col2 FROM tab0
----
27
90

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 55 * - 33 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * + + 54 + 46 * - col0 + + - 29 FROM tab2 AS cor0
----
1185
139
609

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > 3
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <> + - 4
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1416
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN - 24 * CAST( + + 84 AS SIGNED ) AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1416
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN - 24 * CAST ( + + 84 AS INTEGER ) AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 57 + - col2 NOT BETWEEN - 23 AND NULL
----
97
1
99

query I rowsort
SELECT ALL - - col1 * + col1 * - 42 AS col0 FROM tab0 AS cor0
----
-18522
-275562
-42

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

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

query I rowsort
SELECT + ( + 31 ) * - + ( - col1 ) + 80 FROM tab2 WHERE NOT NULL IS NULL
----

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

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

query II rowsort
SELECT DISTINCT col0, - 30 * col2 AS col1 FROM tab0
----
15
-1410
87
-300
97
-2970

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 35 - - col2 <= NULL
----

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

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

query I rowsort
SELECT - 62 + col1 + - - 3 * + col1 * - col2 FROM tab2
----
-11653
-3530
-9225

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

query I rowsort
SELECT - col1 * 37 * - col1 + + + col1 FROM tab0
----
16338
242838
38

query III rowsort
SELECT * FROM tab0 WHERE + 36 > + + col2 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1430
SELECT + - 26 + - CAST( - + 25 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE 83 > NULL
----

skipif mysql # not compatible
query I rowsort label-1430
SELECT + - 26 + - CAST ( - + 25 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE 83 > NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1432
SELECT - CAST( - col1 AS SIGNED ) + + col0 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-1432
SELECT - CAST ( - col1 AS INTEGER ) + + col0 FROM tab0 AS cor0
----
108
96
98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1434
SELECT - MIN( DISTINCT col0 ) - 95 FROM tab1
----
-146

skipif mysql # not compatible
query I rowsort label-1434
SELECT - MIN ( DISTINCT col0 ) - 95 FROM tab1
----
-146

query I rowsort
SELECT ALL + 7 * 48 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 48 FROM tab2 WHERE NOT 55 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= 44
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT col0 + col0 > col0
----

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

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

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

query I rowsort
SELECT ALL col1 - 21 AS col1 FROM tab1 WHERE NOT + col0 * + col2 BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1443
SELECT 58 DIV + MAX( ALL - ( 49 ) ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1443
SELECT 58 / + MAX ( ALL - ( 49 ) ) FROM tab2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1444
SELECT - 57 DIV col0 col1 FROM tab1
----
-1
0
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1445
SELECT 1 DIV ( 63 * col1 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1445
SELECT 1 / ( 63 * col1 ) FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 / + ( 30 * - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 + 28 * - 72 FROM tab1
----
-1925
-1931
-1965

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

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

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

query I rowsort
SELECT col2 * col1 + col2 * + col1 FROM tab2
----
2346
6160
7772

onlyif mysql # aggregate syntax: 
query I rowsort label-1451
SELECT AVG ( + col2 ) * COUNT( * ) + - SUM( ( + 81 ) ) AS col0 FROM tab2 WHERE NOT col1 + - 4 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1451
SELECT AVG ( + col2 ) * COUNT ( * ) + - SUM ( ( + 81 ) ) AS col0 FROM tab2 WHERE NOT col1 + - 4 IS NOT NULL
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 78 ) col1 FROM tab2 WHERE NOT ( - col2 / col2 ) BETWEEN + col0 + - col1 * - col2 AND ( - 88 )
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * - 65 col1 FROM tab0
----
-1365
-5265
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 + 36 col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1456
SELECT - SUM( col1 ) + + 13 AS col0 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-1456
SELECT - SUM ( col1 ) + + 13 AS col0 FROM tab1
----
-53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1457
SELECT ( CAST( NULL AS DECIMAL ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1457
SELECT ( CAST ( NULL AS REAL ) ) FROM tab0
----
NULL
NULL
NULL

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( + 76 ) - + col2 NOT IN ( 71 * + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 + - 6 * + col0 ) = NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE NOT col0 * 97 BETWEEN - col1 AND + col1 + 91
----
3

skipif mysql # not compatible
query I rowsort label-1466
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE NOT col0 * 97 BETWEEN - col1 AND + col1 + 91
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1467
SELECT ALL - SUM( DISTINCT + 48 ) * 8 FROM tab2
----
-384

skipif mysql # not compatible
query I rowsort label-1467
SELECT ALL - SUM ( DISTINCT + 48 ) * 8 FROM tab2
----
-384

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( + 97 )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1470
SELECT ALL SUM( ALL col2 ) DIV 86 AS col2 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL SUM ( ALL col2 ) / 86 AS col2 FROM tab1 AS cor0
----
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1471
SELECT + ( CAST( 83 AS SIGNED ) ) + col0 * + col2 FROM tab1 AS cor0
----
4979
5098
6271

skipif mysql # not compatible
query I rowsort label-1471
SELECT + ( CAST ( 83 AS INTEGER ) ) + col0 * + col2 FROM tab1 AS cor0
----
4979
5098
6271

query I rowsort
SELECT + 92 * + col0 AS col0 FROM tab1 AS cor0
----
4692
7820
8372

query I rowsort
SELECT DISTINCT - + 71 + col0 FROM tab0 AS cor0
----
-56
16
26

query I rowsort
SELECT 9 FROM tab1 cor0 WHERE + col1 + - col1 IS NOT NULL
----
9
9
9

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1475
SELECT DISTINCT COUNT ( * ) * + 41 col0 FROM tab2
----
123

query I rowsort
SELECT ALL + 72 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 64 IN ( col2 * + 50 )
----

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

query I rowsort
SELECT DISTINCT col1 + col1 + col1 FROM tab1
----
141
15
42

query III rowsort
SELECT * FROM tab1 WHERE + col2 * col1 <= ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1481
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) <> 90 * + col2
----

skipif mysql # not compatible
query III rowsort label-1481
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) <> 90 * + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1482
SELECT ALL 63 DIV + 55 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL 63 / + 55 AS col1 FROM tab2
----
1
1
1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT MIN( ALL + - col1 ) * 42 FROM tab1
----
-1974

skipif mysql # not compatible
query I rowsort label-1485
SELECT MIN ( ALL + - col1 ) * 42 FROM tab1
----
-1974

query I rowsort
SELECT DISTINCT + col1 * 37 * col1 AS col1 FROM tab2
----
166093
219373
96237

query I rowsort
SELECT 71 * col2 FROM tab1 AS cor0 WHERE NULL = + col0
----

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

skipif mysql # not compatible
query I rowsort label-1488
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IN ( col2 + 62 )
----

query I rowsort
SELECT 45 * - col2 + col1 AS col2 FROM tab2 AS cor0
----
-1723
-2543
-984

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND NOT NULL < 26
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - + col2 + col0 col2 FROM tab2 AS cor0
----
1104
2624
4425

query I rowsort
SELECT ALL - 67 * - col2 AS col0 FROM tab2 AS cor0
----
1541
2680
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT + ( 39 ) - - COUNT( * ) col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1496
SELECT + ( 39 ) - - COUNT ( * ) col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
48

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

query I rowsort
SELECT ALL col2 + col0 - + - 53 * col1 AS col0 FROM tab0
----
1210
249
4355

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

query III rowsort
SELECT * FROM tab0 WHERE ( + - ( col0 ) ) = ( col0 )
----

query II rowsort
SELECT 0, - col0 * - + col0 AS col2 FROM tab0 AS cor0
----
0
225
0
7569
0
9409

query I rowsort
SELECT DISTINCT + 45 - + - col1 - col1 * - 11 FROM tab0 AS cor0
----
1017
297
57

query I rowsort
SELECT DISTINCT 95 + col1 AS col2 FROM tab0 cor0 WHERE ( - 14 ) IS NOT NULL
----
116
176
96

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) col1 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 43 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT - + MIN( - col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1507
SELECT - + MIN ( - col2 ) AS col2 FROM tab1 AS cor0
----
96

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 <= col1
----
97
1
99

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

query II rowsort
SELECT DISTINCT col1 AS col0, 30 + - col0 FROM tab0 AS cor0
----
1
-67
21
-57
81
15

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1513
SELECT * FROM tab1 WHERE NOT - - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-1513
SELECT * FROM tab1 WHERE NOT - - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT 34 AS col0 FROM tab1 WHERE NOT - - 25 * + - col0 / - 80 <> - col1 + + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) >= ( + 98 - col2 )
----

query I rowsort
SELECT col1 * - - col1 * + 34 FROM tab0
----
14994
223074
34

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

query I rowsort
SELECT DISTINCT + col2 * - col2 * + col0 FROM tab0
----
-33135
-8700
-950697

query II rowsort
SELECT ALL - col1 * - col2 AS col0, - col0 FROM tab2
----
1173
-46
3080
-64
3886
-75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1521
SELECT ALL ( + CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NOT ( - 4 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT ( - 4 ) IS NULL
----
NULL
NULL
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN ( + col0 - - - col0 + + 36 / col0 ) AND col0
----

query I rowsort
SELECT + 16 FROM tab2 AS cor0 WHERE NOT ( 31 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1525
SELECT DISTINCT - 47 + + 33 DIV + COUNT( * ) AS col1 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT - 47 + + 33 / + COUNT ( * ) AS col1 FROM tab0
----
-36

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT - col0 <> NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1528
SELECT - COUNT( DISTINCT - col0 ) * - 24 AS col1 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-1528
SELECT - COUNT ( DISTINCT - col0 ) * - 24 AS col1 FROM tab0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT - MAX( DISTINCT col0 ) * 70 AS col0 FROM tab1
----
-6370

skipif mysql # not compatible
query I rowsort label-1529
SELECT - MAX ( DISTINCT col0 ) * 70 AS col0 FROM tab1
----
-6370

query II rowsort
SELECT - + 7 * - + col1 + + + col1 AS col2, + col0 * col1 AS col1 FROM tab1 AS cor0
----
112
714
376
4277
40
425

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col0 / + 15 * - 30 ) = col0
----

query I rowsort
SELECT + - 82 AS col2 FROM tab2 AS cor0
----
-82
-82
-82

query I rowsort
SELECT ( + 53 ) + - 72 AS col0 FROM tab0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT 69 + 5 AS col2 FROM tab0
----
74

query I rowsort
SELECT ALL + col2 + - 52 FROM tab1
----
16
44
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1538
SELECT - col1 + col1 DIV - + col0 + + col0 FROM tab2
----
-14
-6
8

skipif mysql # not compatible
query I rowsort label-1538
SELECT - col1 + col1 / - + col0 + + col0 FROM tab2
----
-14
-6
8

query I rowsort
SELECT col2 + + 63 AS col0 FROM tab2
----
103
121
86

query I rowsort
SELECT ALL 75 FROM tab0 WHERE NOT - col2 * 94 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1543
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1543
SELECT ALL CAST ( NULL AS REAL ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1544
SELECT + ( - 52 ) DIV col0 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-1544
SELECT + ( - 52 ) / col0 FROM tab0 AS cor0
----
-3
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1545
SELECT - - col2 AS col2, - col0 + - col2 FROM tab1 AS cor0 WHERE NULL > col2 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-1545
SELECT - - col2 AS col2, - col0 + - col2 FROM tab1 AS cor0 WHERE NULL > col2 * CAST ( NULL AS INTEGER )
----

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

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

query I rowsort
SELECT - + 54 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

query I rowsort
SELECT DISTINCT 60 + + 82 + + col0 FROM tab0
----
157
229
239

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT DISTINCT - - MIN( DISTINCT + - 24 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1552
SELECT DISTINCT - - MIN ( DISTINCT + - 24 ) AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col1
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT MAX( + + col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1555
SELECT MAX ( + + col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT col0 * - 49 * col2 AS col2 FROM tab1 AS cor0
----
-239904
-245735
-303212

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1557
SELECT DISTINCT - 33 DIV - col0 FROM tab1 AS cor0 WHERE col0 + - 76 BETWEEN - + col2 * + - CAST( - col0 AS SIGNED ) AND col1
----
0

skipif mysql # not compatible
query I rowsort label-1557
SELECT DISTINCT - 33 / - col0 FROM tab1 AS cor0 WHERE col0 + - 76 BETWEEN - + col2 * + - CAST ( - col0 AS INTEGER ) AND col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1558
SELECT + CAST( - col1 AS SIGNED ) * + + 6 col0 FROM tab1 AS cor0
----
-282
-30
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1558
SELECT + CAST ( - col1 AS INTEGER ) * + + 6 col0 FROM tab1 AS cor0
----
-282
-30
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, - 61 * + 8 col2 FROM tab0
----
15
-488
87
-488
97
-488

onlyif mysql # aggregate syntax: 
query I rowsort label-1560
SELECT COUNT( * ) * - - 68 FROM tab2
----
204

skipif mysql # not compatible
query I rowsort label-1560
SELECT COUNT ( * ) * - - 68 FROM tab2
----
204

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + - ( + 44 ) + + - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1563
SELECT - SUM( ALL 56 ) AS col0 FROM tab1
----
-168

skipif mysql # not compatible
query I rowsort label-1563
SELECT - SUM ( ALL 56 ) AS col0 FROM tab1
----
-168

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1565
SELECT DISTINCT + - SUM( ALL - + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-1565
SELECT DISTINCT + - SUM ( ALL - + col2 ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT DISTINCT + + 9 + 37 AS col0 FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1567
SELECT col0 / - + col0 + + CAST( NULL AS SIGNED ) / + col1 FROM tab2 WHERE NOT - col2 NOT IN ( + col0, + col2 )
----

skipif mysql # not compatible
query I rowsort label-1567
SELECT col0 / - + col0 + + CAST ( NULL AS INTEGER ) / + col1 FROM tab2 WHERE NOT - col2 NOT IN ( + col0, + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1568
SELECT CAST( + col2 AS SIGNED ) + col1 AS col2 FROM tab0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-1568
SELECT CAST ( + col2 AS INTEGER ) + col1 AS col2 FROM tab0
----
100
128
31

onlyif mysql # DIV for integer division: 
query I rowsort label-1569
SELECT + col1 + ( + + col1 ) + + 50 + - col0 DIV - - 63 FROM tab0 AS cor0
----
212
51
91

skipif mysql # not compatible
query I rowsort label-1569
SELECT + col1 + ( + + col1 ) + + 50 + - col0 / - - 63 FROM tab0 AS cor0
----
212
51
91

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT - + 55 * - COUNT( * ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-1572
SELECT - + 55 * - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
168

onlyif mysql # DIV for integer division: 
query I rowsort label-1573
SELECT col2 + + col1 + - 72 DIV - 50 AS col1 FROM tab0 AS cor0
----
101
129
32

skipif mysql # not compatible
query I rowsort label-1573
SELECT col2 + + col1 + - 72 / - 50 AS col1 FROM tab0 AS cor0
----
101
129
32

query I rowsort
SELECT DISTINCT col1 + col2 + - + col1 AS col1 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT 13 + - + 21 AS col2 FROM tab1
----
-8

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE ( + - col1 * - 99 ) BETWEEN ( NULL ) AND NULL
----

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

skipif mysql # not compatible
query II rowsort label-1577
SELECT COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
3
NULL

query I rowsort
SELECT col0 * - col1 * - ( + col1 ) AS col2 FROM tab1
----
201019
2125
9996

query III rowsort
SELECT * FROM tab1 WHERE - 81 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1580
SELECT COUNT( * ) AS col0, + 50 - + ( + 19 ) FROM tab0 WHERE + - 68 * - col1 IN ( + 76 * - + col2 * - + CAST( NULL AS SIGNED ) )
----
0
31

skipif mysql # not compatible
query II rowsort label-1580
SELECT COUNT ( * ) AS col0, + 50 - + ( + 19 ) FROM tab0 WHERE + - 68 * - col1 IN ( + 76 * - + col2 * - + CAST ( NULL AS INTEGER ) )
----
0
31

query I rowsort
SELECT 9 - + col2 FROM tab1
----
-50
-59
-87

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IS NULL AND NOT + + 89 NOT IN ( 22 )
----

query I rowsort
SELECT DISTINCT col0 * - col1 * + + 38 - - col1 FROM tab1 AS cor0
----
-16145
-162479
-27118

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1586
SELECT - 2 + + col1 DIV - - 92, col0 - + col1 AS col1 FROM tab2 AS cor0
----
-2
-13
-2
-5
-2
8

skipif mysql # not compatible
query II rowsort label-1586
SELECT - 2 + + col1 / - - 92, col0 - + col1 AS col1 FROM tab2 AS cor0
----
-2
-13
-2
-5
-2
8

query I rowsort
SELECT ALL 70 * - col2 AS col0 FROM tab1 AS cor0
----
-4130
-4760
-6720

query I rowsort
SELECT DISTINCT 46 FROM tab2 WHERE + col2 <> ( - + col2 )
----
46

onlyif mysql # DIV for integer division: 
query II rowsort label-1589
SELECT DISTINCT col1, col1 DIV - 55 AS col1 FROM tab2
----
51
0
67
-1
77
-1

skipif mysql # not compatible
query II rowsort label-1589
SELECT DISTINCT col1, col1 / - 55 AS col1 FROM tab2
----
51
0
67
-1
77
-1

query I rowsort
SELECT ALL col2 * + 87 * - + col2 * - - 34 FROM tab2
----
-1564782
-4732800
-9950712

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1593
SELECT ALL - COUNT( * ) col0, COUNT( * ) FROM tab2 cor0
----
-3
3

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1595
SELECT ALL 43 * - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL 43 * - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 23 * + - 39 AS col2 FROM tab2
----
-897
-897
-897

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - ( - + 58 ) ) * + col1 col2 FROM tab0
----
-1218
-4698
-58

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1600
SELECT DISTINCT - ( - CAST( SUM( DISTINCT - 87 ) AS SIGNED ) ) FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-1600
SELECT DISTINCT - ( - CAST ( SUM ( DISTINCT - 87 ) AS INTEGER ) ) FROM tab2
----
-87

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1602
SELECT CAST( + + 2 AS SIGNED ) * 82 FROM tab0
----
164
164
164

skipif mysql # not compatible
query I rowsort label-1602
SELECT CAST ( + + 2 AS INTEGER ) * 82 FROM tab0
----
164
164
164

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1604
SELECT ALL - AVG ( - - col1 ) FROM tab2 AS cor0 WHERE - 39 = - - CAST( - col0 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-1604
SELECT ALL - AVG ( - - col1 ) FROM tab2 AS cor0 WHERE - 39 = - - CAST ( - col0 AS INTEGER )
----
NULL

query I rowsort
SELECT col2 - - ( col2 ) + - - 9 - + col1 AS col0 FROM tab0 AS cor0
----
206
22
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1606
SELECT DISTINCT + col2 * col1 DIV + col2 - - col0 AS col2 FROM tab2 cor0
----
141
142
97

skipif mysql # not compatible
query I rowsort label-1606
SELECT DISTINCT + col2 * col1 / + col2 - - col0 AS col2 FROM tab2 cor0
----
141
142
97

query I rowsort
SELECT DISTINCT + 45 / - - 86 + ( + 63 ) * + + 8 FROM tab2 AS cor0 WHERE NOT 63 IS NOT NULL
----

query I rowsort
SELECT ALL - 46 * ( - 16 ) + col0 FROM tab1 AS cor0
----
787
821
827

query I rowsort
SELECT DISTINCT col2 * - ( - col1 ) * - col1 + - 58 * col1 + - 74 AS col2 FROM tab0 AS cor0
----
-231
-313139
-5702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1610
SELECT col0 - - ( col1 ) FROM tab2 cor0 WHERE col2 / - col0 * + + col1 + + + CAST( - 98 AS SIGNED ) + - 2 + + - col0 IN ( + ( + col1 ) * col1 )
----

skipif mysql # not compatible
query I rowsort label-1610
SELECT col0 - - ( col1 ) FROM tab2 cor0 WHERE col2 / - col0 * + + col1 + + + CAST ( - 98 AS INTEGER ) + - 2 + + - col0 IN ( + ( + col1 ) * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1611
SELECT col0 + + + ( 60 ) * 88 * 4 DIV col0 + - col2 col1 FROM tab1
----
255
274
369

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1611
SELECT col0 + + + ( 60 ) * 88 * 4 / col0 + - col2 col1 FROM tab1
----
255
274
369

query I rowsort
SELECT + 38 * + AVG ( ALL - 78 ) + - 94 FROM tab0 WHERE - col2 = + col0
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) + + col0 - + col2 col1 FROM tab2
----
69
88
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1615
SELECT + COUNT( * ) + - SUM( + col1 ) FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-1615
SELECT + COUNT ( * ) + - SUM ( + col1 ) FROM tab0
----
-100

query I rowsort
SELECT DISTINCT - col2 + - + 22 FROM tab0
----
-121
-32
-69

query II rowsort
SELECT DISTINCT + col1 AS col1, 20 FROM tab1 WHERE + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT 78 * + 32 - - 42 - col1 * 94 + + col0 AS col0 FROM tab2 AS cor0
----
-2210
-3685
-4636

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1620
SELECT ALL - COUNT( + 41 ) - - ( - COUNT( * ) ) FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL - COUNT ( + 41 ) - - ( - COUNT ( * ) ) FROM tab2 cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-1621
SELECT SUM( ALL + col0 ) FROM tab2 AS cor0 WHERE ( NULL ) IN ( - col0, col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1621
SELECT SUM ( ALL + col0 ) FROM tab2 AS cor0 WHERE ( NULL ) IN ( - col0, col2 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 17 col2 FROM tab2 AS cor0
----
-391
-680
-986

query I rowsort
SELECT + - col2 FROM tab2 WHERE NOT ( + col1 * col1 IS NULL )
----
-23
-40
-58

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1629
SELECT DISTINCT - col1 DIV - 46 col0 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1629
SELECT DISTINCT - col1 / - 46 col0 FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-1630
SELECT DISTINCT col1 AS col1, + 56 DIV - col2 FROM tab0
----
1
0
21
-5
81
-1

skipif mysql # not compatible
query II rowsort label-1630
SELECT DISTINCT col1 AS col1, + 56 / - col2 FROM tab0
----
1
0
21
-5
81
-1

query I rowsort
SELECT DISTINCT + col0 * + 97 FROM tab1
----
4947
8245
8827

query I rowsort
SELECT - col2 - col0 FROM tab2 AS cor0 WHERE NOT ( + + col2 IS NULL )
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-1633
SELECT + 66, + SUM( col1 ) AS col1 FROM tab0 AS cor0
----
66
103

skipif mysql # not compatible
query II rowsort label-1633
SELECT + 66, + SUM ( col1 ) AS col1 FROM tab0 AS cor0
----
66
103

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT ALL ( + COUNT( * ) ) + + 8 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-1634
SELECT ALL ( + COUNT ( * ) ) + + 8 FROM tab2
----
11

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1636
SELECT DISTINCT ( + col2 ) + + CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
110
115
64

skipif mysql # not compatible
query I rowsort label-1636
SELECT DISTINCT ( + col2 ) + + CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT MIN( DISTINCT + col2 ) + - COUNT( - - 14 ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-1637
SELECT MIN ( DISTINCT + col2 ) + - COUNT ( - - 14 ) FROM tab0
----
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1638
SELECT - CAST( + - col0 AS SIGNED ) * - + col0 * + - col2 + + CAST( - 34 AS SIGNED ) DIV col1 + 22 AS col0 FROM tab2 AS cor0
----
163862
326272
48690

skipif mysql # not compatible
query I rowsort label-1638
SELECT - CAST ( + - col0 AS INTEGER ) * - + col0 * + - col2 + + CAST ( - 34 AS INTEGER ) / col1 + 22 AS col0 FROM tab2 AS cor0
----
163862
326272
48690

onlyif mysql # aggregate syntax: 
query II rowsort label-1639
SELECT + SUM( col1 ) + - 90, - ( 84 ) AS col2 FROM tab0 cor0
----
13
-84

skipif mysql # not compatible
query II rowsort label-1639
SELECT + SUM ( col1 ) + - 90, - ( 84 ) AS col2 FROM tab0 cor0
----
13
-84

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

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

query I rowsort
SELECT DISTINCT + 6 * + + col1 * + col0 AS col2 FROM tab1 AS cor0
----
2550
25662
4284

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * - - col1 <> - - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1644
SELECT + + col0 FROM tab0 WHERE + CAST( NULL AS DECIMAL ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1644
SELECT + + col0 FROM tab0 WHERE + CAST ( NULL AS REAL ) IS NULL
----
15
87
97

query I rowsort
SELECT - col1 * 6 AS col2 FROM tab0
----
-126
-486
-6

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1647
SELECT DISTINCT 95 DIV ( - col2 ) + + + col2 + + col2 AS col0 FROM tab0
----
11
198
92

skipif mysql # not compatible
query I rowsort label-1647
SELECT DISTINCT 95 / ( - col2 ) + + + col2 + + col2 AS col0 FROM tab0
----
11
198
92

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

skipif mysql # not compatible
query I rowsort label-1648
SELECT + + SUM ( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 <= NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT COUNT( DISTINCT - + 85 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1650
SELECT COUNT ( DISTINCT - + 85 ) AS col1 FROM tab2
----
1

query I rowsort
SELECT DISTINCT ( - + col0 ) * - + 18 AS col0 FROM tab1
----
1530
1638
918

onlyif mysql # DIV for integer division: 
query I rowsort label-1652
SELECT ALL 91 DIV - - 48 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1652
SELECT ALL 91 / - - 48 FROM tab1 AS cor0
----
1
1
1

query II rowsort
SELECT DISTINCT + + col0 * col0 AS col1, col1 AS col1 FROM tab1 AS cor0
----
2601
14
7225
5
8281
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1654
SELECT ALL col1 DIV - 66 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1654
SELECT ALL col1 / - 66 AS col1 FROM tab1 cor0
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT + COUNT( * ) + 98 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN NULL AND + 0
----
101

skipif mysql # not compatible
query I rowsort label-1657
SELECT + COUNT ( * ) + 98 FROM tab0 AS cor0 WHERE NOT col2 BETWEEN NULL AND + 0
----
101

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

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

query I rowsort
SELECT ALL - 84 FROM tab2 cor0
----
-84
-84
-84

query I rowsort
SELECT DISTINCT + - col2 * + + 50 FROM tab2 cor0
----
-1150
-2000
-2900

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1662
SELECT 38 / + MAX( ALL - 3 ) + + - 84 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1662
SELECT 38 / + MAX ( ALL - 3 ) + + - 84 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1663
SELECT ALL CAST( NULL AS SIGNED ) * AVG ( col0 ) + + 71 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL CAST ( NULL AS INTEGER ) * AVG ( col0 ) + + 71 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1664
SELECT + col0 DIV - + 91 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1664
SELECT + col0 / - + 91 FROM tab1
----
-1
0
0

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

query I rowsort
SELECT col1 * - + ( - col0 ) AS col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL - 2 * - col1 * col0 + - - col1 AS col0 FROM tab0
----
195
2511
3675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1668
SELECT + CAST( + col2 AS SIGNED ) AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1668
SELECT + CAST ( + col2 AS INTEGER ) AS col0 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT ( - col2 ) * - - col2 + + + col0 FROM tab2
----
-1536
-3289
-483

query I rowsort
SELECT ALL - 76 * col2 + - col1 + + + col2 AS col1 FROM tab1 WHERE NOT - + col0 IS NULL
----
-4430
-5147
-7214

query I rowsort
SELECT 31 + col1 * + col2 * + - col1 FROM tab1
----
-1444
-150181
-18785

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT - COUNT( * ) + + 48 AS col2 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-1672
SELECT - COUNT ( * ) + + 48 AS col2 FROM tab2
----
45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT ALL 35 * - COUNT( * ) * + 73 AS col1 FROM tab0
----
-7665

skipif mysql # not compatible
query I rowsort label-1674
SELECT ALL 35 * - COUNT ( * ) * + 73 AS col1 FROM tab0
----
-7665

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1675
SELECT DISTINCT + col0 * col2 * col2, col1 DIV + + col1 + + - CAST( - col1 AS SIGNED ) AS col1 FROM tab2
----
102400
78
24334
52
252300
68

skipif mysql # not compatible
query II rowsort label-1675
SELECT DISTINCT + col0 * col2 * col2, col1 / + + col1 + + - CAST ( - col1 AS INTEGER ) AS col1 FROM tab2
----
102400
78
24334
52
252300
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1676
SELECT + COUNT( * ) + - 83 AS col0 FROM tab0
----
-80

skipif mysql # not compatible
query I rowsort label-1676
SELECT + COUNT ( * ) + - 83 AS col0 FROM tab0
----
-80

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= 96 * + 30
----

query I rowsort
SELECT + 97 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

skipif mysql # not compatible
query II rowsort label-1681
SELECT ALL COUNT ( * ), COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT ( 2 ) + col2 * + + col0 AS col1 FROM tab1 AS cor0
----
4898
5017
6190

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 = - 0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1685
SELECT - CAST( col2 AS SIGNED ) + + col1 AS col2 FROM tab0 AS cor0
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-1685
SELECT - CAST ( col2 AS INTEGER ) + + col1 AS col2 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT COUNT( + - col2 ) + + 57 AS col0 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-1686
SELECT COUNT ( + - col2 ) + + 57 AS col0 FROM tab2 AS cor0
----
60

query II rowsort
SELECT DISTINCT col0 AS col1, col2 * + 53 AS col2 FROM tab1 AS cor0
----
51
5088
85
3127
91
3604

query I rowsort
SELECT - - 47 * + 89 + 4 AS col1 FROM tab2 cor0
----
4187
4187
4187

query I rowsort
SELECT col0 + - 41 FROM tab0 AS cor0
----
-26
46
56

query I rowsort
SELECT DISTINCT - 78 + - col0 AS col0 FROM tab2
----
-124
-142
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1691
SELECT DISTINCT + + COUNT( * ) * + CAST( NULL AS SIGNED ), - MAX( col2 ) AS col2 FROM tab1 cor0
----
NULL
-96

skipif mysql # not compatible
query II rowsort label-1691
SELECT DISTINCT + + COUNT ( * ) * + CAST ( NULL AS INTEGER ), - MAX ( col2 ) AS col2 FROM tab1 cor0
----
NULL
-96

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

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

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

query I rowsort
SELECT + 82 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT + SUM( 12 ) FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-1695
SELECT + SUM ( 12 ) FROM tab0
----
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1696
SELECT MAX( ALL - 76 ) DIV + COUNT( * ) FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-1696
SELECT MAX ( ALL - 76 ) / + COUNT ( * ) FROM tab1 AS cor0
----
-25

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

query I rowsort
SELECT ALL - ( - + col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, 80 * - + col1 col2 FROM tab2 AS cor0
----
-51
-4080
-67
-5360
-77
-6160

query I rowsort
SELECT ALL ( + ( col1 ) ) * + - 47 FROM tab2 AS cor0
----
-2397
-3149
-3619

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1703
SELECT DISTINCT + 23, SUM( 50 ) * - 42 AS col0 FROM tab1 AS cor0
----
23
-6300

skipif mysql # not compatible
query II rowsort label-1703
SELECT DISTINCT + 23, SUM ( 50 ) * - 42 AS col0 FROM tab1 AS cor0
----
23
-6300

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1706
SELECT DISTINCT + 78 + + col0 DIV col2 col0 FROM tab1
----
78
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1706
SELECT DISTINCT + 78 + + col0 / col2 col0 FROM tab1
----
78
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1707
SELECT ALL - CAST( - + col2 AS SIGNED ) + + 93 FROM tab1
----
152
161
189

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL - CAST ( - + col2 AS INTEGER ) + + 93 FROM tab1
----
152
161
189

onlyif mysql # aggregate syntax: 
query I rowsort label-1708
SELECT COUNT( - + col0 ) * + - 98 FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-1708
SELECT COUNT ( - + col0 ) * + - 98 FROM tab0
----
-294

query I rowsort
SELECT col0 * ( + + 9 ) FROM tab1
----
459
765
819

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1710
SELECT + 14 DIV + + COUNT( * ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-1710
SELECT + 14 / + + COUNT ( * ) FROM tab0
----
4

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

skipif mysql # not compatible
query I rowsort label-1711
SELECT CAST ( + COUNT ( 12 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1712
SELECT DISTINCT + - CAST( + col0 AS SIGNED ) + + ( col1 ) FROM tab1 AS cor0
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-1712
SELECT DISTINCT + - CAST ( + col0 AS INTEGER ) + + ( col1 ) FROM tab1 AS cor0
----
-37
-44
-80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT SUM( + 39 ) * - + SUM( DISTINCT + col2 ) * - ( COUNT( * ) ) * - - SUM( ALL - - col2 ) FROM tab2
----
5138991

skipif mysql # not compatible
query I rowsort label-1714
SELECT SUM ( + 39 ) * - + SUM ( DISTINCT + col2 ) * - ( COUNT ( * ) ) * - - SUM ( ALL - - col2 ) FROM tab2
----
5138991

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT DISTINCT - - 97 * + 31 - - + MAX( + 9 ) FROM tab1 AS cor0
----
3016

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT - - 97 * + 31 - - + MAX ( + 9 ) FROM tab1 AS cor0
----
3016

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1718
SELECT MAX( - ( - col2 ) ) * - COUNT( * ) FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-1718
SELECT MAX ( - ( - col2 ) ) * - COUNT ( * ) FROM tab2 AS cor0
----
-174

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

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

query I rowsort
SELECT DISTINCT - col0 - - - ( - - col0 ) AS col1 FROM tab0 AS cor0
----
-174
-194
-30

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 7 * - ( + + col2 ) > - + col1
----

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col1 < col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 + - col1 * col1 <= + - 71
----

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1726
SELECT 71, col0 + - col0 DIV + col1 AS col2 FROM tab0
----
71
0
71
15
71
83

skipif mysql # not compatible
query II rowsort label-1726
SELECT 71, col0 + - col0 / + col1 AS col2 FROM tab0
----
71
0
71
15
71
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT 28 + - COUNT( * ) + + + COUNT( * ) * 65 * SUM( DISTINCT + + 81 ) FROM tab0 WHERE NOT - col1 IS NULL
----
15820

skipif mysql # not compatible
query I rowsort label-1727
SELECT 28 + - COUNT ( * ) + + + COUNT ( * ) * 65 * SUM ( DISTINCT + + 81 ) FROM tab0 WHERE NOT - col1 IS NULL
----
15820

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

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

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE + col2 * col1 + col2 - - col2 * + col0 >= + 41 / + col2 + + 35
----
23
40
58

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

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

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

query I rowsort
SELECT DISTINCT - 41 AS col2 FROM tab1 AS cor0
----
-41

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

query I rowsort
SELECT 7 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query II rowsort
SELECT - col2 * 37 AS col2, + col0 FROM tab0
----
-1739
15
-3663
97
-370
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - ( + col2 ), + 25 col2 FROM tab0 AS cor0
----
10
25
47
25
99
25

query I rowsort
SELECT DISTINCT 17 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1738
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-3

query I rowsort
SELECT ALL 57 + col0 FROM tab0
----
144
154
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1740
SELECT CAST( - + col1 AS SIGNED ) + - + col0 + - - col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1740
SELECT CAST ( - + col1 AS INTEGER ) + - + col0 + - - col1 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1741
SELECT 82 + - 95 + CAST( NULL AS DECIMAL ) * - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1741
SELECT 82 + - 95 + CAST ( NULL AS REAL ) * - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( - - col0 * - - 69, 74 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT ALL MIN( - col2 ) + - 93 col0 FROM tab0
----
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1743
SELECT ALL MIN ( - col2 ) + - 93 col0 FROM tab0
----
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 col1 FROM tab2 WHERE - col1 IS NULL
----

query I rowsort
SELECT - col0 * + col0 + - + 5 AS col2 FROM tab1
----
-2606
-7230
-8286

query I rowsort
SELECT DISTINCT + + 6 AS col1 FROM tab1 AS cor0
----
6

query II rowsort
SELECT DISTINCT col0, col1 AS col1 FROM tab1 cor0
----
51
14
85
5
91
47

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 WHERE NULL <> + + 42 + + + 2 * + col2
----

query I rowsort
SELECT DISTINCT - - 68 - + col1 FROM tab0 AS cor0
----
-13
47
67

query I rowsort
SELECT ALL + 79 - + col2 * - - col1 FROM tab0 AS cor0
----
-131
-20
-3728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 58 col0 FROM tab1 cor0
----
58
58
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT DISTINCT - COUNT( DISTINCT - 34 ) col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1753
SELECT DISTINCT - COUNT ( DISTINCT - 34 ) col0 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT DISTINCT - MIN( DISTINCT + 52 ) col0 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1754
SELECT DISTINCT - MIN ( DISTINCT + 52 ) col0 FROM tab0 AS cor0
----
-52

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND col2
----

query I rowsort
SELECT ALL + - 42 * + col1 FROM tab2 AS cor0
----
-2142
-2814
-3234

query I rowsort
SELECT - col0 * - + 89 * 72 AS col1 FROM tab0 AS cor0
----
557496
621576
96120

query I rowsort
SELECT DISTINCT - ( - - 50 ) * col2 AS col2 FROM tab2 AS cor0
----
-1150
-2000
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT COUNT( * ) * 82 * + 64 AS col2 FROM tab1
----
15744

skipif mysql # not compatible
query I rowsort label-1759
SELECT COUNT ( * ) * 82 * + 64 AS col2 FROM tab1
----
15744

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT MAX( ALL + col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1760
SELECT MAX ( ALL + col0 ) AS col1 FROM tab2
----
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col1 = 77 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 - col0 * + - 84 FROM tab2 WHERE ( + - col1 ) NOT IN ( + - col0, col2 )
----
3910
5440
6375

onlyif mysql # DIV for integer division: 
query I rowsort label-1763
SELECT DISTINCT 60 DIV + col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-1763
SELECT DISTINCT 60 / + col2 FROM tab0
----
0
1
6

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT ( NOT + col1 < NULL )
----

query I rowsort
SELECT ALL - + col1 * + + col0 * col0 AS col1 FROM tab2 AS cor0
----
-107916
-315392
-376875

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT DISTINCT + ( - SUM( DISTINCT 5 ) ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1766
SELECT DISTINCT + ( - SUM ( DISTINCT 5 ) ) AS col1 FROM tab1 AS cor0
----
-5

query III rowsort
SELECT DISTINCT + 83 AS col0, + col1, col1 AS col2 FROM tab2
----
9 values hashing to 76c65201166c86a2bf37657b0f8b3c3e

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT + ( - 29 ) + - - 46 IS NOT NULL
----

query I rowsort
SELECT col1 * - 19 + col2 + + ( + col2 ) FROM tab2
----
-1157
-1383
-923

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT DISTINCT 9 + COUNT( * ) col2 FROM tab2 AS cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1770
SELECT DISTINCT 9 + COUNT ( * ) col2 FROM tab2 AS cor0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1771
SELECT ALL - + col1, CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-1771
SELECT ALL - + col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1772
SELECT - 65 col1, - 46 + - MIN( CAST( NULL AS SIGNED ) ) * 84 AS col2 FROM tab1 AS cor0
----
-65
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1772
SELECT - 65 col1, - 46 + - MIN ( CAST ( NULL AS INTEGER ) ) * 84 AS col2 FROM tab1 AS cor0
----
-65
NULL

query I rowsort
SELECT DISTINCT - + 2 AS col0 FROM tab2 AS cor0 WHERE + col2 <> col1 * - ( - ( + ( - col2 ) ) )
----
-2

query I rowsort
SELECT col2 * + 13 * 22 FROM tab2 AS cor0
----
11440
16588
6578

query II rowsort
SELECT 92, col0 * col0 * + col2 AS col2 FROM tab1 AS cor0
----
92
249696
92
426275
92
563108

query I rowsort
SELECT + col1 - - - 39 FROM tab2 AS cor0 WHERE NULL BETWEEN 5 AND + + col0 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1777
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE col1 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT + col2 + - - col2 AS col0 FROM tab1
----
118
136
192

query I rowsort
SELECT DISTINCT + 49 + - + col0 * + col1 - + - 49 FROM tab0
----
-1117
-1729
1

query III rowsort
SELECT * FROM tab0 WHERE col0 NOT IN ( - - 59, col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1781
SELECT ALL - 56 + - 0 + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL - 56 + - 0 + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1782
SELECT ALL MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1782
SELECT ALL MAX ( DISTINCT + CAST ( NULL AS REAL ) ) col0 FROM tab1
----
NULL

query I rowsort
SELECT 67 * + 55 - col0 AS col0 FROM tab2
----
3610
3621
3639

query I rowsort
SELECT - 50 + + col1 AS col2 FROM tab1 AS cor0
----
-3
-36
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1785
SELECT DISTINCT + MAX( + 74 ) AS col1, MIN( ALL - CAST( + col0 AS SIGNED ) ) col2 FROM tab1 AS cor0
----
74
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1785
SELECT DISTINCT + MAX ( + 74 ) AS col1, MIN ( ALL - CAST ( + col0 AS INTEGER ) ) col2 FROM tab1 AS cor0
----
74
-91

query I rowsort
SELECT - col2 + + col1 - + + col1 * + col1 FROM tab0 AS cor0
----
-430
-6527
-99

query I rowsort
SELECT ALL ( - 75 ) * - - col1 - + - 34 FROM tab0 AS cor0
----
-1541
-41
-6041

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1788
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + col0 * 50 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1788
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + col0 * 50 FROM tab1
----
NULL

query I rowsort
SELECT + + 86 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query II rowsort
SELECT col2 AS col1, col2 AS col0 FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 47 IS NULL
----

query II rowsort
SELECT DISTINCT - - 95, - 84 AS col2 FROM tab1 AS cor0
----
95
-84

query I rowsort
SELECT col1 * col0 - + + col2 FROM tab2 AS cor0
----
2323
4888
4967

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col1 ) IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, col2 col0 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT DISTINCT - + col0 FROM tab2 AS cor0 WHERE NOT NULL >= + col2 + + + col1
----

query I rowsort
SELECT col0 AS col1 FROM tab1 cor0 WHERE NOT 4 * + col0 * - 79 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 70 * + 24 + + + col2 + + - 19 AS col1, 28 AS col1 FROM tab0 AS cor0
----
1671
28
1708
28
1760
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1799
SELECT DISTINCT + SUM( DISTINCT + col0 ) DIV - 63 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT + SUM ( DISTINCT + col0 ) / - 63 FROM tab2
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1800
SELECT + 39 DIV SUM( col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1800
SELECT + 39 / SUM ( col2 ) FROM tab1
----
0

query I rowsort
SELECT col2 * - 41 AS col1 FROM tab2
----
-1640
-2378
-943

query II rowsort
SELECT ( - 87 ), - col2 AS col0 FROM tab2 WHERE NOT + - ( 31 ) * 72 * col1 <= + col1 - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1803
SELECT + COUNT( * ) * + 60 col1 FROM tab0
----
180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1803
SELECT + COUNT ( * ) * + 60 col1 FROM tab0
----
180

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < col0
----

query I rowsort
SELECT DISTINCT 45 * 82 * col0 FROM tab1 AS cor0
----
188190
313650
335790

query I rowsort
SELECT DISTINCT + col2 * + col2 + col0 FROM tab2 AS cor0
----
1664
3439
575

query I rowsort
SELECT ALL col2 * + + col2 FROM tab1 cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-1808
SELECT MAX( ALL + + 73 ) AS col1 FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-1808
SELECT MAX ( ALL + + 73 ) AS col1 FROM tab1 AS cor0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1809
SELECT DISTINCT - 48 FROM tab0 WHERE NOT - 52 * CAST( + col1 AS SIGNED ) + - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1809
SELECT DISTINCT - 48 FROM tab0 WHERE NOT - 52 * CAST ( + col1 AS INTEGER ) + - col2 IS NOT NULL
----

query II rowsort
SELECT + col0, + 5 AS col2 FROM tab1
----
51
5
85
5
91
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1811
SELECT DISTINCT col0, + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-1811
SELECT DISTINCT col0, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT ALL + - SUM( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL + - SUM ( DISTINCT col1 ) AS col1 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT col0 + 87 AS col0 FROM tab1 cor0
----
138
172
178

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1814
SELECT + + 41 * - COUNT( * ) + - - COUNT( * ) + 7 + COUNT( ALL + col2 ) + - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1814
SELECT + + 41 * - COUNT ( * ) + - - COUNT ( * ) + 7 + COUNT ( ALL + col2 ) + - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col0 + - - 29 FROM tab2 AS cor0
----
104
75
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1816
SELECT ALL - col2 + CAST( - 79 AS SIGNED ) FROM tab1
----
-138
-147
-175

skipif mysql # not compatible
query I rowsort label-1816
SELECT ALL - col2 + CAST ( - 79 AS INTEGER ) FROM tab1
----
-138
-147
-175

query III rowsort
SELECT ALL * FROM tab1 WHERE 36 * + + col0 * - 33 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT DISTINCT - MAX( - - 61 ) * + - 93 * + COUNT( * ) + + MIN( ALL - 94 ) - + 15 FROM tab0
----
16910

skipif mysql # not compatible
query I rowsort label-1818
SELECT DISTINCT - MAX ( - - 61 ) * + - 93 * + COUNT ( * ) + + MIN ( ALL - 94 ) - + 15 FROM tab0
----
16910

onlyif mysql # DIV for integer division: 
query I rowsort label-1819
SELECT 95 DIV col1 + + 23 FROM tab0
----
118
24
27

skipif mysql # not compatible
query I rowsort label-1819
SELECT 95 / col1 + + 23 FROM tab0
----
118
24
27

query I rowsort
SELECT ALL col2 + + ( ( - + col0 ) ) FROM tab0
----
-77
2
32

query I rowsort
SELECT ALL + col0 + - + 22 * 10 FROM tab2
----
-145
-156
-174

query I rowsort
SELECT + col1 - 48 + + - col0 * 89 AS col1 FROM tab1 AS cor0
----
-4573
-7608
-8100

query I rowsort
SELECT 20 FROM tab0 AS cor0 WHERE NULL IS NULL
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1824
SELECT DISTINCT COUNT( + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1824
SELECT DISTINCT COUNT ( + col0 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col1 * + col1 + - - col0 + + + col1 + + col1 IS NULL
----

query I rowsort
SELECT DISTINCT ( col2 ) * - + col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query II rowsort
SELECT ALL + ( - + col2 ) AS col0, col2 AS col2 FROM tab1 cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT ALL + + 81 * + col0 AS col1 FROM tab0 AS cor0
----
1215
7047
7857

onlyif mysql # aggregate syntax: 
query I rowsort label-1829
SELECT + + 52 * + - 58 * + ( - + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
9048

skipif mysql # not compatible
query I rowsort label-1829
SELECT + + 52 * + - 58 * + ( - + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
9048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col0 FROM tab1 cor0
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1831
SELECT + MIN( DISTINCT CAST( + - 40 AS SIGNED ) ) AS col1 FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-1831
SELECT + MIN ( DISTINCT CAST ( + - 40 AS INTEGER ) ) AS col1 FROM tab2
----
-40

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= + + col2 + - col2 / col1
----

query II rowsort
SELECT DISTINCT + 99 AS col0, + 80 AS col1 FROM tab0
----
99
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT - - COUNT( * ) FROM tab2 WHERE NOT + - col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1834
SELECT - - COUNT ( * ) FROM tab2 WHERE NOT + - col1 < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT + COUNT( DISTINCT - - col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1835
SELECT + COUNT ( DISTINCT - - col1 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1836
SELECT ALL - col2 AS col1, + col2 + - CAST( NULL AS SIGNED ) + ( + col2 ) FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-1836
SELECT ALL - col2 AS col1, + col2 + - CAST ( NULL AS INTEGER ) + ( + col2 ) FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

query I rowsort
SELECT DISTINCT + 32 * - 83 AS col0 FROM tab1
----
-2656

query I rowsort
SELECT ALL + ( + - 94 ) AS col0 FROM tab1
----
-94
-94
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 col0 FROM tab2
----
20
20
20

query II rowsort
SELECT DISTINCT - col1 + + + ( + col0 ) * + col1 AS col1, col1 AS col2 FROM tab1 AS cor0
----
420
5
4230
47
700
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT + SUM( DISTINCT - 15 ) * - 91 + - 45 - - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 * - col1 IS NULL
----
1323

skipif mysql # not compatible
query I rowsort label-1841
SELECT + SUM ( DISTINCT - 15 ) * - 91 + - 45 - - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + col1 * - col1 IS NULL
----
1323

query I rowsort
SELECT - 57 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1843
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) col2 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1843
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) col2 FROM tab2
----
1

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NOT ( + 4 ) IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT DISTINCT col0 * - 23 FROM tab1 AS cor0
----
-1173
-1955
-2093

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1846
SELECT ALL + col0 * CAST( CAST( col2 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-1846
SELECT ALL + col0 * CAST ( CAST ( col2 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
705
870
9603

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL BETWEEN ( NULL ) AND - 57 * - + 98 * + + 78
----

query II rowsort
SELECT - + ( - + col0 ), col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # DIV for integer division: 
query II rowsort label-1849
SELECT - + col2 DIV + col0, col2 + + 45 + + col1 DIV 2 + - col2 AS col2 FROM tab1 AS cor0
----
-1
52
0
47
0
68

skipif mysql # not compatible
query II rowsort label-1849
SELECT - + col2 / + col0, col2 + + 45 + + col1 / 2 + - col2 AS col2 FROM tab1 AS cor0
----
-1
52
0
47
0
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1851
SELECT ALL + CAST( - 84 AS SIGNED ), CAST( NULL AS SIGNED ) * - 83 * - col2 AS col1 FROM tab2 AS cor0
----
-84
NULL
-84
NULL
-84
NULL

skipif mysql # not compatible
query II rowsort label-1851
SELECT ALL + CAST ( - 84 AS INTEGER ), CAST ( NULL AS INTEGER ) * - 83 * - col2 AS col1 FROM tab2 AS cor0
----
-84
NULL
-84
NULL
-84
NULL

query I rowsort
SELECT DISTINCT + col1 + - 56 FROM tab2
----
-5
11
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1853
SELECT CAST( NULL AS DECIMAL ) - - + col1 * + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1853
SELECT CAST ( NULL AS REAL ) - - + col1 * + col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - + col0 ) + col0 + col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT - 91 * + 82 + COUNT( * ) * - COUNT( * ) + MIN( - - col2 ) col0 FROM tab0 AS cor0
----
-7461

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1855
SELECT - 91 * + 82 + COUNT ( * ) * - COUNT ( * ) + MIN ( - - col2 ) col0 FROM tab0 AS cor0
----
-7461

onlyif mysql # aggregate syntax: 
query I rowsort label-1856
SELECT ALL MAX( + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1856
SELECT ALL MAX ( + col1 ) FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + col1 + + col0 / - col0 * col1 * col2 AND + 40
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1858
SELECT col0 DIV 19 col1 FROM tab1
----
2
4
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1858
SELECT col0 / 19 col1 FROM tab1
----
2
4
4

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 / + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 57 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT COUNT( - 64 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-1861
SELECT COUNT ( - 64 ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1862
SELECT ALL - COUNT( DISTINCT - + col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1862
SELECT ALL - COUNT ( DISTINCT - + col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 6 AS col2, - col1 col1 FROM tab0 AS cor0
----
6
-1
6
-21
6
-81

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT + col0 * 78 FROM tab2
----
3588
4992
5850

query I rowsort
SELECT - ( ( col1 ) ) * + col2 FROM tab1
----
-1344
-295
-3196

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT + 90 + + + 35 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query II rowsort label-1868
SELECT DISTINCT MIN( + col1 ), 45 AS col2 FROM tab0
----
1
45

skipif mysql # not compatible
query II rowsort label-1868
SELECT DISTINCT MIN ( + col1 ), 45 AS col2 FROM tab0
----
1
45

query I rowsort
SELECT DISTINCT col1 * + ( col2 ) FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT MAX( ALL - col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-1870
SELECT MAX ( ALL - col0 ) AS col1 FROM tab0
----
-15

query I rowsort
SELECT 65 + col0 FROM tab1
----
116
150
156

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT 92 * - + COUNT( * ) + - 34 FROM tab0
----
-310

skipif mysql # not compatible
query I rowsort label-1872
SELECT 92 * - + COUNT ( * ) + - 34 FROM tab0
----
-310

query I rowsort
SELECT ( - col2 ) + + - col0 FROM tab1
----
-144
-147
-159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1874
SELECT ALL CAST( NULL AS SIGNED ) / 83, col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-1874
SELECT ALL CAST ( NULL AS INTEGER ) / 83, col0 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT col0 * - - col0 / 83 * - + col2 - 97 + + + 61 - 28 + + - 39 + + col0 + - + 98 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1876
SELECT DISTINCT - COUNT( * ) + + 19 + - CAST( - 38 AS SIGNED ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-1876
SELECT DISTINCT - COUNT ( * ) + + 19 + - CAST ( - 38 AS INTEGER ) FROM tab1 AS cor0
----
54

query I rowsort
SELECT ALL col1 + + col1 * - 28 + - - col1 FROM tab0 AS cor0
----
-2106
-26
-546

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 33 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - col0 ) + col0 - col1 * - col2 FROM tab2
----
1265
3208
4036

onlyif mysql # DIV for integer division: 
query I rowsort label-1880
SELECT ALL 64 DIV 79 col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1880
SELECT ALL 64 / 79 col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col0 + - + 91 AS col2 FROM tab1
----
-40
-6
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1882
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 + - CAST( NULL AS DECIMAL ) + + col0 AND - - 66 * + 15 * col0 + - col1 + col1
----

skipif mysql # not compatible
query III rowsort label-1882
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 + - CAST ( NULL AS REAL ) + + col0 AND - - 66 * + 15 * col0 + - col1 + col1
----

query I rowsort
SELECT DISTINCT + - 73 + + - col1 AS col2 FROM tab2 cor0
----
-124
-140
-150

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 41 / + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1885
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 WHERE 78 + col1 * - ( col2 ) * - - col1 + + col1 BETWEEN NULL AND + ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1885
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 WHERE 78 + col1 * - ( col2 ) * - - col1 + + col1 BETWEEN NULL AND + ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1886
SELECT DISTINCT - 0 AS col1, CAST( NULL AS SIGNED ) * - - col1 FROM tab2 AS cor0
----
0
NULL

skipif mysql # not compatible
query II rowsort label-1886
SELECT DISTINCT - 0 AS col1, CAST ( NULL AS INTEGER ) * - - col1 FROM tab2 AS cor0
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT + COUNT( DISTINCT - + col2 ) + + COUNT( + col1 ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1887
SELECT + COUNT ( DISTINCT - + col2 ) + + COUNT ( + col1 ) AS col2 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT - SUM( ALL col0 ) + - 76 AS col0 FROM tab2 cor0
----
-261

skipif mysql # not compatible
query I rowsort label-1888
SELECT - SUM ( ALL col0 ) + - 76 AS col0 FROM tab2 cor0
----
-261

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1889
SELECT + COUNT( * ) + 49 - + + COUNT( * ) DIV - + 75 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-1889
SELECT + COUNT ( * ) + 49 - + + COUNT ( * ) / - + 75 FROM tab2
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 38 + col0 + + col1 * + col2 col2 FROM tab2
----
1257
3182
3999

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= + ( - ( - - col1 ) )
----

query I rowsort
SELECT DISTINCT col1 - - 33 FROM tab2
----
100
110
84

query I rowsort
SELECT ALL + col1 * + 45 - + col1 FROM tab1
----
2068
220
616

query III rowsort
SELECT * FROM tab1 WHERE - col1 / + 47 NOT IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE + + 70 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 41 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL <= col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 78 BETWEEN + + 84 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 34 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 * - 4 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b828d77cb34c253a1e28146582b27a9c

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT DISTINCT + MAX( ALL + - 69 ) FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-1902
SELECT DISTINCT + MAX ( ALL + - 69 ) FROM tab2
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-1903
SELECT + + col1 DIV - - col0 AS col1 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-1903
SELECT + + col1 / - - col0 AS col1 FROM tab0 AS cor0
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT ALL + SUM( ALL 38 ) FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-1904
SELECT ALL + SUM ( ALL 38 ) FROM tab2 AS cor0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT - ( - MIN( DISTINCT - + col2 ) ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1905
SELECT - ( - MIN ( DISTINCT - + col2 ) ) AS col0 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ALL - + 36 * - col0 AS col2 FROM tab1 AS cor0
----
1836
3060
3276

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 68 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1908
SELECT - 69 AS col0, MIN( DISTINCT - + col0 ) FROM tab2
----
-69
-75

skipif mysql # not compatible
query II rowsort label-1908
SELECT - 69 AS col0, MIN ( DISTINCT - + col0 ) FROM tab2
----
-69
-75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 38 <= NULL
----

query I rowsort
SELECT DISTINCT - 63 AS col2 FROM tab0
----
-63

query I rowsort
SELECT DISTINCT + + col2 FROM tab2 WHERE NOT NULL = - ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT DISTINCT + MIN( DISTINCT + + col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT + MIN ( DISTINCT + + col2 ) AS col2 FROM tab2 AS cor0
----
23

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 44 >= + + 86 * + 66 + + 19
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col1 * col2 + - 76 AS col2 FROM tab0 AS cor0
----
-175
-286
-3883

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1915
SELECT DISTINCT + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1915
SELECT DISTINCT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + - 49 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1917
SELECT ALL 27 * - + 26 * col0 + - col1 - - CAST( NULL AS SIGNED ) * col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1917
SELECT ALL 27 * - + 26 * col0 + - col1 - - CAST ( NULL AS INTEGER ) * col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + - + 37 + + col2 * - - 12 FROM tab1
----
1166
756
870

onlyif mysql # DIV for integer division: 
query I rowsort label-1919
SELECT ALL 84 DIV 71 * + - 40 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

skipif mysql # not compatible
query I rowsort label-1919
SELECT ALL 84 / 71 * + - 40 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT ALL 27 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # DIV for integer division: 
query I rowsort label-1921
SELECT - ( - ( - + col1 ) ) * 85 DIV - ( 82 ) AS col2 FROM tab0 AS cor0
----
1
21
83

skipif mysql # not compatible
query I rowsort label-1921
SELECT - ( - ( - + col1 ) ) * 85 / - ( 82 ) AS col2 FROM tab0 AS cor0
----
1
21
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col1 - + - 94 + + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col1 - + - 94 + + col2 IS NOT NULL
----
0

query I rowsort
SELECT ALL - 43 * - col0 FROM tab2 AS cor0
----
1978
2752
3225

query I rowsort
SELECT DISTINCT col1 * + col0 + - - 48 FROM tab1 AS cor0
----
4325
473
762

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT + ( - + COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE col2 >= + ( + 38 )
----
-2

skipif mysql # not compatible
query I rowsort label-1925
SELECT + ( - + COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE col2 >= + ( + 38 )
----
-2

query I rowsort
SELECT ALL + 11 * + - col1 AS col0 FROM tab2
----
-561
-737
-847

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 - - col2 + col2 - col2 col2, + col0 + - + 9 FROM tab0
----
198
88
20
78
94
6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col2 NOT BETWEEN col2 AND NULL
----

query II rowsort
SELECT - 72, + col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-72
1
-72
21
-72
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1930
SELECT DISTINCT MIN( col2 ) DIV - + COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT MIN ( col2 ) / - + COUNT ( * ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT COUNT( * ) * - 96 FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-1931
SELECT COUNT ( * ) * - 96 FROM tab2
----
-288

query II rowsort
SELECT + col1 AS col0, + col1 AS col0 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT ALL 61 + + col1 / - col2 * - ( col1 ) FROM tab0 AS cor0 WHERE NULL = - 22
----

query II rowsort
SELECT - + col2, 84 AS col2 FROM tab2 AS cor0
----
-23
84
-40
84
-58
84

onlyif mysql # aggregate syntax: 
query I rowsort label-1935
SELECT - COUNT( * ) * + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL <= - col0
----
0

skipif mysql # not compatible
query I rowsort label-1935
SELECT - COUNT ( * ) * + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL <= - col0
----
0

query I rowsort
SELECT DISTINCT col0 - ( col0 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE + ( - 15 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1937
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE + ( - 15 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT 18 * col1 + ( 81 ) * col2 FROM tab0 WHERE 44 * - col0 - col2 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - col1 + 48 AND - 7 + - col2
----

query I rowsort
SELECT ( - 80 ) AS col2 FROM tab0
----
-80
-80
-80

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( col1 ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + 4 + + 55 )
----

query I rowsort
SELECT 17 + col0 * col2 FROM tab1
----
4913
5032
6205

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 NOT BETWEEN ( 60 ) AND 70
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - 4 col0 FROM tab0 WHERE col0 - + 14 BETWEEN - col1 AND + col0
----
11
83
93

query I rowsort
SELECT DISTINCT - 14 + + col1 AS col2 FROM tab2
----
37
53
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1947
SELECT ALL SUM( ALL + CAST( + col2 AS SIGNED ) ) col0 FROM tab2 WHERE + 7 / 94 IN ( 55 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1947
SELECT ALL SUM ( ALL + CAST ( + col2 AS INTEGER ) ) col0 FROM tab2 WHERE + 7 / 94 IN ( 55 )
----
NULL

query I rowsort
SELECT - 17 * col2 AS col2 FROM tab1
----
-1003
-1156
-1632

query I rowsort
SELECT + 33 * 36 AS col2 FROM tab1
----
1188
1188
1188

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT ALL MAX( col2 ) col0 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1950
SELECT ALL MAX ( col2 ) col0 FROM tab0
----
99

query I rowsort
SELECT ALL 5 AS col2 FROM tab0 WHERE ( NULL ) < + 31
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1952
SELECT + 76 DIV + col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1952
SELECT + 76 / + col2 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE + 83 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1954
SELECT + CAST( col2 AS SIGNED ) * - col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-1954
SELECT + CAST ( col2 AS INTEGER ) * - col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 col0 FROM tab0 WHERE NOT NULL NOT BETWEEN - 91 AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1956
SELECT DISTINCT + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL = col0 - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1956
SELECT DISTINCT + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL = col0 - + col1
----
NULL

query I rowsort
SELECT DISTINCT + 25 - + col1 FROM tab1 AS cor0
----
-22
11
20

query I rowsort
SELECT ALL 98 * col0 AS col2 FROM tab0 AS cor0
----
1470
8526
9506

query I rowsort
SELECT DISTINCT - + 11 - 1 * + col2 AS col1 FROM tab1 cor0
----
-107
-70
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 AS cor0 WHERE NULL <> ( - col2 * col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1961
SELECT ALL - 56 DIV col0 - - 77 FROM tab0 cor0
----
74
77
77

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL - 56 / col0 - - 77 FROM tab0 cor0
----
74
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1962
SELECT - - ( CAST( NULL AS SIGNED ) ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1962
SELECT - - ( CAST ( NULL AS INTEGER ) ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1964
SELECT DISTINCT col1 + + CAST( NULL AS SIGNED ) / col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1964
SELECT DISTINCT col1 + + CAST ( NULL AS INTEGER ) / col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT + 92 + + COUNT( col2 ) FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-1965
SELECT + 92 + + COUNT ( col2 ) FROM tab0 AS cor0
----
95

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 96 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1967
SELECT - - 83 * + COUNT( * ) FROM tab1 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-1967
SELECT - - 83 * + COUNT ( * ) FROM tab1 AS cor0
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT + COUNT( * ) * - - 92 FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-1968
SELECT + COUNT ( * ) * - - 92 FROM tab0
----
276

query III rowsort
SELECT ALL * FROM tab2 WHERE - 80 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1970
SELECT 15 / + ( MIN( DISTINCT + 28 ) ) * CAST( + CAST( NULL AS SIGNED ) + 61 AS SIGNED ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1970
SELECT 15 / + ( MIN ( DISTINCT + 28 ) ) * CAST ( + CAST ( NULL AS INTEGER ) + 61 AS INTEGER ) col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( 40 )
----

query I rowsort
SELECT ALL 62 AS col2 FROM tab2 WHERE NOT 14 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( ( + ( ( 49 ) ) ) )
----

query I rowsort
SELECT DISTINCT 20 * - ( - 84 ) AS col0 FROM tab2 AS cor0
----
1680

query I rowsort
SELECT + - 72 * - - col0 FROM tab2 AS cor0
----
-3312
-4608
-5400

query I rowsort
SELECT ALL + 55 + 90 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184dd874efc91366378cfe8644e8c122

query I rowsort
SELECT ALL + 35 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) <> NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1979
SELECT COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) <> NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1981
SELECT ALL 47 AS col1, + 56 * COUNT( DISTINCT + 36 ) AS col1 FROM tab1
----
47
56

skipif mysql # not compatible
query II rowsort label-1981
SELECT ALL 47 AS col1, + 56 * COUNT ( DISTINCT + 36 ) AS col1 FROM tab1
----
47
56

query I rowsort
SELECT + 2 + + col2 FROM tab2
----
25
42
60

query I rowsort
SELECT + 90 + - 77 + - col1 FROM tab2 AS cor0
----
-38
-54
-64

query I rowsort
SELECT DISTINCT + ( - col0 ) FROM tab2 cor0 WHERE NULL NOT IN ( + col2 * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1985
SELECT ALL - CAST( NULL AS SIGNED ) * col1 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-1985
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col0 * ( col0 ) FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT DISTINCT + col0 + + - 58 FROM tab1 AS cor0
----
-7
27
33

query I rowsort
SELECT ALL - col2 * 28 AS col1 FROM tab2 AS cor0
----
-1120
-1624
-644

query I rowsort
SELECT ALL + col1 + 95 + - - col1 FROM tab0 AS cor0
----
137
257
97

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 51 = - 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1991
SELECT 19, + CAST( + 79 AS SIGNED ) * col0 AS col1 FROM tab0 AS cor0
----
19
1185
19
6873
19
7663

skipif mysql # not compatible
query II rowsort label-1991
SELECT 19, + CAST ( + 79 AS INTEGER ) * col0 AS col1 FROM tab0 AS cor0
----
19
1185
19
6873
19
7663

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( - + 70 ) + col1 * col2 IN ( col0 * - 32 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( 32 )
----

query I rowsort
SELECT ALL - ( + - col1 ) + 6 FROM tab0 AS cor0
----
27
7
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1995
SELECT 98 * - CAST( 20 AS SIGNED ) + - CAST( 11 AS SIGNED ) FROM tab1 AS cor0 WHERE col1 / + + col1 * col0 - + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-1995
SELECT 98 * - CAST ( 20 AS INTEGER ) + - CAST ( 11 AS INTEGER ) FROM tab1 AS cor0 WHERE col1 / + + col1 * col0 - + col2 IS NULL
----

query I rowsort
SELECT ALL + 37 FROM tab2 WHERE + ( + - col2 ) / 20 <= col1
----
37
37
37

query I rowsort
SELECT DISTINCT col2 + 33 AS col0 FROM tab2
----
56
73
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1998
SELECT * FROM tab2 WHERE - + col2 + - + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1998
SELECT * FROM tab2 WHERE - + col2 + - + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 86 AS col0 FROM tab1 WHERE - col2 IS NOT NULL
----
-86

query I rowsort
SELECT ALL - col2 + + - ( - - col0 ) FROM tab1
----
-144
-147
-159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2001
SELECT DISTINCT + 39 DIV - - 44 + + MIN( ALL - col1 ) DIV 80 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2001
SELECT DISTINCT + 39 / - - 44 + + MIN ( ALL - col1 ) / 80 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2002
SELECT ALL + col0 + + CAST( NULL AS DECIMAL ) / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2002
SELECT ALL + col0 + + CAST ( NULL AS REAL ) / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2003
SELECT DISTINCT - 17 - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2003
SELECT DISTINCT - 17 - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col1, + col0 * col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2005
SELECT - col1 + - col1 DIV - ( - col0 ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2005
SELECT - col1 + - col1 / - ( - col0 ) FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 + + + 13 + + col0 + + col2 col0 FROM tab0 AS cor0
----
184
50
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 22 < col2
----
0

skipif mysql # not compatible
query I rowsort label-2007
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 22 < col2
----
0

query I rowsort
SELECT DISTINCT + - ( + - 2 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
2

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 NOT IN ( + col0 * - - col1 + 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2010
SELECT ALL + COUNT( * ) * - 44 + 57 * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) NOT IN ( 13 )
----
0

skipif mysql # not compatible
query I rowsort label-2010
SELECT ALL + COUNT ( * ) * - 44 + 57 * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) NOT IN ( 13 )
----
0

query I rowsort
SELECT ALL - col0 * - + col2 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2012
SELECT ALL - COUNT( DISTINCT - col2 ) - - 27 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL - COUNT ( DISTINCT - col2 ) - - 27 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
27

query I rowsort
SELECT DISTINCT - col1 + + - 88 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-139
-155
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT MIN( ALL - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2014
SELECT MIN ( ALL - col1 ) FROM tab2 AS cor0
----
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 82 + - - col2 NOT BETWEEN col0 * + 1 AND ( - col0 + + ( col2 ) * 19 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-2016
SELECT DISTINCT + col0, 36 DIV + ( + 76 ) FROM tab1 AS cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-2016
SELECT DISTINCT + col0, 36 / + ( + 76 ) FROM tab1 AS cor0
----
51
0
85
0
91
0

query I rowsort
SELECT - 61 AS col2 FROM tab2 cor0
----
-61
-61
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 98 col0 FROM tab2 AS cor0
----
98

query I rowsort
SELECT - 27 * col1 AS col2 FROM tab2 AS cor0 WHERE ( - 16 * - - 50 * - 26 + col2 ) NOT BETWEEN - 99 * col0 + + col1 / - col2 AND - 17 AND ( NULL ) BETWEEN - 38 * - col0 AND col1 + - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - ( - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 71 col1 FROM tab1
----
4189
4828
6816

onlyif mysql # DIV for integer division: 
query II rowsort label-2022
SELECT DISTINCT + col0 AS col2, - ( + - ( + 13 ) ) DIV + col0 AS col2 FROM tab0
----
15
0
87
0
97
0

skipif mysql # not compatible
query II rowsort label-2022
SELECT DISTINCT + col0 AS col2, - ( + - ( + 13 ) ) / + col0 AS col2 FROM tab0
----
15
0
87
0
97
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2023
SELECT CAST( + 64 AS SIGNED ) AS col1 FROM tab2
----
64
64
64

skipif mysql # not compatible
query I rowsort label-2023
SELECT CAST ( + 64 AS INTEGER ) AS col1 FROM tab2
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2024
SELECT ALL - CAST( + - col2 AS SIGNED ) AS col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2024
SELECT ALL - CAST ( + - col2 AS INTEGER ) AS col0 FROM tab0
----
10
47
99

query I rowsort
SELECT ALL - + col1 AS col0 FROM tab2 WHERE ( ( NULL ) BETWEEN + col0 AND NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2026
SELECT ALL - col1, + CAST( NULL AS DECIMAL ) col2 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2026
SELECT ALL - col1, + CAST ( NULL AS REAL ) col2 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

query I rowsort
SELECT ALL 38 FROM tab1 WHERE + - col2 * col0 * + 7 IS NULL
----

query I rowsort
SELECT ALL col2 * - - col0 AS col2 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2029
SELECT ALL col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) + + col2 BETWEEN - + col1 AND ( - + 27 )
----

skipif mysql # not compatible
query I rowsort label-2029
SELECT ALL col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) + + col2 BETWEEN - + col1 AND ( - + 27 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT DISTINCT - 44 * + MAX( ALL - - col2 ) + 97 * - + COUNT( DISTINCT + + ( col0 ) ) FROM tab0 AS cor0
----
-4647

skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT - 44 * + MAX ( ALL - - col2 ) + 97 * - + COUNT ( DISTINCT + + ( col0 ) ) FROM tab0 AS cor0
----
-4647

query I rowsort
SELECT DISTINCT + 75 * + 0 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2032
SELECT ALL MIN( ALL + ( + - col2 ) ) DIV + 46 col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2032
SELECT ALL MIN ( ALL + ( + - col2 ) ) / + 46 col2 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + 70 FROM tab1 AS cor0 WHERE NOT NULL <= - 25 - + + col1 + - 48
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2034
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + - 31 * - - col2 BETWEEN ( - + CAST( NULL AS SIGNED ) - - col2 ) AND ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-2034
SELECT ALL * FROM tab1 AS cor0 WHERE col1 + - 31 * - - col2 BETWEEN ( - + CAST ( NULL AS INTEGER ) - - col2 ) AND ( - col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 81 * - col0 - 60 NOT IN ( - - 97 )
----

query I rowsort
SELECT 86 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT + MIN( ALL col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2037
SELECT + MIN ( ALL col2 ) FROM tab2 AS cor0
----
23

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab1 AS cor1 ON ( NULL ) NOT IN ( + 39 )
----

query I rowsort
SELECT ALL 61 * + col0 AS col1 FROM tab1
----
3111
5185
5551

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT - COUNT( * ) * MAX( DISTINCT - col2 ) FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-2040
SELECT - COUNT ( * ) * MAX ( DISTINCT - col2 ) FROM tab1
----
177

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2041
SELECT CAST( NULL AS SIGNED ) / - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2041
SELECT CAST ( NULL AS INTEGER ) / - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT COUNT( * ) + + MAX( ALL col0 ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2042
SELECT COUNT ( * ) + + MAX ( ALL col0 ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT 88 * - 82 FROM tab2 cor0 WHERE ( NOT ( NULL IS NULL ) )
----

query I rowsort
SELECT - 93 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT ALL - 2 + + COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2045
SELECT ALL - 2 + + COUNT ( * ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL 78 + + col2 FROM tab0
----
125
177
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT ALL 31 + - COUNT( * ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-2047
SELECT ALL 31 + - COUNT ( * ) FROM tab0
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 - + col0 col1 FROM tab1
----
-23
-26
45

query I rowsort
SELECT - col1 + - 98 AS col2 FROM tab2
----
-149
-165
-175

query I rowsort
SELECT DISTINCT - col1 + + + col0 AS col0 FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2051
SELECT ALL ( - - 22 ) DIV - COUNT( * ) AS col0 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL ( - - 22 ) / - COUNT ( * ) AS col0 FROM tab1
----
-7

query I rowsort
SELECT col0 FROM tab1 WHERE col1 * + col0 BETWEEN 74 / col2 * + + 26 - - + col0 + - col1 AND ( NULL )
----

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE ( NULL ) IS NULL
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 15 <= + col0 - + + col2
----

query I rowsort
SELECT DISTINCT + col1 - - - 48 * + col1 * + col1 FROM tab0 cor0
----
-21147
-314847
-47

query II rowsort
SELECT ALL - col1 AS col1, + 68 AS col0 FROM tab2 AS cor0
----
-51
68
-67
68
-77
68

query I rowsort
SELECT + 1 * + col0 AS col1 FROM tab0 cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT DISTINCT - - COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2058
SELECT DISTINCT - - COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2059
SELECT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT + 6 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query IIIIII rowsort
SELECT * FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT NULL >= - 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2062
SELECT AVG ( - + ( - + col2 ) ) + + MIN( + + col2 ) FROM tab1 AS cor0 WHERE NOT - col0 / - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2062
SELECT AVG ( - + ( - + col2 ) ) + + MIN ( + + col2 ) FROM tab1 AS cor0 WHERE NOT - col0 / - col1 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 60 IS NOT NULL
----

query I rowsort
SELECT ALL + 17 AS col2 FROM tab1 cor0
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT - - SUM( ALL - col1 ) AS col2 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2065
SELECT - - SUM ( ALL - col1 ) AS col2 FROM tab0 cor0
----
-103

query II rowsort
SELECT - 16 AS col2, col2 * - + col0 + + - col0 FROM tab2
----
-16
-1104
-16
-2624
-16
-4425

onlyif mysql # aggregate syntax: 
query I rowsort label-2067
SELECT ALL - COUNT( DISTINCT col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2067
SELECT ALL - COUNT ( DISTINCT col2 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2068
SELECT ALL CAST( - col0 AS SIGNED ) col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2068
SELECT ALL CAST ( - col0 AS INTEGER ) col2 FROM tab1
----
-51
-85
-91

query II rowsort
SELECT - 22, col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-22
15
-22
87
-22
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2070
SELECT DISTINCT - MAX( DISTINCT - + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2070
SELECT DISTINCT - MAX ( DISTINCT - + col1 ) FROM tab0 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 74 col1 FROM tab0 AS cor0
----
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 col0 FROM tab2 AS cor0
----
-8
-8
-8

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 >= NULL
----

query II rowsort
SELECT - + col0, col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT DISTINCT 65 AS col1 FROM tab1 WHERE NOT NULL < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2076
SELECT - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT ALL + COUNT( DISTINCT - - col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2078
SELECT ALL + COUNT ( DISTINCT - - col2 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT + 30 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2079
SELECT + 30 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
27

query I rowsort
SELECT - col2 + 22 * - col2 AS col1 FROM tab0 AS cor0
----
-1081
-2277
-230

onlyif mysql # DIV for integer division: 
query I rowsort label-2081
SELECT ALL - + col2 DIV - + 50 AS col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL - + col2 / - + 50 AS col0 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - 1 * 55 + - + col2 FROM tab1 AS cor0
----
-114
-123
-151

query I rowsort
SELECT ALL + col0 + 68 + + + col2 * ( - + col0 ) AS col0 FROM tab0 AS cor0
----
-622
-715
-9438

query I rowsort
SELECT + + col2 * - 30 FROM tab2 cor0
----
-1200
-1740
-690

query I rowsort
SELECT DISTINCT ( + 19 ) AS col2 FROM tab2 AS cor0
----
19

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( + col0 / - 90 ) AND 93
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE + - col0 * + col2 + 95 = 31 + - + 64 / - 23
----

query I rowsort
SELECT + col2 FROM tab1 WHERE col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2089
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE + col0 IS NOT NULL
----
-3

query I rowsort
SELECT - - col2 / - + col1 * + 25 * - col2 AS col2 FROM tab0 WHERE - 29 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 27 - + - col1 * - 93 BETWEEN 6 AND - - col0
----

query II rowsort
SELECT col2 AS col1, col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
46
40
64
58
75

query I rowsort
SELECT + ( - + 25 ) FROM tab0
----
-25
-25
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT DISTINCT - COUNT( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT - COUNT ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-2095
SELECT + COUNT( * ) AS col2, 80 FROM tab2 AS cor0
----
3
80

skipif mysql # not compatible
query II rowsort label-2095
SELECT + COUNT ( * ) AS col2, 80 FROM tab2 AS cor0
----
3
80

query I rowsort
SELECT - + ( + 80 ) AS col0 FROM tab2 AS cor0
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2097
SELECT ALL + + 98 * - ( + + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-2097
SELECT ALL + + 98 * - ( + + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-294

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + col1 IS NULL )
----

query I rowsort
SELECT 7 * + + col0 FROM tab2
----
322
448
525

query I rowsort
SELECT col2 * + + col0 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2101
SELECT + COUNT( * ) DIV - - 60 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2101
SELECT + COUNT ( * ) / - - 60 AS col0 FROM tab0
----
0

query I rowsort
SELECT col1 * + - col0 AS col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2103
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) >= - col1
----

skipif mysql # not compatible
query III rowsort label-2103
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) >= - col1
----

onlyif mysql # DIV for integer division: 
query III rowsort label-2104
SELECT + col0 + - col0 AS col2, col1 * + + col0 DIV col0, col1 FROM tab0 AS cor0
----
9 values hashing to d7cf70175aa9d9bae9a66073d1f28308

skipif mysql # not compatible
query III rowsort label-2104
SELECT + col0 + - col0 AS col2, col1 * + + col0 / col0, col1 FROM tab0 AS cor0
----
9 values hashing to d7cf70175aa9d9bae9a66073d1f28308

query I rowsort
SELECT - ( + ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
10
47
99

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NOT NULL IS NULL )
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE + ( 84 ) * - col0 BETWEEN + 21 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT ALL + MIN( - + col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2108
SELECT ALL + MIN ( - + col0 ) FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT DISTINCT - SUM( + col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2109
SELECT DISTINCT - SUM ( + col1 ) FROM tab0 cor0
----
-103

query I rowsort
SELECT ALL - 86 * + 85 + - - 64 AS col0 FROM tab2 AS cor0
----
-7246
-7246
-7246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2111
SELECT DISTINCT + CAST( + AVG ( DISTINCT + col2 ) AS SIGNED ) * + ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2111
SELECT DISTINCT + CAST ( + AVG ( DISTINCT + col2 ) AS INTEGER ) * + ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - - col1 + - - 34 FROM tab2 AS cor0
----
101
111
85

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2113
SELECT ALL - + 63 + + col0 * - 69, - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1098
NULL
-6066
NULL
-6756
NULL

skipif mysql # not compatible
query II rowsort label-2113
SELECT ALL - + 63 + + col0 * - 69, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1098
NULL
-6066
NULL
-6756
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2114
SELECT 65 + + - col1 DIV + - col0, + 35 DIV col0 - + col1 AS col1 FROM tab1 AS cor0
----
65
-14
65
-47
65
-5

skipif mysql # not compatible
query II rowsort label-2114
SELECT 65 + + - col1 / + - col0, + 35 / col0 - + col1 AS col1 FROM tab1 AS cor0
----
65
-14
65
-47
65
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT DISTINCT + MIN( + 27 ) AS col2 FROM tab0 WHERE NOT NULL >= + + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-2115
SELECT DISTINCT + MIN ( + 27 ) AS col2 FROM tab0 WHERE NOT NULL >= + + 73
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2116
SELECT ALL - CAST( NULL AS SIGNED ) - + ( + + CAST( NULL AS SIGNED ) ) + + - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL - CAST ( NULL AS INTEGER ) - + ( + + CAST ( NULL AS INTEGER ) ) + + - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT - MAX( ALL 59 ) AS col1 FROM tab2 WHERE - 9 BETWEEN + - 1 AND + 52
----
NULL

skipif mysql # not compatible
query I rowsort label-2117
SELECT - MAX ( ALL 59 ) AS col1 FROM tab2 WHERE - 9 BETWEEN + - 1 AND + 52
----
NULL

query II rowsort
SELECT - col2, col1 AS col0 FROM tab2
----
-23
51
-40
77
-58
67

query II rowsort
SELECT ALL - - 49 AS col0, - col2 + col1 FROM tab1 AS cor0
----
49
-21
49
-54
49
-82

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 6 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2121
SELECT + 34 DIV MIN( ALL + + col0 ) + 52 FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-2121
SELECT + 34 / MIN ( ALL + + col0 ) + 52 FROM tab1 AS cor0
----
52

query I rowsort
SELECT ALL - col1 * - + 77 AS col2 FROM tab2 cor0
----
3927
5159
5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 col0 FROM tab1 AS cor0
----
-69
-69
-69

query I rowsort
SELECT DISTINCT 40 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 <> col0
----

query I rowsort
SELECT ALL 74 * - + col1 + - 52 AS col2 FROM tab2 cor0
----
-3826
-5010
-5750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 * - ( + col0 ) col1 FROM tab2 AS cor0
----
262144
421875
97336

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT - MAX( - col1 ) * - COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2128
SELECT - MAX ( - col1 ) * - COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
-9

query II rowsort
SELECT + col0, 44 FROM tab2
----
46
44
64
44
75
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2130
SELECT ALL + MIN( - + 88 ) * - 69 * - 54 AS col2 FROM tab1
----
-327888

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL + MIN ( - + 88 ) * - 69 * - 54 AS col2 FROM tab1
----
-327888

query II rowsort
SELECT DISTINCT 8 AS col2, - col0 AS col1 FROM tab2
----
8
-46
8
-64
8
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2132
SELECT ALL 63 * - COUNT( * ) AS col0 FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-2132
SELECT ALL 63 * - COUNT ( * ) AS col0 FROM tab1
----
-189

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2133
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > - CAST( + - 15 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2133
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > - CAST ( + - 15 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2134
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT + 33 AS col0, + col2 AS col0 FROM tab1 AS cor0
----
33
59
33
68
33
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 + + col0 col2 FROM tab0
----
110
182
192

query I rowsort
SELECT ALL + - 14 * - - col0 AS col1 FROM tab1 AS cor0
----
-1190
-1274
-714

query II rowsort
SELECT DISTINCT + ( + col1 ), + 59 * col1 FROM tab2 AS cor0
----
51
3009
67
3953
77
4543

query I rowsort
SELECT col0 * - col2 * col2 AS col2 FROM tab0 AS cor0
----
-33135
-8700
-950697

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT - ( - COUNT( * ) ) * - + 44 AS col1 FROM tab1 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-2140
SELECT - ( - COUNT ( * ) ) * - + 44 AS col1 FROM tab1 AS cor0
----
-132

query I rowsort
SELECT + 39 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
39
39
39

query I rowsort
SELECT DISTINCT + ( + + col1 ) FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT DISTINCT MAX( DISTINCT - + col2 ) * + - 54 + - MIN( ALL - ( + + col1 ) ) FROM tab2 AS cor0
----
1319

skipif mysql # not compatible
query I rowsort label-2143
SELECT DISTINCT MAX ( DISTINCT - + col2 ) * + - 54 + - MIN ( ALL - ( + + col1 ) ) FROM tab2 AS cor0
----
1319

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col1 + + col0 / - + 70 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT ALL - COUNT( * ) col1 FROM tab1 AS cor0 WHERE ( NULL ) <> - col1 + col2 + - - col1 * + 46
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2145
SELECT ALL - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE ( NULL ) <> - col1 + col2 + - - col1 * + 46
----
0

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 19 AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT ALL COUNT( col1 ) + + + SUM( + col2 ) AS col0 FROM tab1
----
226

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL COUNT ( col1 ) + + + SUM ( + col2 ) AS col0 FROM tab1
----
226

query I rowsort
SELECT DISTINCT 1 FROM tab2 WHERE + - col0 * + col1 IS NOT NULL
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2150
SELECT ALL - col1 + + 85 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2150
SELECT ALL - col1 + + 85 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 - - - 61 FROM tab1
----
-14
-47
-56

onlyif mysql # DIV for integer division: 
query I rowsort label-2152
SELECT col1 DIV - col1 + 32 AS col2 FROM tab1
----
31
31
31

skipif mysql # not compatible
query I rowsort label-2152
SELECT col1 / - col1 + 32 AS col2 FROM tab1
----
31
31
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2153
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT - - col1 <> + col0
----

skipif mysql # not compatible
query I rowsort label-2153
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT - - col1 <> + col0
----

query I rowsort
SELECT - ( - + col1 ) AS col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT - + 29 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + - col1 * + col1 * - col1 col1, - col0 - col1 AS col0 FROM tab1
----
263424
-65
7059964
-138
7375
-90

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 31 + + col2 ) <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2158
SELECT ALL 42, + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
42
NULL
42
NULL
42
NULL

skipif mysql # not compatible
query II rowsort label-2158
SELECT ALL 42, + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
42
NULL
42
NULL
42
NULL

query I rowsort
SELECT ALL + + 35 * 96 FROM tab0 AS cor0
----
3360
3360
3360

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2160
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + 28 NOT BETWEEN + + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2160
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + 28 NOT BETWEEN + + CAST ( NULL AS INTEGER ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * - col2 IN ( - - 33 / - col0 - - 6 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2162
SELECT DISTINCT 53 DIV - + col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2162
SELECT DISTINCT 53 / - + col0 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT - MIN( + col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2163
SELECT - MIN ( + col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2164
SELECT DISTINCT - COUNT( * ) DIV + + 47 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2164
SELECT DISTINCT - COUNT ( * ) / + + 47 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2165
SELECT DISTINCT ( + 74 ) AS col2, - COUNT( * ) * + 78 + + 43 AS col2 FROM tab2
----
74
-191

skipif mysql # not compatible
query II rowsort label-2165
SELECT DISTINCT ( + 74 ) AS col2, - COUNT ( * ) * + 78 + + 43 AS col2 FROM tab2
----
74
-191

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2166
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 40 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 40 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT + MIN( + - col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2167
SELECT + MIN ( + - col1 ) AS col2 FROM tab1
----
-47

query I rowsort
SELECT col2 + + + col1 + 83 AS col2 FROM tab0
----
114
183
211

query I rowsort
SELECT DISTINCT - col1 * - + ( - + col2 ) FROM tab0
----
-210
-3807
-99

query II rowsort
SELECT - col2 + - col0 AS col1, 26 FROM tab0
----
-196
26
-62
26
-97
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2171
SELECT ALL - 77 DIV + - ( - + 40 ) AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2171
SELECT ALL - 77 / + - ( - + 40 ) AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 WHERE + - col2 / + col1 < + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT - MAX( DISTINCT + col2 ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2173
SELECT - MAX ( DISTINCT + col2 ) AS col1 FROM tab2
----
-58

query I rowsort
SELECT ALL + - 8 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query II rowsort
SELECT DISTINCT - - 64, 18 AS col2 FROM tab2 AS cor0
----
64
18

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2176
SELECT + col2 + CAST( NULL AS DECIMAL ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2176
SELECT + col2 + CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * col2 + - + 36 - - col1 FROM tab2 AS cor0
----
1188
3121
3917

query II rowsort
SELECT DISTINCT - + 59 AS col2, - col0 FROM tab0 AS cor0
----
-59
-15
-59
-87
-59
-97

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT ( NULL ) IS NULL )
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NULL <= - col1 * col2 + + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + + col2 * - - ( 75 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT - MAX( ALL - ( col0 ) ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2182
SELECT - MAX ( ALL - ( col0 ) ) AS col2 FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT col1 * + 38 AS col1 FROM tab1
----
1786
190
532

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / 26 * - 86 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT ALL MAX( ALL + col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2185
SELECT ALL MAX ( ALL + col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT + - col2 + - 15 AS col2 FROM tab1 AS cor0
----
-111
-74
-83

query I rowsort
SELECT + - ( + 97 ) AS col2 FROM tab2 AS cor0
----
-97
-97
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2188
SELECT ALL - col1 DIV - - 62 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2188
SELECT ALL - col1 / - - 62 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 44 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2190
SELECT - CAST( - 58 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-2190
SELECT - CAST ( - 58 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT DISTINCT - 95 + + col0 AS col0 FROM tab1 AS cor0
----
-10
-4
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-2192
SELECT DISTINCT - 94 DIV 41 + col0 AS col1 FROM tab1 cor0
----
49
83
89

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT - 94 / 41 + col0 AS col1 FROM tab1 cor0
----
49
83
89

query I rowsort
SELECT ALL 64 * + 40 AS col0 FROM tab0
----
2560
2560
2560

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT DISTINCT SUM( + col2 ) * + + ( 69 ) FROM tab2
----
8349

skipif mysql # not compatible
query I rowsort label-2194
SELECT DISTINCT SUM ( + col2 ) * + + ( 69 ) FROM tab2
----
8349

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT ALL - 43 * + 71 + - COUNT( * ) AS col0 FROM tab0
----
-3056

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL - 43 * + 71 + - COUNT ( * ) AS col0 FROM tab0
----
-3056

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT - MAX( + + col1 ) * - - 49 FROM tab2
----
-3773

skipif mysql # not compatible
query I rowsort label-2196
SELECT - MAX ( + + col1 ) * - - 49 FROM tab2
----
-3773

query II rowsort
SELECT + col2 * + - 5 AS col0, col2 + col2 FROM tab1
----
-295
118
-340
136
-480
192

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col2 + + 13 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 12 / + ( - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2200
SELECT ALL 51 DIV - + 21 AS col2 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL 51 / - + 21 AS col2 FROM tab1
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2201
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT - col0 + - + col2 - 16 FROM tab0 AS cor0
----
-113
-212
-78

query I rowsort
SELECT ALL - col2 * 31 + - + ( + col2 ) FROM tab0 AS cor0
----
-1504
-3168
-320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col2 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL ( + 85 ) + - 51 FROM tab2 cor0
----
34
34
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - col2 * + + col2 * + col1 * + 84 col0 FROM tab1
----
10838030
1462025
18255599

query I rowsort
SELECT ALL + col2 + - col1 + + - col2 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2208
SELECT DISTINCT 23 + + - COUNT( * ) * + + 10 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT 23 + + - COUNT ( * ) * + + 10 FROM tab1
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2209
SELECT + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query II rowsort
SELECT ALL - ( + 8 ) AS col0, + 55 - 87 AS col0 FROM tab1
----
-8
-32
-8
-32
-8
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2211
SELECT DISTINCT 42 col2 FROM tab1 cor0 WHERE col2 / - col1 * + 19 < col1 * - ( - + 62 ) + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2211
SELECT DISTINCT 42 col2 FROM tab1 cor0 WHERE col2 / - col1 * + 19 < col1 * - ( - + 62 ) + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT COUNT( DISTINCT - + 41 ) col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2212
SELECT COUNT ( DISTINCT - + 41 ) col0 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2213
SELECT + + ( 61 ) col0, col2 * - col2 + CAST( 23 AS SIGNED ) FROM tab1 AS cor0
----
61
-3458
61
-4601
61
-9193

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2213
SELECT + + ( 61 ) col0, col2 * - col2 + CAST ( 23 AS INTEGER ) FROM tab1 AS cor0
----
61
-3458
61
-4601
61
-9193

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 * - - 88 NOT IN ( - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 97 col0, + col2 FROM tab2
----
97
23
97
40
97
58

query II rowsort
SELECT DISTINCT - col1 AS col0, - 77 FROM tab2
----
-51
-77
-67
-77
-77
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-2217
SELECT DISTINCT + 93 AS col2, - 40 * SUM( DISTINCT + + col1 ) AS col1 FROM tab1
----
93
-2640

skipif mysql # not compatible
query II rowsort label-2217
SELECT DISTINCT + 93 AS col2, - 40 * SUM ( DISTINCT + + col1 ) AS col1 FROM tab1
----
93
-2640

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2218
SELECT ( - ( CAST( - col0 AS SIGNED ) ) ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2218
SELECT ( - ( CAST ( - col0 AS INTEGER ) ) ) FROM tab2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col1, col2 col2 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT ALL 42 * col2 AS col2 FROM tab0
----
1974
4158
420

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT MAX( - + col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2221
SELECT MAX ( - + col1 ) AS col2 FROM tab0
----
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 37 + + - col2 < + - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2223
SELECT DISTINCT + COUNT( * ), COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2223
SELECT DISTINCT + COUNT ( * ), COUNT ( * ) FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT + col1 * - - 31 + + col1 / - - 92 AS col0 FROM tab1 AS cor0 WHERE NULL > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT DISTINCT - SUM( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT - SUM ( DISTINCT - col0 ) AS col2 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query II rowsort label-2226
SELECT ALL + COUNT( * ) AS col2, + 14 + + MAX( ALL 67 ) FROM tab2 AS cor0
----
3
81

skipif mysql # not compatible
query II rowsort label-2226
SELECT ALL + COUNT ( * ) AS col2, + 14 + + MAX ( ALL 67 ) FROM tab2 AS cor0
----
3
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2227
SELECT DISTINCT col0 * col1 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT col0 * col1 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2228
SELECT + - 90 DIV col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2228
SELECT + - 90 / col2 AS col1 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT DISTINCT + + SUM( + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2229
SELECT DISTINCT + + SUM ( + col1 ) FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2230
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2230
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + col2 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN + + col2 AND + + col0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 73 + col0 col1 FROM tab2 AS cor0
----
-27
-9
2

query I rowsort
SELECT ALL 94 + 6 FROM tab2
----
100
100
100

query I rowsort
SELECT col0 + + + 0 FROM tab2
----
46
64
75

query I rowsort
SELECT - col1 + + 70 FROM tab2
----
-7
19
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2236
SELECT ALL CAST( NULL AS SIGNED ) * - + 90 + - ( MIN( 87 ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2236
SELECT ALL CAST ( NULL AS INTEGER ) * - + 90 + - ( MIN ( 87 ) ) FROM tab0
----
NULL

query I rowsort
SELECT col2 * 55 * col2 + - ( + + col2 ) * + col2 FROM tab1
----
187974
249696
497664

query I rowsort
SELECT ALL + + ( - - 98 ) AS col2 FROM tab1 AS cor0
----
98
98
98

query II rowsort
SELECT ALL col1 AS col0, - col2 / col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT ALL - col2 AS col2, + 81 FROM tab2 AS cor0
----
-23
81
-40
81
-58
81

query I rowsort
SELECT col2 - + col1 * + + 1 * + 16 AS col1 FROM tab1
----
-128
-21
-684

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2242
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-2242
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT ( 73 ) - + MAX( ALL + col2 ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-2243
SELECT ( 73 ) - + MAX ( ALL + col2 ) FROM tab1
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2244
SELECT ALL + 63 - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL + 63 - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT DISTINCT + COUNT( - - 65 ) + - COUNT( ALL + 64 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2245
SELECT DISTINCT + COUNT ( - - 65 ) + - COUNT ( ALL + 64 ) AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT ALL + + COUNT( * ) FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-2246
SELECT ALL + + COUNT ( * ) FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-2247
SELECT DISTINCT - COUNT( * ), MIN( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
-3
23

skipif mysql # not compatible
query II rowsort label-2247
SELECT DISTINCT - COUNT ( * ), MIN ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
-3
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2248
SELECT ALL - ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL - ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2249
SELECT - ( - COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2249
SELECT - ( - COUNT ( * ) ) FROM tab0 cor0
----
3

query II rowsort
SELECT DISTINCT 5 AS col1, col0 FROM tab1 cor0
----
5
51
5
85
5
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2251
SELECT ALL + MIN( ALL - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL + MIN ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2252
SELECT DISTINCT 13 * - + COUNT( * ) FROM tab2 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-2252
SELECT DISTINCT 13 * - + COUNT ( * ) FROM tab2 cor0
----
-39

query II rowsort
SELECT DISTINCT + + 5 * col1 * + col0 - + col1 AS col0, col2 * col1 FROM tab0 AS cor0
----
484
99
5994
3807
9114
210

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT - COUNT( - 45 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2254
SELECT - COUNT ( - 45 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - - ( + + col0 ) * + - col0 AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT + ( - COUNT( ALL + - col2 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2256
SELECT + ( - COUNT ( ALL + - col2 ) ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2257
SELECT 5 DIV + + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2257
SELECT 5 / + + ( - col1 ) AS col2 FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2258
SELECT 73 DIV + + ( - - COUNT( * ) ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2258
SELECT 73 / + + ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
24

query I rowsort
SELECT - - 29 * col0 - + 23 FROM tab1 AS cor0
----
1456
2442
2616

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 63 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( col2 ) AS col1 FROM tab1 WHERE NULL IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> col1
----

query I rowsort
SELECT + - col0 * - ( + + col0 ) * 99 FROM tab2 cor0
----
209484
405504
556875

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 15 + + + col0 IS NOT NULL
----

query I rowsort
SELECT - col2 * - 53 FROM tab0
----
2491
5247
530

onlyif mysql # aggregate syntax: 
query II rowsort label-2266
SELECT ALL - 98 + - 76 - + COUNT( * ) AS col2, - COUNT( * ) + - ( - - COUNT( * ) ) AS col0 FROM tab1 WHERE NOT ( ( NULL IS NULL ) )
----
-174
0

skipif mysql # not compatible
query II rowsort label-2266
SELECT ALL - 98 + - 76 - + COUNT ( * ) AS col2, - COUNT ( * ) + - ( - - COUNT ( * ) ) AS col0 FROM tab1 WHERE NOT ( ( NULL IS NULL ) )
----
-174
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2267
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN + col0 / - col2 AND + - CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2267
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN + col0 / - col2 AND + - CAST ( + col0 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2268
SELECT + - col0 * col1 * CAST( + col1 AS SIGNED ) * - 42 + - col1 AS col1, 99 + + + 52 FROM tab1 AS cor0
----
419818
151
8442751
151
89245
151

skipif mysql # not compatible
query II rowsort label-2268
SELECT + - col0 * col1 * CAST ( + col1 AS INTEGER ) * - 42 + - col1 AS col1, 99 + + + 52 FROM tab1 AS cor0
----
419818
151
8442751
151
89245
151

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT 59 * + - COUNT( * ) FROM tab0 cor0
----
-177

skipif mysql # not compatible
query I rowsort label-2269
SELECT 59 * + - COUNT ( * ) FROM tab0 cor0
----
-177

query I rowsort
SELECT ALL + 14 FROM tab1 AS cor0 WHERE - - col1 - - - col1 BETWEEN + 26 * + - col1 AND + + 55 OR NOT NULL IS NOT NULL
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT ALL + 55 + - COUNT( * ) col1 FROM tab1 AS cor0
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2271
SELECT ALL + 55 + - COUNT ( * ) col1 FROM tab1 AS cor0
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + ( - + 66 ) col0 FROM tab0 AS cor0
----
-51
21
31

query I rowsort
SELECT ALL + 57 AS col2 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
57
57
57

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 / - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT - COUNT( - 95 ) + - + COUNT( * ) AS col1 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-2275
SELECT - COUNT ( - 95 ) + - + COUNT ( * ) AS col1 FROM tab1
----
-6

query I rowsort
SELECT + 62 * - + col1 + - col1 FROM tab2 AS cor0
----
-3213
-4221
-4851

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT COUNT( * ) + - - ( + 22 ) FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-2277
SELECT COUNT ( * ) + - - ( + 22 ) FROM tab0 AS cor0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2278
SELECT + + col2 + - + col0 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2278
SELECT + + col2 + - + col0 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 29 + - col2 FROM tab1
----
-30
-39
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT - MAX( ALL 7 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-7

skipif mysql # not compatible
query I rowsort label-2280
SELECT - MAX ( ALL 7 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-7

query I rowsort
SELECT ALL - - 63 * + col1 FROM tab2 AS cor0
----
3213
4221
4851

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT ALL + - COUNT( - - 87 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL + - COUNT ( - - 87 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - ( - col2 ) * - 36 AS col0 FROM tab2 AS cor0
----
-1440
-2088
-828

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 > - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2285
SELECT ALL - col1 DIV - col0 col2 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2285
SELECT ALL - col1 / - col0 col2 FROM tab0 AS cor0
----
0
0
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( ( + - col0 ), - 37, + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2287
SELECT ALL + COUNT( * ), - CAST( - - 66 AS SIGNED ) AS col0 FROM tab2
----
3
-66

skipif mysql # not compatible
query II rowsort label-2287
SELECT ALL + COUNT ( * ), - CAST ( - - 66 AS INTEGER ) AS col0 FROM tab2
----
3
-66

query I rowsort
SELECT + 17 * + + 85 AS col2 FROM tab0
----
1445
1445
1445

query II rowsort
SELECT + 91 AS col2, - 40 AS col0 FROM tab2
----
91
-40
91
-40
91
-40

query II rowsort
SELECT ALL - col0, - col0 + - 81 + - col2 + - - 42 * + - col1 AS col1 FROM tab2
----
-46
-2292
-64
-3419
-75
-3028

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, 40 col2 FROM tab2
----
51
40
67
40
77
40

query II rowsort
SELECT - col2, + col1 FROM tab0
----
-10
21
-47
81
-99
1

query II rowsort
SELECT ALL col2 AS col2, col1 AS col2 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT + 29 * col0 FROM tab1
----
1479
2465
2639

query I rowsort
SELECT AVG ( + - 10 ) + + + 0 FROM tab2 WHERE NOT ( NULL = NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2296
SELECT ALL 95 * + 7 AS col1, COUNT( * ) - + MIN( - 0 ) AS col1 FROM tab1
----
665
3

skipif mysql # not compatible
query II rowsort label-2296
SELECT ALL 95 * + 7 AS col1, COUNT ( * ) - + MIN ( - 0 ) AS col1 FROM tab1
----
665
3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> + 83 * col0 * + ( - col2 ) + + 50 * + col1
----

query I rowsort
SELECT ALL + col2 * col2 * 26 FROM tab1 AS cor0
----
120224
239616
90506

query I rowsort
SELECT ALL + + col0 + 10 AS col1 FROM tab2 AS cor0
----
56
74
85

query I rowsort
SELECT DISTINCT - 95 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-95

query I rowsort
SELECT ALL - col1 * + 90 + - - col0 * + col2 FROM tab2 AS cor0
----
-1680
-3532
-4370

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT ALL + ( + ( - - COUNT( * ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL + ( + ( - - COUNT ( * ) ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 1 * + + 23 + - col1 - + col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2304
SELECT DISTINCT - CAST( - 84 AS SIGNED ) col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL < - 35 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2304
SELECT DISTINCT - CAST ( - 84 AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL < - 35 )
----

query I rowsort
SELECT + + col0 + - - col0 FROM tab0 AS cor0
----
174
194
30

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * + 85 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2307
SELECT ALL - COUNT( * ) + + + 94 DIV - COUNT( * ) FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-2307
SELECT ALL - COUNT ( * ) + + + 94 / - COUNT ( * ) FROM tab2 AS cor0
----
-34

query I rowsort
SELECT DISTINCT - 36 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1, + col1, - - col1 / + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2309
SELECT - + 33 + COUNT( * ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2309
SELECT - + 33 + COUNT ( * ) FROM tab0 AS cor0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-2310
SELECT + col0 * col1 - 19 + - - col0 + + col0 DIV + 41 + + + col0 col0 FROM tab2 AS cor0
----
2420
5038
5157

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2310
SELECT + col0 * col1 - 19 + - - col0 + + col0 / + 41 + + + col0 col0 FROM tab2 AS cor0
----
2420
5038
5157

query I rowsort
SELECT 33 + 1 FROM tab2
----
34
34
34

onlyif mysql # DIV for integer division: 
query II rowsort label-2312
SELECT + col1 DIV col2 + - 46 AS col2, col0 * + 73 FROM tab0
----
-44
6351
-45
1095
-46
7081

skipif mysql # not compatible
query II rowsort label-2312
SELECT + col1 / col2 + - 46 AS col2, col0 * + 73 FROM tab0
----
-44
6351
-45
1095
-46
7081

query II rowsort
SELECT + + col2, col2 FROM tab0 WHERE NULL IS NULL
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT - 79 + - col1 FROM tab2
----
-130
-146
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 33 * - col2 col0 FROM tab2
----
-1320
-1914
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-2316
SELECT - + COUNT( * ) FROM tab2 WHERE NULL < - col1
----
0

skipif mysql # not compatible
query I rowsort label-2316
SELECT - + COUNT ( * ) FROM tab2 WHERE NULL < - col1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2317
SELECT DISTINCT + 18 col0, 75 + - CAST( NULL AS DECIMAL ) * + col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
18
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2317
SELECT DISTINCT + 18 col0, 75 + - CAST ( NULL AS REAL ) * + col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
18
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT ALL - 96 - - ( - + COUNT( * ) ) + - 78 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-2318
SELECT ALL - 96 - - ( - + COUNT ( * ) ) + - 78 FROM tab1
----
-177

onlyif mysql # aggregate syntax: 
query II rowsort label-2319
SELECT DISTINCT + COUNT( 71 ) - - 95 AS col0, + COUNT( * ) FROM tab1 cor0
----
98
3

skipif mysql # not compatible
query II rowsort label-2319
SELECT DISTINCT + COUNT ( 71 ) - - 95 AS col0, + COUNT ( * ) FROM tab1 cor0
----
98
3

query I rowsort
SELECT DISTINCT - 28 * + col2 AS col0 FROM tab1 cor0
----
-1652
-1904
-2688

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col1 - + - col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2323
SELECT + col0 * - - CAST( - col1 AS SIGNED ) * col1 - + col1 AS col2 FROM tab2 AS cor0
----
-119697
-336742
-379533

skipif mysql # not compatible
query I rowsort label-2323
SELECT + col0 * - - CAST ( - col1 AS INTEGER ) * col1 - + col1 AS col2 FROM tab2 AS cor0
----
-119697
-336742
-379533

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT + MIN( DISTINCT col2 ) - - 40 FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-2324
SELECT + MIN ( DISTINCT col2 ) - - 40 FROM tab0 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT DISTINCT + ( - + COUNT( DISTINCT - 59 ) ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT + ( - + COUNT ( DISTINCT - 59 ) ) AS col1 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT 35 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT DISTINCT COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2327
SELECT DISTINCT COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT - 13 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2329
SELECT + SUM( DISTINCT + - col1 ) FROM tab0 AS cor0 WHERE NOT - 52 + + - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2329
SELECT + SUM ( DISTINCT + - col1 ) FROM tab0 AS cor0 WHERE NOT - 52 + + - col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT - + 75 * + + COUNT( * ) FROM tab1 cor0
----
-225

skipif mysql # not compatible
query I rowsort label-2330
SELECT - + 75 * + + COUNT ( * ) FROM tab1 cor0
----
-225

query I rowsort
SELECT ( - + col0 ) * - col0 * - 0 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 + - col0 * 55 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-4795
-5434
-872

query I rowsort
SELECT ALL - 90 * col2 FROM tab1
----
-5310
-6120
-8640

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 78 * + 39 IS NOT NULL
----

query I rowsort
SELECT + - col0 AS col1 FROM tab0 WHERE NOT + + ( + col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 9 * - 73 + 42 + + - 43 AS col1 FROM tab0 AS cor0
----
-658
-658
-658

onlyif mysql # DIV for integer division: 
query I rowsort label-2337
SELECT DISTINCT + col0 DIV - 4 col2 FROM tab2 AS cor0
----
-11
-16
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2337
SELECT DISTINCT + col0 / - 4 col2 FROM tab2 AS cor0
----
-11
-16
-18

query I rowsort
SELECT DISTINCT - col1 * - + col0 * - + col1 + - col0 FROM tab0 AS cor0
----
-194
-38454
-98430

query I rowsort
SELECT DISTINCT + 41 + - col0 FROM tab1
----
-10
-44
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-2340
SELECT DISTINCT 33 DIV + 66 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2340
SELECT DISTINCT 33 / + 66 AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL 91 * + - 41 * - col2 - col0 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 * - col0 * + + 68 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2342
SELECT CAST( NULL AS SIGNED ) / - AVG ( DISTINCT - - col0 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2342
SELECT CAST ( NULL AS INTEGER ) / - AVG ( DISTINCT - - col0 ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - + ( - ( + 82 ) ) * - col1 AS col2 FROM tab0 cor0
----
-1722
-6642
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2344
SELECT 84 DIV - COUNT( * ) FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-2344
SELECT 84 / - COUNT ( * ) FROM tab1 AS cor0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2345
SELECT col1, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-2345
SELECT col1, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, - ( 63 ) FROM tab1 AS cor0
----
-14
-63
-47
-63
-5
-63

query I rowsort
SELECT DISTINCT ( + - 7 ) AS col2 FROM tab1 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT + MIN( + 75 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2348
SELECT + MIN ( + 75 ) FROM tab2 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2349
SELECT - 25 DIV + + col2 FROM tab0 cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2349
SELECT - 25 / + + col2 FROM tab0 cor0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 4 col0, 17 + + col0 FROM tab0 AS cor0
----
4
104
4
114
4
32

query I rowsort
SELECT ALL + - ( + - col1 ) * 51 * + col2 + + col1 AS col0 FROM tab2 cor0
----
157157
198253
59874

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT 31 > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2353
SELECT - COUNT( * ) * - 9 * - 46 - + COUNT( col0 ) FROM tab1
----
-1245

skipif mysql # not compatible
query I rowsort label-2353
SELECT - COUNT ( * ) * - 9 * - 46 - + COUNT ( col0 ) FROM tab1
----
-1245

onlyif mysql # DIV for integer division: 
query II rowsort label-2354
SELECT DISTINCT ( + - col1 ) + 35 AS col1, col2 DIV + + col0 FROM tab1
----
-12
0
21
1
30
0

skipif mysql # not compatible
query II rowsort label-2354
SELECT DISTINCT ( + - col1 ) + 35 AS col1, col2 / + + col0 FROM tab1
----
-12
0
21
1
30
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col2 ) * - col0 - + + col1 col1 FROM tab0
----
624
849
9602

query I rowsort
SELECT col2 - col1 * + col1 * - col0 AS col1 FROM tab1
----
10092
201087
2184

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT - COUNT( DISTINCT + + col0 ) + SUM( ALL col2 ) col2 FROM tab0
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2357
SELECT - COUNT ( DISTINCT + + col0 ) + SUM ( ALL col2 ) col2 FROM tab0
----
153

query I rowsort
SELECT + ( + col2 ) + col1 + + 39 AS col0 FROM tab2
----
113
156
164

query I rowsort
SELECT 58 + + + col1 AS col0 FROM tab2
----
109
125
135

query I rowsort
SELECT DISTINCT - col0 - + - col1 AS col1 FROM tab1 AS cor0
----
-37
-44
-80

query II rowsort
SELECT - col0, + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-15
15
-87
87
-97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 76 col1 FROM tab2 AS cor0
----
-76
-76
-76

query I rowsort
SELECT ( - 25 ) FROM tab1 AS cor0
----
-25
-25
-25

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 18 / + 51 IS NULL
----

query I rowsort
SELECT ( + 9 ) * - - 35 + - + 91 FROM tab0
----
224
224
224

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 27 + - col2 BETWEEN col1 AND - + 60 + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + + 81 ) * + col0 FROM tab2
----
3726
5184
6075

query I rowsort
SELECT - 55 + + - col1 * + 91 FROM tab2
----
-4696
-6152
-7062

onlyif mysql # aggregate syntax: 
query I rowsort label-2370
SELECT COUNT( * ) + - - 0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2370
SELECT COUNT ( * ) + - - 0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2371
SELECT DISTINCT - col1 * - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2371
SELECT DISTINCT - col1 * - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2372
SELECT DISTINCT col2 DIV + 97 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2372
SELECT DISTINCT col2 / + 97 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + - 93 BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2374
SELECT * FROM tab2 WHERE NULL BETWEEN - CAST( NULL AS SIGNED ) + + col0 + - + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2374
SELECT * FROM tab2 WHERE NULL BETWEEN - CAST ( NULL AS INTEGER ) + + col0 + - + col0 AND NULL
----

query I rowsort
SELECT + + 76 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE ( 16 ) IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - 2 ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # DIV for integer division: 
query II rowsort label-2378
SELECT DISTINCT + col2 DIV col0 + + col1, col1 + - ( - + 6 ) DIV + - col2 col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2378
SELECT DISTINCT + col2 / col0 + + col1, col1 + - ( - + 6 ) / + - col2 col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 79 * col0 - - col0 + + col1 * - 22 * 73 col1, - col0 AS col2 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
-128886
-15
-26766
-87
6154
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2380
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE 18 + CAST( + col2 AS SIGNED ) + + + col0 + 74 * - col0 IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2380
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE 18 + CAST ( + col2 AS INTEGER ) + + + col0 + 74 * - col0 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT ALL - 83 + - SUM( DISTINCT - col0 ) FROM tab2 cor0
----
102

skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL - 83 + - SUM ( DISTINCT - col0 ) FROM tab2 cor0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT ALL COUNT( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL COUNT ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL - 33 AS col2 FROM tab2 AS cor0 WHERE NOT 4 IS NULL
----
-33
-33
-33

onlyif mysql # DIV for integer division: 
query I rowsort label-2384
SELECT 33 + - + col1 DIV + + col0 FROM tab0
----
28
33
33

skipif mysql # not compatible
query I rowsort label-2384
SELECT 33 + - + col1 / + + col0 FROM tab0
----
28
33
33

query I rowsort
SELECT DISTINCT - col1 * + 46 - + + col0 AS col1 FROM tab2
----
-2392
-3157
-3606

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT MIN( - col2 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2386
SELECT MIN ( - col2 ) AS col1 FROM tab1
----
-96

query III rowsort
SELECT * FROM tab2 WHERE + 45 BETWEEN ( NULL ) AND + 12 + + 41 + + col1
----

query I rowsort
SELECT - col2 * + - col2 FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT + MIN( DISTINCT col0 ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2389
SELECT + MIN ( DISTINCT col0 ) AS col2 FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2390
SELECT ALL + 70 - - - col2 * + - col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL + 70 - - - col2 * + - col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( - col0 ) + + + 95 FROM tab1
----
146
180
186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 col1 FROM tab2 AS cor0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT - ( SUM( col1 ) ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2393
SELECT - ( SUM ( col1 ) ) FROM tab2 AS cor0
----
-195

query III rowsort
SELECT * FROM tab0 WHERE NOT 16 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 71 col2 FROM tab1 AS cor0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query II rowsort label-2396
SELECT DISTINCT ( COUNT( + 91 ) ) col2, - 29 * ( - MAX( ALL + + col2 ) ) FROM tab0 cor0
----
3
2871

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2396
SELECT DISTINCT ( COUNT ( + 91 ) ) col2, - 29 * ( - MAX ( ALL + + col2 ) ) FROM tab0 cor0
----
3
2871

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT ALL - SUM( ( col2 ) ) FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL - SUM ( ( col2 ) ) FROM tab0 cor0
----
-156

query I rowsort
SELECT DISTINCT + ( + 83 ) AS col0 FROM tab2 AS cor0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT DISTINCT - SUM( - - col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2399
SELECT DISTINCT - SUM ( - - col1 ) FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT ALL + + COUNT( * ) * + MAX( + col1 ) * - 78 + - 79 + - + 21 AS col0 FROM tab0 AS cor0
----
-19054

skipif mysql # not compatible
query I rowsort label-2400
SELECT ALL + + COUNT ( * ) * + MAX ( + col1 ) * - 78 + - 79 + - + 21 AS col0 FROM tab0 AS cor0
----
-19054

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 3 col0 FROM tab0 cor0
----
-3
-3
-3

query II rowsort
SELECT ALL - col0, 95 * col1 AS col2 FROM tab2
----
-46
4845
-64
7315
-75
6365

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - 8 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 47 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + AVG ( col2 ) FROM tab0 WHERE NOT ( NOT ( NOT NULL >= NULL ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT - col1 / CAST( NULL AS SIGNED ) * - 31 / 59 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT - col1 / CAST ( NULL AS INTEGER ) * - 31 / 59 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 11 AS col0, - col0 * col0 FROM tab2
----
-11
-2116
-11
-4096
-11
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT DISTINCT + MIN( DISTINCT 79 ) FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT + MIN ( DISTINCT 79 ) FROM tab0 AS cor0
----
79

query I rowsort
SELECT col1 + - 17 + - + 38 - + col2 AS col0 FROM tab1 AS cor0
----
-109
-137
-76

query I rowsort
SELECT col1 + 14 + - 64 * + ( + ( + - 70 ) ) AS col1 FROM tab1 AS cor0
----
4499
4508
4541

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT - 40 + - - COUNT( - 86 ) + - 12 AS col2 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-2411
SELECT - 40 + - - COUNT ( - 86 ) + - 12 AS col2 FROM tab1 AS cor0
----
-49

query II rowsort
SELECT DISTINCT + col2 * - + 97 * + col2 AS col2, 10 FROM tab2 AS cor0
----
-155200
10
-326308
10
-51313
10

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN col1 - - col0 AND - col2
----

query I rowsort
SELECT ALL - ( col2 ) * 32 AS col2 FROM tab1
----
-1888
-2176
-3072

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT MIN( col0 ) * COUNT( * ) AS col1 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-2415
SELECT MIN ( col0 ) * COUNT ( * ) AS col1 FROM tab1
----
153

query I rowsort
SELECT - col0 * + 36 AS col2 FROM tab0
----
-3132
-3492
-540

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> + col2 + - 73
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2418
SELECT CAST( + 36 AS SIGNED ) * - col1 AS col2 FROM tab1
----
-1692
-180
-504

skipif mysql # not compatible
query I rowsort label-2418
SELECT CAST ( + 36 AS INTEGER ) * - col1 AS col2 FROM tab1
----
-1692
-180
-504

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2420
SELECT DISTINCT MIN( ALL 2 ) DIV - 88 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2420
SELECT DISTINCT MIN ( ALL 2 ) / - 88 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 71 col1 FROM tab1 WHERE ( - 85 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2422
SELECT - CAST( COUNT( col2 ) AS SIGNED ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2422
SELECT - CAST ( COUNT ( col2 ) AS INTEGER ) AS col1 FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2423
SELECT + CAST( MIN( ALL CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2423
SELECT + CAST ( MIN ( ALL CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2424
SELECT col1 * col1 - - 62 * + CAST( col0 AS SIGNED ) FROM tab0
----
5835
6015
7491

skipif mysql # not compatible
query I rowsort label-2424
SELECT col1 * col1 - - 62 * + CAST ( col0 AS INTEGER ) FROM tab0
----
5835
6015
7491

query I rowsort
SELECT ALL + col0 * + col1 + - ( col1 ) * - col1 AS col0 FROM tab1 WHERE NULL IS NULL
----
450
6486
910

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2426
SELECT DISTINCT SUM( DISTINCT - col0 ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2426
SELECT DISTINCT SUM ( DISTINCT - col0 ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - col0 * - col0 AS col1 FROM tab2 WHERE ( + col0 + col2 ) BETWEEN 61 * - col0 AND ( col2 - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2428
SELECT DISTINCT * FROM tab1 WHERE ( col1 + + CAST( NULL AS SIGNED ) ) NOT IN ( + col2 + - 78 )
----

skipif mysql # not compatible
query III rowsort label-2428
SELECT DISTINCT * FROM tab1 WHERE ( col1 + + CAST ( NULL AS INTEGER ) ) NOT IN ( + col2 + - 78 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 68 + col1 col2 FROM tab2
----
119
135
145

query III rowsort
SELECT * FROM tab1 WHERE col2 * + col0 > ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2431
SELECT - col2 / ( 31 * col0 ) AS col2 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) + - 81 * - 7 = ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-2431
SELECT - col2 / ( 31 * col0 ) AS col2 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) + - 81 * - 7 = ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2432
SELECT ALL * FROM tab0 WHERE ( - CAST( NULL AS SIGNED ) * 98 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2432
SELECT ALL * FROM tab0 WHERE ( - CAST ( NULL AS INTEGER ) * 98 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT + COUNT( * ) + COUNT( * ) col0 FROM tab2
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2433
SELECT + COUNT ( * ) + COUNT ( * ) col0 FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 + col1 col2 FROM tab2
----
-17
-33
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT MIN( ALL - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-2435
SELECT MIN ( ALL - col1 ) FROM tab2
----
-77

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col2 + - col2 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( 66 * + 74 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 80 = ( 5 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2439
SELECT ALL + MIN( CAST( + col2 AS SIGNED ) ) * + 82 FROM tab1 WHERE NOT NULL IS NOT NULL
----
4838

skipif mysql # not compatible
query I rowsort label-2439
SELECT ALL + MIN ( CAST ( + col2 AS INTEGER ) ) * + 82 FROM tab1 WHERE NOT NULL IS NOT NULL
----
4838

onlyif mysql # DIV for integer division: 
query I rowsort label-2440
SELECT col0 DIV + 25 col0 FROM tab2
----
1
2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2440
SELECT col0 / + 25 col0 FROM tab2
----
1
2
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 - ( col1 ) IN ( - 33 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - ( + col2 ) * 83 AS col2 FROM tab2 AS cor0
----
1909
3320
4814

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 <= + col2 + + col2 * - 28
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 97 FROM tab0 AS cor0 WHERE col2 >= ( col2 / 61 )
----
97

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NULL BETWEEN + col2 AND NULL
----

query I rowsort
SELECT DISTINCT + - ( + col2 ) + col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 40 NOT BETWEEN 0 * col2 AND ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col0 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT MIN( + - col1 ) + + MIN( 21 ) AS col0 FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-2450
SELECT MIN ( + - col1 ) + + MIN ( 21 ) AS col0 FROM tab1
----
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + - 54 col1 FROM tab0
----
-39
33
43

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2452
SELECT DISTINCT - CAST( 38 AS SIGNED ) * col2 + + 14 DIV 42 FROM tab0
----
-1786
-3762
-380

skipif mysql # not compatible
query I rowsort label-2452
SELECT DISTINCT - CAST ( 38 AS INTEGER ) * col2 + + 14 / 42 FROM tab0
----
-1786
-3762
-380

query III rowsort
SELECT * FROM tab0 WHERE + 59 NOT IN ( - 21 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 <= col2 + col1 * col0
----

query I rowsort
SELECT DISTINCT - col1 + + 29 AS col0 FROM tab2
----
-22
-38
-48

query I rowsort
SELECT ALL - col2 * + col2 + col1 FROM tab1
----
-3476
-4577
-9202

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 = - col0 + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2458
SELECT + 0 * col2 + + col0 DIV col1 FROM tab1 cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-2458
SELECT + 0 * col2 + + col0 / col1 FROM tab1 cor0
----
1
17
3

query I rowsort
SELECT DISTINCT col0 FROM tab0 cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT - 74 + - - 47 + col1 AS col0 FROM tab2 AS cor0
----
24
40
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2461
SELECT ALL - 0 * + CAST( NULL AS SIGNED ) + col0 * - col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL - 0 * + CAST ( NULL AS INTEGER ) + col0 * - col1 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT ALL - 68 * + SUM( DISTINCT + 5 ) - 51 col0 FROM tab0
----
-391

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2462
SELECT ALL - 68 * + SUM ( DISTINCT + 5 ) - 51 col0 FROM tab0
----
-391

onlyif mysql # DIV for integer division: 
query I rowsort label-2463
SELECT DISTINCT - col0 - + col1 DIV - col0 FROM tab2
----
-45
-63
-75

skipif mysql # not compatible
query I rowsort label-2463
SELECT DISTINCT - col0 - + col1 / - col0 FROM tab2
----
-45
-63
-75

query I rowsort
SELECT ALL + ( - 0 ) - + + ( - col0 ) AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL - 51 AS col0 FROM tab0 AS cor0
----
-51
-51
-51

query I rowsort
SELECT DISTINCT - + col0 - - 13 AS col1 FROM tab0 cor0
----
-2
-74
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT + + COUNT( + col1 ) + - 25 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-2467
SELECT + + COUNT ( + col1 ) + - 25 FROM tab2 AS cor0
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2468
SELECT - - COUNT( * ) + - + ( 98 ) DIV 5 AS col0 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-2468
SELECT - - COUNT ( * ) + - + ( 98 ) / 5 AS col0 FROM tab0 AS cor0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2469
SELECT DISTINCT 55 * CAST( - 50 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-2750

skipif mysql # not compatible
query I rowsort label-2469
SELECT DISTINCT 55 * CAST ( - 50 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-2750

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT COUNT( ALL - - 68 ) * COUNT( * ) * - 0 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2470
SELECT COUNT ( ALL - - 68 ) * COUNT ( * ) * - 0 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT + 68 - + col1 NOT BETWEEN ( - 5 ) AND 37
----
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2472
SELECT col0 / col0 AS col0 FROM tab0 AS cor0 WHERE NOT + CAST( col0 AS DECIMAL ) * 65 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2472
SELECT col0 / col0 AS col0 FROM tab0 AS cor0 WHERE NOT + CAST ( col0 AS REAL ) * 65 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2473
SELECT - ( COUNT( * ) ) DIV SUM( DISTINCT + + 84 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2473
SELECT - ( COUNT ( * ) ) / SUM ( DISTINCT + + 84 ) AS col2 FROM tab0
----
0

query I rowsort
SELECT 4 * + - col0 FROM tab0
----
-348
-388
-60

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - - 57 + + 7 ) = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( - col0 ) AS col2, col1 col2 FROM tab2
----
46
51
64
77
75
67

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - + 11 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT ALL SUM( DISTINCT - 11 ) * 5 AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( - col2 * + 31 / - + 71 - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2478
SELECT ALL SUM ( DISTINCT - 11 ) * 5 AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( - col2 * + 31 / - + 71 - col2 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2479
SELECT ALL - + col1 * col0 DIV + - col0 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2479
SELECT ALL - + col1 * col0 / + - col0 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT + 21 * - - 60 + - col0 FROM tab2 AS cor0
----
1185
1196
1214

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <= - col2 + 96
----
97
1
99

query I rowsort
SELECT ALL col1 * - col2 * - 49 * col0 - col1 FROM tab0 AS cor0
----
2798064
470546
895209

query II rowsort
SELECT - 6, col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + 74 + + - col2 + + ( - 33 ) AS col0 FROM tab2 AS cor0
----
-130
-147
-165

query I rowsort
SELECT col1 + - + col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2486
SELECT + MAX( 21 ) AS col2 FROM tab1 cor0
----
21

skipif mysql # not compatible
query I rowsort label-2486
SELECT + MAX ( 21 ) AS col2 FROM tab1 cor0
----
21

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( 59 * + col0 * + col1 ) <= ( - col1 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2488
SELECT DISTINCT ( + + CAST( + 84 AS SIGNED ) ) + COUNT( * ) FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-2488
SELECT DISTINCT ( + + CAST ( + 84 AS INTEGER ) ) + COUNT ( * ) FROM tab0 AS cor0
----
87

query II rowsort
SELECT + + col2 AS col0, 41 AS col0 FROM tab2 AS cor0
----
23
41
40
41
58
41

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT - - ( - COUNT( 1 ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2490
SELECT - - ( - COUNT ( 1 ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - ( + col2 ) FROM tab0 WHERE - col2 + - 51 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT ALL ( col2 ) * - 81 FROM tab0
----
-3807
-8019
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT MAX( - 1 ) FROM tab1, tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2493
SELECT MAX ( - 1 ) FROM tab1, tab1 AS cor0
----
-1

query I rowsort
SELECT ALL col1 + - 1 FROM tab0
----
0
20
80

query I rowsort
SELECT DISTINCT - ( col1 ) + - col1 FROM tab2
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT COUNT( * ) - + MAX( DISTINCT col2 ) AS col2 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-2496
SELECT COUNT ( * ) - + MAX ( DISTINCT col2 ) AS col2 FROM tab0
----
-96

query I rowsort
SELECT + col1 + + - ( 58 ) * + col0 FROM tab2
----
-2617
-3635
-4283

query I rowsort
SELECT col1 + + + col1 + - ( 77 ) AS col2 FROM tab2
----
25
57
77

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT + 49 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT + + 41 + - COUNT( * ) col1 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2500
SELECT + + 41 + - COUNT ( * ) col1 FROM tab0 AS cor0
----
38

query II rowsort
SELECT DISTINCT - 0, - 72 AS col2 FROM tab1 AS cor0
----
0
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2502
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT - 61 - - MIN( - 53 ) AS col0 FROM tab0 cor0
----
-114

skipif mysql # not compatible
query I rowsort label-2503
SELECT - 61 - - MIN ( - 53 ) AS col0 FROM tab0 cor0
----
-114

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2504
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( 63 AS DECIMAL ) >= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2504
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( 63 AS REAL ) >= ( NULL )
----

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab1 cor0 WHERE ( NULL IS NULL )
----
-14
-47
-5

query I rowsort
SELECT ALL ( + col1 ) * - - 6 AS col0 FROM tab0 AS cor0
----
126
486
6

query I rowsort
SELECT + - col2 / - col0 * - col0 + - + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + + 69 * + + col0 * - - col1 FROM tab0 AS cor0
----
126063
6693
83835

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2509
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 42 + col2 + + 42 IN ( CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2509
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 42 + col2 + + 42 IN ( CAST ( - col2 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2510
SELECT ALL + CAST( ( col1 ) AS SIGNED ) + + 93 AS col2 FROM tab1 WHERE NOT + col1 <= + 61 * + col2 + col1 * + col2 + - ( col0 ) + col2
----

skipif mysql # not compatible
query I rowsort label-2510
SELECT ALL + CAST ( ( col1 ) AS INTEGER ) + + 93 AS col2 FROM tab1 WHERE NOT + col1 <= + 61 * + col2 + col1 * + col2 + - ( col0 ) + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( - 68 ) * - col1 + col1 + - 19 IS NOT NULL
----

query I rowsort
SELECT 32 * - - col0 FROM tab0
----
2784
3104
480

onlyif mysql # aggregate syntax: 
query II rowsort label-2513
SELECT 6 AS col0, 38 + COUNT( * ) FROM tab2
----
6
41

skipif mysql # not compatible
query II rowsort label-2513
SELECT 6 AS col0, 38 + COUNT ( * ) FROM tab2
----
6
41

query I rowsort
SELECT ALL - 52 * col2 FROM tab2 AS cor0
----
-1196
-2080
-3016

query I rowsort
SELECT 81 AS col0 FROM tab0 AS cor0 WHERE NOT col1 / + col1 IS NULL
----
81
81
81

query I rowsort
SELECT DISTINCT - + 15 * + - col0 AS col1 FROM tab1 AS cor0
----
1275
1365
765

query I rowsort
SELECT ALL - 7 AS col0 FROM tab0 AS cor0 WHERE ( + col2 ) IS NULL
----

query II rowsort
SELECT DISTINCT + - col2 AS col1, + 19 FROM tab2 AS cor0
----
-23
19
-40
19
-58
19

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE col1 * + - col0 IS NOT NULL AND col2 + col1 BETWEEN ( - 66 ) AND + col1 - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT ALL 70 * + COUNT( - col0 ) FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL 70 * + COUNT ( - col0 ) FROM tab1
----
210

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN ( NULL ) AND - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT ALL - MAX( - 91 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
91

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL - MAX ( - 91 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
91

query I rowsort
SELECT - col1 * + + 49 + col2 * - - col2 * + col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2524
SELECT 85 DIV 18 FROM tab1 AS cor0 WHERE NULL IS NULL
----
4
4
4

skipif mysql # not compatible
query I rowsort label-2524
SELECT 85 / 18 FROM tab1 AS cor0 WHERE NULL IS NULL
----
4
4
4

query II rowsort
SELECT ALL - col1 AS col2, col1 FROM tab1 AS cor0 WHERE col0 - - + col1 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2526
SELECT DISTINCT - MAX( - col2 ) + - COUNT( * ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT - MAX ( - col2 ) + - COUNT ( * ) FROM tab0
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col2, + col1 col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 71 * - + 42 + - col2 FROM tab2
----
-3005
-3022
-3040

query I rowsort
SELECT DISTINCT col2 * - + 34 FROM tab1
----
-2006
-2312
-3264

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <> + col1 - - + col2 * 21
----

query I rowsort
SELECT ALL + col1 + + col0 + + col2 FROM tab2
----
120
181
200

query I rowsort
SELECT DISTINCT + 66 + 62 FROM tab1 WHERE col2 * + - col2 IS NOT NULL
----
128

query III rowsort
SELECT * FROM tab0 WHERE col0 IN ( - - col2 + - 71 + 7, ( col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 + - 65 - - 66 AS col1 FROM tab1
----
60
69
97

query II rowsort
SELECT DISTINCT col0, + col2 AS col1 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT 55 - - - col0 FROM tab2
----
-20
-9
9

query I rowsort
SELECT - 89 * - 27 FROM tab0 AS cor0
----
2403
2403
2403

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT ALL COUNT( * ) + 38 + - 77 * - + 35 + COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
2727

skipif mysql # not compatible
query I rowsort label-2538
SELECT ALL COUNT ( * ) + 38 + - 77 * - + 35 + COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
2727

query I rowsort
SELECT - + 34 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2540
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2540
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1, col0 * - - col0 + - col0 col1 FROM tab0 AS cor0
----
-1
9312
-21
7482
-81
210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - col1 col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT - - ( + + col0 ) FROM tab1 AS cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query II rowsort label-2544
SELECT - col0 AS col1, col1 DIV col2 AS col2 FROM tab2 AS cor0
----
-46
2
-64
1
-75
1

skipif mysql # not compatible
query II rowsort label-2544
SELECT - col0 AS col1, col1 / col2 AS col2 FROM tab2 AS cor0
----
-46
2
-64
1
-75
1

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

query II rowsort
SELECT DISTINCT + - col1 AS col2, col1 AS col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query II rowsort
SELECT + + col1, col0 AS col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

query II rowsort
SELECT - - col2, col0 AS col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query II rowsort
SELECT DISTINCT - 64 AS col2, - 91 FROM tab0 cor0
----
-64
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2550
SELECT MAX( - col1 ) * - 60 + - + 39 AS col0 FROM tab1
----
261

skipif mysql # not compatible
query I rowsort label-2550
SELECT MAX ( - col1 ) * - 60 + - + 39 AS col0 FROM tab1
----
261

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + + + 99 = - - col2 - - - 65
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 * - + col0 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT ALL - COUNT( col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2553
SELECT ALL - COUNT ( col0 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - + 83 AS col1 FROM tab2 AS cor0
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT DISTINCT - MIN( col0 ) * + - 19 FROM tab2 AS cor0
----
874

skipif mysql # not compatible
query I rowsort label-2555
SELECT DISTINCT - MIN ( col0 ) * + - 19 FROM tab2 AS cor0
----
874

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT - COUNT( DISTINCT + + 44 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-2556
SELECT - COUNT ( DISTINCT + + 44 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2557
SELECT DISTINCT 32 * - + COUNT( * ) DIV COUNT( * ) * 93 FROM tab1
----
-2976

skipif mysql # not compatible
query I rowsort label-2557
SELECT DISTINCT 32 * - + COUNT ( * ) / COUNT ( * ) * 93 FROM tab1
----
-2976

query I rowsort
SELECT ALL col1 * - 60 AS col1 FROM tab1
----
-2820
-300
-840

query I rowsort
SELECT - - 65 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT + 26 + + - col0 FROM tab1 AS cor0
----
-25
-59
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-2561
SELECT - col0 DIV - - 51 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2561
SELECT - col0 / - - 51 FROM tab1 AS cor0
----
-1
-1
-1

query II rowsort
SELECT col0, - ( - col0 ) AS col1 FROM tab2 cor0 WHERE ( ( NOT + col1 * - col1 = - col2 ) )
----
46
46
64
64
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 8 AS col1, + col2 col1 FROM tab1 AS cor0
----
8
59
8
68
8
96

query II rowsort
SELECT col2 * + - 11 * + col2 AS col1, + 36 AS col1 FROM tab0 cor0
----
-107811
36
-1100
36
-24299
36

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 / + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - - col2 * - col1 * + 92 col1 FROM tab0 cor0
----
-16461468
-193200
-901692

query I rowsort
SELECT ALL col0 + - + 14 FROM tab2 AS cor0
----
32
50
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT DISTINCT - COUNT( * ) - 76 AS col2 FROM tab0 WHERE + - col1 = NULL
----
-76

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT - COUNT ( * ) - 76 AS col2 FROM tab0 WHERE + - col1 = NULL
----
-76

query I rowsort
SELECT DISTINCT + col0 + - + col0 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 > + - col1 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 - - + col0 FROM tab0
----
-66
66
96

query II rowsort
SELECT DISTINCT - col2 - col1 AS col1, ( + col2 ) * - 42 + + col2 + col2 + - 4 FROM tab1
----
-110
-3844
-115
-2724
-64
-2364

query I rowsort
SELECT + col0 + + - col1 FROM tab2
----
-13
-5
8

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 14 - - + col2 NOT IN ( - + 58 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 59 AS col2 FROM tab0
----
59
59
59

query II rowsort
SELECT + + col2 + - 86 * col2 * col2 AS col0, col1 AS col2 FROM tab1 AS cor0
----
-299307
5
-397596
47
-792480
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2577
SELECT DISTINCT + - 4 - - col0 DIV + col1 AS col0 FROM tab2 AS cor0
----
-3
-4

skipif mysql # not compatible
query I rowsort label-2577
SELECT DISTINCT + - 4 - - col0 / + col1 AS col0 FROM tab2 AS cor0
----
-3
-4

query II rowsort
SELECT 56 AS col2, 45 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 91963c9db7225e9786b6b9ade29c4b69

query I rowsort
SELECT DISTINCT col1 * col0 * - 8 AS col0 FROM tab2
----
-18768
-39424
-40200

query I rowsort
SELECT + + 28 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE NOT - col1 + - 97 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2582
SELECT DISTINCT + COUNT( * ) DIV 5 - - 32 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
33

skipif mysql # not compatible
query I rowsort label-2582
SELECT DISTINCT + COUNT ( * ) / 5 - - 32 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT - MAX( + 34 ) FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-2583
SELECT - MAX ( + 34 ) FROM tab0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT DISTINCT - + MIN( - col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT - + MIN ( - col0 ) AS col1 FROM tab1 AS cor0
----
91

query II rowsort
SELECT DISTINCT + - col0 AS col1, 2 + + col0 FROM tab0 cor0
----
-15
17
-87
89
-97
99

query I rowsort
SELECT DISTINCT + 82 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2587
SELECT ALL + MAX( DISTINCT + - col2 ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2587
SELECT ALL + MAX ( DISTINCT + - col2 ) FROM tab1 cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2588
SELECT ALL - col2, + CAST( NULL AS SIGNED ) + 76 AS col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-2588
SELECT ALL - col2, + CAST ( NULL AS INTEGER ) + 76 AS col0 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT DISTINCT - - col1 - + 46 * + - 68 AS col0 FROM tab1 AS cor0 WHERE NULL = 72
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2590
SELECT + 91 DIV - MAX( DISTINCT - col2 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2590
SELECT + 91 / - MAX ( DISTINCT - col2 ) AS col1 FROM tab1
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 / - 11 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2592
SELECT * FROM tab0 WHERE NOT - col1 IN ( + col0 + + 6 * + + 21, - col0, + - col2 * + + 82, CAST( NULL AS SIGNED ), + col0 )
----

skipif mysql # not compatible
query III rowsort label-2592
SELECT * FROM tab0 WHERE NOT - col1 IN ( + col0 + + 6 * + + 21, - col0, + - col2 * + + 82, CAST ( NULL AS INTEGER ), + col0 )
----

query I rowsort
SELECT - ( + 67 ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 71 * + col1 FROM tab1
----
-3337
-355
-994

onlyif mysql # aggregate syntax: 
query I rowsort label-2595
SELECT ALL - COUNT( * ) AS col1 FROM tab0 WHERE NOT - - 51 IN ( ( + 49 ), ( col0 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-2595
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 WHERE NOT - - 51 IN ( ( + 49 ), ( col0 ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT SUM( + col0 ) FROM tab1 WHERE NOT col2 + 71 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2596
SELECT SUM ( + col0 ) FROM tab1 WHERE NOT col2 + 71 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2597
SELECT + col0 + - CAST( + 87 AS SIGNED ) AS col1 FROM tab0
----
-72
0
10

skipif mysql # not compatible
query I rowsort label-2597
SELECT + col0 + - CAST ( + 87 AS INTEGER ) AS col1 FROM tab0
----
-72
0
10

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) col0 FROM tab2 WHERE NOT col0 >= - 62
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2600
SELECT DISTINCT + COUNT( * ) AS col0, COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
-9

skipif mysql # not compatible
query II rowsort label-2600
SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT ALL + + ( - COUNT( * ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL + + ( - COUNT ( * ) ) FROM tab0 cor0
----
-3

query I rowsort
SELECT + 63 * - 1 + + 5 * ( col1 ) AS col0 FROM tab1 cor0
----
-38
172
7

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT ALL + SUM( + - 41 ) AS col2 FROM tab0 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL + SUM ( + - 41 ) AS col2 FROM tab0 AS cor0
----
-123

query I rowsort
SELECT ALL + - 84 AS col1 FROM tab1 cor0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT DISTINCT - MAX( + - col1 ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT - MAX ( + - col1 ) FROM tab1 cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT DISTINCT - COUNT( * ) + + - 52 col1 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2606
SELECT DISTINCT - COUNT ( * ) + + - 52 col1 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT + 27 * - col1 * + 38 * - col2 + + - col0 * - col2 * + + col0 AS col2 FROM tab0
----
1033065
291150
3916557

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - + col1 col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 2 * ( - col2 ) + col2 - + 9 + col2 + - + 18 AS col0 FROM tab2 WHERE NULL IS NULL
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT DISTINCT MIN( DISTINCT - 0 ) - - MAX( DISTINCT - col1 ) * - 19 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-2610
SELECT DISTINCT MIN ( DISTINCT - 0 ) - - MAX ( DISTINCT - col1 ) * - 19 FROM tab1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2611
SELECT DISTINCT - ( - 75 ) - SUM( - + col2 ) AS col2 FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-2611
SELECT DISTINCT - ( - 75 ) - SUM ( - + col2 ) AS col2 FROM tab0
----
231

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT - MAX( ALL + col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2613
SELECT - MAX ( ALL + col2 ) AS col0 FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT DISTINCT 63 - + + COUNT( DISTINCT + col1 ) col2 FROM tab2
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2614
SELECT DISTINCT 63 - + + COUNT ( DISTINCT + col1 ) col2 FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT + ( COUNT( ALL + col0 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2615
SELECT + ( COUNT ( ALL + col0 ) ) FROM tab2
----
3

query I rowsort
SELECT + 30 * - + col2 FROM tab0 AS cor0
----
-1410
-2970
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT - ( + - SUM( ALL col1 ) ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2617
SELECT - ( + - SUM ( ALL col1 ) ) AS col2 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query II rowsort label-2618
SELECT - COUNT( * ), COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-2618
SELECT - COUNT ( * ), COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0
0

query I rowsort
SELECT ALL + 50 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT ALL COUNT( * ) * + 51 col0 FROM tab1 cor0
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2620
SELECT ALL COUNT ( * ) * + 51 col0 FROM tab1 cor0
----
153

query I rowsort
SELECT DISTINCT - col1 * + + col2 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT ALL + COUNT( * ) * + - 88 FROM tab1 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL + COUNT ( * ) * + - 88 FROM tab1 AS cor0
----
-264

onlyif mysql # DIV for integer division: 
query I rowsort label-2623
SELECT ALL - + 86 DIV 43 AS col2 FROM tab0 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-2623
SELECT ALL - + 86 / 43 AS col2 FROM tab0 AS cor0
----
-2
-2
-2

query I rowsort
SELECT ALL - col1 + - 98 FROM tab1 AS cor0 WHERE + 42 IN ( - - col2 )
----

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( + ( + col1 ) ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2627
SELECT DISTINCT + 43 + - - COUNT( * ) AS col2 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-2627
SELECT DISTINCT + 43 + - - COUNT ( * ) AS col2 FROM tab1
----
46

query I rowsort
SELECT + col0 * + - 72 AS col1 FROM tab1
----
-3672
-6120
-6552

query III rowsort
SELECT * FROM tab2 WHERE NOT + 39 * ( 4 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * ( + 82 ) FROM tab2
----
-1886
-3280
-4756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2631
SELECT DISTINCT - CAST( - + CAST( - col1 AS SIGNED ) AS SIGNED ) AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2631
SELECT DISTINCT - CAST ( - + CAST ( - col1 AS INTEGER ) AS INTEGER ) AS col2 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2632
SELECT col0 + CAST( NULL AS SIGNED ) - + col0 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-2632
SELECT col0 + CAST ( NULL AS INTEGER ) - + col0 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 46 + 57 FROM tab1 AS cor0
----
103
103
103

query II rowsort
SELECT - ( - col1 ) + + col2, col0 AS col0 FROM tab1 cor0
----
110
51
115
91
64
85

query I rowsort
SELECT DISTINCT 94 AS col1 FROM tab2, tab0 cor0
----
94

query II rowsort
SELECT DISTINCT 66 + - col1 AS col1, 91 FROM tab0
----
-15
91
45
91
65
91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 28 - + + 90 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT - SUM( DISTINCT + col1 ) * COUNT( ALL 24 ) col2 FROM tab1
----
-198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2638
SELECT - SUM ( DISTINCT + col1 ) * COUNT ( ALL 24 ) col2 FROM tab1
----
-198

query I rowsort
SELECT - 0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query II rowsort
SELECT - 24, ( - - 71 ) AS col2 FROM tab0 AS cor0
----
-24
71
-24
71
-24
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + ( + + col2 ) ) col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, + col1 col2 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query II rowsort
SELECT 93, col0 * + 77 AS col0 FROM tab1 cor0
----
93
3927
93
6545
93
7007

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT ALL MIN( + - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2644
SELECT ALL MIN ( + - col2 ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT - + col1 + - col0 + col1 + + col1 + - - col1 FROM tab2 AS cor0
----
56
59
90

query I rowsort
SELECT - + 7 * col1 AS col1 FROM tab0 AS cor0
----
-147
-567
-7

query I rowsort
SELECT + + col1 * + + 32 AS col1 FROM tab1 AS cor0
----
1504
160
448

query I rowsort
SELECT DISTINCT col2 * ( + - col2 ) + - - col2 FROM tab2 AS cor0
----
-1560
-3306
-506

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE ( - 22 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2650
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - col1 col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2650
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - col1 col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col0 - + col1 * - 44 AS col1 FROM tab1
----
2159
305
667

query I rowsort
SELECT ALL - 53 - 19 AS col2 FROM tab1
----
-72
-72
-72

query II rowsort
SELECT DISTINCT + col0 - - 17, col0 * - col0 - col1 AS col0 FROM tab0
----
104
-7590
114
-9410
32
-306

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + - col2 + - 12 col1 FROM tab2
----
1588
3352
517

query I rowsort
SELECT DISTINCT + col0 * col2 + + - col0 AS col2 FROM tab1
----
4845
4930
6097

query I rowsort
SELECT ALL 73 * - col1 FROM tab0
----
-1533
-5913
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2657
SELECT - CAST( + 95 AS SIGNED ), + col1 FROM tab1
----
-95
14
-95
47
-95
5

skipif mysql # not compatible
query II rowsort label-2657
SELECT - CAST ( + 95 AS INTEGER ), + col1 FROM tab1
----
-95
14
-95
47
-95
5

query I rowsort
SELECT ALL + 26 * ( - col1 ) AS col0 FROM tab2
----
-1326
-1742
-2002

query I rowsort
SELECT DISTINCT - 17 * - 43 AS col1 FROM tab2 AS cor0
----
731

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 93 = NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - - col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2662
SELECT DISTINCT - - col1 * CAST( NULL AS SIGNED ) + 72 + + ( ( - col1 ) ) * col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT - - col1 * CAST ( NULL AS INTEGER ) + 72 + + ( ( - col1 ) ) * col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab1 cor0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2664
SELECT ALL SUM( ALL + + 96 ) AS col1 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-2664
SELECT ALL SUM ( ALL + + 96 ) AS col1 FROM tab1 AS cor0
----
288

query I rowsort
SELECT DISTINCT - + col2 FROM tab2 WHERE + col1 / - col0 IS NULL
----

query II rowsort
SELECT col2 AS col1, - 5 FROM tab0
----
10
-5
47
-5
99
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2667
SELECT - + col1 / col1 * CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2667
SELECT - + col1 / col1 * CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * - + col0 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0, + col2 - 88 + + + ( col0 ) AS col2 FROM tab0 AS cor0
----
15
-26
87
9
97
108

query II rowsort
SELECT ALL 18 + - col0 + - col2, + col2 FROM tab1 AS cor0
----
-126
59
-129
96
-141
68

query II rowsort
SELECT col1 AS col0, - ( - 54 ) FROM tab0 AS cor0
----
1
54
21
54
81
54

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 * - 38 IS NOT NULL
----

query I rowsort
SELECT 58 * 90 AS col2 FROM tab2
----
5220
5220
5220

query I rowsort
SELECT - + col1 FROM tab0 WHERE NOT + + 7 + + - 34 IS NULL
----
-1
-21
-81

query I rowsort
SELECT ALL + 20 * + col1 FROM tab0
----
1620
20
420

query I rowsort
SELECT col2 + - 53 * + 27 AS col0 FROM tab1
----
-1335
-1363
-1372

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) >= ( + col1 )
----

query I rowsort
SELECT ALL + col0 + - + col0 * + + ( - - col2 ) FROM tab1 cor0
----
-4845
-4930
-6097

query I rowsort
SELECT + ( + - 16 ) FROM tab1 cor0
----
-16
-16
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, 14 + - col0 + + + col0 * - + col2 * 90 AS col1 FROM tab2 AS cor0
----
46
-95252
64
-230450
75
-391561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
14
47
5

query I rowsort
SELECT - 49 + - col2 * - col1 - - col1 * 44 + - 87 * col0 AS col1 FROM tab1 AS cor0
----
-2526
-2702
-6929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2683
SELECT - - CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2683
SELECT - - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT ALL + MAX( col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL + MAX ( col1 ) AS col2 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2685
SELECT - 21, - MIN( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
-21
NULL

skipif mysql # not compatible
query II rowsort label-2685
SELECT - 21, - MIN ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
-21
NULL

query II rowsort
SELECT - col2 AS col1, - col1 FROM tab2
----
-23
-51
-40
-77
-58
-67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 40 * + 11 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 / + col0 - col0 + + - col0 + - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col1 FROM tab0 WHERE NOT - col1 >= - col1
----

query I rowsort
SELECT DISTINCT + 60 * + + 91 AS col2 FROM tab1
----
5460

query I rowsort
SELECT ALL col2 * - + col0 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

query II rowsort
SELECT + col1 AS col0, 10 * + col0 FROM tab1 AS cor0
----
14
510
47
910
5
850

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT ALL - - ( + - MIN( DISTINCT col0 ) ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL - - ( + - MIN ( DISTINCT col0 ) ) FROM tab1 AS cor0
----
-51

query II rowsort
SELECT ALL - 60, 20 AS col2 FROM tab1 AS cor0
----
-60
20
-60
20
-60
20

query I rowsort
SELECT - 54 * 32 * col2 FROM tab1
----
-101952
-117504
-165888

query I rowsort
SELECT ALL + + 29 FROM tab2 WHERE NOT NULL < ( ( col1 ) )
----

query II rowsort
SELECT + 21 * + + col1 AS col1, - col2 AS col2 FROM tab1
----
105
-59
294
-96
987
-68

query I rowsort
SELECT + col0 * - col1 + - col2 * + + col0 FROM tab0 AS cor0
----
-1920
-2697
-9700

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT ALL + - COUNT( * ) + + 73 * - - 96 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
21021

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL + - COUNT ( * ) + + 73 * - - 96 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
21021

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT + 69 AS col2 FROM tab1 AS cor0 WHERE NOT 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT ALL - 72 * - COUNT( * ) FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL - 72 * - COUNT ( * ) FROM tab0 AS cor0
----
216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2703
SELECT DISTINCT - - CAST( col2 AS SIGNED ) + - 53 AS col0 FROM tab1 AS cor0
----
15
43
6

skipif mysql # not compatible
query I rowsort label-2703
SELECT DISTINCT - - CAST ( col2 AS INTEGER ) + - 53 AS col0 FROM tab1 AS cor0
----
15
43
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT ALL SUM( ALL col2 ) + - COUNT( DISTINCT + col1 ) FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL SUM ( ALL col2 ) + - COUNT ( DISTINCT + col1 ) FROM tab0 AS cor0
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2705
SELECT ALL - 33 + + 8 * + CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL - 33 + + 8 * + CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 92 + - - col0 FROM tab0
----
-5
-77
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2707
SELECT DISTINCT col2 DIV + col0 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT col2 / + col0 AS col2 FROM tab1
----
0
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2708
SELECT ALL + 60 DIV COUNT( * ) FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-2708
SELECT ALL + 60 / COUNT ( * ) FROM tab1
----
20

query I rowsort
SELECT ALL + col0 + - ( - + ( - col1 ) ) FROM tab1
----
37
44
80

query I rowsort
SELECT DISTINCT - 97 + - col1 + col1 FROM tab0
----
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2711
SELECT ALL + + COUNT( ALL + CAST( - col0 AS SIGNED ) ) * - CAST( - + MAX( DISTINCT - - 49 ) AS SIGNED ) col2 FROM tab0 AS cor0
----
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2711
SELECT ALL + + COUNT ( ALL + CAST ( - col0 AS INTEGER ) ) * - CAST ( - + MAX ( DISTINCT - - 49 ) AS INTEGER ) col2 FROM tab0 AS cor0
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2712
SELECT ALL - - ( + - MAX( col2 ) ) / MAX( - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2712
SELECT ALL - - ( + - MAX ( col2 ) ) / MAX ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - col1, - col1 + - col1 + + col1 * 57 AS col0 FROM tab0 AS cor0
----
-1
55
-21
1155
-81
4455

query I rowsort
SELECT DISTINCT - col0 * + + ( + col2 ) * + ( - col0 ) + - 42 AS col2 FROM tab0
----
10533
75648
931449

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT ALL + COUNT( DISTINCT + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2715
SELECT ALL + COUNT ( DISTINCT + col2 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + col0 NOT BETWEEN NULL AND col1 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2717
SELECT + CAST( - + col1 AS SIGNED ) + + - ( - 8 ) + 23 / - col1 AS col0, col0 / ( - col1 ) AS col1 FROM tab0 AS cor0 WHERE - col0 - - 57 * - col2 IS NULL
----

skipif mysql # not compatible
query II rowsort label-2717
SELECT + CAST ( - + col1 AS INTEGER ) + + - ( - 8 ) + 23 / - col1 AS col0, col0 / ( - col1 ) AS col1 FROM tab0 AS cor0 WHERE - col0 - - 57 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT + COUNT( - 87 ) - + 91 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-2718
SELECT + COUNT ( - 87 ) - + 91 FROM tab1 AS cor0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT DISTINCT + MIN( 38 ) AS col1 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT + MIN ( 38 ) AS col1 FROM tab2 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-2720
SELECT DISTINCT - MIN( ALL + col2 ) AS col1, 28 FROM tab2 AS cor0
----
-23
28

skipif mysql # not compatible
query II rowsort label-2720
SELECT DISTINCT - MIN ( ALL + col2 ) AS col1, 28 FROM tab2 AS cor0
----
-23
28

query I rowsort
SELECT DISTINCT + 47 * + - 94 - - col2 FROM tab2 AS cor0
----
-4360
-4378
-4395

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col2 > 29
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2723
SELECT 85 DIV + - 8 AS col2 FROM tab2
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-2723
SELECT 85 / + - 8 AS col2 FROM tab2
----
-10
-10
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT + 12 * - - COUNT( * ) AS col2 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-2724
SELECT + 12 * - - COUNT ( * ) AS col2 FROM tab0
----
36

query II rowsort
SELECT ALL col1, 50 FROM tab0
----
1
50
21
50
81
50

query II rowsort
SELECT DISTINCT + col2, - col1 FROM tab2
----
23
-51
40
-77
58
-67

query II rowsort
SELECT + + col0, + col0 * + col0 FROM tab2 AS cor0
----
46
2116
64
4096
75
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT ALL - MAX( DISTINCT col1 ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL - MAX ( DISTINCT col1 ) FROM tab0 cor0
----
-81

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 59 / col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col2 AS col1 FROM tab1 cor0 WHERE NOT ( - col0 ) > - col1
----
-59
-68
-96

query II rowsort
SELECT DISTINCT col1 AS col2, col0 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT + MIN( DISTINCT + 65 ) AS col2 FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-2732
SELECT + MIN ( DISTINCT + 65 ) AS col2 FROM tab0
----
65

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col1 * - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2734
SELECT ALL - col0 DIV + 94 * + + 35 - - ( col0 ) + - - col1 * 72 FROM tab1 AS cor0
----
1059
3475
445

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL - col0 / + 94 * + + 35 - - ( col0 ) + - - col1 * 72 FROM tab1 AS cor0
----
1059
3475
445

query I rowsort
SELECT ALL - + ( + + col0 ) AS col2 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-2736
SELECT DISTINCT + + col2 DIV + - 34 + - col1 + + - col1 AS col1, col0 * - col1 FROM tab0 AS cor0
----
-163
-1215
-4
-97
-42
-1827

skipif mysql # not compatible
query II rowsort label-2736
SELECT DISTINCT + + col2 / + - 34 + - col1 + + - col1 AS col1, col0 * - col1 FROM tab0 AS cor0
----
-163
-1215
-4
-97
-42
-1827

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT 70 + COUNT( * ) FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2737
SELECT 70 + COUNT ( * ) FROM tab2 AS cor0
----
73

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE 1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2739
SELECT ALL + 93 * + COUNT( * ) AS col2 FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-2739
SELECT ALL + 93 * + COUNT ( * ) AS col2 FROM tab1
----
279

query II rowsort
SELECT 58 + - - 42, + col2 FROM tab0
----
100
10
100
47
100
99

query I rowsort
SELECT DISTINCT col2 + - 15 * - 16 AS col1 FROM tab2
----
263
280
298

query II rowsort
SELECT ALL + col0 * + col2, + col2 AS col2 FROM tab1
----
4896
96
5015
59
6188
68

query I rowsort
SELECT - 97 + - 47 * AVG ( DISTINCT + 85 ) FROM tab0 WHERE NULL IN ( - 32, col2 )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 > + - col2 - + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 * - col1 * col1 col0 FROM tab1 AS cor0
----
1075
8428
94987

query I rowsort
SELECT DISTINCT 82 * + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3772
-5248
-6150

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT DISTINCT MAX( 57 ) FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2747
SELECT DISTINCT MAX ( 57 ) FROM tab2 AS cor0
----
57

query I rowsort
SELECT ALL + + col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL 38 + + col2 AS col0 FROM tab1 cor0
----
106
134
97

query I rowsort
SELECT + 16 - - 81 FROM tab1 AS cor0
----
97
97
97

query I rowsort
SELECT - 90 - - - col1 FROM tab0
----
-111
-171
-91

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > NULL
----

query I rowsort
SELECT ALL + 94 - + col0 AS col0 FROM tab2
----
19
30
48

query II rowsort
SELECT DISTINCT + 75 AS col0, + col1 AS col0 FROM tab0 AS cor0
----
75
1
75
21
75
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT MAX( + + 30 ) * + + ( - 15 ) FROM tab2 cor0
----
-450

skipif mysql # not compatible
query I rowsort label-2755
SELECT MAX ( + + 30 ) * + + ( - 15 ) FROM tab2 cor0
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT DISTINCT + - COUNT( DISTINCT 14 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT + - COUNT ( DISTINCT 14 ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2757
SELECT CAST( 45 AS SIGNED ) col1 FROM tab0
----
45
45
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2757
SELECT CAST ( 45 AS INTEGER ) col1 FROM tab0
----
45
45
45

query I rowsort
SELECT col0 * 4 FROM tab1
----
204
340
364

query III rowsort
SELECT * FROM tab0 WHERE NOT 72 * + + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-2760
SELECT DISTINCT col2 DIV + col2 AS col2, + col1 + + + ( - 93 ), + 74 col0 FROM tab1
----
9 values hashing to 35f2d1cae1306b0f6ebe31f4bac36b05

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2760
SELECT DISTINCT col2 / + col2 AS col2, + col1 + + + ( - 93 ), + 74 col0 FROM tab1
----
9 values hashing to 35f2d1cae1306b0f6ebe31f4bac36b05

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2761
SELECT DISTINCT * FROM tab1 WHERE NOT - - 47 IN ( col0, col0 * - - col0 * + 49 * + - col0, - CAST( - - col1 AS SIGNED ), - 41 + - 55, - col0, + - col0, + 11 + - - 73 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2761
SELECT DISTINCT * FROM tab1 WHERE NOT - - 47 IN ( col0, col0 * - - col0 * + 49 * + - col0, - CAST ( - - col1 AS INTEGER ), - 41 + - 55, - col0, + - col0, + 11 + - - 73 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT DISTINCT + ( - + COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2762
SELECT DISTINCT + ( - + COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - 18 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 97 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2766
SELECT DISTINCT - 17 + - - CAST( NULL AS SIGNED ) * + + CAST( 12 AS SIGNED ) FROM tab1 cor0 WHERE + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2766
SELECT DISTINCT - 17 + - - CAST ( NULL AS INTEGER ) * + + CAST ( 12 AS INTEGER ) FROM tab1 cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT ALL 81 + - col0 + - - col1 FROM tab1 AS cor0
----
1
37
44

query II rowsort
SELECT - col0 AS col1, + col0 AS col2 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT SUM( - col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2769
SELECT SUM ( - col1 ) AS col0 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT - ( ( - col0 ) ) * - + 11 FROM tab0 AS cor0
----
-1067
-165
-957

query I rowsort
SELECT + - col2 AS col0 FROM tab0 cor0 WHERE NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT ALL + 83 + - COUNT( ALL 54 ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-2772
SELECT ALL + 83 + - COUNT ( ALL 54 ) FROM tab2
----
80

query III rowsort
SELECT ALL * FROM tab1 WHERE + 70 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2774
SELECT DISTINCT 22 DIV - 44 + COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2774
SELECT DISTINCT 22 / - 44 + COUNT ( * ) FROM tab1
----
3

query I rowsort
SELECT ALL + 33 AS col0 FROM tab0 WHERE NOT - + col2 <> NULL
----

query I rowsort
SELECT ALL col2 * - 89 + + col2 FROM tab0
----
-4136
-8712
-880

query II rowsort
SELECT - col2 + + + col1 AS col2, + col2 AS col1 FROM tab2
----
28
23
37
40
9
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 60 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2779
SELECT DISTINCT - col2 DIV + + col0 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2779
SELECT DISTINCT - col2 / + + col0 AS col2 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= - col2 / + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT DISTINCT 72 * + COUNT( * ) - - + COUNT( * ) FROM tab2 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-2781
SELECT DISTINCT 72 * + COUNT ( * ) - - + COUNT ( * ) FROM tab2 AS cor0
----
219

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2782
SELECT + 63 * + + CAST( NULL AS SIGNED ) AS col2, COUNT( * ) FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2782
SELECT + 63 * + + CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) FROM tab1 AS cor0
----
NULL
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( + - 0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 51 * + col2 + + 19 + + col0 - + - col0 * col0 col2 FROM tab1 WHERE NOT col1 NOT BETWEEN - + ( - col0 ) AND - - 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT ALL MIN( col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2785
SELECT ALL MIN ( col0 ) AS col2 FROM tab1
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 col2 FROM tab1 WHERE NOT + col0 * + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2787
SELECT + COUNT( * ) DIV 18 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2787
SELECT + COUNT ( * ) / 18 AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 WHERE NOT + col0 * col1 * + - col0 * - col0 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2789
SELECT - COUNT( * ) col1, 45 AS col0 FROM tab0
----
-3
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2789
SELECT - COUNT ( * ) col1, 45 AS col0 FROM tab0
----
-3
45

onlyif mysql # aggregate syntax: 
query II rowsort label-2790
SELECT DISTINCT - ( - MAX( DISTINCT + col2 ) ), - 47 AS col1 FROM tab2
----
58
-47

skipif mysql # not compatible
query II rowsort label-2790
SELECT DISTINCT - ( - MAX ( DISTINCT + col2 ) ), - 47 AS col1 FROM tab2
----
58
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT - COUNT( - ( - + col0 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2791
SELECT - COUNT ( - ( - + col0 ) ) FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, 56 * col0 + - col0 AS col2 FROM tab2 cor0
----
46
2530
64
3520
75
4125

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2793
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( 60 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-2793
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( 60 AS INTEGER ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2794
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2794
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT ALL + - SUM( DISTINCT - + col1 ) col0 FROM tab1 WHERE NULL IS NULL
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2795
SELECT ALL + - SUM ( DISTINCT - + col1 ) col0 FROM tab1 WHERE NULL IS NULL
----
66

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab1 cor1 ON NOT - 29 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT DISTINCT 25 AS col2 FROM tab0, tab1 AS cor0
----
25

query I rowsort
SELECT ALL - + 98 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT col2 + + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 40 AS col1 FROM tab0 cor0
----
40

query I rowsort
SELECT - col0 + col0 + col1 - col0 AS col2 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT ALL SUM( DISTINCT col2 ) * 70 * - + MIN( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-389620

skipif mysql # not compatible
query I rowsort label-2803
SELECT ALL SUM ( DISTINCT col2 ) * 70 * - + MIN ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
-389620

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2804
SELECT - CAST( - COUNT( * ) AS SIGNED ) + + + SUM( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2804
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) + + + SUM ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2805
SELECT 36 DIV col1 + - + col2 FROM tab1
----
-52
-68
-94

skipif mysql # not compatible
query I rowsort label-2805
SELECT 36 / col1 + - + col2 FROM tab1
----
-52
-68
-94

query I rowsort
SELECT 81 + col0 AS col1 FROM tab2
----
127
145
156

query I rowsort
SELECT ALL 45 + - - 93 AS col2 FROM tab1
----
138
138
138

query I rowsort
SELECT DISTINCT + col2 + - + 74 AS col2 FROM tab0
----
-27
-64
25

query I rowsort
SELECT ALL + 48 - - col1 FROM tab2
----
115
125
99

query I rowsort
SELECT + ( + 0 ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT - SUM( - col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2811
SELECT - SUM ( - col1 ) FROM tab0
----
103

query III rowsort
SELECT ALL * FROM tab2 WHERE + 14 BETWEEN + col0 + - col2 * - 55 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2813
SELECT DISTINCT 70 DIV col0 - + col2 FROM tab1
----
-59
-68
-95

skipif mysql # not compatible
query I rowsort label-2813
SELECT DISTINCT 70 / col0 - + col2 FROM tab1
----
-59
-68
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT - SUM( ALL - 47 ) FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-2814
SELECT - SUM ( ALL - 47 ) FROM tab0
----
141

query I rowsort
SELECT + 95 - + - col1 FROM tab1 AS cor0
----
100
109
142

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT ALL + - MIN( + col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL + - MIN ( + col1 ) AS col1 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT + + col2 - - col2 AS col0 FROM tab0 cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT - + COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2818
SELECT - + COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT - 32 * - col0 FROM tab0
----
2784
3104
480

query I rowsort
SELECT ALL - 24 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT col1 / + col2 FROM tab1 WHERE NOT - + col0 > ( NULL )
----

query I rowsort
SELECT DISTINCT - 45 * - col1 AS col0 FROM tab1 cor0
----
2115
225
630

query I rowsort
SELECT DISTINCT - - 11 AS col0 FROM tab1 cor0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2824
SELECT - col2 * - - CAST( + - 40 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1600
2320
920

skipif mysql # not compatible
query I rowsort label-2824
SELECT - col2 * - - CAST ( + - 40 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1600
2320
920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 col2 FROM tab0 AS cor0
----
-43

query I rowsort
SELECT - col2 * + 40 FROM tab0
----
-1880
-3960
-400

query I rowsort
SELECT + ( - - col0 ) * - 86 AS col2 FROM tab1
----
-4386
-7310
-7826

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT + COUNT( ALL 34 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2828
SELECT + COUNT ( ALL 34 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2829
SELECT DISTINCT - CAST( - col0 AS SIGNED ) - + + col1 FROM tab2 WHERE NOT + - col2 * - - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2829
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) - + + col1 FROM tab2 WHERE NOT + - col2 * - - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - - col1 * - col0 FROM tab1
----
-201019
-2125
-9996

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2831
SELECT + 91 * + col0 * CAST( 79 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
366639
611065
654199

skipif mysql # not compatible
query I rowsort label-2831
SELECT + 91 * + col0 * CAST ( 79 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
366639
611065
654199

query I rowsort
SELECT ALL + 31 + - - 84 AS col2 FROM tab0
----
115
115
115

query I rowsort
SELECT + 14 AS col2 FROM tab0 cor0
----
14
14
14

query I rowsort
SELECT + 28 * col0 AS col2 FROM tab1 AS cor0
----
1428
2380
2548

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2835
SELECT COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 * + col1 * - col2 col1 FROM tab2 AS cor0
----
13072504
4928000
620517

onlyif mysql # DIV for integer division: 
query I rowsort label-2837
SELECT ALL - 28 DIV + 7 AS col2 FROM tab1 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-2837
SELECT ALL - 28 / + 7 AS col2 FROM tab1 AS cor0
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + col0 col1 FROM tab1 AS cor0
----
-102
-170
-182

query I rowsort
SELECT DISTINCT - ( 16 ) FROM tab2
----
-16

query I rowsort
SELECT ALL col2 + - + col2 * col1 FROM tab1
----
-1248
-236
-3128

query I rowsort
SELECT ALL + ( + 59 ) FROM tab0 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT col1 + + 2 FROM tab0
----
23
3
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT 91 + + COUNT( DISTINCT + 36 ) col1 FROM tab2
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2843
SELECT 91 + + COUNT ( DISTINCT + 36 ) col1 FROM tab2
----
92

query I rowsort
SELECT ( + + 61 ) + - col2 FROM tab0
----
-38
14
51

query II rowsort
SELECT col2 + - 85 AS col2, + col0 * col2 FROM tab1 AS cor0
----
-17
6188
-26
5015
11
4896

query I rowsort
SELECT DISTINCT 42 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
42

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1 * + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT ALL SUM( ( + col2 ) ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL SUM ( ( + col2 ) ) FROM tab1 cor0
----
223

query II rowsort
SELECT ALL 85 AS col1, - col0 * col1 FROM tab2
----
85
-2346
85
-4928
85
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2850
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT CAST( - 20 AS SIGNED ) + - + 77 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

skipif mysql # not compatible
query IIIIII rowsort label-2850
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT CAST ( - 20 AS INTEGER ) + - + 77 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT + 28 * col2 AS col2 FROM tab0 AS cor0
----
1316
2772
280

query I rowsort
SELECT ALL + col1 - col1 * + col2 FROM tab2 AS cor0 WHERE + col2 BETWEEN + col0 AND + 52
----

query I rowsort
SELECT ALL + ( + col2 ) * + + 21 AS col1 FROM tab2 AS cor0
----
1218
483
840

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT - COUNT( + 62 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2854
SELECT - COUNT ( + 62 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT COUNT( ALL + ( + + col0 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2855
SELECT COUNT ( ALL + ( + + col0 ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT ( - 48 ) AS col0 FROM tab0 AS cor0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2857
SELECT ALL + SUM( + + CAST( - + col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2857
SELECT ALL + SUM ( + + CAST ( - + col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, - col2 AS col0 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

query II rowsort
SELECT DISTINCT + 15 AS col1, + 99 AS col1 FROM tab2
----
15
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2860
SELECT ALL - MIN( ALL - col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2860
SELECT ALL - MIN ( ALL - col1 ) AS col2 FROM tab0
----
81

query I rowsort
SELECT DISTINCT + col0 * + ( - col2 ) + - col0 * - 92 AS col0 FROM tab1
----
-204
2184
2805

query I rowsort
SELECT DISTINCT col1 * col0 * + col2 * - ( + 2 ) AS col1 FROM tab0
----
-114210
-19206
-36540

query III rowsort
SELECT * FROM tab2 WHERE NOT + 78 > col2 + + col2
----
64
77
40
75
67
58

query I rowsort
SELECT DISTINCT + 54 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT MAX( - col2 ) + + 26 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-2865
SELECT MAX ( - col2 ) + + 26 FROM tab0
----
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 * + + 62 col0 FROM tab0 AS cor0
----
3968
3968
3968

query I rowsort
SELECT + 92 AS col2 FROM tab1 AS cor0 WHERE 90 IS NOT NULL
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2868
SELECT + COUNT( * ) * + - COUNT( ALL + 85 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2868
SELECT + COUNT ( * ) * + - COUNT ( ALL + 85 ) FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2869
SELECT + + CAST( + - col2 AS SIGNED ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2869
SELECT + + CAST ( + - col2 AS INTEGER ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - 47 + col0 - col0 AS col0 FROM tab0 AS cor0
----
-47
-47
-47

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab1 WHERE 38 IS NULL
----

query I rowsort
SELECT + col0 - - col1 + col1 AS col1 FROM tab2
----
148
209
218

onlyif mysql # aggregate syntax: 
query II rowsort label-2873
SELECT ALL SUM( + - 30 ) AS col0, - ( - COUNT( 67 ) ) FROM tab1
----
-90
3

skipif mysql # not compatible
query II rowsort label-2873
SELECT ALL SUM ( + - 30 ) AS col0, - ( - COUNT ( 67 ) ) FROM tab1
----
-90
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2874
SELECT ALL col2 DIV + - col1 AS col0 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-2874
SELECT ALL col2 / + - col1 AS col0 FROM tab0 AS cor0
----
-99
0
0

query II rowsort
SELECT col0 + 57 * - col1 AS col0, col1 AS col2 FROM tab1 cor0
----
-200
5
-2588
47
-747
14

query I rowsort
SELECT + 9 * + - col2 + - - col1 FROM tab1 AS cor0
----
-526
-565
-850

query I rowsort
SELECT - - col2 + - col0 * col1 AS col0 FROM tab1 cor0
----
-366
-4209
-618

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2878
SELECT COUNT( * ) DIV + - 35 + + + 33 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-2878
SELECT COUNT ( * ) / + - 35 + + + 33 FROM tab2 AS cor0
----
33

query II rowsort
SELECT ( ( - + 85 ) ), col2 * - - 15 AS col2 FROM tab2
----
-85
345
-85
600
-85
870

onlyif mysql # DIV for integer division: 
query I rowsort label-2880
SELECT col1 DIV + - col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2880
SELECT col1 / + - col0 FROM tab0
----
-5
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2881
SELECT DISTINCT * FROM tab2 WHERE NOT col2 / col1 + + + 89 BETWEEN + + col1 / CAST( NULL AS SIGNED ) * + ( col0 ) + + - 94 + + 8 - - col1 * + + ( 24 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2881
SELECT DISTINCT * FROM tab2 WHERE NOT col2 / col1 + + + 89 BETWEEN + + col1 / CAST ( NULL AS INTEGER ) * + ( col0 ) + + - 94 + + 8 - - col1 * + + ( 24 ) AND NULL
----

query II rowsort
SELECT DISTINCT col0 + 92 + + - col2 AS col2, 65 * col1 AS col1 FROM tab1
----
115
3055
118
325
47
910

query I rowsort
SELECT - - ( + 12 ) AS col2 FROM tab1 WHERE NOT - - col2 IS NULL
----
12
12
12

onlyif mysql # DIV for integer division: 
query I rowsort label-2884
SELECT DISTINCT + 26 DIV col0 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-2884
SELECT DISTINCT + 26 / col0 FROM tab0
----
0
1

query I rowsort
SELECT - ( + 83 ) FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT 28 * + - COUNT( * ) FROM tab2 cor0
----
-84

skipif mysql # not compatible
query I rowsort label-2886
SELECT 28 * + - COUNT ( * ) FROM tab2 cor0
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 73 col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-73

query I rowsort
SELECT DISTINCT + col0 * + ( + - col2 ) + col0 AS col0 FROM tab2 AS cor0
----
-1012
-2496
-4275

query I rowsort
SELECT DISTINCT - col0 + 29 * col0 FROM tab1
----
1428
2380
2548

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 59 ) <> ( + col0 * col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE col2 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT + COUNT( * ) - 66 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-2892
SELECT + COUNT ( * ) - 66 FROM tab2
----
-63

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( col0 ) ) NOT IN ( col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 - col2 ) > + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2895
SELECT DISTINCT - 63 * COUNT( * ) FROM tab0 WHERE NULL > ( 29 + + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT - 63 * COUNT ( * ) FROM tab0 WHERE NULL > ( 29 + + col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 96 col0 FROM tab2 WHERE NOT - col0 = NULL
----

query I rowsort
SELECT DISTINCT - col0 * + col2 AS col2 FROM tab0 WHERE col0 IS NOT NULL
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT ( - SUM( DISTINCT col2 ) ) AS col2 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-2898
SELECT ( - SUM ( DISTINCT col2 ) ) AS col2 FROM tab0
----
-156

query III rowsort
SELECT ALL * FROM tab1 WHERE 87 BETWEEN 1 + ( + col1 ) AND + col0
----
91
47
68

query III rowsort
SELECT * FROM tab0 WHERE NOT 28 + col0 * - 72 NOT IN ( col1 * col2 - - 62 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2901
SELECT * FROM tab0 WHERE NOT ( - col0 ) <> CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2901
SELECT * FROM tab0 WHERE NOT ( - col0 ) <> CAST ( + col2 AS INTEGER )
----

query I rowsort
SELECT + col2 * col1 + - col2 FROM tab2
----
1150
3040
3828

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 NOT BETWEEN ( col1 ) AND ( col2 )
----
51
14
96

query I rowsort
SELECT DISTINCT col2 * 39 FROM tab1
----
2301
2652
3744

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + col2 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2906
SELECT + col2 * - col0 AS col0 FROM tab1 WHERE CAST( ( - 81 ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2906
SELECT + col2 * - col0 AS col0 FROM tab1 WHERE CAST ( ( - 81 ) AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT DISTINCT + 77 * + COUNT( * ) AS col2 FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT + 77 * + COUNT ( * ) AS col2 FROM tab1
----
231

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2908
SELECT + COUNT( * ) DIV + ( COUNT( DISTINCT col0 ) * + 24 ) + - MIN( ALL - col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2908
SELECT + COUNT ( * ) / + ( COUNT ( DISTINCT col0 ) * + 24 ) + - MIN ( ALL - col2 ) AS col0 FROM tab1
----
96

query I rowsort
SELECT + col2 * col0 + - 12 FROM tab0
----
693
858
9591

query I rowsort
SELECT ALL 73 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT DISTINCT COUNT( ALL 38 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2911
SELECT DISTINCT COUNT ( ALL 38 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2912
SELECT col0 * - CAST( - 15 AS SIGNED ) + col2 col0 FROM tab1 AS cor0
----
1334
1433
861

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2912
SELECT col0 * - CAST ( - 15 AS INTEGER ) + col2 col0 FROM tab1 AS cor0
----
1334
1433
861

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 78 * col2 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2914
SELECT - CAST( ( col0 ) AS SIGNED ) + col2 AS col2 FROM tab1 AS cor0
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-2914
SELECT - CAST ( ( col0 ) AS INTEGER ) + col2 AS col2 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT ALL - 7 FROM tab1 cor0
----
-7
-7
-7

query I rowsort
SELECT DISTINCT col0 + 75 AS col1 FROM tab0
----
162
172
90

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2917
SELECT SUM( col2 ) FROM tab1 WHERE CAST( col1 AS DECIMAL ) + col2 / - col1 BETWEEN NULL AND 38
----
NULL

skipif mysql # not compatible
query I rowsort label-2917
SELECT SUM ( col2 ) FROM tab1 WHERE CAST ( col1 AS REAL ) + col2 / - col1 BETWEEN NULL AND 38
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT COUNT( * ) FROM tab0 WHERE ( - 29 ) BETWEEN col1 AND ( col2 ) + ( 56 )
----
0

skipif mysql # not compatible
query I rowsort label-2918
SELECT COUNT ( * ) FROM tab0 WHERE ( - 29 ) BETWEEN col1 AND ( col2 ) + ( 56 )
----
0

query I rowsort
SELECT DISTINCT 44 FROM tab2 AS cor0 CROSS JOIN tab2
----
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2920
SELECT DISTINCT MIN( + CAST( NULL AS SIGNED ) ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT MIN ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 )
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT - + 43 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-2922
SELECT - + 43 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT ALL + 42 * COUNT( * ) - 96 AS col2 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL + 42 * COUNT ( * ) - 96 AS col2 FROM tab2 AS cor0
----
30

query I rowsort
SELECT DISTINCT - 75 + - 55 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= ( col0 )
----

query I rowsort
SELECT - ( - 66 ) - col0 * - 24 FROM tab0 AS cor0
----
2154
2394
426

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2926
SELECT - CAST( + 50 AS SIGNED ) - + 44 AS col0 FROM tab1 AS cor0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-2926
SELECT - CAST ( + 50 AS INTEGER ) - + 44 AS col0 FROM tab1 AS cor0
----
-94
-94
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-2927
SELECT + col0 - + col0 DIV 78 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2927
SELECT + col0 - + col0 / 78 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + col1 + + col2 * + col1 FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT DISTINCT 16 + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( + 15 / - 20 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 96 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
96

query I rowsort
SELECT ALL col2 * col0 + - ( - col2 ) FROM tab1 cor0
----
4992
5074
6256

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT MAX( DISTINCT ( + 54 ) ) AS col1 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-2932
SELECT MAX ( DISTINCT ( + 54 ) ) AS col1 FROM tab1
----
54

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= 59 * 51 + + 61 * ( col1 )
----

query I rowsort
SELECT DISTINCT col1 * + - ( col1 ) FROM tab0
----
-1
-441
-6561

query I rowsort
SELECT 50 * - col2 FROM tab1
----
-2950
-3400
-4800

query I rowsort
SELECT ALL + col0 * + + 35 * col1 FROM tab0
----
3395
42525
63945

query I rowsort
SELECT DISTINCT 75 FROM tab2 WHERE ( col0 + col0 * 16 ) NOT IN ( col2 )
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 98 * - 24 col2 FROM tab0
----
-2352

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2940
SELECT ALL 50 DIV + + col2 AS col1 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2940
SELECT ALL 50 / + + col2 AS col1 FROM tab2
----
0
1
2

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT + ( + COUNT( * ) ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2942
SELECT + ( + COUNT ( * ) ) col0 FROM tab1
----
3

query I rowsort
SELECT + 16 * + 7 FROM tab0
----
112
112
112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 64 col1 FROM tab1
----
64
64
64

query I rowsort
SELECT DISTINCT col0 / 91 - col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 10 / + col1 + col2 / + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT ALL - SUM( ALL + 51 ) FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL - SUM ( ALL + 51 ) FROM tab1 AS cor0
----
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-2947
SELECT DISTINCT - col0 DIV 93 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2947
SELECT DISTINCT - col0 / 93 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT 40 + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT 27 * col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + 25 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # aggregate syntax: 
query I rowsort label-2950
SELECT ALL SUM( ALL + col2 ) FROM tab1 WHERE NOT + - 82 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL SUM ( ALL + col2 ) FROM tab1 WHERE NOT + - 82 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2951
SELECT ALL + CAST( - col2 AS SIGNED ) AS col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2951
SELECT ALL + CAST ( - col2 AS INTEGER ) AS col1 FROM tab2
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-2952
SELECT ALL - col2 AS col1, 72 + - col1 DIV 90 AS col0 FROM tab2
----
-23
72
-40
72
-58
72

skipif mysql # not compatible
query II rowsort label-2952
SELECT ALL - col2 AS col1, 72 + - col1 / 90 AS col0 FROM tab2
----
-23
72
-40
72
-58
72

query I rowsort
SELECT DISTINCT - 92 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT - - MAX( DISTINCT col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2954
SELECT - - MAX ( DISTINCT col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2955
SELECT + + MAX( - ( - col0 ) ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2955
SELECT + + MAX ( - ( - col0 ) ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT - + ( - + col2 ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT - - col0 FROM tab1 AS cor0 WHERE ( NULL ) <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 49 < - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( col0 * - + col1 ) <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2960
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) IS NOT NULL ) OR + 70 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2960
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) IS NOT NULL ) OR + 70 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT COUNT( * ) + + 80 - + + COUNT( * ) + 95 * + MAX( - ( - 48 ) + - col2 ) FROM tab0 cor0
----
3690

skipif mysql # not compatible
query I rowsort label-2961
SELECT COUNT ( * ) + + 80 - + + COUNT ( * ) + 95 * + MAX ( - ( - 48 ) + - col2 ) FROM tab0 cor0
----
3690

onlyif mysql # DIV for integer division: 
query I rowsort label-2962
SELECT DISTINCT + - col1 + - col1 + + 74 DIV 59 FROM tab1 AS cor0
----
-27
-9
-93

skipif mysql # not compatible
query I rowsort label-2962
SELECT DISTINCT + - col1 + - col1 + + 74 / 59 FROM tab1 AS cor0
----
-27
-9
-93

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab1 WHERE - col1 + + 46 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2965
SELECT COUNT( * ) + 2 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-2965
SELECT COUNT ( * ) + 2 FROM tab0
----
5

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - 87 * 15 ) BETWEEN 64 AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + - + col1 AS col0, - 77 * 2 * col2 + + col2 col1 FROM tab2
----
0
-3519
0
-6120
0
-8874

query I rowsort
SELECT - col2 + + 0 AS col0 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 > - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2970
SELECT ALL - col2 + - CAST( - CAST( col0 AS SIGNED ) AS SIGNED ) * + col1 FROM tab1
----
366
4209
618

skipif mysql # not compatible
query I rowsort label-2970
SELECT ALL - col2 + - CAST ( - CAST ( col0 AS INTEGER ) AS INTEGER ) * + col1 FROM tab1
----
366
4209
618

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 + - 62 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2972
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL - 20 * col0 - col2 FROM tab2
----
-1320
-1558
-943

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2974
SELECT * FROM tab2 WHERE - CAST( NULL AS DECIMAL ) * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2974
SELECT * FROM tab2 WHERE - CAST ( NULL AS REAL ) * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col0 * + col0 + col0 + + + col1 - - ( + col2 ) FROM tab1 AS cor0
----
2762
7374
8487

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + 14
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 10 * + + col1 + - 20 - + 79 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2978
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 + + - col1 + col0 NOT BETWEEN + - CAST( 77 AS SIGNED ) AND + col0
----
46
64

skipif mysql # not compatible
query I rowsort label-2978
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 + + - col1 + col0 NOT BETWEEN + - CAST ( 77 AS INTEGER ) AND + col0
----
46
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT ALL COUNT( * ) * 39 FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL COUNT ( * ) * 39 FROM tab1 AS cor0
----
117

query I rowsort
SELECT + 46 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT + 97 * col2 AS col1 FROM tab1 AS cor0
----
5723
6596
9312

query I rowsort
SELECT - col2 * 21 FROM tab0 cor0
----
-2079
-210
-987

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2984
SELECT DISTINCT - CAST( + + col1 AS SIGNED ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT - CAST ( + + col1 AS INTEGER ) FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2985
SELECT ALL + CAST( - 4 AS SIGNED ) FROM tab1
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL + CAST ( - 4 AS INTEGER ) FROM tab1
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT - ( + ( - MIN( ALL ( + + col0 ) ) ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2986
SELECT - ( + ( - MIN ( ALL ( + + col0 ) ) ) ) FROM tab2
----
46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 + + 17 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2988
SELECT DISTINCT + 42 DIV - col2 AS col2 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT + 42 / - col2 AS col2 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT - + 83 * - 20 * - col2 AS col2 FROM tab2 AS cor0
----
-38180
-66400
-96280

query I rowsort
SELECT ALL - ( + - 55 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # DIV for integer division: 
query I rowsort label-2991
SELECT col2 * col2 DIV + - col0 AS col1 FROM tab0 AS cor0
----
-1
-101
-147

skipif mysql # not compatible
query I rowsort label-2991
SELECT col2 * col2 / + - col0 AS col1 FROM tab0 AS cor0
----
-1
-101
-147

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> ( - 67 )
----

query I rowsort
SELECT - col1 * ( - - col1 ) AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2994
SELECT + 26, CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-2994
SELECT + 26, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2995
SELECT ALL + - 28 DIV 15 + col2 AS col1 FROM tab0 AS cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL + - 28 / 15 + col2 AS col1 FROM tab0 AS cor0
----
46
9
98

query I rowsort
SELECT DISTINCT - 70 + 27 + col1 * - 55 FROM tab2 AS cor0
----
-2848
-3728
-4278

query II rowsort
SELECT col2 AS col2, col0 AS col1 FROM tab1
----
59
85
68
91
96
51

query I rowsort
SELECT ALL col2 + - + 23 AS col0 FROM tab1
----
36
45
73

query I rowsort
SELECT DISTINCT + 29 * col2 + - - ( col0 ) AS col0 FROM tab1
----
1796
2063
2835

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3000
SELECT - CAST( NULL AS SIGNED ) + + 51 + col0 + - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3000
SELECT - CAST ( NULL AS INTEGER ) + + 51 + col0 + - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3001
SELECT 33 + - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3001
SELECT 33 + - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3002
SELECT ALL CAST( - 66 AS SIGNED ) + + col1 AS col0 FROM tab2
----
-15
1
11

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL CAST ( - 66 AS INTEGER ) + + col1 AS col0 FROM tab2
----
-15
1
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3003
SELECT ALL - 83 AS col0, - CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-83
-14
-83
-47
-83
-5

skipif mysql # not compatible
query II rowsort label-3003
SELECT ALL - 83 AS col0, - CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-83
-14
-83
-47
-83
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * + - col1 col1, col1 AS col0 FROM tab0
----
-1
1
-441
21
-6561
81

query I rowsort
SELECT DISTINCT + 23 + 65 AS col2 FROM tab1 WHERE - col2 * - col1 * col0 / col1 - + col1 < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT + MIN( + 47 ) FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3006
SELECT + MIN ( + 47 ) FROM tab0 AS cor0
----
47

query I rowsort
SELECT DISTINCT - 59 * - 32 AS col0 FROM tab1 AS cor0
----
1888

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3008
SELECT ALL + - 28 * - CAST( NULL AS SIGNED ) / + COUNT( * ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3008
SELECT ALL + - 28 * - CAST ( NULL AS INTEGER ) / + COUNT ( * ) col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 = + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / + 51 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 95 FROM tab1 cor0
----
95
95
95

query III rowsort
SELECT * FROM tab2 WHERE NOT + 97 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3013
SELECT ALL + col0 * + - col2 * + - 77, - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
376992
NULL
386155
NULL
476476
NULL

skipif mysql # not compatible
query II rowsort label-3013
SELECT ALL + col0 * + - col2 * + - 77, - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
376992
NULL
386155
NULL
476476
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3014
SELECT - 75 * 40 * + col1 DIV col1 FROM tab1
----
-3000
-3000
-3000

skipif mysql # not compatible
query I rowsort label-3014
SELECT - 75 * 40 * + col1 / col1 FROM tab1
----
-3000
-3000
-3000

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3015
SELECT ALL + + COUNT( * ) FROM tab1 WHERE col2 NOT BETWEEN - CAST( - col1 AS DECIMAL ) AND 12
----
3

skipif mysql # not compatible
query I rowsort label-3015
SELECT ALL + + COUNT ( * ) FROM tab1 WHERE col2 NOT BETWEEN - CAST ( - col1 AS REAL ) AND 12
----
3

query I rowsort
SELECT - col1 * - ( 1 ) FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3017
SELECT DISTINCT col2 * + col0 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3017
SELECT DISTINCT col2 * + col0 * - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT col0 * + + 59 FROM tab0
----
5133
5723
885

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT DISTINCT + COUNT( * ) * + + 3 AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT + COUNT ( * ) * + + 3 AS col2 FROM tab2
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 * + col2 col2 FROM tab0 AS cor0
----
-3713
-7821
-790

query I rowsort
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( ( ( ( NULL >= NULL ) ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3022
SELECT ALL - + col2 * - col2 + - CAST( NULL AS SIGNED ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3022
SELECT ALL - + col2 * - col2 + - CAST ( NULL AS INTEGER ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( col0 ) FROM tab0 AS cor0 WHERE NULL = 46 * - 1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 IN ( - 73 - col1, + col1 * - col0, + col2, + + col1 + - 27 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3025
SELECT ALL - 47 DIV col0 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL - 47 / col0 FROM tab2 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT DISTINCT - COUNT( + + 3 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3026
SELECT DISTINCT - COUNT ( + + 3 ) FROM tab0
----
-3

query II rowsort
SELECT DISTINCT col2, col0 + - col0 FROM tab0
----
10
0
47
0
99
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IN ( 46 )
----

query I rowsort
SELECT - 75 * + - col2 FROM tab1
----
4425
5100
7200

onlyif mysql # DIV for integer division: 
query I rowsort label-3030
SELECT DISTINCT - col1 DIV + 25 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-3030
SELECT DISTINCT - col1 / + 25 FROM tab1
----
-1
0

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT + 90 - col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
15
26
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3033
SELECT ALL - 21 DIV + COUNT( * ) FROM tab2 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL - 21 / + COUNT ( * ) FROM tab2 cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT DISTINCT + COUNT( * ) * + 50 + + - 4 FROM tab0 AS cor0
----
146

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT + COUNT ( * ) * + 50 + + - 4 FROM tab0 AS cor0
----
146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3035
SELECT DISTINCT CAST( NULL AS SIGNED ) + SUM( DISTINCT + 86 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT CAST ( NULL AS INTEGER ) + SUM ( DISTINCT + 86 ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT - 79 + + COUNT( * ) FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-3036
SELECT - 79 + + COUNT ( * ) FROM tab2
----
-76

query I rowsort
SELECT col0 + + col1 * - col2 AS col1 FROM tab0
----
-123
-2
-3792

query I rowsort
SELECT DISTINCT + col0 + 63 + col1 - + col0 * + col1 * + 19 * + - col0 FROM tab1
----
686528
691994
7395134

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT DISTINCT + + COUNT( * ) FROM tab2 WHERE NOT - - col1 * + ( - + col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT + + COUNT ( * ) FROM tab2 WHERE NOT - - col1 * + ( - + col0 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3040
SELECT - COUNT( * ) DIV - + ( - - 83 ) - + CAST( + 49 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-3040
SELECT - COUNT ( * ) / - + ( - - 83 ) - + CAST ( + 49 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-49

query I rowsort
SELECT DISTINCT - 50 + + col2 FROM tab2 WHERE NOT NULL = - col2 + + - 62 + + 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT DISTINCT MAX( col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3042
SELECT DISTINCT MAX ( col2 ) AS col0 FROM tab1
----
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 * - ( + col2 ) + - col2 * - + 4 <= NULL
----

query I rowsort
SELECT DISTINCT + - col1 * - - col1 FROM tab2 cor0
----
-2601
-4489
-5929

query I rowsort
SELECT col1 * + col2 - + 39 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
171
3768
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3046
SELECT 40 * + CAST( - + ( COUNT( * ) ) AS SIGNED ) + + 59 * 63 col0 FROM tab0 AS cor0
----
3597

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3046
SELECT 40 * + CAST ( - + ( COUNT ( * ) ) AS INTEGER ) + + 59 * 63 col0 FROM tab0 AS cor0
----
3597

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3047
SELECT + - CAST( NULL AS SIGNED ) * 59 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3047
SELECT + - CAST ( NULL AS INTEGER ) * 59 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col2, - col2 FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

query I rowsort
SELECT - col1 * + + col1 + - + ( col2 ) + col0 FROM tab0 AS cor0
----
-3
-364
-6593

query II rowsort
SELECT DISTINCT col1 * + col1 AS col1, col0 FROM tab0
----
1
97
441
87
6561
15

query I rowsort
SELECT ( - 28 ) * + 43 * - col0 FROM tab1
----
102340
109564
61404

query I rowsort
SELECT - + 94 / + 97 AS col2 FROM tab1 WHERE NOT NULL = + - col1 * col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN 76 AND NULL
----

query I rowsort
SELECT ALL + - col2 * - - 38 + + + col0 AS col1 FROM tab2 AS cor0
----
-1456
-2129
-828

query I rowsort
SELECT + - 92 FROM tab2 AS cor0 WHERE NOT - col2 * - col1 + + - col1 IS NULL
----
-92
-92
-92

query I rowsort
SELECT - ( - 92 ) AS col2 FROM tab1 AS cor0
----
92
92
92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT DISTINCT + ( COUNT( * ) ) col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3058
SELECT DISTINCT + ( COUNT ( * ) ) col0 FROM tab1 cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 39 * 25 + col2 IS NOT NULL
----

query II rowsort
SELECT ALL - col2 AS col0, col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT - - col1 * - 11 AS col0 FROM tab0 AS cor0
----
-11
-231
-891

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT ALL SUM( - col0 ) col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3062
SELECT ALL SUM ( - col0 ) col1 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT col0 + 12 FROM tab2 AS cor0
----
58
76
87

query I rowsort
SELECT DISTINCT - AVG ( - 30 ) * - 18 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN + 23 / - + col2 - 97 AND col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT - 96 * - COUNT( ALL + + 33 ) AS col1 FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-3065
SELECT - 96 * - COUNT ( ALL + + 33 ) AS col1 FROM tab2 AS cor0
----
288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 67 col2 FROM tab1 AS cor0
----
67

query I rowsort
SELECT col1 - col1 - + col2 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL col1 + 89 + - ( col0 ) FROM tab1
----
45
52
9

query I rowsort
SELECT ALL col0 - - - col1 FROM tab0
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3070
SELECT 84 - - CAST( - col2 AS SIGNED ) + 52 FROM tab0
----
126
37
89

skipif mysql # not compatible
query I rowsort label-3070
SELECT 84 - - CAST ( - col2 AS INTEGER ) + 52 FROM tab0
----
126
37
89

onlyif mysql # DIV for integer division: 
query I rowsort label-3071
SELECT DISTINCT col1 * 21 * + ( - col2 ) - + - col0 DIV + col2 + + + 56 * + 42 * - col2 AS col2 FROM tab1
----
-144962
-227051
-254016

skipif mysql # not compatible
query I rowsort label-3071
SELECT DISTINCT col1 * 21 * + ( - col2 ) - + - col0 / + col2 + + + 56 * + 42 * - col2 AS col2 FROM tab1
----
-144962
-227051
-254016

query I rowsort
SELECT ( + col2 ) + + ( + col2 ) FROM tab0
----
198
20
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 col0 FROM tab0
----
-43

query I rowsort
SELECT + col2 + + + col1 AS col0 FROM tab0
----
100
128
31

query I rowsort
SELECT - col0 FROM tab1 WHERE + - col2 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT - COUNT( * ) + COUNT( * ) * - 47 FROM tab1 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-3076
SELECT - COUNT ( * ) + COUNT ( * ) * - 47 FROM tab1 AS cor0
----
-144

onlyif mysql # aggregate syntax: 
query II rowsort label-3077
SELECT ALL + - 48, COUNT( * ) * - 46 col1 FROM tab2 AS cor0
----
-48
-138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3077
SELECT ALL + - 48, COUNT ( * ) * - 46 col1 FROM tab2 AS cor0
----
-48
-138

query I rowsort
SELECT + + col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT ALL - 74 - ( + 85 ) * + + COUNT( * ) FROM tab2 AS cor0
----
-329

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL - 74 - ( + 85 ) * + + COUNT ( * ) FROM tab2 AS cor0
----
-329

onlyif mysql # aggregate syntax: 
query I rowsort label-3080
SELECT DISTINCT + COUNT( DISTINCT + col1 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3080
SELECT DISTINCT + COUNT ( DISTINCT + col1 ) col1 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3081
SELECT + col1 DIV - col1 + - 65 FROM tab0 AS cor0
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-3081
SELECT + col1 / - col1 + - 65 FROM tab0 AS cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT DISTINCT ( + - MAX( col2 ) ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3082
SELECT DISTINCT ( + - MAX ( col2 ) ) AS col0 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT 21 * - + 78 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3084
SELECT + MIN( DISTINCT - col0 ) AS col2 FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT + MIN ( DISTINCT - col0 ) AS col2 FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT ALL - SUM( ALL col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL - SUM ( ALL col0 ) FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-3086
SELECT - ( + - ( - SUM( DISTINCT col0 ) ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3086
SELECT - ( + - ( - SUM ( DISTINCT col0 ) ) ) FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3087
SELECT DISTINCT * FROM tab1 cor0 WHERE - col0 BETWEEN ( + CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3087
SELECT DISTINCT * FROM tab1 cor0 WHERE - col0 BETWEEN ( + CAST ( NULL AS INTEGER ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT DISTINCT + MAX( ALL 17 ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-3088
SELECT DISTINCT + MAX ( ALL 17 ) FROM tab2 AS cor0
----
17

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 94 IS NOT NULL
----

query II rowsort
SELECT ALL col0, 28 FROM tab0
----
15
28
87
28
97
28

query I rowsort
SELECT 1 * - + col0 AS col2 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 IS NOT NULL )
----

query I rowsort
SELECT col1 + col2 * - + 4 * - col1 FROM tab1
----
1185
12831
5390

query I rowsort
SELECT + + col2 FROM tab1 WHERE NOT ( + - 39 ) NOT BETWEEN + col2 AND + - col0
----

query I rowsort
SELECT 49 + - col1 + - col2 + - - col1 + col1 + + col0 * + + ( - 14 ) * - col2 * - 42 * + + col0 AS col2 FROM tab0
----
-44505660
-547716757
-6218017

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT DISTINCT - + COUNT( * ) FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT - + COUNT ( * ) FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND col2 )
----
0

query I rowsort
SELECT - ( col0 ) * - - col0 - + 72 FROM tab2 AS cor0
----
-2188
-4168
-5697

query I rowsort
SELECT ALL col1 * - 10 FROM tab2 AS cor0
----
-510
-670
-770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3099
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3099
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - 98 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3101
SELECT DISTINCT - + CAST( - - COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3101
SELECT DISTINCT - + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3102
SELECT ALL - COUNT( * ) + + 61 DIV COUNT( * ) FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-3102
SELECT ALL - COUNT ( * ) + + 61 / COUNT ( * ) FROM tab0 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-3103
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-3

query I rowsort
SELECT ALL col2 + col0 * - - 27 + col1 AS col1 FROM tab1
----
1487
2359
2572

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3105
SELECT ALL 98 AS col1 FROM tab0 WHERE + + col0 * CAST( + col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3105
SELECT ALL 98 AS col1 FROM tab0 WHERE + + col0 * CAST ( + col1 AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3106
SELECT DISTINCT col1 DIV col0 * - + col0 + + 28 AS col0 FROM tab0
----
-47
28

skipif mysql # not compatible
query I rowsort label-3106
SELECT DISTINCT col1 / col0 * - + col0 + + 28 AS col0 FROM tab0
----
-47
28

query III rowsort
SELECT * FROM tab2 WHERE - col2 + col2 + + - 24 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * col2 - - 82 AS col2 FROM tab1
----
3563
4706
9298

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3109
SELECT DISTINCT MAX( - - CAST( NULL AS SIGNED ) ) - + 30 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT MAX ( - - CAST ( NULL AS INTEGER ) ) - + 30 AS col1 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND NOT ( NULL ) NOT IN ( + + col1 )
----

query I rowsort
SELECT ALL - + col1 * + ( 62 ) FROM tab1 cor0
----
-2914
-310
-868

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-3113
SELECT col1 DIV - col0 AS col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3113
SELECT col1 / - col0 AS col2 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + - col0 + col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( - col0 ) * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT ALL - + MAX( 44 ) FROM tab0 WHERE - + ( 78 ) < col1 / + col0
----
-44

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL - + MAX ( 44 ) FROM tab0 WHERE - + ( 78 ) < col1 / + col0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3117
SELECT + MAX( ALL col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3117
SELECT + MAX ( ALL col2 ) AS col2 FROM tab2 AS cor0
----
58

query II rowsort
SELECT + - col2 AS col0, col1 AS col2 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * col0 + + ( 69 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT SUM( DISTINCT 4 ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3120
SELECT SUM ( DISTINCT 4 ) FROM tab0 AS cor0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3121
SELECT DISTINCT + col0 col1, + ( - - col0 ) / col0 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3121
SELECT DISTINCT + col0 col1, + ( - - col0 ) / col0 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3122
SELECT DISTINCT col1 DIV col2 * col1 * - - 68 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3122
SELECT DISTINCT col1 / col2 * col1 * - - 68 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT ( 28 ) AS col0 FROM tab0
----
28

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 91 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3125
SELECT ALL - COUNT( * ) + - 31 col0 FROM tab2 WHERE NOT + - col2 + - col0 + - 54 IS NULL
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3125
SELECT ALL - COUNT ( * ) + - 31 col0 FROM tab2 WHERE NOT + - col2 + - col0 + - 54 IS NULL
----
-34

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3127
SELECT col0 * + CAST( + ( - + col1 ) AS SIGNED ) FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-3127
SELECT col0 * + CAST ( + ( - + col1 ) AS INTEGER ) FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3128
SELECT - MAX( ALL + 43 ) FROM tab0
----
-43

skipif mysql # not compatible
query I rowsort label-3128
SELECT - MAX ( ALL + 43 ) FROM tab0
----
-43

query III rowsort
SELECT * FROM tab2 WHERE - col0 * + col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3130
SELECT col0 * + ( - - CAST( + - col1 AS SIGNED ) ) FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-3130
SELECT col0 * + ( - - CAST ( + - col1 AS INTEGER ) ) FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 11 IN ( - 47, - 2, - - 93 + - ( + col2 ), - + 73 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT COUNT( * ) + + 7 AS col1 FROM tab1 cor0
----
10

skipif mysql # not compatible
query I rowsort label-3132
SELECT COUNT ( * ) + + 7 AS col1 FROM tab1 cor0
----
10

query I rowsort
SELECT + col2 + 69 * + 29 AS col2 FROM tab0 AS cor0
----
2011
2048
2100

query I rowsort
SELECT ALL - + col0 + - col0 + 3 * - + col1 AS col2 FROM tab0 AS cor0
----
-197
-237
-273

query I rowsort
SELECT DISTINCT + - 77 AS col2 FROM tab0 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT ALL - ( 20 ) + + MAX( + 60 ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-3136
SELECT ALL - ( 20 ) + + MAX ( + 60 ) FROM tab2 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT MAX( - 18 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-3137
SELECT MAX ( - 18 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

query I rowsort
SELECT DISTINCT + col2 - + 10 FROM tab1 AS cor0
----
49
58
86

query I rowsort
SELECT 69 * + col1 + + + 86 FROM tab0 AS cor0 WHERE ( - col0 + ( + col0 ) ) <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3140
SELECT DISTINCT - col0 * CAST( NULL AS DECIMAL ) + 74 + col1 col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3140
SELECT DISTINCT - col0 * CAST ( NULL AS REAL ) + 74 + col1 col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) - col1 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 + + 28 AS col2 FROM tab1 AS cor0
----
113
119
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3143
SELECT ALL + MAX( DISTINCT ( - CAST( NULL AS SIGNED ) ) ) * MAX( ALL + + col0 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3143
SELECT ALL + MAX ( DISTINCT ( - CAST ( NULL AS INTEGER ) ) ) * MAX ( ALL + + col0 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 27 AS col2, - col1 col0 FROM tab1 AS cor0
----
27
-14
27
-47
27
-5

query I rowsort
SELECT ALL + col1 + + - col2 - col0 * - + col2 AS col2 FROM tab2
----
1086
2597
4359

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col2 col2 FROM tab2
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( ( NULL ) > 66 * col1 ) )
----

query I rowsort
SELECT col1 * + col1 * + 38 + col1 FROM tab0
----
16779
249399
39

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT ALL 49 * - COUNT( - 89 ) FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-3150
SELECT ALL 49 * - COUNT ( - 89 ) FROM tab2
----
-147

query I rowsort
SELECT DISTINCT - col0 * + col0 + - col2 AS col1 FROM tab1 AS cor0
----
-2697
-7284
-8349

onlyif mysql # aggregate syntax: 
query I rowsort label-3152
SELECT - MAX( ALL 48 ) FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3152
SELECT - MAX ( ALL 48 ) FROM tab0 AS cor0
----
-48

query I rowsort
SELECT ALL - col1 * + 87 * - + 15 * - col0 FROM tab0 AS cor0
----
-126585
-1585575
-2384235

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT ALL SUM( col1 ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL SUM ( col1 ) AS col0 FROM tab0
----
103

query III rowsort
SELECT DISTINCT col0, col0 + - 48, - - col0 AS col1 FROM tab1
----
9 values hashing to 462b6f394ea244143598d75e08c1742d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 0 col2, ( - + col1 ) col0 FROM tab0 AS cor0
----
0
-1
0
-21
0
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-3157
SELECT DISTINCT + - COUNT( * ) AS col0, + SUM( + 24 ) FROM tab2 cor0
----
-3
72

skipif mysql # not compatible
query II rowsort label-3157
SELECT DISTINCT + - COUNT ( * ) AS col0, + SUM ( + 24 ) FROM tab2 cor0
----
-3
72

query I rowsort
SELECT DISTINCT col1 + + - col2 - + + 66 AS col1 FROM tab2
----
-29
-38
-57

query I rowsort
SELECT - ( 58 ) * - col2 + + + col1 FROM tab0
----
2807
5743
601

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3160
SELECT - - 72 + + - 66 * col0 * + CAST( NULL AS DECIMAL ), col1 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-3160
SELECT - - 72 + + - 66 * col0 * + CAST ( NULL AS REAL ), col1 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 86 AS col2 FROM tab0
----
86
86
86

query I rowsort
SELECT col0 * - - col1 + - - col0 AS col0 FROM tab2
----
2392
4992
5100

query I rowsort
SELECT ALL - 57 + - col2 + - col0 FROM tab0
----
-119
-154
-253

query I rowsort
SELECT + + col0 * - 63 AS col1 FROM tab2 WHERE NULL >= + 16 * col2 * + col1 + - 15
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT col2 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT - MIN( DISTINCT + 28 ) * - 98 AS col0 FROM tab2
----
2744

skipif mysql # not compatible
query I rowsort label-3166
SELECT - MIN ( DISTINCT + 28 ) * - 98 AS col0 FROM tab2
----
2744

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3167
SELECT * FROM tab1 WHERE + - ( + col0 ) >= CAST( NULL AS SIGNED ) * 87 / + col0 * + col0
----

skipif mysql # not compatible
query III rowsort label-3167
SELECT * FROM tab1 WHERE + - ( + col0 ) >= CAST ( NULL AS INTEGER ) * 87 / + col0 * + col0
----

query I rowsort
SELECT ALL 61 + - 52 FROM tab2 AS cor0
----
9
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3169
SELECT ALL CAST( col2 AS SIGNED ) + + - col1 AS col1 FROM tab2
----
-28
-37
-9

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL CAST ( col2 AS INTEGER ) + + - col1 AS col1 FROM tab2
----
-28
-37
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - 28 IS NULL
----

query I rowsort
SELECT - 66 * + col1 + - - col1 FROM tab1
----
-3055
-325
-910

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN 26 AND NULL
----

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE col0 * + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT ALL + SUM( DISTINCT - 84 ) FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-3174
SELECT ALL + SUM ( DISTINCT - 84 ) FROM tab0 AS cor0
----
-84

query I rowsort
SELECT col0 * + - col1 AS col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + col1 + - + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT ALL + COUNT( * ) + - + 58 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-3177
SELECT ALL + COUNT ( * ) + - + 58 FROM tab1 AS cor0
----
-55

query II rowsort
SELECT + - 2 AS col0, - col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3179
SELECT + col0 DIV - - 20 FROM tab2
----
2
3
3

skipif mysql # not compatible
query I rowsort label-3179
SELECT + col0 / - - 20 FROM tab2
----
2
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT MAX( DISTINCT + 33 ) AS col0 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-3180
SELECT MAX ( DISTINCT + 33 ) AS col0 FROM tab1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3181
SELECT 92 AS col0 FROM tab0 WHERE NOT NULL >= ( - CAST( NULL AS SIGNED ) * + col0 )
----

skipif mysql # not compatible
query I rowsort label-3181
SELECT 92 AS col0 FROM tab0 WHERE NOT NULL >= ( - CAST ( NULL AS INTEGER ) * + col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3182
SELECT * FROM tab2 WHERE NOT + CAST( NULL AS DECIMAL ) NOT BETWEEN col1 AND ( - - col1 )
----

skipif mysql # not compatible
query III rowsort label-3182
SELECT * FROM tab2 WHERE NOT + CAST ( NULL AS REAL ) NOT BETWEEN col1 AND ( - - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + col1 col1 FROM tab2 WHERE NOT + 18 >= col2 + - - col1 * - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < col2
----

query I rowsort
SELECT AVG ( - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT 4 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 57 <> NULL
----

query I rowsort
SELECT + col2 * - - col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT - col0 * - col1 * + col2 FROM tab0
----
18270
57105
9603

query II rowsort
SELECT col1 + col1, - 55 * - col1 * - 2 AS col2 FROM tab0
----
162
-8910
2
-110
42
-2310

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3190
SELECT DISTINCT CAST( NULL AS DECIMAL ) / - + col2 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT CAST ( NULL AS REAL ) / - + col2 AS col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL - col1 * 49 + - col2 * + - 78 AS col2, col1 * - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3001
-2209
4357
-25
6802
-196

onlyif mysql # DIV for integer division: 
query I rowsort label-3192
SELECT ALL - col1 DIV + - col2 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3192
SELECT ALL - col1 / + - col2 FROM tab0 cor0
----
0
1
2

query I rowsort
SELECT DISTINCT - + ( - + 45 ) FROM tab2 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3194
SELECT ALL COUNT( ALL - ( + 17 ) ) * + ( COUNT( * ) ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3194
SELECT ALL COUNT ( ALL - ( + 17 ) ) * + ( COUNT ( * ) ) FROM tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3196
SELECT ALL + 38 DIV + 12 + col1 + + - 38 col0 FROM tab1 AS cor0
----
-21
-30
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3196
SELECT ALL + 38 / + 12 + col1 + + - 38 col0 FROM tab1 AS cor0
----
-21
-30
12

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 15 + - col2 < - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * + - 35 AS col1 FROM tab2
----
-1785
-2345
-2695

query II rowsort
SELECT ALL - col0 + - 60 * + 45, + col2 FROM tab2
----
-2746
23
-2764
40
-2775
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col1 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT 97 + + - 1 + - + ( - col2 ) FROM tab0 AS cor0
----
106
143
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3202
SELECT ALL + col1 / - CAST( NULL AS SIGNED ) * + 94 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL + col1 / - CAST ( NULL AS INTEGER ) * + 94 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 9 * - + col0 + - 8 FROM tab0 cor0
----
-143
-791
-881

query I rowsort
SELECT DISTINCT col2 + - + 35 + + ( + 94 ) AS col2 FROM tab2 AS cor0
----
117
82
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3205
SELECT - 42 + - 22 + - 43 + - col2 + - CAST( - + 83 AS SIGNED ) FROM tab2 AS cor0
----
-47
-64
-82

skipif mysql # not compatible
query I rowsort label-3205
SELECT - 42 + - 22 + - 43 + - col2 + - CAST ( - + 83 AS INTEGER ) FROM tab2 AS cor0
----
-47
-64
-82

query I rowsort
SELECT DISTINCT col1 + col0 + + col2 AS col2 FROM tab1
----
149
161
206

query I rowsort
SELECT DISTINCT 67 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
67

query I rowsort
SELECT 60 FROM tab2 WHERE NULL >= - + 98
----

query III rowsort
SELECT * FROM tab1 WHERE - + col1 BETWEEN NULL AND col0
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 <> + col1 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3211
SELECT - SUM( col0 ) * 99 * + 18 AS col1 FROM tab0
----
-354618

skipif mysql # not compatible
query I rowsort label-3211
SELECT - SUM ( col0 ) * 99 * + 18 AS col1 FROM tab0
----
-354618

query I rowsort
SELECT + - col1 - - col2 + 16 - + ( col1 ) AS col1 FROM tab0 AS cor0
----
-16
-99
113

query I rowsort
SELECT - ( col1 ) - 27 * - - col2 AS col1 FROM tab2 AS cor0
----
-1157
-1633
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-3214
SELECT ALL - MIN( - - 14 ) FROM tab2 cor0
----
-14

skipif mysql # not compatible
query I rowsort label-3214
SELECT ALL - MIN ( - - 14 ) FROM tab2 cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT ALL + MIN( - 3 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL + MIN ( - 3 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + - col0 * + + col0 AS col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * - 34 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 + col0 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - 78 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-78

query I rowsort
SELECT DISTINCT 77 FROM tab1 WHERE NOT + 53 > + + col0 + - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT ( + ( MAX( ALL - - 94 ) ) ) FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-3221
SELECT ( + ( MAX ( ALL - - 94 ) ) ) FROM tab2
----
94

query III rowsort
SELECT * FROM tab2 WHERE NOT + 97 BETWEEN NULL AND - 53 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2 * - + col1 AS col0, 28 FROM tab1
----
-1344
28
-295
28
-3196
28

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3225
SELECT + ( + ( + MAX( ALL + CAST( NULL AS SIGNED ) ) ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3225
SELECT + ( + ( + MAX ( ALL + CAST ( NULL AS INTEGER ) ) ) ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( + ( + col2 ) ) - - 9 + - ( col0 ) * - - ( col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3227
SELECT DISTINCT CAST( 18 AS DECIMAL ) AS col1 FROM tab0 cor0 WHERE 63 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3227
SELECT DISTINCT CAST ( 18 AS REAL ) AS col1 FROM tab0 cor0 WHERE 63 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + col2 ) col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 33 AS col0 FROM tab2 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-3230
SELECT 17 AS col1, COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
17
9

skipif mysql # not compatible
query II rowsort label-3230
SELECT 17 AS col1, COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
17
9

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3233
SELECT ALL + ( + - CAST( col2 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3233
SELECT ALL + ( + - CAST ( col2 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3235
SELECT ALL CAST( + 36 AS SIGNED ) FROM tab0 cor0
----
36
36
36

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL CAST ( + 36 AS INTEGER ) FROM tab0 cor0
----
36
36
36

query I rowsort
SELECT ALL + col0 + + col0 + - + col0 * + col0 FROM tab2 cor0
----
-2024
-3968
-5475

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT - + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE 90 >= + 31 + + col0
----
-1

skipif mysql # not compatible
query I rowsort label-3237
SELECT - + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE 90 >= + 31 + + col0
----
-1

query I rowsort
SELECT + - col2 * - col0 * + + ( + - col0 ) + - 21 * + col1 AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT DISTINCT + MAX( - col1 ) + + 98 col1 FROM tab1
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3239
SELECT DISTINCT + MAX ( - col1 ) + + 98 col1 FROM tab1
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 + + col2 col1 FROM tab1
----
102
65
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + - ( - 91 ) * - col2, ( col0 ) col0 FROM tab0
----
-4262
15
-823
87
-8912
97

query I rowsort
SELECT DISTINCT + 89 - - 35 AS col2 FROM tab2
----
124

onlyif mysql # DIV for integer division: 
query I rowsort label-3243
SELECT DISTINCT - col1 DIV + 2 AS col1 FROM tab1
----
-2
-23
-7

skipif mysql # not compatible
query I rowsort label-3243
SELECT DISTINCT - col1 / + 2 AS col1 FROM tab1
----
-2
-23
-7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 0 + - + 89 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT COUNT( * ) * + MAX( - 4 ) * + + COUNT( ALL + 33 ) col1 FROM tab1
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3245
SELECT COUNT ( * ) * + MAX ( - 4 ) * + + COUNT ( ALL + 33 ) col1 FROM tab1
----
-36

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND - - col1
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col1 FROM tab0 WHERE NOT + col2 IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - col1 * + + ( col2 ) + - 81 * + - col2 * - col1 AS col2 FROM tab2
----
-252560
-318652
-96186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 48 * - ( - + ( col0 ) ) col2 FROM tab0
----
4197
4657
801

query III rowsort
SELECT * FROM tab2 WHERE + + col0 * - - ( + - 76 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( - 4 ) + - 31 AS col1 FROM tab0
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col0 FROM tab1 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3253
SELECT - COUNT( * ) * + SUM( 48 ) AS col0 FROM tab1 AS cor0 WHERE NOT - CAST( + - 91 AS SIGNED ) IS NULL
----
-432

skipif mysql # not compatible
query I rowsort label-3253
SELECT - COUNT ( * ) * + SUM ( 48 ) AS col0 FROM tab1 AS cor0 WHERE NOT - CAST ( + - 91 AS INTEGER ) IS NULL
----
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-3254
SELECT + COUNT( * ) * - 18 col0 FROM tab1 cor0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3254
SELECT + COUNT ( * ) * - 18 col0 FROM tab1 cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3255
SELECT DISTINCT SUM( - 35 ) AS col2 FROM tab2 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-3255
SELECT DISTINCT SUM ( - 35 ) AS col2 FROM tab2 AS cor0
----
-105

query I rowsort
SELECT - + 99 * + - 50 FROM tab1 AS cor0
----
4950
4950
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT - COUNT( ALL + + col0 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3257
SELECT - COUNT ( ALL + + col0 ) FROM tab1 cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-3258
SELECT 4 DIV + col2 AS col2, col0 FROM tab2
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-3258
SELECT 4 / + col2 AS col2, col0 FROM tab2
----
0
46
0
64
0
75

query I rowsort
SELECT DISTINCT + 55 * col0 AS col2 FROM tab0
----
4785
5335
825

onlyif mysql # DIV for integer division: 
query I rowsort label-3260
SELECT ALL col1 DIV col0 * + - col1 AS col1 FROM tab2
----
-51
-77
0

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL col1 / col0 * + - col1 AS col1 FROM tab2
----
-51
-77
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 12 col2 FROM tab1
----
12
12
12

query II rowsort
SELECT DISTINCT col0 AS col1, 70 FROM tab2
----
46
70
64
70
75
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT DISTINCT 82 * + 74 * - COUNT( * ) AS col1 FROM tab0, tab0 AS cor0
----
-54612

skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT 82 * + 74 * - COUNT ( * ) AS col1 FROM tab0, tab0 AS cor0
----
-54612

onlyif mysql # DIV for integer division: 
query I rowsort label-3264
SELECT col1 DIV + + 57 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3264
SELECT col1 / + + 57 AS col2 FROM tab2
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 + col1 AS col0, col0 - 48 col1 FROM tab2 AS cor0
----
141
16
142
27
97
-2

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT DISTINCT + col1 + - 79 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-12
-2
-28

query I rowsort
SELECT - 44 * - - 90 AS col1 FROM tab0 AS cor0
----
-3960
-3960
-3960

query I rowsort
SELECT DISTINCT + col2 * - col0 + - - col1 + - - 84 - - + 69 * + col0 AS col0 FROM tab1 AS cor0
----
-1279
222
939

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 90 + - - 42, + 66 * - col1 col0 FROM tab1 AS cor0
----
-48
-3102
-48
-330
-48
-924

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3271
SELECT CAST( NULL AS SIGNED ) * + 49 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-3271
SELECT CAST ( NULL AS INTEGER ) * + 49 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3272
SELECT ALL - 61 + + - 14 - MAX( ALL 2 ) AS col1 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3272
SELECT ALL - 61 + + - 14 - MAX ( ALL 2 ) AS col1 FROM tab0 AS cor0
----
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, 93 + col0 + col2 FROM tab2 WHERE NULL IS NULL
----
-46
162
-64
197
-75
226

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 11 <> + + col1
----

query I rowsort
SELECT + + col2 / col2 - + + ( - col0 ) + col0 / + - col1 + - 53 AS col0 FROM tab0 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + col0 - + col0 - - col0 + col0 + + col2 * - col1 FROM tab1
----
-1191
-2923
-40

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col0 + + col2 / - 48 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT - - 16 * - 47 + - COUNT( * ) * COUNT( - + col1 ) AS col0 FROM tab1 AS cor0
----
-761

skipif mysql # not compatible
query I rowsort label-3279
SELECT - - 16 * - 47 + - COUNT ( * ) * COUNT ( - + col1 ) AS col0 FROM tab1 AS cor0
----
-761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3280
SELECT col1 + - 75 * + col2 + + CAST( - 31 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3475
-7455
-760

skipif mysql # not compatible
query I rowsort label-3280
SELECT col1 + - 75 * + col2 + + CAST ( - 31 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3475
-7455
-760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT - ( + 22 ) + CAST( ( + 70 ) AS SIGNED ) FROM tab2 AS cor0 WHERE NULL = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3281
SELECT - ( + 22 ) + CAST ( ( + 70 ) AS INTEGER ) FROM tab2 AS cor0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT + + 48 FROM tab0 AS cor0 WHERE + col1 + + col1 >= NULL
----

query II rowsort
SELECT - 16, col1 FROM tab2 AS cor0
----
-16
51
-16
67
-16
77

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3285
SELECT + + ( + COUNT( col2 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3285
SELECT + + ( + COUNT ( col2 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 68 * + col1 + - col0 AS col0 FROM tab0 AS cor0
----
-1515
-165
-5523

onlyif mysql # DIV for integer division: 
query I rowsort label-3287
SELECT ALL 35 * col2 DIV col2 AS col2 FROM tab2 AS cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL 35 * col2 / col2 AS col2 FROM tab2 AS cor0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT + + SUM( + - col2 ) * - 55 FROM tab2 AS cor0
----
6655

skipif mysql # not compatible
query I rowsort label-3288
SELECT + + SUM ( + - col2 ) * - 55 FROM tab2 AS cor0
----
6655

query I rowsort
SELECT DISTINCT + 86 * - - 23 FROM tab1 AS cor0
----
1978

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col1 + + col1 IS NOT NULL ) OR NULL BETWEEN NULL AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + col2 * 31 AS col1 FROM tab2
----
120466
36363
95480

onlyif mysql # DIV for integer division: 
query I rowsort label-3293
SELECT DISTINCT - col2 DIV - - col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3293
SELECT DISTINCT - col2 / - - col0 FROM tab0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT + COUNT( * ) * - + 33 AS col1 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-3294
SELECT + COUNT ( * ) * - + 33 AS col1 FROM tab1
----
-99

query II rowsort
SELECT ALL + 58 AS col0, col0 AS col0 FROM tab2
----
58
46
58
64
58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 64 col0 FROM tab2
----
64
64
64

query II rowsort
SELECT - col0 AS col1, col2 AS col1 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3298
SELECT COUNT( * ) DIV - - COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3298
SELECT COUNT ( * ) / - - COUNT ( * ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > col1 / + + col2
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 * col0 * - col2 < + col2 + 56 * + - col1 / col2 * - - col1 * 66 * - col1
----

query II rowsort
SELECT + col1 AS col0, + col0 AS col1 FROM tab2 AS cor0
----
51
46
67
75
77
64

query II rowsort
SELECT ALL - 41 AS col0, col0 FROM tab1 AS cor0
----
-41
51
-41
85
-41
91

query II rowsort
SELECT ALL - - 41 AS col0, + col2 * - 78 FROM tab1 cor0
----
41
-4602
41
-5304
41
-7488

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 * + col1 * - 31 >= + + col1 / + 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT 39 + - COUNT( * ) * + + ( - - 71 ) + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + - 95 * + + col1 AND 86 / + - col1 * - + col1
----
39

skipif mysql # not compatible
query I rowsort label-3305
SELECT 39 + - COUNT ( * ) * + + ( - - 71 ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + - 95 * + + col1 AND 86 / + - col1 * - + col1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT DISTINCT + + COUNT( ALL - ( col2 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3306
SELECT DISTINCT + + COUNT ( ALL - ( col2 ) ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 19 + - col1 * - 41 col2 FROM tab1 AS cor0
----
1946
224
593

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT ALL - - SUM( DISTINCT - 9 ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL - - SUM ( DISTINCT - 9 ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - 86 AS col2 FROM tab0 AS cor0 WHERE col2 * col2 - + col1 IS NOT NULL
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-3310
SELECT DISTINCT ( + - col2 ) DIV + + 63 + + col2 AS col1 FROM tab0
----
10
47
98

skipif mysql # not compatible
query I rowsort label-3310
SELECT DISTINCT ( + - col2 ) / + + 63 + + col2 AS col1 FROM tab0
----
10
47
98

query I rowsort
SELECT 76 FROM tab1 WHERE col0 IS NOT NULL
----
76
76
76

query I rowsort
SELECT DISTINCT - col0 - - + ( - 77 ) AS col2 FROM tab1
----
-128
-162
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-3313
SELECT ALL col0 - + col0 * 27 DIV 59 col1 FROM tab0
----
48
53
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3313
SELECT ALL col0 - + col0 * 27 / 59 col1 FROM tab0
----
48
53
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT DISTINCT + MAX( + + col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT + MAX ( + + col2 ) AS col1 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT MAX( ALL + col0 ) FROM tab1 cor0 WHERE ( - col1 ) <> - 57 + - ( + ( - 40 ) )
----
91

skipif mysql # not compatible
query I rowsort label-3315
SELECT MAX ( ALL + col0 ) FROM tab1 cor0 WHERE ( - col1 ) <> - 57 + - ( + ( - 40 ) )
----
91

query I rowsort
SELECT ALL - col0 * + col2 * col2 FROM tab0 AS cor0
----
-33135
-8700
-950697

query I rowsort
SELECT - + col1 - - col2 + col2 * 42 AS col2 FROM tab2 cor0
----
1643
2427
938

query I rowsort
SELECT 1 AS col1 FROM tab1 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT DISTINCT MIN( DISTINCT - 73 ) FROM tab2
----
-73

skipif mysql # not compatible
query I rowsort label-3319
SELECT DISTINCT MIN ( DISTINCT - 73 ) FROM tab2
----
-73

query I rowsort
SELECT 23 * + + 32 AS col2 FROM tab0
----
736
736
736

query I rowsort
SELECT DISTINCT - col1 * + col2 FROM tab1 AS cor0 WHERE + 30 BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT + col2 * - 62 AS col2 FROM tab0 AS cor0
----
-2914
-6138
-620

query I rowsort
SELECT 47 * + col1 AS col1 FROM tab1 AS cor0
----
2209
235
658

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * - col0 = NULL
----

query I rowsort
SELECT DISTINCT col0 * - + col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query II rowsort label-3326
SELECT DISTINCT + col2, col0 DIV + col0 + - col1 FROM tab0 cor0
----
10
-20
47
-80
99
0

skipif mysql # not compatible
query II rowsort label-3326
SELECT DISTINCT + col2, col0 / + col0 + - col1 FROM tab0 cor0
----
10
-20
47
-80
99
0

query I rowsort
SELECT + ( - col2 ) - - 86 + 87 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 BETWEEN - + col1 AND NULL
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT - SUM( col0 ) col2 FROM tab2 cor0
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3329
SELECT - SUM ( col0 ) col2 FROM tab2 cor0
----
-185

onlyif mysql # DIV for integer division: 
query II rowsort label-3330
SELECT ALL - col1 DIV + col0, - col2 AS col1 FROM tab0
----
-5
-47
0
-10
0
-99

skipif mysql # not compatible
query II rowsort label-3330
SELECT ALL - col1 / + col0, - col2 AS col1 FROM tab0
----
-5
-47
0
-10
0
-99

query I rowsort
SELECT DISTINCT - col2 * - 11 AS col0 FROM tab1
----
1056
649
748

onlyif mysql # aggregate syntax: 
query I rowsort label-3332
SELECT ALL + COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3332
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT ALL - MIN( DISTINCT col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL - MIN ( DISTINCT col2 ) FROM tab1
----
-59

query I rowsort
SELECT ALL col2 * - + col0 * - 57 AS col1 FROM tab2
----
145920
247950
60306

query I rowsort
SELECT ALL col1 * col0 * 16 AS col0 FROM tab1
----
11424
6800
68432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3336
SELECT ALL + 18 + col1 + 15 AS col1 FROM tab1 cor0 WHERE NOT + 84 / - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3336
SELECT ALL + 18 + col1 + 15 AS col1 FROM tab1 cor0 WHERE NOT + 84 / - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT + - COUNT( * ) + - - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3337
SELECT + - COUNT ( * ) + - - COUNT ( * ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3338
SELECT col0 + - + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-3338
SELECT col0 + - + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-13
-5
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) + col1 col0 FROM tab0
----
162
2
42

query I rowsort
SELECT ALL 80 + - 9 * + col0 AS col0 FROM tab0
----
-55
-703
-793

query I rowsort
SELECT ALL 46 + + 71 AS col2 FROM tab2
----
117
117
117

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3342
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2, tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3343
SELECT ALL col1 + + 89 DIV - col2 + 49 FROM tab1
----
53
63
95

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL col1 + + 89 / - col2 + 49 FROM tab1
----
53
63
95

onlyif mysql # DIV for integer division: 
query I rowsort label-3344
SELECT + 99 DIV + col2 col0 FROM tab2 AS cor0
----
1
2
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3344
SELECT + 99 / + col2 col0 FROM tab2 AS cor0
----
1
2
4

query I rowsort
SELECT - - 30 * - 29 * + 7 FROM tab0 AS cor0
----
-6090
-6090
-6090

onlyif mysql # DIV for integer division: 
query I rowsort label-3346
SELECT 62 DIV col1 * + + col1 + - - col2 FROM tab1 cor0
----
115
119
152

skipif mysql # not compatible
query I rowsort label-3346
SELECT 62 / col1 * + + col1 + - - col2 FROM tab1 cor0
----
115
119
152

query I rowsort
SELECT DISTINCT + col2 + + + ( - col2 ) FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE - col1 - - 93 <> 13
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3349
SELECT ALL ( 25 ) DIV - col1 - - col1 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL ( 25 ) / - col1 - - col1 AS col2 FROM tab2
----
51
67
77

query I rowsort
SELECT DISTINCT + 83 + col1 AS col1 FROM tab2
----
134
150
160

query I rowsort
SELECT ALL - 50 - - col0 * - col1 FROM tab2
----
-2396
-4978
-5075

query II rowsort
SELECT DISTINCT col2 AS col2, + 52 - + col1 FROM tab1 AS cor0
----
59
47
68
5
96
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 WHERE NOT - col1 + - 24 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT COUNT( * ) FROM tab2 WHERE NOT + + col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-3354
SELECT COUNT ( * ) FROM tab2 WHERE NOT + + col0 > NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-3355
SELECT col2 DIV - ( col1 ) AS col1, ( + + col0 ) col0 FROM tab0
----
-99
97
0
15
0
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3355
SELECT col2 / - ( col1 ) AS col1, ( + + col0 ) col0 FROM tab0
----
-99
97
0
15
0
87

query I rowsort
SELECT 38 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # DIV for integer division: 
query I rowsort label-3357
SELECT DISTINCT + 71 DIV + col2 + + - col1 AS col1 FROM tab1 AS cor0
----
-14
-4
-46

skipif mysql # not compatible
query I rowsort label-3357
SELECT DISTINCT + 71 / + col2 + + - col1 AS col1 FROM tab1 AS cor0
----
-14
-4
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-3358
SELECT - SUM( col0 ), 6 AS col0 FROM tab2 AS cor0
----
-185
6

skipif mysql # not compatible
query II rowsort label-3358
SELECT - SUM ( col0 ), 6 AS col0 FROM tab2 AS cor0
----
-185
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3359
SELECT ALL - + COUNT( * ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3359
SELECT ALL - + COUNT ( * ) col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT ( + 40 ) * - col2 * col1 * - - col0 FROM tab2
----
-11658000
-2158320
-7884800

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + 53 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 5 * col2 + col1 * - 50 + 20 AS col0 FROM tab1
----
-1990
-200
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3363
SELECT 88 + MIN( - 10 ) DIV + COUNT( * ) FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-3363
SELECT 88 + MIN ( - 10 ) / + COUNT ( * ) FROM tab1
----
85

query I rowsort
SELECT DISTINCT 56 * - + ( - - ( + - 27 ) ) FROM tab0
----
1512

query III rowsort
SELECT * FROM tab0 WHERE NULL <= - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT DISTINCT - COUNT( * ) * - + SUM( col2 ) + - 66 FROM tab0 AS cor0
----
402

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT - COUNT ( * ) * - + SUM ( col2 ) + - 66 FROM tab0 AS cor0
----
402

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 92 ) col0 FROM tab1 cor0
----
92

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 93 + - col2 + col0 * col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT DISTINCT 11 + MIN( DISTINCT + 71 ) AS col2 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT 11 + MIN ( DISTINCT + 71 ) AS col2 FROM tab0 AS cor0
----
82

query I rowsort
SELECT - col2 * - col0 * - + 97 - - 53 + - - 39 FROM tab1 AS cor0
----
-474820
-486363
-600144

query I rowsort
SELECT 79 + col0 AS col2 FROM tab2
----
125
143
154

query I rowsort
SELECT DISTINCT - 52 * col0 AS col2 FROM tab1
----
-2652
-4420
-4732

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3373
SELECT + CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3373
SELECT + CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 70 * + col1 AS col1 FROM tab1
----
-3290
-350
-980

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3375
SELECT DISTINCT + 2 DIV 30 + COUNT( * ) AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT + 2 / 30 + COUNT ( * ) AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3376
SELECT DISTINCT * FROM tab2 WHERE col0 + col0 BETWEEN ( CAST( + 76 AS SIGNED ) ) AND ( + ( col0 ) )
----

skipif mysql # not compatible
query III rowsort label-3376
SELECT DISTINCT * FROM tab2 WHERE col0 + col0 BETWEEN ( CAST ( + 76 AS INTEGER ) ) AND ( + ( col0 ) )
----

query I rowsort
SELECT 84 * - 98 FROM tab0
----
-8232
-8232
-8232

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT ALL - COUNT( * ) + + 87 col2 FROM tab1
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3378
SELECT ALL - COUNT ( * ) + + 87 col2 FROM tab1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-3379
SELECT DISTINCT col0 DIV 2 FROM tab1
----
25
42
45

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT col0 / 2 FROM tab1
----
25
42
45

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 77 ) NOT BETWEEN col2 * - 90 AND NULL
----

query I rowsort
SELECT + 39 * 10 FROM tab1
----
390
390
390

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3383
SELECT DISTINCT 40 DIV - 98 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT 40 / - 98 FROM tab0
----
0

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT NULL <> 78
----

query I rowsort
SELECT + 29 * 68 FROM tab1
----
1972
1972
1972

query I rowsort
SELECT - 46 * + col0 AS col2 FROM tab2
----
-2116
-2944
-3450

query I rowsort
SELECT ALL col0 * - 50 AS col2 FROM tab2 WHERE NOT - 53 * - col0 IS NULL
----
-2300
-3200
-3750

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT ALL - COUNT( DISTINCT col0 ) FROM tab0 WHERE NOT + ( col1 ) * col0 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3388
SELECT ALL - COUNT ( DISTINCT col0 ) FROM tab0 WHERE NOT + ( col1 ) * col0 IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 col1 FROM tab1 WHERE NOT NULL = col2 + - 97
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + col1 ) - ( col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3391
SELECT CAST( col1 AS SIGNED ) + col2 FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-3391
SELECT CAST ( col1 AS INTEGER ) + col2 FROM tab2
----
117
125
74

query I rowsort
SELECT DISTINCT 8 * col1 FROM tab2
----
408
536
616

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 ) NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3394
SELECT + COUNT( DISTINCT col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3394
SELECT + COUNT ( DISTINCT col0 ) FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 / col1 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 - col0 * + ( col2 ) AS col2 FROM tab0 WHERE - col0 / + col2 < + col0 + col2
----
-624
-849
-9602

query I rowsort
SELECT DISTINCT + col0 + col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT ALL ( COUNT( 65 ) ) FROM tab0 WHERE ( col2 ) = ( col0 - - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3398
SELECT ALL ( COUNT ( 65 ) ) FROM tab0 WHERE ( col2 ) = ( col0 - - col2 )
----
0

query I rowsort
SELECT col1 + 80 FROM tab1
----
127
85
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT COUNT( * ) + - 35 col1 FROM tab0
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3400
SELECT COUNT ( * ) + - 35 col1 FROM tab0
----
-32

query I rowsort
SELECT DISTINCT ( + ( - 34 ) ) AS col1 FROM tab1 AS cor0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT COUNT( DISTINCT - 9 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-3402
SELECT COUNT ( DISTINCT - 9 ) FROM tab2
----
1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 > ( NULL )
----

query I rowsort
SELECT ALL - col2 * + 23 FROM tab1
----
-1357
-1564
-2208

query I rowsort
SELECT 18 FROM tab2 AS cor0 WHERE NOT ( 79 ) NOT IN ( - col0 * + 21 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 23 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 49 * + col1 AS col1 FROM tab2 AS cor0
----
2499
3283
3773

query I rowsort
SELECT ALL + + col2 + 96 AS col1 FROM tab0 AS cor0
----
106
143
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT ALL COUNT( DISTINCT - 26 ) + - SUM( 69 ) FROM tab0 AS cor0
----
-206

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL COUNT ( DISTINCT - 26 ) + - SUM ( 69 ) FROM tab0 AS cor0
----
-206

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT - - MAX( ALL col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3411
SELECT - - MAX ( ALL col2 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT + col0 + - 91 FROM tab2 AS cor0
----
-16
-27
-45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 + col2 > + col1 * + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + col2 < col2
----

query I rowsort
SELECT col1 * 25 + ( col1 ) AS col1 FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND col2 + col2 / - 52
----

query III rowsort
SELECT * FROM tab2 WHERE - 81 BETWEEN ( 81 ) AND ( + 70 + + col0 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col1 col0 FROM tab2 WHERE NOT NULL = ( + 57 ) * - 46
----

query I rowsort
SELECT DISTINCT - 51 * - - 69 AS col0 FROM tab2
----
-3519

query III rowsort
SELECT * FROM tab2 WHERE 80 * 99 IS NULL
----

query I rowsort
SELECT + col1 * 83 + + 88 AS col0 FROM tab2 WHERE ( col2 ) IS NOT NULL
----
4321
5649
6479

query I rowsort
SELECT ALL ( - 14 ) FROM tab1
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3422
SELECT + 3 * + col2 * + col0 + 0 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3422
SELECT + 3 * + col2 * + col0 + 0 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3423
SELECT ALL - col1 DIV + - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL - col1 / + - col2 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 col2 FROM tab0 AS cor0
----
71

query I rowsort
SELECT + + ( 49 ) + + col1 AS col1 FROM tab2 AS cor0
----
100
116
126

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + 73 <= - col1 / - col2
----
85
5
59
91
47
68

query I rowsort
SELECT ( - col2 ) * col2 FROM tab2 cor0 WHERE ( + col2 * col2 ) >= NULL
----

query I rowsort
SELECT ALL 40 * col0 - 4 FROM tab2 AS cor0
----
1836
2556
2996

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT - 41 * COUNT( * ) - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-3429
SELECT - 41 * COUNT ( * ) - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-126

query I rowsort
SELECT + col1 - + col2 AS col1 FROM tab2 cor0
----
28
37
9

query I rowsort
SELECT - + 36 - + 22 FROM tab2 AS cor0
----
-58
-58
-58

query I rowsort
SELECT + - 67 - + ( - 80 ) AS col1 FROM tab2 AS cor0
----
13
13
13

query I rowsort
SELECT DISTINCT + ( + ( - 5 ) ) FROM tab0 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3434
SELECT - 37 + col0 AS col0 FROM tab0 AS cor0 WHERE + CAST( - - 7 AS SIGNED ) * col1 > - ( 62 )
----
-22
50
60

skipif mysql # not compatible
query I rowsort label-3434
SELECT - 37 + col0 AS col0 FROM tab0 AS cor0 WHERE + CAST ( - - 7 AS INTEGER ) * col1 > - ( 62 )
----
-22
50
60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3435
SELECT ALL + col0 * col0 * - CAST( NULL AS DECIMAL ) + + 38 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL + col0 * col0 * - CAST ( NULL AS REAL ) + + 38 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3436
SELECT + ( SUM( ALL col1 ) ) - + CAST( 74 AS SIGNED ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3436
SELECT + ( SUM ( ALL col1 ) ) - + CAST ( 74 AS INTEGER ) FROM tab2 AS cor0
----
121

query I rowsort
SELECT ALL - - 59 AS col2 FROM tab2 AS cor0
----
59
59
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3438
SELECT + + ( - - col2 ) - 40 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3438
SELECT + + ( - - col2 ) - 40 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 1 * col0 * col0 ) BETWEEN ( NULL ) AND 97
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3440
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 + - col0 * - CAST( + 39 * + col1 AS SIGNED ) ) BETWEEN + col1 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3440
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 + - col0 * - CAST ( + 39 * + col1 AS INTEGER ) ) BETWEEN + col1 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * - col2 - - col2 AS col1 FROM tab0 WHERE NOT NULL BETWEEN ( col2 ) AND 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT DISTINCT + COUNT( ALL - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT + COUNT ( ALL - col1 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + 64 / - col2 / + 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT MAX( - col1 ) * COUNT( * ) * - + COUNT( * ) col0 FROM tab1
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3444
SELECT MAX ( - col1 ) * COUNT ( * ) * - + COUNT ( * ) col0 FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT ALL - 80 + COUNT( * ) AS col0 FROM tab2 WHERE NULL > - - ( - 44 )
----
-80

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL - 80 + COUNT ( * ) AS col0 FROM tab2 WHERE NULL > - - ( - 44 )
----
-80

query I rowsort
SELECT - col1 * + 70 * + - col1 * + - col0 AS col1 FROM tab0
----
-2685690
-6790
-6889050

query I rowsort
SELECT ALL + 23 AS col0 FROM tab1
----
23
23
23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3448
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) > - CAST( - col2 AS SIGNED ) - 31 * - col2
----

skipif mysql # not compatible
query III rowsort label-3448
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) > - CAST ( - col2 AS INTEGER ) - 31 * - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( 14 ) FROM tab0 WHERE 57 = ( 91 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3451
SELECT + CAST( - + ( - COUNT( DISTINCT col0 ) ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3451
SELECT + CAST ( - + ( - COUNT ( DISTINCT col0 ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT ALL + - SUM( - + 66 ) FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL + - SUM ( - + 66 ) FROM tab2 AS cor0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT col1 >= ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3453
SELECT COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT col1 >= ( + col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT DISTINCT + + ( - + MAX( DISTINCT - 87 ) ) FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT + + ( - + MAX ( DISTINCT - 87 ) ) FROM tab1 AS cor0
----
87

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL NOT BETWEEN - col0 AND + - ( col2 ) + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT ALL MAX( 78 ) AS col0 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL MAX ( 78 ) AS col0 FROM tab1
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-3457
SELECT 71 DIV + + col0 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3457
SELECT 71 / + + col0 AS col2 FROM tab2
----
0
1
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 >= col0
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 >= - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 84 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3461
SELECT + CAST( + - ( + ( + + 91 ) ) AS SIGNED ) FROM tab2 AS cor0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-3461
SELECT + CAST ( + - ( + ( + + 91 ) ) AS INTEGER ) FROM tab2 AS cor0
----
-91
-91
-91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 45 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3463
SELECT col1 FROM tab0 AS cor0 WHERE + col1 BETWEEN NULL AND ( - ( + CAST( - + 86 AS DECIMAL ) ) )
----

skipif mysql # not compatible
query I rowsort label-3463
SELECT col1 FROM tab0 AS cor0 WHERE + col1 BETWEEN NULL AND ( - ( + CAST ( - + 86 AS REAL ) ) )
----

query I rowsort
SELECT DISTINCT + col0 * - col0 + - 96 AS col0 FROM tab1 AS cor0
----
-2697
-7321
-8377

onlyif mysql # DIV for integer division: 
query I rowsort label-3465
SELECT DISTINCT + 19 + - col1 + - + col0 + + col0 * + col1 DIV + col1 FROM tab1 cor0
----
-28
14
5

skipif mysql # not compatible
query I rowsort label-3465
SELECT DISTINCT + 19 + - col1 + - + col0 + + col0 * + col1 / + col1 FROM tab1 cor0
----
-28
14
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN - 89 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 + - 78 AS col2 FROM tab2 AS cor0
----
-20
-38
-55

query III rowsort
SELECT * FROM tab2 WHERE + - 59 + 70 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 col2 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3470
SELECT + COUNT( + - 35 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3470
SELECT + COUNT ( + - 35 ) FROM tab1
----
3

query I rowsort
SELECT ALL - 80 + - col1 AS col1 FROM tab0
----
-101
-161
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3472
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * - col0 <> + + ( - CAST( - col2 AS SIGNED ) ) + + col0
----

skipif mysql # not compatible
query III rowsort label-3472
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * - col0 <> + + ( - CAST ( - col2 AS INTEGER ) ) + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3473
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT COUNT( * ) - + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3474
SELECT COUNT ( * ) - + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT MAX( + 51 ) - - 93 + COUNT( * ) FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-3475
SELECT MAX ( + 51 ) - - 93 + COUNT ( * ) FROM tab2
----
147

query I rowsort
SELECT ALL + col2 * - col2 * 86 + - col2 * 54 AS col0 FROM tab1
----
-302552
-401336
-797760

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-3477
SELECT DISTINCT - 68 - + CAST( NULL AS DECIMAL ) AS col2, - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3477
SELECT DISTINCT - 68 - + CAST ( NULL AS REAL ) AS col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3478
SELECT DISTINCT + - AVG ( + 91 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3478
SELECT DISTINCT + - AVG ( + 91 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * + - col1 - - + col0 + - col2 * - col1 FROM tab2 cor0
----
-1382
-2785
-528

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 87 / - - ( + col2 ) + - 93 + - col2 + 59 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + ( - col0 ) * - 6 FROM tab0 AS cor0
----
522
582
90

query I rowsort
SELECT ALL 27 * + ( 32 ) FROM tab0 AS cor0
----
864
864
864

query I rowsort
SELECT ALL col2 * - + col0 + + 51 + + 67 FROM tab2 AS cor0
----
-2442
-4232
-940

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 - + col0 NOT BETWEEN col2 * + 51 / - col0 + - col2 AND ( - col0 )
----
15
81
47
97
1
99

query II rowsort
SELECT + ( col0 ) * + col1, col0 AS col2 FROM tab2 AS cor0
----
2346
46
4928
64
5025
75

onlyif mysql # DIV for integer division: 
query II rowsort label-3486
SELECT DISTINCT - 6 * - col2 AS col2, + 84 * col2 DIV - ( - col1 ) FROM tab0 AS cor0
----
282
48
594
8316
60
40

skipif mysql # not compatible
query II rowsort label-3486
SELECT DISTINCT - 6 * - col2 AS col2, + 84 * col2 / - ( - col1 ) FROM tab0 AS cor0
----
282
48
594
8316
60
40

query I rowsort
SELECT col0 * + - col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT ALL + ( - + ( + COUNT( * ) ) ) * + 38 FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL + ( - + ( + COUNT ( * ) ) ) * + 38 FROM tab2
----
-114

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT NULL BETWEEN + col1 * - + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT COUNT( * ) * - 49 FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-3490
SELECT COUNT ( * ) * - 49 FROM tab2
----
-147

query II rowsort
SELECT col0, + col0 AS col0 FROM tab0
----
15
15
87
87
97
97

query I rowsort
SELECT col0 * + - 13 AS col1 FROM tab1
----
-1105
-1183
-663

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3493
SELECT + 2 DIV + COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3493
SELECT + 2 / + COUNT ( * ) AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3494
SELECT CAST( NULL AS SIGNED ) * + - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3494
SELECT CAST ( NULL AS INTEGER ) * + - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * - - 7 AS col2 FROM tab0
----
329
693
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT DISTINCT SUM( ALL - 7 ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-3496
SELECT DISTINCT SUM ( ALL - 7 ) FROM tab2
----
-21

query I rowsort
SELECT col0 * + 86 FROM tab0 AS cor0
----
1290
7482
8342

onlyif mysql # aggregate syntax: 
query I rowsort label-3498
SELECT - MIN( + 87 ) AS col1 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-3498
SELECT - MIN ( + 87 ) AS col1 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT ALL 88 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT DISTINCT - 11 * + - 52 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
572

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT - COUNT( * ) * + + MIN( - 6 ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-3501
SELECT - COUNT ( * ) * + + MIN ( - 6 ) FROM tab1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3502
SELECT + COUNT( * ) DIV - COUNT( DISTINCT - 19 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3502
SELECT + COUNT ( * ) / - COUNT ( DISTINCT - 19 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT ALL - MIN( ALL col0 ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL - MIN ( ALL col0 ) FROM tab0 cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT - - COUNT( * ) FROM tab1 cor0 WHERE - col1 * + 94 < + col2
----
3

skipif mysql # not compatible
query I rowsort label-3504
SELECT - - COUNT ( * ) FROM tab1 cor0 WHERE - col1 * + 94 < + col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3505
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 - - col2 - - CAST( NULL AS SIGNED ) BETWEEN 66 AND 50
----

skipif mysql # not compatible
query III rowsort label-3505
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT col1 - - col2 - - CAST ( NULL AS INTEGER ) BETWEEN 66 AND 50
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3506
SELECT + CAST( - col2 AS SIGNED ), col1 + + - col2 AS col0 FROM tab1 AS cor0
----
-59
-54
-68
-21
-96
-82

skipif mysql # not compatible
query II rowsort label-3506
SELECT + CAST ( - col2 AS INTEGER ), col1 + + - col2 AS col0 FROM tab1 AS cor0
----
-59
-54
-68
-21
-96
-82

query I rowsort
SELECT ALL ( - col0 ) + col2 AS col2 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT + + COUNT( * ) * MIN( DISTINCT + - col1 ) AS col2 FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-3508
SELECT + + COUNT ( * ) * MIN ( DISTINCT + - col1 ) AS col2 FROM tab0 AS cor0
----
-243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3509
SELECT + - CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3509
SELECT + - CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3510
SELECT * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) * + col1 * + col1 BETWEEN ( - col1 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3510
SELECT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * + col1 * + col1 BETWEEN ( - col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 60 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 93 * - col0 col0 FROM tab1
----
-4692
-7820
-8372

query I rowsort
SELECT + col0 + + 94 FROM tab1
----
145
179
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3514
SELECT ALL - ( + ( CAST( col2 AS SIGNED ) ) ) - + 8 AS col2 FROM tab1
----
-104
-67
-76

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL - ( + ( CAST ( col2 AS INTEGER ) ) ) - + 8 AS col2 FROM tab1
----
-104
-67
-76

query I rowsort
SELECT ALL col2 - + 86 * col1 AS col1 FROM tab1
----
-1108
-371
-3974

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT DISTINCT + MIN( DISTINCT - + col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3516
SELECT DISTINCT + MIN ( DISTINCT - + col1 ) AS col0 FROM tab0
----
-81

query I rowsort
SELECT col2 + - 40 FROM tab0
----
-30
59
7

query I rowsort
SELECT col1 + + 11 FROM tab0 AS cor0
----
12
32
92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 2 / - col0 > - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 14 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 33 + + col1 FROM tab0 AS cor0
----
-12
-32
48

query I rowsort
SELECT ALL + col1 * + col1 * - - 33 + 65 FROM tab2 AS cor0
----
148202
195722
85898

query I rowsort
SELECT ALL + col1 + 2 FROM tab1 WHERE NULL IS NULL
----
16
49
7

query I rowsort
SELECT + + 61 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query II rowsort
SELECT - - col0 AS col1, col2 AS col1 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT ALL - ( - + col0 ) * - 94 AS col1 FROM tab0 AS cor0
----
-1410
-8178
-9118

query II rowsort
SELECT ALL - 48, - col1 AS col1 FROM tab1 AS cor0
----
-48
-14
-48
-47
-48
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 / + + col2 = - - col0
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT 11 <> col0
----

query II rowsort
SELECT 44, col0 * - - ( col0 ) * + col2 AS col1 FROM tab1 AS cor0
----
44
249696
44
426275
44
563108

query I rowsort
SELECT DISTINCT + - ( - - 87 ) FROM tab0 AS cor0
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-3532
SELECT COUNT( * ) AS col2, - 18 AS col1 FROM tab2 AS cor0
----
3
-18

skipif mysql # not compatible
query II rowsort label-3532
SELECT COUNT ( * ) AS col2, - 18 AS col1 FROM tab2 AS cor0
----
3
-18

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col0 * - 67 AS col0 FROM tab1 AS cor0
----
3417
5695
6097

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 29 NOT BETWEEN + - col0 + + + col2 AND + col2 - col1 + 26
----
87
21
10

onlyif mysql # DIV for integer division: 
query II rowsort label-3537
SELECT ALL col1 DIV + + col2 + - col2 AS col1, + col0 + + 21 FROM tab2 AS cor0
----
-21
67
-39
85
-57
96

skipif mysql # not compatible
query II rowsort label-3537
SELECT ALL col1 / + + col2 + - col2 AS col1, + col0 + + 21 FROM tab2 AS cor0
----
-21
67
-39
85
-57
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3538
SELECT col1 * - CAST( col2 AS SIGNED ) AS col1 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-3538
SELECT col1 * - CAST ( col2 AS INTEGER ) AS col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query II rowsort label-3539
SELECT ALL + 23 AS col1, COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
23
9

skipif mysql # not compatible
query II rowsort label-3539
SELECT ALL + 23 AS col1, COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
23
9

query I rowsort
SELECT 43 * + + 40 FROM tab1
----
1720
1720
1720

query I rowsort
SELECT 38 + + col2 FROM tab1 AS cor0
----
106
134
97

query I rowsort
SELECT + col2 + + - col1 FROM tab1 cor0
----
21
54
82

onlyif mysql # DIV for integer division: 
query I rowsort label-3543
SELECT ALL 9 DIV col2 * + + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3543
SELECT ALL 9 / col2 * + + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 68 AS col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT + + col0 + - + col1 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT ALL - - 7 + - 84 AS col0 FROM tab0 AS cor0 WHERE NOT col0 * 92 <= - col0
----
-77
-77
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3547
SELECT DISTINCT - + 92 * + 2 * + col0 + + 47 + - CAST( + - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-11689
-13695
-8394

skipif mysql # not compatible
query I rowsort label-3547
SELECT DISTINCT - + 92 * + 2 * + col0 + + 47 + - CAST ( + - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-11689
-13695
-8394

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT - - MIN( ALL + col0 ) AS col1 FROM tab1 WHERE 73 + - col1 IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-3548
SELECT - - MIN ( ALL + col0 ) AS col1 FROM tab1 WHERE 73 + - col1 IS NOT NULL
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT DISTINCT 84 + COUNT( * ) FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-3549
SELECT DISTINCT 84 + COUNT ( * ) FROM tab2
----
87

query I rowsort
SELECT DISTINCT 96 * - 16 * + 95 + + col0 FROM tab0
----
-145823
-145833
-145905

onlyif mysql # aggregate syntax: 
query II rowsort label-3551
SELECT + ( + + COUNT( * ) ), 63 AS col2 FROM tab2
----
3
63

skipif mysql # not compatible
query II rowsort label-3551
SELECT + ( + + COUNT ( * ) ), 63 AS col2 FROM tab2
----
3
63

query III rowsort
SELECT ALL * FROM tab0 WHERE + 31 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 - col1 * + 4 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT DISTINCT - COUNT( ALL + col2 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT - COUNT ( ALL + col2 ) AS col0 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3555
SELECT DISTINCT + col1 - + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3555
SELECT DISTINCT + col1 - + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 10 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col2 * col2 - 21 * col2, col1 AS col1 FROM tab0 AS cor0
----
-110
21
1222
81
7722
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3558
SELECT + + 22 * - col0 + - - col0 + col2 / - 13 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3558
SELECT + + 22 * - col0 + - - col0 + col2 / - 13 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3559
SELECT ALL CAST( 11 AS SIGNED ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL CAST ( 11 AS INTEGER ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3560
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3560
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < - CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT COUNT( ALL + col0 ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3561
SELECT COUNT ( ALL + col0 ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT - col0 * - + col2 AS col2 FROM tab1 cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3563
SELECT ALL + MAX( DISTINCT + CAST( col2 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3563
SELECT ALL + MAX ( DISTINCT + CAST ( col2 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
99

query II rowsort
SELECT col2, + col2 * - col0 * col2 + col0 FROM tab2 AS cor0
----
23
-24288
40
-102336
58
-252225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 52 col0, - 31 FROM tab1 AS cor0
----
-52
-31
-52
-31
-52
-31

query I rowsort
SELECT + col0 * + - 0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3567
SELECT - ( - CAST( + col1 AS SIGNED ) ) * + 50 - + col0 * - col1 col2 FROM tab2
----
4896
8375
8778

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3567
SELECT - ( - CAST ( + col1 AS INTEGER ) ) * + 50 - + col0 * - col1 col2 FROM tab2
----
4896
8375
8778

query I rowsort
SELECT - 90 * + col2 FROM tab2
----
-2070
-3600
-5220

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT ALL SUM( + - col0 ) * - + 96 AS col1 FROM tab1
----
21792

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL SUM ( + - col0 ) * - + 96 AS col1 FROM tab1
----
21792

onlyif mysql # aggregate syntax: 
query II rowsort label-3571
SELECT DISTINCT - 69, + 96 * - - MIN( DISTINCT - col2 ) AS col0 FROM tab2
----
-69
-5568

skipif mysql # not compatible
query II rowsort label-3571
SELECT DISTINCT - 69, + 96 * - - MIN ( DISTINCT - col2 ) AS col0 FROM tab2
----
-69
-5568

query I rowsort
SELECT ALL + col0 * - 51 AS col1 FROM tab1
----
-2601
-4335
-4641

query I rowsort
SELECT + - ( + col0 ) AS col0 FROM tab1 WHERE NOT + col0 - + + col1 + 84 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT + 58 * - col1 * 28 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3575
SELECT ALL col2 DIV 59 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3575
SELECT ALL col2 / 59 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 28 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3577
SELECT - 57 / 26 * CAST( NULL AS SIGNED ) + - + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3577
SELECT - 57 / 26 * CAST ( NULL AS INTEGER ) + - + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 FROM tab1 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3579
SELECT col2 + col1 DIV - col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3579
SELECT col2 + col1 / - col0 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3580
SELECT DISTINCT * FROM tab1 WHERE NULL <= - ( + CAST( 74 AS DECIMAL ) ) + - col0
----

skipif mysql # not compatible
query III rowsort label-3580
SELECT DISTINCT * FROM tab1 WHERE NULL <= - ( + CAST ( 74 AS REAL ) ) + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3581
SELECT + - COUNT( * ) AS col1 FROM tab2 WHERE + 33 NOT BETWEEN - 35 AND + - ( - - 85 )
----
-3

skipif mysql # not compatible
query I rowsort label-3581
SELECT + - COUNT ( * ) AS col1 FROM tab2 WHERE + 33 NOT BETWEEN - 35 AND + - ( - - 85 )
----
-3

query I rowsort
SELECT ALL + ( + col1 ) + + col1 + col0 + - 26 FROM tab1 AS cor0 WHERE NOT 68 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3583
SELECT - CAST( NULL AS SIGNED ) * - 67, col0 AS col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-3583
SELECT - CAST ( NULL AS INTEGER ) * - 67, col0 AS col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3584
SELECT ALL + - ( + col1 ) DIV - 91 * + col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3584
SELECT ALL + - ( + col1 ) / - 91 * + col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 62 * col2 * + ( col0 ) + + 53 FROM tab2 AS cor0
----
158773
269753
65649

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3586
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - col0 + - col1 * col0 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3586
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - col0 + - col1 * col0 AS col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3587
SELECT DISTINCT 62 DIV + col1 - + + col1 AS col1 FROM tab1
----
-10
-46
7

skipif mysql # not compatible
query I rowsort label-3587
SELECT DISTINCT 62 / + col1 - + + col1 AS col1 FROM tab1
----
-10
-46
7

query I rowsort
SELECT + 61 * + + 74 FROM tab0 WHERE NULL >= + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 48 + - + col0 * col2 ) >= NULL
----

query II rowsort
SELECT DISTINCT 67 + - 75 * + col2 * - 64, + 33 AS col2 FROM tab0
----
225667
33
475267
33
48067
33

query I rowsort
SELECT - 19 + + ( + + col1 ) FROM tab2 AS cor0
----
32
48
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT + - COUNT( * ) col1 FROM tab1 cor0 WHERE - ( + col1 ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3592
SELECT + - COUNT ( * ) col1 FROM tab1 cor0 WHERE - ( + col1 ) IS NULL
----
0

query I rowsort
SELECT + ( + - col0 ) * - col2 AS col1 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3594
SELECT ALL - CAST( + + col2 AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL - CAST ( + + col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT 95 * - 8 FROM tab0
----
-760
-760
-760

query I rowsort
SELECT ALL 28 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL NOT BETWEEN NULL AND + 16 + - + 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT DISTINCT MAX( 97 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3597
SELECT DISTINCT MAX ( 97 ) FROM tab0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3598
SELECT - - MIN( ALL + ( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3598
SELECT - - MIN ( ALL + ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - - 79 AS col0 FROM tab2 AS cor0
----
79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ( - ( + - col0 ) ) FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT + col0 + - - col1 * col1 * - - col2 * + 35 * - + CAST( NULL AS SIGNED ) / col0 + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT + col0 + - - col1 * col1 * - - col2 * + 35 * - + CAST ( NULL AS INTEGER ) / col0 + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3603
SELECT + col0 + - col2 + - + col2 DIV col1 AS col2 FROM tab0
----
-101
-32
77

skipif mysql # not compatible
query I rowsort label-3603
SELECT + col0 + - col2 + - + col2 / col1 AS col2 FROM tab0
----
-101
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3604
SELECT DISTINCT col1 * - - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3604
SELECT DISTINCT col1 * - - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL 58 * + col2 AS col1 FROM tab0
----
2726
5742
580

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3606
SELECT - col1 * - + CAST( - + 16 AS SIGNED ) * - 25 + - 24 AS col1, + 17 DIV - + 68 * + ( col1 ) AS col1 FROM tab1
----
18776
0
1976
0
5576
0

skipif mysql # not compatible
query II rowsort label-3606
SELECT - col1 * - + CAST ( - + 16 AS INTEGER ) * - 25 + - 24 AS col1, + 17 / - + 68 * + ( col1 ) AS col1 FROM tab1
----
18776
0
1976
0
5576
0

query II rowsort
SELECT ALL - col2 AS col2, col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
42

query I rowsort
SELECT ALL col0 + + 3 + - col1 FROM tab1 cor0
----
40
47
83

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL IS NOT NULL )
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT - - ( - col2 ) AS col2 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT - + 19 + + 53 * + MAX( + col2 ) + - 7 AS col0 FROM tab1 AS cor0
----
5062

skipif mysql # not compatible
query I rowsort label-3612
SELECT - + 19 + + 53 * + MAX ( + col2 ) + - 7 AS col0 FROM tab1 AS cor0
----
5062

query II rowsort
SELECT ALL + + col1, col2 FROM tab1 cor0
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT - + COUNT( * ) + - + COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3614
SELECT - + COUNT ( * ) + - + COUNT ( * ) FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL 56 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE 70 > NULL
----

query I rowsort
SELECT ALL - 40 * - col2 + + - col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3618
SELECT DISTINCT - col2 AS col2, + 15 DIV - col2 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

skipif mysql # not compatible
query II rowsort label-3618
SELECT DISTINCT - col2 AS col2, + 15 / - col2 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

query I rowsort
SELECT ALL - - col0 + 49 FROM tab2 AS cor0
----
113
124
95

query III rowsort
SELECT * FROM tab2 WHERE - 68 * - - col0 + + 28 < + - 79
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3621
SELECT CAST( - 35 AS SIGNED ) AS col0 FROM tab0
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-3621
SELECT CAST ( - 35 AS INTEGER ) AS col0 FROM tab0
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT DISTINCT 65 - - + SUM( DISTINCT - + 30 ) FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT 65 - - + SUM ( DISTINCT - + 30 ) FROM tab0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3623
SELECT * FROM tab2 WHERE CAST( + + 9 AS SIGNED ) BETWEEN - col1 AND - 51
----

skipif mysql # not compatible
query III rowsort label-3623
SELECT * FROM tab2 WHERE CAST ( + + 9 AS INTEGER ) BETWEEN - col1 AND - 51
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3624
SELECT COUNT( - - col1 ), + COUNT( * ) AS col2 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-3624
SELECT COUNT ( - - col1 ), + COUNT ( * ) AS col2 FROM tab0
----
3
3

query I rowsort
SELECT DISTINCT 92 - + col1 AS col0 FROM tab2
----
15
25
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT DISTINCT 31 + MAX( col1 ) AS col0 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-3626
SELECT DISTINCT 31 + MAX ( col1 ) AS col0 FROM tab2
----
108

query I rowsort
SELECT ALL - - col0 * + 51 AS col2 FROM tab1 AS cor0
----
2601
4335
4641

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 26 AND + 90
----

query I rowsort
SELECT - col0 * - - 26 AS col0 FROM tab0 cor0
----
-2262
-2522
-390

query I rowsort
SELECT - + 92 * + 44 + - 22 AS col2 FROM tab2 AS cor0
----
-4070
-4070
-4070

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 23 col2 FROM tab2 WHERE NOT col0 * + col0 + 19 * - 30 NOT BETWEEN NULL AND + + col2 * - col0 + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3632
SELECT DISTINCT + col2 DIV + ( - + 82 ) FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3632
SELECT DISTINCT + col2 / + ( - + 82 ) FROM tab0
----
-1
0

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 10 AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT + + COUNT( DISTINCT - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3635
SELECT + + COUNT ( DISTINCT - col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3636
SELECT DISTINCT - 12 DIV + + 24 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT - 12 / + + 24 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - 84 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3638
SELECT 2 * - - col1 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3638
SELECT 2 * - - col1 * CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 41 * col2 col0, col2 AS col2 FROM tab2
----
1640
40
2378
58
943
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3640
SELECT + + ( + - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3640
SELECT + + ( + - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 52 + + 35 col1 FROM tab2 AS cor0
----
-17
-17
-17

query I rowsort
SELECT - 69 + - + col0 + + 63 FROM tab1 AS cor0
----
-57
-91
-97

query I rowsort
SELECT col0 + + col2 + + + col0 FROM tab2 AS cor0
----
115
168
208

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3644
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

query II rowsort
SELECT - + col1 + + + col2 + 47 + - - col2 AS col1, col2 FROM tab0 AS cor0
----
244
99
46
10
60
47

query I rowsort
SELECT - col0 * - 71 + + ( + - 61 ) FROM tab2
----
3205
4483
5264

query I rowsort
SELECT DISTINCT 94 AS col2 FROM tab0 WHERE + + 15 IS NOT NULL
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT ALL 23 - COUNT( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
14

skipif mysql # not compatible
query I rowsort label-3648
SELECT ALL 23 - COUNT ( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
14

query I rowsort
SELECT DISTINCT - ( - 22 ) AS col1 FROM tab0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3650
SELECT - + COUNT( * ) * + + ( COUNT( * ) ) AS col2 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3650
SELECT - + COUNT ( * ) * + + ( COUNT ( * ) ) AS col2 FROM tab2 cor0
----
-9

query I rowsort
SELECT DISTINCT col2 * + 6 * col0 - - col0 + ( ( - col1 ) ) + + 90 - + 9 * + col0 * 86 AS col2 FROM tab0 AS cor0
----
-17274
-61962
-7356

query II rowsort
SELECT + col1 - + + ( + col0 ), - col2 AS col2 FROM tab1 AS cor0
----
-37
-96
-44
-68
-80
-59

query I rowsort
SELECT - col1 - 33 AS col0 FROM tab0 AS cor0
----
-114
-34
-54

query I rowsort
SELECT ALL + - col1 * + + col1 FROM tab1 AS cor0
----
-196
-2209
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 95 - 71 col2 FROM tab0 AS cor0
----
-166
-166
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT DISTINCT - 99 + MAX( DISTINCT ( + 68 ) ) AS col2 FROM tab0 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT - 99 + MAX ( DISTINCT ( + 68 ) ) AS col2 FROM tab0 AS cor0
----
-31

query I rowsort
SELECT col0 FROM tab2 WHERE NULL IN ( + col2, - col0 )
----

query I rowsort
SELECT DISTINCT + ( 4 ) AS col2 FROM tab0
----
4

query I rowsort
SELECT - ( - + ( + col2 ) ) FROM tab1
----
59
68
96

query II rowsort
SELECT ALL + col2 AS col1, - col0 FROM tab2
----
23
-46
40
-64
58
-75

query II rowsort
SELECT col1, - 98 AS col0 FROM tab1
----
14
-98
47
-98
5
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 98 * + ( - 85 ) col0 FROM tab0 AS cor0
----
-8330

query I rowsort
SELECT - AVG ( DISTINCT - ( col2 ) ) + 96 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 * - + col0 AND NULL
----
NULL

query I rowsort
SELECT ALL + 17 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3665
SELECT DISTINCT + + 50, - MAX( DISTINCT - col1 ) AS col1 FROM tab1 cor0
----
50
5

skipif mysql # not compatible
query II rowsort label-3665
SELECT DISTINCT + + 50, - MAX ( DISTINCT - col1 ) AS col1 FROM tab1 cor0
----
50
5

query I rowsort
SELECT + - col0 - + ( + - col1 ) * - + 58 * - col0 FROM tab1 WHERE NOT NULL IN ( col2, + 93 )
----

query I rowsort
SELECT ALL - 25 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT ALL + COUNT( * ) * - 21 * 14 * - 17 AS col2 FROM tab1 AS cor0
----
14994

skipif mysql # not compatible
query I rowsort label-3668
SELECT ALL + COUNT ( * ) * - 21 * 14 * - 17 AS col2 FROM tab1 AS cor0
----
14994

onlyif mysql # DIV for integer division: 
query II rowsort label-3669
SELECT DISTINCT - + col0 DIV col1 AS col2, - col1 FROM tab0 AS cor0
----
-4
-21
-97
-1
0
-81

skipif mysql # not compatible
query II rowsort label-3669
SELECT DISTINCT - + col0 / col1 AS col2, - col1 FROM tab0 AS cor0
----
-4
-21
-97
-1
0
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3670
SELECT 65 + + CAST( NULL AS SIGNED ) * + col2 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3670
SELECT 65 + + CAST ( NULL AS INTEGER ) * + col2 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * 61 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, + 98 FROM tab1
----
14
98
47
98
5
98

query I rowsort
SELECT ALL - 48 + - col0 FROM tab1
----
-133
-139
-99

query I rowsort
SELECT - 65 + + 87 FROM tab1
----
22
22
22

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col0 <> + - col1 * + - col0 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 + 4 + col1 AS col2 FROM tab0
----
166
46
6

query I rowsort
SELECT DISTINCT 93 * + - col0 FROM tab2
----
-4278
-5952
-6975

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3678
SELECT + 20, 15 - - CAST( col0 AS SIGNED ) AS col2 FROM tab1
----
20
100
20
106
20
66

skipif mysql # not compatible
query II rowsort label-3678
SELECT + 20, 15 - - CAST ( col0 AS INTEGER ) AS col2 FROM tab1
----
20
100
20
106
20
66

query I rowsort
SELECT 61 * col0 * 78 AS col1 FROM tab0
----
413946
461526
71370

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NOT - + col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT DISTINCT - MIN( + + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3681
SELECT DISTINCT - MIN ( + + col1 ) FROM tab0 AS cor0
----
-1

query II rowsort
SELECT + - col2, col0 + + ( - col0 ) AS col0 FROM tab2 cor0
----
-23
0
-40
0
-58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT - COUNT( * ) * + + 76 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3683
SELECT - COUNT ( * ) * + + 76 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT 35 - - ( col2 ) FROM tab2
----
58
75
93

query I rowsort
SELECT - 95 * - 32 + 42 AS col2 FROM tab0
----
3082
3082
3082

query I rowsort
SELECT DISTINCT + 70 * col2 + col1 - + col2 + + + col0 - - 75 * + + 74 FROM tab2 AS cor0
----
7234
8451
9694

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3687
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN col2 + - col0 AND - CAST( - 15 AS SIGNED ) * - 6
----

skipif mysql # not compatible
query III rowsort label-3687
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN col2 + - col0 AND - CAST ( - 15 AS INTEGER ) * - 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT DISTINCT + COUNT( - col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT + COUNT ( - col2 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT col2 * + + 99 FROM tab1 AS cor0
----
5841
6732
9504

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3690
SELECT + + 62 * - - col1 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3690
SELECT + + 62 * - - col1 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3691
SELECT + ( - col2 ) * - CAST( NULL AS SIGNED ) * - col0 + - + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3691
SELECT + ( - col2 ) * - CAST ( NULL AS INTEGER ) * - col0 + - + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3692
SELECT + 59, - 21 + + - COUNT( * ) AS col2 FROM tab1
----
59
-24

skipif mysql # not compatible
query II rowsort label-3692
SELECT + 59, - 21 + + - COUNT ( * ) AS col2 FROM tab1
----
59
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-3693
SELECT ALL - MAX( DISTINCT + col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL - MAX ( DISTINCT + col1 ) AS col0 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT DISTINCT - SUM( ALL + 33 ) AS col2 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-3694
SELECT DISTINCT - SUM ( ALL + 33 ) AS col2 FROM tab1
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-3695
SELECT DISTINCT 10 AS col0, + COUNT( + col2 ) + + - 32 FROM tab1
----
10
-29

skipif mysql # not compatible
query II rowsort label-3695
SELECT DISTINCT 10 AS col0, + COUNT ( + col2 ) + + - 32 FROM tab1
----
10
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT COUNT( * ) AS col0 FROM tab2, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3696
SELECT COUNT ( * ) AS col0 FROM tab2, tab2 cor0
----
9

query I rowsort
SELECT DISTINCT + 30 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3698
SELECT + - col1 * - CAST( NULL AS SIGNED ) * + col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3698
SELECT + - col1 * - CAST ( NULL AS INTEGER ) * + col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + ( + 21 ) AS col0 FROM tab1 AS cor0
----
-105
-294
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-3700
SELECT ALL - ( - - COUNT( 79 ) ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL - ( - - COUNT ( 79 ) ) AS col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3701
SELECT DISTINCT - 3 * + COUNT( ALL - + col2 ) * MAX( 35 ) DIV + 84 AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT - 3 * + COUNT ( ALL - + col2 ) * MAX ( 35 ) / + 84 AS col0 FROM tab0
----
-3

query I rowsort
SELECT ALL 17 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3704
SELECT ALL col0 + - 58 - + + col2 * 5 * + - col2 * col0 / col0 AS col0, CAST( + 19 AS SIGNED ) * 88 * + col0 AS col1 FROM tab0 AS cor0 WHERE + 35 IS NULL
----

skipif mysql # not compatible
query II rowsort label-3704
SELECT ALL col0 + - 58 - + + col2 * 5 * + - col2 * col0 / col0 AS col0, CAST ( + 19 AS INTEGER ) * 88 * + col0 AS col1 FROM tab0 AS cor0 WHERE + 35 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3705
SELECT ALL 87 AS col0, 12 DIV - col0 + 4 FROM tab1 AS cor0
----
87
4
87
4
87
4

skipif mysql # not compatible
query II rowsort label-3705
SELECT ALL 87 AS col0, 12 / - col0 + 4 FROM tab1 AS cor0
----
87
4
87
4
87
4

query I rowsort
SELECT ALL + col1 * - - 67 FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 44 col0, col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( ( + col0 * col2 IS NOT NULL ) )
----

query I rowsort
SELECT DISTINCT col1 * - + 29 * 88 FROM tab2 AS cor0
----
-130152
-170984
-196504

query I rowsort
SELECT - ( + - col2 ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3710
SELECT 34 DIV + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3710
SELECT 34 / + col0 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT + col2 AS col0, - col2 + - + ( col2 ) AS col0 FROM tab1 AS cor0
----
59
-118
68
-136
96
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3712
SELECT ALL + - CAST( NULL AS SIGNED ) / + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL + - CAST ( NULL AS INTEGER ) / + + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col1 + - 39, - col2 AS col1 FROM tab0 AS cor0
----
-18
-10
-38
-99
42
-47

query I rowsort
SELECT ALL 76 * col2 FROM tab0
----
3572
7524
760

onlyif mysql # aggregate syntax: 
query II rowsort label-3715
SELECT DISTINCT - 80 + + COUNT( * ), 0 AS col2 FROM tab0
----
-77
0

skipif mysql # not compatible
query II rowsort label-3715
SELECT DISTINCT - 80 + + COUNT ( * ), 0 AS col2 FROM tab0
----
-77
0

query II rowsort
SELECT ALL 42 * - 13, 77 * - 86 AS col1 FROM tab0
----
-546
-6622
-546
-6622
-546
-6622

onlyif mysql # DIV for integer division: 
query I rowsort label-3717
SELECT + col2 DIV 58 + - + 41 AS col2 FROM tab1
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-3717
SELECT + col2 / 58 + - + 41 AS col2 FROM tab1
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3718
SELECT COUNT( DISTINCT + col0 ) + 92 AS col0 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-3718
SELECT COUNT ( DISTINCT + col0 ) + 92 AS col0 FROM tab1
----
95

query II rowsort
SELECT ALL + col2 + - col2 AS col2, - 70 + - 82 FROM tab2
----
0
-152
0
-152
0
-152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3720
SELECT ALL - + 29 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) >= + + 39
----

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL - + 29 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) >= + + 39
----

query I rowsort
SELECT - 9 + - col2 FROM tab1 AS cor0
----
-105
-68
-77

query I rowsort
SELECT ALL - 86 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3723
SELECT ALL - - CAST( NULL AS SIGNED ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3724
SELECT DISTINCT + COUNT( * ) DIV + + 70 * - - 22 + - 69 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT + COUNT ( * ) / + + 70 * - - 22 + - 69 FROM tab1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT + + MAX( col1 ) col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3725
SELECT + + MAX ( col1 ) col2 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT + COUNT( * ) * - + COUNT( * ) + COUNT( DISTINCT - + col1 ) AS col2 FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3726
SELECT + COUNT ( * ) * - + COUNT ( * ) + COUNT ( DISTINCT - + col1 ) AS col2 FROM tab2 cor0
----
-6

query I rowsort
SELECT - col2 * col0 * + col2 FROM tab0 AS cor0
----
-33135
-8700
-950697

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - col0 + - - 83 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - - col1 AS col1, - col0 * + + col0 FROM tab1 AS cor0
----
14
-2601
47
-8281
5
-7225

onlyif mysql # aggregate syntax: 
query I rowsort label-3730
SELECT - - COUNT( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3730
SELECT - - COUNT ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-3731
SELECT DISTINCT + + col1 AS col2, + 83 DIV 65 FROM tab2 AS cor0
----
51
1
67
1
77
1

skipif mysql # not compatible
query II rowsort label-3731
SELECT DISTINCT + + col1 AS col2, + 83 / 65 FROM tab2 AS cor0
----
51
1
67
1
77
1

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 68 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col1 * - + col1, + col0 FROM tab1
----
-196
51
-2209
91
-25
85

query III rowsort
SELECT ALL * FROM tab1 WHERE - 8 < - - col1 + - 92
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE col2 * + 13 / col2 + - - col2 NOT BETWEEN col2 AND - col1
----
1
21
81

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
15
87
97

query I rowsort
SELECT - - col2 + + 32 + 59 FROM tab2 AS cor0 WHERE NOT col1 + col2 IS NOT NULL
----

query I rowsort
SELECT - + 56 FROM tab1 cor0
----
-56
-56
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-3741
SELECT - col2 * + col0 * - col1 AS col0, - col0 DIV 70 - - + col0 + + + col1 - - col1 + 0 AS col2 FROM tab2
----
197120
218
291450
208
53958
148

skipif mysql # not compatible
query II rowsort label-3741
SELECT - col2 * + col0 * - col1 AS col0, - col0 / 70 - - + col0 + + + col1 - - col1 + 0 AS col2 FROM tab2
----
197120
218
291450
208
53958
148

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT - SUM( + + 5 ) * + 19 + + + COUNT( * ) FROM tab1
----
-282

skipif mysql # not compatible
query I rowsort label-3742
SELECT - SUM ( + + 5 ) * + 19 + + + COUNT ( * ) FROM tab1
----
-282

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1, - col1 + - col0 + + col1 / + + col1, 14 * 89, - 16 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 96 * - 42 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT DISTINCT + COUNT( * ) * MAX( DISTINCT + col2 ) + + 46 FROM tab1 AS cor0
----
334

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT + COUNT ( * ) * MAX ( DISTINCT + col2 ) + + 46 FROM tab1 AS cor0
----
334

query I rowsort
SELECT + 18 * - col2 AS col2 FROM tab0
----
-1782
-180
-846

onlyif mysql # DIV for integer division: 
query II rowsort label-3747
SELECT col2 col1, + 52 DIV + 25 FROM tab1
----
59
2
68
2
96
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3747
SELECT col2 col1, + 52 / + 25 FROM tab1
----
59
2
68
2
96
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3748
SELECT ALL - CAST( + 23 AS SIGNED ) FROM tab1
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-3748
SELECT ALL - CAST ( + 23 AS INTEGER ) FROM tab1
----
-23
-23
-23

query I rowsort
SELECT ALL 73 + col2 FROM tab1
----
132
141
169

query II rowsort
SELECT col2 AS col2, 65 - + 0 * - 41 AS col0 FROM tab1
----
59
65
68
65
96
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT MAX( 52 ) * - + 13 FROM tab2
----
-676

skipif mysql # not compatible
query I rowsort label-3751
SELECT MAX ( 52 ) * - + 13 FROM tab2
----
-676

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3752
SELECT ALL CAST( NULL AS SIGNED ) + 57 + + + 92 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3752
SELECT ALL CAST ( NULL AS INTEGER ) + 57 + + + 92 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT - 87 + COUNT( * ) FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-3753
SELECT - 87 + COUNT ( * ) FROM tab1 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT - - COUNT( * ) - - - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3754
SELECT - - COUNT ( * ) - - - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT - col2 + 56 AS col2 FROM tab0
----
-43
46
9

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col1 * + col2 IS NOT NULL
----

query I rowsort
SELECT ALL 68 AS col0 FROM tab0 cor0
----
68
68
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3758
SELECT DISTINCT - CAST( - AVG ( - 4 ) AS SIGNED ) AS col1 FROM tab0 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3758
SELECT DISTINCT - CAST ( - AVG ( - 4 ) AS INTEGER ) AS col1 FROM tab0 cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3759
SELECT DISTINCT CAST( + + ( ( + 5 ) ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3759
SELECT DISTINCT CAST ( + + ( ( + 5 ) ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT MIN( DISTINCT + col0 ) * + 18 AS col0 FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-3760
SELECT MIN ( DISTINCT + col0 ) * + 18 AS col0 FROM tab0 AS cor0
----
270

query I rowsort
SELECT DISTINCT - ( + - col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT - COUNT( ALL - col0 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3762
SELECT - COUNT ( ALL - col0 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT - + 39 AS col1 FROM tab2 cor0
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3764
SELECT + SUM( - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3764
SELECT + SUM ( - col1 ) FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3765
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col1 / - 36 - - 6 + - col2 - + 25 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3767
SELECT * FROM tab1 WHERE NOT CAST( 23 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3767
SELECT * FROM tab1 WHERE NOT CAST ( 23 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
94

query I rowsort
SELECT ALL + - col2 + - 12 AS col1 FROM tab2 AS cor0
----
-35
-52
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT - SUM( ALL col0 ) + + 35 AS col2 FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-3770
SELECT - SUM ( ALL col0 ) + + 35 AS col2 FROM tab1 AS cor0
----
-192

query I rowsort
SELECT ALL + 25 AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 col1 FROM tab2 cor0
----
-81
-81
-81

query I rowsort
SELECT ALL - 49 FROM tab1 cor0 WHERE NOT col2 NOT BETWEEN NULL AND - 9 - + + col2 + + 38 / - col2 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3774
SELECT col1 DIV - - 3 FROM tab1 cor0
----
1
15
4

skipif mysql # not compatible
query I rowsort label-3774
SELECT col1 / - - 3 FROM tab1 cor0
----
1
15
4

query I rowsort
SELECT + col0 - + - col0 - + col0 FROM tab2
----
46
64
75

query I rowsort
SELECT + col1 - 4 FROM tab1
----
1
10
43

query I rowsort
SELECT DISTINCT + 53 + col2 + - 36 FROM tab1
----
113
76
85

query III rowsort
SELECT * FROM tab1 WHERE + + 10 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 + + - 9 AS col2 FROM tab0
----
-8
12
72

query II rowsort
SELECT DISTINCT + 51 AS col2, + 15 FROM tab2 AS cor0
----
51
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT + COUNT( * ) FROM tab0 cor0 WHERE ( NOT col0 NOT BETWEEN NULL AND 68 )
----
0

skipif mysql # not compatible
query I rowsort label-3781
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE ( NOT col0 NOT BETWEEN NULL AND 68 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT - + MIN( - - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3782
SELECT - + MIN ( - - col0 ) FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3783
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT COUNT( * ) * 23 * COUNT( * ) AS col2 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-3785
SELECT COUNT ( * ) * 23 * COUNT ( * ) AS col2 FROM tab2
----
207

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 * 7 - - - col1 > ( NULL )
----

query II rowsort
SELECT - 96, col0 FROM tab1
----
-96
51
-96
85
-96
91

query II rowsort
SELECT ALL 8 AS col0, col0 AS col2 FROM tab0
----
8
15
8
87
8
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3789
SELECT + 87 AS col2, 83 + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
87
80

skipif mysql # not compatible
query II rowsort label-3789
SELECT + 87 AS col2, 83 + - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
87
80

query I rowsort
SELECT DISTINCT - 94 * - col0 AS col0 FROM tab0 AS cor0
----
1410
8178
9118

query I rowsort
SELECT - + col2 * - - 31 FROM tab2 AS cor0
----
-1240
-1798
-713

onlyif mysql # DIV for integer division: 
query I rowsort label-3792
SELECT DISTINCT - 25 * + col1 DIV - col1 AS col2 FROM tab0 cor0
----
25

skipif mysql # not compatible
query I rowsort label-3792
SELECT DISTINCT - 25 * + col1 / - col1 AS col2 FROM tab0 cor0
----
25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / 9 BETWEEN - - 42 AND 74
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3794
SELECT DISTINCT - col2 DIV - col0 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3794
SELECT DISTINCT - col2 / - col0 FROM tab1 cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT + MIN( 26 ) FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-3795
SELECT + MIN ( 26 ) FROM tab0
----
26

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT COUNT( - + col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3797
SELECT COUNT ( - + col1 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + col1 * - 68 FROM tab1 WHERE NULL NOT IN ( - - ( 23 ) )
----

query II rowsort
SELECT + + ( 27 ), 68 AS col0 FROM tab0 AS cor0
----
27
68
27
68
27
68

query I rowsort
SELECT + col2 * - col1 * + col1 FROM tab0 AS cor0
----
-308367
-4410
-99

query I rowsort
SELECT ALL 9 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - - 90 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 70 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 35 AS col2, - col1 + - col1 AS col1 FROM tab1 AS cor0
----
35
-10
35
-28
35
-94

query II rowsort
SELECT ALL + col1 AS col1, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT DISTINCT + - SUM( ALL + 25 ) AS col2 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3806
SELECT DISTINCT + - SUM ( ALL + 25 ) AS col2 FROM tab1 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT ALL COUNT( * ) * - + MIN( DISTINCT + 4 ) col0 FROM tab0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3807
SELECT ALL COUNT ( * ) * - + MIN ( DISTINCT + 4 ) col0 FROM tab0
----
-12

query III rowsort
SELECT * FROM tab1 WHERE + + col2 * col0 + + col2 + - - 39 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3809
SELECT + MIN( - + col2 ), MIN( DISTINCT - 91 ) col2 FROM tab1
----
-96
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3809
SELECT + MIN ( - + col2 ), MIN ( DISTINCT - 91 ) col2 FROM tab1
----
-96
-91

query II rowsort
SELECT DISTINCT col0 - + 18 AS col1, col1 FROM tab0
----
-3
81
69
21
79
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 col0 FROM tab2
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT DISTINCT 65 + - COUNT( * ) * - + 74 * - ( MIN( DISTINCT + 70 ) ) FROM tab1
----
-15475

skipif mysql # not compatible
query I rowsort label-3812
SELECT DISTINCT 65 + - COUNT ( * ) * - + 74 * - ( MIN ( DISTINCT + 70 ) ) FROM tab1
----
-15475

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT ( - ( ( + - 28 ) ) ) - + MIN( ALL col2 ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-3813
SELECT ( - ( ( + - 28 ) ) ) - + MIN ( ALL col2 ) FROM tab0
----
18

query I rowsort
SELECT ALL + - ( - col2 ) - + col0 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-3815
SELECT ALL + col0 DIV + + col2 + + - 73 FROM tab2 AS cor0
----
-71
-72
-72

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL + col0 / + + col2 + + - 73 FROM tab2 AS cor0
----
-71
-72
-72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3816
SELECT DISTINCT + + ( + - CAST( - col1 AS SIGNED ) ) * - 69 FROM tab2 AS cor0
----
-3519
-4623
-5313

skipif mysql # not compatible
query I rowsort label-3816
SELECT DISTINCT + + ( + - CAST ( - col1 AS INTEGER ) ) * - 69 FROM tab2 AS cor0
----
-3519
-4623
-5313

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT ALL + 47 * - SUM( + - col1 ) FROM tab1
----
3102

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL + 47 * - SUM ( + - col1 ) FROM tab1
----
3102

query II rowsort
SELECT - col1 AS col2, + col2 + - col1 FROM tab2
----
-51
-28
-67
-9
-77
-37

query I rowsort
SELECT - ( - + 75 ) AS col0 FROM tab2
----
75
75
75

query I rowsort
SELECT ALL 85 * - 58 FROM tab1, tab2 AS cor0
----
9 values hashing to 8bf7f1e3f64da45b2fb5ea27114710ff

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NOT NULL >= - - col2
----

query I rowsort
SELECT ALL col0 * - 42 AS col1 FROM tab1 AS cor0
----
-2142
-3570
-3822

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 80 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3824
SELECT - - CAST( NULL AS SIGNED ) * - ( col1 ) col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3824
SELECT - - CAST ( NULL AS INTEGER ) * - ( col1 ) col1 FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - 3 AS col2, + 75 * - 20 FROM tab2 AS cor0
----
-3
-1500
-3
-1500
-3
-1500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3826
SELECT - CAST( + + col0 AS SIGNED ) * col2 AS col1 FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-3826
SELECT - CAST ( + + col0 AS INTEGER ) * col2 AS col1 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT ALL SUM( - 83 ) AS col0 FROM tab1
----
-249

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL SUM ( - 83 ) AS col0 FROM tab1
----
-249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3828
SELECT + CAST( - 76 AS SIGNED ) FROM tab2
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-3828
SELECT + CAST ( - 76 AS INTEGER ) FROM tab2
----
-76
-76
-76

query I rowsort
SELECT DISTINCT + 91 + + 12 AS col1 FROM tab1
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT ALL MAX( ALL + - 0 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL MAX ( ALL + - 0 ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT DISTINCT 83 * - - COUNT( * ) AS col0 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-3831
SELECT DISTINCT 83 * - - COUNT ( * ) AS col0 FROM tab2
----
249

query I rowsort
SELECT ALL + col1 * + 5 AS col1 FROM tab1
----
235
25
70

onlyif mysql # DIV for integer division: 
query II rowsort label-3833
SELECT DISTINCT col1 AS col0, - 53 - col2 DIV - 21 AS col0 FROM tab0 AS cor0
----
1
-49
21
-53
81
-51

skipif mysql # not compatible
query II rowsort label-3833
SELECT DISTINCT col1 AS col0, - 53 - col2 / - 21 AS col0 FROM tab0 AS cor0
----
1
-49
21
-53
81
-51

query I rowsort
SELECT + - 98 + + + col0 AS col0 FROM tab2 AS cor0
----
-23
-34
-52

query I rowsort
SELECT ALL - 43 * + + 17 * col0 AS col1 FROM tab2 AS cor0
----
-33626
-46784
-54825

query I rowsort
SELECT DISTINCT 35 AS col0 FROM tab0 WHERE + col0 < NULL
----

query I rowsort
SELECT + 17 + - col1 * + + col0 FROM tab1
----
-408
-4260
-697

query I rowsort
SELECT ALL col0 FROM tab1 WHERE 72 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3839
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT DISTINCT COUNT( - + ( col0 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3840
SELECT DISTINCT COUNT ( - + ( col0 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3841
SELECT ALL - col2 + + col1 * - 75 + + col2 + col2 + CAST( NULL AS SIGNED ) + + - col0 / - ( - - col1 ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL - col2 + + col1 * - 75 + + col2 + col2 + CAST ( NULL AS INTEGER ) + + - col0 / - ( - - col1 ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT COUNT( ALL - + col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3842
SELECT COUNT ( ALL - + col2 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 69 + + col1 * - - col2 / + col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3844
SELECT - CAST( NULL AS SIGNED ) - + 14 * - - col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3844
SELECT - CAST ( NULL AS INTEGER ) - + 14 * - - col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 39 AS col0 FROM tab2 AS cor0 WHERE + ( + + col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + - col1 NOT BETWEEN NULL AND + col0 AND NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3847
SELECT DISTINCT - 91 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT - 91 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3848
SELECT DISTINCT + COUNT( * ) + COUNT( * ) + 42, 44 * + 28 AS col1 FROM tab2
----
48
1232

skipif mysql # not compatible
query II rowsort label-3848
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) + 42, 44 * + 28 AS col1 FROM tab2
----
48
1232

query I rowsort
SELECT + 54 * 69 * + + col0 + + + col0 FROM tab0
----
324249
361519
55905

query I rowsort
SELECT 74 + + - 22 FROM tab0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT ALL MAX( + 83 ) FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-3851
SELECT ALL MAX ( + 83 ) FROM tab1
----
83

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 <> + 94
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3853
SELECT + COUNT( * ), - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3853
SELECT + COUNT ( * ), - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT ALL + COUNT( * ) * - - 30 AS col1 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL + COUNT ( * ) * - - 30 AS col1 FROM tab2 AS cor0
----
90

query I rowsort
SELECT ( col1 ) FROM tab2 AS cor0 WHERE NOT col2 >= 62
----
51
67
77

query I rowsort
SELECT - 98 FROM tab2 cor0 WHERE NOT ( NULL ) IN ( - col2, + 76 )
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3858
SELECT DISTINCT + CAST( + - col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3858
SELECT DISTINCT + CAST ( + - col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
-15
-87
-97

query II rowsort
SELECT DISTINCT + + 16 AS col2, col0 FROM tab0 AS cor0
----
16
15
16
87
16
97

query I rowsort
SELECT - ( 62 ) AS col0 FROM tab2
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT COUNT( ALL + col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3861
SELECT COUNT ( ALL + col1 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE 15 * + 72 <= 91
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3863
SELECT - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3863
SELECT - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col0 * + col1 + + col2 * 4 FROM tab2
----
-2254
-4768
-4793

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= col2 * + ( + ( - col2 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE col2 + + col2 < - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3867
SELECT + col2 AS col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) <> col1
----

skipif mysql # not compatible
query I rowsort label-3867
SELECT + col2 AS col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) <> col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 <> 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3869
SELECT COUNT( * ) AS col2 FROM tab0 WHERE col2 * + col2 BETWEEN + col2 - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3869
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE col2 * + col2 BETWEEN + col2 - col0 AND NULL
----
0

query I rowsort
SELECT ALL ( + 78 ) FROM tab0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT MAX( ALL col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3871
SELECT MAX ( ALL col1 ) AS col2 FROM tab2
----
77

query I rowsort
SELECT + col1 * + 79 FROM tab0
----
1659
6399
79

query I rowsort
SELECT ALL col0 + + ( - ( col2 ) ) AS col2 FROM tab0
----
-2
-32
77

query I rowsort
SELECT DISTINCT col0 * col0 + 24 FROM tab0
----
249
7593
9433

query I rowsort
SELECT ALL - col0 + 42 AS col1 FROM tab0
----
-45
-55
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT COUNT( * ) * + 41 col0 FROM tab2
----
123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3876
SELECT COUNT ( * ) * + 41 col0 FROM tab2
----
123

query I rowsort
SELECT ALL col1 - - 52 FROM tab2
----
103
119
129

query I rowsort
SELECT - col2 * 74 FROM tab1
----
-4366
-5032
-7104

query I rowsort
SELECT - col2 * ( col1 ) FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL col1 * col0 + - 0 * - col1 FROM tab0
----
1215
1827
97

query I rowsort
SELECT DISTINCT + col2 * + col0 + 13 AS col0 FROM tab0
----
718
883
9616

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT ALL + SUM( 67 ) FROM tab2
----
201

skipif mysql # not compatible
query I rowsort label-3882
SELECT ALL + SUM ( 67 ) FROM tab2
----
201

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3883
SELECT * FROM tab2 AS cor0 WHERE ( + ( + col2 ) ) IN ( CAST( NULL AS DECIMAL ) / col2 )
----

skipif mysql # not compatible
query III rowsort label-3883
SELECT * FROM tab2 AS cor0 WHERE ( + ( + col2 ) ) IN ( CAST ( NULL AS REAL ) / col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT + 33 + COUNT( * ) * 90 AS col0 FROM tab2
----
303

skipif mysql # not compatible
query I rowsort label-3884
SELECT + 33 + COUNT ( * ) * 90 AS col0 FROM tab2
----
303

query I rowsort
SELECT DISTINCT - 25 FROM tab2 cor0
----
-25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3886
SELECT + MAX( DISTINCT + col1 ) * - COUNT( * ) FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + ( col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3886
SELECT + MAX ( DISTINCT + col1 ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + ( col1 ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 0 * + 29 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 + 74 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3889
SELECT + CAST( 28 AS SIGNED ) DIV - col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3889
SELECT + CAST ( 28 AS INTEGER ) / - col0 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col1 ) <> NULL
----

query I rowsort
SELECT - - 8 * col2 FROM tab1 AS cor0
----
472
544
768

onlyif mysql # DIV for integer division: 
query I rowsort label-3892
SELECT - col1 DIV 8 FROM tab2 AS cor0
----
-6
-8
-9

skipif mysql # not compatible
query I rowsort label-3892
SELECT - col1 / 8 FROM tab2 AS cor0
----
-6
-8
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3893
SELECT ALL - MIN( - 52 ) FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-3893
SELECT ALL - MIN ( - 52 ) FROM tab2
----
52

query I rowsort
SELECT ( + 87 ) FROM tab1 WHERE NOT ( NULL ) > ( + col1 - col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 38 - 39 IS NOT NULL OR NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3896
SELECT DISTINCT + col2 * + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT + col2 * + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3897
SELECT ALL + CAST( col1 AS SIGNED ) AS col0 FROM tab1 WHERE - 75 - - col0 IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-3897
SELECT ALL + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 WHERE - 75 - - col0 IS NOT NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col0 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT ALL + + SUM( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3899
SELECT ALL + + SUM ( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT DISTINCT - - 83 FROM tab1 cor0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3901
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT ( NULL ) = 45
----

skipif mysql # not compatible
query I rowsort label-3901
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT ( NULL ) = 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT DISTINCT COUNT( ALL - - col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3902
SELECT DISTINCT COUNT ( ALL - - col0 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT DISTINCT - col1 * - col2 * 92 FROM tab2 AS cor0
----
107916
283360
357512

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN 53 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 27 * + 59 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3906
SELECT ALL 49 DIV + 51 + + 83 + col2 * 87 FROM tab1 AS cor0
----
5216
5999
8435

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL 49 / + 51 + + 83 + col2 * 87 FROM tab1 AS cor0
----
5216
5999
8435

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - 74 IS NULL
----

query I rowsort
SELECT ALL + col1 + + col0 * col1 + - col0 * + 27 AS col0 FROM tab1
----
-1865
-649
1867

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT DISTINCT COUNT( * ) + + MIN( - col0 ) AS col0 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-3910
SELECT DISTINCT COUNT ( * ) + + MIN ( - col0 ) AS col0 FROM tab1
----
-88

query I rowsort
SELECT DISTINCT - col2 * 71 AS col1 FROM tab2
----
-1633
-2840
-4118

query I rowsort
SELECT col1 FROM tab1 WHERE col1 - + + 9 NOT BETWEEN 88 + + 83 AND 53 / 94
----
14
47
5

query I rowsort
SELECT DISTINCT + col1 * 17 FROM tab2
----
1139
1309
867

onlyif mysql # DIV for integer division: 
query I rowsort label-3914
SELECT col0 * + - col2 + - - 67 DIV + ( col0 ) - col1 AS col2 FROM tab0
----
-782
-891
-9604

skipif mysql # not compatible
query I rowsort label-3914
SELECT col0 * + - col2 + - - 67 / + ( col0 ) - col1 AS col2 FROM tab0
----
-782
-891
-9604

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 15 + 72 * - + col0 col0 FROM tab2 AS cor0
----
-3327
-4623
-5415

onlyif mysql # aggregate syntax: 
query I rowsort label-3916
SELECT 23 * - - COUNT( * ) + COUNT( * ) + - COUNT( * ) * + MAX( - 67 ) AS col0 FROM tab0 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-3916
SELECT 23 * - - COUNT ( * ) + COUNT ( * ) + - COUNT ( * ) * + MAX ( - 67 ) AS col0 FROM tab0 AS cor0
----
273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3917
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + col1 / + 29 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + col1 / + 29 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT + COUNT( + + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3918
SELECT + COUNT ( + + col1 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - ( + col2 ) + 23 col2 FROM tab0
----
122
233
3830

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3920
SELECT * FROM tab0 WHERE NULL BETWEEN - + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3920
SELECT * FROM tab0 WHERE NULL BETWEEN - + CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3921
SELECT ALL - 64 AS col0, COUNT( * ) FROM tab1 AS cor0
----
-64
3

skipif mysql # not compatible
query II rowsort label-3921
SELECT ALL - 64 AS col0, COUNT ( * ) FROM tab1 AS cor0
----
-64
3

query I rowsort
SELECT col0 - col2 FROM tab0 cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT DISTINCT COUNT( * ) - - + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3923
SELECT DISTINCT COUNT ( * ) - - + COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT ALL + COUNT( * ) + 93 AS col0 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3924
SELECT ALL + COUNT ( * ) + 93 AS col0 FROM tab2 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT COUNT( * ) - + 51 col0 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3925
SELECT COUNT ( * ) - + 51 col0 FROM tab0 AS cor0
----
-48

query I rowsort
SELECT + col0 * - 56 + - col0 - - + 87 FROM tab1 AS cor0
----
-2820
-4758
-5100

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 59 * - col2 <= ( - 6 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3928
SELECT col1 DIV - 72 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3928
SELECT col1 / - 72 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * + - col1 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT ALL - - ( + + COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL - - ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - 35 * - col2 FROM tab1 AS cor0
----
2065
2380
3360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3932
SELECT + COUNT( * ) DIV + MAX( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3932
SELECT + COUNT ( * ) / + MAX ( DISTINCT - col2 ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 86 * - - col0 * - col0 AS col0 FROM tab1 AS cor0
----
223686
621350
712166

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NULL > NULL
----

query II rowsort
SELECT ALL col0 AS col0, col1 + + col2 FROM tab2
----
46
74
64
117
75
125

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3936
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( col2 + + 44 + col1 - - 84 + 64 * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3936
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT IN ( col2 + + 44 + col1 - - 84 + 64 * - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * - + 76 - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT - 25 * - + col1 * + - 50 * col2 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 15 * + col0 AS col1 FROM tab0
----
1305
1455
225

query I rowsort
SELECT + - ( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 >= + col0
----
-23
-40
-58

query I rowsort
SELECT ALL + 86 * - 6 FROM tab1 cor0
----
-516
-516
-516

query II rowsort
SELECT - col2 * + - col2 AS col0, col1 FROM tab0 cor0
----
100
21
2209
81
9801
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( ( NULL IS NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 93 col1 FROM tab2 cor0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3945
SELECT ALL 35 DIV + - col2 * - + col2 * + - col0 + col0 col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3945
SELECT ALL 35 / + - col2 * - + col2 * + - col0 + col0 col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3946
SELECT DISTINCT 18 * + col2 * - CAST( + col2 AS SIGNED ) * - 97 + col1 FROM tab2
----
2793677
5873611
923685

skipif mysql # not compatible
query I rowsort label-3946
SELECT DISTINCT 18 * + col2 * - CAST ( + col2 AS INTEGER ) * - 97 + col1 FROM tab2
----
2793677
5873611
923685

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 <= + col0
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3948
SELECT + ( + 11 ) col2 FROM tab1 WHERE 10 BETWEEN - col1 AND + + col2 * + col0 - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3948
SELECT + ( + 11 ) col2 FROM tab1 WHERE 10 BETWEEN - col1 AND + + col2 * + col0 - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col1 + + - col2 FROM tab1
----
-21
-54
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + col2 col0 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query II rowsort label-3951
SELECT + 53, + ( + + COUNT( * ) ) AS col0 FROM tab0
----
53
3

skipif mysql # not compatible
query II rowsort label-3951
SELECT + 53, + ( + + COUNT ( * ) ) AS col0 FROM tab0
----
53
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT - COUNT( - 84 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3952
SELECT - COUNT ( - 84 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3953
SELECT ALL + col2 + CAST( NULL AS SIGNED ) / - - 95 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3953
SELECT ALL + col2 + CAST ( NULL AS INTEGER ) / - - 95 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT ALL MIN( + 78 ) FROM tab2 WHERE 51 + + - col1 IS NOT NULL
----
78

skipif mysql # not compatible
query I rowsort label-3954
SELECT ALL MIN ( + 78 ) FROM tab2 WHERE 51 + + - col1 IS NOT NULL
----
78

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0 )
----

query I rowsort
SELECT DISTINCT - - ( col1 ) + col0 * - col1 - + 16 AS col0 FROM tab1 cor0
----
-4246
-436
-716

query I rowsort
SELECT DISTINCT - col0 + - + col2 AS col2 FROM tab1 AS cor0
----
-144
-147
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 * - col2 col1, - col1 FROM tab0 WHERE NULL IS NULL
----
705
-81
870
-21
9603
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3959
SELECT + col1 DIV col2 + - col0 AS col1 FROM tab2 WHERE - col0 IS NOT NULL
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-3959
SELECT + col1 / col2 + - col0 AS col1 FROM tab2 WHERE - col0 IS NOT NULL
----
-44
-63
-74

query II rowsort
SELECT ALL 60 - + 8 AS col0, + 11 FROM tab0
----
52
11
52
11
52
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT ALL - SUM( ALL 57 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-513

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL - SUM ( ALL 57 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-513

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT ALL 27 - - COUNT( * ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL 27 - - COUNT ( * ) FROM tab0
----
30

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 48 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT DISTINCT - 41 * + MAX( DISTINCT - 71 ) + - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
2914

skipif mysql # not compatible
query I rowsort label-3964
SELECT DISTINCT - 41 * + MAX ( DISTINCT - 71 ) + - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
2914

onlyif mysql # aggregate syntax: 
query II rowsort label-3965
SELECT DISTINCT + 31 * 42 AS col2, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
1302
3

skipif mysql # not compatible
query II rowsort label-3965
SELECT DISTINCT + 31 * 42 AS col2, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1302
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3966
SELECT DISTINCT - 87 * + 19 * + 75 * - COUNT( * ) AS col2, ( COUNT( + col2 ) ) + 81 AS col2 FROM tab0 AS cor0
----
371925
84

skipif mysql # not compatible
query II rowsort label-3966
SELECT DISTINCT - 87 * + 19 * + 75 * - COUNT ( * ) AS col2, ( COUNT ( + col2 ) ) + 81 AS col2 FROM tab0 AS cor0
----
371925
84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 5 IN ( + - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-3968
SELECT - col0 DIV 40 AS col1, 81 AS col1 FROM tab1 AS cor0
----
-1
81
-2
81
-2
81

skipif mysql # not compatible
query II rowsort label-3968
SELECT - col0 / 40 AS col1, 81 AS col1 FROM tab1 AS cor0
----
-1
81
-2
81
-2
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3969
SELECT ALL - col2 DIV - 77 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3969
SELECT ALL - col2 / - 77 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT DISTINCT + ( - + COUNT( * ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT + ( - + COUNT ( * ) ) AS col0 FROM tab1
----
-3

query I rowsort
SELECT - col2 * + - 21 AS col1 FROM tab1
----
1239
1428
2016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 16 ) col2 FROM tab2
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-3973
SELECT DISTINCT - ( + + col0 ) DIV - - col2 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-3973
SELECT DISTINCT - ( + + col0 ) / - - col2 FROM tab2
----
-1
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3974
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3974
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3975
SELECT ALL * FROM tab0 AS cor0 WHERE 48 * - CAST( col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3975
SELECT ALL * FROM tab0 AS cor0 WHERE 48 * - CAST ( col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT DISTINCT - MAX( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3976
SELECT DISTINCT - MAX ( DISTINCT + col1 ) AS col1 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT - - 6 - - col1 / - + 95 * + col2 + - col0 IS NULL )
----

query I rowsort
SELECT 37 AS col1 FROM tab1 cor0
----
37
37
37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 27 )
----

query I rowsort
SELECT + col1 * + ( + - 61 ) + - + 71 FROM tab0
----
-132
-1352
-5012

query III rowsort
SELECT * FROM tab1 WHERE - - ( - col2 ) * + - 52 + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT 0 * - 41 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + col1 + 32 * - col2 * + 99 * + col0 + - 96 + - - col2 * + col2 * - ( - + col1 ) + 48 FROM tab0 AS cor0
----
-2054478
-2754087
-30412550

query II rowsort
SELECT - 14 * - col0 AS col0, - col0 + + ( col1 ) AS col1 FROM tab1 AS cor0
----
1190
-80
1274
-44
714
-37

query I rowsort
SELECT DISTINCT 8 - - + 95 FROM tab2 AS cor0 WHERE - 39 * + - col2 + + - col0 + - col2 NOT IN ( 28, col2, 53 )
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col1 ) * col2 * - 23 + + col1 col1 FROM tab1 AS cor0
----
30926
6790
73555

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3988
SELECT + col1, CAST( NULL AS SIGNED ) / + col2 * - - col1 AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-3988
SELECT + col1, CAST ( NULL AS INTEGER ) / + col2 * - - col1 AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT - col2 AS col0, + 98 FROM tab1 AS cor0
----
-59
98
-68
98
-96
98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( + col2 ) + 38 + + col2 * + + col1 + + 53 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * - + col2 + + 23 + 23 FROM tab1 AS cor0
----
-3435
-4578
-9170

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3993
SELECT ALL * FROM tab0 WHERE NOT ( - - CAST( NULL AS SIGNED ) ) = NULL
----

skipif mysql # not compatible
query III rowsort label-3993
SELECT ALL * FROM tab0 WHERE NOT ( - - CAST ( NULL AS INTEGER ) ) = NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE - + 12 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col0 - col2 / 3 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 12 / 21 ) <= NULL
----

query II rowsort
SELECT ALL col2 * + 51, + col0 FROM tab1 AS cor0
----
3009
85
3468
91
4896
51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * + col0 + + - col1 <> NULL
----

query II rowsort
SELECT col1 * 57 + - 27 AS col0, col1 * - - 69 FROM tab0 cor0
----
1170
1449
30
69
4590
5589

query I rowsort
SELECT ALL - + 9 * + 18 AS col2 FROM tab2 AS cor0
----
-162
-162
-162

query I rowsort
SELECT - ( - col2 ) * col2 * col1 FROM tab1 AS cor0
----
129024
17405
217328

query II rowsort
SELECT + col2, col2 AS col1 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT ALL - + col0 * - + col2 FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 - + col0 <= NULL
----

query I rowsort
SELECT 31 * - col1 * + + col2 + + + 66 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-120400
-36297
-95414

query I rowsort
SELECT - col2 * - + col2 * - col2 FROM tab1
----
-205379
-314432
-884736

onlyif mysql # aggregate syntax: 
query II rowsort label-4007
SELECT DISTINCT + MIN( - 16 ) AS col0, 90 FROM tab1
----
-16
90

skipif mysql # not compatible
query II rowsort label-4007
SELECT DISTINCT + MIN ( - 16 ) AS col0, 90 FROM tab1
----
-16
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT - COUNT( * ) * - 62 FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-4008
SELECT - COUNT ( * ) * - 62 FROM tab2
----
186

query I rowsort
SELECT ALL 55 * - col1 AS col0 FROM tab2
----
-2805
-3685
-4235

query I rowsort
SELECT ALL - col0 * + + col2 AS col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT + col1 * + - col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT - 72 + + 15 AS col1 FROM tab2
----
-57

query I rowsort
SELECT ( col2 ) + + - ( - 54 ) FROM tab1
----
113
122
150

query I rowsort
SELECT ALL + - 92 + 60 FROM tab2 AS cor0
----
-32
-32
-32

query I rowsort
SELECT ALL - ( - + 94 ) * + - col1 + + 94 FROM tab1
----
-1222
-376
-4324

onlyif mysql # DIV for integer division: 
query I rowsort label-4016
SELECT col0 DIV + 63 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4016
SELECT col0 / + 63 FROM tab2
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col1 + - col2 col2 FROM tab1
----
-59
-68
-96

query II rowsort
SELECT - 71, + col1 AS col0 FROM tab1 WHERE col2 = NULL
----

query I rowsort
SELECT DISTINCT 62 - + 65 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT - MAX( + 14 ) FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-4020
SELECT - MAX ( + 14 ) FROM tab2
----
-14

query I rowsort
SELECT ALL + col1 + - + col0 + + 21 FROM tab0
----
-45
-75
87

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

query II rowsort
SELECT 50, + col0 FROM tab1
----
50
51
50
85
50
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT DISTINCT + COUNT( + - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4024
SELECT DISTINCT + COUNT ( + - col1 ) FROM tab1
----
3

query I rowsort
SELECT ALL col1 - - + col2 AS col2 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT - SUM( + + col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4026
SELECT - SUM ( + + col0 ) FROM tab2
----
-185

query I rowsort
SELECT 40 - - 95 FROM tab1 cor0
----
135
135
135

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT DISTINCT - SUM( + + 72 ) FROM tab2
----
-216

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT - SUM ( + + 72 ) FROM tab2
----
-216

onlyif mysql # aggregate syntax: 
query II rowsort label-4029
SELECT DISTINCT SUM( DISTINCT 60 ) AS col2, - 61 AS col0 FROM tab2
----
60
-61

skipif mysql # not compatible
query II rowsort label-4029
SELECT DISTINCT SUM ( DISTINCT 60 ) AS col2, - 61 AS col0 FROM tab2
----
60
-61

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - ( - - col0 ) * col2 AND + + ( 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE 55 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4031
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE 55 IS NOT NULL
----
-3

query I rowsort
SELECT ALL + - 38 * col2 + + 1 AS col2 FROM tab1 AS cor0
----
-2241
-2583
-3647

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col1, col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4034
SELECT ALL + 14 DIV - 89 AS col1, col1 col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4034
SELECT ALL + 14 / - 89 AS col1, col1 col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT ALL MAX( DISTINCT - col0 ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-4035
SELECT ALL MAX ( DISTINCT - col0 ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT ALL - COUNT( col0 ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4036
SELECT ALL - COUNT ( col0 ) col0 FROM tab1
----
-3

query I rowsort
SELECT ALL - 68 AS col1 FROM tab0
----
-68
-68
-68

query I rowsort
SELECT ALL 53 * col0 FROM tab2
----
2438
3392
3975

query I rowsort
SELECT ALL - 87 AS col1 FROM tab1 WHERE + - col1 > NULL
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( NULL IS NOT NULL )
----
14
47
5

query I rowsort
SELECT DISTINCT col1 * 42 AS col0 FROM tab1
----
1974
210
588

query II rowsort
SELECT ALL - - 4, + col1 / + col2 * col2 * + - col1 AS col1 FROM tab0 WHERE NOT + + col0 + - col1 - + - 64 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 16 * + + col1 col2 FROM tab1
----
224
752
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4044
SELECT ALL col1 DIV - 18 FROM tab0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL col1 / - 18 FROM tab0
----
-1
-4
0

query I rowsort
SELECT ALL - 69 AS col2 FROM tab2 WHERE NULL NOT BETWEEN - 45 + - col0 AND + - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4047
SELECT ALL + 66 DIV col2 AS col0 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-4047
SELECT ALL + 66 / col2 AS col0 FROM tab0
----
0
1
6

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col1 + - col0 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4049
SELECT ALL - col2 DIV + + col0 + + - col2 FROM tab1 AS cor0
----
-59
-68
-97

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL - col2 / + + col0 + + - col2 FROM tab1 AS cor0
----
-59
-68
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT DISTINCT COUNT( DISTINCT col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT COUNT ( DISTINCT col1 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = - col0
----

query II rowsort
SELECT DISTINCT + col1 * col2 + 87 AS col1, col1 FROM tab2
----
1260
51
3167
77
3973
67

query I rowsort
SELECT DISTINCT 26 - - 71 AS col0 FROM tab1
----
97

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE ( NOT NULL <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4056
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4057
SELECT 51 DIV + col0 AS col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4057
SELECT 51 / + col0 AS col1 FROM tab2
----
0
0
1

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4059
SELECT + SUM( ALL - col0 ) AS col2, 31 FROM tab2 cor0
----
-185
31

skipif mysql # not compatible
query II rowsort label-4059
SELECT + SUM ( ALL - col0 ) AS col2, 31 FROM tab2 cor0
----
-185
31

query II rowsort
SELECT ALL + 65, col0 + + 67 AS col0 FROM tab1 AS cor0
----
65
118
65
152
65
158

query I rowsort
SELECT 31 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4062
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 65 ) NOT BETWEEN + CAST( NULL AS SIGNED ) AND - - col0
----

skipif mysql # not compatible
query III rowsort label-4062
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 65 ) NOT BETWEEN + CAST ( NULL AS INTEGER ) AND - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4063
SELECT DISTINCT + col1 DIV + ( col2 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT + col1 / + ( col2 ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
0
1
2

query I rowsort
SELECT DISTINCT - - ( 69 ) AS col1 FROM tab2 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4065
SELECT ALL + col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4065
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 BETWEEN - 28 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 48 + + - col0 - + 61 * + - ( + col2 ) * - - col0 + - - 15 FROM tab0
----
43053
53046
585749

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT - 62 + 51 - - - COUNT( + 51 ) AS col1 FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-4068
SELECT - 62 + 51 - - - COUNT ( + 51 ) AS col1 FROM tab2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4069
SELECT col0 + CAST( ( 20 ) AS SIGNED ) - - + 26 * CAST( NULL AS SIGNED ) * + - col1 * + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4069
SELECT col0 + CAST ( ( 20 ) AS INTEGER ) - - + 26 * CAST ( NULL AS INTEGER ) * + - col1 * + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 65 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * + - col0 / - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * + 98 FROM tab2
----
2254
3920
5684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4073
SELECT col1 * - col1 / + CAST( NULL AS SIGNED ) * + + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4073
SELECT col1 * - col1 / + CAST ( NULL AS INTEGER ) * + + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 96 * + + col0 FROM tab2
----
4416
6144
7200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4075
SELECT ALL + - CAST( NULL AS SIGNED ) + + 56 + + CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4075
SELECT ALL + - CAST ( NULL AS INTEGER ) + + 56 + + CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4076
SELECT DISTINCT - MAX( ALL - 96 ) + CAST( + COUNT( ALL + 8 ) AS SIGNED ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT - MAX ( ALL - 96 ) + CAST ( + COUNT ( ALL + 8 ) AS INTEGER ) FROM tab0 cor0
----
99

query I rowsort
SELECT + 50 AS col1 FROM tab1 cor0
----
50
50
50

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4078
SELECT - CAST( + 32 AS SIGNED ) + + + 52, - col1 col1 FROM tab2
----
20
-51
20
-67
20
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4078
SELECT - CAST ( + 32 AS INTEGER ) + + + 52, - col1 col1 FROM tab2
----
20
-51
20
-67
20
-77

query II rowsort
SELECT DISTINCT col1, + ( 32 ) + + + 58 FROM tab0
----
1
90
21
90
81
90

query II rowsort
SELECT - ( + col0 ) + + - 36 AS col2, + col1 FROM tab0 AS cor0
----
-123
21
-133
1
-51
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 67 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) < col1 * 81 + + col0 + + col1
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 * - 9 <> NULL
----

query I rowsort
SELECT DISTINCT + 49 * + - col0 AS col2 FROM tab1
----
-2499
-4165
-4459

query III rowsort
SELECT * FROM tab1 WHERE - - col2 * - col1 - - 43 <= NULL
----

query I rowsort
SELECT col2 - col2 * - 84 FROM tab0
----
3995
8415
850

query I rowsort
SELECT + 15 - + ( - - col1 ) * - - ( - col0 ) + + col0 FROM tab1
----
4383
525
780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4088
SELECT ALL col2 - CAST( + + 36 AS SIGNED ) AS col0 FROM tab1
----
23
32
60

skipif mysql # not compatible
query I rowsort label-4088
SELECT ALL col2 - CAST ( + + 36 AS INTEGER ) AS col0 FROM tab1
----
23
32
60

query I rowsort
SELECT DISTINCT 1 * 42 FROM tab0, tab1 cor0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-4090
SELECT DISTINCT col1 DIV - 86 * - col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4090
SELECT DISTINCT col1 / - 86 * - col0 FROM tab1
----
0

query I rowsort
SELECT ALL - ( - 98 ) AS col1 FROM tab2
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4092
SELECT ALL - COUNT( * ) * - 73 AS col1 FROM tab2 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-4092
SELECT ALL - COUNT ( * ) * - 73 AS col1 FROM tab2 AS cor0
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT + + 64 * + + SUM( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
-7744

skipif mysql # not compatible
query I rowsort label-4093
SELECT + + 64 * + + SUM ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
-7744

onlyif mysql # DIV for integer division: 
query I rowsort label-4094
SELECT DISTINCT col1 DIV + + 79 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4094
SELECT DISTINCT col1 / + + 79 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4095
SELECT - 56 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4095
SELECT - 56 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT ALL 58 + + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
67

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL 58 + + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT DISTINCT SUM( - col0 ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT SUM ( - col0 ) AS col1 FROM tab2
----
-185

query I rowsort
SELECT + 16 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
16
16
16

query II rowsort
SELECT ALL - - 14 AS col1, + col0 FROM tab2 AS cor0
----
14
46
14
64
14
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT - + COUNT( DISTINCT - col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4100
SELECT - + COUNT ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 10 * - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0, + 18 AS col1 FROM tab1
----
51
18
85
18
91
18

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 54 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4104
SELECT DISTINCT + COUNT( * ) AS col2, 14 AS col2 FROM tab0
----
3
14

skipif mysql # not compatible
query II rowsort label-4104
SELECT DISTINCT + COUNT ( * ) AS col2, 14 AS col2 FROM tab0
----
3
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4105
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NULL IS NULL
----
3

query I rowsort
SELECT - 79 * - col0 + - col2 FROM tab0
----
1138
6863
7564

query I rowsort
SELECT - + col2 + - + 54 + + 63 AS col2 FROM tab1 AS cor0
----
-50
-59
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT + COUNT( * ) + - 52 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-4108
SELECT + COUNT ( * ) + - 52 FROM tab2 AS cor0
----
-49

query I rowsort
SELECT ALL - col2 + - - 71 FROM tab1 AS cor0
----
-25
12
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4110
SELECT DISTINCT + 59 * + COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
531

skipif mysql # not compatible
query I rowsort label-4110
SELECT DISTINCT + 59 * + COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
531

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 + 61 IS NULL
----

query I rowsort
SELECT ALL - + ( - 89 ) - + col0 FROM tab0 AS cor0
----
-8
2
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT ALL - SUM( ALL - 49 ) AS col2 FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL - SUM ( ALL - 49 ) AS col2 FROM tab2 AS cor0
----
147

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4114
SELECT + col1 - + CAST( 26 AS SIGNED ) FROM tab1 cor0
----
-12
-21
21

skipif mysql # not compatible
query I rowsort label-4114
SELECT + col1 - + CAST ( 26 AS INTEGER ) FROM tab1 cor0
----
-12
-21
21

query I rowsort
SELECT + + 78 AS col0 FROM tab2 AS cor0 WHERE + 86 < - + col1
----

query II rowsort
SELECT ALL col0 * - col0 AS col1, col0 + + col0 AS col0 FROM tab1 AS cor0
----
-2601
102
-7225
170
-8281
182

query I rowsort
SELECT + col1 AS col1 FROM tab1 cor0 WHERE NULL <= + 48
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - ( + - ( - col2 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4119
SELECT ALL + CAST( NULL AS DECIMAL ), ( col1 ) AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4119
SELECT ALL + CAST ( NULL AS REAL ), ( col1 ) AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

query II rowsort
SELECT - col0 AS col1, col2 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT ALL - MAX( ALL col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4121
SELECT ALL - MAX ( ALL col1 ) AS col0 FROM tab2
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4122
SELECT ALL - 77 DIV - - col2 FROM tab0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL - 77 / - - col2 FROM tab0
----
-1
-7
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4123
SELECT - 1 DIV + - 49 + + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4123
SELECT - 1 / + - 49 + + col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4124
SELECT CAST( - col1 AS SIGNED ) DIV - col2 * col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4124
SELECT CAST ( - col1 AS INTEGER ) / - col2 * col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4125
SELECT ALL + 96 DIV + COUNT( ALL + 85 ) FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-4125
SELECT ALL + 96 / + COUNT ( ALL + 85 ) FROM tab0 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query II rowsort label-4126
SELECT DISTINCT MIN( ALL + col2 ) AS col1, + ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
10
-3

skipif mysql # not compatible
query II rowsort label-4126
SELECT DISTINCT MIN ( ALL + col2 ) AS col1, + ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
10
-3

query I rowsort
SELECT + col0 + + + col2 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4128
SELECT - + col2 + + col2 + + + CAST( col1 AS SIGNED ) DIV + col1 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4128
SELECT - + col2 + + col2 + + + CAST ( col1 AS INTEGER ) / + col1 AS col0 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 col1 FROM tab2, tab0 AS cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query II rowsort
SELECT - col1 + col2 - 19, - col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4131
SELECT + col2 + - ( - + 91 ) + + - col2 + col1 DIV ( 4 ) FROM tab0
----
111
91
96

skipif mysql # not compatible
query I rowsort label-4131
SELECT + col2 + - ( - + 91 ) + + - col2 + col1 / ( 4 ) FROM tab0
----
111
91
96

query I rowsort
SELECT + 37 + - col0 FROM tab1
----
-14
-48
-54

query I rowsort
SELECT + col0 * + - 28 AS col2 FROM tab2
----
-1288
-1792
-2100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4134
SELECT ALL CAST( 55 AS SIGNED ) FROM tab1
----
55
55
55

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL CAST ( 55 AS INTEGER ) FROM tab1
----
55
55
55

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 / - - ( + 15 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + 41 ) FROM tab0 AS cor0
----
-41
-41
-41

query I rowsort
SELECT ALL - 87 FROM tab1 cor0
----
-87
-87
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4138
SELECT ALL + CAST( + col2 AS SIGNED ) * + col1 + + + 1 AS col0 FROM tab1
----
1345
296
3197

skipif mysql # not compatible
query I rowsort label-4138
SELECT ALL + CAST ( + col2 AS INTEGER ) * + col1 + + + 1 AS col0 FROM tab1
----
1345
296
3197

query I rowsort
SELECT 24 + + 58 AS col2 FROM tab0
----
82
82
82

query I rowsort
SELECT - ( - 41 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

query I rowsort
SELECT ALL ( col2 ) - + 64 AS col0 FROM tab2 cor0
----
-24
-41
-6

query I rowsort
SELECT ALL + 99 * - + col1 + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( col0 + 73 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - - col0 <> NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 > col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 84 BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL + col0 * 87 FROM tab2 AS cor0
----
4002
5568
6525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col0, 18 col0 FROM tab0 AS cor0
----
1
18
21
18
81
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4148
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN col2 AND col1
----

skipif mysql # not compatible
query III rowsort label-4148
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN col2 AND col1
----

query II rowsort
SELECT ALL + + 69, + col2 AS col0 FROM tab0 AS cor0
----
69
10
69
47
69
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4150
SELECT COUNT( * ) DIV + COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4150
SELECT COUNT ( * ) / + COUNT ( * ) FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-4151
SELECT + col1 DIV + + 49, col0 AS col2 FROM tab2
----
1
46
1
64
1
75

skipif mysql # not compatible
query II rowsort label-4151
SELECT + col1 / + + 49, col0 AS col2 FROM tab2
----
1
46
1
64
1
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4152
SELECT ALL CAST( MAX( DISTINCT + CAST( + + 35 AS SIGNED ) ) AS SIGNED ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL CAST ( MAX ( DISTINCT + CAST ( + + 35 AS INTEGER ) ) AS INTEGER ) FROM tab2
----
35

query I rowsort
SELECT + 63 FROM tab1 WHERE NOT NULL <> + + col1 - + - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4154
SELECT ( - - COUNT( * ) ) col1, + ( 49 ) FROM tab0
----
3
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4154
SELECT ( - - COUNT ( * ) ) col1, + ( 49 ) FROM tab0
----
3
49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4155
SELECT DISTINCT col0 * - 51 * - - 42 AS col0, ( - 43 ) * CAST( col1 AS SIGNED ) FROM tab2 cor0
----
-137088
-3311
-160650
-2881
-98532
-2193

skipif mysql # not compatible
query II rowsort label-4155
SELECT DISTINCT col0 * - 51 * - - 42 AS col0, ( - 43 ) * CAST ( col1 AS INTEGER ) FROM tab2 cor0
----
-137088
-3311
-160650
-2881
-98532
-2193

query II rowsort
SELECT col2 * 74 * col2 * + ( - 23 ) AS col2, + col0 FROM tab2 cor0
----
-2723200
64
-5725528
75
-900358
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT MAX( 1 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4157
SELECT MAX ( 1 ) AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4158
SELECT DISTINCT col0 DIV + - col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4158
SELECT DISTINCT col0 / + - col1 FROM tab2 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4159
SELECT + MAX( DISTINCT - - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4159
SELECT + MAX ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4160
SELECT ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT DISTINCT COUNT( * ) col1 FROM tab1 AS cor0 WHERE 61 + + ( col2 ) IN ( - 22 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4161
SELECT DISTINCT COUNT ( * ) col1 FROM tab1 AS cor0 WHERE 61 + + ( col2 ) IN ( - 22 )
----
0

query I rowsort
SELECT DISTINCT - col0 + - + 32 AS col1 FROM tab0 AS cor0
----
-119
-129
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-4163
SELECT - 95 AS col0, MAX( DISTINCT col0 ) FROM tab2 cor0
----
-95
75

skipif mysql # not compatible
query II rowsort label-4163
SELECT - 95 AS col0, MAX ( DISTINCT col0 ) FROM tab2 cor0
----
-95
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4164
SELECT ALL - col1 DIV - col0 + - col0 AS col0 FROM tab2
----
-45
-63
-75

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL - col1 / - col0 + - col0 AS col0 FROM tab2
----
-45
-63
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT ALL 80 + + - MAX( ALL - - 77 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4165
SELECT ALL 80 + + - MAX ( ALL - - 77 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4166
SELECT ALL ( - 91 ) * col0 + CAST( 53 AS SIGNED ) * - 4 AS col1 FROM tab1
----
-4853
-7947
-8493

skipif mysql # not compatible
query I rowsort label-4166
SELECT ALL ( - 91 ) * col0 + CAST ( 53 AS INTEGER ) * - 4 AS col1 FROM tab1
----
-4853
-7947
-8493

query I rowsort
SELECT ALL - 5 - - - 42 + - + 83 FROM tab0
----
-130
-130
-130

query I rowsort
SELECT + + col1 * + - col1 * + col2 * col2 + - col2 FROM tab0 AS cor0
----
-14493296
-44110
-9900

query I rowsort
SELECT ALL - 16 + - 74 FROM tab1 AS cor0
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT - SUM( DISTINCT + 61 ) AS col1 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-4170
SELECT - SUM ( DISTINCT + 61 ) AS col1 FROM tab0 AS cor0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4171
SELECT DISTINCT * FROM tab2 WHERE 90 * - col1 IN ( + + col2, CAST( NULL AS SIGNED ), 81, + col1, + + col2 )
----

skipif mysql # not compatible
query III rowsort label-4171
SELECT DISTINCT * FROM tab2 WHERE 90 * - col1 IN ( + + col2, CAST ( NULL AS INTEGER ), 81, + col1, + + col2 )
----

query I rowsort
SELECT DISTINCT - - 20 FROM tab1 AS cor0 WHERE NOT - 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT ALL 70 * + COUNT( * ) FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL 70 * + COUNT ( * ) FROM tab1 AS cor0
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT DISTINCT SUM( - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT SUM ( - col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT - + 96 * + - col1 FROM tab1 AS cor0
----
1344
4512
480

onlyif mysql # DIV for integer division: 
query II rowsort label-4176
SELECT 41 col1, 69 DIV + ( - col1 ) + + col2 AS col2 FROM tab2 cor0
----
41
22
41
40
41
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4176
SELECT 41 col1, 69 / + ( - col1 ) + + col2 AS col2 FROM tab2 cor0
----
41
22
41
40
41
57

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT ( - 63 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT + - 27 * + COUNT( * ) * - SUM( + - col2 ) FROM tab2 AS cor0
----
-9801

skipif mysql # not compatible
query I rowsort label-4178
SELECT + - 27 * + COUNT ( * ) * - SUM ( + - col2 ) FROM tab2 AS cor0
----
-9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, 3 AS col0 FROM tab1
----
51
3
85
3
91
3

query I rowsort
SELECT ALL 83 * + 57 FROM tab1, tab0 AS cor0
----
9 values hashing to 0e6b8ddeedc480a3f417611607c85d1f

query II rowsort
SELECT ALL 23, + col0 FROM tab0
----
23
15
23
87
23
97

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT + col2 <= 20
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-4183
SELECT MIN( - 33 ) AS col2, 13 FROM tab1
----
-33
13

skipif mysql # not compatible
query II rowsort label-4183
SELECT MIN ( - 33 ) AS col2, 13 FROM tab1
----
-33
13

query I rowsort
SELECT DISTINCT - col2 * ( col1 ) FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT ALL + col1 * + 13 FROM tab1
----
182
611
65

query II rowsort
SELECT col2 * + - col1, col1 AS col2 FROM tab2
----
-1173
51
-3080
77
-3886
67

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 96 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT ALL - + 17 * - + COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL - + 17 * - + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
48

query I rowsort
SELECT DISTINCT - - 7 AS col0 FROM tab2 AS cor0 WHERE NOT NULL = col1 * col0
----

query I rowsort
SELECT DISTINCT + col2 + + 57 FROM tab0 cor0
----
104
156
67

query I rowsort
SELECT ALL col2 + - - col2 + 73 AS col1 FROM tab2
----
119
153
189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4193
SELECT DISTINCT - col0 * - - CAST( - - col2 AS SIGNED ) col1 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4193
SELECT DISTINCT - col0 * - - CAST ( - - col2 AS INTEGER ) col1 FROM tab2
----
-1058
-2560
-4350

query II rowsort
SELECT ALL 66 * - 68 AS col1, - col0 * + col2 FROM tab1 AS cor0
----
-4488
-4896
-4488
-5015
-4488
-6188

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 BETWEEN NULL AND - col0
----

query I rowsort
SELECT + + col2 + - 75 FROM tab1 cor0
----
-16
-7
21

onlyif mysql # DIV for integer division: 
query I rowsort label-4197
SELECT DISTINCT + + 10 DIV + col1 FROM tab1 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT + + 10 / + col1 FROM tab1 AS cor0
----
0
2

query I rowsort
SELECT col2 * 79 + - ( + + col1 ) FROM tab1 AS cor0
----
4656
5325
7570

query II rowsort
SELECT col0, + 25 FROM tab1
----
51
25
85
25
91
25

query I rowsort
SELECT ALL col0 * + - col2 + - col2 + + + 74 FROM tab2
----
-1007
-2526
-4334

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT COUNT( * ) * SUM( + col2 ) AS col1 FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-4201
SELECT COUNT ( * ) * SUM ( + col2 ) AS col1 FROM tab1
----
669

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT DISTINCT COUNT( * ) + + + 60 AS col2 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-4202
SELECT DISTINCT COUNT ( * ) + + + 60 AS col2 FROM tab1
----
63

query I rowsort
SELECT DISTINCT 62 - col1 * - + col2 * col0 FROM tab0
----
18332
57167
9665

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4204
SELECT DISTINCT - + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4204
SELECT DISTINCT - + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 79 * - col0 + 83 - + + col2 FROM tab0 AS cor0
----
1221
6946
7647

query I rowsort
SELECT ALL 32 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT - 2 <= NULL
----

query I rowsort
SELECT ALL 75 * + col2 * + col1 - + col1 AS col0 FROM tab0
----
15729
285444
7424

query III rowsort
SELECT ALL * FROM tab0 WHERE - 8 IS NULL
----

query I rowsort
SELECT ALL ( - - col2 ) AS col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL + ( + col2 ) * - + col0 AS col1 FROM tab0 cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT COUNT( ALL col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4212
SELECT COUNT ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - 29 * - 1 + - col1 FROM tab1 AS cor0
----
-18
15
24

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + + 65 NOT BETWEEN + col0 * col2 * col1 AND NULL AND NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT col1 * + - col0 * col1 FROM tab1
----
-201019
-2125
-9996

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT ALL + + COUNT( * ) FROM tab1 WHERE NOT - + col1 < col2
----
0

skipif mysql # not compatible
query I rowsort label-4216
SELECT ALL + + COUNT ( * ) FROM tab1 WHERE NOT - + col1 < col2
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 * + - col0 <= col0 * - col0 * col2
----

query I rowsort
SELECT - + col2 + - - col1 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - 67
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 17 + 71 + - - col2 + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 35 AS col1 FROM tab0 cor0
----
-35

query I rowsort
SELECT + 93 AS col1 FROM tab2 cor0 WHERE NOT - col0 * - - col0 IS NOT NULL
----

query I rowsort
SELECT - + 75 + + 13 * + col1 FROM tab0 AS cor0
----
-62
198
978

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4223
SELECT - - col2 + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + - col2 + + + col1 + 27 * 29 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4223
SELECT - - col2 + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + - col2 + + + col1 + 27 * 29 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4224
SELECT + + 21 + - CAST( NULL AS SIGNED ) / - COUNT( * ) * + + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4224
SELECT + + 21 + - CAST ( NULL AS INTEGER ) / - COUNT ( * ) * + + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + 6 + + - col0 * - col0 * - + 15 - ( - col0 ) FROM tab0 AS cor0
----
-113442
-141032
-3354

query I rowsort
SELECT - 0 + col0 FROM tab0
----
15
87
97

query I rowsort
SELECT - col2 + - 39 + - ( 54 ) * col2 AS col0 FROM tab2
----
-1304
-2239
-3229

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT - MIN( DISTINCT + - 81 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-4228
SELECT - MIN ( DISTINCT + - 81 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
81

query I rowsort
SELECT DISTINCT - 4 * - 21 + 41 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
125

query I rowsort
SELECT DISTINCT ( + + ( + col0 ) ) FROM tab0
----
15
87
97

query I rowsort
SELECT - col2 + + - 95 FROM tab0 WHERE - + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4232
SELECT DISTINCT - 56, 98 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-56
NULL

skipif mysql # not compatible
query II rowsort label-4232
SELECT DISTINCT - 56, 98 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-56
NULL

query I rowsort
SELECT + 90 FROM tab2 AS cor0 WHERE - col0 * + + col2 IS NOT NULL
----
90
90
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4234
SELECT col2 / ( CAST( NULL AS SIGNED ) ) * + + 87 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4234
SELECT col2 / ( CAST ( NULL AS INTEGER ) ) * + + 87 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, 82 FROM tab0 AS cor0
----
-1
82
-21
82
-81
82

query I rowsort
SELECT ALL + + col2 + + - col1 * col0 AS col0 FROM tab0 AS cor0
----
-1168
-1817
2

query I rowsort
SELECT ALL - + col0 * + 2 * + ( - + col0 ) + + 3 FROM tab2 AS cor0
----
11253
4235
8195

query I rowsort
SELECT DISTINCT + ( 64 ) + 49 AS col2 FROM tab1 AS cor0
----
113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4239
SELECT + CAST( NULL AS SIGNED ) - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4239
SELECT + CAST ( NULL AS INTEGER ) - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 FROM tab0 WHERE + col0 * col2 - - col0 > + col0
----
-10
-47
-99

query I rowsort
SELECT + 93 + 47 FROM tab2
----
140
140
140

query II rowsort
SELECT 21 * - 92 + + - col1, col1 FROM tab0
----
-1933
1
-1953
21
-2013
81

query I rowsort
SELECT - - col1 + - 35 * - 90 * col1 AS col0 FROM tab0 AS cor0
----
255231
3151
66171

query II rowsort
SELECT DISTINCT - + col2 - + col2 - - col2 + + col2 * - + ( col1 ) * 51, col2 * - 46 AS col2 FROM tab0 AS cor0
----
-10720
-460
-194204
-2162
-5148
-4554

query I rowsort
SELECT DISTINCT + ( col0 ) * + col0 AS col0 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-4246
SELECT + + ( - + 35 ) DIV col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4246
SELECT + + ( - + 35 ) / col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 1 * - col0 AS col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab1 cor0 WHERE 54 <> + col2
----
3

skipif mysql # not compatible
query I rowsort label-4248
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE 54 <> + col2
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 * + - col1 * + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4250
SELECT - - CAST( - + col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4250
SELECT - - CAST ( - + col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query II rowsort label-4251
SELECT + + col0, - col2 DIV - 85 FROM tab1 AS cor0
----
51
1
85
0
91
0

skipif mysql # not compatible
query II rowsort label-4251
SELECT + + col0, - col2 / - 85 FROM tab1 AS cor0
----
51
1
85
0
91
0

query II rowsort
SELECT - col1 * - - 84 * ( + + col1 ) AS col0, col1 AS col0 FROM tab0 AS cor0
----
-37044
21
-551124
81
-84
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= - col0 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT + SUM( ALL col1 ) AS col2 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-4254
SELECT + SUM ( ALL col1 ) AS col2 FROM tab1 cor0
----
66

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 91 < col2
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - 68 * 6 col0, + 24 FROM tab0 AS cor0
----
-19176
24
-40392
24
-4080
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4257
SELECT DISTINCT 20 DIV + col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT 20 / + col0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col2, col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT ALL + SUM( DISTINCT - - 97 ) FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4260
SELECT ALL + SUM ( DISTINCT - - 97 ) FROM tab1 AS cor0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 33 ) col1 FROM tab1
----
-33

query II rowsort
SELECT ( col0 ) AS col1, col2 FROM tab0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT + ( + + col2 ) AS col0 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4265
SELECT + 52 DIV col1 AS col1, + col0 * + CAST( - - 68 AS SIGNED ) FROM tab2 AS cor0
----
0
4352
0
5100
1
3128

skipif mysql # not compatible
query II rowsort label-4265
SELECT + 52 / col1 AS col1, + col0 * + CAST ( - - 68 AS INTEGER ) FROM tab2 AS cor0
----
0
4352
0
5100
1
3128

query I rowsort
SELECT ALL + - 84 FROM tab2 AS cor0 WHERE NOT + col1 * - + 70 > - col1 + col1
----
-84
-84
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 34 + - 57 col1 FROM tab1 AS cor0
----
-91

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE 4 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT DISTINCT + 30 + + COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4269
SELECT DISTINCT + 30 + + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
39

query II rowsort
SELECT + col2 + - col1 + - col0 AS col2, + 73 FROM tab2 AS cor0
----
-101
73
-74
73
-84
73

onlyif mysql # aggregate syntax: 
query II rowsort label-4271
SELECT ALL ( + MAX( ALL - 84 ) ), - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-84
-3

skipif mysql # not compatible
query II rowsort label-4271
SELECT ALL ( + MAX ( ALL - 84 ) ), - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-84
-3

query I rowsort
SELECT DISTINCT + 33 + 33 AS col2 FROM tab1 AS cor0
----
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + col2 BETWEEN + col0 AND - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 36 * - col1 col0, 80 * - + 53 FROM tab2 AS cor0 WHERE NOT col2 + + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4275
SELECT * FROM tab2 AS cor0 WHERE + ( 83 ) <> - - ( - CAST( NULL AS SIGNED ) ) * + col1
----

skipif mysql # not compatible
query III rowsort label-4275
SELECT * FROM tab2 AS cor0 WHERE + ( 83 ) <> - - ( - CAST ( NULL AS INTEGER ) ) * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4276
SELECT + col2 * - + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4276
SELECT + col2 * - + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4277
SELECT - 61 * 94, + 32 + + + COUNT( * ) AS col2 FROM tab2 WHERE + col1 - col2 IS NOT NULL
----
-5734
35

skipif mysql # not compatible
query II rowsort label-4277
SELECT - 61 * 94, + 32 + + + COUNT ( * ) AS col2 FROM tab2 WHERE + col1 - col2 IS NOT NULL
----
-5734
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4278
SELECT col2 DIV col0 * col2 FROM tab1
----
0
0
96

skipif mysql # not compatible
query I rowsort label-4278
SELECT col2 / col0 * col2 FROM tab1
----
0
0
96

query III rowsort
SELECT * FROM tab0 WHERE - 38 IS NULL
----

query I rowsort
SELECT + 50 - - + col0 AS col2 FROM tab2
----
114
125
96

query I rowsort
SELECT DISTINCT - 83 * 87 FROM tab1 AS cor0
----
-7221

query I rowsort
SELECT ALL + col0 * + col2 * - col1 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT + - 70 * - + col2 FROM tab2 AS cor0
----
1610
2800
4060

query I rowsort
SELECT ALL + + 13 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT - COUNT( - 91 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4285
SELECT - COUNT ( - 91 ) FROM tab0
----
-3

query II rowsort
SELECT DISTINCT - + col2 * + + 12 AS col0, - col1 AS col2 FROM tab2 AS cor0
----
-276
-51
-480
-77
-696
-67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT DISTINCT + SUM( DISTINCT + col2 ) * 51 FROM tab2 AS cor0
----
6171

skipif mysql # not compatible
query I rowsort label-4288
SELECT DISTINCT + SUM ( DISTINCT + col2 ) * 51 FROM tab2 AS cor0
----
6171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4289
SELECT ALL ( + CAST( NULL AS SIGNED ) ) * col0 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) * col0 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 34 + - 37 <> col2 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 76 * + + 49 FROM tab2 AS cor0
----
3724
3724
3724

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 77 col1 FROM tab1 AS cor0
----
77
77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-4293
SELECT DISTINCT - col2 * + + 0 * + + col0 * - col0 * - col2 DIV - col2 + + col2 * + 85 + 55 * - + ( - 40 ) FROM tab2 AS cor0
----
4155
5600
7130

skipif mysql # not compatible
query I rowsort label-4293
SELECT DISTINCT - col2 * + + 0 * + + col0 * - col0 * - col2 / - col2 + + col2 * + 85 + 55 * - + ( - 40 ) FROM tab2 AS cor0
----
4155
5600
7130

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 * 82 * - col0 col2 FROM tab2
----
-192372
-267648
-313650

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT ALL + MAX( DISTINCT + 76 ) AS col0 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-4295
SELECT ALL + MAX ( DISTINCT + 76 ) AS col0 FROM tab0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4296
SELECT ALL + col2 * + CAST( - + 33 AS SIGNED ) FROM tab2
----
-1320
-1914
-759

skipif mysql # not compatible
query I rowsort label-4296
SELECT ALL + col2 * + CAST ( - + 33 AS INTEGER ) FROM tab2
----
-1320
-1914
-759

query I rowsort
SELECT - col1 + col2 AS col1 FROM tab0 WHERE NOT ( NOT 84 + - col1 IS NOT NULL )
----
-11
-34
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4298
SELECT - COUNT( * ) DIV COUNT( * ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4298
SELECT - COUNT ( * ) / COUNT ( * ) AS col2 FROM tab2
----
-1

query I rowsort
SELECT - - col2 - col2 FROM tab1 cor0 WHERE NULL <= col1 * - col2 / - col0
----

query I rowsort
SELECT 28 + - + col1 FROM tab1 AS cor0
----
-19
14
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4301
SELECT + CAST( NULL AS SIGNED ) + 59 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4301
SELECT + CAST ( NULL AS INTEGER ) + 59 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( col0 ) * + col0 AS col0 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT ALL - 56 + col1 AS col0 FROM tab2
----
-5
11
21

query I rowsort
SELECT ALL col1 * 26 FROM tab1
----
1222
130
364

query III rowsort
SELECT * FROM tab0 WHERE ( col1 / - 81 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT - COUNT( ALL 14 ) AS col2 FROM tab2 WHERE - col0 + col1 * 3 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4306
SELECT - COUNT ( ALL 14 ) AS col2 FROM tab2 WHERE - col0 + col1 * 3 IS NULL
----
0

query I rowsort
SELECT ALL - 27 * col2 AS col2 FROM tab1
----
-1593
-1836
-2592

query I rowsort
SELECT ALL + ( 83 ) FROM tab0
----
83
83
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4309
SELECT DISTINCT 6 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4309
SELECT DISTINCT 6 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 BETWEEN ( - ( - col2 ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT DISTINCT SUM( DISTINCT col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4311
SELECT DISTINCT SUM ( DISTINCT col1 ) FROM tab1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4312
SELECT 80 DIV col2 AS col0 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4312
SELECT 80 / col2 AS col0 FROM tab2
----
1
2
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4313
SELECT 17 DIV - 62 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4313
SELECT 17 / - 62 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col2 * + col1 AS col0 FROM tab2 WHERE NULL NOT IN ( - 51 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4315
SELECT - 3 DIV - ( - 96 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4315
SELECT - 3 / - ( - 96 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + 20 - col1 * + col0 FROM tab0
----
-1195
-1807
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT DISTINCT - AVG ( ALL ( 21 ) ) * + AVG ( col0 + + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT - AVG ( ALL ( 21 ) ) * + AVG ( col0 + + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT ( 62 ) * COUNT( * ) AS col1 FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-4318
SELECT ( 62 ) * COUNT ( * ) AS col1 FROM tab0
----
186

query I rowsort
SELECT DISTINCT col2 * - 39 + - col0 AS col2 FROM tab1
----
-2386
-2743
-3795

query I rowsort
SELECT 90 AS col1 FROM tab1 WHERE NOT col2 > NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE ( + col1 ) > NULL
----

query I rowsort
SELECT DISTINCT - col0 * 14 AS col0 FROM tab0 WHERE + col0 * + col1 BETWEEN ( col1 ) AND col0
----
-1358

query I rowsort
SELECT DISTINCT - col0 * 24 AS col0 FROM tab2
----
-1104
-1536
-1800

query I rowsort
SELECT - ( 64 ) * col1 AS col0 FROM tab2
----
-3264
-4288
-4928

onlyif mysql # aggregate syntax: 
query I rowsort label-4325
SELECT MIN( ALL col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4325
SELECT MIN ( ALL col0 ) AS col1 FROM tab1
----
51

query I rowsort
SELECT - 31 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 4 * - col0 AS col2 FROM tab0 WHERE NOT col1 + 75 IS NULL
----
-348
-388
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 * + 14 col2 FROM tab0
----
1215
15
315

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE col0 + col2 <> 54
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 col1 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT ALL - COUNT( DISTINCT col2 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL - COUNT ( DISTINCT col2 ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT ALL + COUNT( ALL col0 ) * - COUNT( + col0 * - 36 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL + COUNT ( ALL col0 ) * - COUNT ( + col0 * - 36 ) FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4333
SELECT CAST( ( 84 ) AS SIGNED ) FROM tab0
----
84
84
84

skipif mysql # not compatible
query I rowsort label-4333
SELECT CAST ( ( 84 ) AS INTEGER ) FROM tab0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT MIN( 95 ) AS col0 FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-4334
SELECT MIN ( 95 ) AS col0 FROM tab2
----
95

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + col1 * col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 BETWEEN ( - col2 ) AND col2
----
15
81
47
97
1
99

query I rowsort
SELECT ALL + 2 * - col2 FROM tab0 AS cor0
----
-198
-20
-94

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4339
SELECT DISTINCT 48 DIV - COUNT( * ) FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT 48 / - COUNT ( * ) FROM tab2 AS cor0
----
-16

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + - col1 BETWEEN NULL AND col1
----

query I rowsort
SELECT - - 83 + - 29 FROM tab1 AS cor0
----
54
54
54

onlyif mysql # DIV for integer division: 
query I rowsort label-4342
SELECT DISTINCT - + col0 DIV col1 AS col2 FROM tab2 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT - + col0 / col1 AS col2 FROM tab2 cor0
----
-1
0

query I rowsort
SELECT DISTINCT - - col1 * + 25 + col0 * + col2 AS col0 FROM tab1 AS cor0
----
5140
5246
7363

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col2 + - + col1 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE NOT 34 IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4348
SELECT DISTINCT ( + - CAST( - col2 AS SIGNED ) ) + col0 FROM tab1
----
144
147
159

skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT ( + - CAST ( - col2 AS INTEGER ) ) + col0 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT DISTINCT SUM( ALL + + 23 ) * MAX( ALL 47 ) AS col1 FROM tab0
----
3243

skipif mysql # not compatible
query I rowsort label-4349
SELECT DISTINCT SUM ( ALL + + 23 ) * MAX ( ALL 47 ) AS col1 FROM tab0
----
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT 12 * + COUNT( * ) * 24 FROM tab0
----
864

skipif mysql # not compatible
query I rowsort label-4350
SELECT 12 * + COUNT ( * ) * 24 FROM tab0
----
864

onlyif mysql # aggregate syntax: 
query I rowsort label-4351
SELECT 30 * - + COUNT( * ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-4351
SELECT 30 * - + COUNT ( * ) FROM tab1
----
-90

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4352
SELECT - CAST( + - ( 71 ) AS SIGNED ) DIV col0 AS col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-4352
SELECT - CAST ( + - ( 71 ) AS INTEGER ) / col0 AS col0 FROM tab0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + - col1 col0 FROM tab0
----
1215
1827
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * - 26 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col0 * ( + col0 ) * + 27 AS col2 FROM tab2 AS cor0
----
-110592
-151875
-57132

query I rowsort
SELECT + 29 AS col1 FROM tab1 AS cor0 WHERE 53 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4357
SELECT * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) * col1 - + 43 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4357
SELECT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * col1 - + 43 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 54 >= col0
----
46
51
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4359
SELECT - COUNT( * ) + - 90 / + ( ( + CAST( NULL AS DECIMAL ) ) ) FROM tab0 AS cor0 WHERE - 25 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4359
SELECT - COUNT ( * ) + - 90 / + ( ( + CAST ( NULL AS REAL ) ) ) FROM tab0 AS cor0 WHERE - 25 IS NULL
----
NULL

query II rowsort
SELECT DISTINCT col2 AS col1, col2 AS col1 FROM tab2 cor0
----
23
23
40
40
58
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 4 - - + 54 IS NOT NULL
----

query I rowsort
SELECT + + ( - 57 ) * 64 AS col1 FROM tab1 AS cor0
----
-3648
-3648
-3648

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT + MIN( + + 9 ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4363
SELECT + MIN ( + + 9 ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT - - 31 * + + 59 AS col2 FROM tab2 AS cor0
----
1829
1829
1829

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT - 77 * - - COUNT( * ) FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-4365
SELECT - 77 * - - COUNT ( * ) FROM tab1
----
-231

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 IN ( - + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4367
SELECT - 44 * - 83 * - col1 * CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4367
SELECT - 44 * - 83 * - col1 * CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL - + SUM( + 42 ) col2 FROM tab0 WHERE ( NULL ) <= - col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4368
SELECT ALL - + SUM ( + 42 ) col2 FROM tab0 WHERE ( NULL ) <= - col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4369
SELECT + 74 AS col2 FROM tab0 WHERE NOT - 86 * col1 / + 24 NOT BETWEEN ( - col2 + CAST( NULL AS SIGNED ) * 62 ) AND + col2 + + 95 * col2
----

skipif mysql # not compatible
query I rowsort label-4369
SELECT + 74 AS col2 FROM tab0 WHERE NOT - 86 * col1 / + 24 NOT BETWEEN ( - col2 + CAST ( NULL AS INTEGER ) * 62 ) AND + col2 + + 95 * col2
----

query I rowsort
SELECT DISTINCT col0 * col2 FROM tab2 WHERE ( col2 * 56 + + col2 ) < + 57 - + col1 * + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 + col2 * - - 26 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4372
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 NOT IN ( 12 + - col1 + + col2 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4372
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 NOT IN ( 12 + - col1 + + col2 * CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT MAX( ALL - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( 18 ) NOT IN ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4373
SELECT MAX ( ALL - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( 18 ) NOT IN ( + col2 )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT + 96 AS col0 FROM tab2 cor0
----
96
96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col2, col0 col0 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4377
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4377
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4378
SELECT ALL + ( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL + ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 9 * + col0 * + col1 FROM tab0
----
-10935
-16443
-873

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NOT - col0 * - - col2 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT ALL + COUNT( * ) * COUNT( 37 ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL + COUNT ( * ) * COUNT ( 37 ) FROM tab2 cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 73 + - 64 * + col1 * - col1 * - 17 >= col1 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 * - + 19 NOT BETWEEN NULL AND - - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col2 ) > - col2 * 52 * + ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4385
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 + + ( - col2 ) * + + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4385
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 + + ( - col2 ) * + + col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL > - ( 74 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4387
SELECT ALL + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT + col0 + - 70 FROM tab2 AS cor0
----
-24
-6
5

query I rowsort
SELECT DISTINCT + - 91 * - - col2 AS col1 FROM tab1 AS cor0
----
-5369
-6188
-8736

query I rowsort
SELECT DISTINCT + 48 * + 36 * col0 * 98 + - 25 FROM tab0
----
14732903
16426343
2540135

query II rowsort
SELECT col0, col0 - 23 * - + col2 AS col1 FROM tab1
----
51
2259
85
1442
91
1655

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( + 76 ) AND ( - col2 )
----

query I rowsort
SELECT ALL + 6 + - 88 + - 46 FROM tab0
----
-128
-128
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-4394
SELECT DISTINCT COUNT( ALL col2 ) * + + 93 AS col2 FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-4394
SELECT DISTINCT COUNT ( ALL col2 ) * + + 93 AS col2 FROM tab2
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4395
SELECT - CAST( col2 AS SIGNED ) AS col1 FROM tab2 WHERE ( - - col0 + col1 * + 3 ) < - col1 + + 92 * col2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4395
SELECT - CAST ( col2 AS INTEGER ) AS col1 FROM tab2 WHERE ( - - col0 + col1 * + 3 ) < - col1 + + 92 * col2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4396
SELECT + 34, - SUM( 52 ) AS col1 FROM tab1 WHERE - col2 <= NULL
----
34
NULL

skipif mysql # not compatible
query II rowsort label-4396
SELECT + 34, - SUM ( 52 ) AS col1 FROM tab1 WHERE - col2 <= NULL
----
34
NULL

query I rowsort
SELECT DISTINCT - col2 * - - ( - 31 ) AS col1 FROM tab0
----
1457
3069
310

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 59 - col1 + + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * - + col2 * col2 * - + col1 + - 18 FROM tab1 AS cor0
----
10214398
1806318
87007

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, col0 + + - col1 + + 24 FROM tab2 AS cor0
----
51
19
67
32
77
11

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT DISTINCT MAX( + col2 ) - - COUNT( * ) AS col0 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-4401
SELECT DISTINCT MAX ( + col2 ) - - COUNT ( * ) AS col0 FROM tab0
----
102

query I rowsort
SELECT - + col2 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT 82 * + col1 - + col1 FROM tab1 AS cor0
----
1134
3807
405

onlyif mysql # DIV for integer division: 
query I rowsort label-4404
SELECT - 16 DIV + ( - 69 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4404
SELECT - 16 / + ( - 69 ) FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( - + col2 ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4406
SELECT + CAST( - ( - - COUNT( * ) ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4406
SELECT + CAST ( - ( - - COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL BETWEEN NULL AND + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4408
SELECT + col1 DIV - - 66 + - - col1 * - 97 AS col1 FROM tab2 AS cor0
----
-4947
-6498
-7468

skipif mysql # not compatible
query I rowsort label-4408
SELECT + col1 / - - 66 + - - col1 * - 97 AS col1 FROM tab2 AS cor0
----
-4947
-6498
-7468

query I rowsort
SELECT + + 45 FROM tab0 AS cor0 WHERE NOT col0 / + col2 / + col1 > NULL
----

query II rowsort
SELECT DISTINCT + col1, ( + 36 ) * col2 + + + col0 + ( col0 ) AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4411
SELECT ( + 59 ) * CAST( - - col1 AS SIGNED ) FROM tab1 AS cor0
----
2773
295
826

skipif mysql # not compatible
query I rowsort label-4411
SELECT ( + 59 ) * CAST ( - - col1 AS INTEGER ) FROM tab1 AS cor0
----
2773
295
826

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 9 > col1
----
51
14
96
91
47
68

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 53 IS NOT NULL
----

query I rowsort
SELECT ALL + 6 AS col2 FROM tab2
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 col0 FROM tab0
----
49

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 87 + - ( col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT 14 * - COUNT( * ) AS col1 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-4417
SELECT 14 * - COUNT ( * ) AS col1 FROM tab1
----
-42

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + - 2
----

query II rowsort
SELECT DISTINCT 1, + col1 FROM tab2
----
1
51
1
67
1
77

query II rowsort
SELECT 38, col1 AS col2 FROM tab2
----
38
51
38
67
38
77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 <= col2
----

query I rowsort
SELECT - + ( + ( - 54 ) ) AS col1 FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE col2 + col2 <> - - col1
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 31 IS NULL
----

query II rowsort
SELECT + - col0 AS col2, col2 + col0 FROM tab1 WHERE NOT NULL NOT BETWEEN col1 AND + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4426
SELECT - + CAST( COUNT( DISTINCT - col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4426
SELECT - + CAST ( COUNT ( DISTINCT - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - col1 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4429
SELECT 64 + COUNT( * ) AS col0 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-4429
SELECT 64 + COUNT ( * ) AS col0 FROM tab1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT ALL MAX( ALL + - col2 ) + MAX( col0 ) FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-4430
SELECT ALL MAX ( ALL + - col2 ) + MAX ( col0 ) FROM tab2
----
52

query I rowsort
SELECT DISTINCT - col2 + - 26 FROM tab1
----
-122
-85
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT SUM( ALL - 53 ) AS col1 FROM tab2
----
-159

skipif mysql # not compatible
query I rowsort label-4432
SELECT SUM ( ALL - 53 ) AS col1 FROM tab2
----
-159

onlyif mysql # aggregate syntax: 
query II rowsort label-4433
SELECT 98 col2, COUNT( * ) AS col2 FROM tab2
----
98
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4433
SELECT 98 col2, COUNT ( * ) AS col2 FROM tab2
----
98
3

query II rowsort
SELECT + col1, col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT ALL - - col0 - 63 * col2 * col1 AS col1 FROM tab1 AS cor0
----
-18500
-201257
-84621

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 >= col0 * + 28
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 12 BETWEEN NULL AND + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4438
SELECT ALL - CAST( - - col0 AS SIGNED ) + - col2 + - + col2 AS col1 FROM tab2
----
-144
-191
-92

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL - CAST ( - - col0 AS INTEGER ) + - col2 + - + col2 AS col1 FROM tab2
----
-144
-191
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4439
SELECT ALL - COUNT( * ) * + CAST( - + 44 AS SIGNED ) AS col1 FROM tab2 WHERE col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL - COUNT ( * ) * + CAST ( - + 44 AS INTEGER ) AS col1 FROM tab2 WHERE col2 = NULL
----
0

query II rowsort
SELECT col0 + - col1, + 15 AS col0 FROM tab2
----
-13
15
-5
15
8
15

onlyif mysql # DIV for integer division: 
query I rowsort label-4441
SELECT DISTINCT col2 + - - col1 + col2 DIV + 41 FROM tab1
----
112
116
65

skipif mysql # not compatible
query I rowsort label-4441
SELECT DISTINCT col2 + - - col1 + col2 / + 41 FROM tab1
----
112
116
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 31 + - col1 col2, col0 AS col1 FROM tab1
----
-16
91
17
51
26
85

query II rowsort
SELECT - 46 AS col1, + col2 AS col2 FROM tab2 AS cor0
----
-46
23
-46
40
-46
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4444
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 + + + col1 NOT IN ( + + ( - - col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 + + + col1 NOT IN ( + + ( - - col1 ) )
----
0

query I rowsort
SELECT ALL + - col1 * + - col1 * - col2 AS col2 FROM tab1 AS cor0
----
-1475
-150212
-18816

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT ALL + COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4446
SELECT ALL + COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4447
SELECT 32 DIV + - col0 AS col0 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4447
SELECT 32 / + - col0 AS col0 FROM tab0 AS cor0
----
-2
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > col0 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ( - 9 ) * - COUNT( * ) AS col2 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-4451
SELECT ( - 9 ) * - COUNT ( * ) AS col2 FROM tab1
----
27

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE NOT ( NULL IN ( - col2 ) )
----

query I rowsort
SELECT - 75 FROM tab1 WHERE NOT ( 38 + col2 + - + 31 IS NULL )
----
-75
-75
-75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 > NULL
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT NULL > col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4456
SELECT ALL - + 25 * - - col0 * - CAST( NULL AS DECIMAL ) 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-4456
SELECT ALL - + 25 * - - col0 * - CAST ( NULL AS REAL ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 16 * - col1 FROM tab0 AS cor0
----
1296
16
336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + + - 97 col2 FROM tab2 AS cor0
----
-148
-164
-174

query I rowsort
SELECT ALL + col0 + - + col0 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL + col1 / - col0, + 76 FROM tab1 AS cor0 WHERE NOT NULL = col1 / 62 * + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4461
SELECT CAST( NULL AS SIGNED ) * - col0 - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4461
SELECT CAST ( NULL AS INTEGER ) * - col0 - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4462
SELECT MAX( + + 96 ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4462
SELECT MAX ( + + 96 ) FROM tab2 AS cor0
----
96

query II rowsort
SELECT col1, col2 * - col1 - - 54 - col1 FROM tab1 AS cor0
----
14
-1304
47
-3189
5
-246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4464
SELECT - 46, - MIN( col1 ) AS col0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) < NULL
----
-46
NULL

skipif mysql # not compatible
query II rowsort label-4464
SELECT - 46, - MIN ( col1 ) AS col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) < NULL
----
-46
NULL

query I rowsort
SELECT ALL - - col1 AS col2 FROM tab0 cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 + + + col0 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT DISTINCT - MAX( - + col1 ) + MIN( ALL + ( - col2 ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4467
SELECT DISTINCT - MAX ( - + col1 ) + MIN ( ALL + ( - col2 ) ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT DISTINCT 71 + + - 96 FROM tab0 AS cor0
----
-25

query I rowsort
SELECT ALL + + 84 AS col2 FROM tab2 WHERE NULL IS NULL
----
84
84
84

query III rowsort
SELECT * FROM tab2 WHERE + ( + - col0 ) * - col2 - col1 + - col1 * col0 IS NULL
----

query I rowsort
SELECT - 69 * + 69 + + 9 AS col0 FROM tab0
----
-4752
-4752
-4752

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT ALL + MAX( ALL - col0 ) FROM tab0 WHERE NOT - col1 IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-4472
SELECT ALL + MAX ( ALL - col0 ) FROM tab0 WHERE NOT - col1 IS NULL
----
-15

query I rowsort
SELECT DISTINCT col1 + + - col0 + + + col0 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL - 76 FROM tab2 WHERE NOT col0 IN ( + col1, + col1, 33 * col2 )
----
-76
-76
-76

query I rowsort
SELECT DISTINCT + col0 - - + 74 AS col1 FROM tab2 AS cor0
----
120
138
149

query II rowsort
SELECT ALL + 74, + col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 * + col2 IS NULL
----
74
15
74
87
74
97

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NULL > + 44 + + + col0 * col1 * - - col2 * - - col2 * - + col1
----

query I rowsort
SELECT + 15 * + 58 AS col0 FROM tab1 AS cor0
----
870
870
870

query I rowsort
SELECT ALL - col2 * + - col0 * col2 FROM tab0 AS cor0
----
33135
8700
950697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4480
SELECT - CAST( NULL AS SIGNED ) * + 81 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4480
SELECT - CAST ( NULL AS INTEGER ) * + 81 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT DISTINCT + - MAX( DISTINCT - col0 ) * - MAX( col2 ) AS col1 FROM tab2 AS cor0
----
-2668

skipif mysql # not compatible
query I rowsort label-4481
SELECT DISTINCT + - MAX ( DISTINCT - col0 ) * - MAX ( col2 ) AS col1 FROM tab2 AS cor0
----
-2668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4482
SELECT ALL - ( - MIN( + + col1 ) ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL - ( - MIN ( + + col1 ) ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 * + - col0 * - col0 AS col2 FROM tab2 AS cor0
----
262144
421875
97336

onlyif mysql # DIV for integer division: 
query I rowsort label-4484
SELECT DISTINCT - 43 DIV - 86 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT - 43 / - 86 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 80 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + - col2 col1 FROM tab0
----
705
870
9603

query I rowsort
SELECT 73 * - col2 FROM tab2
----
-1679
-2920
-4234

query I rowsort
SELECT ALL ( ( - 59 ) ) FROM tab0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4489
SELECT ALL MAX( DISTINCT - + 16 ) * - COUNT( * ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-4489
SELECT ALL MAX ( DISTINCT - + 16 ) * - COUNT ( * ) FROM tab2
----
48

query II rowsort
SELECT - 48 * + col0, - 93 AS col1 FROM tab1
----
-2448
-93
-4080
-93
-4368
-93

query III rowsort
SELECT ( + 44 ), - col0, - + col0 AS col1 FROM tab0 WHERE NOT ( + col1 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4492
SELECT col0 * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4492
SELECT col0 * - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - 18 * col2 AS col1, - ( col0 ) FROM tab0 AS cor0
----
-1782
-97
-180
-87
-846
-15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL NOT BETWEEN col1 + + ( - 52 ) AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4495
SELECT ALL - + col1 + - col0 DIV - 88 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4495
SELECT ALL - + col1 + - col0 / - 88 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + + 58 + col0 FROM tab1 cor0
----
109
143
149

query I rowsort
SELECT + + 10 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 29 IS NULL
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 1 BETWEEN ( + col0 ) AND + col2
----

query I rowsort
SELECT - 52 + - 77 AS col2 FROM tab0 AS cor0
----
-129
-129
-129

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4500
SELECT 25 + - 10, 56 * + - col1 AS col2 FROM tab1 WHERE - CAST( NULL AS DECIMAL ) - - - col0 IS NULL
----
15
-2632
15
-280
15
-784

skipif mysql # not compatible
query II rowsort label-4500
SELECT 25 + - 10, 56 * + - col1 AS col2 FROM tab1 WHERE - CAST ( NULL AS REAL ) - - - col0 IS NULL
----
15
-2632
15
-280
15
-784

query I rowsort
SELECT ALL - col1 + - - col0 FROM tab0
----
-66
66
96

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col1 NOT BETWEEN + col2 / + - col2 + + 44 AND + col2 * + col0 + + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 35, col2 * 96 + + - col1 col1 FROM tab2
----
-35
2157
-35
3763
-35
5501

query II rowsort
SELECT + col2, - 55 AS col1 FROM tab0
----
10
-55
47
-55
99
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-4505
SELECT COUNT( * ) col1, + 81 FROM tab2
----
3
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4505
SELECT COUNT ( * ) col1, + 81 FROM tab2
----
3
81

query I rowsort
SELECT ALL 38 - + col0 FROM tab2
----
-26
-37
-8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 5 * + col1 IS NULL
----

query I rowsort
SELECT ALL - ( - 67 ) AS col2 FROM tab1 AS cor0
----
67
67
67

query II rowsort
SELECT ALL col2 AS col0, - 83 FROM tab2 AS cor0
----
23
-83
40
-83
58
-83

query I rowsort
SELECT + 89 * - + 94 FROM tab2 AS cor0
----
-8366
-8366
-8366

query I rowsort
SELECT col2 * ( - 30 ) FROM tab0
----
-1410
-2970
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-4512
SELECT - MAX( - 85 ) col2 FROM tab2
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4512
SELECT - MAX ( - 85 ) col2 FROM tab2
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4513
SELECT ALL 72 * ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL 72 * ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4514
SELECT ALL - 1 * 92 DIV - + 60 - COUNT( DISTINCT + - 52 ) AS col1 FROM tab2 WHERE + - col2 * col1 BETWEEN - col1 + col1 + - col1 AND NULL
----
1

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL - 1 * 92 / - + 60 - COUNT ( DISTINCT + - 52 ) AS col1 FROM tab2 WHERE + - col2 * col1 BETWEEN - col1 + col1 + - col1 AND NULL
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - 53 * + col2 * + col0 + - col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * - col0 * + col0 * - + col1 FROM tab2 AS cor0
----
-24285184
-25250625
-5503716

onlyif mysql # DIV for integer division: 
query I rowsort label-4517
SELECT + + 37 DIV col2 * - 37 FROM tab0 cor0
----
-111
0
0

skipif mysql # not compatible
query I rowsort label-4517
SELECT + + 37 / col2 * - 37 FROM tab0 cor0
----
-111
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4518
SELECT DISTINCT * FROM tab2 WHERE NOT col1 - 45 IS NOT NULL OR + CAST( 37 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4518
SELECT DISTINCT * FROM tab2 WHERE NOT col1 - 45 IS NOT NULL OR + CAST ( 37 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4519
SELECT DISTINCT - col1 * - ( + CAST( col1 AS SIGNED ) ) col2 FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4519
SELECT DISTINCT - col1 * - ( + CAST ( col1 AS INTEGER ) ) col2 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT DISTINCT - 85 * + COUNT( * ) AS col0 FROM tab1
----
-255

skipif mysql # not compatible
query I rowsort label-4520
SELECT DISTINCT - 85 * + COUNT ( * ) AS col0 FROM tab1
----
-255

onlyif mysql # DIV for integer division: 
query II rowsort label-4521
SELECT DISTINCT - col1 AS col1, - col2 DIV col2 FROM tab1
----
-14
-1
-47
-1
-5
-1

skipif mysql # not compatible
query II rowsort label-4521
SELECT DISTINCT - col1 AS col1, - col2 / col2 FROM tab1
----
-14
-1
-47
-1
-5
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4522
SELECT DISTINCT - col1 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT - col1 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL - + 64 * col1 AS col1 FROM tab2 AS cor0
----
-3264
-4288
-4928

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 51 * - 74, col2 )
----

query I rowsort
SELECT col1 * - col2 + - 58 + - 32 + - + col2 AS col1 FROM tab1 cor0
----
-1530
-3354
-444

query I rowsort
SELECT + col2 * col2 * col0 + - col1 * + 47 + 7 FROM tab0 AS cor0
----
29335
7720
950657

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
-12

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4529
SELECT DISTINCT - 87 DIV - + 99 + - + 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-22

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT - 87 / - + 99 + - + 22 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4530
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 62, col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-4530
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 62, col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

query III rowsort
SELECT * FROM tab0 WHERE NULL < + ( + 61 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4532
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4532
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT + COUNT( * ) * - + 14 - - COUNT( DISTINCT col2 ) col1 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4533
SELECT + COUNT ( * ) * - + 14 - - COUNT ( DISTINCT col2 ) col1 FROM tab1 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT + SUM( + + ( - - ( col1 ) ) ) + - 85 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4534
SELECT + SUM ( + + ( - - ( col1 ) ) ) + - 85 FROM tab0 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT - 96 + COUNT( * ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-4535
SELECT - 96 + COUNT ( * ) FROM tab1
----
-93

query I rowsort
SELECT 46 * - col2 + - col0 AS col1 FROM tab2
----
-1104
-1904
-2743

query III rowsort
SELECT * FROM tab0 WHERE - col1 * + + col1 + + + 67 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 35 + - - col0 col0 FROM tab1
----
16
50
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4539
SELECT * FROM tab1 WHERE - ( col0 ) * + 61 * - 78 + + CAST( NULL AS SIGNED ) <= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-4539
SELECT * FROM tab1 WHERE - ( col0 ) * + 61 * - 78 + + CAST ( NULL AS INTEGER ) <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4540
SELECT DISTINCT - 71 * SUM( col2 ) - - 79 AS col2 FROM tab0
----
-10997

skipif mysql # not compatible
query I rowsort label-4540
SELECT DISTINCT - 71 * SUM ( col2 ) - - 79 AS col2 FROM tab0
----
-10997

query I rowsort
SELECT col2 * - + col2 * col2 * - - 51 FROM tab0 AS cor0
----
-49485249
-51000
-5294973

query II rowsort
SELECT DISTINCT - 98 AS col2, - col2 AS col1 FROM tab0 cor0 WHERE ( NOT ( NULL IS NOT NULL ) )
----
-98
-10
-98
-47
-98
-99

query I rowsort
SELECT ALL + 9 * + col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT ALL - col1 AS col2, col1 + - col2 + + 40 * + col0 FROM tab2
----
-51
1868
-67
3009
-77
2597

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 col2 FROM tab2
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + 57 col2 FROM tab2
----
46
57
64
57
75
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4547
SELECT ALL + + CAST( 7 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

skipif mysql # not compatible
query I rowsort label-4547
SELECT ALL + + CAST ( 7 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query II rowsort
SELECT col0, - 35 FROM tab1 AS cor0
----
51
-35
85
-35
91
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT SUM( DISTINCT - col1 ) col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4549
SELECT SUM ( DISTINCT - col1 ) col0 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT + ( + + col1 ) FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 74 * + ( - - col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 10 col2 FROM tab1 AS cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT - MIN( ALL + 25 ) AS col2 FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-4553
SELECT - MIN ( ALL + 25 ) AS col2 FROM tab1 AS cor0
----
-25

query II rowsort
SELECT ALL - 80 AS col0, + col1 FROM tab0 cor0
----
-80
1
-80
21
-80
81

query I rowsort
SELECT - 98 * + + col0 + ( + + col0 ) * - 62 FROM tab2 cor0
----
-10240
-12000
-7360

onlyif mysql # DIV for integer division: 
query I rowsort label-4556
SELECT DISTINCT - col0 + - col2 DIV col2 AS col1 FROM tab2
----
-47
-65
-76

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT - col0 + - col2 / col2 AS col1 FROM tab2
----
-47
-65
-76

query I rowsort
SELECT - 16 FROM tab0 WHERE NOT - + col2 + - - 58 < + col0 + + - 68
----
-16
-16

query I rowsort
SELECT ALL ( + col1 ) - 4 AS col0 FROM tab0 WHERE NOT + 88 / col1 >= col2
----
-3
17
77

query I rowsort
SELECT col0 * - + col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE ( - 53 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE ( - 53 ) IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT col2 * + - 27 AS col2 FROM tab0 AS cor0
----
-1269
-2673
-270

query I rowsort
SELECT - + 63 * - col0 - col0 AS col1 FROM tab1 AS cor0
----
3162
5270
5642

query I rowsort
SELECT DISTINCT + 84 * + + 53 + - + col1 FROM tab0 AS cor0
----
4371
4431
4451

onlyif mysql # aggregate syntax: 
query I rowsort label-4564
SELECT DISTINCT - - MAX( - col0 ) + + - COUNT( * ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT - - MAX ( - col0 ) + + - COUNT ( * ) FROM tab0 AS cor0
----
-18

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE NULL <> col2
----

query I rowsort
SELECT + + col2 * + col1 AS col2 FROM tab2 WHERE ( col2 ) = + + 76
----

query I rowsort
SELECT 41 + + + 78 FROM tab0
----
119
119
119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4568
SELECT + 54 + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4568
SELECT + 54 + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4569
SELECT + COUNT( * ) * + - COUNT( * ) + - + COUNT( * ) AS col0 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-4569
SELECT + COUNT ( * ) * + - COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT ALL + SUM( 73 ) FROM tab1 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-4570
SELECT ALL + SUM ( 73 ) FROM tab1 AS cor0
----
219

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT 71 * + 50 <= ( col1 )
----
51
85
91

query I rowsort
SELECT ALL + + col1 - ( + col2 ) AS col2 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT ( col0 >= + col0 )
----

query I rowsort
SELECT DISTINCT + 63 * + - col0 FROM tab0 AS cor0 WHERE NOT + col1 / + 64 * + 65 * - - col2 <> - ( - ( col1 ) ) * - - 55 + + + col1 * - ( - - col1 )
----

query I rowsort
SELECT DISTINCT col1 + 59 FROM tab0 cor0
----
140
60
80

query II rowsort
SELECT + col2 AS col1, + 43 + - col2 FROM tab1
----
59
-16
68
-25
96
-53

query I rowsort
SELECT + col2 * + 59 FROM tab1
----
3481
4012
5664

query II rowsort
SELECT 39, col0 FROM tab1
----
39
51
39
85
39
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT MAX( + col1 ) - 45 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-4579
SELECT MAX ( + col1 ) - 45 FROM tab1
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4580
SELECT DISTINCT - 23 DIV ( - + col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4580
SELECT DISTINCT - 23 / ( - + col0 ) FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, - 17 AS col0 FROM tab0
----
-15
-17
-87
-17
-97
-17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4582
SELECT col2 AS col0, CAST( NULL AS SIGNED ) * + 51 + + ( + + col0 ) AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-4582
SELECT col2 AS col0, CAST ( NULL AS INTEGER ) * + 51 + + ( + + col0 ) AS col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT DISTINCT - 12 + col2 AS col2 FROM tab0 WHERE NULL = - 84
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 / + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col2 * 10 FROM tab1 AS cor0
----
-590
-680
-960

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 NOT IN ( - + 11, 35, + 71, 81 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 3 AS col2 FROM tab0 cor0
----
-3
-3
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 * col0 > + 83
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 26 + - col0 AS col2 FROM tab2 cor0 WHERE ( + col1 ) > + col0
----
-72
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT ALL + COUNT( ALL - + 20 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4590
SELECT ALL + COUNT ( ALL - + 20 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4591
SELECT - + CAST( 62 AS SIGNED ) FROM tab1 AS cor0
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-4591
SELECT - + CAST ( 62 AS INTEGER ) FROM tab1 AS cor0
----
-62
-62
-62

query II rowsort
SELECT ALL ( 49 ) AS col2, col1 AS col1 FROM tab0 AS cor0
----
49
1
49
21
49
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT ALL + COUNT( * ) + - + 93 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-4593
SELECT ALL + COUNT ( * ) + - + 93 FROM tab0 AS cor0
----
-90

query II rowsort
SELECT col0, + col0 * - col1 - col2 FROM tab1
----
51
-810
85
-484
91
-4345

query I rowsort
SELECT DISTINCT + col2 + ( + 49 ) + + col2 AS col2 FROM tab2
----
129
165
95

query III rowsort
SELECT * FROM tab2 WHERE ( 24 ) IS NULL
----

query I rowsort
SELECT col2 + - col1 * 62 FROM tab2
----
-3139
-4096
-4734

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT - - MAX( col0 ) + - + COUNT( * ) col1 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4598
SELECT - - MAX ( col0 ) + - + COUNT ( * ) col1 FROM tab2 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT - 44 + COUNT( * ) FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-4599
SELECT - 44 + COUNT ( * ) FROM tab0 AS cor0
----
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 46 + - col0 col2 FROM tab1 AS cor0
----
-39
-45
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN 13 * - col2 AND NULL
----

query I rowsort
SELECT ( + + col0 ) FROM tab0
----
15
87
97

query I rowsort
SELECT ALL + col0 + + - 42 * + + 99 + col0 + + - col1 FROM tab0
----
-3965
-4005
-4209

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - 31 ), - col0 col0 FROM tab1
----
31
-51
31
-85
31
-91

query III rowsort
SELECT * FROM tab1 WHERE + + col2 * - col1 + - - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 - - + col2 + + col0 AS col2 FROM tab2 AS cor0
----
115
168
208

query II rowsort
SELECT col0 - + col0, col1 FROM tab0 AS cor0
----
0
1
0
21
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 * - - 73 + + col0 col2 FROM tab0 AS cor0
----
2497
2569
2579

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 90 * col0 col0 FROM tab2 AS cor0
----
-4140
-5760
-6750

query II rowsort
SELECT col0 AS col1, + ( + 72 ) AS col2 FROM tab2
----
46
72
64
72
75
72

query I rowsort
SELECT ALL ( col2 ) * 92 AS col1 FROM tab1
----
5428
6256
8832

query I rowsort
SELECT DISTINCT 68 * - 95 AS col2 FROM tab1
----
-6460

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab2 WHERE + 57 IS NULL
----

query I rowsort
SELECT col1 * - + ( 17 ) FROM tab0 WHERE NOT + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col0, col2 col2 FROM tab2
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT ALL + 30 * + 87 * COUNT( * ) FROM tab0
----
7830

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL + 30 * + 87 * COUNT ( * ) FROM tab0
----
7830

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT col2 + - col1 >= + col2 + + - 57
----
-47

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( + 49, + 57 * - + col1, + - col2 * + col1 - 37, + col0 )
----

query II rowsort
SELECT ALL + 58, col1 AS col2 FROM tab1 WHERE NOT 34 BETWEEN NULL AND - 36 - + - 23 + 91
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4620
SELECT ALL 6, + 62 - + COUNT( * ) + 64 AS col2 FROM tab1
----
6
123

skipif mysql # not compatible
query II rowsort label-4620
SELECT ALL 6, + 62 - + COUNT ( * ) + 64 AS col2 FROM tab1
----
6
123

query I rowsort
SELECT DISTINCT + col0 * + + col2 AS col1 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4622
SELECT DISTINCT - MAX( ALL + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4622
SELECT DISTINCT - MAX ( ALL + col1 ) FROM tab2 AS cor0
----
-77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 35 = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4624
SELECT DISTINCT CAST( + - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4624
SELECT DISTINCT CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 = - - col2 + - 97
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT ALL + COUNT( ALL - + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL + COUNT ( ALL - + col0 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - col2 FROM tab1 AS cor0 WHERE 53 IS NOT NULL
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 col1 FROM tab2
----
89
89
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + - 51 * + 50 * - 11 * - - 28 + + col0 col1 FROM tab0
----
-11780985
-68329713
-76183703

query I rowsort
SELECT ALL - 29 + - + 26 * - 34 FROM tab2
----
855
855
855

query II rowsort
SELECT ( - col1 ) AS col2, col2 * col2 AS col2 FROM tab1
----
-14
9216
-47
4624
-5
3481

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4632
SELECT CAST( - - ( COUNT( * ) ) AS SIGNED ) * - MIN( DISTINCT + + col1 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4632
SELECT CAST ( - - ( COUNT ( * ) ) AS INTEGER ) * - MIN ( DISTINCT + + col1 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT + - COUNT( * ) AS col1 FROM tab0 WHERE - 48 / - + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4633
SELECT + - COUNT ( * ) AS col1 FROM tab0 WHERE - 48 / - + col0 IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab0 WHERE - - col1 = NULL
----

query II rowsort
SELECT col1 * + + 26 AS col2, + 9 FROM tab0
----
2106
9
26
9
546
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT DISTINCT COUNT( col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT COUNT ( col2 ) FROM tab0
----
3

query I rowsort
SELECT - 94 * - ( col1 ) AS col0 FROM tab1
----
1316
4418
470

query I rowsort
SELECT ALL 80 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT DISTINCT + col1 * + col0 * col2 + 21 - + + 41 FROM tab0
----
18250
57085
9583

query II rowsort
SELECT ALL col2 - - ( 46 ) AS col0, + col1 + - + 38 FROM tab2
----
104
29
69
13
86
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4641
SELECT ALL 75 * - CAST( NULL AS SIGNED ) + + col0 + - - 78 + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4641
SELECT ALL 75 * - CAST ( NULL AS INTEGER ) + + col0 + - - 78 + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT - col2, col0 FROM tab1 cor0
----
-59
85
-68
91
-96
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > + col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + - 39 ) NOT BETWEEN col1 * - col1 AND + + col0
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT 69 * SUM( + col0 ) AS col0 FROM tab1
----
15663

skipif mysql # not compatible
query I rowsort label-4645
SELECT 69 * SUM ( + col0 ) AS col0 FROM tab1
----
15663

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT DISTINCT SUM( DISTINCT + col2 ) * - 89 AS col2 FROM tab0
----
-13884

skipif mysql # not compatible
query I rowsort label-4646
SELECT DISTINCT SUM ( DISTINCT + col2 ) * - 89 AS col2 FROM tab0
----
-13884

query II rowsort
SELECT + 47 * 82 AS col0, - 22 FROM tab2
----
3854
-22
3854
-22
3854
-22

query I rowsort
SELECT + 69 AS col2 FROM tab0
----
69
69
69

query III rowsort
SELECT ALL * FROM tab0 WHERE - 14 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT ALL - ( - SUM( - 95 ) ) AS col2 FROM tab0
----
-285

skipif mysql # not compatible
query I rowsort label-4650
SELECT ALL - ( - SUM ( - 95 ) ) AS col2 FROM tab0
----
-285

query I rowsort
SELECT - 50 AS col2 FROM tab1 AS cor0 WHERE NOT 5 + - col1 < 67
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + ( - col1 ) col0, col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = - col1
----

query II rowsort
SELECT + - col1 + col1, col0 AS col1 FROM tab1 AS cor0
----
0
51
0
85
0
91

query II rowsort
SELECT ALL - 6 + - 42 + + col1 * - col0 - 19 AS col0, col1 + + col1 AS col2 FROM tab2
----
-2413
102
-4995
154
-5092
134

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 > + - col2 + - 37
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT MAX( + col0 ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4656
SELECT MAX ( + col0 ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1
----
NULL

query I rowsort
SELECT ALL - + col1 + + - 5 FROM tab0 AS cor0
----
-26
-6
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4658
SELECT - CAST( + 31 AS SIGNED ) / - col0 col2 FROM tab1 AS cor0 WHERE col0 = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4658
SELECT - CAST ( + 31 AS INTEGER ) / - col0 col2 FROM tab1 AS cor0 WHERE col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4659
SELECT + + COUNT( + ( - - col2 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4659
SELECT + + COUNT ( + ( - - col2 ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - 4 + + + 86 FROM tab1
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT ALL ( + 45 ) + MAX( DISTINCT + col1 ) + ( 44 ) AS col1 FROM tab1
----
136

skipif mysql # not compatible
query I rowsort label-4661
SELECT ALL ( + 45 ) + MAX ( DISTINCT + col1 ) + ( 44 ) AS col1 FROM tab1
----
136

onlyif mysql # aggregate syntax: 
query II rowsort label-4662
SELECT ALL + COUNT( * ) AS col1, 68 + - COUNT( * ) col2 FROM tab2
----
3
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4662
SELECT ALL + COUNT ( * ) AS col1, 68 + - COUNT ( * ) col2 FROM tab2
----
3
65

onlyif mysql # aggregate syntax: 
query II rowsort label-4663
SELECT DISTINCT 61 AS col2, SUM( - 80 ) AS col1 FROM tab2
----
61
-240

skipif mysql # not compatible
query II rowsort label-4663
SELECT DISTINCT 61 AS col2, SUM ( - 80 ) AS col1 FROM tab2
----
61
-240

query I rowsort
SELECT - col0 + 8 * - + col1 * + + col2 + - 41 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - + col2
----

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT col1 + + col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4666
SELECT - 65 AS col2, + 58 * - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-65
1334
-65
2320
-65
3364

skipif mysql # not compatible
query II rowsort label-4666
SELECT - 65 AS col2, + 58 * - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-65
1334
-65
2320
-65
3364

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4667
SELECT + col1, + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-4667
SELECT + col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

query III rowsort
SELECT * FROM tab0 WHERE - 17 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 90 + 25 * - col1 FROM tab1
----
-1085
-260
-35

query I rowsort
SELECT col0 * - 39 * + 43 AS col0 FROM tab2 AS cor0
----
-107328
-125775
-77142

query I rowsort
SELECT DISTINCT col2 * - 25 * 61 FROM tab1 AS cor0
----
-103700
-146400
-89975

query I rowsort
SELECT DISTINCT ( + + col0 ) AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL 7 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
7
7
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4674
SELECT - COUNT( * ) DIV - + COUNT( * ) FROM tab2 WHERE NOT + 5 = - + col2
----
1

skipif mysql # not compatible
query I rowsort label-4674
SELECT - COUNT ( * ) / - + COUNT ( * ) FROM tab2 WHERE NOT + 5 = - + col2
----
1

query I rowsort
SELECT DISTINCT + 33 AS col1 FROM tab0
----
33

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT + COUNT( - + col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4677
SELECT + COUNT ( - + col2 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT NULL <= + col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - 83 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT SUM( - 40 ) AS col0 FROM tab2
----
-120

skipif mysql # not compatible
query I rowsort label-4680
SELECT SUM ( - 40 ) AS col0 FROM tab2
----
-120

query II rowsort
SELECT ALL + 22 AS col1, - 6 FROM tab0
----
22
-6
22
-6
22
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4682
SELECT - CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) * + col1 * - - col1 * - + 3 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4682
SELECT - CAST ( NULL AS INTEGER ) / CAST ( NULL AS INTEGER ) * + col1 * - - col1 * - + 3 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + col2 ) * ( - col2 ) + - + ( col1 ) AS col1 FROM tab2 AS cor0
----
-1677
-3431
-580

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= 87
----

query I rowsort
SELECT - 32 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query I rowsort
SELECT 1 + + - col1 FROM tab1
----
-13
-4
-46

query I rowsort
SELECT col2 + - + 96 FROM tab2
----
-38
-56
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT COUNT( * ) + - + SUM( - col1 ) FROM tab0 cor0
----
106

skipif mysql # not compatible
query I rowsort label-4688
SELECT COUNT ( * ) + - + SUM ( - col1 ) FROM tab0 cor0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT - SUM( - col0 ) * + 16 + + ( + COUNT( * ) ) + - 61 FROM tab1 AS cor0
----
3574

skipif mysql # not compatible
query I rowsort label-4689
SELECT - SUM ( - col0 ) * + 16 + + ( + COUNT ( * ) ) + - 61 FROM tab1 AS cor0
----
3574

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 + + 44 FROM tab1 AS cor0
----
129
135
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT DISTINCT + COUNT( * ) * + 91 + + COUNT( ALL - 4 ) * + 40 * + COUNT( * ) + COUNT( * ) AS col2 FROM tab1 cor0
----
636

skipif mysql # not compatible
query I rowsort label-4692
SELECT DISTINCT + COUNT ( * ) * + 91 + + COUNT ( ALL - 4 ) * + 40 * + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 cor0
----
636

query I rowsort
SELECT DISTINCT + 88 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT DISTINCT - 2 + MAX( - + 23 ) * + 36 FROM tab1 cor0
----
-830

skipif mysql # not compatible
query I rowsort label-4694
SELECT DISTINCT - 2 + MAX ( - + 23 ) * + 36 FROM tab1 cor0
----
-830

query I rowsort
SELECT DISTINCT col2 - - 18 FROM tab1
----
114
77
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4696
SELECT DISTINCT - col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4696
SELECT DISTINCT - col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4697
SELECT + + COUNT( * ) col1 FROM tab2 WHERE NULL < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4697
SELECT + + COUNT ( * ) col1 FROM tab2 WHERE NULL < NULL
----
0

query I rowsort
SELECT + 2 * + col2 FROM tab0
----
198
20
94

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4700
SELECT DISTINCT + col0 DIV - ( + col0 ) + + col0 - col1 + + col0 + + 46 AS col0 FROM tab2 cor0 WHERE col0 + 73 + + col0 * - - col0 IS NOT NULL
----
128
86
96

skipif mysql # not compatible
query I rowsort label-4700
SELECT DISTINCT + col0 / - ( + col0 ) + + col0 - col1 + + col0 + + 46 AS col0 FROM tab2 cor0 WHERE col0 + 73 + + col0 * - - col0 IS NOT NULL
----
128
86
96

query I rowsort
SELECT ALL + 42 + - col2 + 20 AS col2 FROM tab2 AS cor0
----
22
39
4

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > - ( + 83 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, 42 * - col1 AS col0 FROM tab1
----
14
-588
47
-1974
5
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT DISTINCT - ( - MAX( + - col1 ) ) * - 17 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-4704
SELECT DISTINCT - ( - MAX ( + - col1 ) ) * - 17 FROM tab0
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, - col1 + - - col0 AS col2 FROM tab0 AS cor0
----
-10
66
-47
-66
-99
96

query I rowsort
SELECT ALL + 75 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
75
75
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT + + 91 AS col2 FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4710
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 28 + col1 / 69 * 48 * - + col1 * + + ( CAST( NULL AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4710
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 28 + col1 / 69 * 48 * - + col1 * + + ( CAST ( NULL AS REAL ) ) IS NULL
----

query II rowsort
SELECT + + col0 AS col0, - col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - 67 + + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + ( col0 ) * - + 66 >= - + 14
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE - ( + col1 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4715
SELECT ALL + 14 + col2 + - 15 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4715
SELECT ALL + 14 + col2 + - 15 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4716
SELECT ALL - 55, 52 - COUNT( * ) - + 2 AS col1 FROM tab2
----
-55
47

skipif mysql # not compatible
query II rowsort label-4716
SELECT ALL - 55, 52 - COUNT ( * ) - + 2 AS col1 FROM tab2
----
-55
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT AVG ( DISTINCT - + col0 ) col2 FROM tab1 WHERE NOT col1 + - + col0 <= + col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4718
SELECT + col1 DIV - 34 AS col0 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4718
SELECT + col1 / - 34 AS col0 FROM tab0 AS cor0
----
-2
0
0

query I rowsort
SELECT col1 + - ( + - col2 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 + - + col1 - - col1 IS NULL
----

query II rowsort
SELECT + col0, - 61 FROM tab1 AS cor0
----
51
-61
85
-61
91
-61

query I rowsort
SELECT - 82 * - col2 + 0 AS col2 FROM tab2 AS cor0
----
1886
3280
4756

onlyif mysql # aggregate syntax: 
query II rowsort label-4723
SELECT DISTINCT 77 AS col1, COUNT( * ) FROM tab1 AS cor0
----
77
3

skipif mysql # not compatible
query II rowsort label-4723
SELECT DISTINCT 77 AS col1, COUNT ( * ) FROM tab1 AS cor0
----
77
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT + 91 - 25 AS col2 FROM tab0 AS cor0
----
66
66
66

query I rowsort
SELECT + 92 - col1 AS col2 FROM tab1 AS cor0
----
45
78
87

onlyif mysql # aggregate syntax: 
query II rowsort label-4727
SELECT DISTINCT - 40 AS col2, - COUNT( * ) FROM tab2 AS cor0
----
-40
-3

skipif mysql # not compatible
query II rowsort label-4727
SELECT DISTINCT - 40 AS col2, - COUNT ( * ) FROM tab2 AS cor0
----
-40
-3

query I rowsort
SELECT DISTINCT col1 + + + col2 FROM tab2 AS cor0
----
117
125
74

query II rowsort
SELECT + + col2 + - + col2 + - 77, 65 AS col0 FROM tab2 cor0
----
-77
65
-77
65
-77
65

query I rowsort
SELECT - - col0 + - - 78 AS col0 FROM tab0 AS cor0
----
165
175
93

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT ( + - 34 ) + + col2 AS col2 FROM tab0
----
-24
13
65

onlyif mysql # DIV for integer division: 
query I rowsort label-4733
SELECT DISTINCT col1 DIV - - col0 - + col1 FROM tab0
----
-1
-21
-76

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT col1 / - - col0 - + col1 FROM tab0
----
-1
-21
-76

query I rowsort
SELECT DISTINCT - col0 + - - col0 AS col2 FROM tab0
----
0

query II rowsort
SELECT + 44 + - 74 AS col1, 52 FROM tab1
----
-30
52
-30
52
-30
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 + ( + 82 ) col0 FROM tab0
----
14
14
14

onlyif mysql # DIV for integer division: 
query I rowsort label-4737
SELECT ALL - col0 DIV - 72 - - - col1 FROM tab2
----
-51
-66
-77

skipif mysql # not compatible
query I rowsort label-4737
SELECT ALL - col0 / - 72 - - - col1 FROM tab2
----
-51
-66
-77

query I rowsort
SELECT - 11 * + + col0 + - + col1 + - col1 + - + col1 * + - 49 FROM tab1
----
-700
1208
97

query I rowsort
SELECT - col2 + 94 AS col0 FROM tab0
----
-5
47
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT DISTINCT + 63 - - COUNT( * ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT + 63 - - COUNT ( * ) FROM tab2 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4741
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + 21 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4741
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + 21 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 9 * - col2 FROM tab0 AS cor0
----
423
891
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT ALL + ( COUNT( col1 ) ) * 22 * + - 15 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-2970

skipif mysql # not compatible
query I rowsort label-4743
SELECT ALL + ( COUNT ( col1 ) ) * 22 * + - 15 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-2970

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT + - COUNT( * ) + + - 58 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-67

skipif mysql # not compatible
query I rowsort label-4744
SELECT + - COUNT ( * ) + + - 58 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT DISTINCT - 84 * + MIN( + 97 ) + + - 82 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) < + 75
----
NULL

skipif mysql # not compatible
query I rowsort label-4745
SELECT DISTINCT - 84 * + MIN ( + 97 ) + + - 82 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) < + 75
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 * ( 94 ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d7190c82cefbd2c04f867eae77a8d2c4

onlyif mysql # DIV for integer division: 
query II rowsort label-4748
SELECT - col2 * col1 DIV - + col2 AS col1, col2 FROM tab1
----
14
96
47
68
5
59

skipif mysql # not compatible
query II rowsort label-4748
SELECT - col2 * col1 / - + col2 AS col1, col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query II rowsort label-4749
SELECT ALL + - 80 AS col1, + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-80
9

skipif mysql # not compatible
query II rowsort label-4749
SELECT ALL + - 80 AS col1, + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-80
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT - MIN( - col2 ) AS col2 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-4750
SELECT - MIN ( - col2 ) AS col2 FROM tab0 cor0
----
99

query II rowsort
SELECT DISTINCT 4, col1 FROM tab2 AS cor0
----
4
51
4
67
4
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= 62 + - + 12
----

query I rowsort
SELECT ALL - ( - 11 ) AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
11
11
11

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 98 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 / col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT - MAX( - col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4757
SELECT - MAX ( - col2 ) AS col2 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT 83 * COUNT( 31 ) FROM tab1 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-4758
SELECT 83 * COUNT ( 31 ) FROM tab1 AS cor0
----
249

query I rowsort
SELECT col1 * - col0 * - col1 AS col0 FROM tab1 AS cor0
----
201019
2125
9996

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT + - col2 + + 25 FROM tab0 AS cor0
----
-22
-74
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT DISTINCT - SUM( + 67 ) FROM tab0 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-4762
SELECT DISTINCT - SUM ( + 67 ) FROM tab0 AS cor0
----
-201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4763
SELECT + CAST( NULL AS SIGNED ) + + 29 * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4763
SELECT + CAST ( NULL AS INTEGER ) + + 29 * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT DISTINCT - + 92 * MIN( + 79 ) FROM tab1 AS cor0
----
-7268

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT - + 92 * MIN ( + 79 ) FROM tab1 AS cor0
----
-7268

query I rowsort
SELECT ALL - ( 28 ) + - - col0 AS col0 FROM tab0 cor0
----
-13
59
69

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4766
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( col2 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4766
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( col2 AS REAL ) IS NULL
----

query I rowsort
SELECT ALL - - ( - 81 ) + - col0 * + - col1 FROM tab2 AS cor0 WHERE col1 BETWEEN col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4768
SELECT ALL - col2 - + - col1 DIV - col1 FROM tab1
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL - col2 - + - col1 / - col1 FROM tab1
----
-60
-69
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT DISTINCT MAX( DISTINCT - ( + + col0 ) ) + + 84 FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT MAX ( DISTINCT - ( + + col0 ) ) + + 84 FROM tab2
----
38

query I rowsort
SELECT DISTINCT col0 - 10 FROM tab1
----
41
75
81

query I rowsort
SELECT col2 - col1 + + col1 + - 6 FROM tab0
----
4
41
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4772
SELECT ALL CAST( NULL AS SIGNED ) * + COUNT( * ) - - COUNT( * ) * - MAX( DISTINCT + 28 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL CAST ( NULL AS INTEGER ) * + COUNT ( * ) - - COUNT ( * ) * - MAX ( DISTINCT + 28 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4773
SELECT DISTINCT - 2 * + COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4773
SELECT DISTINCT - 2 * + COUNT ( * ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT ALL + col1 * ( + col1 ) AS col1 FROM tab2 WHERE NOT col1 - + 80 IN ( + 52 )
----
2601
4489
5929

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> ( 79 )
----

query I rowsort
SELECT 11 FROM tab2 WHERE ( NULL ) < ( 26 )
----

query I rowsort
SELECT DISTINCT col2 * - col1 AS col1 FROM tab1 WHERE NOT + 4 * col2 IS NULL
----
-1344
-295
-3196

query I rowsort
SELECT - col1 + + col2 FROM tab0 WHERE NOT ( NULL ) <= col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4779
SELECT ALL + COUNT( * ) + + COUNT( * ) DIV 48 AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4779
SELECT ALL + COUNT ( * ) + + COUNT ( * ) / 48 AS col0 FROM tab1
----
3

query I rowsort
SELECT ALL + 29 AS col1 FROM tab0 WHERE NULL BETWEEN col1 / + col2 AND NULL
----

query I rowsort
SELECT ALL - 64 + 93 FROM tab2
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT DISTINCT - MAX( 38 ) AS col0 FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT - MAX ( 38 ) AS col0 FROM tab2
----
-38

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT 7 * 98 + - col1 NOT IN ( col0 * - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 67 + col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( col2 ) = ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 + col0 ) > + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col0 AND ( - 46 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4788
SELECT ALL + col2 + + CAST( + 40 AS SIGNED ) FROM tab1
----
108
136
99

skipif mysql # not compatible
query I rowsort label-4788
SELECT ALL + col2 + + CAST ( + 40 AS INTEGER ) FROM tab1
----
108
136
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4789
SELECT ALL + SUM( + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL + SUM ( + col1 ) FROM tab0
----
103

query III rowsort
SELECT * FROM tab2 WHERE NOT + 18 IN ( 48 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 + ( + col1 ) FROM tab0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT + SUM( DISTINCT col1 ) col1 FROM tab1
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4792
SELECT + SUM ( DISTINCT col1 ) col1 FROM tab1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4793
SELECT - 18 + col2 DIV col1 AS col0 FROM tab1 WHERE NOT + col1 + - col0 BETWEEN + col0 AND - 48
----
-12
-17
-7

skipif mysql # not compatible
query I rowsort label-4793
SELECT - 18 + col2 / col1 AS col0 FROM tab1 WHERE NOT + col1 + - col0 BETWEEN + col0 AND - 48
----
-12
-17
-7

query I rowsort
SELECT ALL + 84 + + col1 * 63 AS col0 FROM tab2
----
3297
4305
4935

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT + COUNT( col0 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4795
SELECT + COUNT ( col0 ) col2 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4796
SELECT CAST( NULL AS SIGNED ) / + AVG ( col2 ) AS col0 FROM tab0 WHERE ( + 57 * 40 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4796
SELECT CAST ( NULL AS INTEGER ) / + AVG ( col2 ) AS col0 FROM tab0 WHERE ( + 57 * 40 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4797
SELECT * FROM tab0 WHERE NOT CAST( col2 AS SIGNED ) + 72 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4797
SELECT * FROM tab0 WHERE NOT CAST ( col2 AS INTEGER ) + 72 IS NOT NULL
----

query I rowsort
SELECT ALL 25 * 2 FROM tab1
----
50
50
50

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 88 + + col2 > + ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 WHERE - 15 IS NOT NULL
----
51
67
77

query I rowsort
SELECT - 58 AS col1 FROM tab1 WHERE NOT - 0 IS NULL
----
-58
-58
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4802
SELECT ALL - AVG ( - 78 ) * CAST( - 32 * 38 AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN + 87 + ( - 53 ) * col2 AND ( + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL - AVG ( - 78 ) * CAST ( - 32 * 38 AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN + 87 + ( - 53 ) * col2 AND ( + col1 )
----
NULL

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 WHERE NULL NOT BETWEEN - 1 AND col1 + 60
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 * 26 col0 FROM tab1
----
-2418
-2418
-2418

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4805
SELECT + COUNT( * ) * 88 - 69 DIV - MAX( ALL col0 * col2 ) AS col2 FROM tab2
----
264

skipif mysql # not compatible
query I rowsort label-4805
SELECT + COUNT ( * ) * 88 - 69 / - MAX ( ALL col0 * col2 ) AS col2 FROM tab2
----
264

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4806
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) > col0 * + col1
----

skipif mysql # not compatible
query III rowsort label-4806
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) > col0 * + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 ) IN ( + 12 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT - col2 + - 8 FROM tab1 AS cor0
----
-104
-67
-76

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 WHERE - ( col1 ) <> NULL
----

query I rowsort
SELECT DISTINCT - 74 FROM tab1 AS cor0 CROSS JOIN tab2
----
-74

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN col1 + col1 AND ( + col0 + - col0 * + col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4813
SELECT ALL - CAST( NULL AS DECIMAL ) * - ( + 37 ) - col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL - CAST ( NULL AS REAL ) * - ( + 37 ) - col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT col2 <= col2 * col0
----

query I rowsort
SELECT 18 FROM tab0 AS cor0 WHERE col0 * - 22 < ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4816
SELECT + 71 - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4816
SELECT + 71 - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN NULL AND + col0
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT SUM( - 74 ) - - COUNT( * ) AS col0 FROM tab0 cor0
----
-219

skipif mysql # not compatible
query I rowsort label-4818
SELECT SUM ( - 74 ) - - COUNT ( * ) AS col0 FROM tab0 cor0
----
-219

query I rowsort
SELECT DISTINCT 47 * col0 AS col2 FROM tab0 AS cor0
----
4089
4559
705

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT MAX( + col2 ) + 46 FROM tab0 AS cor0
----
145

skipif mysql # not compatible
query I rowsort label-4820
SELECT MAX ( + col2 ) + 46 FROM tab0 AS cor0
----
145

query I rowsort
SELECT + - 14 + - col0 AS col0 FROM tab0 AS cor0
----
-101
-111
-29

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * - col2 + 45 > ( + 10 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT DISTINCT - COUNT( - col1 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT - COUNT ( - col1 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT DISTINCT - 64 + COUNT( * ) * 99 FROM tab1 AS cor0
----
233

skipif mysql # not compatible
query I rowsort label-4824
SELECT DISTINCT - 64 + COUNT ( * ) * 99 FROM tab1 AS cor0
----
233

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4825
SELECT col2 + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4825
SELECT col2 + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 87 AS col2 FROM tab1 cor0 WHERE ( - 51 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT DISTINCT - COUNT( * ) * - 99 + 72 AS col2 FROM tab2
----
369

skipif mysql # not compatible
query I rowsort label-4827
SELECT DISTINCT - COUNT ( * ) * - 99 + 72 AS col2 FROM tab2
----
369

query I rowsort
SELECT 93 * 49 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = ( + 92 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4830
SELECT ALL + CAST( ( 82 ) AS SIGNED ) FROM tab2 AS cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL + CAST ( ( 82 ) AS INTEGER ) FROM tab2 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT SUM( DISTINCT + + ( 75 ) ) * 50 FROM tab1 AS cor0
----
3750

skipif mysql # not compatible
query I rowsort label-4831
SELECT SUM ( DISTINCT + + ( 75 ) ) * 50 FROM tab1 AS cor0
----
3750

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4832
SELECT ALL + + 66 * - CAST( NULL AS DECIMAL ) + ( 58 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL + + 66 * - CAST ( NULL AS REAL ) + ( 58 ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 49 + - 74 col1 FROM tab2 AS cor0
----
2425
3209
3699

onlyif mysql # DIV for integer division: 
query I rowsort label-4834
SELECT DISTINCT 82 DIV + 47 AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4834
SELECT DISTINCT 82 / + 47 AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT ALL - MAX( - 25 ) col0 FROM tab1
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4835
SELECT ALL - MAX ( - 25 ) col0 FROM tab1
----
25

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 38 + - col1 > ( 29 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT ALL - COUNT( * ) col1 FROM tab1, tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4837
SELECT ALL - COUNT ( * ) col1 FROM tab1, tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT 34 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
34

query I rowsort
SELECT ( - ( - + col2 ) ) AS col0 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL 76 * - col2 * + col1 FROM tab0
----
-15960
-289332
-7524

onlyif mysql # aggregate syntax: 
query I rowsort label-4841
SELECT + MAX( - + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4841
SELECT + MAX ( - + col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL - col0 * + + 18 * + col2 + + col1 FROM tab0 AS cor0
----
-12609
-15639
-172853

query II rowsort
SELECT col1, col0 * + col0 * + col0 - + col0 FROM tab2 AS cor0
----
51
97290
67
421800
77
262080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4844
SELECT ALL + - CAST( NULL AS SIGNED ) * - 46 - + 58 AS col1 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4844
SELECT ALL + - CAST ( NULL AS INTEGER ) * - 46 - + 58 AS col1 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 52 )
----

query I rowsort
SELECT + col2 + + col1 * col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 41 AND ( 9 + col2 )
----

query I rowsort
SELECT ALL + + col2 * - col2 * - col2 + col1 + + col2 FROM tab0 cor0
----
1031
103951
970399

query I rowsort
SELECT DISTINCT - 23 FROM tab2 WHERE NOT NULL IN ( + 67 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4849
SELECT ALL CAST( NULL AS SIGNED ) * 64 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4849
SELECT ALL CAST ( NULL AS INTEGER ) * 64 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4850
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) + + 39 AS col2 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-4850
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) + + 39 AS col2 FROM tab1
----
36

query I rowsort
SELECT ( 30 ) FROM tab2 WHERE ( + col1 ) IS NOT NULL
----
30
30
30

query I rowsort
SELECT DISTINCT ( 19 ) FROM tab0
----
19

query I rowsort
SELECT DISTINCT col1 * + 55 * - col1 FROM tab2
----
-143055
-246895
-326095

query I rowsort
SELECT ALL - col2 * + + col2 AS col2 FROM tab2
----
-1600
-3364
-529

onlyif mysql # DIV for integer division: 
query I rowsort label-4855
SELECT ALL - ( + 7 ) DIV + col2 * 71 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL - ( + 7 ) / + col2 * 71 FROM tab1
----
0
0
0

query I rowsort
SELECT - col2 * + 97 FROM tab1
----
-5723
-6596
-9312

query I rowsort
SELECT + col1 * 16 FROM tab0 AS cor0
----
1296
16
336

onlyif mysql # DIV for integer division: 
query I rowsort label-4858
SELECT ALL + col2 DIV col2 * 28 * + col0 AS col1 FROM tab1 cor0
----
1428
2380
2548

skipif mysql # not compatible
query I rowsort label-4858
SELECT ALL + col2 / col2 * 28 * + col0 AS col1 FROM tab1 cor0
----
1428
2380
2548

query II rowsort
SELECT + col1 * + col0, 58 AS col2 FROM tab1 AS cor0
----
425
58
4277
58
714
58

query I rowsort
SELECT DISTINCT 78 FROM tab2 cor0
----
78

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE - col2 NOT IN ( + 2 * - col1 )
----
15
87
97

query III rowsort
SELECT * FROM tab2 WHERE - ( - col2 ) * - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4863
SELECT ALL - col2 - - - CAST( - - 96 AS SIGNED ) FROM tab1
----
-155
-164
-192

skipif mysql # not compatible
query I rowsort label-4863
SELECT ALL - col2 - - - CAST ( - - 96 AS INTEGER ) FROM tab1
----
-155
-164
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT ( col2 * - col0 ) NOT BETWEEN ( col0 * + col1 ) AND - col1 * + 18
----
0

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT ( col2 * - col0 ) NOT BETWEEN ( col0 * + col1 ) AND - col1 * + 18
----
0

query I rowsort
SELECT DISTINCT ( - + col0 ) * - 86 * - - col0 + 65 FROM tab2 cor0
----
182041
352321
483815

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4866
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4867
SELECT ALL + col2 DIV - col0 * - col0 * 83 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL + col2 / - col0 * - col0 * 83 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4869
SELECT + ( + - 77 ) DIV + COUNT( * ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-4869
SELECT + ( + - 77 ) / + COUNT ( * ) FROM tab2 AS cor0
----
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 - - 9 * + 89 + - col2 * - col2 col0 FROM tab2 AS cor0 WHERE NOT 7 IS NOT NULL
----

query I rowsort
SELECT ALL + + ( - ( - col1 ) ) FROM tab0 cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query III rowsort label-4872
SELECT DISTINCT 45 AS col2, col0 DIV + 89 AS col1, col0 AS col1 FROM tab2 AS cor0
----
9 values hashing to 2123f4f7b8a8a91ffbe5700229fb978b

skipif mysql # not compatible
query III rowsort label-4872
SELECT DISTINCT 45 AS col2, col0 / + 89 AS col1, col0 AS col1 FROM tab2 AS cor0
----
9 values hashing to 2123f4f7b8a8a91ffbe5700229fb978b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4873
SELECT - 6 DIV 11 * + 89 DIV COUNT( * ) DIV 67 * - COUNT( * ) + + MAX( + col2 + - col1 ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4873
SELECT - 6 / 11 * + 89 / COUNT ( * ) / 67 * - COUNT ( * ) + + MAX ( + col2 + - col1 ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4874
SELECT 21 DIV - COUNT( * ) FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-4874
SELECT 21 / - COUNT ( * ) FROM tab2
----
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-4875
SELECT ( - MIN( ALL ( + + col2 ) ) ), + 80 AS col0 FROM tab2
----
-23
80

skipif mysql # not compatible
query II rowsort label-4875
SELECT ( - MIN ( ALL ( + + col2 ) ) ), + 80 AS col0 FROM tab2
----
-23
80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 90 + - + col0 + col0 >= - col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= - col1 + + 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT MAX( + + 83 ) AS col1 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-4878
SELECT MAX ( + + 83 ) AS col1 FROM tab2
----
83

query II rowsort
SELECT DISTINCT + 91 AS col2, 18 AS col0 FROM tab0 AS cor0
----
91
18

query I rowsort
SELECT DISTINCT + ( + 62 ) * + 67 * + col1 FROM tab2 AS cor0
----
211854
278318
319858

query II rowsort
SELECT + - col1 AS col2, ( + + col1 ) AS col2 FROM tab2 cor0
----
-51
51
-67
67
-77
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 > ( - 93 * - - 78 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4883
SELECT * FROM tab1 cor0 WHERE NOT + ( + + 19 ) * col1 / + - col2 + - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4883
SELECT * FROM tab1 cor0 WHERE NOT + ( + + 19 ) * col1 / + - col2 + - CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4884
SELECT - MIN( - CAST( - - 38 AS SIGNED ) ) col1 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4884
SELECT - MIN ( - CAST ( - - 38 AS INTEGER ) ) col1 FROM tab2 AS cor0
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 53 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 + + + 94 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - 76 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4889
SELECT ALL CAST( + + col2 AS SIGNED ) * + + 30 AS col2 FROM tab2
----
1200
1740
690

skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL CAST ( + + col2 AS INTEGER ) * + + 30 AS col2 FROM tab2
----
1200
1740
690

query I rowsort
SELECT DISTINCT - 93 AS col1 FROM tab1 cor0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4891
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) + - 57 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4891
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - 57 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 99 IS NOT NULL
----

query II rowsort
SELECT ALL 21 * + 3 AS col0, 7 FROM tab0 AS cor0
----
63
7
63
7
63
7

query I rowsort
SELECT + + ( + 35 ) AS col1 FROM tab1 AS cor0
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4895
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + + + col2 IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4895
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + + + col2 IS NULL
----
51
85
91

query I rowsort
SELECT DISTINCT - 94 + + - col2 AS col2 FROM tab1 AS cor0
----
-153
-162
-190

onlyif mysql # aggregate syntax: 
query I rowsort label-4897
SELECT - 72 + + ( SUM( - col2 ) ) AS col1 FROM tab2
----
-193

skipif mysql # not compatible
query I rowsort label-4897
SELECT - 72 + + ( SUM ( - col2 ) ) AS col1 FROM tab2
----
-193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col1 + - ( - col1 ) col0 FROM tab0
----
1296
1848
98

query II rowsort
SELECT + col1 + + - 3 * 61 AS col2, + col0 AS col0 FROM tab2
----
-106
64
-116
75
-132
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4900
SELECT ALL - CAST( - col1 AS SIGNED ) * + col1, col1 - ( + 80 ) * - col1 * - + col0 AS col2 FROM tab1
----
196
-57106
2209
-342113
25
-33995

skipif mysql # not compatible
query II rowsort label-4900
SELECT ALL - CAST ( - col1 AS INTEGER ) * + col1, col1 - ( + 80 ) * - col1 * - + col0 AS col2 FROM tab1
----
196
-57106
2209
-342113
25
-33995

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 > ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 FROM tab2 WHERE NULL <= - 9 + + col0
----

query I rowsort
SELECT ALL - col0 * - 66 + - + 97 AS col2 FROM tab1
----
3269
5513
5909

query I rowsort
SELECT ALL - + 62 FROM tab0 WHERE NOT col2 + - 92 + col1 - - + ( col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) FROM tab0 WHERE NOT - + col0 + - 99 > - 70 - col1 / + ( - col0 ) * col2
----
0

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) FROM tab0 WHERE NOT - + col0 + - 99 > - 70 - col1 / + ( - col0 ) * col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4906
SELECT - + 43 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4906
SELECT - + 43 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-46

query I rowsort
SELECT ALL - - col0 + ( - 35 ) AS col2 FROM tab2 AS cor0
----
11
29
40

onlyif mysql # aggregate syntax: 
query II rowsort label-4908
SELECT DISTINCT 20 col0, COUNT( * ) AS col1 FROM tab1, tab2 AS cor0
----
20
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4908
SELECT DISTINCT 20 col0, COUNT ( * ) AS col1 FROM tab1, tab2 AS cor0
----
20
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4909
SELECT ALL - CAST( NULL AS SIGNED ) - - 95 + - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL - CAST ( NULL AS INTEGER ) - - 95 + - COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4910
SELECT - + COUNT( * ) * 32 - + - 41 AS col2 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-4910
SELECT - + COUNT ( * ) * 32 - + - 41 AS col2 FROM tab1 AS cor0
----
-55

query I rowsort
SELECT - 11 * - col2 AS col1 FROM tab1 AS cor0
----
1056
649
748

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT ALL + COUNT( 96 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL + COUNT ( 96 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 78 FROM tab2 AS cor0 WHERE NOT col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4915
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( CAST( NULL AS SIGNED ) * + + col1, ( col1 ) )
----

skipif mysql # not compatible
query III rowsort label-4915
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL IN ( CAST ( NULL AS INTEGER ) * + + col1, ( col1 ) )
----

query I rowsort
SELECT DISTINCT - + 9 AS col1 FROM tab1 WHERE 45 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col0 > col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4918
SELECT ALL CAST( NULL AS DECIMAL ) * + col2 * + + col2 AS col1, + col2 * + ( + col1 ) + - + col0 * col0 AS col0 FROM tab1
----
NULL
-1257
NULL
-5085
NULL
-6930

skipif mysql # not compatible
query II rowsort label-4918
SELECT ALL CAST ( NULL AS REAL ) * + col2 * + + col2 AS col1, + col2 * + ( + col1 ) + - + col0 * col0 AS col0 FROM tab1
----
NULL
-1257
NULL
-5085
NULL
-6930

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - 75 / - col2 * - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > 91
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT DISTINCT MAX( + col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4921
SELECT DISTINCT MAX ( + col1 ) AS col1 FROM tab1
----
47

query I rowsort
SELECT DISTINCT + + 62 * + col0 FROM tab2 WHERE + - col1 >= - col2
----

query II rowsort
SELECT ALL col1, + ( + col2 ) + - col1 FROM tab2
----
51
-28
67
-9
77
-37

query I rowsort
SELECT DISTINCT - ( - - ( 92 ) ) FROM tab0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT - SUM( - - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4925
SELECT - SUM ( - - col2 ) FROM tab2
----
-121

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) NOT IN ( - col2, 50 )
----

query I rowsort
SELECT + - ( - 39 ) AS col0 FROM tab2 cor0
----
39
39
39

query I rowsort
SELECT DISTINCT col2 * col1 + ( - - col2 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ALL ( COUNT( * ) ) * + ( - - MIN( - - col2 ) ) AS col1 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-4929
SELECT ALL ( COUNT ( * ) ) * + ( - - MIN ( - - col2 ) ) AS col1 FROM tab2
----
69

query I rowsort
SELECT - 53 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE + col0 >= ( - 58 )
----
46
64
75

query I rowsort
SELECT col2 * - 65 + - col0 + + col0 FROM tab1 AS cor0
----
-3835
-4420
-6240

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT DISTINCT - MIN( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4933
SELECT DISTINCT - MIN ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 90 col2 FROM tab1 AS cor0
----
90

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN 77 AND + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4936
SELECT DISTINCT 82 FROM tab2 cor0 WHERE col0 / 62 * CAST( - 57 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4936
SELECT DISTINCT 82 FROM tab2 cor0 WHERE col0 / 62 * CAST ( - 57 AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT COUNT( - 90 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4937
SELECT COUNT ( - 90 ) FROM tab2
----
3

query I rowsort
SELECT ALL ( col0 ) * - col2 AS col0 FROM tab0 WHERE ( NOT col2 < col1 )
----
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - + col0 col1 FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query III rowsort label-4940
SELECT ( - 74 ), ( - COUNT( DISTINCT - + col2 ) ) AS col2, + 13 AS col1 FROM tab2
----
-74
-3
13

skipif mysql # not compatible
query III rowsort label-4940
SELECT ( - 74 ), ( - COUNT ( DISTINCT - + col2 ) ) AS col2, + 13 AS col1 FROM tab2
----
-74
-3
13

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 WHERE NULL = - 70
----

query I rowsort
SELECT - + AVG ( ALL + 41 ) + + AVG ( - + ( - col2 ) ) FROM tab1 WHERE + ( 53 ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4943
SELECT ALL - col1 - + + CAST( NULL AS SIGNED ) AS col0, 47 * + col2 AS col1 FROM tab2
----
NULL
1081
NULL
1880
NULL
2726

skipif mysql # not compatible
query II rowsort label-4943
SELECT ALL - col1 - + + CAST ( NULL AS INTEGER ) AS col0, 47 * + col2 AS col1 FROM tab2
----
NULL
1081
NULL
1880
NULL
2726

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT COUNT( ALL + ( + + 9 ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4944
SELECT COUNT ( ALL + ( + + 9 ) ) AS col1 FROM tab0
----
3

query II rowsort
SELECT col1 * + col2 AS col0, + col1 * - ( + 9 ) * - ( + col0 ) AS col0 FROM tab2
----
1173
21114
3080
44352
3886
45225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 78 * + col2 col2 FROM tab1 WHERE NOT col1 / - col0 IS NULL
----
-4602
-5304
-7488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - + 48 * col2 col1 FROM tab1
----
-2747
-3173
-4557

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT COUNT( * ) * - + MAX( ALL ( + + col2 ) ) AS col0 FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-4948
SELECT COUNT ( * ) * - + MAX ( ALL ( + + col2 ) ) AS col0 FROM tab0
----
-297

query I rowsort
SELECT DISTINCT - col2 * ( + 50 ) * - - 65 + - + 47 FROM tab1 AS cor0
----
-191797
-221047
-312047

query I rowsort
SELECT - 78 AS col0 FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN + col0 AND ( NULL )
----
-78
-78
-78

query II rowsort
SELECT col2 + + - 48 AS col2, - col2 - - col0 AS col0 FROM tab1 cor0
----
11
26
20
23
48
-45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4952
SELECT DISTINCT + col2 + 70 - - CAST( NULL AS SIGNED ), 55 col2 FROM tab2
----
NULL
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4952
SELECT DISTINCT + col2 + 70 - - CAST ( NULL AS INTEGER ), 55 col2 FROM tab2
----
NULL
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4953
SELECT + 9 + + + col1 DIV + - col0 FROM tab0
----
4
9
9

skipif mysql # not compatible
query I rowsort label-4953
SELECT + 9 + + + col1 / + - col0 FROM tab0
----
4
9
9

query I rowsort
SELECT DISTINCT - - col0 * + ( col2 ) * col1 + + - 34 FROM tab0 cor0
----
18236
57071
9569

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 + - 45 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - ( - ( + 66 ) ) * - col2 FROM tab1 AS cor0
----
-3894
-4488
-6336

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT - + MIN( DISTINCT - - col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) < - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4957
SELECT - + MIN ( DISTINCT - - col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) < - + col1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4958
SELECT + ( + MIN( DISTINCT col0 ) ) DIV 51 col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4958
SELECT + ( + MIN ( DISTINCT col0 ) ) / 51 col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 75 * - 53 FROM tab0
----
3975
3975
3975

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * - + ( + col1 ) - - col2 > - 65
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4961
SELECT col1 DIV + col0 AS col1, + col0 FROM tab2
----
0
75
1
46
1
64

skipif mysql # not compatible
query II rowsort label-4961
SELECT col1 / + col0 AS col1, + col0 FROM tab2
----
0
75
1
46
1
64

query I rowsort
SELECT DISTINCT - ( - col0 ) FROM tab2 WHERE NOT 29 + + - col0 IS NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4963
SELECT ALL col2 DIV + 46 col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4963
SELECT ALL col2 / + 46 col0 FROM tab2
----
0
0
1

query II rowsort
SELECT - - 20, 75 AS col0 FROM tab2 WHERE NOT + + ( col2 ) NOT IN ( 52, - ( - - col2 ), - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT - MAX( + - col2 ) * + COUNT( * ) FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-4965
SELECT - MAX ( + - col2 ) * + COUNT ( * ) FROM tab1
----
177

query III rowsort
SELECT * FROM tab1 WHERE NOT + 73 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT DISTINCT COUNT( - 71 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4967
SELECT DISTINCT COUNT ( - 71 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4968
SELECT ALL - + MAX( - + 15 ) FROM tab2 cor0
----
15

skipif mysql # not compatible
query I rowsort label-4968
SELECT ALL - + MAX ( - + 15 ) FROM tab2 cor0
----
15

query I rowsort
SELECT DISTINCT col2 * + col2 + + 90 AS col0 FROM tab1 AS cor0
----
3571
4714
9306

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT NULL >= NULL )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL <> 4 )
----

query I rowsort
SELECT - ( + + 97 ) FROM tab2 AS cor0
----
-97
-97
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4973
SELECT ALL 76 + CAST( NULL AS DECIMAL ) * - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL 76 + CAST ( NULL AS REAL ) * - col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * 22 FROM tab1 AS cor0
----
1298
1496
2112

query I rowsort
SELECT - ( 92 ) + - + 11 * - ( + col1 ) FROM tab2 cor0
----
469
645
755

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT + COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4976
SELECT + COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4977
SELECT DISTINCT + 92 + - col0, CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2
----
17
NULL
28
NULL
46
NULL

skipif mysql # not compatible
query II rowsort label-4977
SELECT DISTINCT + 92 + - col0, CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2
----
17
NULL
28
NULL
46
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT ALL + COUNT( ALL + 25 ) - MIN( col0 ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-4979
SELECT ALL + COUNT ( ALL + 25 ) - MIN ( col0 ) FROM tab0
----
-12

query III rowsort
SELECT * FROM tab2 WHERE + col2 + + col2 + - + col2 * col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4981
SELECT DISTINCT - CAST( col2 AS SIGNED ) + col2 col2 FROM tab2 WHERE NOT - ( 93 ) / + 14 + - col2 = col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4981
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + col2 col2 FROM tab2 WHERE NOT - ( 93 ) / + 14 + - col2 = col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4982
SELECT 91 + + 53 DIV + col0 AS col2 FROM tab2
----
91
91
92

skipif mysql # not compatible
query I rowsort label-4982
SELECT 91 + + 53 / + col0 AS col2 FROM tab2
----
91
91
92

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - ( 95 ) NOT BETWEEN ( NULL ) AND 71
----

query II rowsort
SELECT - col0 * + + ( + col1 ) - col0 * col0 + - 64 + - - ( + + col2 ) * 46 AS col2, col1 AS col1 FROM tab0 AS cor0
----
-5016
1
-9000
21
658
81

query I rowsort
SELECT col1 * + 43 FROM tab1 AS cor0
----
2021
215
602

onlyif mysql # DIV for integer division: 
query I rowsort label-4986
SELECT DISTINCT 3 * + - col2 DIV col2 AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4986
SELECT DISTINCT 3 * + - col2 / col2 AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT DISTINCT + MIN( 99 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT + MIN ( 99 ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL - col1 + + 47 AS col1 FROM tab1 AS cor0
----
0
33
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4989
SELECT DISTINCT + col2 * - 3 * col0 * - CAST( + + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
161874
591360
874350

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT + col2 * - 3 * col0 * - CAST ( + + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
161874
591360
874350

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT - MAX( DISTINCT col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4990
SELECT - MAX ( DISTINCT col1 ) FROM tab0 AS cor0
----
-81

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 5 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4992
SELECT ALL - - 48 * + CAST( ( - - col2 ) AS SIGNED ) FROM tab2 AS cor0
----
1104
1920
2784

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL - - 48 * + CAST ( ( - - col2 ) AS INTEGER ) FROM tab2 AS cor0
----
1104
1920
2784

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) = + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4994
SELECT ALL - - ( SUM( 14 ) ) * - - COUNT( * ) FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL - - ( SUM ( 14 ) ) * - - COUNT ( * ) FROM tab1 AS cor0
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4995
SELECT + - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4995
SELECT + - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4996
SELECT DISTINCT - col2 DIV + + col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4996
SELECT DISTINCT - col2 / + + col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + 55 col2 FROM tab2
----
2530
3520
4125

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT 21 IS NULL )
----

query II rowsort
SELECT ALL - col2 AS col0, + col0 * + col0 FROM tab0
----
-10
7569
-47
225
-99
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT + 34 * - SUM( ALL - - col1 ) FROM tab1 WHERE NOT col1 IS NULL
----
-2244

skipif mysql # not compatible
query I rowsort label-5000
SELECT + 34 * - SUM ( ALL - - col1 ) FROM tab1 WHERE NOT col1 IS NULL
----
-2244

query II rowsort
SELECT ALL col1 AS col1, + ( col0 ) FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT ALL - col1 * - + 78 * - 78 AS col0 FROM tab1
----
-285948
-30420
-85176

query II rowsort
SELECT col2 AS col2, - ( - col1 ) * col0 + + col1 + col2 AS col1 FROM tab0
----
10
1858
47
1343
99
197

query I rowsort
SELECT - ( - + 56 ) AS col0 FROM tab2 AS cor0
----
56
56
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5005
SELECT + col0 DIV 1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5005
SELECT + col0 / 1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT DISTINCT ( + SUM( ALL - ( + col2 ) ) ) + + + 44 FROM tab0
----
-112

skipif mysql # not compatible
query I rowsort label-5007
SELECT DISTINCT ( + SUM ( ALL - ( + col2 ) ) ) + + + 44 FROM tab0
----
-112

query III rowsort
SELECT * FROM tab0 WHERE + col1 IN ( - 77 + col1 + + col0 * col1 + - + col0 + - col2 * col2 / - 21 * 21 * + col2, + 58 * - col0 )
----

query I rowsort
SELECT - col2 * - col1 + + 64 FROM tab0
----
163
274
3871

onlyif mysql # aggregate syntax: 
query I rowsort label-5010
SELECT COUNT( - 77 ) + - - ( + 27 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-5010
SELECT COUNT ( - 77 ) + - - ( + 27 ) FROM tab0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT 66 + SUM( + - 92 ) AS col2 FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-5011
SELECT 66 + SUM ( + - 92 ) AS col2 FROM tab1
----
-210

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 = + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5013
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5013
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5014
SELECT - COUNT( * ) + + 55 + + 49 FROM tab0 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-5014
SELECT - COUNT ( * ) + + 55 + + 49 FROM tab0 AS cor0
----
101

query I rowsort
SELECT DISTINCT - 59 + 20 AS col1 FROM tab1
----
-39

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col2 * 94 + + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 30 + + 7 + ( + col2 ) FROM tab2
----
60
77
95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5018
SELECT DISTINCT 25 * + - col2 - - CAST( NULL AS DECIMAL ) * - col2 col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5018
SELECT DISTINCT 25 * + - col2 - - CAST ( NULL AS REAL ) * - col2 col2 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT - col1 + - + 94 + - + 80, col2 FROM tab2
----
-225
23
-241
58
-251
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5020
SELECT - CAST( + 85 AS SIGNED ) - - + MAX( DISTINCT - - 53 ) FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-5020
SELECT - CAST ( + 85 AS INTEGER ) - - + MAX ( DISTINCT - - 53 ) FROM tab2
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5021
SELECT * FROM tab0 WHERE - 61 * - + CAST( NULL AS SIGNED ) <= + col2
----

skipif mysql # not compatible
query III rowsort label-5021
SELECT * FROM tab0 WHERE - 61 * - + CAST ( NULL AS INTEGER ) <= + col2
----

query I rowsort
SELECT 69 * - 0 * - col2 - - col0 AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT 11 - - col1 * 40 FROM tab0
----
3251
51
851

query I rowsort
SELECT - 94 + - col1 AS col2 FROM tab0 AS cor0
----
-115
-175
-95

query I rowsort
SELECT + ( - 36 ) * + ( + 36 ) FROM tab2 AS cor0
----
-1296
-1296
-1296

query I rowsort
SELECT ALL - 57 * + 24 * + + col2 AS col2 FROM tab1 cor0
----
-131328
-80712
-93024

onlyif mysql # DIV for integer division: 
query I rowsort label-5027
SELECT DISTINCT - + col2 DIV 52 * + col0 FROM tab0 AS cor0
----
-97
0

skipif mysql # not compatible
query I rowsort label-5027
SELECT DISTINCT - + col2 / 52 * + col0 FROM tab0 AS cor0
----
-97
0

query I rowsort
SELECT ALL 1 + + + col2 AS col1 FROM tab0 AS cor0 WHERE col1 + 21 + + col1 * - - 30 >= + col1 + 69
----
11
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, ( col2 ) FROM tab0 AS cor0
----
10
10
47
47
99
99

query III rowsort
SELECT + col0, - col1 AS col1, - + col1 FROM tab1 AS cor0
----
9 values hashing to f25a14c90a38a00ee5db64bb071b3695

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5031
SELECT ALL * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) + + - col0 + + col0 IN ( + 60, col2 * ( - - col2 ) / col0 * col0 )
----

skipif mysql # not compatible
query III rowsort label-5031
SELECT ALL * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) + + - col0 + + col0 IN ( + 60, col2 * ( - - col2 ) / col0 * col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + + 8, col1 col0 FROM tab0
----
376
81
792
1
80
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5033
SELECT ALL + 43 * - + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5033
SELECT ALL + 43 * - + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT col1 * - col2, col0 FROM tab1
----
-1344
51
-295
85
-3196
91

query I rowsort
SELECT - col1 - col2 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - + 76 col1 FROM tab0
----
-3572
-7524
-760

query II rowsort
SELECT col0 * + - 12 AS col0, + col0 + 56 AS col2 FROM tab1
----
-1020
141
-1092
147
-612
107

query I rowsort
SELECT DISTINCT col1 * col2 * - + 33 AS col2 FROM tab1
----
-105468
-44352
-9735

query I rowsort
SELECT - col1 + - + col1 + + col1 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 79 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 + - col0 * - col1 AS col1 FROM tab0 AS cor0 WHERE ( ( ( NULL ) >= + col2 ) )
----

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT + col0 + - col0 + - + 7 FROM tab1 WHERE - 43 + col0 > NULL
----

query I rowsort
SELECT - + col2 * + 16 AS col2 FROM tab0 AS cor0
----
-1584
-160
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT SUM( col2 ) * + 43 AS col2 FROM tab1 AS cor0
----
9589

skipif mysql # not compatible
query I rowsort label-5045
SELECT SUM ( col2 ) * + 43 AS col2 FROM tab1 AS cor0
----
9589

query I rowsort
SELECT + col2 - - - col1 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT DISTINCT - 29 * - + col1 FROM tab2 cor0
----
1479
1943
2233

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 13 col0, - col2 FROM tab1 AS cor0
----
-13
-59
-13
-68
-13
-96

query I rowsort
SELECT DISTINCT ( 54 ) AS col1 FROM tab1 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT ALL + - SUM( - col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-5050
SELECT ALL + - SUM ( - col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT - 5 * ( col1 ) + col1 + - - col0 FROM tab1 cor0
----
-5
-97
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5052
SELECT CAST( NULL AS SIGNED ) + + + col1 + + 88 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5052
SELECT CAST ( NULL AS INTEGER ) + + + col1 + + 88 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT - - COUNT( * ) FROM tab2 AS cor0 WHERE - col0 * 33 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5053
SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE - col0 * 33 IS NOT NULL
----
3

query I rowsort
SELECT col1 + + 55 AS col2 FROM tab0 AS cor0
----
136
56
76

query II rowsort
SELECT ALL col1 + - col2 AS col0, col0 * col1 AS col0 FROM tab2
----
28
2346
37
4928
9
5025

query I rowsort
SELECT DISTINCT + col0 - - col1 * - 92 AS col2 FROM tab0
----
-1845
-7437
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5057
SELECT DISTINCT * FROM tab0 WHERE - col2 < ( + col0 - col1 + + + CAST( NULL AS SIGNED ) * - col2 * + 60 * - 19 )
----

skipif mysql # not compatible
query III rowsort label-5057
SELECT DISTINCT * FROM tab0 WHERE - col2 < ( + col0 - col1 + + + CAST ( NULL AS INTEGER ) * - col2 * + 60 * - 19 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5058
SELECT DISTINCT 95 DIV - - CAST( + col1 AS SIGNED ) + col2 AS col1 FROM tab0
----
14
194
48

skipif mysql # not compatible
query I rowsort label-5058
SELECT DISTINCT 95 / - - CAST ( + col1 AS INTEGER ) + col2 AS col1 FROM tab0
----
14
194
48

query III rowsort
SELECT ALL * FROM tab2 WHERE 88 * - 97 + - 20 - + - col0 - - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT DISTINCT - COUNT( - 31 ) - + SUM( ALL + col0 ) FROM tab2
----
-188

skipif mysql # not compatible
query I rowsort label-5060
SELECT DISTINCT - COUNT ( - 31 ) - + SUM ( ALL + col0 ) FROM tab2
----
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT - + 85 * + COUNT( - col1 ) AS col0 FROM tab1 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-5061
SELECT - + 85 * + COUNT ( - col1 ) AS col0 FROM tab1 AS cor0
----
-255

query I rowsort
SELECT DISTINCT + + 2 * + 41 FROM tab2 AS cor0
----
82

query I rowsort
SELECT - 22 * 18 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b828d77cb34c253a1e28146582b27a9c

query I rowsort
SELECT 24 FROM tab2 WHERE NOT NULL <> - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT DISTINCT + SUM( + - 2 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT + SUM ( + - 2 ) FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT + ( - MAX( + + 11 ) ) col2 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5066
SELECT + ( - MAX ( + + 11 ) ) col2 FROM tab1 AS cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT - MIN( ALL - ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5067
SELECT - MIN ( ALL - ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
-46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 0 IS NULL
----

query I rowsort
SELECT DISTINCT + + col1 + 87 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( 60, ( - col0 ) * + + col0 )
----

query I rowsort
SELECT ALL - col0 * + 47 FROM tab1
----
-2397
-3995
-4277

query I rowsort
SELECT - col2 * col2 * - col2 AS col0 FROM tab2
----
12167
195112
64000

query I rowsort
SELECT DISTINCT + col2 * 83 AS col2 FROM tab1
----
4897
5644
7968

onlyif mysql # DIV for integer division: 
query I rowsort label-5073
SELECT + - col2 DIV - + ( - - col0 ) FROM tab2 WHERE col1 NOT BETWEEN + 23 AND col0 DIV + 37
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5073
SELECT + - col2 / - + ( - - col0 ) FROM tab2 WHERE col1 NOT BETWEEN + 23 AND col0 / + 37
----
0
0
0

query I rowsort
SELECT - 46 * - 11 AS col1 FROM tab2
----
506
506
506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - + 21 col2 FROM tab2
----
-1218
-483
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT ALL + 87 * - + 32 * - COUNT( * ) col0 FROM tab0
----
8352

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5076
SELECT ALL + 87 * - + 32 * - COUNT ( * ) col0 FROM tab0
----
8352

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 IN ( - 31, + 76 * + col2 + - col0 )
----

query I rowsort
SELECT ALL - + 90 FROM tab0 cor0 WHERE NOT + col0 <= - - ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5079
SELECT * FROM tab1 AS cor0 WHERE col1 * col2 + ( CAST( NULL AS SIGNED ) ) IN ( - col2, col1, - col0 * + col1 - - col2 - + 72 * 54 - + 31 + + + 99 - + + col1 )
----

skipif mysql # not compatible
query III rowsort label-5079
SELECT * FROM tab1 AS cor0 WHERE col1 * col2 + ( CAST ( NULL AS INTEGER ) ) IN ( - col2, col1, - col0 * + col1 - - col2 - + 72 * 54 - + 31 + + + 99 - + + col1 )
----

query I rowsort
SELECT ALL - 53 + + 77 FROM tab2
----
24
24
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT + - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5081
SELECT + - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT 10 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT ALL - 60 + - col1 FROM tab1
----
-107
-65
-74

query I rowsort
SELECT 77 AS col1 FROM tab1 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * 12 IN ( - col1, 99 )
----

query I rowsort
SELECT ALL + + ( + 45 ) FROM tab0 AS cor0 WHERE NOT - 38 IS NULL
----
45
45
45

query I rowsort
SELECT ALL + 93 * col0 + + - col1 AS col2 FROM tab2 AS cor0
----
4227
5875
6908

query I rowsort
SELECT + 17 - - + col0 AS col2 FROM tab2
----
63
81
92

query I rowsort
SELECT ALL - 64 + + - ( + - col2 ) FROM tab0
----
-17
-54
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5090
SELECT ALL CAST( col0 AS SIGNED ) - CAST( - + col1 AS SIGNED ) AS col2 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-5090
SELECT ALL CAST ( col0 AS INTEGER ) - CAST ( - + col1 AS INTEGER ) AS col2 FROM tab1
----
138
65
90

query I rowsort
SELECT DISTINCT - col0 + + col2 * ( - 41 ) AS col2 FROM tab2
----
-1704
-2453
-989

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT COUNT( DISTINCT - col1 ) * - + 68 col0 FROM tab1
----
-204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5092
SELECT COUNT ( DISTINCT - col1 ) * - + 68 col0 FROM tab1
----
-204

query II rowsort
SELECT + col2, + col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query II rowsort label-5094
SELECT 47 AS col1, - COUNT( * ) col1 FROM tab0
----
47
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5094
SELECT 47 AS col1, - COUNT ( * ) col1 FROM tab0
----
47
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT ALL 13 + + COUNT( ALL ( - - col2 ) ) * - 52 AS col0 FROM tab2 WHERE NULL >= NULL
----
13

skipif mysql # not compatible
query I rowsort label-5095
SELECT ALL 13 + + COUNT ( ALL ( - - col2 ) ) * - 52 AS col0 FROM tab2 WHERE NULL >= NULL
----
13

query I rowsort
SELECT 41 * 18 FROM tab0 AS cor0
----
738
738
738

query II rowsort
SELECT + col2 * - col0 + col1 AS col1, 33 FROM tab0 AS cor0
----
-624
33
-849
33
-9602
33

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( col1, - col2, - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5099
SELECT - col2 DIV - - col0 AS col2 FROM tab0 WHERE NOT - - col1 + + - CAST( - col2 AS SIGNED ) + + col0 + 68 * col2 + col1 + + 63 IS NULL
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5099
SELECT - col2 / - - col0 AS col2 FROM tab0 WHERE NOT - - col1 + + - CAST ( - col2 AS INTEGER ) + + col0 + 68 * col2 + col1 + + 63 IS NULL
----
-1
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5100
SELECT col2 / - col1 * + - col2 / col1 * + 36 / + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5100
SELECT col2 / - col1 * + - col2 / col1 * + 36 / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT DISTINCT - MAX( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT - MAX ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
23

query I rowsort
SELECT DISTINCT + 79 + 68 * + 87 AS col0 FROM tab1 AS cor0
----
5995

query I rowsort
SELECT - - 44 AS col1 FROM tab2 cor0
----
44
44
44

onlyif mysql # DIV for integer division: 
query II rowsort label-5104
SELECT col1 AS col0, - 48 DIV col0 + + - col0 AS col2 FROM tab2
----
51
-47
67
-75
77
-64

skipif mysql # not compatible
query II rowsort label-5104
SELECT col1 AS col0, - 48 / col0 + + - col0 AS col2 FROM tab2
----
51
-47
67
-75
77
-64

query I rowsort
SELECT + col1 * col0 * col1 * + + col0 AS col0 FROM tab0
----
1476225
3337929
9409

query I rowsort
SELECT - 88 * - col1 AS col0 FROM tab1
----
1232
4136
440

onlyif mysql # aggregate syntax: 
query I rowsort label-5107
SELECT DISTINCT 89 + COUNT( * ) FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-5107
SELECT DISTINCT 89 + COUNT ( * ) FROM tab0
----
92

query II rowsort
SELECT col2 AS col0, col2 * + col1 AS col1 FROM tab1 cor0
----
59
295
68
3196
96
1344

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - col1 + + 78 + - 75 * col0 * + col1 col2 FROM tab2 cor0
----
-175770
-369368
-376663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5110
SELECT ALL col0 * + 58 * - 14 + + CAST( + col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
-41398
-69015
-73845

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5110
SELECT ALL col0 * + 58 * - 14 + + CAST ( + col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
-41398
-69015
-73845

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5111
SELECT - col2 - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5111
SELECT - col2 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT DISTINCT SUM( col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT SUM ( col1 ) AS col0 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT COUNT( * ) + + 67 FROM tab2 cor0
----
70

skipif mysql # not compatible
query I rowsort label-5113
SELECT COUNT ( * ) + + 67 FROM tab2 cor0
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 col1 FROM tab0 AS cor0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT + ( + MIN( col2 ) ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5115
SELECT + ( + MIN ( col2 ) ) AS col0 FROM tab2 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 34 col2 FROM tab1 WHERE NOT col1 / - col0 IS NULL
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - - 65 col1 FROM tab0 WHERE NULL IS NULL
----
5655
6305
975

query I rowsort
SELECT DISTINCT + 20 * 52 FROM tab1
----
1040

query II rowsort
SELECT DISTINCT - ( - + 37 ), - col0 AS col0 FROM tab2
----
37
-46
37
-64
37
-75

query III rowsort
SELECT * FROM tab1 WHERE NOT + 90 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ( - col2 ), 69 AS col2 FROM tab0
----
-10
69
-47
69
-99
69

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 + + col0 + + ( - 19 ) * 25 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5124
SELECT - MIN( + 51 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5124
SELECT - MIN ( + 51 ) FROM tab1
----
-51

query I rowsort
SELECT - ( - ( + col1 ) ) FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT ALL + 71 * ( - COUNT( DISTINCT col0 ) ) FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-5126
SELECT ALL + 71 * ( - COUNT ( DISTINCT col0 ) ) FROM tab2 AS cor0
----
-213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5127
SELECT col0 * col1 * + + CAST( - 60 AS SIGNED ) FROM tab2 cor0 WHERE NOT col0 = NULL
----

skipif mysql # not compatible
query I rowsort label-5127
SELECT col0 * col1 * + + CAST ( - 60 AS INTEGER ) FROM tab2 cor0 WHERE NOT col0 = NULL
----

query I rowsort
SELECT ( 27 ) * + + col2 AS col0 FROM tab1
----
1593
1836
2592

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5129
SELECT ALL - 59 AS col1, - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-59
NULL
-59
NULL
-59
NULL

skipif mysql # not compatible
query II rowsort label-5129
SELECT ALL - 59 AS col1, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-59
NULL
-59
NULL
-59
NULL

query I rowsort
SELECT ALL + + 30 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # aggregate syntax: 
query I rowsort label-5131
SELECT ALL - COUNT( * ) FROM tab1 WHERE NULL <> + + 76
----
0

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NULL <> + + 76
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 59 > - + 90 * - col0 + - col0 - col2 - + col0
----

query II rowsort
SELECT DISTINCT + col1, - 32 FROM tab1 AS cor0
----
14
-32
47
-32
5
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT + - COUNT( * ) + - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5134
SELECT + - COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-5135
SELECT ALL 75 AS col0, ( - MIN( 49 ) ) FROM tab0 AS cor0
----
75
-49

skipif mysql # not compatible
query II rowsort label-5135
SELECT ALL 75 AS col0, ( - MIN ( 49 ) ) FROM tab0 AS cor0
----
75
-49

query I rowsort
SELECT ALL + + 49 AS col1 FROM tab0 AS cor0
----
49
49
49

query I rowsort
SELECT ALL + col2 + - + 21 FROM tab2 AS cor0
----
19
2
37

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > - 95 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 + col0 col0 FROM tab2 AS cor0 WHERE NULL BETWEEN - 79 AND + - col0
----

query I rowsort
SELECT - - 43 + - col1 FROM tab0 AS cor0
----
-38
22
42

query II rowsort
SELECT - col1, + col2 * - col2 AS col0 FROM tab2 cor0 WHERE NULL BETWEEN col0 AND NULL
----

query I rowsort
SELECT ALL + 87 + - col1 - + col1 AS col0 FROM tab0
----
-75
45
85

query I rowsort
SELECT ALL + ( + - ( - col2 ) ) AS col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5144
SELECT DISTINCT 53 + 1 + + - 28 * + + 71 AS col2, MIN( DISTINCT col2 ) AS col2 FROM tab2
----
-1934
23

skipif mysql # not compatible
query II rowsort label-5144
SELECT DISTINCT 53 + 1 + + - 28 * + + 71 AS col2, MIN ( DISTINCT col2 ) AS col2 FROM tab2
----
-1934
23

query II rowsort
SELECT + col0 * + col2, + col0 FROM tab0
----
705
15
870
87
9603
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT COUNT( * ) * + ( + + COUNT( * ) ) * - 10 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-5146
SELECT COUNT ( * ) * + ( + + COUNT ( * ) ) * - 10 FROM tab2
----
-90

query I rowsort
SELECT col2 * - ( + col0 ) FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query II rowsort label-5148
SELECT + COUNT( * ) * COUNT( * ) AS col1, ( + COUNT( * ) ) AS col2 FROM tab2
----
9
3

skipif mysql # not compatible
query II rowsort label-5148
SELECT + COUNT ( * ) * COUNT ( * ) AS col1, ( + COUNT ( * ) ) AS col2 FROM tab2
----
9
3

query I rowsort
SELECT col2 * + - col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT - ( + 22 ) * - 49 * + col1 * - col0 FROM tab2 AS cor0
----
-2528988
-5312384
-5416950

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 + col2 > + 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT - + MIN( ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5152
SELECT - + MIN ( ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL - col1 + - 97 * col0 AS col0 FROM tab1 AS cor0
----
-4961
-8250
-8874

query II rowsort
SELECT ALL - + 76 * - col0, col2 FROM tab2 AS cor0
----
3496
23
4864
40
5700
58

query III rowsort
SELECT * FROM tab0 WHERE + + col0 IN ( col1 / - 51 * + col1 * - col1 - - + 94 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 31 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5157
SELECT DISTINCT + + col2 * - - col2 * - - col2 * 65 FROM tab2 AS cor0 WHERE NOT col2 * - + CAST( NULL AS SIGNED ) + col1 * CAST( NULL AS SIGNED ) NOT IN ( - col0, - col0 + + col0 )
----

skipif mysql # not compatible
query I rowsort label-5157
SELECT DISTINCT + + col2 * - - col2 * - - col2 * 65 FROM tab2 AS cor0 WHERE NOT col2 * - + CAST ( NULL AS INTEGER ) + col1 * CAST ( NULL AS INTEGER ) NOT IN ( - col0, - col0 + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5158
SELECT ALL + + col2 * CAST( - - col2 AS SIGNED ) - - CAST( NULL AS DECIMAL ) + 70 AS col2 FROM tab2 AS cor0 WHERE 65 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL + + col2 * CAST ( - - col2 AS INTEGER ) - - CAST ( NULL AS REAL ) + 70 AS col2 FROM tab2 AS cor0 WHERE 65 IS NULL
----

query I rowsort
SELECT + - 5 * col2 * + col2 FROM tab0 AS cor0
----
-11045
-49005
-500

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT ALL + MAX( ALL + col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL + MAX ( ALL + col2 ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT MAX( ALL + - col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-5161
SELECT MAX ( ALL + - col2 ) FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-5162
SELECT + COUNT( * ), 78 AS col0 FROM tab2
----
3
78

skipif mysql # not compatible
query II rowsort label-5162
SELECT + COUNT ( * ), 78 AS col0 FROM tab2
----
3
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5163
SELECT CAST( NULL AS SIGNED ) / COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT CAST ( NULL AS INTEGER ) / COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5164
SELECT ALL + ( - + COUNT( * ) ) DIV 66 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL + ( - + COUNT ( * ) ) / 66 FROM tab2
----
0

query I rowsort
SELECT ALL col2 * col1 * col2 * 96 FROM tab2
----
11827200
21637248
2589984

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5166
SELECT DISTINCT 48 AS col2, CAST( NULL AS SIGNED ) * 97 AS col1 FROM tab2
----
48
NULL

skipif mysql # not compatible
query II rowsort label-5166
SELECT DISTINCT 48 AS col2, CAST ( NULL AS INTEGER ) * 97 AS col1 FROM tab2
----
48
NULL

query II rowsort
SELECT col1, - col1 * - col1 AS col2 FROM tab0 WHERE NOT ( + ( + col1 ) = ( NULL ) )
----

query I rowsort
SELECT ALL col2 * - 76 * - 40 FROM tab1
----
179360
206720
291840

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT DISTINCT + MAX( ALL + - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5169
SELECT DISTINCT + MAX ( ALL + - col1 ) FROM tab2
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5170
SELECT ALL + 53 * + CAST( NULL AS DECIMAL ) col2, col1 + - col1 AS col2 FROM tab1
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5170
SELECT ALL + 53 * + CAST ( NULL AS REAL ) col2, col1 + - col1 AS col2 FROM tab1
----
NULL
0
NULL
0
NULL
0

query I rowsort
SELECT DISTINCT + 14 * + col0 FROM tab0 AS cor0
----
1218
1358
210

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 col0 FROM tab2 cor0
----
15
15
15

onlyif mysql # DIV for integer division: 
query I rowsort label-5173
SELECT - col1 DIV + 48 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5173
SELECT - col1 / + 48 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT DISTINCT - + 85 + + COUNT( * ) FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-5174
SELECT DISTINCT - + 85 + + COUNT ( * ) FROM tab2 AS cor0
----
-82

query I rowsort
SELECT 92 * + + 74 FROM tab1 AS cor0
----
6808
6808
6808

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col2 - + - col2 * + 23
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5177
SELECT ALL - 31 + + 61 * + COUNT( * ) - + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5177
SELECT ALL - 31 + + 61 * + COUNT ( * ) - + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + ( 35 ) * col0 + 67 + - - 89 FROM tab1 AS cor0
----
1941
3131
3341

query I rowsort
SELECT DISTINCT + col0 + + 1 FROM tab1
----
52
86
92

onlyif mysql # DIV for integer division: 
query I rowsort label-5180
SELECT + col0 DIV + col0 FROM tab1 WHERE NULL IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5180
SELECT + col0 / + col0 FROM tab1 WHERE NULL IS NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT DISTINCT + ( 12 ) + MAX( + + col2 ) col2 FROM tab1
----
108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5181
SELECT DISTINCT + ( 12 ) + MAX ( + + col2 ) col2 FROM tab1
----
108

query I rowsort
SELECT DISTINCT + 20 * - - col2 * - col1 AS col0 FROM tab2
----
-23460
-61600
-77720

query I rowsort
SELECT DISTINCT + col1 * + - col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT - - COUNT( 54 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5184
SELECT - - COUNT ( 54 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) = NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) BETWEEN - 0 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5187
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST( NULL AS DECIMAL ) NOT BETWEEN - - ( - - 61 ) * col2 * col0 AND + 70 + + ( + 3 )
----

skipif mysql # not compatible
query III rowsort label-5187
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS REAL ) NOT BETWEEN - - ( - - 61 ) * col2 * col0 AND + 70 + + ( + 3 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5188
SELECT + - 77 * - CAST( + COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
231

skipif mysql # not compatible
query I rowsort label-5188
SELECT + - 77 * - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
231

query I rowsort
SELECT ALL + + 54 * + 17 AS col2 FROM tab2 AS cor0
----
918
918
918

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT ALL COUNT( * ) FROM tab1 cor0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL < NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 = NULL
----

query II rowsort
SELECT ALL - 71, + col1 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5193
SELECT DISTINCT - MAX( DISTINCT - + CAST( + col0 AS SIGNED ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT - MAX ( DISTINCT - + CAST ( + col0 AS INTEGER ) ) FROM tab1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5194
SELECT 55 DIV - 97 * - 24 col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5194
SELECT 55 / - 97 * - 24 col1 FROM tab0
----
0
0
0

query II rowsort
SELECT col2 AS col0, 34 FROM tab2
----
23
34
40
34
58
34

query I rowsort
SELECT ALL + col2 * 64 AS col0 FROM tab0
----
3008
6336
640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 68 col2 FROM tab2
----
68
68
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5198
SELECT DISTINCT + - 48 DIV 57 + COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5198
SELECT DISTINCT + - 48 / 57 + COUNT ( * ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + - 64 * - - 94 - + 26 AS col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT + + col2 * col0 * - col0 + + col2 AS col0 FROM tab2 WHERE - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 + - col0 + + col2 FROM tab2 AS cor0
----
0
16
41

query I rowsort
SELECT ALL - + col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5203
SELECT ALL - 22 DIV + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5203
SELECT ALL - 22 / + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - - col2 + + + 71 AS col2 FROM tab1 AS cor0
----
130
139
167

query I rowsort
SELECT - 18 + + + 19 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5206
SELECT DISTINCT - ( col0 ) DIV col2 - 7 FROM tab2 cor0
----
-8
-9

skipif mysql # not compatible
query I rowsort label-5206
SELECT DISTINCT - ( col0 ) / col2 - 7 FROM tab2 cor0
----
-8
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT DISTINCT + COUNT( * ) + + COUNT( ALL - col1 ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT + COUNT ( * ) + + COUNT ( ALL - col1 ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL - - col2 FROM tab0 AS cor0 WHERE 21 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT DISTINCT 64 + - COUNT( * ) AS col0 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT 64 + - COUNT ( * ) AS col0 FROM tab0
----
61

query I rowsort
SELECT ALL 91 - - col1 * - 61 FROM tab2
----
-3020
-3996
-4606

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT 76 - + COUNT( * ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-5211
SELECT 76 - + COUNT ( * ) FROM tab0
----
73

query I rowsort
SELECT col2 - + - 66 FROM tab1
----
125
134
162

query II rowsort
SELECT - 92 - + - col0 AS col1, col0 AS col2 FROM tab0
----
-5
87
-77
15
5
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5214
SELECT DISTINCT COUNT( * ) - - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5214
SELECT DISTINCT COUNT ( * ) - - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5215
SELECT DISTINCT + 19 DIV + 98 - col1 col0 FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5215
SELECT DISTINCT + 19 / + 98 - col1 col0 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT ALL col1 + + col1 + - 55 AS col1 FROM tab1 cor0
----
-27
-45
39

onlyif mysql # DIV for integer division: 
query I rowsort label-5217
SELECT - col1 DIV - 64 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5217
SELECT - col1 / - 64 AS col1 FROM tab2
----
0
1
1

query II rowsort
SELECT col1, - col2 FROM tab1
----
14
-96
47
-68
5
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5219
SELECT ( + col1 ) col0, col1 * + - CAST( - 89 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5219
SELECT ( + col1 ) col0, col1 * + - CAST ( - 89 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( ( - col0 BETWEEN NULL AND NULL ) )
----

query I rowsort
SELECT + col2 * - - col1 AS col1 FROM tab1 cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT ALL - + COUNT( DISTINCT - 34 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL - + COUNT ( DISTINCT - 34 ) AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + 63 * + - col1 AS col0 FROM tab0
----
-1323
-5103
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT DISTINCT + ( - - COUNT( * ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT + ( - - COUNT ( * ) ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT + COUNT( * ) * ( 14 ) * - MAX( DISTINCT col0 ) FROM tab0
----
-4074

skipif mysql # not compatible
query I rowsort label-5225
SELECT + COUNT ( * ) * ( 14 ) * - MAX ( DISTINCT col0 ) FROM tab0
----
-4074

onlyif mysql # DIV for integer division: 
query I rowsort label-5226
SELECT + col1 DIV - 98 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5226
SELECT + col1 / - 98 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5227
SELECT DISTINCT - SUM( - - col2 ) * + 7 FROM tab1
----
-1561

skipif mysql # not compatible
query I rowsort label-5227
SELECT DISTINCT - SUM ( - - col2 ) * + 7 FROM tab1
----
-1561

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL < + col1
----

query I rowsort
SELECT DISTINCT + col2 * + + col0 FROM tab1
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, ( - + col1 ) + 49 + ( 1 ) + + 31 col1 FROM tab1
----
-59
76
-68
34
-96
67

query I rowsort
SELECT - col0 + - - col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - col2, col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 + + col1 + + col1 NOT BETWEEN col2 AND 71
----

query I rowsort
SELECT DISTINCT - ( + + 68 ) + + col2 + - + 96 * - + col2 FROM tab0 AS cor0
----
4491
902
9535

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN 60 AND - - ( + - col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 33, col1, + ( - 28 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT + + 85 - MAX( DISTINCT + col2 ) + 28 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-5236
SELECT + + 85 - MAX ( DISTINCT + col2 ) + 28 FROM tab1 AS cor0
----
17

query II rowsort
SELECT 72, col0 FROM tab2 AS cor0 WHERE + 37 IS NOT NULL
----
72
46
72
64
72
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT DISTINCT + MAX( + col0 ) AS col1 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-5238
SELECT DISTINCT + MAX ( + col0 ) AS col1 FROM tab2 cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5239
SELECT + + 20 * col0 DIV - col0 - col2 * + col2 * - - 16 col2 FROM tab0 cor0
----
-156836
-1620
-35364

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5239
SELECT + + 20 * col0 / - col0 - col2 * + col2 * - - 16 col2 FROM tab0 cor0
----
-156836
-1620
-35364

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT DISTINCT + SUM( ALL + 0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5240
SELECT DISTINCT + SUM ( ALL + 0 ) FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT - - 92 + - col0 * 93 AS col1, + 80 FROM tab1 AS cor0
----
-4651
80
-7813
80
-8371
80

query I rowsort
SELECT + col0 + + 53 AS col0 FROM tab1 AS cor0
----
104
138
144

onlyif mysql # aggregate syntax: 
query I rowsort label-5243
SELECT DISTINCT 68 + ( ( + 49 ) ) - + + COUNT( * ) * - - 97 FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT 68 + ( ( + 49 ) ) - + + COUNT ( * ) * - - 97 FROM tab1 AS cor0
----
-174

query I rowsort
SELECT - ( - 45 ) + col1 FROM tab0 AS cor0
----
126
46
66

query I rowsort
SELECT ALL + 54 * - col2 + + col1 + col0 FROM tab1 AS cor0
----
-3096
-3534
-5119

onlyif mysql # DIV for integer division: 
query I rowsort label-5246
SELECT - 61 DIV + 81 * + - col2 + + 92 FROM tab1
----
92
92
92

skipif mysql # not compatible
query I rowsort label-5246
SELECT - 61 / + 81 * + - col2 + + 92 FROM tab1
----
92
92
92

query I rowsort
SELECT ALL col1 - col2 + - + 38 FROM tab0
----
-136
-27
-4

query I rowsort
SELECT DISTINCT + col2 - + 6 - + 89 AS col2 FROM tab0
----
-48
-85
4

query I rowsort
SELECT - - 17 AS col1 FROM tab2 AS cor0
----
17
17
17

query I rowsort
SELECT DISTINCT - col2 * - + 10 FROM tab2 AS cor0
----
230
400
580

onlyif mysql # DIV for integer division: 
query I rowsort label-5251
SELECT ALL + col1 DIV - 39 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5251
SELECT ALL + col1 / - 39 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5252
SELECT - ( - - MIN( 37 ) ) FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-5252
SELECT - ( - - MIN ( 37 ) ) FROM tab0 AS cor0
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT - - SUM( + 52 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= - col2 * + col0 - + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT - - SUM ( + 52 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= - col2 * + col0 - + col1
----
NULL

query I rowsort
SELECT - 36 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT - 1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5256
SELECT + MIN( col1 ) DIV + 58 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5256
SELECT + MIN ( col1 ) / + 58 AS col2 FROM tab0
----
0

query II rowsort
SELECT col2 * + 66 AS col2, - 37 FROM tab2
----
1518
-37
2640
-37
3828
-37

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + 32 + - - 64 * 71 + + 0 + - 23 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT ALL - COUNT( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5259
SELECT ALL - COUNT ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT ALL SUM( + ( - col1 ) ) col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5260
SELECT ALL SUM ( + ( - col1 ) ) col1 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT + 68 * - 37 * + - 54 AS col2 FROM tab1 AS cor0
----
135864
135864
135864

onlyif mysql # aggregate syntax: 
query I rowsort label-5262
SELECT ALL - ( + - SUM( ALL - col1 ) ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5262
SELECT ALL - ( + - SUM ( ALL - col1 ) ) AS col2 FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-5263
SELECT - 62 AS col1, - COUNT( * ) FROM tab0
----
-62
-3

skipif mysql # not compatible
query II rowsort label-5263
SELECT - 62 AS col1, - COUNT ( * ) FROM tab0
----
-62
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 35 <= NULL
----

query II rowsort
SELECT 8, col0 FROM tab1
----
8
51
8
85
8
91

query I rowsort
SELECT ALL 10 + + col0 * - col1 + col1 * + 23 + + ( col0 ) AS col0 FROM tab2 cor0
----
-1117
-3083
-3399

query I rowsort
SELECT + col1 + col1 FROM tab0 WHERE NOT NULL < + col2 + ( 45 + col0 * + col1 ) * - 57
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5268
SELECT ALL - CAST( - 6 AS SIGNED ) + - col1 FROM tab1
----
-41
-8
1

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL - CAST ( - 6 AS INTEGER ) + - col1 FROM tab1
----
-41
-8
1

query I rowsort
SELECT DISTINCT col2 * - col0 + 15 AS col2 FROM tab1 WHERE NULL IN ( col1 - 4 / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT 61 * SUM( 78 ) AS col2 FROM tab1
----
14274

skipif mysql # not compatible
query I rowsort label-5270
SELECT 61 * SUM ( 78 ) AS col2 FROM tab1
----
14274

query I rowsort
SELECT - 93 * col1 + + col0 FROM tab2
----
-4697
-6156
-7097

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT COUNT( * ) FROM tab0 WHERE ( col2 + - col0 * + col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5272
SELECT COUNT ( * ) FROM tab0 WHERE ( col2 + - col0 * + col1 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT ( + col1 ) + col1 * col0 AS col2 FROM tab1
----
430
4324
728

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > 61 * - 81
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5275
SELECT + CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5275
SELECT + CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 * + ( - 63 ) col1 FROM tab1
----
-3276
-3276
-3276

query I rowsort
SELECT - 69 * + col2 FROM tab1
----
-4071
-4692
-6624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + col2 col0 FROM tab0
----
-2
-32
77

query I rowsort
SELECT + col2 - 87 FROM tab2
----
-29
-47
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5280
SELECT DISTINCT COUNT( CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5280
SELECT DISTINCT COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

query I rowsort
SELECT - ( - 55 ) FROM tab1
----
55
55
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5282
SELECT ALL - col2 DIV ( + col0 ) FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL - col2 / ( + col0 ) FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL 19 * col1 AS col1 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT col2 <= - 48
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 + 46 col2 FROM tab1
----
-48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5286
SELECT - 18 DIV - SUM( DISTINCT - col2 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5286
SELECT - 18 / - SUM ( DISTINCT - col2 ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT DISTINCT 2 * - MIN( DISTINCT col1 ) AS col0 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT 2 * - MIN ( DISTINCT col1 ) AS col0 FROM tab0
----
-2

query I rowsort
SELECT DISTINCT ( 82 ) + - 30 * col1 FROM tab2
----
-1448
-1928
-2228

query I rowsort
SELECT + ( 7 ) + 23 AS col1 FROM tab0
----
30
30
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5290
SELECT + 91 DIV col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-5290
SELECT + 91 / col2 FROM tab2
----
1
2
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5291
SELECT DISTINCT + col2 + col2 DIV ( 70 ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT + col2 + col2 / ( 70 ) FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5292
SELECT COUNT( * ) DIV 75 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5292
SELECT COUNT ( * ) / 75 AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 35 + + col2 FROM tab1
----
24
33
61

query I rowsort
SELECT col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

query III rowsort
SELECT * FROM tab0 WHERE 50 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 38 * - col0 AS col0 FROM tab0 AS cor0
----
-3306
-3686
-570

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5297
SELECT ALL - AVG ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL - AVG ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + 64 FROM tab2 AS cor0
----
-1472
-2560
-3712

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT NULL = + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 col2 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5301
SELECT + ( MAX( + col0 ) ) col2 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5301
SELECT + ( MAX ( + col0 ) ) col2 FROM tab0
----
97

query I rowsort
SELECT + 5 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 6035628694bdea36f584f3649088551d

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * ( col0 * col2 ) <> ( NULL )
----

query I rowsort
SELECT ALL - + 42 AS col1 FROM tab1 cor0
----
-42
-42
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5305
SELECT ALL - + col2 + + col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL - + col2 + + col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5306
SELECT DISTINCT - SUM( ALL + col1 ) * 32 FROM tab0 cor0
----
-3296

skipif mysql # not compatible
query I rowsort label-5306
SELECT DISTINCT - SUM ( ALL + col1 ) * 32 FROM tab0 cor0
----
-3296

onlyif mysql # DIV for integer division: 
query I rowsort label-5307
SELECT DISTINCT col1 DIV 44 AS col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5307
SELECT DISTINCT col1 / 44 AS col0 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT - 28 * ( + ( + col2 ) + 72 ) AS col2 FROM tab1 AS cor0
----
-3668
-3920
-4704

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( + 42 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT ALL MIN( ALL - col2 ) * + COUNT( ALL col2 * - 83 ) FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-5310
SELECT ALL MIN ( ALL - col2 ) * + COUNT ( ALL col2 * - 83 ) FROM tab2 AS cor0
----
-174

onlyif mysql # DIV for integer division: 
query I rowsort label-5311
SELECT DISTINCT col2 DIV - 95 + - 20 col1 FROM tab1 AS cor0
----
-20
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5311
SELECT DISTINCT col2 / - 95 + - 20 col1 FROM tab1 AS cor0
----
-20
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5312
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5312
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE + col0 * - 51 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT MIN( ALL - 74 ) * 59 AS col2 FROM tab2 AS cor0
----
-4366

skipif mysql # not compatible
query I rowsort label-5314
SELECT MIN ( ALL - 74 ) * 59 AS col2 FROM tab2 AS cor0
----
-4366

onlyif mysql # DIV for integer division: 
query I rowsort label-5315
SELECT + col2 + - col0 DIV + col0 AS col1 FROM tab1 WHERE NOT + 89 IN ( - col2 )
----
58
67
95

skipif mysql # not compatible
query I rowsort label-5315
SELECT + col2 + - col0 / + col0 AS col1 FROM tab1 WHERE NOT + 89 IN ( - col2 )
----
58
67
95

query I rowsort
SELECT ALL - col1 * 41 + col1 AS col2 FROM tab0
----
-3240
-40
-840

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 86 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col2 ) NOT BETWEEN ( NULL ) AND ( - col0 )
----

query I rowsort
SELECT + col2 * col0 + - 88 FROM tab2
----
2472
4262
970

query I rowsort
SELECT DISTINCT + ( ( 21 ) ) * col1 AS col2 FROM tab0
----
1701
21
441

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5321
SELECT * FROM tab1 AS cor0 WHERE col2 * + CAST( NULL AS DECIMAL ) < NULL
----

skipif mysql # not compatible
query III rowsort label-5321
SELECT * FROM tab1 AS cor0 WHERE col2 * + CAST ( NULL AS REAL ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5322
SELECT + + 44 DIV - col2 + col0 AS col1 FROM tab0 AS cor0
----
15
83
97

skipif mysql # not compatible
query I rowsort label-5322
SELECT + + 44 / - col2 + col0 AS col1 FROM tab0 AS cor0
----
15
83
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT + COUNT( DISTINCT + + col1 ) + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5323
SELECT + COUNT ( DISTINCT + + col1 ) + - COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + - col1 + - col1 + 66 * + col1 FROM tab2 cor0
----
3264
4288
4928

query I rowsort
SELECT DISTINCT 83 * + col0 + + col1 FROM tab0 AS cor0
----
1326
7242
8052

query I rowsort
SELECT 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5327
SELECT DISTINCT - COUNT( * ) + - 75 + - CAST( NULL AS SIGNED ) + 25 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT - COUNT ( * ) + - 75 + - CAST ( NULL AS INTEGER ) + 25 AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5328
SELECT DISTINCT - ( + CAST( 62 AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-62

skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT - ( + CAST ( 62 AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-5329
SELECT DISTINCT - col0 + + - 19 DIV + col0 AS col0 FROM tab0
----
-16
-87
-97

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT - col0 + + - 19 / + col0 AS col0 FROM tab0
----
-16
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5330
SELECT - col2 AS col2 FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5330
SELECT - col2 AS col2 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 95 * - 63 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
5985

query I rowsort
SELECT 92 - + + 26 * - + col2 AS col1 FROM tab0 AS cor0
----
1314
2666
352

query I rowsort
SELECT DISTINCT + col0 * - + col0 + - col1 AS col1 FROM tab0 AS cor0
----
-306
-7590
-9410

query I rowsort
SELECT + 40 * + 41 + - col2 FROM tab0 AS cor0 WHERE 51 * + + col0 * - col1 = ( col0 / col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT ALL - MAX( + - col0 ) - 19 AS col0 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL - MAX ( + - col0 ) - 19 AS col0 FROM tab0 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT COUNT( 70 ) + + 81 AS col1 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-5336
SELECT COUNT ( 70 ) + + 81 AS col1 FROM tab1 AS cor0
----
84

query I rowsort
SELECT + col0 + - - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( - ( + 89 ) ) * - col0 + - col1 * + col2 FROM tab1 AS cor0
----
-11295
-5883
-7860

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + + col0 * col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 10 * + - col0 < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5341
SELECT DISTINCT COUNT( * ) * - 57 + 97 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-5341
SELECT DISTINCT COUNT ( * ) * - 57 + 97 FROM tab1 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT DISTINCT SUM( 16 ) + - - MIN( - col2 ) FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT SUM ( 16 ) + - - MIN ( - col2 ) FROM tab0 AS cor0
----
-51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 IN ( - - col0 )
----

query I rowsort
SELECT + + col2 + + - 31 + + 70 * col2 AS col1 FROM tab1 AS cor0
----
4158
4797
6785

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT - 25 * COUNT( * ) * COUNT( - - ( 52 ) ) + COUNT( * ) AS col1 FROM tab1
----
-222

skipif mysql # not compatible
query I rowsort label-5345
SELECT - 25 * COUNT ( * ) * COUNT ( - - ( 52 ) ) + COUNT ( * ) AS col1 FROM tab1
----
-222

query III rowsort
SELECT ALL * FROM tab1 WHERE + 23 * - - col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col2 * - + 30 ) BETWEEN ( 2 + 97 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5348
SELECT DISTINCT CAST( - + AVG ( - ( col1 ) ) AS SIGNED ) FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-5348
SELECT DISTINCT CAST ( - + AVG ( - ( col1 ) ) AS INTEGER ) FROM tab2
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5349
SELECT * FROM tab1 WHERE NOT - 84 + CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-5349
SELECT * FROM tab1 WHERE NOT - 84 + CAST ( NULL AS INTEGER ) < NULL
----

query I rowsort
SELECT + 37 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 * + col0 )
----

query I rowsort
SELECT - 97 AS col2 FROM tab0 cor0
----
-97
-97
-97

query I rowsort
SELECT ALL - col2 * - - col0 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5353
SELECT SUM( ( + ( + - 18 ) ) ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-5353
SELECT SUM ( ( + ( + - 18 ) ) ) FROM tab0 AS cor0
----
-54

query I rowsort
SELECT col1 + + - 10 AS col0 FROM tab1 AS cor0
----
-5
37
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5355
SELECT - col1 + - 40 - + col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5355
SELECT - col1 + - 40 - + col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5356
SELECT DISTINCT 15 * COUNT( * ) + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5356
SELECT DISTINCT 15 * COUNT ( * ) + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT DISTINCT - - 97 + MIN( DISTINCT - col1 ) FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-5357
SELECT DISTINCT - - 97 + MIN ( DISTINCT - col1 ) FROM tab0 AS cor0
----
16

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5358
SELECT ALL * FROM tab1 WHERE - col0 < + + CAST( + col2 AS DECIMAL ) + + col0 + col0 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5358
SELECT ALL * FROM tab1 WHERE - col0 < + + CAST ( + col2 AS REAL ) + + col0 + col0 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5359
SELECT ALL * FROM tab0 WHERE NOT - + CAST( + 65 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5359
SELECT ALL * FROM tab0 WHERE NOT - + CAST ( + 65 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT COUNT( * ) * - 22 AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-5360
SELECT COUNT ( * ) * - 22 AS col2 FROM tab1
----
-66

query III rowsort
SELECT * FROM tab2 WHERE ( - + col1 + - - col1 * - col1 ) = col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5362
SELECT DISTINCT - col0 * - CAST( + col1 AS SIGNED ) FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-5362
SELECT DISTINCT - col0 * - CAST ( + col1 AS INTEGER ) FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5363
SELECT DISTINCT + ( + COUNT( * ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5363
SELECT DISTINCT + ( + COUNT ( * ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ALL col1 - 39 AS col2 FROM tab1 WHERE NOT - + 86 IS NULL
----
-25
-34
8

query I rowsort
SELECT ALL 64 * - ( - 13 ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5366
SELECT ALL - col2 DIV + - col2 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5366
SELECT ALL - col2 / + - col2 FROM tab2 cor0
----
1
1
1

query I rowsort
SELECT + col2 * + + 13 + - 11 * - col2 FROM tab0
----
1128
2376
240

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT DISTINCT MIN( ALL - 72 ) AS col1 FROM tab2 WHERE + + col2 / + ( - col0 ) <> ( 93 / 6 )
----
-72

skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT MIN ( ALL - 72 ) AS col1 FROM tab2 WHERE + + col2 / + ( - col0 ) <> ( 93 / 6 )
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5369
SELECT * FROM tab1 WHERE + CAST( + + col1 AS SIGNED ) / + - 76 <> NULL
----

skipif mysql # not compatible
query III rowsort label-5369
SELECT * FROM tab1 WHERE + CAST ( + + col1 AS INTEGER ) / + - 76 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT - MAX( + 73 ) + MIN( DISTINCT + - col2 ) FROM tab2
----
-131

skipif mysql # not compatible
query I rowsort label-5370
SELECT - MAX ( + 73 ) + MIN ( DISTINCT + - col2 ) FROM tab2
----
-131

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 88 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( + col0 ) - col2 col1 FROM tab2 AS cor0
----
-104
-133
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 70 * - col2 * + col2 col2 FROM tab0 AS cor0 WHERE ( - 92 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT COUNT( DISTINCT - - ( + 44 ) ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5374
SELECT COUNT ( DISTINCT - - ( + 44 ) ) AS col1 FROM tab0
----
1

query II rowsort
SELECT ALL + col1 AS col0, col2 * + - 61 FROM tab1
----
14
-5856
47
-4148
5
-3599

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IS NULL OR - col0 >= 14 + col0 + - col0 * col2 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * 8 AS col2 FROM tab2
----
408
536
616

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( NULL ) >= NULL ) OR NOT NULL <> - col0 - + + col1 * ( - 3 ) - - 80
----

query I rowsort
SELECT 90 AS col0 FROM tab2 cor0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2, 17 * - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-5380
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2, 17 * - col0 )
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5381
SELECT ALL + - 23 AS col2, col1 DIV + col1 + + col1 AS col0 FROM tab2 AS cor0
----
-23
52
-23
68
-23
78

skipif mysql # not compatible
query II rowsort label-5381
SELECT ALL + - 23 AS col2, col1 / + col1 + + col1 AS col0 FROM tab2 AS cor0
----
-23
52
-23
68
-23
78

query I rowsort
SELECT + ( - + 11 ) FROM tab2 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5383
SELECT DISTINCT - COUNT( - col1 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5383
SELECT DISTINCT - COUNT ( - col1 ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-5384
SELECT + 11 DIV - 81 AS col1, col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-5384
SELECT + 11 / - 81 AS col1, col1 FROM tab2
----
0
51
0
67
0
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - 35 ) col2 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT col1 / - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT - 91 NOT IN ( - col0 * + - col2 )
----

query I rowsort
SELECT + col0 * - 76 * - + col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
178296
374528
381900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5388
SELECT - col0 * - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5388
SELECT - col0 * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5389
SELECT COUNT( * ) * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE 24 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5389
SELECT COUNT ( * ) * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE 24 IS NULL
----
NULL

query I rowsort
SELECT + + 57 * - 1 FROM tab1 AS cor0
----
-57
-57
-57

query I rowsort
SELECT ALL + col2 + - 24 AS col2 FROM tab0 AS cor0
----
-14
23
75

query I rowsort
SELECT ALL - col0 * - col2 * - 49 * + - 51 + + col1 FROM tab1 AS cor0
----
12235118
12532490
15463859

query I rowsort
SELECT DISTINCT col2 * - - col0 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5394
SELECT - ( + col2 ) / - - 50 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5394
SELECT - ( + col2 ) / - - 50 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + - col0 FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT ALL 51 + + MIN( DISTINCT - col0 ) * - COUNT( * ) FROM tab2
----
276

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL 51 + + MIN ( DISTINCT - col0 ) * - COUNT ( * ) FROM tab2
----
276

query II rowsort
SELECT ( col0 ) + + col2 AS col1, + col0 FROM tab0
----
196
97
62
15
97
87

query I rowsort
SELECT ALL 69 * - 26 + - + ( - + 21 ) * - 74 FROM tab2
----
-3348
-3348
-3348

query I rowsort
SELECT DISTINCT 63 * - col0 AS col2 FROM tab0
----
-5481
-6111
-945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5400
SELECT CAST( - COUNT( col0 ) AS SIGNED ) + - + COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5400
SELECT CAST ( - COUNT ( col0 ) AS INTEGER ) + - + COUNT ( * ) FROM tab1 AS cor0
----
-6

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 51 BETWEEN NULL AND - col2
----

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE NULL IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5403
SELECT - ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5403
SELECT - ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5404
SELECT ALL 35 + - 26 AS col2, + COUNT( * ) col1 FROM tab1
----
9
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5404
SELECT ALL 35 + - 26 AS col2, + COUNT ( * ) col1 FROM tab1
----
9
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT - ( + + COUNT( * ) ) - 77 FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-5405
SELECT - ( + + COUNT ( * ) ) - 77 FROM tab2
----
-80

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( ( col1 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5407
SELECT DISTINCT + - ( - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT + - ( - CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 90 * - - 83 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
7470
7470
7470

query II rowsort
SELECT + col2, col1 * + + 68 FROM tab2 AS cor0
----
23
3468
40
5236
58
4556

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5411
SELECT DISTINCT + MIN( - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT + MIN ( - col0 ) FROM tab2 AS cor0
----
-75

query III rowsort
SELECT DISTINCT + col0, col0 * + col2 + + - col0 AS col1, + 10 FROM tab1 AS cor0
----
9 values hashing to 1aec647582f717861bcadbad34f5b6cb

query II rowsort
SELECT + col2, - col0 AS col0 FROM tab1 cor0
----
59
-85
68
-91
96
-51

query I rowsort
SELECT - col0 * 60 * + - col0 * 17 FROM tab1 AS cor0
----
2653020
7369500
8446620

onlyif mysql # DIV for integer division: 
query I rowsort label-5415
SELECT 82 DIV - col2 FROM tab0 AS cor0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-5415
SELECT 82 / - col2 FROM tab0 AS cor0
----
-1
-8
0

query I rowsort
SELECT DISTINCT + - col1 * - ( col0 ) FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT 86 * - + SUM( ALL + col0 ) + - 64 FROM tab2 AS cor0 WHERE NOT - 68 = ( - ( - - col2 ) )
----
-15974

skipif mysql # not compatible
query I rowsort label-5417
SELECT 86 * - + SUM ( ALL + col0 ) + - 64 FROM tab2 AS cor0 WHERE NOT - 68 = ( - ( - - col2 ) )
----
-15974

onlyif mysql # aggregate syntax: 
query I rowsort label-5418
SELECT ALL COUNT( DISTINCT - + col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5418
SELECT ALL COUNT ( DISTINCT - + col0 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5419
SELECT DISTINCT - CAST( + + MAX( ALL 90 ) AS SIGNED ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT - CAST ( + + MAX ( ALL 90 ) AS INTEGER ) FROM tab1
----
-90

query I rowsort
SELECT DISTINCT - + col2 * + - ( + - 56 ) AS col2 FROM tab0 WHERE NOT ( NOT 32 * + + col2 IS NULL )
----

query II rowsort
SELECT DISTINCT - 84 * - 34 AS col0, + 76 AS col2 FROM tab1
----
2856
76

query I rowsort
SELECT ALL + 73 FROM tab0 AS cor0 WHERE col2 <= col1
----
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT DISTINCT + 0 * - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT + 0 * - COUNT ( * ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5424
SELECT - COUNT( * ) col2, COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5424
SELECT - COUNT ( * ) col2, COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT ( + MIN( ALL ( + col2 ) ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-5425
SELECT ( + MIN ( ALL ( + col2 ) ) ) FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT DISTINCT COUNT( 49 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5426
SELECT DISTINCT COUNT ( 49 ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT 86 * + 71 + - - COUNT( * ) FROM tab0
----
6109

skipif mysql # not compatible
query I rowsort label-5427
SELECT 86 * + 71 + - - COUNT ( * ) FROM tab0
----
6109

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + + 70 col1 FROM tab0
----
157
167
85

query I rowsort
SELECT ALL - + 28 + - col1 * 15 - col0 * + col2 FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 AND - col1 * + 18 - + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT ALL - ( - SUM( - col0 ) ) + + 86 FROM tab1 cor0
----
-141

skipif mysql # not compatible
query I rowsort label-5430
SELECT ALL - ( - SUM ( - col0 ) ) + + 86 FROM tab1 cor0
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT DISTINCT COUNT( * ) + + + MIN( col1 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
4

skipif mysql # not compatible
query I rowsort label-5431
SELECT DISTINCT COUNT ( * ) + + + MIN ( col1 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-5432
SELECT ALL col1 DIV - ( - + col1 ) AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL col1 / - ( - + col1 ) AS col0 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5433
SELECT + 42 * + 6 col0, COUNT( * ) AS col1 FROM tab1
----
252
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5433
SELECT + 42 * + 6 col0, COUNT ( * ) AS col1 FROM tab1
----
252
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5434
SELECT - col2 * + - col0 - col2 + - - 59 / - col2 / + CAST( NULL AS SIGNED ) * ( col0 ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5434
SELECT - col2 * + - col0 - col2 + - - 59 / - col2 / + CAST ( NULL AS INTEGER ) * ( col0 ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + 76 * col0 - + col0 * + 10 * + - col2 FROM tab0
----
103402
15312
8190

query I rowsort
SELECT ALL - + 82 AS col1 FROM tab1 AS cor0
----
-82
-82
-82

query III rowsort
SELECT * FROM tab2 WHERE - 1 NOT BETWEEN + + col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 5 + + col0 + - 82 * - - col1 FROM tab1
----
-1092
-320
-3758

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT DISTINCT - SUM( DISTINCT - - 86 ) AS col1 FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-5439
SELECT DISTINCT - SUM ( DISTINCT - - 86 ) AS col1 FROM tab2
----
-86

query I rowsort
SELECT DISTINCT 30 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT - SUM( col0 ) FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5441
SELECT - SUM ( col0 ) FROM tab0 cor0
----
-199

query I rowsort
SELECT DISTINCT - ( + ( col1 ) ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5443
SELECT + + CAST( + col1 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + col0 < NULL
----

skipif mysql # not compatible
query I rowsort label-5443
SELECT + + CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + col0 < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 62 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5445
SELECT DISTINCT + - 67 DIV - - 33 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5445
SELECT DISTINCT + - 67 / - - 33 FROM tab0 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT ALL + ( COUNT( * ) ) * - ( + MIN( DISTINCT + col2 ) ) AS col0 FROM tab0 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL + ( COUNT ( * ) ) * - ( + MIN ( DISTINCT + col2 ) ) AS col0 FROM tab0 cor0
----
-30

query I rowsort
SELECT - 65 * 77 AS col2 FROM tab0
----
-5005
-5005
-5005

query I rowsort
SELECT col2 * + - 3 FROM tab2
----
-120
-174
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-5449
SELECT col1 DIV 12 DIV + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5449
SELECT col1 / 12 / + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 + - - ( 58 ) FROM tab0 AS cor0
----
145
155
73

query I rowsort
SELECT + - col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) < - + 16
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 cor0 WHERE NOT - col2 IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-5453
SELECT + MIN( - col2 ), + 67 AS col2 FROM tab0 AS cor0
----
-99
67

skipif mysql # not compatible
query II rowsort label-5453
SELECT + MIN ( - col2 ), + 67 AS col2 FROM tab0 AS cor0
----
-99
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT COUNT( * ) - ( COUNT( * ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5454
SELECT COUNT ( * ) - ( COUNT ( * ) ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + + 85 col1 FROM tab0 AS cor0
----
106
166
86

query I rowsort
SELECT 50 + col1 + + col2 AS col1 FROM tab1 AS cor0
----
114
160
165

query II rowsort
SELECT ALL col2 + - ( - col2 ), - 66 AS col1 FROM tab2
----
116
-66
46
-66
80
-66

query I rowsort
SELECT DISTINCT + 45 - - col0 AS col2 FROM tab1
----
130
136
96

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5460
SELECT DISTINCT 4 * CAST( - COUNT( * ) AS SIGNED ) + - COUNT( * ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5460
SELECT DISTINCT 4 * CAST ( - COUNT ( * ) AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 < NULL
----

query II rowsort
SELECT DISTINCT + col2, col2 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT + col1 * 70 * 85 AS col1 FROM tab1
----
279650
29750
83300

query I rowsort
SELECT DISTINCT + 6 * - + 7 AS col0 FROM tab2
----
-42

query I rowsort
SELECT - 32 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT ALL - - 73 * - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL - - 73 * - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
219

query I rowsort
SELECT + + 95 AS col0 FROM tab1 cor0
----
95
95
95

query I rowsort
SELECT ALL + - col2 FROM tab2 cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + 53 + + 5 - 46 AND - col1
----

query I rowsort
SELECT ALL - 0 FROM tab2 AS cor0 WHERE ( ( ( 19 IS NOT NULL ) ) )
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5471
SELECT + + COUNT( * ) * - MAX( DISTINCT ( + - ( + 87 ) ) ) FROM tab0 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-5471
SELECT + + COUNT ( * ) * - MAX ( DISTINCT ( + - ( + 87 ) ) ) FROM tab0 AS cor0
----
261

query I rowsort
SELECT DISTINCT + ( - 68 ) FROM tab0
----
-68

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5474
SELECT ALL + col1 / - ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5474
SELECT ALL + col1 / - ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT - 50 * COUNT( * ) FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-5475
SELECT - 50 * COUNT ( * ) FROM tab0
----
-150

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 * 54 * - + col2 + - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 16 * + - col0 AS col0 FROM tab0
----
-1392
-1552
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT + MAX( DISTINCT - 98 ) FROM tab0 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-5478
SELECT + MAX ( DISTINCT - 98 ) FROM tab0 AS cor0
----
-98

query I rowsort
SELECT ALL - - col1 FROM tab2 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT - + COUNT( * ) FROM tab1 WHERE col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5480
SELECT - + COUNT ( * ) FROM tab1 WHERE col0 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5482
SELECT 65 + + COUNT( ALL + - col1 ) AS col1 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-5482
SELECT 65 + + COUNT ( ALL + - col1 ) AS col1 FROM tab2
----
68

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5484
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + + CAST( - + col0 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5484
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + + CAST ( - + col0 AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT + 16 * + 59 AS col2 FROM tab2 AS cor0
----
944
944
944

query II rowsort
SELECT ALL - + col2 AS col0, - col1 FROM tab2 AS cor0
----
-23
-51
-40
-77
-58
-67

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> 46 - 7
----

query II rowsort
SELECT ALL - - 97 AS col2, col0 AS col0 FROM tab2 cor0
----
97
46
97
64
97
75

query I rowsort
SELECT 40 + ( - col2 ) AS col1 FROM tab0 AS cor0 WHERE + col1 + + 91 * col2 + - - 11 + - ( - + col0 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5490
SELECT - 15, 69 DIV + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-15
23

skipif mysql # not compatible
query II rowsort label-5490
SELECT - 15, 69 / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-15
23

query I rowsort
SELECT DISTINCT - 50 * + 72 * - col1 + ( 70 ) * - + col2 AS col0 FROM tab0
----
-3330
288310
74900

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5492
SELECT * FROM tab0 WHERE + CAST( NULL AS SIGNED ) * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5492
SELECT * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-5493
SELECT ALL - COUNT( * ) - 20, - SUM( DISTINCT + 92 ) AS col2 FROM tab2
----
-23
-92

skipif mysql # not compatible
query II rowsort label-5493
SELECT ALL - COUNT ( * ) - 20, - SUM ( DISTINCT + 92 ) AS col2 FROM tab2
----
-23
-92

query I rowsort
SELECT - col2 - - col2 * - col1 AS col2 FROM tab2
----
-1196
-3120
-3944

query I rowsort
SELECT DISTINCT col1 - + 0 * + col2 AS col2 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5496
SELECT ALL CAST( col1 AS SIGNED ) - + ( + col0 ) AS col2 FROM tab0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL CAST ( col1 AS INTEGER ) - + ( + col0 ) AS col2 FROM tab0
----
-66
-96
66

query II rowsort
SELECT - col1 + 1 AS col0, 36 FROM tab2
----
-50
36
-66
36
-76
36

query I rowsort
SELECT + ( + 33 ) AS col1 FROM tab2
----
33
33
33

query II rowsort
SELECT col0 AS col0, ( col2 ) AS col1 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5500
SELECT DISTINCT - + COUNT( * ) AS col0, 90 AS col0 FROM tab2 AS cor0 WHERE col1 < + 37
----
0
90

skipif mysql # not compatible
query II rowsort label-5500
SELECT DISTINCT - + COUNT ( * ) AS col0, 90 AS col0 FROM tab2 AS cor0 WHERE col1 < + 37
----
0
90

query II rowsort
SELECT DISTINCT - col1, + col0 AS col1 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT DISTINCT + col2 * - - 1 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT ALL + + 2 * col0 FROM tab2 cor0
----
128
150
92

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5504
SELECT DISTINCT - col0 * CAST( - col0 AS SIGNED ) AS col0, 15 AS col2 FROM tab1 AS cor0
----
2601
15
7225
15
8281
15

skipif mysql # not compatible
query II rowsort label-5504
SELECT DISTINCT - col0 * CAST ( - col0 AS INTEGER ) AS col0, 15 AS col2 FROM tab1 AS cor0
----
2601
15
7225
15
8281
15

query II rowsort
SELECT col2, ( col0 ) + 85 * + 28 * - col0 * - + col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT DISTINCT + SUM( ALL + - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5506
SELECT DISTINCT + SUM ( ALL + - col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query II rowsort label-5507
SELECT ALL + - COUNT( - col0 ), - MAX( - ( ( - 69 ) ) ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-5507
SELECT ALL + - COUNT ( - col0 ), - MAX ( - ( ( - 69 ) ) ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0
NULL

query I rowsort
SELECT ALL + col0 * 45 FROM tab1
----
2295
3825
4095

query I rowsort
SELECT + col1 * - - col2 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT 50 + - - COUNT( * ) col0 FROM tab1
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5510
SELECT 50 + - - COUNT ( * ) col0 FROM tab1
----
53

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 + - - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5512
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1 - - CAST( NULL AS SIGNED ) + - - 98
----

skipif mysql # not compatible
query III rowsort label-5512
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1 - - CAST ( NULL AS INTEGER ) + - - 98
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5513
SELECT col2 + - col2 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5513
SELECT col2 + - col2 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 12 * + col2 FROM tab0 AS cor0
----
-1188
-120
-564

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + - + 48 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5516
SELECT AVG ( - - col2 ) + MAX( DISTINCT + + CAST( NULL AS DECIMAL ) ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5516
SELECT AVG ( - - col2 ) + MAX ( DISTINCT + + CAST ( NULL AS REAL ) ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5517
SELECT DISTINCT - + 69 DIV col2 AS col0 FROM tab2 AS cor0
----
-1
-3

skipif mysql # not compatible
query I rowsort label-5517
SELECT DISTINCT - + 69 / col2 AS col0 FROM tab2 AS cor0
----
-1
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5518
SELECT DISTINCT - + CAST( - 83 AS SIGNED ) + + col0 AS col2 FROM tab1 AS cor0
----
134
168
174

skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT - + CAST ( - 83 AS INTEGER ) + + col0 AS col2 FROM tab1 AS cor0
----
134
168
174

query I rowsort
SELECT ALL col1 + 81 + - col0 AS col0 FROM tab2
----
73
86
94

query I rowsort
SELECT ALL 3 - + col0 FROM tab0 AS cor0
----
-12
-84
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-5521
SELECT ALL col2 DIV + + col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL col2 / + + col0 FROM tab1 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5522
SELECT DISTINCT + + col1 * col1 - + + ( - ( + - col0 ) ) DIV - + 82 + + 42 FROM tab1 AS cor0
----
2252
238
68

skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT + + col1 * col1 - + + ( - ( + - col0 ) ) / - + 82 + + 42 FROM tab1 AS cor0
----
2252
238
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT - - 67 + + COUNT( * ) + 12 * SUM( ALL - col2 ) col0 FROM tab2 AS cor0
----
-1382

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5523
SELECT - - 67 + + COUNT ( * ) + 12 * SUM ( ALL - col2 ) col0 FROM tab2 AS cor0
----
-1382

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT - col1 IS NULL )
----

query I rowsort
SELECT - - 52 + - - col2 AS col2 FROM tab1 AS cor0
----
111
120
148

query I rowsort
SELECT - + col0 * + + col0 * - 67 * + col0 + + col1 + + col1 * + ( + 71 ) FROM tab1 AS cor0
----
41146735
50492641
8888625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5527
SELECT - + col2 * - col0 + + 33 - - col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5527
SELECT - + col2 * - col0 + + 33 - - col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col2, + col2 * + - col1 AS col1 FROM tab0 AS cor0
----
10
-210
47
-3807
99
-99

query I rowsort
SELECT - 2 + 2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT col1 + - + col2 AS col0, + col1 FROM tab1
----
-21
47
-54
5
-82
14

query I rowsort
SELECT + 44 + + - col0 FROM tab2
----
-2
-20
-31

query I rowsort
SELECT ALL col2 - - 44 AS col2 FROM tab0
----
143
54
91

query I rowsort
SELECT ALL 32 + + + col0 AS col1 FROM tab1
----
117
123
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5534
SELECT ALL col1 + - col0 DIV + col1 AS col1 FROM tab0
----
-96
17
81

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL col1 + - col0 / + col1 AS col1 FROM tab0
----
-96
17
81

query III rowsort
SELECT * FROM tab0 WHERE ( 22 ) > col0 * + col1 * col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND - + col2 - + 55 + - col0 - + col2 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col1 col0 FROM tab0 WHERE + 78 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + 30 FROM tab0 cor0
----
-30
-30
-30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5539
SELECT + ( - col1 ) * + CAST( NULL AS DECIMAL ) * 41 + + col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5539
SELECT + ( - col1 ) * + CAST ( NULL AS REAL ) * 41 + + col1 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - 95 ) IS NOT NULL
----

query I rowsort
SELECT col1 * - - col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT ALL - MIN( ALL + + 0 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL - MIN ( ALL + + 0 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5543
SELECT - col2 DIV + + col1 FROM tab0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-5543
SELECT - col2 / + + col1 FROM tab0
----
-99
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT MIN( ALL + - col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-5544
SELECT MIN ( ALL + - col2 ) AS col2 FROM tab2
----
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT DISTINCT - - SUM( 66 ) + - 28 * + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-5546
SELECT DISTINCT - - SUM ( 66 ) + - 28 * + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-5547
SELECT ALL + 4 AS col0, ( - + ( + MAX( col2 ) ) ) AS col2 FROM tab0
----
4
-99

skipif mysql # not compatible
query II rowsort label-5547
SELECT ALL + 4 AS col0, ( - + ( + MAX ( col2 ) ) ) AS col2 FROM tab0
----
4
-99

query I rowsort
SELECT col2 * + - 55 FROM tab0
----
-2585
-5445
-550

query I rowsort
SELECT ALL col2 * 19 * - + ( + col1 ) AS col0 FROM tab1
----
-25536
-5605
-60724

query I rowsort
SELECT DISTINCT col2 * 64 + col0 AS col1 FROM tab2
----
1518
2624
3787

query II rowsort
SELECT 27, col2 * 72 AS col0 FROM tab2
----
27
1656
27
2880
27
4176

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT + MAX( + col2 ) * + + 33 FROM tab2
----
1914

skipif mysql # not compatible
query I rowsort label-5552
SELECT + MAX ( + col2 ) * + + 33 FROM tab2
----
1914

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 = - - 57
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5554
SELECT * FROM tab1 WHERE - - CAST( col1 AS SIGNED ) / + 82 + - col1 / + col2 * + col0 IN ( - col2 - 70, col2 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5554
SELECT * FROM tab1 WHERE - - CAST ( col1 AS INTEGER ) / + 82 + - col1 / + col2 * + col0 IN ( - col2 - 70, col2 * + CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT col0 AS col2, col0 AS col2 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT + ( 51 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5557
SELECT ALL - + CAST( - + COUNT( * ) AS SIGNED ) * + + MIN( DISTINCT + + 50 ) FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-5557
SELECT ALL - + CAST ( - + COUNT ( * ) AS INTEGER ) * + + MIN ( DISTINCT + + 50 ) FROM tab2 AS cor0
----
150

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 27 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * - - col1 + - col2 * - 89 FROM tab2
----
1276
480
874

onlyif mysql # aggregate syntax: 
query II rowsort label-5560
SELECT MAX( + col2 ) AS col0, - COUNT( * ) FROM tab2
----
58
-3

skipif mysql # not compatible
query II rowsort label-5560
SELECT MAX ( + col2 ) AS col0, - COUNT ( * ) FROM tab2
----
58
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT DISTINCT - MAX( - - col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5561
SELECT DISTINCT - MAX ( - - col1 ) FROM tab0 AS cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + + 75 col0 FROM tab0 cor0
----
-1125
-6525
-7275

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 62 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ( + col0 ) * col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5566
SELECT - col1 - col2 FROM tab2 AS cor0 WHERE ( - - col2 ) < - col1 * ( - + 4 ) * + col0 * + 63 + + col1 + - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5566
SELECT - col1 - col2 FROM tab2 AS cor0 WHERE ( - - col2 ) < - col1 * ( - + 4 ) * + col0 * + 63 + + col1 + - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col1 * + col2 + + col1 AS col0 FROM tab2 AS cor0
----
1224
3157
3953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 * col2 col0 FROM tab2
----
1817
3160
4582

query I rowsort
SELECT - 6 * - col0 FROM tab2
----
276
384
450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, 16 FROM tab1
----
59
16
68
16
96
16

query II rowsort
SELECT DISTINCT - col2 AS col2, + 50 + + col1 FROM tab0
----
-10
71
-47
131
-99
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT DISTINCT - + COUNT( * ) FROM tab0 WHERE ( 54 < + 75 )
----
-3

skipif mysql # not compatible
query I rowsort label-5572
SELECT DISTINCT - + COUNT ( * ) FROM tab0 WHERE ( 54 < + 75 )
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-5573
SELECT DISTINCT + SUM( - - ( + - col1 ) ) AS col2, - 16 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----
NULL
-16

skipif mysql # not compatible
query II rowsort label-5573
SELECT DISTINCT + SUM ( - - ( + - col1 ) ) AS col2, - 16 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----
NULL
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5574
SELECT DISTINCT MAX( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5574
SELECT DISTINCT MAX ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5575
SELECT ALL - CAST( NULL AS SIGNED ) AS col1, - 87 DIV - 33 FROM tab0 AS cor0
----
NULL
2
NULL
2
NULL
2

skipif mysql # not compatible
query II rowsort label-5575
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1, - 87 / - 33 FROM tab0 AS cor0
----
NULL
2
NULL
2
NULL
2

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 <= - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 40 * + col0 * - col0 FROM tab2
----
-163840
-225000
-84640

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT - COUNT( * ) + 88 - 58 * 42 FROM tab0
----
-2351

skipif mysql # not compatible
query I rowsort label-5578
SELECT - COUNT ( * ) + 88 - 58 * 42 FROM tab0
----
-2351

query I rowsort
SELECT - + 3 / - col2 AS col1 FROM tab0 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 57 + + col2 AS col0 FROM tab2 AS cor0
----
115
80
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 10 + - - col0, + col2 col1 FROM tab1 AS cor0
----
101
68
61
96
95
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5582
SELECT DISTINCT MIN( DISTINCT + CAST( - col1 AS SIGNED ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5582
SELECT DISTINCT MIN ( DISTINCT + CAST ( - col1 AS INTEGER ) ) FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query II rowsort label-5583
SELECT DISTINCT - - COUNT( * ) + - 61, 16 * + 39 AS col2 FROM tab0 AS cor0
----
-58
624

skipif mysql # not compatible
query II rowsort label-5583
SELECT DISTINCT - - COUNT ( * ) + - 61, 16 * + 39 AS col2 FROM tab0 AS cor0
----
-58
624

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5584
SELECT + COUNT( * ) DIV + 24 FROM tab2, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5584
SELECT + COUNT ( * ) / + 24 FROM tab2, tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( - 74 * - col0 )
----

query I rowsort
SELECT 29 * + col1 - - col0 - - - col0 * - - col0 FROM tab1
----
-2144
-6827
-6995

query I rowsort
SELECT ALL + col0 + - 7 * - + col2 - - - col1 FROM tab2 AS cor0
----
156
267
414

onlyif mysql # aggregate syntax: 
query II rowsort label-5588
SELECT - - 43 + MIN( - col0 ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
-32
3

skipif mysql # not compatible
query II rowsort label-5588
SELECT - - 43 + MIN ( - col0 ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-32
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5589
SELECT + - col2 * + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5589
SELECT + - col2 * + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT + MAX( - - 96 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5590
SELECT + MAX ( - - 96 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT - - col2 * + col0 FROM tab2 AS cor0 WHERE NOT - 25 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT DISTINCT - MIN( ALL + - col1 ) * - 47 FROM tab1
----
-2209

skipif mysql # not compatible
query I rowsort label-5592
SELECT DISTINCT - MIN ( ALL + - col1 ) * - 47 FROM tab1
----
-2209

query II rowsort
SELECT ALL + 99 * ( col2 ) + + + 73, 42 FROM tab2 WHERE NOT - col1 + + col0 * - + 75 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT + COUNT( * ) + - ( - COUNT( * ) ) col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5594
SELECT + COUNT ( * ) + - ( - COUNT ( * ) ) col1 FROM tab1 WHERE NOT col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT + MIN( DISTINCT - ( - col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-5595
SELECT + MIN ( DISTINCT - ( - col1 ) ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT DISTINCT - + ( + MIN( - 85 ) ) AS col0 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-5596
SELECT DISTINCT - + ( + MIN ( - 85 ) ) AS col0 FROM tab2 AS cor0
----
85

query II rowsort
SELECT + + 10 * - 82 AS col2, 72 + - 70 + + col0 FROM tab0 AS cor0
----
-820
17
-820
89
-820
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT - MIN( - col1 ) FROM tab1 WHERE NOT + - col2 * - + col0 * col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5598
SELECT - MIN ( - col1 ) FROM tab1 WHERE NOT + - col2 * - + col0 * col1 IS NOT NULL
----
NULL

query I rowsort
SELECT 74 + - col1 AS col2 FROM tab0
----
-7
53
73

query I rowsort
SELECT + - 39 + + + col2 AS col2 FROM tab2 AS cor0
----
-16
1
19

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + 8 + - 25 >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 > 40
----
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT DISTINCT - ( + - MAX( - + col2 ) ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT - ( + - MAX ( - + col2 ) ) AS col2 FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-5604
SELECT DISTINCT 44 AS col0, + COUNT( * ) col1 FROM tab1
----
44
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5604
SELECT DISTINCT 44 AS col0, + COUNT ( * ) col1 FROM tab1
----
44
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5605
SELECT 78 * + 29 * CAST( NULL AS SIGNED ) / + ( + - ( + - 84 ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT 78 * + 29 * CAST ( NULL AS INTEGER ) / + ( + - ( + - 84 ) ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT + COUNT( + 56 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5606
SELECT + COUNT ( + 56 ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * - col0 - - - col2 * col2 + - + col2 + + col2 + + - 42 AS col0 FROM tab2
----
-1629
-4202
-7756

query I rowsort
SELECT + + 75 + + col0 * - col0 FROM tab2 AS cor0
----
-2041
-4021
-5550

onlyif mysql # aggregate syntax: 
query I rowsort label-5610
SELECT - ( + MIN( DISTINCT - col2 ) ) FROM tab1 AS cor0 WHERE col2 * - col0 + 35 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5610
SELECT - ( + MIN ( DISTINCT - col2 ) ) FROM tab1 AS cor0 WHERE col2 * - col0 + 35 IS NULL
----
NULL

query I rowsort
SELECT + 17 + 11 AS col0 FROM tab0
----
28
28
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5612
SELECT ALL col0 DIV col0 + + col1 + + + col2 AS col2 FROM tab0
----
101
129
32

skipif mysql # not compatible
query I rowsort label-5612
SELECT ALL col0 / col0 + + col1 + + + col2 AS col2 FROM tab0
----
101
129
32

query I rowsort
SELECT ALL + col1 - + - col0 AS col1 FROM tab1
----
138
65
90

query I rowsort
SELECT DISTINCT 63 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 50 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 7 * - ( - col0 ) FROM tab0 AS cor0
----
-105
-609
-679

onlyif mysql # aggregate syntax: 
query I rowsort label-5617
SELECT - - COUNT( * ) + - 58 + + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( - + col1 IS NULL )
----
-58

skipif mysql # not compatible
query I rowsort label-5617
SELECT - - COUNT ( * ) + - 58 + + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( - + col1 IS NULL )
----
-58

query I rowsort
SELECT DISTINCT + - 98 * - 61 FROM tab0 cor0
----
5978

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT DISTINCT - - ( ( - SUM( DISTINCT - 64 ) ) ) FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-5619
SELECT DISTINCT - - ( ( - SUM ( DISTINCT - 64 ) ) ) FROM tab1 AS cor0
----
64

onlyif mysql # DIV for integer division: 
query I rowsort label-5620
SELECT + 15 DIV + 79 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5620
SELECT + 15 / + 79 col1 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT col0 AS col1, + col0 * 70 AS col2 FROM tab0
----
15
1050
87
6090
97
6790

onlyif mysql # DIV for integer division: 
query I rowsort label-5622
SELECT DISTINCT - col0 DIV col2 * - col1 * - 7 FROM tab1
----
-329
-35
0

skipif mysql # not compatible
query I rowsort label-5622
SELECT DISTINCT - col0 / col2 * - col1 * - 7 FROM tab1
----
-329
-35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT DISTINCT COUNT( + + col2 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5623
SELECT DISTINCT COUNT ( + + col2 ) col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT ALL MAX( + 71 ) FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-5624
SELECT ALL MAX ( + 71 ) FROM tab0
----
71

query I rowsort
SELECT DISTINCT 54 * + + col2 FROM tab1
----
3186
3672
5184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5626
SELECT ALL - col0 FROM tab2 AS cor0 WHERE + CAST( + + 84 AS SIGNED ) <> ( - col2 + - col0 )
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-5626
SELECT ALL - col0 FROM tab2 AS cor0 WHERE + CAST ( + + 84 AS INTEGER ) <> ( - col2 + - col0 )
----
-46
-64
-75

query II rowsort
SELECT col0, col0 * - col1 AS col2 FROM tab2 AS cor0
----
46
-2346
64
-4928
75
-5025

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE 72 + + col0 <> + - col0 + + 73
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5629
SELECT ALL - + col1 DIV - + 53 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL - + col1 / - + 53 FROM tab0 cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5630
SELECT ALL 54 * - ( - - 81 ) + + SUM( - col1 ) AS col1 FROM tab1 AS cor0
----
-4440

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL 54 * - ( - - 81 ) + + SUM ( - col1 ) AS col1 FROM tab1 AS cor0
----
-4440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5631
SELECT + CAST( NULL AS SIGNED ) * - 56 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5631
SELECT + CAST ( NULL AS INTEGER ) * - 56 col0 FROM tab0
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT NULL <> NULL )
----

query I rowsort
SELECT DISTINCT + 5 * col1 AS col0 FROM tab2
----
255
335
385

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 30 + + 25 * - + 43 * 52 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + + col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5638
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - 48 - + col0 / + - col2 AS col2, col2 AS col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-5638
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - 48 - + col0 / + - col2 AS col2, col2 AS col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT ALL - col1 + - - 49 * + col0 AS col2 FROM tab0 AS cor0
----
4242
4752
654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5640
SELECT ALL CAST( col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5640
SELECT ALL CAST ( col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + - col1 col0 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT - col2 + - col0 + - col1 AS col2 FROM tab0 AS cor0
----
-118
-143
-197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + + col1 * - 84 - - ( - + col2 ) - col0 col0 FROM tab2 AS cor0
----
-4302
-5694
-6495

query I rowsort
SELECT ALL + 54 + + + col0 * - 77 FROM tab1 AS cor0
----
-3873
-6491
-6953

query I rowsort
SELECT DISTINCT + col0 + + - col1 FROM tab0
----
-66
66
96

query I rowsort
SELECT - 86 + - 9 FROM tab2
----
-95
-95
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 9, - col1 + 99 col0 FROM tab1
----
9
52
9
85
9
94

query I rowsort
SELECT DISTINCT - col2 - - 30 AS col2 FROM tab1
----
-29
-38
-66

query III rowsort
SELECT * FROM tab0 WHERE - 15 >= - col1
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5650
SELECT DISTINCT + MAX( ALL - 87 ) AS col0 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-5650
SELECT DISTINCT + MAX ( ALL - 87 ) AS col0 FROM tab1
----
-87

query I rowsort
SELECT - col2 * + 8 AS col2 FROM tab2 AS cor0
----
-184
-320
-464

query I rowsort
SELECT + + ( - 84 ) * col1 + - - 91 FROM tab2 AS cor0
----
-4193
-5537
-6377

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5653
SELECT ALL - COUNT( * ) AS col0, - COUNT( * ) DIV 86 AS col2 FROM tab1 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-5653
SELECT ALL - COUNT ( * ) AS col0, - COUNT ( * ) / 86 AS col2 FROM tab1 AS cor0
----
-3
0

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT SUM( DISTINCT - + col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5655
SELECT SUM ( DISTINCT - + col0 ) FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5656
SELECT CAST( - ( + COUNT( * ) ) AS SIGNED ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5656
SELECT CAST ( - ( + COUNT ( * ) ) AS INTEGER ) FROM tab0 cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * col0 >= - 88 / - 61
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5658
SELECT ALL 0 DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL 0 / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5659
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT + col0 / col0 NOT IN ( + - CAST( NULL AS DECIMAL ), - col2, - col0 )
----

skipif mysql # not compatible
query I rowsort label-5659
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT + col0 / col0 NOT IN ( + - CAST ( NULL AS REAL ), - col2, - col0 )
----

query II rowsort
SELECT DISTINCT - col1, col2 * + col0 - col2 AS col0 FROM tab0 AS cor0
----
-1
9504
-21
860
-81
658

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL BETWEEN 84 AND ( - col2 * 94 ) )
----

query I rowsort
SELECT DISTINCT ( + 42 ) AS col1 FROM tab1
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-5663
SELECT + 97 DIV + 93, col2 AS col0 FROM tab0
----
1
10
1
47
1
99

skipif mysql # not compatible
query II rowsort label-5663
SELECT + 97 / + 93, col2 AS col0 FROM tab0
----
1
10
1
47
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5664
SELECT ALL 64 DIV - col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5664
SELECT ALL 64 / - col2 FROM tab1
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + 96 ) * + 2 col1, - col2 FROM tab0 AS cor0
----
192
-10
192
-47
192
-99

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + 23 + + col2 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + - ( col1 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # DIV for integer division: 
query II rowsort label-5669
SELECT DISTINCT col1 DIV + 81 * + ( + col0 ) * + + ( col2 ) * - col0 + + - 35 AS col0, col0 AS col1 FROM tab2
----
-35
46
-35
64
-35
75

skipif mysql # not compatible
query II rowsort label-5669
SELECT DISTINCT col1 / + 81 * + ( + col0 ) * + + ( col2 ) * - col0 + + - 35 AS col0, col0 AS col1 FROM tab2
----
-35
46
-35
64
-35
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT - MIN( ALL - col2 ) + - ( COUNT( * ) ) col2 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5670
SELECT - MIN ( ALL - col2 ) + - ( COUNT ( * ) ) col2 FROM tab1 AS cor0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5671
SELECT DISTINCT + col0 DIV - + col2 AS col0 FROM tab2 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-5671
SELECT DISTINCT + col0 / - + col2 AS col0 FROM tab2 AS cor0
----
-1
-2

query I rowsort
SELECT DISTINCT + col2 + 55 - + + col2 + 1 * col2 AS col1 FROM tab1 AS cor0
----
114
123
151

query I rowsort
SELECT - 81 + 42 FROM tab0 AS cor0
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5674
SELECT ALL + + MAX( DISTINCT - col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5674
SELECT ALL + + MAX ( DISTINCT - col0 ) FROM tab1 cor0
----
-51

query I rowsort
SELECT ALL + AVG ( DISTINCT + - col1 ) * + 29 FROM tab0 AS cor0 WHERE - col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT ALL + MAX( ALL col2 ) + - 38 FROM tab2 cor0
----
20

skipif mysql # not compatible
query I rowsort label-5676
SELECT ALL + MAX ( ALL col2 ) + - 38 FROM tab2 cor0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5677
SELECT - 8 + + 97, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-5677
SELECT - 8 + + 97, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT 76 AS col1, ( - - 18 ) AS col0 FROM tab0 cor0
----
76
18

query I rowsort
SELECT DISTINCT - + 29 FROM tab0 WHERE - + 95 NOT BETWEEN NULL AND + col1 / + 34
----

query I rowsort
SELECT ALL 55 + - col2 * - - col2 FROM tab1
----
-3426
-4569
-9161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5681
SELECT CAST( + - col2 AS SIGNED ) - - - 91 FROM tab0
----
-101
-138
-190

skipif mysql # not compatible
query I rowsort label-5681
SELECT CAST ( + - col2 AS INTEGER ) - - - 91 FROM tab0
----
-101
-138
-190

query III rowsort
SELECT * FROM tab1 WHERE - col1 BETWEEN - - col0 * + - col2 * - col0 + + col0 + 48 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - ( + col2 ) col2 FROM tab1
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5684
SELECT * FROM tab2 AS cor0 WHERE - 41 NOT IN ( + col2, - CAST( 60 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5684
SELECT * FROM tab2 AS cor0 WHERE - 41 NOT IN ( + col2, - CAST ( 60 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5685
SELECT ALL + MAX( + col1 ) + + 36 col2 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5685
SELECT ALL + MAX ( + col1 ) + + 36 col2 FROM tab1 AS cor0
----
83

query I rowsort
SELECT col1 + - 35 AS col1 FROM tab2 AS cor0
----
16
32
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5687
SELECT DISTINCT MAX( - 39 ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT MAX ( - 39 ) FROM tab0
----
-39

query I rowsort
SELECT DISTINCT + ( + 41 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
41

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 41 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT DISTINCT - ( + col0 ) FROM tab2 cor0 WHERE NULL < + ( - col1 )
----

query I rowsort
SELECT ALL + + 72 AS col2 FROM tab1 AS cor0
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5692
SELECT COUNT( + 38 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5692
SELECT COUNT ( + 38 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 * ( - col1 ) col1 FROM tab0 AS cor0
----
1134
4374
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5694
SELECT - col1, 24 AS col2 FROM tab1 cor0 WHERE NOT CAST( + ( + col2 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-5694
SELECT - col1, 24 AS col2 FROM tab1 cor0 WHERE NOT CAST ( + ( + col2 ) AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 35 * 81 + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT ( + + col0 ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-5697
SELECT ALL + COUNT( * ) col1, COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5697
SELECT ALL + COUNT ( * ) col1, COUNT ( * ) FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5698
SELECT ALL COUNT( * ) AS col2 FROM tab2 cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL COUNT ( * ) AS col2 FROM tab2 cor0 WHERE + col2 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col0 NOT BETWEEN + + 39 * - - col2 AND - 21
----

query I rowsort
SELECT + col2 * + 69 FROM tab1
----
4071
4692
6624

query I rowsort
SELECT + ( + col1 ) * + - 87 FROM tab1
----
-1218
-4089
-435

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT ALL - COUNT( + 54 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5702
SELECT ALL - COUNT ( + 54 ) FROM tab0
----
-3

query I rowsort
SELECT - ( - + 85 ) * col2 FROM tab1
----
5015
5780
8160

query I rowsort
SELECT ALL - col1 * 54 AS col0 FROM tab2
----
-2754
-3618
-4158

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT SUM( ALL + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5705
SELECT SUM ( ALL + col1 ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT COUNT( * ) + - - 89 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-5706
SELECT COUNT ( * ) + - - 89 FROM tab2
----
92

query I rowsort
SELECT ALL - - col2 + + + col0 * + col2 FROM tab1 AS cor0
----
4992
5074
6256

query I rowsort
SELECT 68 * - 20 * - col0 + - - col2 AS col0 FROM tab1 AS cor0
----
115659
123828
69456

onlyif mysql # DIV for integer division: 
query I rowsort label-5709
SELECT DISTINCT - + 5 + + col2 DIV col1 FROM tab0 AS cor0
----
-5
94

skipif mysql # not compatible
query I rowsort label-5709
SELECT DISTINCT - + 5 + + col2 / col1 FROM tab0 AS cor0
----
-5
94

query I rowsort
SELECT col0 * + + col1 AS col2 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL 79 + 4 - - col0 FROM tab2
----
129
147
158

query I rowsort
SELECT - - col1 / - 2 + + col0 FROM tab2 WHERE NULL <> + - col1 / - + 1
----

query I rowsort
SELECT DISTINCT 47 * + - col0 FROM tab2
----
-2162
-3008
-3525

query I rowsort
SELECT DISTINCT + 52 + + col0 + - + col1 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL AND NULL IS NULL
----
-14
118
148

query I rowsort
SELECT col0 * + - col1 + col2 FROM tab0 AS cor0
----
-1168
-1817
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5716
SELECT col1 + - col2 DIV - col2 AS col0 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-5716
SELECT col1 + - col2 / - col2 AS col0 FROM tab0 AS cor0
----
2
22
82

query I rowsort
SELECT + + 4 + - col1 * col2 AS col2 FROM tab1 cor0
----
-1340
-291
-3192

onlyif mysql # aggregate syntax: 
query I rowsort label-5718
SELECT 76 + MAX( + col0 ) FROM tab1 AS cor0
----
167

skipif mysql # not compatible
query I rowsort label-5718
SELECT 76 + MAX ( + col0 ) FROM tab1 AS cor0
----
167

query I rowsort
SELECT + col2 + + 8 FROM tab0 AS cor0
----
107
18
55

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 = + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5721
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) DIV + + 11 - - + 92 col1 FROM tab1
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5721
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) / + + 11 - - + 92 col1 FROM tab1
----
92

query I rowsort
SELECT - 78 + - - ( col2 ) FROM tab1
----
-10
-19
18

query III rowsort
SELECT * FROM tab1 WHERE + - col2 = + - col1 + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 > - col2 * 83 - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE 80 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5726
SELECT ALL - + ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL - + ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT ALL + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 0 * - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5727
SELECT ALL + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT + 0 * - col1 IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - ( - col1 ) + - 56 + + col2 + + 18 / - + 94 + - col2 + - col1 - - + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 ) NOT BETWEEN - 86 / - 12 AND ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( col0 * - 28 + ( + col0 + col2 * - col2 ) )
----

query I rowsort
SELECT ALL 6 * - 72 + col1 * + 70 FROM tab0
----
-362
1038
5238

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT 47 - COUNT( * ) AS col2 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-5732
SELECT 47 - COUNT ( * ) AS col2 FROM tab2
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5733
SELECT DISTINCT + CAST( + 96 AS SIGNED ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5733
SELECT DISTINCT + CAST ( + 96 AS INTEGER ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT ( col1 ) BETWEEN 34 AND col1
----
2

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT ( col1 ) BETWEEN 34 AND col1
----
2

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( col2 ) AND NULL
----

query I rowsort
SELECT ALL + ( + ( + 29 ) ) AS col0 FROM tab0
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5737
SELECT MAX( + col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5737
SELECT MAX ( + col1 ) AS col0 FROM tab2
----
77

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 > NULL
----

query I rowsort
SELECT - col1 * - col0 AS col2 FROM tab0 WHERE NOT + col1 IS NULL
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT ALL - COUNT( * ) - + 31 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL - COUNT ( * ) - + 31 FROM tab0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5741
SELECT ALL CAST( col0 AS SIGNED ) + + col0 * - ( - col0 ) AS col2 FROM tab2
----
2162
4160
5700

skipif mysql # not compatible
query I rowsort label-5741
SELECT ALL CAST ( col0 AS INTEGER ) + + col0 * - ( - col0 ) AS col2 FROM tab2
----
2162
4160
5700

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 BETWEEN NULL AND ( col2 * 92 )
----

query I rowsort
SELECT ALL 21 FROM tab0 WHERE ( 44 * col2 + col0 ) IS NOT NULL
----
21
21
21

query I rowsort
SELECT DISTINCT + 28 + col2 * ( 14 ) AS col2 FROM tab0
----
1414
168
686

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE ( - col1 ) + + 52 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col2 ) col1 FROM tab2 WHERE NOT col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5747
SELECT + CAST( 8 AS SIGNED ) FROM tab2 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-5747
SELECT + CAST ( 8 AS INTEGER ) FROM tab2 AS cor0
----
8
8
8

query I rowsort
SELECT DISTINCT + ( col0 ) AS col2 FROM tab0 AS cor0 WHERE ( col2 ) > 69
----
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 <> 14 * 80 + + 87
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 59 + + ( + col2 + - col2 ) FROM tab2 cor0
----
59

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5752
SELECT - 97 DIV col2 + - col2 AS col1 FROM tab2
----
-27
-42
-59

skipif mysql # not compatible
query I rowsort label-5752
SELECT - 97 / col2 + - col2 AS col1 FROM tab2
----
-27
-42
-59

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) < ( + 58 )
----

query I rowsort
SELECT + 17 * col1 AS col0 FROM tab0 AS cor0
----
1377
17
357

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / + col1 + + col0 = col1 / 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT ALL + SUM( + 50 ) + 2 * COUNT( * ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5756
SELECT ALL + SUM ( + 50 ) + 2 * COUNT ( * ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT DISTINCT + SUM( + ( + 12 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT + col2 + + 6 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5757
SELECT DISTINCT + SUM ( + ( + 12 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT + col2 + + 6 = NULL
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) > ( - col2 )
----

query I rowsort
SELECT 39 FROM tab0 AS cor0 WHERE 81 > 49
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT ( - COUNT( * ) ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5760
SELECT ( - COUNT ( * ) ) col1 FROM tab2 AS cor0
----
-3