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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5761
SELECT + 59 - + col2 * - col2 FROM tab2 AS cor0 WHERE + CAST( NULL AS DECIMAL ) < - 9
----

skipif mysql # not compatible
query I rowsort label-5761
SELECT + 59 - + col2 * - col2 FROM tab2 AS cor0 WHERE + CAST ( NULL AS REAL ) < - 9
----

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

query I rowsort
SELECT DISTINCT + col1 + - 85 * col1 FROM tab1 AS cor0
----
-1176
-3948
-420

query I rowsort
SELECT 18 - - col2 * + 21 FROM tab0 AS cor0
----
1005
2097
228

query I rowsort
SELECT 52 - - - col2 FROM tab2
----
-6
12
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5766
SELECT DISTINCT - CAST( + AVG ( - col2 ) AS SIGNED ) - 21 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-5766
SELECT DISTINCT - CAST ( + AVG ( - col2 ) AS INTEGER ) - 21 FROM tab0
----
31

query I rowsort
SELECT + 96 - - + col0 FROM tab0
----
111
183
193

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

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

query I rowsort
SELECT DISTINCT col2 - + - 53 FROM tab2
----
111
76
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT + MAX( + - 21 ) FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-5770
SELECT + MAX ( + - 21 ) FROM tab1
----
-21

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 > - ( + 92 ) * + 48
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE ( col0 ) NOT IN ( 77 + + col0 )
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * 34 IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5776
SELECT + CAST ( + - col1 AS INTEGER ) col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5777
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + CAST( - 78 AS SIGNED ) > col1 * - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5777
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + CAST ( - 78 AS INTEGER ) > col1 * - col1
----
NULL

query I rowsort
SELECT - + 3 * 17 FROM tab0 AS cor0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT + ( - - 28 ) * + COUNT( * ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-5779
SELECT + ( - - 28 ) * + COUNT ( * ) FROM tab1
----
84

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

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

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

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

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

query I rowsort
SELECT ALL - 27 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE NOT - col1 <> - col1 * - col2
----

query I rowsort
SELECT ALL 38 FROM tab1 AS cor0 WHERE ( col0 * col2 ) < ( + col2 * + 84 )
----
38

query I rowsort
SELECT DISTINCT col1 * - ( 97 ) + col2 FROM tab0 AS cor0
----
-2027
-7810
2

query I rowsort
SELECT DISTINCT - col0 * + col1 * 28 + col0 AS col1 FROM tab2 cor0
----
-137920
-140625
-65642

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5791
SELECT DISTINCT + + 44 + col0 DIV - - col2 AS col2 FROM tab2 AS cor0
----
45
46

skipif mysql # not compatible
query I rowsort label-5791
SELECT DISTINCT + + 44 + col0 / - - col2 AS col2 FROM tab2 AS cor0
----
45
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT + ( - SUM( DISTINCT - 98 ) ) FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-5792
SELECT + ( - SUM ( DISTINCT - 98 ) ) FROM tab0 AS cor0
----
98

query I rowsort
SELECT 79 AS col2 FROM tab2 AS cor0 WHERE NOT ( - col2 * - ( + 24 ) * col0 ) IN ( - 49 * col0 + ( col2 ) * col1 )
----
79
79
79

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

query I rowsort
SELECT ALL - col1 + - 18 + + + col0 AS col2 FROM tab1 AS cor0
----
19
26
62

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT ALL + - COUNT( DISTINCT - 71 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL + - COUNT ( DISTINCT - 71 ) AS col0 FROM tab0 AS cor0
----
-1

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

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

query I rowsort
SELECT DISTINCT - col1 + 66 FROM tab0
----
-15
45
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT ALL 35 * MAX( - 30 ) FROM tab2
----
-1050

skipif mysql # not compatible
query I rowsort label-5799
SELECT ALL 35 * MAX ( - 30 ) FROM tab2
----
-1050

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5801
SELECT ALL SUM( ALL 37 ) FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-5801
SELECT ALL SUM ( ALL 37 ) FROM tab0
----
111

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5803
SELECT + + ( col0 ) DIV col2 * - 86 * col2 + col2 AS col2 FROM tab0 AS cor0
----
-6870
47
99

skipif mysql # not compatible
query I rowsort label-5803
SELECT + + ( col0 ) / col2 * - 86 * col2 + col2 AS col2 FROM tab0 AS cor0
----
-6870
47
99

query I rowsort
SELECT DISTINCT + 73 * + 91 AS col2 FROM tab1 AS cor0 WHERE ( - - col2 IS NOT NULL )
----
6643

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5806
SELECT + CAST( + - 11 AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

skipif mysql # not compatible
query I rowsort label-5806
SELECT + CAST ( + - 11 AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

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

query I rowsort
SELECT DISTINCT col1 - + 15 + 32 FROM tab1
----
22
31
64

query I rowsort
SELECT + 39 + - col0 + - - 80 * + - 13 AS col0 FROM tab2 AS cor0
----
-1047
-1065
-1076

query I rowsort
SELECT ALL + + ( + - 43 ) + col0 FROM tab2 AS cor0
----
21
3
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 93 col2 FROM tab2 AS cor0
----
144
160
170

query I rowsort
SELECT + col1 + - col0 + - col1 * col0 AS col0 FROM tab1 AS cor0
----
-4321
-505
-751

query I rowsort
SELECT col2 + - 14 * - - ( - col2 ) + col0 AS col2 FROM tab2 AS cor0
----
391
664
945

query I rowsort
SELECT DISTINCT + + 3 + 41 AS col1 FROM tab1 AS cor0
----
44

query I rowsort
SELECT - 99 + + - col0 FROM tab2 cor0
----
-145
-163
-174

query I rowsort
SELECT ALL - col1 + + + 29 - + ( 68 ) * 60 FROM tab2 AS cor0
----
-4102
-4118
-4128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5817
SELECT + col0 + - CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
17
23
24

skipif mysql # not compatible
query I rowsort label-5817
SELECT + col0 + - CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
17
23
24

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5820
SELECT MIN( - col1 ) * - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-5820
SELECT MIN ( - col1 ) * - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5821
SELECT - CAST( + - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5821
SELECT - CAST ( + - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5822
SELECT ALL - - ( + - COUNT( * ) ) DIV - - 6 AS col1 FROM tab2 cor0
----
0

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 * - + 96 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5824
SELECT - MIN( + 2 ) AS col0 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-5824
SELECT - MIN ( + 2 ) AS col0 FROM tab0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5825
SELECT DISTINCT CAST( CAST( - 16 AS SIGNED ) AS SIGNED ) * - + 46 + + CAST( col0 AS SIGNED ) AS col0 FROM tab1
----
787
821
827

skipif mysql # not compatible
query I rowsort label-5825
SELECT DISTINCT CAST ( CAST ( - 16 AS INTEGER ) AS INTEGER ) * - + 46 + + CAST ( col0 AS INTEGER ) AS col0 FROM tab1
----
787
821
827

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5827
SELECT + 36 AS col1 FROM tab0 WHERE NOT CAST( + + col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5827
SELECT + 36 AS col1 FROM tab0 WHERE NOT CAST ( + + col0 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 63 <= + 53
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL = ( - ( + 13 ) / + - col0 / + - col1 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT DISTINCT + COUNT( * ) * 38 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT + COUNT ( * ) * 38 FROM tab1 AS cor0
----
114

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT - 6 + - + 44 FROM tab0 AS cor0
----
-50
-50
-50

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 AS cor0 WHERE - col0 >= - col1 * + 12
----
51
67
77

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NOT + 73 IN ( + + col1 + ( + col1 ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + col1 * + + col2, col0 col2 FROM tab2 AS cor0
----
1219
46
3144
64
3961
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT ALL - COUNT( * ) + + MAX( ALL + ( - col1 ) ) FROM tab2 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-5845
SELECT ALL - COUNT ( * ) + + MAX ( ALL + ( - col1 ) ) FROM tab2 cor0
----
-54

query II rowsort
SELECT DISTINCT + col2, - 49 AS col0 FROM tab0
----
10
-49
47
-49
99
-49

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

query I rowsort
SELECT ALL col2 + - - col0 + - 60 AS col1 FROM tab1
----
84
87
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5849
SELECT - - COUNT( * ) + - 15 FROM tab2 WHERE NULL IS NULL
----
-12

skipif mysql # not compatible
query I rowsort label-5849
SELECT - - COUNT ( * ) + - 15 FROM tab2 WHERE NULL IS NULL
----
-12

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 81 IS NOT NULL
----

query I rowsort
SELECT + 91 FROM tab0 WHERE ( col1 ) = - col1 + col2
----

query II rowsort
SELECT + 72, + col1 * col1 + + - 20 AS col2 FROM tab0
----
72
-19
72
421
72
6541

query I rowsort
SELECT ALL - col0 + - 45 FROM tab2
----
-109
-120
-91

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

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

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

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

query I rowsort
SELECT ALL col1 FROM tab1 WHERE ( col2 ) > - col1 OR NOT + - col1 IN ( col2 )
----
14
47
5

query I rowsort
SELECT 94 * + col1 AS col0 FROM tab1
----
1316
4418
470

query I rowsort
SELECT ALL - 31 + - col0 FROM tab1 AS cor0
----
-116
-122
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT ALL 63 + 68 + ( COUNT( * ) ) AS col2 FROM tab2
----
134

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL 63 + 68 + ( COUNT ( * ) ) AS col2 FROM tab2
----
134

query II rowsort
SELECT DISTINCT + col0 - - col1 * - ( + + col2 ) AS col0, col0 + + col2 + - col2 FROM tab0
----
-123
87
-2
97
-3792
15

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5866
SELECT ALL - - COUNT( * ) * + 1, - MAX( col2 ) AS col1 FROM tab2 AS cor0
----
3
-58

skipif mysql # not compatible
query II rowsort label-5866
SELECT ALL - - COUNT ( * ) * + 1, - MAX ( col2 ) AS col1 FROM tab2 AS cor0
----
3
-58

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

query I rowsort
SELECT ALL - - ( 94 ) FROM tab0 AS cor0
----
94
94
94

query I rowsort
SELECT + col0 * + col1 + - - col1 * - - 22 AS col1 FROM tab1 WHERE NOT col2 IS NULL
----
1022
5311
535

onlyif mysql # DIV for integer division: 
query I rowsort label-5870
SELECT col0 DIV - 5 FROM tab0
----
-17
-19
-3

skipif mysql # not compatible
query I rowsort label-5870
SELECT col0 / - 5 FROM tab0
----
-17
-19
-3

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

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

query I rowsort
SELECT ALL - col2 * + - 93 AS col2 FROM tab0
----
4371
9207
930

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT ( + + SUM( col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-5874
SELECT ( + + SUM ( col0 ) ) FROM tab0
----
199

query I rowsort
SELECT ALL + - col0 FROM tab2 WHERE - 21 IS NOT NULL
----
-46
-64
-75

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

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT 84 IN ( + - 12, 38 * + 6 )
----
15
87
97

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5878
SELECT DISTINCT - col0 * + col0 col0 FROM tab2 AS cor0 WHERE NOT - ( - CAST ( NULL AS INTEGER ) ) + + col1 > - - col2 + + ( + + col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NOT - + ( + ( 81 ) ) <> ( - col2 + col2 * col2 * - 75 * + 67 )
----
0

skipif mysql # not compatible
query I rowsort label-5881
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NOT - + ( + ( 81 ) ) <> ( - col2 + col2 * col2 * - 75 * + 67 )
----
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) BETWEEN ( + 22 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5883
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE - + col0 <> - - CAST( NULL AS SIGNED ) * + - 37 - - ( + + CAST( + col0 AS SIGNED ) ) + col1 / + 15 + + - 79
----

skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE - + col0 <> - - CAST ( NULL AS INTEGER ) * + - 37 - - ( + + CAST ( + col0 AS INTEGER ) ) + col1 / + 15 + + - 79
----

query I rowsort
SELECT ALL 55 * + col1 FROM tab1
----
2585
275
770

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

skipif mysql # not compatible
query I rowsort label-5885
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) FROM tab1 cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col2, - col0 AS col0 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5887
SELECT DISTINCT + - ( + + 7 ) DIV + + col1 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5887
SELECT DISTINCT + - ( + + 7 ) / + + col1 AS col2 FROM tab2 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5889
SELECT DISTINCT + 87 col0, MIN( ALL + col1 ) col2 FROM tab2 cor0
----
87
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5889
SELECT DISTINCT + 87 col0, MIN ( ALL + col1 ) col2 FROM tab2 cor0
----
87
51

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + + col1 * - - 89 + - col0 col2 FROM tab2 AS cor0
----
4539
5963
6853

onlyif mysql # DIV for integer division: 
query I rowsort label-5892
SELECT + 22 + - col0 DIV col1 + + 82 AS col2 FROM tab1
----
101
103
87

skipif mysql # not compatible
query I rowsort label-5892
SELECT + 22 + - col0 / col1 + + 82 AS col2 FROM tab1
----
101
103
87

query I rowsort
SELECT - col2 + + col0 * + col0 * - col2 * - - col1 + col2 - - - col2 FROM tab2
----
-12615720
-21858808
-2482091

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

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

skipif mysql # not compatible
query I rowsort label-5895
SELECT ALL + col1 / col1 / - - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5896
SELECT + - 1 DIV 69 AS col0, COUNT( * ) AS col2 FROM tab1 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-5896
SELECT + - 1 / 69 AS col0, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT ALL - COUNT( * ) + + 9 AS col1 FROM tab0 WHERE ( NULL ) <= NULL AND ( - + col1 ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-5897
SELECT ALL - COUNT ( * ) + + 9 AS col1 FROM tab0 WHERE ( NULL ) <= NULL AND ( - + col1 ) IS NULL
----
9

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5899
SELECT col2 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT 47 * + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-5902
SELECT 47 * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
141

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col2 IN ( col1, 73, + col2 / - 70 )
----

query I rowsort
SELECT ALL + 42 * + 88 AS col1 FROM tab2
----
3696
3696
3696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - ( + col0 ) ) col2 FROM tab0 AS cor0
----
15
87
97

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - 34
----

query II rowsort
SELECT ALL + - ( + + 46 ) + - ( + col2 ) AS col1, + ( col0 ) * + col2 FROM tab0 cor0
----
-145
9603
-56
870
-93
705

query I rowsort
SELECT - 84 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

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

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

query I rowsort
SELECT ALL + 17 + 22 FROM tab1 cor0
----
39
39
39

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

query II rowsort
SELECT 42 AS col0, 21 + + 76 - 98 FROM tab1 AS cor0
----
42
-1
42
-1
42
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT ALL - 36 + COUNT( * ) FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-5916
SELECT ALL - 36 + COUNT ( * ) FROM tab2
----
-33

query I rowsort
SELECT DISTINCT ( - col1 ) + - 64 * - col1 FROM tab0
----
1323
5103
63

query I rowsort
SELECT ALL - col1 - - + ( + 78 ) FROM tab2
----
1
11
27

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

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

query I rowsort
SELECT ALL col0 - - ( + - col2 ) * + col2 * 59 FROM tab0
----
-130316
-578162
-5813

query II rowsort
SELECT ALL + 91 AS col2, - col0 * - + col0 * 49 AS col1 FROM tab1 AS cor0
----
91
127449
91
354025
91
405769

query I rowsort
SELECT ALL - - col0 FROM tab2 cor0 WHERE NOT NULL <> + 76 + - 27
----

query I rowsort
SELECT 48 + - col1 + + col0 FROM tab0 AS cor0
----
-18
114
144

query I rowsort
SELECT DISTINCT - - col2 * 64 AS col1 FROM tab1 AS cor0
----
3776
4352
6144

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5925
SELECT - 70 / + 1 col1, col0 AS col2 FROM tab0
----
-70
15
-70
87
-70
97

query I rowsort
SELECT 19 * 0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT DISTINCT - MAX( DISTINCT - + 39 ) col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5927
SELECT DISTINCT - MAX ( DISTINCT - + 39 ) col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5930
SELECT + 11 DIV - + ( - + col1 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5930
SELECT + 11 / - + ( - + col1 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - ( - - 17 ) * - col2 * - col1 * - 63 AS col2 FROM tab0
----
106029
224910
4077297

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT - MIN( - col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5932
SELECT - MIN ( - col2 ) FROM tab0
----
99

query II rowsort
SELECT col2 * + col0 * col1, col2 AS col2 FROM tab1
----
25075
59
290836
68
68544
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5935
SELECT DISTINCT ( - SUM( ALL - 10 ) ) AS col2 FROM tab1 cor0
----
30

skipif mysql # not compatible
query I rowsort label-5935
SELECT DISTINCT ( - SUM ( ALL - 10 ) ) AS col2 FROM tab1 cor0
----
30

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

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

query I rowsort
SELECT ALL - col2 + + col1 + - 95 AS col1 FROM tab1 AS cor0
----
-116
-149
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT ( - - MIN( col2 ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-5938
SELECT ( - - MIN ( col2 ) ) FROM tab0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 * - + ( + - col0 ) col2 FROM tab1
----
-3825
-6375
-6825

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5941
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( - col2 AS SIGNED ) <= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5941
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( - col2 AS INTEGER ) <= ( NULL )
----

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

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

query I rowsort
SELECT DISTINCT - 69 + - col1 + - col1 AS col1 FROM tab1 AS cor0
----
-163
-79
-97

query I rowsort
SELECT + 19 + - col2 FROM tab0 cor0
----
-28
-80
9

query I rowsort
SELECT DISTINCT - 0 + col1 AS col2 FROM tab0 AS cor0
----
1
21
81

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col1 * col2 col2 FROM tab2 AS cor0
----
1122
3003
3819

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = - 86 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT SUM( DISTINCT + - col0 ) + MAX( ALL - 74 ) col1 FROM tab2 AS cor0
----
-259

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5949
SELECT SUM ( DISTINCT + - col0 ) + MAX ( ALL - 74 ) col1 FROM tab2 AS cor0
----
-259

query I rowsort
SELECT ALL - - col2 + 84 FROM tab1 AS cor0
----
143
152
180

query I rowsort
SELECT DISTINCT - col0 * - + 75 + + 79 * 23 AS col0 FROM tab2 AS cor0
----
5267
6617
7442

query I rowsort
SELECT ALL 49 + - col1 AS col2 FROM tab1
----
2
35
44

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 - - - col2 col0 FROM tab1
----
-103
-66
-75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 99 NOT IN ( - col1 )
----

query I rowsort
SELECT DISTINCT col1 - + + 78 AS col2 FROM tab1
----
-31
-64
-73

query I rowsort
SELECT DISTINCT - col1 - col2 * 27 AS col2 FROM tab1 AS cor0
----
-1598
-1883
-2606

query I rowsort
SELECT col0 - + + 14 AS col1 FROM tab0 AS cor0
----
1
73
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5959
SELECT + 46 FROM tab1 cor0 WHERE CAST( + - 0 AS SIGNED ) * - col0 * + col1 NOT BETWEEN 53 AND NULL
----
46
46
46

skipif mysql # not compatible
query I rowsort label-5959
SELECT + 46 FROM tab1 cor0 WHERE CAST ( + - 0 AS INTEGER ) * - col0 * + col1 NOT BETWEEN 53 AND NULL
----
46
46
46

query I rowsort
SELECT ALL col2 + + 73 FROM tab1 AS cor0
----
132
141
169

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5962
SELECT DISTINCT - 67 * + - COUNT( * ) + ( + 67 ) DIV COUNT( * ) AS col1 FROM tab0 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5962
SELECT DISTINCT - 67 * + - COUNT ( * ) + ( + 67 ) / COUNT ( * ) AS col1 FROM tab0 AS cor0
----
223

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( NOT ( + col1 ) IS NOT NULL )
----
14
47
5

onlyif mysql # DIV for integer division: 
query II rowsort label-5964
SELECT ALL - col0 AS col2, - col1 DIV + 32 col1 FROM tab2
----
-46
-1
-64
-2
-75
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5964
SELECT ALL - col0 AS col2, - col1 / + 32 col1 FROM tab2
----
-46
-1
-64
-2
-75
-2

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + col1 col0 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5967
SELECT - col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-5967
SELECT - col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT + MAX( col2 ) * + 86 FROM tab1 AS cor0
----
8256

skipif mysql # not compatible
query I rowsort label-5970
SELECT + MAX ( col2 ) * + 86 FROM tab1 AS cor0
----
8256

query I rowsort
SELECT DISTINCT 91 * - col2 + - col2 AS col1 FROM tab0 AS cor0
----
-4324
-9108
-920

query I rowsort
SELECT + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col2 AND - + 47 + - 76
----

query II rowsort
SELECT - col1 * 56 AS col0, - 90 FROM tab2 AS cor0
----
-2856
-90
-3752
-90
-4312
-90

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5975
SELECT DISTINCT - col2 DIV - col1 AS col0, col0 - + - 19 FROM tab0
----
0
106
0
34
99
116

skipif mysql # not compatible
query II rowsort label-5975
SELECT DISTINCT - col2 / - col1 AS col0, col0 - + - 19 FROM tab0
----
0
106
0
34
99
116

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5976
SELECT DISTINCT - MAX( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

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

query I rowsort
SELECT ALL + 31 + - - col2 FROM tab0 AS cor0
----
130
41
78

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5979
SELECT DISTINCT - ( ( + 38 ) ) * + 1 DIV MIN( ALL 96 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5979
SELECT DISTINCT - ( ( + 38 ) ) * + 1 / MIN ( ALL 96 ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT ( 14 ) + - - 29 AS col0 FROM tab0 AS cor0
----
43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5982
SELECT - 26 + + + COUNT( DISTINCT - col0 ) FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-5982
SELECT - 26 + + + COUNT ( DISTINCT - col0 ) FROM tab0
----
-23

query I rowsort
SELECT DISTINCT + col0 + + 6 FROM tab1
----
57
91
97

query I rowsort
SELECT col2 * - - ( 79 ) + - + 12 AS col1 FROM tab1
----
4649
5360
7572

query I rowsort
SELECT ALL - - 58 FROM tab2 AS cor0 WHERE NULL = + col0 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5986
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND CAST( NULL AS SIGNED ) / - col1 - - col1
----

skipif mysql # not compatible
query III rowsort label-5986
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND CAST ( NULL AS INTEGER ) / - col1 - - col1
----

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

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

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

query I rowsort
SELECT DISTINCT - col1 + - 18 AS col2 FROM tab2
----
-69
-85
-95

query I rowsort
SELECT + col2 + col1 + - + col2 FROM tab1 WHERE + - col2 IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5992
SELECT col2 * + col0 - CAST( + + 89 AS SIGNED ) * + 68 + col0 FROM tab1
----
-1105
-952
227

skipif mysql # not compatible
query I rowsort label-5992
SELECT col2 * + col0 - CAST ( + + 89 AS INTEGER ) * + 68 + col0 FROM tab1
----
-1105
-952
227

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

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

query I rowsort
SELECT ALL - 47 + - col2 FROM tab1
----
-106
-115
-143

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT + MIN( ALL - col0 ) + COUNT( 82 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5996
SELECT + MIN ( ALL - col0 ) + COUNT ( 82 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT ALL + - ( + SUM( col0 ) ) * + + 97 AS col2 FROM tab1 cor0
----
-22019

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL + - ( + SUM ( col0 ) ) * + + 97 AS col2 FROM tab1 cor0
----
-22019

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 69 * col1 = + 81
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6000
SELECT 98 DIV - col2 AS col0 FROM tab2 cor0 WHERE NOT 91 DIV - - col0 IN ( col0 )
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-6000
SELECT 98 / - col2 AS col0 FROM tab2 cor0 WHERE NOT 91 / - - col0 IN ( col0 )
----
-1
-2
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6001
SELECT ALL 69 * SUM( + col2 ) FROM tab0 AS cor0
----
10764

skipif mysql # not compatible
query I rowsort label-6001
SELECT ALL 69 * SUM ( + col2 ) FROM tab0 AS cor0
----
10764

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 * col0 - + + col1 + - 62 col0 FROM tab1 AS cor0
----
-4386
-492
-790

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6003
SELECT + CAST( + SUM( ALL + - col2 ) AS SIGNED ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-6003
SELECT + CAST ( + SUM ( ALL + - col2 ) AS INTEGER ) AS col1 FROM tab2
----
-121

query II rowsort
SELECT + col0, col2 + + col0 AS col2 FROM tab2
----
46
69
64
104
75
133

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6005
SELECT ALL * FROM tab2 WHERE NULL IN ( + col2, col1, CAST( NULL AS SIGNED ), + - 4 )
----

skipif mysql # not compatible
query III rowsort label-6005
SELECT ALL * FROM tab2 WHERE NULL IN ( + col2, col1, CAST ( NULL AS INTEGER ), + - 4 )
----

query I rowsort
SELECT col1 * + col2 * col2 FROM tab1
----
129024
17405
217328

query I rowsort
SELECT DISTINCT - ( + col2 ) FROM tab0 WHERE NOT NULL IS NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6009
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * + + COUNT( * ) + - 90 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6009
SELECT DISTINCT + - CAST ( NULL AS REAL ) * + + COUNT ( * ) + - 90 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 90 NOT IN ( - col2, col2, 15 - - 98 + - col2, - col2, col2 + + 8 + - 68 * col0 * col2 )
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6011
SELECT - 25 AS col1, COUNT( * ) * 16 col1 FROM tab0 AS cor0
----
-25
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6011
SELECT - 25 AS col1, COUNT ( * ) * 16 col1 FROM tab0 AS cor0
----
-25
48

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

skipif mysql # not compatible
query I rowsort label-6012
SELECT - CAST ( + 41 AS INTEGER ) FROM tab2
----
-41
-41
-41

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6014
SELECT ALL - SUM( 60 ) AS col2, 64 AS col1 FROM tab2 AS cor0
----
-180
64

skipif mysql # not compatible
query II rowsort label-6014
SELECT ALL - SUM ( 60 ) AS col2, 64 AS col1 FROM tab2 AS cor0
----
-180
64

query I rowsort
SELECT 37 + + col0 FROM tab1 AS cor0
----
122
128
88

query II rowsort
SELECT ALL - col0 * - col2, + col1 AS col0 FROM tab0 AS cor0
----
705
81
870
21
9603
1

query I rowsort
SELECT - 65 + + - col2 * - ( - 92 ) + col2 AS col0 FROM tab0 AS cor0
----
-4342
-9074
-975

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

query I rowsort
SELECT ALL - 80 + + 53 AS col0 FROM tab1
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT DISTINCT 43 * + - 94 + - SUM( ALL + 31 ) AS col1 FROM tab0
----
-4135

skipif mysql # not compatible
query I rowsort label-6020
SELECT DISTINCT 43 * + - 94 + - SUM ( ALL + 31 ) AS col1 FROM tab0
----
-4135

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NULL = col1
----

query I rowsort
SELECT ALL + 98 * col0 FROM tab0
----
1470
8526
9506

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab0 WHERE 68 IS NULL
----

query II rowsort
SELECT DISTINCT col0, col2 AS col1 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query II rowsort label-6025
SELECT DISTINCT 41 * + ( 73 ) AS col1, + COUNT( * ) FROM tab0
----
2993
3

skipif mysql # not compatible
query II rowsort label-6025
SELECT DISTINCT 41 * + ( 73 ) AS col1, + COUNT ( * ) FROM tab0
----
2993
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 21 col1, ( + ( + col0 ) ) * col1 - - col1 AS col0 FROM tab2 AS cor0
----
21
2397
21
5005
21
5092

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 34 + col2 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
57
74
92

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

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

query I rowsort
SELECT - + col0 * - 53 FROM tab2 AS cor0
----
2438
3392
3975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6030
SELECT + - CAST( NULL AS SIGNED ) * - - ( + - 69 ) / + + col2 * + col2 + - col1 + - - ( - 94 ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6030
SELECT + - CAST ( NULL AS INTEGER ) * - - ( + - 69 ) / + + col2 * + col2 + - col1 + - - ( - 94 ) + - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + 30 FROM tab1 AS cor0
----
1770
2040
2880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6032
SELECT - COUNT( * ) + + - MIN( ALL - CAST( NULL AS SIGNED ) ) * - 69 AS col0, 11 AS col1 FROM tab1 AS cor0
----
NULL
11

skipif mysql # not compatible
query II rowsort label-6032
SELECT - COUNT ( * ) + + - MIN ( ALL - CAST ( NULL AS INTEGER ) ) * - 69 AS col0, 11 AS col1 FROM tab1 AS cor0
----
NULL
11

onlyif mysql # DIV for integer division: 
query I rowsort label-6033
SELECT ALL 84 DIV + col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-6033
SELECT ALL 84 / + col0 FROM tab0 AS cor0
----
0
0
5

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

query I rowsort
SELECT DISTINCT col2 + + - col2 + 47 FROM tab1 cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 17 + col1 col2, col2 FROM tab1 AS cor0
----
-12
59
-3
96
30
68

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

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

query I rowsort
SELECT DISTINCT 60 * - col0 + + col1 AS col0 FROM tab1 AS cor0
----
-3046
-5095
-5413

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 87 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6040
SELECT DISTINCT - col0 + + col2 + - ( + col0 ) + 30 DIV col2 * col2 * + col0 FROM tab0
----
-95
17
2446

skipif mysql # not compatible
query I rowsort label-6040
SELECT DISTINCT - col0 + + col2 + - ( + col0 ) + 30 / col2 * col2 * + col0 FROM tab0
----
-95
17
2446

query I rowsort
SELECT - 48 * + col0 AS col1 FROM tab1
----
-2448
-4080
-4368

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL IN ( - 21 + col2, 54 * + col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 94 * 9 col0 FROM tab2
----
846
846
846

query I rowsort
SELECT + - col2 * + col0 + + col0 - + col1 FROM tab2 AS cor0
----
-1063
-2573
-4342

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6046
SELECT DISTINCT - COUNT( * ) * - 66 * - - 35 + - CAST( - ( - 65 ) AS SIGNED ) * + - 33 * + 83 AS col2 FROM tab2 cor0 WHERE - col0 IS NOT NULL
----
184965

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT - COUNT ( * ) * - 66 * - - 35 + - CAST ( - ( - 65 ) AS INTEGER ) * + - 33 * + 83 AS col2 FROM tab2 cor0 WHERE - col0 IS NOT NULL
----
184965

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6047
SELECT ( + col1 ) + - CAST( + col1 AS SIGNED ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6047
SELECT ( + col1 ) + - CAST ( + col1 AS INTEGER ) AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - col2 / col0 - - - col2 AS col1 FROM tab1 WHERE - 82 IS NULL
----

query I rowsort
SELECT ALL 33 - + 5 - + col1 AS col1 FROM tab2
----
-23
-39
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-6050
SELECT DISTINCT col2 DIV - 31 - + + col1 AS col0 FROM tab1
----
-17
-49
-6

skipif mysql # not compatible
query I rowsort label-6050
SELECT DISTINCT col2 / - 31 - + + col1 AS col0 FROM tab1
----
-17
-49
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6051
SELECT COUNT( * ) DIV SUM( ALL - + col0 ) * + - CAST( + + 25 AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6051
SELECT COUNT ( * ) / SUM ( ALL - + col0 ) * + - CAST ( + + 25 AS INTEGER ) FROM tab1
----
0

query II rowsort
SELECT ALL 1, 86 AS col0 FROM tab0
----
1
86
1
86
1
86

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT 53 > NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6054
SELECT DISTINCT + COUNT ( * ), + CAST ( NULL AS INTEGER ) col2 FROM tab2 AS cor0
----
3
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6056
SELECT DISTINCT + col0 AS col1, ( col1 ) / - - 97 + - ( 3 ) + + col2 + + col1 / - - ( + 90 ) * ( - - 1 ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-6056
SELECT DISTINCT + col0 AS col1, ( col1 ) / - - 97 + - ( 3 ) + + col2 + + col1 / - - ( + 90 ) * ( - - 1 ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NOT col2 * - 45 IS NULL
----
10
47
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT - COUNT( * ) - 67 FROM tab0 WHERE NOT NULL <> + ( + col2 ) * + col1 * + col2
----
-67

skipif mysql # not compatible
query I rowsort label-6059
SELECT - COUNT ( * ) - 67 FROM tab0 WHERE NOT NULL <> + ( + col2 ) * + col1 * + col2
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6060
SELECT col0 AS col2 FROM tab1 WHERE NOT - CAST( - col1 AS SIGNED ) + col1 IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6060
SELECT col0 AS col2 FROM tab1 WHERE NOT - CAST ( - col1 AS INTEGER ) + col1 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT ALL MAX( - 4 ) * COUNT( * ) AS col2 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-6061
SELECT ALL MAX ( - 4 ) * COUNT ( * ) AS col2 FROM tab0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6062
SELECT 96 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 * - 79 + 45 + - col2 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6062
SELECT 96 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 * - 79 + 45 + - col2 AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT DISTINCT + + SUM( 11 ) AS col0 FROM tab0 cor0
----
33

skipif mysql # not compatible
query I rowsort label-6063
SELECT DISTINCT + + SUM ( 11 ) AS col0 FROM tab0 cor0
----
33

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6064
SELECT + - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

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

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

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

skipif mysql # not compatible
query I rowsort label-6066
SELECT ( - COUNT ( * ) ) / COUNT ( ALL - col0 ) AS col1 FROM tab0
----
-1

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6068
SELECT DISTINCT ( col2 ) * - col0 / + - col0 + - ( + CAST( NULL AS SIGNED ) ) AS col0, col2 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

skipif mysql # not compatible
query II rowsort label-6068
SELECT DISTINCT ( col2 ) * - col0 / + - col0 + - ( + CAST ( NULL AS INTEGER ) ) AS col0, col2 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT + MIN( + col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT 66 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6069
SELECT + MIN ( + col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT 66 IS NOT NULL
----
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 * + - 40 IS NULL
----

query III rowsort
SELECT - + col1 AS col1, - col1 * + ( - + col1 ) + + + col2 * - 44 AS col1, - - 76 FROM tab0 AS cor0
----
9 values hashing to 67c22a4ddb16f7f3ed172737ff1c8772

query I rowsort
SELECT ALL + ( + + ( col2 ) ) + 66 FROM tab2 cor0
----
106
124
89

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

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6076
SELECT ALL - col0 + - col0 DIV col2 AS col1 FROM tab2 AS cor0
----
-48
-65
-76

skipif mysql # not compatible
query I rowsort label-6076
SELECT ALL - col0 + - col0 / col2 AS col1 FROM tab2 AS cor0
----
-48
-65
-76

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 AND NULL
----

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

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

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

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

query I rowsort
SELECT + ( - + col2 ) + - col1 + + - 47 * - + col2 - + - 52 AS col0 FROM tab0
----
2133
4605
491

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + col0 + - 5 + - col2 - col2 * - col1 col2 FROM tab2
----
1242
3176
3965

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

query I rowsort
SELECT ALL col2 + 19 FROM tab0 AS cor0
----
118
29
66

query I rowsort
SELECT ALL 80 * - + 39 + - col2 FROM tab0
----
-3130
-3167
-3219

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT DISTINCT - MIN( ALL - col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-6087
SELECT DISTINCT - MIN ( ALL - col2 ) AS col0 FROM tab1
----
96

query I rowsort
SELECT + - 75 + - ( - - 58 ) FROM tab1 cor0
----
-133
-133
-133

query I rowsort
SELECT DISTINCT - col2 - - col2 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6090
SELECT DISTINCT MAX( - + col1 ) * 0 * - COUNT( + col1 ) DIV + + 57 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6090
SELECT DISTINCT MAX ( - + col1 ) * 0 * - COUNT ( + col1 ) / + + 57 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 89 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT ALL - 35 * COUNT( * ) AS col1 FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-6092
SELECT ALL - 35 * COUNT ( * ) AS col1 FROM tab2
----
-105

onlyif mysql # DIV for integer division: 
query II rowsort label-6093
SELECT 20 DIV col1, col1 AS col1 FROM tab1
----
0
47
1
14
4
5

skipif mysql # not compatible
query II rowsort label-6093
SELECT 20 / col1, col1 AS col1 FROM tab1
----
0
47
1
14
4
5

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

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

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

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

skipif mysql # not compatible
query III rowsort label-6096
SELECT * FROM tab2 AS cor0 WHERE - col0 > + ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - + col2 + - + 58 FROM tab0 AS cor0
----
-105
-157
-68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT DISTINCT - 2 + + COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6100
SELECT DISTINCT - 2 + + COUNT ( * ) FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6101
SELECT ALL - col0 + - col1 + + col0 - - 50 DIV + col0 FROM tab0
----
-1
-21
-78

skipif mysql # not compatible
query I rowsort label-6101
SELECT ALL - col0 + - col1 + + col0 - - 50 / + col0 FROM tab0
----
-1
-21
-78

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

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

query II rowsort
SELECT ALL 40, col2 * + 78 AS col1 FROM tab1
----
40
4602
40
5304
40
7488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col2 col0 FROM tab2 cor0
----
116
46
80

query I rowsort
SELECT ALL 73 - + col1 AS col0 FROM tab1
----
26
59
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT DISTINCT + COUNT( * ) - ( + 38 ) AS col2 FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-6106
SELECT DISTINCT + COUNT ( * ) - ( + 38 ) AS col2 FROM tab1
----
-35

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6107
SELECT * FROM tab2 WHERE NOT - + 97 * + CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6107
SELECT * FROM tab2 WHERE NOT - + 97 * + CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT + 19 * - col2 AS col1 FROM tab0
----
-1881
-190
-893

query I rowsort
SELECT + col1 AS col1 FROM tab1 cor0 WHERE NOT - col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6111
SELECT DISTINCT - - CAST( + 66 AS SIGNED ) DIV col1 + col1 AS col2 FROM tab0 cor0
----
24
67
81

skipif mysql # not compatible
query I rowsort label-6111
SELECT DISTINCT - - CAST ( + 66 AS INTEGER ) / col1 + col1 AS col2 FROM tab0 cor0
----
24
67
81

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

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

query I rowsort
SELECT 17 * col0 * - - 39 AS col2 FROM tab0
----
57681
64311
9945

onlyif mysql # DIV for integer division: 
query I rowsort label-6114
SELECT col1 DIV + 48 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6114
SELECT col1 / + 48 FROM tab0
----
0
0
1

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

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

query I rowsort
SELECT col0 * + ( col1 ) / col0 - + col0 AS col2 FROM tab1 AS cor0 WHERE NOT 35 / col0 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-6117
SELECT DISTINCT + COUNT ( + 80 ) FROM tab1
----
3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col2, + col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6120
SELECT - col2 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) / - 39 <= NULL
----

skipif mysql # not compatible
query I rowsort label-6120
SELECT - col2 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) / - 39 <= NULL
----

query I rowsort
SELECT DISTINCT col2 * col1 + + col0 FROM tab1 AS cor0 WHERE NOT col1 = - col1
----
1395
3287
380

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6123
SELECT - + CAST( + col0 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE - 97 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-6123
SELECT - + CAST ( + col0 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE - 97 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - - col0 + 14 FROM tab1 AS cor0
----
105
65
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6125
SELECT col0 + - - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-6125
SELECT col0 + - - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
196
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6126
SELECT - col2 + - col0 DIV 18 - + 87 AS col1 FROM tab2 AS cor0
----
-112
-130
-149

skipif mysql # not compatible
query I rowsort label-6126
SELECT - col2 + - col0 / 18 - + 87 AS col1 FROM tab2 AS cor0
----
-112
-130
-149

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT + 74 + - col2 * 46 + + 0 FROM tab1 cor0
----
-2640
-3054
-4342

query I rowsort
SELECT - ( - 75 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query II rowsort
SELECT DISTINCT col1 + - - 90 AS col1, - 21 * col1 FROM tab0
----
111
-441
171
-1701
91
-21

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 51 / 30 / - 52 NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT ALL + COUNT( * ) - - ( - - COUNT( * ) ) + COUNT( * ) * + - 45 * - + 62 AS col1 FROM tab2 AS cor0
----
8376

skipif mysql # not compatible
query I rowsort label-6133
SELECT ALL + COUNT ( * ) - - ( - - COUNT ( * ) ) + COUNT ( * ) * + - 45 * - + 62 AS col1 FROM tab2 AS cor0
----
8376

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

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

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

query I rowsort
SELECT ALL + - 92 * + 73 * + col0 FROM tab2 AS cor0
----
-308936
-429824
-503700

query I rowsort
SELECT DISTINCT 49 * + col2 AS col0 FROM tab2
----
1127
1960
2842

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 51 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6140
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) / col1 NOT BETWEEN 7 AND + 1
----

skipif mysql # not compatible
query III rowsort label-6140
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) / col1 NOT BETWEEN 7 AND + 1
----

query I rowsort
SELECT ALL col1 + + col2 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
117
125
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6142
SELECT ALL + + MIN( ( + 88 ) ) * 23 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL + + MIN ( ( + 88 ) ) * 23 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col2 * + 90 + + + col0 * + + col2 * + - 93 AS col1 FROM tab0 cor0
----
-69795
-81810
-901989

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

skipif mysql # not compatible
query II rowsort label-6144
SELECT + col1 AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT DISTINCT - + col1 * - 68 FROM tab1 AS cor0
----
3196
340
952

query I rowsort
SELECT + + 86 AS col1 FROM tab1 WHERE NOT - 2 >= - 54
----

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

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

query I rowsort
SELECT ALL - col2 * - col0 * + col2 AS col0 FROM tab1
----
295885
420784
470016

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

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

query I rowsort
SELECT DISTINCT - + 29 * + col2 * + col2 AS col0 FROM tab1 AS cor0
----
-100949
-134096
-267264

query I rowsort
SELECT DISTINCT - 57 * + ( - + ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
-2679
-285
-798

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

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

query I rowsort
SELECT + 93 + ( - 51 ) AS col0 FROM tab1
----
42
42
42

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

query I rowsort
SELECT DISTINCT 15 FROM tab2 AS cor0 WHERE NOT - ( - col1 ) BETWEEN col2 AND + 65
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT 13 + + COUNT( DISTINCT + col1 ) FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-6156
SELECT 13 + + COUNT ( DISTINCT + col1 ) FROM tab1 AS cor0
----
16

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 13 - - col1 / - 28 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6159
SELECT CAST( + + COUNT( * ) AS SIGNED ) * + 57 AS col1 FROM tab0 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-6159
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) * + 57 AS col1 FROM tab0 AS cor0
----
171

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6161
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6161
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6162
SELECT + COUNT( * ) + + + ( - + COUNT( * ) ) - + COUNT( * ) * - AVG ( - 81 ) AS col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6162
SELECT + COUNT ( * ) + + + ( - + COUNT ( * ) ) - + COUNT ( * ) * - AVG ( - 81 ) AS col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----
NULL

query I rowsort
SELECT ALL - ( + 38 ) + + col0 AS col1 FROM tab0 cor0
----
-23
49
59

query II rowsort
SELECT col2, ( + 42 ) AS col0 FROM tab0
----
10
42
47
42
99
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6165
SELECT ALL * FROM tab0 WHERE + + col0 < - col0 + - col1 + + CAST( NULL AS SIGNED ) * - - 61
----

skipif mysql # not compatible
query III rowsort label-6165
SELECT ALL * FROM tab0 WHERE + + col0 < - col0 + - col1 + + CAST ( NULL AS INTEGER ) * - - 61
----

query I rowsort
SELECT ALL - col1 + + 80 FROM tab1
----
33
66
75

onlyif mysql # DIV for integer division: 
query I rowsort label-6167
SELECT DISTINCT + col1 DIV + col1 - - 14 col1 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6167
SELECT DISTINCT + col1 / + col1 - - 14 col1 FROM tab0
----
15

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

skipif mysql # not compatible
query I rowsort label-6168
SELECT ALL MIN ( - ( - - 45 ) ) AS col1 FROM tab2
----
-45

query I rowsort
SELECT - 0 * + 30 - + 72 FROM tab0
----
-72
-72
-72

query I rowsort
SELECT 18 * + col1 - - col2 AS col0 FROM tab2
----
1264
1426
941

query I rowsort
SELECT col2 - - + 41 AS col1 FROM tab0
----
140
51
88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6172
SELECT * FROM tab1 WHERE NULL = + CAST( 93 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6172
SELECT * FROM tab1 WHERE NULL = + CAST ( 93 AS INTEGER )
----

query I rowsort
SELECT + 54 * + 8 + - col2 FROM tab0
----
333
385
422

query I rowsort
SELECT col2 + - col0 * 57 AS col2 FROM tab1
----
-2811
-4786
-5119

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6178
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * 83 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6178
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * 83 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6179
SELECT - - CAST( 27 AS SIGNED ) DIV 52 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6179
SELECT - - CAST ( 27 AS INTEGER ) / 52 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 46 * 49 * - col1 FROM tab0
----
-182574
-2254
-47334

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

query I rowsort
SELECT DISTINCT + 84 * 82 FROM tab0 AS cor0
----
6888

query II rowsort
SELECT DISTINCT ( col0 ) AS col1, 80 - + + 68 AS col1 FROM tab1 cor0
----
51
12
85
12
91
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT DISTINCT COUNT( DISTINCT + 58 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6184
SELECT DISTINCT COUNT ( DISTINCT + 58 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL 65 * + - 1 FROM tab2
----
-65
-65
-65

query I rowsort
SELECT 91 * + col0 * + col2 FROM tab2
----
232960
395850
96278

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6189
SELECT - col2 DIV - + 65 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6189
SELECT - col2 / - + 65 AS col2 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT ( 33 ) FROM tab2
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT + - 71 + + 50 + + + SUM( DISTINCT - 88 ) AS col2 FROM tab2, tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6192
SELECT + - 71 + + 50 + + + SUM ( DISTINCT - 88 ) AS col2 FROM tab2, tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT ALL + COUNT( ALL col2 ) * - + MAX( DISTINCT col2 ) FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL + COUNT ( ALL col2 ) * - + MAX ( DISTINCT col2 ) FROM tab0
----
-297

query I rowsort
SELECT + 63 + - col0 * + 21 FROM tab1 WHERE NOT NULL <> 37
----

query I rowsort
SELECT DISTINCT + - 58 * - col2 FROM tab2 AS cor0
----
1334
2320
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-6196
SELECT ALL + - MAX( ALL - 22 ) FROM tab2 cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6196
SELECT ALL + - MAX ( ALL - 22 ) FROM tab2 cor0 WHERE col0 IS NULL
----
NULL

query I rowsort
SELECT ALL col1 + ( - - 45 ) AS col0 FROM tab2 AS cor0
----
112
122
96

query I rowsort
SELECT DISTINCT + 57 + col2 AS col0 FROM tab2 AS cor0
----
115
80
97

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

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

query I rowsort
SELECT ALL 29 * - col0 AS col2 FROM tab1
----
-1479
-2465
-2639

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6201
SELECT ALL + CAST( NULL AS SIGNED ) * 73 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6201
SELECT ALL + CAST ( NULL AS INTEGER ) * 73 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 64 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN 57 / - col1 AND col0 + 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT ALL MIN( ALL + 64 ) FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-6203
SELECT ALL MIN ( ALL + 64 ) FROM tab1
----
64

query I rowsort
SELECT col0 - + 5 AS col1 FROM tab0
----
10
82
92

onlyif mysql # DIV for integer division: 
query I rowsort label-6205
SELECT ALL - 77 DIV + col2 + 7 * - ( col2 ) FROM tab1
----
-414
-477
-672

skipif mysql # not compatible
query I rowsort label-6205
SELECT ALL - 77 / + col2 + 7 * - ( col2 ) FROM tab1
----
-414
-477
-672

query I rowsort
SELECT + 82 FROM tab2 WHERE - col0 + 78 IS NULL
----

query I rowsort
SELECT ALL - 43 * 60 + col0 * + col1 FROM tab2 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6208
SELECT - COUNT( * ) * 75 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-6208
SELECT - COUNT ( * ) * 75 FROM tab2
----
-225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 31 ) * - col1 col2 FROM tab1
----
1457
155
434

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

query I rowsort
SELECT ( col1 ) * - 67 FROM tab1
----
-3149
-335
-938

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6212
SELECT ALL * FROM tab1 WHERE - 35 * - CAST( NULL AS SIGNED ) + + 5 BETWEEN ( NULL ) AND + ( - col1 ) + + col0
----

skipif mysql # not compatible
query III rowsort label-6212
SELECT ALL * FROM tab1 WHERE - 35 * - CAST ( NULL AS INTEGER ) + + 5 BETWEEN ( NULL ) AND + ( - col1 ) + + col0
----

query I rowsort
SELECT ALL - ( 32 ) AS col2 FROM tab1
----
-32
-32
-32

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT - COUNT( * ) * 53 FROM tab0
----
-159

skipif mysql # not compatible
query I rowsort label-6217
SELECT - COUNT ( * ) * 53 FROM tab0
----
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 - ( - col0 ) col2 FROM tab0
----
166
176
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT DISTINCT 75 * COUNT( * ) FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-6219
SELECT DISTINCT 75 * COUNT ( * ) FROM tab1
----
225

onlyif mysql # DIV for integer division: 
query I rowsort label-6220
SELECT DISTINCT col0 DIV 69 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-6220
SELECT DISTINCT col0 / 69 FROM tab2
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6221
SELECT SUM( ( 4 ) ) AS col2 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-6221
SELECT SUM ( ( 4 ) ) AS col2 FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT SUM( - ( - 56 ) ) FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-6222
SELECT SUM ( - ( - 56 ) ) FROM tab2
----
168

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

query I rowsort
SELECT + 76 * - col2 FROM tab0 AS cor0
----
-3572
-7524
-760

query I rowsort
SELECT - 43 * 94 FROM tab0 AS cor0
----
-4042
-4042
-4042

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT + COUNT( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN 64 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6227
SELECT + COUNT ( * ) FROM tab2 WHERE NOT NULL NOT BETWEEN 64 AND ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT COUNT( * ) * - 39 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
-351

skipif mysql # not compatible
query I rowsort label-6228
SELECT COUNT ( * ) * - 39 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
-351

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6230
SELECT - ( MIN( - CAST( + col0 AS SIGNED ) ) ) AS col0 FROM tab0 AS cor0
----
97

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

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

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

query I rowsort
SELECT DISTINCT + 48 AS col1 FROM tab1 AS cor0 WHERE + 44 + - col1 IS NULL
----

query I rowsort
SELECT - + ( - col2 ) * + col2 AS col0 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT ALL COUNT( * ) + MAX( - 96 + 54 ) FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL COUNT ( * ) + MAX ( - 96 + 54 ) FROM tab2 AS cor0
----
-39

query I rowsort
SELECT DISTINCT - 75 - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-134
-143
-171

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

skipif mysql # not compatible
query III rowsort label-6236
SELECT * FROM tab0 WHERE NOT CAST ( col0 AS INTEGER ) <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 30 NOT IN ( 89 * 99 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6238
SELECT ( - - MAX( - 81 ) ) * SUM( - col1 * col0 + + 81 ) FROM tab1
----
419013

skipif mysql # not compatible
query I rowsort label-6238
SELECT ( - - MAX ( - 81 ) ) * SUM ( - col1 * col0 + + 81 ) FROM tab1
----
419013

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > ( 66 * ( - 9 ) )
----

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

query I rowsort
SELECT ( + 46 ) * 5 FROM tab2
----
230
230
230

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT - SUM( ALL + 34 ) col0 FROM tab2 AS cor0
----
-102

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6245
SELECT + + MIN( ALL + + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6245
SELECT + + MIN ( ALL + + CAST ( NULL AS REAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col0 - - col0 FROM tab0 AS cor0 WHERE col0 > - col1
----
174
194
30

query I rowsort
SELECT ( - + col0 ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-6248
SELECT DISTINCT - + 87 + col2 DIV + col1 AS col0 FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-6248
SELECT DISTINCT - + 87 + col2 / + col1 AS col0 FROM tab2 AS cor0
----
-87

query I rowsort
SELECT ALL - col1 + - col1 * col0 AS col1 FROM tab1 AS cor0
----
-430
-4324
-728

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

query I rowsort
SELECT - 35 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE 43 + - 82 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6252
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE 43 + - 82 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6253
SELECT + - SUM( 38 ) FROM tab2 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-6253
SELECT + - SUM ( 38 ) FROM tab2 AS cor0
----
-114

query II rowsort
SELECT + col0 AS col2, + col0 * - - col1 FROM tab0 cor0
----
15
1215
87
1827
97
97

query I rowsort
SELECT DISTINCT - 49 + + - 29 * + col2 * col1 AS col2 FROM tab2 AS cor0
----
-112743
-34066
-89369

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab0 AS cor0 WHERE NOT col2 + - 59 = ( + ( + col2 ) + + 85 * - ( + col2 / col1 ) )
----
1
21
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT ALL SUM( ALL - + 0 ) + - + 29 col0 FROM tab2 cor0
----
-29

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6259
SELECT DISTINCT - col0 / ( col2 ) + + col0 FROM tab1 AS cor0 WHERE ( - 35 * + - CAST( NULL AS SIGNED ) ) BETWEEN - col0 * - 25 AND ( - 94 * 10 )
----

skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT - col0 / ( col2 ) + + col0 FROM tab1 AS cor0 WHERE ( - 35 * + - CAST ( NULL AS INTEGER ) ) BETWEEN - col0 * - 25 AND ( - 94 * 10 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + 41 * - + col2 col1 FROM tab2 cor0
----
-126280
-159326
-48093

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT DISTINCT - 40 + MIN( + col0 ) * 22 FROM tab1 AS cor0
----
1082

skipif mysql # not compatible
query I rowsort label-6261
SELECT DISTINCT - 40 + MIN ( + col0 ) * 22 FROM tab1 AS cor0
----
1082

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT DISTINCT + COUNT( * ) + + 55 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-6263
SELECT DISTINCT + COUNT ( * ) + + 55 FROM tab0
----
58

query I rowsort
SELECT + col0 - + col0 - - + 63 AS col0 FROM tab0
----
63
63
63

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6266
SELECT 52 - 0 + + 71 DIV col1 DIV - col0 FROM tab2
----
52
52
52

skipif mysql # not compatible
query I rowsort label-6266
SELECT 52 - 0 + + 71 / col1 / - col0 FROM tab2
----
52
52
52

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( col2 + 78 / + col0 )
----

query I rowsort
SELECT - 20 + ( 24 ) AS col2 FROM tab1 WHERE NOT ( - col0 ) IS NULL
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6269
SELECT DISTINCT - CAST( - 91 AS SIGNED ) AS col0 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT - CAST ( - 91 AS INTEGER ) AS col0 FROM tab0
----
91

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

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

query I rowsort
SELECT ALL 67 AS col2 FROM tab1 AS cor0 WHERE NOT ( col1 * col0 * + - 64 ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col0 * - col1 <> + 28 * - col2
----

query II rowsort
SELECT ALL + col1 * - col1 AS col1, - ( - col0 ) + ( + col2 ) FROM tab1 AS cor0
----
-196
147
-2209
159
-25
144

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

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6277
SELECT ALL col1 / - - col0, col1 + + col2 - + col1 col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

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

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

query I rowsort
SELECT + 53 * col0 + + 37 AS col2 FROM tab1 WHERE NOT + - col2 <= + col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 51 NOT BETWEEN NULL AND ( - ( - col0 ) )
----
46
51
23

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

query I rowsort
SELECT ALL + col1 * - ( + - col2 ) * + - 73 * - col1 AS col2 FROM tab1
----
107675
10965476
1373568

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

query I rowsort
SELECT DISTINCT 50 FROM tab2 cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT DISTINCT SUM( + 35 ) AS col0 FROM tab1 AS cor0 WHERE 44 NOT BETWEEN - col1 AND - + col0 - + col2 + - 84
----
105

skipif mysql # not compatible
query I rowsort label-6285
SELECT DISTINCT SUM ( + 35 ) AS col0 FROM tab1 AS cor0 WHERE 44 NOT BETWEEN - col1 AND - + col0 - + col2 + - 84
----
105

query I rowsort
SELECT ALL - col2 * col1 + 48 FROM tab0 cor0
----
-162
-3759
-51

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6288
SELECT ALL ( - - col0 ) DIV - 27 + 43 + col0 FROM tab0
----
127
137
58

skipif mysql # not compatible
query I rowsort label-6288
SELECT ALL ( - - col0 ) / - 27 + 43 + col0 FROM tab0
----
127
137
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6289
SELECT ( + col1 ) DIV col0 FROM tab1 WHERE + col2 * + - col0 + + col0 NOT IN ( - col1 + 9 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6289
SELECT ( + col1 ) / col0 FROM tab1 WHERE + col2 * + - col0 + + col0 NOT IN ( - col1 + 9 )
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6291
SELECT CAST( + 89 AS SIGNED ) + - + 70 FROM tab2
----
19
19
19

skipif mysql # not compatible
query I rowsort label-6291
SELECT CAST ( + 89 AS INTEGER ) + - + 70 FROM tab2
----
19
19
19

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

query II rowsort
SELECT DISTINCT - 81 AS col1, - 65 AS col0 FROM tab0
----
-81
-65

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

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

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

query I rowsort
SELECT + 63 AS col2 FROM tab0 AS cor0 WHERE + 34 <> NULL
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE 67 * + 98 + 22 * - col2 IS NULL
----

query I rowsort
SELECT + 6 + + - 4 FROM tab2 AS cor0
----
2
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-6301
SELECT + - col2 + 55 + - - col0 DIV col2 AS col2 FROM tab1 AS cor0
----
-12
-3
-41

skipif mysql # not compatible
query I rowsort label-6301
SELECT + - col2 + 55 + - - col0 / col2 AS col2 FROM tab1 AS cor0
----
-12
-3
-41

query II rowsort
SELECT DISTINCT - + col2 * - col2, + col1 FROM tab1 AS cor0
----
3481
5
4624
47
9216
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT + + 27 + - + MAX( + col0 ) AS col1 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-6303
SELECT + + 27 + - + MAX ( + col0 ) AS col1 FROM tab2 AS cor0
----
-48

query I rowsort
SELECT DISTINCT 78 + col0 + 42 * + 13 * col0 FROM tab1 AS cor0 WHERE NOT col2 = col0 - - + col1
----
27975
46573
49855

query I rowsort
SELECT DISTINCT - col1 * - col0 + + + 33 FROM tab1 AS cor0
----
4310
458
747

query I rowsort
SELECT DISTINCT AVG ( 27 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( ( NOT ( NOT ( NULL ) IS NULL ) ) )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6307
SELECT - col0 DIV - col0, + col0 FROM tab0 AS cor0
----
1
15
1
87
1
97

skipif mysql # not compatible
query II rowsort label-6307
SELECT - col0 / - col0, + col0 FROM tab0 AS cor0
----
1
15
1
87
1
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 * + col1 * - - col2 col2 FROM tab2
----
166320
209844
63342

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 34 * - 2 - + col2 + - + col2 + + + col2 ) BETWEEN NULL AND col2 + - 26 OR NOT NULL < ( + col1 * + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6311
SELECT DISTINCT - 10 DIV + COUNT( * ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6311
SELECT DISTINCT - 10 / + COUNT ( * ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6312
SELECT DISTINCT - 94 * - COUNT( * ) FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-6312
SELECT DISTINCT - 94 * - COUNT ( * ) FROM tab1
----
282

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6315
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NOT + col2 NOT IN ( + col1 - - 51, + 19, - col2 )
----

skipif mysql # not compatible
query I rowsort label-6315
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NOT + col2 NOT IN ( + col1 - - 51, + 19, - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 68 BETWEEN NULL AND - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + + col0 + + 61 AS col0, 73 * col0 AS col1 FROM tab0 cor0
----
148
6351
158
7081
76
1095

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6319
SELECT - + COUNT( * ), - 87 * - COUNT( * ) FROM tab1 cor0 WHERE NOT 82 >= 4
----
0
0

skipif mysql # not compatible
query II rowsort label-6319
SELECT - + COUNT ( * ), - 87 * - COUNT ( * ) FROM tab1 cor0 WHERE NOT 82 >= 4
----
0
0

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * + col1 * - col1 FROM tab2 AS cor0
----
119646
336675
379456

query I rowsort
SELECT ALL - - col2 + + 12 - - - col0 FROM tab1 cor0
----
-11
-14
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6324
SELECT DISTINCT - CAST( 78 AS SIGNED ) + - col0 AS col2, 17 * + col2 AS col0 FROM tab0
----
-165
170
-175
1683
-93
799

skipif mysql # not compatible
query II rowsort label-6324
SELECT DISTINCT - CAST ( 78 AS INTEGER ) + - col0 AS col2, 17 * + col2 AS col0 FROM tab0
----
-165
170
-175
1683
-93
799

onlyif mysql # DIV for integer division: 
query II rowsort label-6325
SELECT DISTINCT col2 + ( ( - ( + col1 ) ) ) + 80 + + - 49 + col2 AS col1, - col2 * + col1 DIV - col1 AS col1 FROM tab0
----
228
99
30
10
44
47

skipif mysql # not compatible
query II rowsort label-6325
SELECT DISTINCT col2 + ( ( - ( + col1 ) ) ) + 80 + + - 49 + col2 AS col1, - col2 * + col1 / - col1 AS col1 FROM tab0
----
228
99
30
10
44
47

query I rowsort
SELECT DISTINCT 55 + - 77 - col2 * - - col0 AS col1 FROM tab0
----
-727
-892
-9625

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT ALL COUNT( 50 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6328
SELECT ALL COUNT ( 50 ) FROM tab1
----
3

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

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

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

query I rowsort
SELECT ALL + - 95 + + 6 FROM tab0 AS cor0
----
-89
-89
-89

query I rowsort
SELECT DISTINCT - - ( 91 ) * col1 + + col2 FROM tab2 cor0
----
4664
6155
7047

onlyif mysql # aggregate syntax: 
query I rowsort label-6333
SELECT ALL + 16 * - 67 + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1081

skipif mysql # not compatible
query I rowsort label-6333
SELECT ALL + 16 * - 67 + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-1081

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT ALL + - SUM( DISTINCT - col2 ) AS col0 FROM tab0 WHERE col2 IS NOT NULL
----
156

skipif mysql # not compatible
query I rowsort label-6334
SELECT ALL + - SUM ( DISTINCT - col2 ) AS col0 FROM tab0 WHERE col2 IS NOT NULL
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6335
SELECT ( - CAST( 23 AS SIGNED ) ) FROM tab0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-6335
SELECT ( - CAST ( 23 AS INTEGER ) ) FROM tab0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-6336
SELECT ALL + COUNT( DISTINCT - + col2 ) - - 34 AS col1 FROM tab0 cor0
----
37

skipif mysql # not compatible
query I rowsort label-6336
SELECT ALL + COUNT ( DISTINCT - + col2 ) - - 34 AS col1 FROM tab0 cor0
----
37

query I rowsort
SELECT - col0 - + 61 AS col2 FROM tab0 cor0
----
-148
-158
-76

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6339
SELECT - CAST( NULL AS SIGNED ) * + 90 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6339
SELECT - CAST ( NULL AS INTEGER ) * + 90 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL + 54 * + col2 FROM tab1
----
3186
3672
5184

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

skipif mysql # not compatible
query I rowsort label-6343
SELECT - CAST ( + - CAST ( - 77 AS REAL ) AS INTEGER ) FROM tab1
----
-77
-77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT MIN( ALL 6 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6345
SELECT MIN ( ALL 6 ) FROM tab2
----
6

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

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

query I rowsort
SELECT ALL + 30 * col2 + - + col0 * + - col2 AS col2 FROM tab0 AS cor0
----
1170
12573
2115

query I rowsort
SELECT ALL + 83 FROM tab1 AS cor0 WHERE 96 * + - col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6349
SELECT - 92 * - COUNT( * ) DIV + COUNT( * ) col2 FROM tab0
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6349
SELECT - 92 * - COUNT ( * ) / + COUNT ( * ) col2 FROM tab0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT DISTINCT COUNT( * ) - + 90 FROM tab0 WHERE - 14 IS NOT NULL
----
-87

skipif mysql # not compatible
query I rowsort label-6350
SELECT DISTINCT COUNT ( * ) - + 90 FROM tab0 WHERE - 14 IS NOT NULL
----
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6351
SELECT DISTINCT - 38 * - COUNT( * ) DIV - COUNT( * ) FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT - 38 * - COUNT ( * ) / - COUNT ( * ) FROM tab0
----
-38

query I rowsort
SELECT DISTINCT + 45 * - col1 + - col1 AS col2 FROM tab2 AS cor0 WHERE 31 NOT BETWEEN ( - 11 ) AND col0
----

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE 7 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 8 * - ( - - col1 ), - 97 + - + 36 col2 FROM tab1 AS cor0
----
-112
-133
-376
-133
-40
-133

onlyif mysql # DIV for integer division: 
query I rowsort label-6356
SELECT 65 + + col0 DIV - 98 FROM tab2 AS cor0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-6356
SELECT 65 + + col0 / - 98 FROM tab2 AS cor0
----
65
65
65

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 60 + 81 * col1 col2 FROM tab2
----
4191
5487
6297

query I rowsort
SELECT ALL + 27 + 31 FROM tab1
----
58
58
58

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

query I rowsort
SELECT DISTINCT + + 53 * + col2 + + 53 + - col1 FROM tab1 WHERE NULL > + + col1
----

query I rowsort
SELECT ALL + col2 + 21 * + - col1 AS col2 FROM tab1
----
-198
-46
-919

query I rowsort
SELECT 30 + col0 AS col1 FROM tab2
----
105
76
94

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

query I rowsort
SELECT DISTINCT 70 AS col0 FROM tab1 AS cor0 WHERE NOT ( - 36 ) < + 90
----

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

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

query II rowsort
SELECT DISTINCT - col2 + - - col0 AS col0, col1 AS col1 FROM tab0 AS cor0
----
-2
1
-32
81
77
21

query I rowsort
SELECT ALL + + 75 AS col0 FROM tab0 WHERE ( + col0 NOT IN ( + col1, col1 ) )
----
75
75
75

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6370
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( - CAST( - - 63 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6370
SELECT DISTINCT col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( - CAST ( - - 63 AS INTEGER ) ) IS NOT NULL
----

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

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

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

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

query I rowsort
SELECT + 45 * - + 46 + - - 49 FROM tab1 AS cor0
----
-2021
-2021
-2021

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) col0 FROM tab1
----
59
68
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT DISTINCT + 13 * + + COUNT( * ) FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-6376
SELECT DISTINCT + 13 * + + COUNT ( * ) FROM tab2 AS cor0
----
39

query II rowsort
SELECT + col2 AS col2, - col2 + 12 AS col2 FROM tab1 AS cor0
----
59
-47
68
-56
96
-84

query II rowsort
SELECT ALL col1 * + col0 * - col1 - - col0 AS col1, - col0 FROM tab2 AS cor0
----
-119600
-46
-336600
-75
-379392
-64

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

query II rowsort
SELECT + 72, 47 * + - 88 * col0 AS col2 FROM tab2 AS cor0
----
72
-190256
72
-264704
72
-310200

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

query II rowsort
SELECT ALL - col1 * + - col0 AS col1, + col1 * 48 FROM tab0
----
1215
3888
1827
1008
97
48

query I rowsort
SELECT DISTINCT - 21 * - 87 FROM tab0
----
1827

query II rowsort
SELECT DISTINCT 4 * - + col0, - 99 AS col1 FROM tab2
----
-184
-99
-256
-99
-300
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-6385
SELECT - 61 + + COUNT( * ) AS col2, SUM( DISTINCT 71 ) * COUNT( * ) FROM tab0
----
-58
213

skipif mysql # not compatible
query II rowsort label-6385
SELECT - 61 + + COUNT ( * ) AS col2, SUM ( DISTINCT 71 ) * COUNT ( * ) FROM tab0
----
-58
213

query I rowsort
SELECT DISTINCT - col1 + + - ( + 16 ) + + + col0 FROM tab2 AS cor0
----
-21
-29
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6387
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND CAST( - col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6387
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND CAST ( - col1 AS REAL )
----

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

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

query I rowsort
SELECT - ( - 98 ) FROM tab0 cor0 WHERE ( NULL ) > NULL
----

query II rowsort
SELECT DISTINCT - 40 + 52 + - ( + 49 ) + + + col2 AS col1, col0 + + 71 AS col0 FROM tab1 AS cor0
----
22
156
31
162
59
122

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6393
SELECT DISTINCT - col0 - + col2 DIV - 69 + - 97 FROM tab1
----
-147
-182
-188

skipif mysql # not compatible
query I rowsort label-6393
SELECT DISTINCT - col0 - + col2 / - 69 + - 97 FROM tab1
----
-147
-182
-188

onlyif mysql # DIV for integer division: 
query I rowsort label-6394
SELECT DISTINCT col1 DIV + 17 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-6394
SELECT DISTINCT col1 / + 17 FROM tab0
----
0
1
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6395
SELECT DISTINCT + col2 - - col0 DIV - + col0 + - col0 AS col2 FROM tab0
----
-78
1
31

skipif mysql # not compatible
query I rowsort label-6395
SELECT DISTINCT + col2 - - col0 / - + col0 + - col0 AS col2 FROM tab0
----
-78
1
31

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

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

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

query II rowsort
SELECT DISTINCT + 13 * + + col0, col1 AS col2 FROM tab2 WHERE NOT NULL < NULL
----

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

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

query I rowsort
SELECT - ( 85 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT - col2 >= + 75
----
46
64
75

query I rowsort
SELECT - 67 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 70 * col0 * - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 54 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-54

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6405
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( + + col2 AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-6405
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( + + col2 AS REAL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT - + COUNT( * ) * + + 82 + 23 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-6406
SELECT - + COUNT ( * ) * + + 82 + 23 FROM tab1 AS cor0
----
-223

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

query I rowsort
SELECT 82 * - ( - 3 ) AS col0 FROM tab1
----
246
246
246

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT MIN( - + ( + col0 ) ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-6411
SELECT MIN ( - + ( + col0 ) ) FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT - MIN( - 19 ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-6412
SELECT - MIN ( - 19 ) FROM tab0
----
19

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 >= NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col0, + 99 FROM tab0
----
-10
99
-47
99
-99
99

query I rowsort
SELECT DISTINCT + - ( - 13 ) AS col1 FROM tab1 cor0
----
13

query I rowsort
SELECT - col0 + - 69 + + 59 FROM tab0 AS cor0
----
-107
-25
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6417
SELECT ALL - CAST( NULL AS DECIMAL ) AS col1, - col1 col0 FROM tab1 cor0
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6417
SELECT ALL - CAST ( NULL AS REAL ) AS col1, - col1 col0 FROM tab1 cor0
----
NULL
-14
NULL
-47
NULL
-5

query I rowsort
SELECT ALL - col2 + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-100
-451
-6608

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6419
SELECT DISTINCT + - MIN ( DISTINCT col0 ) col0 FROM tab1 AS cor0
----
-51

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6422
SELECT DISTINCT COUNT( DISTINCT 39 ) + 95 FROM tab2 cor0 WHERE ( + col0 ) IN ( + + col2 * + - CAST( NULL AS SIGNED ) * - - col0, + 24 + + col0 + + col1 / - col2 )
----
95

skipif mysql # not compatible
query I rowsort label-6422
SELECT DISTINCT COUNT ( DISTINCT 39 ) + 95 FROM tab2 cor0 WHERE ( + col0 ) IN ( + + col2 * + - CAST ( NULL AS INTEGER ) * - - col0, + 24 + + col0 + + col1 / - col2 )
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT - + SUM( + 81 ) + 42 + 92 + + 53 col2 FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6423
SELECT - + SUM ( + 81 ) + 42 + 92 + + 53 col2 FROM tab2 AS cor0
----
-56

query I rowsort
SELECT ALL - col2 + + + col1 * + col1 FROM tab2 AS cor0
----
2578
4431
5889

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT + 76 + MAX( DISTINCT col2 ) + + + MAX( ALL + + 89 ) AS col0 FROM tab0 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-6425
SELECT + 76 + MAX ( DISTINCT col2 ) + + + MAX ( ALL + + 89 ) AS col0 FROM tab0 AS cor0
----
264

query I rowsort
SELECT DISTINCT col1 * + ( 15 ) + + 44 * col1 AS col2 FROM tab2
----
3009
3953
4543

query I rowsort
SELECT DISTINCT 72 - - ( + col1 ) * + col2 FROM tab0
----
171
282
3879

query I rowsort
SELECT + 51 + - col1 + + - 25 FROM tab1
----
-21
12
21

query I rowsort
SELECT ALL - 65 + + + ( - col2 ) FROM tab1
----
-124
-133
-161

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

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

query II rowsort
SELECT DISTINCT + col0 + + - col0 AS col2, 66 FROM tab0
----
0
66

query I rowsort
SELECT DISTINCT col2 - - - col2 * col2 AS col1 FROM tab2
----
-1560
-3306
-506

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

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 58 col2 FROM tab2 AS cor0
----
58
58
58

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6440
SELECT col1, 91 DIV + col1 - + ( + col0 ) - - col0 * - col0 + + 42 FROM tab2 AS cor0
----
51
-2119
67
-5657
77
-4117

skipif mysql # not compatible
query II rowsort label-6440
SELECT col1, 91 / + col1 - + ( + col0 ) - - col0 * - col0 + + 42 FROM tab2 AS cor0
----
51
-2119
67
-5657
77
-4117

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

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

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

skipif mysql # not compatible
query I rowsort label-6442
SELECT - MAX ( ALL - 25 ) FROM tab2 AS cor0
----
25

query II rowsort
SELECT ALL - col0 AS col0, + 73 + + col0 AS col2 FROM tab2 AS cor0
----
-46
119
-64
137
-75
148

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( col2 ) >= NULL
----

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

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL CAST ( NULL AS REAL ) * + + 94 + - + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6447
SELECT ALL 73 DIV ( + 82 ) col1, ( + 97 ) + + col2 AS col1 FROM tab0 AS cor0
----
0
107
0
144
0
196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6447
SELECT ALL 73 / ( + 82 ) col1, ( + 97 ) + + col2 AS col1 FROM tab0 AS cor0
----
0
107
0
144
0
196

onlyif mysql # aggregate syntax: 
query II rowsort label-6448
SELECT + + 45 * + SUM( - 29 ) AS col1, 22 AS col0 FROM tab1 AS cor0
----
-3915
22

skipif mysql # not compatible
query II rowsort label-6448
SELECT + + 45 * + SUM ( - 29 ) AS col1, 22 AS col0 FROM tab1 AS cor0
----
-3915
22

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6450
SELECT ALL + col0 DIV - ( + 39 ) FROM tab0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL + col0 / - ( + 39 ) FROM tab0
----
-2
-2
0

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

query I rowsort
SELECT ALL + + 71 + - col0 FROM tab0 AS cor0
----
-16
-26
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) + - 21 col0 FROM tab2 AS cor0
----
30
46
56

query II rowsort
SELECT col2 * - 42 + + col0 AS col1, - col1 FROM tab2
----
-1616
-77
-2361
-67
-920
-51

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 IS NOT NULL
----

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

query I rowsort
SELECT ALL 78 + + + col0 FROM tab2 AS cor0
----
124
142
153

query I rowsort
SELECT 7 * - col2 + + col0 FROM tab1 AS cor0
----
-328
-385
-621

onlyif mysql # DIV for integer division: 
query I rowsort label-6460
SELECT DISTINCT + 25 + col2 DIV - + col0 FROM tab1 AS cor0
----
24
25

skipif mysql # not compatible
query I rowsort label-6460
SELECT DISTINCT + 25 + col2 / - + col0 FROM tab1 AS cor0
----
24
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6461
SELECT ALL COUNT( * ) col2 FROM tab2 cor0
----
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6462
SELECT + + col1 DIV - col0 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6462
SELECT + + col1 / - col0 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
-1
-1
0

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

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

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

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

query I rowsort
SELECT DISTINCT - 35 AS col0 FROM tab1 WHERE + 85 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT - 36 - COUNT( * ) AS col1 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-6468
SELECT - 36 - COUNT ( * ) AS col1 FROM tab1
----
-39

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

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

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

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

query I rowsort
SELECT + + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= + 6
----

query II rowsort
SELECT DISTINCT - 41 * col2, col2 FROM tab2 AS cor0
----
-1640
40
-2378
58
-943
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6473
SELECT - 71 col0, COUNT( + - 5 ) - + 53 DIV - - 11 AS col1 FROM tab2 AS cor0
----
-71
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6473
SELECT - 71 col0, COUNT ( + - 5 ) - + 53 / - - 11 AS col1 FROM tab2 AS cor0
----
-71
-1

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 19 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT - SUM( + - 89 ) FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-6475
SELECT - SUM ( + - 89 ) FROM tab0
----
267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 76 * col2 col2, col1 col2 FROM tab2 AS cor0
----
1748
51
3040
77
4408
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6477
SELECT ALL + - 36 DIV - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6477
SELECT ALL + - 36 / - col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - + col2 * 79 AS col1 FROM tab1 cor0
----
-4661
-5372
-7584

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

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

query I rowsort
SELECT DISTINCT col0 + 48 + col2 AS col0 FROM tab0 AS cor0
----
110
145
244

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6482
SELECT CAST( col2 AS SIGNED ) * - col2 * - 1 FROM tab2 AS cor0
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-6482
SELECT CAST ( col2 AS INTEGER ) * - col2 * - 1 FROM tab2 AS cor0
----
1600
3364
529

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT + COUNT( * ) * - 96 + + COUNT( * ) * + 77 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-6485
SELECT + COUNT ( * ) * - 96 + + COUNT ( * ) * + 77 FROM tab2
----
-57

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

query I rowsort
SELECT DISTINCT ( - 26 ) AS col1 FROM tab0 WHERE NOT + + col1 NOT BETWEEN - - col0 AND + col1 * + col2
----
-26

query I rowsort
SELECT + col0 / 73 FROM tab2 WHERE NOT - - col2 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 > - - 36 + 41 / 36 + - ( + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6490
SELECT ALL COUNT( * ) AS col0, MIN( ALL + 24 ) AS col2 FROM tab1
----
3
24

skipif mysql # not compatible
query II rowsort label-6490
SELECT ALL COUNT ( * ) AS col0, MIN ( ALL + 24 ) AS col2 FROM tab1
----
3
24

query I rowsort
SELECT ALL - ( - + col1 ) AS col0 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL + 20 * - 22 AS col0 FROM tab0
----
-440
-440
-440

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 col0 FROM tab1 AS cor0 WHERE col1 IN ( - col2 + - col1 * + col2, - col2, + + 47, - col0 )
----
47

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6497
SELECT DISTINCT + - COUNT ( * ) col2 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 > + - col0
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE 33 + col1 BETWEEN - 13 * col0 + - - 27 AND NULL
----

query I rowsort
SELECT + col1 * + - col1 + 4 AS col2 FROM tab1 AS cor0
----
-192
-21
-2205

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

skipif mysql # not compatible
query I rowsort label-6501
SELECT col2 + - - ( CAST ( NULL AS INTEGER ) ) * + - 89 * 29 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col2 ) col1 FROM tab1 WHERE - col2 * - - col1 - col2 - 25 * + - 5 - + 51 + + 72 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6504
SELECT - COUNT( * ) * + SUM( - 72 ) FROM tab0, tab2 cor0
----
5832

skipif mysql # not compatible
query I rowsort label-6504
SELECT - COUNT ( * ) * + SUM ( - 72 ) FROM tab0, tab2 cor0
----
5832

query I rowsort
SELECT + 0 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT ( SUM( ALL 74 ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6511
SELECT ( SUM ( ALL 74 ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6512
SELECT MAX( col2 ) col0, + 22 AS col2 FROM tab1 WHERE NOT NULL > 50 * - col0
----
NULL
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6512
SELECT MAX ( col2 ) col0, + 22 AS col2 FROM tab1 WHERE NOT NULL > 50 * - col0
----
NULL
22

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

skipif mysql # not compatible
query II rowsort label-6513
SELECT 62 AS col1, COUNT ( DISTINCT + col0 ) AS col1 FROM tab2
----
62
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT - + SUM( + col0 ) / - ( - - 67 ) FROM tab1 cor0 WHERE NOT col1 + col2 * + 97 / + col2 + col1 * - col0 NOT BETWEEN NULL AND + ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6515
SELECT - + SUM ( + col0 ) / - ( - - 67 ) FROM tab1 cor0 WHERE NOT col1 + col2 * + 97 / + col2 + col1 * - col0 NOT BETWEEN NULL AND + ( col1 )
----
NULL

query I rowsort
SELECT ( - - col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT ALL - COUNT( * ) + 71 - - - 23 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-6518
SELECT ALL - COUNT ( * ) + 71 - - - 23 FROM tab1 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query II rowsort label-6519
SELECT + COUNT( * ) AS col0, - 80 * + 47 AS col2 FROM tab1 AS cor0
----
3
-3760

skipif mysql # not compatible
query II rowsort label-6519
SELECT + COUNT ( * ) AS col0, - 80 * + 47 AS col2 FROM tab1 AS cor0
----
3
-3760

query I rowsort
SELECT ALL + ( col2 ) * col1 + + col1 * col1 FROM tab2 AS cor0
----
3774
8375
9009

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

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

query I rowsort
SELECT DISTINCT - col1 + + 23 FROM tab0 AS cor0
----
-58
2
22

query I rowsort
SELECT ALL + - 22 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-22
-22
-22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6524
SELECT ALL - CAST( col2 AS SIGNED ) DIV + 8 + - + col2 - - - col0 * - 12 FROM tab2
----
527
723
835

skipif mysql # not compatible
query I rowsort label-6524
SELECT ALL - CAST ( col2 AS INTEGER ) / + 8 + - + col2 - - - col0 * - 12 FROM tab2
----
527
723
835

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6525
SELECT DISTINCT + ( - CAST( - 3 AS SIGNED ) ) * - col1 * - + col0 FROM tab1
----
1275
12831
2142

skipif mysql # not compatible
query I rowsort label-6525
SELECT DISTINCT + ( - CAST ( - 3 AS INTEGER ) ) * - col1 * - + col0 FROM tab1
----
1275
12831
2142

query I rowsort
SELECT col1 * + + ( + 50 ) FROM tab0
----
1050
4050
50

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

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

query II rowsort
SELECT 43 * col1 AS col1, - col1 FROM tab1
----
2021
-47
215
-5
602
-14

query I rowsort
SELECT DISTINCT + 60 * + col2 FROM tab0
----
2820
5940
600

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT + ( + MAX( ALL 52 ) ) * - 91 AS col2 FROM tab0
----
-4732

skipif mysql # not compatible
query I rowsort label-6530
SELECT + ( + MAX ( ALL 52 ) ) * - 91 AS col2 FROM tab0
----
-4732

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 * - col2 col1 FROM tab1
----
-4956
-5712
-8064

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - + col0 + + 53 * - - col1 col1 FROM tab0 AS cor0
----
-43
1047
4359

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 WHERE NULL >= col0
----

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

query I rowsort
SELECT - 89 * + + 97 AS col2 FROM tab0
----
-8633
-8633
-8633

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT 86 * + MAX( DISTINCT - + col1 ) + COUNT( * ) FROM tab1 AS cor0
----
-427

skipif mysql # not compatible
query I rowsort label-6537
SELECT 86 * + MAX ( DISTINCT - + col1 ) + COUNT ( * ) FROM tab1 AS cor0
----
-427

onlyif mysql # DIV for integer division: 
query I rowsort label-6538
SELECT + 39 DIV - ( - col2 ) AS col1 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6538
SELECT + 39 / - ( - col2 ) AS col1 FROM tab0 AS cor0
----
0
0
3

query I rowsort
SELECT - - 55 * - + col2 - - col1 + 17 FROM tab1 AS cor0
----
-3223
-3676
-5249

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 col0 FROM tab1 WHERE + 9 <= + - col1
----

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

query I rowsort
SELECT ( - 33 ) AS col2 FROM tab1
----
-33
-33
-33

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

query I rowsort
SELECT DISTINCT - - 86 AS col0 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT + - 78 * - 19 + COUNT( * ) FROM tab1 AS cor0
----
1485

skipif mysql # not compatible
query I rowsort label-6546
SELECT + - 78 * - 19 + COUNT ( * ) FROM tab1 AS cor0
----
1485

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

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

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

skipif mysql # not compatible
query I rowsort label-6548
SELECT ALL 61 * + + ( + + COUNT ( * ) ) FROM tab0
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT - MIN( ALL col2 ) - - 55 FROM tab0 WHERE NOT + 46 + - col0 - 68 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6549
SELECT - MIN ( ALL col2 ) - - 55 FROM tab0 WHERE NOT + 46 + - col0 - 68 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT DISTINCT 20 + - COUNT( * ) * + 24 - + 28 FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT 20 + - COUNT ( * ) * + 24 - + 28 FROM tab0 AS cor0
----
-80

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

query II rowsort
SELECT DISTINCT + col1 AS col2, col0 * + col0 FROM tab0 AS cor0
----
1
9409
21
7569
81
225

query I rowsort
SELECT ALL + - 48 + + col1 AS col2 FROM tab1 AS cor0
----
-1
-34
-43

query I rowsort
SELECT DISTINCT - + col1 + 46 FROM tab2 AS cor0
----
-21
-31
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 * - 42 col0 FROM tab1 AS cor0
----
-1386

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

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

query I rowsort
SELECT + col2 + + - 79 FROM tab0
----
-32
-69
20

query I rowsort
SELECT DISTINCT + 87 * ( + 12 ) FROM tab2
----
1044

query I rowsort
SELECT - col0 FROM tab2 WHERE NULL BETWEEN - col2 AND ( NULL )
----

query I rowsort
SELECT - col0 + - col2 * - col2 FROM tab0
----
13
2194
9704

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

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

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

skipif mysql # not compatible
query I rowsort label-6563
SELECT - COUNT ( - col2 ) AS col0 FROM tab2 WHERE ( NOT NULL IS NOT NULL )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6564
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) IN ( - col0, - 15 )
----

skipif mysql # not compatible
query III rowsort label-6564
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IN ( - col0, - 15 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + col1 = - 49 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

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

query I rowsort
SELECT DISTINCT + col1 * col1 + + 45 + - ( + + col1 ) * 0 FROM tab0 AS cor0
----
46
486
6606

query I rowsort
SELECT - 91 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT + SUM( DISTINCT - 62 ) FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-6570
SELECT + SUM ( DISTINCT - 62 ) FROM tab0 AS cor0
----
-62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT - - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6572
SELECT - - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6574
SELECT col0, - CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
15
-15
87
-87
97
-97

skipif mysql # not compatible
query II rowsort label-6574
SELECT col0, - CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT DISTINCT 53 * - - col0 AS col0 FROM tab2
----
2438
3392
3975

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

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

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT - col0 * - + 1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT DISTINCT 63 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-6579
SELECT DISTINCT 63 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
189

query II rowsort
SELECT DISTINCT ( + col0 ) AS col0, col1 * col1 FROM tab0
----
15
6561
87
441
97
1

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 INNER JOIN tab1 AS cor1 ON NOT NULL IS NULL
----

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

query I rowsort
SELECT ALL + col2 * - col2 + col0 + + col0 FROM tab0 AS cor0
----
-2179
-9607
74

onlyif mysql # aggregate syntax: 
query II rowsort label-6584
SELECT DISTINCT MIN( ALL - 68 ) - + MAX( + + col2 ) AS col0, COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
-164
3

skipif mysql # not compatible
query II rowsort label-6584
SELECT DISTINCT MIN ( ALL - 68 ) - + MAX ( + + col2 ) AS col0, COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
-164
3

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

skipif mysql # not compatible
query I rowsort label-6585
SELECT ALL - CAST ( + 69 AS INTEGER ) FROM tab0
----
-69
-69
-69

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col2 <> - col2 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT 33 - - COUNT( * ) + - 17 * - COUNT( * ) col2 FROM tab0
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6587
SELECT 33 - - COUNT ( * ) + - 17 * - COUNT ( * ) col2 FROM tab0
----
87

query I rowsort
SELECT DISTINCT - col2 - + - 45 + + col2 + + + ( + col0 ) FROM tab1
----
130
136
96

query I rowsort
SELECT DISTINCT - col2 * + - col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT + 16 * + col1 + col1 FROM tab0 AS cor0
----
1377
17
357

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE + col0 / + col1 NOT IN ( - 6, col1, + 61 )
----
23
40
58

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6592
SELECT col1 / + 92 * + col2 col1 FROM tab1
----
0
0
0

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

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

query I rowsort
SELECT 33 + + + 35 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 63 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 72 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6596
SELECT ALL COUNT( * ) AS col0, MIN( + - col1 ) AS col0 FROM tab1
----
3
-47

skipif mysql # not compatible
query II rowsort label-6596
SELECT ALL COUNT ( * ) AS col0, MIN ( + - col1 ) AS col0 FROM tab1
----
3
-47

query II rowsort
SELECT ALL col2 AS col0, + 13 * + - 86 AS col0 FROM tab2
----
23
-1118
40
-1118
58
-1118

query II rowsort
SELECT ALL + col2 * col1, + col0 AS col2 FROM tab1 AS cor0
----
1344
51
295
85
3196
91

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

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

query I rowsort
SELECT - ( col2 ) * - + col2 / - col0 + col0 / - ( + 91 ) FROM tab1 cor0 WHERE NOT + ( + - 17 ) <> + col2 + - col2
----

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

query I rowsort
SELECT ( + col2 ) * + - col2 FROM tab1 cor0
----
-3481
-4624
-9216

query I rowsort
SELECT ALL 90 * + col1 * + ( + col1 ) * + 48 + + 5 AS col1 FROM tab0 AS cor0
----
1905125
28343525
4325

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6604
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col1, 75 + + col2 FROM tab2 AS cor0
----
NULL
115
NULL
133
NULL
98

skipif mysql # not compatible
query II rowsort label-6604
SELECT DISTINCT CAST ( NULL AS REAL ) AS col1, 75 + + col2 FROM tab2 AS cor0
----
NULL
115
NULL
133
NULL
98

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

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

query I rowsort
SELECT DISTINCT + col2 * - col0 + + - 78 AS col0 FROM tab1 AS cor0
----
-4974
-5093
-6266

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

query I rowsort
SELECT DISTINCT + ( + 13 ) * col2 AS col0 FROM tab1
----
1248
767
884

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + 10 / + col2 + - col2 + + col0 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * + col0 * + col2 AS col0 FROM tab2
----
102400
24334
252300

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * - 93 * + 76 + + col2 <= ( + col0 ) * - col1 - - - col0
----

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6615
SELECT + CAST( - - 32 AS SIGNED ) AS col0, + COUNT( * ) FROM tab1 AS cor0
----
32
3

skipif mysql # not compatible
query II rowsort label-6615
SELECT + CAST ( - - 32 AS INTEGER ) AS col0, + COUNT ( * ) FROM tab1 AS cor0
----
32
3

query I rowsort
SELECT ALL + col2 * + col0 + + + col0 FROM tab0 cor0
----
720
957
9700

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

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

query I rowsort
SELECT DISTINCT + + 38 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
38

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6620
SELECT ALL COUNT( * ) DIV - + 13 AS col1 FROM tab1
----
0

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

query I rowsort
SELECT 3 * + + col1 FROM tab2
----
153
201
231

onlyif mysql # aggregate syntax: 
query II rowsort label-6622
SELECT DISTINCT - COUNT( * ), 74 AS col0 FROM tab0
----
-3
74

skipif mysql # not compatible
query II rowsort label-6622
SELECT DISTINCT - COUNT ( * ), 74 AS col0 FROM tab0
----
-3
74

query II rowsort
SELECT DISTINCT col1, col2 - - + col0 AS col2 FROM tab0
----
1
196
21
97
81
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT ALL + 83 * 18 + - MIN( DISTINCT + col2 ) FROM tab2 AS cor0
----
1471

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL + 83 * 18 + - MIN ( DISTINCT + col2 ) FROM tab2 AS cor0
----
1471

query I rowsort
SELECT - col0 + + 2 FROM tab1 AS cor0
----
-49
-83
-89

query I rowsort
SELECT - col0 * - 99 - 42 + 67 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT col1 * - + col1 + col0 AS col0 FROM tab1 AS cor0
----
-145
-2118
60

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT 79 + COUNT( DISTINCT col1 ) FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-6632
SELECT 79 + COUNT ( DISTINCT col1 ) FROM tab2
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT DISTINCT MAX( ALL - - ( + ( - col2 ) ) ) + - SUM( 89 ) AS col1 FROM tab2
----
-290

skipif mysql # not compatible
query I rowsort label-6633
SELECT DISTINCT MAX ( ALL - - ( + ( - col2 ) ) ) + - SUM ( 89 ) AS col1 FROM tab2
----
-290

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6636
SELECT DISTINCT MAX( - col2 ) AS col0 FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-6636
SELECT DISTINCT MAX ( - col2 ) AS col0 FROM tab1 cor0
----
-59

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6638
SELECT DISTINCT - 58 * 44 DIV + 62 + + + COUNT( * ) AS col2 FROM tab0 WHERE + col0 IS NOT NULL
----
-38

skipif mysql # not compatible
query I rowsort label-6638
SELECT DISTINCT - 58 * 44 / + 62 + + + COUNT ( * ) AS col2 FROM tab0 WHERE + col0 IS NOT NULL
----
-38

query III rowsort
SELECT ALL 70 AS col2, + col0 * - col1, + - col1 AS col0 FROM tab1
----
9 values hashing to 826d0fcf4ef9d1b816aa519de542d6d8

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT DISTINCT ( + - MIN( + 0 ) ) * - 66 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6640
SELECT DISTINCT ( + - MIN ( + 0 ) ) * - 66 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + + col1 * + - 23 + 27 + - ( - - ( + + 86 ) ) FROM tab0 AS cor0
----
-1922
-542
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-6642
SELECT DISTINCT 76 DIV col0 AS col1 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT 76 / col0 AS col1 FROM tab2 cor0
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 35 AND 67 - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6644
SELECT CAST( NULL AS SIGNED ) AS col2, MAX( DISTINCT 90 ) FROM tab0 AS cor0
----
NULL
90

skipif mysql # not compatible
query II rowsort label-6644
SELECT CAST ( NULL AS INTEGER ) AS col2, MAX ( DISTINCT 90 ) FROM tab0 AS cor0
----
NULL
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT MIN( DISTINCT - col1 ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6645
SELECT MIN ( DISTINCT - col1 ) FROM tab0 cor0
----
-81

query I rowsort
SELECT DISTINCT - - 17 / - + 83 AS col2 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - 44 + + col2 + - col2 col0 FROM tab2 AS cor0
----
-2244
-2948
-3388

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = 13 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT - MAX( + 33 ) FROM tab1 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-6650
SELECT - MAX ( + 33 ) FROM tab1 cor0
----
-33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT DISTINCT - + COUNT( + ( - col0 ) ) AS col0 FROM tab1 WHERE NOT NULL > + + col1 * - + 71
----
0

skipif mysql # not compatible
query I rowsort label-6652
SELECT DISTINCT - + COUNT ( + ( - col0 ) ) AS col0 FROM tab1 WHERE NOT NULL > + + col1 * - + 71
----
0

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 16 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + - 39 FROM tab0 cor0 WHERE ( NULL IN ( - - 65, col1 ) )
----

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

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

query I rowsort
SELECT DISTINCT 8 + + - col2 FROM tab1 AS cor0
----
-51
-60
-88

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

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

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

query I rowsort
SELECT + 13 * col0 FROM tab1
----
1105
1183
663

query I rowsort
SELECT 21 * - + col1 AS col2 FROM tab0
----
-1701
-21
-441

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6662
SELECT - - COUNT( * ) DIV - 42 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6662
SELECT - - COUNT ( * ) / - 42 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6663
SELECT + 53 DIV - 50 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6663
SELECT + 53 / - 50 FROM tab0 cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6664
SELECT DISTINCT + + col2 DIV ( + col2 ) + - 25 col1 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6664
SELECT DISTINCT + + col2 / ( + col2 ) + - 25 col1 FROM tab2 AS cor0
----
-24

onlyif mysql # DIV for integer division: 
query II rowsort label-6665
SELECT DISTINCT + + col2 DIV 5 AS col2, col1 FROM tab0 AS cor0
----
19
1
2
21
9
81

skipif mysql # not compatible
query II rowsort label-6665
SELECT DISTINCT + + col2 / 5 AS col2, col1 FROM tab0 AS cor0
----
19
1
2
21
9
81

query I rowsort
SELECT ALL + + col1 * - 12 AS col0 FROM tab0 AS cor0 WHERE NOT col0 BETWEEN + col0 AND + - col1
----
-12
-252
-972

query I rowsort
SELECT ALL - ( - col2 ) * - + col0 + + col0 AS col2 FROM tab1 AS cor0
----
-4845
-4930
-6097

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col2 col2 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-6670
SELECT ALL 84 - + COUNT( * ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-6670
SELECT ALL 84 - + COUNT ( * ) AS col1 FROM tab0
----
81

query I rowsort
SELECT + col1 * - col1 * + - 5 - - + 22 * - col2 FROM tab1
----
-1132
-1173
9549

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT ALL - ( - + 13 ) * COUNT( * ) AS col2 FROM tab0, tab1 cor0
----
117

skipif mysql # not compatible
query I rowsort label-6672
SELECT ALL - ( - + 13 ) * COUNT ( * ) AS col2 FROM tab0, tab1 cor0
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT + + MIN( - 6 ) FROM tab0 WHERE ( NOT ( - col0 ) IS NULL )
----
-6

skipif mysql # not compatible
query I rowsort label-6673
SELECT + + MIN ( - 6 ) FROM tab0 WHERE ( NOT ( - col0 ) IS NULL )
----
-6

query I rowsort
SELECT DISTINCT col2 - 55 - col2 FROM tab2
----
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-6675
SELECT 8 DIV 51 + - 83 * col2 col1 FROM tab2
----
-1909
-3320
-4814

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6675
SELECT 8 / 51 + - 83 * col2 col1 FROM tab2
----
-1909
-3320
-4814

query I rowsort
SELECT 17 + 69 FROM tab1
----
86
86
86

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6679
SELECT ALL + CAST( 72 AS SIGNED ) AS col1 FROM tab2 cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-6679
SELECT ALL + CAST ( 72 AS INTEGER ) AS col1 FROM tab2 cor0
----
72
72
72

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 - col0 <= 48
----

query I rowsort
SELECT ( col1 ) - 14 FROM tab2
----
37
53
63

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

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

query I rowsort
SELECT DISTINCT + 16 * + ( col0 ) AS col1 FROM tab2 WHERE ( 25 ) IS NOT NULL
----
1024
1200
736

query I rowsort
SELECT 81 - col1 FROM tab1
----
34
67
76

query I rowsort
SELECT + 5 AS col1 FROM tab1 WHERE ( + col2 * + 11 - - 29 ) IN ( col1 )
----

query I rowsort
SELECT + col2 * col0 - - 37 AS col2 FROM tab2 WHERE NULL BETWEEN NULL AND col2 / + 99
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 90 / 4 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6690
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) + + MAX( ALL 66 ) AS col0 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-6690
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) + + MAX ( ALL 66 ) AS col0 FROM tab2
----
63

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT - ( MAX( ALL col1 ) ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-6692
SELECT - ( MAX ( ALL col1 ) ) AS col0 FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6693
SELECT ALL + col1 + col2 FROM tab2 WHERE NOT - col2 >= CAST( + col1 AS SIGNED ) * - col2
----

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL + col1 + col2 FROM tab2 WHERE NOT - col2 >= CAST ( + col1 AS INTEGER ) * - col2
----

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

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

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

query I rowsort
SELECT - col0 AS col1 FROM tab2 WHERE ( - 64 ) IS NULL
----

query I rowsort
SELECT + col0 * 42 + + 77 AS col2 FROM tab0
----
3731
4151
707

query I rowsort
SELECT 66 * 68 AS col0 FROM tab1
----
4488
4488
4488

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT DISTINCT + SUM( - col0 ) AS col2 FROM tab1 WHERE ( col1 + col0 * ( 29 * + 0 ) ) IS NOT NULL
----
-227

skipif mysql # not compatible
query I rowsort label-6699
SELECT DISTINCT + SUM ( - col0 ) AS col2 FROM tab1 WHERE ( col1 + col0 * ( 29 * + 0 ) ) IS NOT NULL
----
-227

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT 89 + - COUNT( col0 ) AS col2 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-6701
SELECT 89 + - COUNT ( col0 ) AS col2 FROM tab2
----
86

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

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

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

query I rowsort
SELECT ALL - 6 + - col2 FROM tab1 AS cor0
----
-102
-65
-74

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

query I rowsort
SELECT ALL 5 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 AND - 6 * + col2
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT 52 * - COUNT( * ) AS col0 FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-6710
SELECT 52 * - COUNT ( * ) AS col0 FROM tab1
----
-156

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6712
SELECT DISTINCT MAX( - CAST( - 85 AS SIGNED ) ) FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-6712
SELECT DISTINCT MAX ( - CAST ( - 85 AS INTEGER ) ) FROM tab1
----
85

query I rowsort
SELECT - col2 - 42 FROM tab1
----
-101
-110
-138

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6714
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - col0 + + col1 AND 80 * CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6714
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - col0 + + col1 AND 80 * CAST ( - col0 AS INTEGER )
----

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

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

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN NULL AND + 55 - + col0
----
15
87
97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6718
SELECT - + col1 DIV 60 + 58 AS col0 FROM tab0 cor0
----
57
58
58

skipif mysql # not compatible
query I rowsort label-6718
SELECT - + col1 / 60 + 58 AS col0 FROM tab0 cor0
----
57
58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6719
SELECT DISTINCT - 29 + - col2 DIV - col2 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-6719
SELECT DISTINCT - 29 + - col2 / - col2 FROM tab1 AS cor0
----
-28

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * - 89 + 69 * + col0 IS NOT NULL
----

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

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

query I rowsort
SELECT - col1 + 94 * col2 FROM tab1 AS cor0
----
5541
6345
9010

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 > NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6726
SELECT ALL col2 + - CAST( - 71 AS SIGNED ) * - col2 FROM tab1
----
-4130
-4760
-6720

skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL col2 + - CAST ( - 71 AS INTEGER ) * - col2 FROM tab1
----
-4130
-4760
-6720

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col1 * - col0 ) >= NULL
----

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

query I rowsort
SELECT - - 7 + - 85 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT col2 + - 35 FROM tab1 WHERE NOT ( - + ( + 48 ) ) NOT BETWEEN - 85 AND ( NULL )
----

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

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

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

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

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

query II rowsort
SELECT DISTINCT + 61, col0 AS col0 FROM tab0 AS cor0
----
61
15
61
87
61
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6737
SELECT - + COUNT( * ) * - 8 AS col1 FROM tab2 cor0
----
24

skipif mysql # not compatible
query I rowsort label-6737
SELECT - + COUNT ( * ) * - 8 AS col1 FROM tab2 cor0
----
24

query I rowsort
SELECT + 94 * - + ( - 41 ) * - col1 + 19 * + col0 AS col0 FROM tab1 AS cor0
----
-17655
-179409
-52987

query I rowsort
SELECT DISTINCT 75 + 1 FROM tab0 AS cor0 WHERE col1 * + col0 BETWEEN ( NULL ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6740
SELECT ALL + col2 DIV + col2 + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
60
69
97

skipif mysql # not compatible
query I rowsort label-6740
SELECT ALL + col2 / + col2 + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
60
69
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT ALL - 80 * + COUNT( * ) * + 93 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-22323

skipif mysql # not compatible
query I rowsort label-6742
SELECT ALL - 80 * + COUNT ( * ) * + 93 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-22323

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6743
SELECT ALL col1 FROM tab2 cor0 WHERE 53 / CAST( + col2 AS SIGNED ) BETWEEN - col2 / 40 AND ( + col1 * col0 )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6743
SELECT ALL col1 FROM tab2 cor0 WHERE 53 / CAST ( + col2 AS INTEGER ) BETWEEN - col2 / 40 AND ( + col1 * col0 )
----
51
67
77

query I rowsort
SELECT ALL 35 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 AND 37 * ( col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT DISTINCT SUM( - col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT SUM ( - col2 ) AS col0 FROM tab2
----
-121

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * - 65 - + 99 NOT BETWEEN + 36 + col0 AND 56
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 * + col0 BETWEEN NULL AND 35
----

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

query I rowsort
SELECT ALL + col0 * - + 48 FROM tab2
----
-2208
-3072
-3600

query I rowsort
SELECT ALL - col2 * + col2 * - 28 FROM tab1
----
129472
258048
97468

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL BETWEEN - col1 AND 48 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6753
SELECT COUNT( * ) DIV - 62 * - 57 col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6753
SELECT COUNT ( * ) / - 62 * - 57 col0 FROM tab0 AS cor0
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6754
SELECT + MAX ( ALL + col1 ) col0 FROM tab2 AS cor0
----
77

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 / + - col2 col1 FROM tab2 AS cor0 WHERE - 6 BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT - ( - + 59 ) FROM tab0
----
59
59
59

query I rowsort
SELECT ALL col2 - - + col2 AS col0 FROM tab0
----
198
20
94

query I rowsort
SELECT ( + - 61 ) AS col0 FROM tab1
----
-61
-61
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-6761
SELECT DISTINCT col0 DIV - col0 AS col0 FROM tab1 WHERE NOT + 80 < - 27
----
-1

skipif mysql # not compatible
query I rowsort label-6761
SELECT DISTINCT col0 / - col0 AS col0 FROM tab1 WHERE NOT + 80 < - 27
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6762
SELECT - col2 AS col1, - 99 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-6762
SELECT - col2 AS col1, - 99 + + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
-23
NULL
-40
NULL
-58
NULL

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

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

query I rowsort
SELECT ALL - col0 * - 61 + - col0 FROM tab2 AS cor0
----
2760
3840
4500

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6767
SELECT 0 - 75 + + 76 / CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6767
SELECT 0 - 75 + + 76 / CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 77 + - col0 AS col1, col2 * - - 56 * - col2 FROM tab2
----
13
-89600
2
-188384
31
-29624

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6770
SELECT COUNT( * ) AS col1, 45 FROM tab1
----
3
45

skipif mysql # not compatible
query II rowsort label-6770
SELECT COUNT ( * ) AS col1, 45 FROM tab1
----
3
45

query I rowsort
SELECT DISTINCT 43 * + - col1 FROM tab2
----
-2193
-2881
-3311

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6772
SELECT ALL MAX( + 73 ) DIV + - COUNT( * ) - + + 78 * + + ( - + 92 ) FROM tab1
----
7152

skipif mysql # not compatible
query I rowsort label-6772
SELECT ALL MAX ( + 73 ) / + - COUNT ( * ) - + + 78 * + + ( - + 92 ) FROM tab1
----
7152

query II rowsort
SELECT DISTINCT + col0, - col2 + + - 45 FROM tab0
----
15
-92
87
-55
97
-144

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE ( - - 57 ) BETWEEN ( NULL ) AND col1
----

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6777
SELECT DISTINCT + MAX( - - CAST( - + 56 AS DECIMAL ) ) * 88 + 13 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6777
SELECT DISTINCT + MAX ( - - CAST ( - + 56 AS REAL ) ) * 88 + 13 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

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

query I rowsort
SELECT + 90 + + 4 FROM tab1 AS cor0 WHERE NOT + 65 <> ( NULL )
----

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT col2 / - + col0 * + - 37 >= NULL
----

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

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

query I rowsort
SELECT DISTINCT 93 + - + 33 AS col1 FROM tab0 AS cor0 WHERE col1 - + + 99 + col1 = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6785
SELECT 25 - MAX( - col0 ) FROM tab1 WHERE col2 NOT IN ( - - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6785
SELECT 25 - MAX ( - col0 ) FROM tab1 WHERE col2 NOT IN ( - - col2 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6786
SELECT - col2 * + 76 + + col2 DIV + - 75 + + col0 * - ( + - col1 ) FROM tab0
----
-2357
-7428
1067

skipif mysql # not compatible
query I rowsort label-6786
SELECT - col2 * + 76 + + col2 / + - 75 + + col0 * - ( + - col1 ) FROM tab0
----
-2357
-7428
1067

query I rowsort
SELECT - col2 + - col1 * - - col2 - - + col1 + + 53 AS col0 FROM tab1
----
-1373
-296
-3164

query I rowsort
SELECT 47 + + col2 AS col2 FROM tab0
----
146
57
94

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

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

query I rowsort
SELECT - col1 - col2 FROM tab2 WHERE NULL IS NULL
----
-117
-125
-74

query I rowsort
SELECT ALL - col1 * + 86 AS col1 FROM tab0
----
-1806
-6966
-86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6792
SELECT ALL * FROM tab2 WHERE NOT col0 + + 8 NOT BETWEEN + CAST( NULL AS SIGNED ) AND col1
----

skipif mysql # not compatible
query III rowsort label-6792
SELECT ALL * FROM tab2 WHERE NOT col0 + + 8 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND col1
----

query I rowsort
SELECT ALL - + col0 + 19 AS col0 FROM tab2 AS cor0
----
-27
-45
-56

query I rowsort
SELECT - 58 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to de0811e670e75d2aeeb657e32bddb0c0

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6795
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 40 * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-6795
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 40 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT col1 - col0 * 56 AS col0 FROM tab0
----
-4851
-5431
-759

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6800
SELECT ( 26 ) DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-6800
SELECT ( 26 ) / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
8

query I rowsort
SELECT - + 20 * + - col2 + - col2 AS col1 FROM tab0 AS cor0
----
1881
190
893

query I rowsort
SELECT - 71 * - 44 AS col0 FROM tab0 AS cor0
----
3124
3124
3124

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT + SUM( DISTINCT + col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-6805
SELECT + SUM ( DISTINCT + col0 ) AS col1 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT ALL + MAX( DISTINCT + + 72 ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-6806
SELECT ALL + MAX ( DISTINCT + + 72 ) FROM tab0
----
72

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT + SUM( DISTINCT + 65 ) FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-6808
SELECT + SUM ( DISTINCT + 65 ) FROM tab0 AS cor0
----
65

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

query I rowsort
SELECT DISTINCT + - 14 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-14

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

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

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

query I rowsort
SELECT ALL 62 + + col0 AS col0 FROM tab1 AS cor0
----
113
147
153

query I rowsort
SELECT ALL - 7 + + + col2 AS col1 FROM tab2 AS cor0
----
16
33
51

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

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

query II rowsort
SELECT col0 * + 26 AS col1, col0 AS col1 FROM tab2
----
1196
46
1664
64
1950
75

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

query I rowsort
SELECT DISTINCT + ( - 49 ) FROM tab1
----
-49

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

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

query II rowsort
SELECT + col0 + - col1, col1 AS col0 FROM tab1
----
37
14
44
47
80
5

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

skipif mysql # not compatible
query I rowsort label-6822
SELECT - CAST ( NULL AS REAL ) + + COUNT ( * ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - 94 + + 23 + + 73 * + + col2 AS col1 FROM tab1 AS cor0
----
4236
4893
6937

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - 13 * + + col2 AND NULL
----

query II rowsort
SELECT + col1 + - col1 * - 38 AS col0, - 91 FROM tab2 AS cor0
----
1989
-91
2613
-91
3003
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6826
SELECT DISTINCT + CAST( - - 83 AS SIGNED ) FROM tab2 AS cor0 WHERE - col2 >= NULL
----

skipif mysql # not compatible
query I rowsort label-6826
SELECT DISTINCT + CAST ( - - 83 AS INTEGER ) FROM tab2 AS cor0 WHERE - col2 >= NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6829
SELECT CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0 WHERE NOT + 65 / - col1 BETWEEN - col1 AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6829
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NOT + 65 / - col1 BETWEEN - col1 AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6830
SELECT ALL col0 DIV + 43 FROM tab1 AS cor0 WHERE NOT - col0 * - col1 * - + 71 = + - col2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL col0 / + 43 FROM tab1 AS cor0 WHERE NOT - col0 * - col1 * - + 71 = + - col2
----
1
1
2

query II rowsort
SELECT DISTINCT + + col1 AS col2, ( + - 74 ) AS col2 FROM tab2 AS cor0
----
51
-74
67
-74
77
-74

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

query I rowsort
SELECT ALL + col2 * - col0 - + - col1 AS col1 FROM tab1 AS cor0
----
-4882
-5010
-6141

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

query I rowsort
SELECT ALL + col1 * 46 FROM tab0 AS cor0
----
3726
46
966

query I rowsort
SELECT - 90 FROM tab1 WHERE NOT - col2 * - col1 = col2 * - col0
----
-90
-90
-90

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

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

query I rowsort
SELECT ( - 62 ) FROM tab2
----
-62
-62
-62

query I rowsort
SELECT ALL - col0 * - - ( + col1 ) FROM tab1
----
-425
-4277
-714

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6842
SELECT ALL + SUM( - ( CAST( NULL AS SIGNED ) ) ) * 90 AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6842
SELECT ALL + SUM ( - ( CAST ( NULL AS INTEGER ) ) ) * 90 AS col2 FROM tab2 cor0
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE - 39 + + + 73 + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6845
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE - 39 + + + 73 + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6846
SELECT SUM( + 30 ) DIV - 86 + 92 FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-6846
SELECT SUM ( + 30 ) / - 86 + 92 FROM tab0 AS cor0
----
91

query I rowsort
SELECT + - col1 + 41 - col1 * + 13 AS col2 FROM tab1 cor0
----
-155
-29
-617

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT DISTINCT + 20 + + + COUNT( * ) col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6848
SELECT DISTINCT + 20 + + + COUNT ( * ) col0 FROM tab2 AS cor0
----
23

query I rowsort
SELECT 25 + ( + col2 ) FROM tab2 AS cor0
----
48
65
83

query I rowsort
SELECT - col0 + 33 + - + col2 FROM tab1 AS cor0
----
-111
-114
-126

query I rowsort
SELECT ALL - col0 + - 0 + + + col1 * + col1 FROM tab1
----
-60
145
2118

onlyif mysql # aggregate syntax: 
query I rowsort label-6852
SELECT DISTINCT + 49 + - MAX( ALL + + col0 ) AS col0 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-6852
SELECT DISTINCT + 49 + - MAX ( ALL + + col0 ) AS col0 FROM tab1
----
-42

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

query I rowsort
SELECT ALL + 23 + + col2 FROM tab2
----
46
63
81

query III rowsort
SELECT * FROM tab0 WHERE - ( + ( - ( + col0 ) ) ) = col0 * 69
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab2 WHERE + - col1 >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT DISTINCT SUM( + ( + 87 ) ) * MIN( DISTINCT col0 ) - + SUM( + + 89 ) AS col0 FROM tab1
----
13044

skipif mysql # not compatible
query I rowsort label-6857
SELECT DISTINCT SUM ( + ( + 87 ) ) * MIN ( DISTINCT col0 ) - + SUM ( + + 89 ) AS col0 FROM tab1
----
13044

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6858
SELECT + CAST ( + + col1 AS INTEGER ) col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
47
5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6860
SELECT ALL - COUNT( col0 ) AS col2, - 47 * - - SUM( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-6860
SELECT ALL - COUNT ( col0 ) AS col2, - 47 * - - SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
-3
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 17 BETWEEN - col1 AND + ( - 13 ) - - 6
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6862
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + + col1 + - + ( + - CAST( + col2 AS DECIMAL ) ) / col0, 17, - col1 * + 51 + + col2 )
----

skipif mysql # not compatible
query III rowsort label-6862
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + + col1 + - + ( + - CAST ( + col2 AS REAL ) ) / col0, 17, - col1 * + 51 + + col2 )
----

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

query I rowsort
SELECT ALL + ( - 40 ) AS col1 FROM tab0 AS cor0
----
-40
-40
-40

query I rowsort
SELECT + - 81 * - - col0 FROM tab1 AS cor0
----
-4131
-6885
-7371

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6866
SELECT + MAX( ALL - 60 ) * CAST( + AVG ( ALL + ( CAST( + col2 AS DECIMAL ) ) ) AS SIGNED ) FROM tab2 AS cor0
----
-2400

skipif mysql # not compatible
query I rowsort label-6866
SELECT + MAX ( ALL - 60 ) * CAST ( + AVG ( ALL + ( CAST ( + col2 AS REAL ) ) ) AS INTEGER ) FROM tab2 AS cor0
----
-2400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6867
SELECT ALL + col2 * + col0 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

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

query I rowsort
SELECT - col0 * - 47 - + - col1 FROM tab2 AS cor0
----
2213
3085
3592

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col2 > - col0
----

query I rowsort
SELECT DISTINCT - 79 AS col0 FROM tab1
----
-79

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + col1, + col2, + col0 * + 40 - + col2 )
----

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

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL 48 * - 48 * ( + COUNT ( * ) ) FROM tab0
----
-6912

onlyif mysql # DIV for integer division: 
query I rowsort label-6873
SELECT DISTINCT - col0 * 8 DIV - - col1 FROM tab2 AS cor0
----
-6
-7
-8

skipif mysql # not compatible
query I rowsort label-6873
SELECT DISTINCT - col0 * 8 / - - col1 FROM tab2 AS cor0
----
-6
-7
-8

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

query I rowsort
SELECT ALL + 41 * + 96 FROM tab1 AS cor0
----
3936
3936
3936

query I rowsort
SELECT DISTINCT + 11 * - 9 AS col2 FROM tab0 AS cor0
----
-99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT + + SUM( ALL - + col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-6878
SELECT + + SUM ( ALL - + col0 ) AS col1 FROM tab0 AS cor0
----
-199

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN col1 * - col0 / 10 - 38 + - 50 AND ( - col1 - + - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + + - col2 AS col0, col0 + - 64 col0 FROM tab1 cor0
----
-21
27
-54
21
-82
-13

query I rowsort
SELECT DISTINCT - + col0 + - col0 * col1 AS col2 FROM tab0 AS cor0
----
-1230
-1914
-194

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 < + ( + col0 )
----
85
5
59
91
47
68

query I rowsort
SELECT ALL + col1 - + 20 FROM tab1
----
-15
-6
27

query III rowsort
SELECT * FROM tab1 WHERE ( 36 * col2 ) < col0
----

query I rowsort
SELECT ALL col2 + col0 + - col1 AS col1 FROM tab2
----
18
27
66

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

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

query I rowsort
SELECT col0 + + col1 * 66 AS col2 FROM tab1
----
3193
415
975

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT 8 + + COUNT( 36 ) AS col2 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-6889
SELECT 8 + + COUNT ( 36 ) AS col2 FROM tab2
----
11

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT 47 * + + COUNT( * ) + + + ( - 68 ) AS col2 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-6891
SELECT 47 * + + COUNT ( * ) + + + ( - 68 ) AS col2 FROM tab0 AS cor0
----
73

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + - 31 + - ( + + col2 ) col2 FROM tab1 AS cor0
----
-141
-146
-95

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

query II rowsort
SELECT 10, + col1 FROM tab2
----
10
51
10
67
10
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6898
SELECT COUNT( * ) DIV - 83 AS col1 FROM tab1
----
0

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

query I rowsort
SELECT - 11 * - - 45 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 05f2f003c72ec3f1116bc54e810b933f

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

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 AS cor0 WHERE ( - 42 ) + + 35 NOT IN ( + + col2 + - col1 )
----
51
67
77

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6904
SELECT ALL + CAST( NULL AS DECIMAL ) col0, - ( + MIN( DISTINCT - col2 ) ) col2 FROM tab2 AS cor0
----
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6904
SELECT ALL + CAST ( NULL AS REAL ) col0, - ( + MIN ( DISTINCT - col2 ) ) col2 FROM tab2 AS cor0
----
NULL
58

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6905
SELECT DISTINCT + - SUM ( DISTINCT col0 ) col2 FROM tab1 AS cor0
----
-227

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT ALL MIN( col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6909
SELECT ALL MIN ( col1 ) AS col0 FROM tab0
----
1

query I rowsort
SELECT DISTINCT - col0 * + col2 + col0 AS col2 FROM tab2 AS cor0
----
-1012
-2496
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT DISTINCT - COUNT( * ) + MAX( col1 ) AS col0 FROM tab1 cor0
----
44

skipif mysql # not compatible
query I rowsort label-6911
SELECT DISTINCT - COUNT ( * ) + MAX ( col1 ) AS col0 FROM tab1 cor0
----
44

query I rowsort
SELECT ALL + col1 + ( - + col0 ) AS col1 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT ALL - MAX( ALL 12 ) AS col0 FROM tab1 WHERE NOT 39 NOT BETWEEN NULL AND - ( - + 27 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6913
SELECT ALL - MAX ( ALL 12 ) AS col0 FROM tab1 WHERE NOT 39 NOT BETWEEN NULL AND - ( - + 27 )
----
NULL

query I rowsort
SELECT 68 * - - col2 AS col2 FROM tab2
----
1564
2720
3944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6915
SELECT DISTINCT + + CAST( NULL AS SIGNED ) - - + ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT + ( + col2 ) <> - + 14 AND col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6915
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) - - + ( - col2 ) AS col2 FROM tab1 AS cor0 WHERE NOT + ( + col2 ) <> - + 14 AND col0 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6917
SELECT ALL - CAST( - + col1 AS SIGNED ) * + col1 * - + 54, col0 FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-6917
SELECT ALL - CAST ( - + col1 AS INTEGER ) * + col1 * - + 54, col0 FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT + - 37 * ( col1 ) + + col2 + col1 * + col2 FROM tab2 AS cor0
----
-691
1465
271

query I rowsort
SELECT + col1 + 73 AS col0 FROM tab2 AS cor0
----
124
140
150

query I rowsort
SELECT DISTINCT + col0 + - 92 AS col1 FROM tab1 AS cor0
----
-1
-41
-7

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

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

query I rowsort
SELECT DISTINCT col1 + + - 96 AS col0 FROM tab0
----
-15
-75
-95

query I rowsort
SELECT ALL - 25 * + - 55 * + - 57 FROM tab0 WHERE ( - ( + col0 ) + 7 IS NULL )
----

query I rowsort
SELECT - - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> col2 + 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT DISTINCT - 71 * - - 71 + MAX( + col0 ) * + 49 + + + 38 FROM tab0 AS cor0
----
-250

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT - 71 * - - 71 + MAX ( + col0 ) * + 49 + + + 38 FROM tab0 AS cor0
----
-250

onlyif mysql # aggregate syntax: 
query I rowsort label-6926
SELECT DISTINCT + COUNT( * ) FROM tab2 cor0 WHERE NOT + 76 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6926
SELECT DISTINCT + COUNT ( * ) FROM tab2 cor0 WHERE NOT + 76 BETWEEN NULL AND NULL
----
0

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

query I rowsort
SELECT - - ( - 50 ) * - col0 * + 63 * + col2 AS col2 FROM tab2 AS cor0
----
13702500
3332700
8064000

onlyif mysql # DIV for integer division: 
query I rowsort label-6929
SELECT ALL + 37 DIV - 26 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6929
SELECT ALL + 37 / - 26 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col2 * - 98 AS col2 FROM tab1 AS cor0
----
-5782
-6664
-9408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6931
SELECT + - MAX( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 >= NULL
----

query I rowsort
SELECT + col1 * + - col0 FROM tab0 WHERE NOT 54 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 38 NOT BETWEEN col2 - + col0 AND col0 + - 55 / col1
----

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6936
SELECT DISTINCT CAST( + col0 AS SIGNED ) DIV col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1
17
3

skipif mysql # not compatible
query I rowsort label-6936
SELECT DISTINCT CAST ( + col0 AS INTEGER ) / col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
1
17
3

query II rowsort
SELECT ALL - col0, 75 AS col1 FROM tab2
----
-46
75
-64
75
-75
75

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 + - col0 = 78 + 74 + col0 * col0 - 18
----

query II rowsort
SELECT - col2 AS col1, 45 FROM tab1
----
-59
45
-68
45
-96
45

query II rowsort
SELECT DISTINCT - + 30, 87 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-30
87

query I rowsort
SELECT ALL 77 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + - col1 AS col0, col2 col0 FROM tab2
----
-28
23
-37
40
-9
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT - SUM( col1 ) * 16 FROM tab0 AS cor0
----
-1648

skipif mysql # not compatible
query I rowsort label-6946
SELECT - SUM ( col1 ) * 16 FROM tab0 AS cor0
----
-1648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 + + 93 col2, 54 + + col2 AS col2 FROM tab2 AS cor0
----
144
77
160
112
170
94

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

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

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

query I rowsort
SELECT DISTINCT + col1 - - col1 - + 6 * + col1 AS col1 FROM tab0
----
-324
-4
-84

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6953
SELECT ALL col0 DIV 30 AS col0 FROM tab1 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL col0 / 30 AS col0 FROM tab1 cor0
----
1
2
3

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6956
SELECT DISTINCT - 50 * - + ( - - SUM( - 64 ) ) AS col1 FROM tab0 AS cor0
----
-9600

skipif mysql # not compatible
query I rowsort label-6956
SELECT DISTINCT - 50 * - + ( - - SUM ( - 64 ) ) AS col1 FROM tab0 AS cor0
----
-9600

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

query I rowsort
SELECT ALL col1 + + 69 FROM tab2 AS cor0
----
120
136
146

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6959
SELECT ALL CAST( + col0 AS SIGNED ), 49 * + col0 * - + col1 AS col0 FROM tab1 AS cor0
----
51
-34986
85
-20825
91
-209573

skipif mysql # not compatible
query II rowsort label-6959
SELECT ALL CAST ( + col0 AS INTEGER ), 49 * + col0 * - + col1 AS col0 FROM tab1 AS cor0
----
51
-34986
85
-20825
91
-209573

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6960
SELECT - - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN NULL AND NULL
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6962
SELECT ALL + 72 * CAST( + + AVG ( + col2 ) AS SIGNED ) FROM tab2
----
2880

skipif mysql # not compatible
query I rowsort label-6962
SELECT ALL + 72 * CAST ( + + AVG ( + col2 ) AS INTEGER ) FROM tab2
----
2880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) + + col1 col1 FROM tab0
----
108
96
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6964
SELECT col2 DIV - + col1 + - - 6 col2 FROM tab2
----
6
6
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6964
SELECT col2 / - + col1 + - - 6 col2 FROM tab2
----
6
6
6

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6966
SELECT + + 36 DIV - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6966
SELECT + + 36 / - col0 FROM tab1 AS cor0
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-6967
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + COUNT ( ALL - 63 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6968
SELECT - CAST( - - 49 AS SIGNED ) + - col1 AS col2 FROM tab0 AS cor0
----
-130
-50
-70

skipif mysql # not compatible
query I rowsort label-6968
SELECT - CAST ( - - 49 AS INTEGER ) + - col1 AS col2 FROM tab0 AS cor0
----
-130
-50
-70

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 = - + 59
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6972
SELECT - 33 * - + col2 - col2 DIV - - 78 + - - col1 FROM tab1 AS cor0
----
1952
2291
3181

skipif mysql # not compatible
query I rowsort label-6972
SELECT - 33 * - + col2 - col2 / - - 78 + - - col1 FROM tab1 AS cor0
----
1952
2291
3181

query I rowsort
SELECT - col2 FROM tab1 WHERE col0 IS NOT NULL
----
-59
-68
-96

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

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT MAX( 94 ) AS col0 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-6976
SELECT MAX ( 94 ) AS col0 FROM tab1
----
94

query I rowsort
SELECT ALL 60 + + col2 + + - 4 * 72 AS col2 FROM tab2 WHERE NOT + + col2 IS NULL
----
-170
-188
-205

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6979
SELECT DISTINCT 89 * - COUNT( * ) FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-6979
SELECT DISTINCT 89 * - COUNT ( * ) FROM tab2
----
-267

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

query I rowsort
SELECT ALL - col1 * + + col1 * + ( 22 ) FROM tab2 AS cor0
----
-130438
-57222
-98758

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6984
SELECT COUNT( * ) AS col0, 21 - 12 * - ( - + 41 ) + + + 49 FROM tab2 AS cor0
----
3
-422

skipif mysql # not compatible
query II rowsort label-6984
SELECT COUNT ( * ) AS col0, 21 - 12 * - ( - + 41 ) + + + 49 FROM tab2 AS cor0
----
3
-422

onlyif mysql # DIV for integer division: 
query I rowsort label-6985
SELECT col2 DIV - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6985
SELECT col2 / - col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

query I rowsort
SELECT ALL + col2 + + + col0 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT - 47 * ( + COUNT( * ) ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-6987
SELECT - 47 * ( + COUNT ( * ) ) FROM tab1
----
-141

query I rowsort
SELECT ALL - col0 * - ( + 51 ) AS col0 FROM tab0
----
4437
4947
765

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) * col2 col1 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6990
SELECT - COUNT( * ) * 91 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-6990
SELECT - COUNT ( * ) * 91 FROM tab1
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT - + MAX( DISTINCT + col2 ) + + 39 AS col0 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-6991
SELECT - + MAX ( DISTINCT + col2 ) + + 39 AS col0 FROM tab0 AS cor0
----
-60

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

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

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

skipif mysql # not compatible
query I rowsort label-6994
SELECT ALL + col2 / + + col2 AS col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6995
SELECT CAST( NULL AS SIGNED ) - 85 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6995
SELECT CAST ( NULL AS INTEGER ) - 85 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab0 WHERE + + 82 * - - col1 <= ( + 33 )
----

query I rowsort
SELECT ALL - + 60 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

onlyif mysql # DIV for integer division: 
query I rowsort label-6998
SELECT DISTINCT col2 DIV - 23 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-6998
SELECT DISTINCT col2 / - 23 FROM tab2
----
-1
-2

query I rowsort
SELECT 44 * 37 AS col1 FROM tab2
----
1628
1628
1628

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7000
SELECT + 91 * + - CAST( NULL AS DECIMAL ) - + - 22 * 76 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7000
SELECT + 91 * + - CAST ( NULL AS REAL ) - + - 22 * 76 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 - - - ( - col0 ) AS col2 FROM tab0 AS cor0
----
108
96
98

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 * 0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col2 <= + col1 - col1 * 2 * - col2 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL + col2 AS col1, 43 * - col2 * - col1 AS col0, col2 * - - ( + + 68 ) + - - 83 + + 78 AS col0 FROM tab2
----
9 values hashing to 6bec6125ceb0e847218b5fdb3a35f1ba

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7006
SELECT col1 * - CAST( - - col0 AS SIGNED ) AS col1 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-7006
SELECT col1 * - CAST ( - - col0 AS INTEGER ) AS col1 FROM tab1
----
-425
-4277
-714

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - col0 col1 FROM tab0
----
705
870
9603

query II rowsort
SELECT DISTINCT col1, 6 FROM tab0
----
1
6
21
6
81
6

query II rowsort
SELECT col2 * - - col0, col0 FROM tab1
----
4896
51
5015
85
6188
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7011
SELECT ALL 5 col2 FROM tab1 WHERE NOT + 60 - + CAST( - col1 AS DECIMAL ) + 25 + - + col0 * - - 3 < - 79 + + col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7011
SELECT ALL 5 col2 FROM tab1 WHERE NOT + 60 - + CAST ( - col1 AS REAL ) + 25 + - + col0 * - - 3 < - 79 + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + - 88 - - - col1, col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT ALL + + 1 * MIN( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7014
SELECT ALL + + 1 * MIN ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT - + SUM( DISTINCT + - col1 ) + + MAX( ALL - + ( - + 69 ) ) FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-7016
SELECT - + SUM ( DISTINCT + - col1 ) + + MAX ( ALL - + ( - + 69 ) ) FROM tab1 AS cor0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT DISTINCT + 95 + + + COUNT( * ) + COUNT( * ) col2 FROM tab2 AS cor0
----
101

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7017
SELECT DISTINCT + 95 + + + COUNT ( * ) + COUNT ( * ) col2 FROM tab2 AS cor0
----
101

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

query II rowsort
SELECT ALL - col1 + - 91 AS col0, col2 AS col2 FROM tab0 AS cor0
----
-112
10
-172
47
-92
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 * col1 + + col0 col1 FROM tab1
----
-275
-3293
-957

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT COUNT( * ) + + - 36 AS col0 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-7021
SELECT COUNT ( * ) + + - 36 AS col0 FROM tab1
----
-33

onlyif mysql # aggregate syntax: 
query II rowsort label-7022
SELECT ALL + ( 40 ) * - COUNT( * ) + - 25 col0, 66 FROM tab2
----
-145
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7022
SELECT ALL + ( 40 ) * - COUNT ( * ) + - 25 col0, 66 FROM tab2
----
-145
66

query I rowsort
SELECT ALL - - 5 FROM tab1 WHERE NOT NULL <> - - col0 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7024
SELECT ALL CAST( NULL AS SIGNED ) / - 41 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7024
SELECT ALL CAST ( NULL AS INTEGER ) / - 41 FROM tab1
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT ALL - MIN( DISTINCT 4 ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-7026
SELECT ALL - MIN ( DISTINCT 4 ) FROM tab0
----
-4

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

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

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

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

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

query I rowsort
SELECT - 94 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query I rowsort
SELECT - ( + col2 ) * + 24 FROM tab0 AS cor0
----
-1128
-2376
-240

query I rowsort
SELECT + + 87 * 30 AS col2 FROM tab1 AS cor0
----
2610
2610
2610

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + 69 * + col0 * - col1 < col1
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7036
SELECT - 72 DIV - ( + + ( + ( + + ( + ( + COUNT( * ) ) ) ) ) ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7036
SELECT - 72 / - ( + + ( + ( + + ( + ( + COUNT ( * ) ) ) ) ) ) FROM tab1 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 36 * + col2, 43 col1 FROM tab0 AS cor0
----
1692
43
3564
43
360
43

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7039
SELECT ( - - ( 12 ) ) DIV - - ( + + col0 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7039
SELECT ( - - ( 12 ) ) / - - ( + + col0 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7040
SELECT DISTINCT COUNT( DISTINCT 55 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7040
SELECT DISTINCT COUNT ( DISTINCT 55 ) FROM tab1
----
1

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7043
SELECT - COUNT( * ) col0, - 66 FROM tab1 AS cor0
----
-3
-66

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

query I rowsort
SELECT + + col1 * + + col1 * + col2 AS col1 FROM tab2 AS cor0
----
237160
260362
59823

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

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

query I rowsort
SELECT ALL + col0 * + col1 FROM tab1 cor0 WHERE NULL IS NULL
----
425
4277
714

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT DISTINCT - MIN( - 86 ) AS col0 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-7048
SELECT DISTINCT - MIN ( - 86 ) AS col0 FROM tab2
----
86

query I rowsort
SELECT ALL col1 + + 33 AS col1 FROM tab1
----
38
47
80

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7051
SELECT ALL * FROM tab0 cor0 WHERE - CAST( + + 51 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-7051
SELECT ALL * FROM tab0 cor0 WHERE - CAST ( + + 51 AS INTEGER ) <= NULL
----

query II rowsort
SELECT 92 AS col0, + 94 FROM tab1 AS cor0
----
92
94
92
94
92
94

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

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

query I rowsort
SELECT 90 FROM tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT - col0 + + 69 AS col0 FROM tab1
----
-16
-22
18

query II rowsort
SELECT 94 - col1, + col0 * + 40 AS col0 FROM tab1
----
47
3640
80
2040
89
3400

onlyif mysql # aggregate syntax: 
query I rowsort label-7057
SELECT - MAX( - col1 ) FROM tab0 WHERE NULL IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-7057
SELECT - MAX ( - col1 ) FROM tab0 WHERE NULL IS NULL
----
1

query I rowsort
SELECT - ( - + col0 ) * - + col1 * - col2 + + ( - col2 ) AS col2 FROM tab1
----
25016
290768
68448

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 66 NOT IN ( 20 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7061
SELECT * FROM tab1 AS cor0 WHERE 52 * col2 + + + 39 * - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) + ( - col1 ) * - 11 / - col2 * - 41 < + col2
----

skipif mysql # not compatible
query III rowsort label-7061
SELECT * FROM tab1 AS cor0 WHERE 52 * col2 + + + 39 * - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) + ( - col1 ) * - 11 / - col2 * - 41 < + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, - col0 col0 FROM tab0
----
15
-15
87
-87
97
-97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + + 66 col2 FROM tab1
----
3366
5610
6006

query II rowsort
SELECT ALL 74 AS col2, col0 - + 11 AS col1 FROM tab1 AS cor0
----
74
40
74
74
74
80

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 = col2 * + 42 * 36 + + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 27 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = - + col1
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7070
SELECT col1, - CAST( + - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
99
21
10
81
47

skipif mysql # not compatible
query II rowsort label-7070
SELECT col1, - CAST ( + - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7071
SELECT - 46 DIV + + COUNT( * ) FROM tab2 AS cor0
----
-15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7072
SELECT + + COUNT( * ) + + + 4 FROM tab2 WHERE NOT 41 IS NOT NULL
----
4

skipif mysql # not compatible
query I rowsort label-7072
SELECT + + COUNT ( * ) + + + 4 FROM tab2 WHERE NOT 41 IS NOT NULL
----
4

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

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

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

skipif mysql # not compatible
query I rowsort label-7074
SELECT ALL MAX ( 66 ) AS col0 FROM tab2
----
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT ALL + MIN( ALL - col1 ) FROM tab0 WHERE - - col2 <> - col2
----
-81

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL + MIN ( ALL - col1 ) FROM tab0 WHERE - - col2 <> - col2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT - MIN( - 98 ) FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-7077
SELECT - MIN ( - 98 ) FROM tab2
----
98

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

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

query I rowsort
SELECT DISTINCT + col2 + + - col1 * col1 FROM tab0 AS cor0
----
-431
-6514
98

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

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

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

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

query I rowsort
SELECT DISTINCT + - ( - 93 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
93

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

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

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

query I rowsort
SELECT DISTINCT + col2 + - 63 AS col1 FROM tab2 AS cor0
----
-23
-40
-5

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 68 IN ( + col1, 32 + col0 * + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT ALL 32 + + SUM( ALL - 36 ) + + 63 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-7089
SELECT ALL 32 + + SUM ( ALL - 36 ) + + 63 FROM tab0 AS cor0
----
-13

query I rowsort
SELECT + + col0 + - + 28 FROM tab0 cor0
----
-13
59
69

query I rowsort
SELECT col1 * + 2 + - col1 FROM tab1 AS cor0
----
14
47
5

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 19 * col1 + - + 60 col1 FROM tab0 WHERE 38 - - col1 * - 79 + + col0 IS NULL
----

query I rowsort
SELECT ALL 78 + - - 0 AS col2 FROM tab1
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 30 col0, - col0 FROM tab2
----
-30
-46
-30
-64
-30
-75

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 - - col0 col1 FROM tab1 AS cor0
----
129
163
169

query I rowsort
SELECT + 84 - + col1 AS col1 FROM tab1 AS cor0
----
37
70
79

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

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

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

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

query I rowsort
SELECT DISTINCT + 3 * - - col0 AS col0 FROM tab0
----
261
291
45

onlyif mysql # aggregate syntax: 
query II rowsort label-7107
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) col1, + 94 col0 FROM tab1 AS cor0
----
-9
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7107
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) col1, + 94 col0 FROM tab1 AS cor0
----
-9
94

query I rowsort
SELECT ALL - 22 * - col0 AS col1 FROM tab1 cor0
----
1122
1870
2002

query I rowsort
SELECT ALL + col2 * - col2 * - 99 FROM tab1 AS cor0
----
344619
457776
912384

query I rowsort
SELECT DISTINCT + col1 * - - 4 * col1 AS col1 FROM tab1 AS cor0
----
100
784
8836

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL IN ( + col1, col2, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7112
SELECT 62 * COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-7112
SELECT 62 * COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
189

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7114
SELECT DISTINCT - COUNT( * ) AS col1, + SUM( 52 ) + - + COUNT( * ) AS col2 FROM tab1
----
-3
153

skipif mysql # not compatible
query II rowsort label-7114
SELECT DISTINCT - COUNT ( * ) AS col1, + SUM ( 52 ) + - + COUNT ( * ) AS col2 FROM tab1
----
-3
153

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7116
SELECT - col2 DIV - - col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7116
SELECT - col2 / - - col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT + 75 * - + col2 + + col0 + - col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + + col0 col2 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # DIV for integer division: 
query I rowsort label-7120
SELECT - col2 + col1 DIV - 37 FROM tab0
----
-10
-49
-99

skipif mysql # not compatible
query I rowsort label-7120
SELECT - col2 + col1 / - 37 FROM tab0
----
-10
-49
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7121
SELECT + col0 * CAST( 31 AS SIGNED ) FROM tab0
----
2697
3007
465

skipif mysql # not compatible
query I rowsort label-7121
SELECT + col0 * CAST ( 31 AS INTEGER ) FROM tab0
----
2697
3007
465

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT DISTINCT + MIN( DISTINCT - col1 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-77

skipif mysql # not compatible
query I rowsort label-7122
SELECT DISTINCT + MIN ( DISTINCT - col1 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
-77

query I rowsort
SELECT + col1 - 2 FROM tab1
----
12
3
45

onlyif mysql # DIV for integer division: 
query I rowsort label-7124
SELECT DISTINCT 63 + - col2 DIV 73 FROM tab1 WHERE + col1 - col1 IS NOT NULL
----
62
63

skipif mysql # not compatible
query I rowsort label-7124
SELECT DISTINCT 63 + - col2 / 73 FROM tab1 WHERE + col1 - col1 IS NOT NULL
----
62
63

query I rowsort
SELECT - 31 * + 42 AS col1 FROM tab1
----
-1302
-1302
-1302

query III rowsort
SELECT * FROM tab1 WHERE ( - 46 ) NOT IN ( col0 + 38 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7127
SELECT * FROM tab0 WHERE CAST( + col2 AS SIGNED ) - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7127
SELECT * FROM tab0 WHERE CAST ( + col2 AS INTEGER ) - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7128
SELECT MAX( 74 ) AS col2 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-7128
SELECT MAX ( 74 ) AS col2 FROM tab2
----
74

query I rowsort
SELECT - 84 AS col0 FROM tab0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT ALL - COUNT( * ) * 4 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-7130
SELECT ALL - COUNT ( * ) * 4 FROM tab1
----
-12

query I rowsort
SELECT ALL - 25 * - 88 FROM tab1
----
2200
2200
2200

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7132
SELECT DISTINCT - COUNT( + 25 ) DIV + 78 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7132
SELECT DISTINCT - COUNT ( + 25 ) / + 78 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 90 NOT IN ( 54 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7134
SELECT + 14 DIV COUNT( * ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-7134
SELECT + 14 / COUNT ( * ) FROM tab2
----
4

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

query I rowsort
SELECT ALL + 88 / 61 AS col0 FROM tab0 WHERE - 8 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7137
SELECT - 4 DIV - col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7137
SELECT - 4 / - col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT 15 + + 92 FROM tab0
----
107

query I rowsort
SELECT + col1 * 72 FROM tab0
----
1512
5832
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7140
SELECT DISTINCT + MAX( + col1 ) * 70 FROM tab2
----
5390

skipif mysql # not compatible
query I rowsort label-7140
SELECT DISTINCT + MAX ( + col1 ) * 70 FROM tab2
----
5390

query I rowsort
SELECT DISTINCT + 47 - - col0 * + col0 FROM tab1 WHERE ( col0 ) IS NOT NULL
----
2648
7272
8328

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT + 4 * + COUNT( * ) FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-7143
SELECT + 4 * + COUNT ( * ) FROM tab2
----
12

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

query I rowsort
SELECT - 94 * col0 AS col2 FROM tab1
----
-4794
-7990
-8554

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 - 52 col1 FROM tab2 WHERE NOT col1 IS NULL
----
1548
3312
477

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

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

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

skipif mysql # not compatible
query I rowsort label-7148
SELECT + COUNT ( * ) + 49 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT DISTINCT MIN( ALL - 39 ) AS col0 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-7150
SELECT DISTINCT MIN ( ALL - 39 ) AS col0 FROM tab1 AS cor0
----
-39

query I rowsort
SELECT + 92 - - 5 / - col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 * + 24 IS NOT NULL
----

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

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

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

query I rowsort
SELECT 7 FROM tab1 cor0 CROSS JOIN tab2
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT + col0 * - col2 FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL - 56 AS col0 FROM tab2 WHERE NULL NOT BETWEEN ( col2 ) * + 63 AND col0 * 99
----

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

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( 31 + - ( col0 ) * col1 ) < - 52
----

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

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

query I rowsort
SELECT + ( col2 ) * + 40 AS col1 FROM tab2 AS cor0
----
1600
2320
920

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT DISTINCT - 4 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-7161
SELECT DISTINCT - 4 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
12

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7163
SELECT ALL CAST( NULL AS DECIMAL ) * - COUNT( * ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7163
SELECT ALL CAST ( NULL AS REAL ) * - COUNT ( * ) FROM tab2 cor0
----
NULL

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + col2 / col1 + + 16 / - col1 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT - col2 / 71 AS col2 FROM tab1 AS cor0
----
-1
0

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

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

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

query I rowsort
SELECT ALL col0 * - col0 FROM tab2 WHERE NOT NULL NOT BETWEEN 52 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7172
SELECT + ( - - ( col2 ) ) DIV col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7172
SELECT + ( - - ( col2 ) ) / col2 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT MAX( DISTINCT 7 ) + - 10 * 86 FROM tab0
----
-853

skipif mysql # not compatible
query I rowsort label-7173
SELECT MAX ( DISTINCT 7 ) + - 10 * 86 FROM tab0
----
-853

onlyif mysql # DIV for integer division: 
query I rowsort label-7174
SELECT - 48 + - - col2 DIV - col2 AS col1 FROM tab2
----
-49
-49
-49

skipif mysql # not compatible
query I rowsort label-7174
SELECT - 48 + - - col2 / - col2 AS col1 FROM tab2
----
-49
-49
-49

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT + col2 > col1 * col2 + col0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT - 66 + 50 - - COUNT( * ) * - 75 AS col1 FROM tab1
----
-241

skipif mysql # not compatible
query I rowsort label-7176
SELECT - 66 + 50 - - COUNT ( * ) * - 75 AS col1 FROM tab1
----
-241

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + 41 + col0 NOT BETWEEN - ( ( col2 ) ) + col2 AND ( col2 )
----
51
14
96

query I rowsort
SELECT 56 + + col1 AS col1 FROM tab1
----
103
61
70

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7181
SELECT + 46 + + COUNT( ALL - col2 ) FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-7181
SELECT + 46 + + COUNT ( ALL - col2 ) FROM tab0
----
49

query I rowsort
SELECT DISTINCT 34 * + - col1 AS col1 FROM tab2
----
-1734
-2278
-2618

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT ALL + COUNT( * ) + + + 79 AS col1 FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-7184
SELECT ALL + COUNT ( * ) + + + 79 AS col1 FROM tab1 AS cor0
----
82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7186
SELECT + - 49 + + ( + 50 ) * COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
401

skipif mysql # not compatible
query I rowsort label-7186
SELECT + - 49 + + ( + 50 ) * COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
401

query I rowsort
SELECT + col1 - - ( - + 71 ) + + col0 FROM tab2
----
26
70
71

query I rowsort
SELECT - - 43 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT ( + 99 ) * 72 FROM tab0, tab1 AS cor0
----
9 values hashing to 02dd0d0c58921e1f3dbabd9e1bc74bde

query I rowsort
SELECT col1 + col1 FROM tab0 AS cor0 WHERE ( + 32 * + 15 ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT - 94 + - 82 + + COUNT( DISTINCT ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-173

skipif mysql # not compatible
query I rowsort label-7192
SELECT - 94 + - 82 + + COUNT ( DISTINCT ( - col1 ) ) AS col1 FROM tab0 AS cor0
----
-173

query I rowsort
SELECT + 98 + 65 FROM tab2 AS cor0
----
163
163
163

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT ALL - + 66 + - + 8 + - COUNT( * ) FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7194
SELECT ALL - + 66 + - + 8 + - COUNT ( * ) FROM tab0 AS cor0
----
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7195
SELECT DISTINCT + CAST( - + COUNT( * ) AS SIGNED ) + + - 59 AS col0 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-7195
SELECT DISTINCT + CAST ( - + COUNT ( * ) AS INTEGER ) + + - 59 AS col0 FROM tab2 AS cor0
----
-62

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

query I rowsort
SELECT + 51 * - + col1 * + col1 * + col0 AS col0 FROM tab0
----
-1956717
-4947
-5019165

query I rowsort
SELECT - col2 * + + ( + col0 ) * - - col2 FROM tab2
----
-102400
-24334
-252300

query I rowsort
SELECT ALL 17 FROM tab1 WHERE NOT ( - col0 + + col1 / col2 ) IS NULL
----
17
17
17

query I rowsort
SELECT ( + - 59 ) FROM tab0
----
-59
-59
-59

query I rowsort
SELECT ALL + 20 * + + col1 + 59 FROM tab0
----
1679
479
79

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - - col2 * + ( + col1 ) )
----

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

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

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

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

query II rowsort
SELECT + 12 AS col2, + 29 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 67879eff6c8d392137c207ce97cb26be

query I rowsort
SELECT DISTINCT + - col0 * 42 FROM tab2 AS cor0
----
-1932
-2688
-3150

query I rowsort
SELECT col0 + col1 FROM tab2 AS cor0 WHERE NOT ( + col0 * col2 ) IS NULL
----
141
142
97

query I rowsort
SELECT ALL - col0 + - 55 + - + col1 + col2 AS col2 FROM tab0 AS cor0
----
-104
-153
-54

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 + + 65 FROM tab1
----
-3
-31
6

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT - + 69 * col0 + + col1 <= 13
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 86 * 95 col1 FROM tab2
----
-8170
-8170
-8170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 89 col2, col2 + + + col0 FROM tab0
----
89
196
89
62
89
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - 71 )
----

query I rowsort
SELECT col0 * + - col2 AS col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7222
SELECT ALL - CAST( + 46 AS SIGNED ) * + col1 FROM tab0
----
-3726
-46
-966

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL - CAST ( + 46 AS INTEGER ) * + col1 FROM tab0
----
-3726
-46
-966

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

query I rowsort
SELECT DISTINCT 33 / + col2 FROM tab1 AS cor0 WHERE 46 + - 54 * + col0 * - + col1 * 93 + col2 IS NULL
----

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

query I rowsort
SELECT - 15 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + + 65 ) col1, - ( + col0 ) AS col2 FROM tab2
----
65
-46
65
-64
65
-75

query II rowsort
SELECT - ( - col2 ) AS col1, - col1 FROM tab0
----
10
-21
47
-81
99
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7229
SELECT ALL + + col2 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + col2 * col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7229
SELECT ALL + + col2 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + col2 * col0 IS NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7230
SELECT DISTINCT COUNT ( * ) col2 FROM tab2 WHERE col0 + + ( - col0 ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7231
SELECT DISTINCT col0 - - col0 * - col0 - - col2 * + ( - - CAST( + col2 AS SIGNED ) ) FROM tab0 AS cor0
----
-7382
1999
489

skipif mysql # not compatible
query I rowsort label-7231
SELECT DISTINCT col0 - - col0 * - col0 - - col2 * + ( - - CAST ( + col2 AS INTEGER ) ) FROM tab0 AS cor0
----
-7382
1999
489

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT ALL - + ( - SUM( ALL + + col0 ) ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-7232
SELECT ALL - + ( - SUM ( ALL + + col0 ) ) FROM tab0 AS cor0
----
199

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

query I rowsort
SELECT - 94 - col1 AS col0 FROM tab2 AS cor0
----
-145
-161
-171

query I rowsort
SELECT DISTINCT + 60 + + col0 AS col1 FROM tab0 AS cor0
----
147
157
75

query I rowsort
SELECT + col0 AS col0 FROM tab0 cor0 WHERE + 63 * + 41 / - 85 >= + 47 * col1 * - col1 + - col2
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col0 * col0 col0 FROM tab0
----
3375
658503
912673

onlyif mysql # DIV for integer division: 
query II rowsort label-7238
SELECT col1 AS col0, + 35 * col1 * col1 + - 21 + col1 - + - col0 DIV - col0 + - 98 * 13 AS col1 FROM tab1
----
14
5578
47
76066
5
-416

skipif mysql # not compatible
query II rowsort label-7238
SELECT col1 AS col0, + 35 * col1 * col1 + - 21 + col1 - + - col0 / - col0 + - 98 * 13 AS col1 FROM tab1
----
14
5578
47
76066
5
-416

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 50 col2, - 25 FROM tab2
----
50
-25
50
-25
50
-25

query I rowsort
SELECT + col0 * - + 96 * + - ( + col0 ) FROM tab1
----
249696
693600
794976

onlyif mysql # aggregate syntax: 
query I rowsort label-7241
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 65 * col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7241
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 65 * col2 IS NOT NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7243
SELECT ALL - 38 AS col2, ( COUNT( * ) ) FROM tab2 AS cor0
----
-38
3

skipif mysql # not compatible
query II rowsort label-7243
SELECT ALL - 38 AS col2, ( COUNT ( * ) ) FROM tab2 AS cor0
----
-38
3

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

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

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

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

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE 7 <> NULL
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 + + col1 * + col2 ) <= 56
----

query I rowsort
SELECT DISTINCT - 70 * - col1 FROM tab1
----
3290
350
980

query I rowsort
SELECT - 74 + + + 59 * + 75 FROM tab0
----
4351
4351
4351

query I rowsort
SELECT + ( - col2 ) + + col0 FROM tab1
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT DISTINCT 32 * + + ( + MIN( col1 ) ) + + MAX( ALL + col2 ) FROM tab1
----
256

skipif mysql # not compatible
query I rowsort label-7253
SELECT DISTINCT 32 * + + ( + MIN ( col1 ) ) + + MAX ( ALL + col2 ) FROM tab1
----
256

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col2 > - 45
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT - COUNT( ALL + col0 ) + + MAX( ALL - 48 ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-7256
SELECT - COUNT ( ALL + col0 ) + + MAX ( ALL - 48 ) AS col2 FROM tab1
----
-51

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

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

query I rowsort
SELECT DISTINCT + col0 + col0 * + col1 + + - 49 * col0 FROM tab2 AS cor0
----
138
1425
1856

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

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

query I rowsort
SELECT + + 95 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 37 - ( col2 ) + + col2 * + 93 + - - col1 col0 FROM tab2
----
2255
3871
5507

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7262
SELECT DISTINCT + 53 + - col2 AS col1, col2 - - + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
-15
NULL
-43
NULL
-6
NULL

skipif mysql # not compatible
query II rowsort label-7262
SELECT DISTINCT + 53 + - col2 AS col1, col2 - - + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-15
NULL
-43
NULL
-6
NULL

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab1 WHERE 75 NOT BETWEEN + 8 AND NULL OR col0 * col2 + + - col1 * + + 59 IS NOT NULL
----
14
47
5

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

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

query I rowsort
SELECT + col2 + + 85 FROM tab2 AS cor0
----
108
125
143

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7269
SELECT DISTINCT - col0 * + - col0 * + - col2 * - ( col2 ) DIV + + col2 + + - 61 + 99 - + 5 AS col0 FROM tab2 AS cor0
----
163873
326283
48701

skipif mysql # not compatible
query I rowsort label-7269
SELECT DISTINCT - col0 * + - col0 * + - col2 * - ( col2 ) / + + col2 + + - 61 + 99 - + 5 AS col0 FROM tab2 AS cor0
----
163873
326283
48701

onlyif mysql # aggregate syntax: 
query II rowsort label-7270
SELECT 91, + COUNT( - ( - + 80 ) ) * - + 65 AS col2 FROM tab0 AS cor0
----
91
-195

skipif mysql # not compatible
query II rowsort label-7270
SELECT 91, + COUNT ( - ( - + 80 ) ) * - + 65 AS col2 FROM tab0 AS cor0
----
91
-195

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

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

query I rowsort
SELECT DISTINCT 44 * + col2 * - col1 * - ( - + 96 ) AS col0 FROM tab2 AS cor0
----
-13009920
-16414464
-4954752

onlyif mysql # DIV for integer division: 
query I rowsort label-7273
SELECT ALL - col2 DIV + ( + 94 ) col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7273
SELECT ALL - col2 / + ( + 94 ) col2 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7274
SELECT ALL 92 DIV - + col0 AS col2 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-7274
SELECT ALL 92 / - + col0 AS col2 FROM tab0
----
-1
-6
0

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

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

query II rowsort
SELECT ALL col0 * col1 AS col0, - col0 - - + 31 AS col2 FROM tab1 AS cor0
----
425
-54
4277
-60
714
-20

query I rowsort
SELECT 40 * + 52 AS col0 FROM tab2 AS cor0
----
2080
2080
2080

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

query I rowsort
SELECT DISTINCT 84 * - - col1 FROM tab0 AS cor0
----
1764
6804
84

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

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

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

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

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

query I rowsort
SELECT DISTINCT 11 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
11

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7285
SELECT + CAST( + + 92 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE CAST( col1 AS SIGNED ) NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7285
SELECT + CAST ( + + 92 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE CAST ( col1 AS INTEGER ) NOT BETWEEN ( NULL ) AND NULL
----

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

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

query II rowsort
SELECT col0, 62 FROM tab2 cor0
----
46
62
64
62
75
62

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

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

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

query I rowsort
SELECT col2 * col1 - col0 FROM tab0
----
123
2
3792

onlyif mysql # aggregate syntax: 
query II rowsort label-7291
SELECT 7 + 68 AS col0, COUNT( - col2 ) FROM tab2
----
75
3

skipif mysql # not compatible
query II rowsort label-7291
SELECT 7 + 68 AS col0, COUNT ( - col2 ) FROM tab2
----
75
3

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7293
SELECT DISTINCT - 89 * + col2 AS col2, + 10 DIV + col0 AS col0 FROM tab0 AS cor0
----
-4183
0
-8811
0
-890
0

skipif mysql # not compatible
query II rowsort label-7293
SELECT DISTINCT - 89 * + col2 AS col2, + 10 / + col0 AS col0 FROM tab0 AS cor0
----
-4183
0
-8811
0
-890
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7296
SELECT ALL - - 43 DIV - - 80 - - + 35 FROM tab1 cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-7296
SELECT ALL - - 43 / - - 80 - - + 35 FROM tab1 cor0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT ( NULL BETWEEN col0 * + + 91 AND + col1 * col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7297
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT ( NULL BETWEEN col0 * + + 91 AND + col1 * col0 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7298
SELECT - SUM( DISTINCT + 13 ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-7298
SELECT - SUM ( DISTINCT + 13 ) FROM tab0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-7299
SELECT ALL - COUNT( * ) col1 FROM tab1, tab2 AS cor0
----
-9

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7301
SELECT ALL COUNT( * ) AS col1, 76 + - COUNT( ALL - 35 ) FROM tab1
----
3
73

skipif mysql # not compatible
query II rowsort label-7301
SELECT ALL COUNT ( * ) AS col1, 76 + - COUNT ( ALL - 35 ) FROM tab1
----
3
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7302
SELECT - MIN( 96 ) AS col1 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7302
SELECT - MIN ( 96 ) AS col1 FROM tab0 AS cor0
----
-96

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7304
SELECT - col1 DIV - 70 + - 60 FROM tab1 AS cor0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-7304
SELECT - col1 / - 70 + - 60 FROM tab1 AS cor0
----
-60
-60
-60

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7306
SELECT DISTINCT - 65 * + col2 + - col2 DIV col1 AS col0 FROM tab1 AS cor0
----
-3846
-4421
-6246

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT - 65 * + col2 + - col2 / col1 AS col0 FROM tab1 AS cor0
----
-3846
-4421
-6246

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7307
SELECT * FROM tab1 AS cor0 WHERE NOT 10 - + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7307
SELECT * FROM tab1 AS cor0 WHERE NOT 10 - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - - col2 * - col0 * - col1 + col1 - + col2, - col2 * + col0 - - ( - col1 ) AS col0 FROM tab1 AS cor0
----
25021
-5020
290815
-6235
68462
-4910

query I rowsort
SELECT 55 / 30 FROM tab2 cor0 WHERE NOT + ( + 64 ) NOT BETWEEN ( - col0 ) AND - 74 + - + col1
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT 1 IN ( col2, 2 * - col1 )
----
15
87
97

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7312
SELECT DISTINCT + col0 AS col0, - CAST( NULL AS SIGNED ) col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

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

query I rowsort
SELECT col1 * + 46 FROM tab2
----
2346
3082
3542

query I rowsort
SELECT col1 * + 68 FROM tab0
----
1428
5508
68

query III rowsort
SELECT * FROM tab2 WHERE NOT 31 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7316
SELECT col2 AS col2, ( - CAST( + - 79 AS SIGNED ) ) * - col2 FROM tab1
----
59
-4661
68
-5372
96
-7584

skipif mysql # not compatible
query II rowsort label-7316
SELECT col2 AS col2, ( - CAST ( + - 79 AS INTEGER ) ) * - col2 FROM tab1
----
59
-4661
68
-5372
96
-7584

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

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

query I rowsort
SELECT ALL col1 * col0 + - + col2 - - 24 / col2 * col1 FROM tab2 WHERE NOT + 99 + - + 58 + - 67 + + 79 IS NOT NULL
----

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

query I rowsort
SELECT ALL 75 * 44 * - + 36 FROM tab1
----
-118800
-118800
-118800

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7322
SELECT ALL + 54 DIV + col2 + col0 AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7322
SELECT ALL + 54 / + col2 + col0 AS col0 FROM tab1 AS cor0
----
51
85
91

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

skipif mysql # not compatible
query II rowsort label-7323
SELECT ALL + - 63, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-63
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7326
SELECT + CAST( NULL AS SIGNED ) * - + col1 AS col2, 14 AS col0 FROM tab2
----
NULL
14
NULL
14
NULL
14

skipif mysql # not compatible
query II rowsort label-7326
SELECT + CAST ( NULL AS INTEGER ) * - + col1 AS col2, 14 AS col0 FROM tab2
----
NULL
14
NULL
14
NULL
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7327
SELECT ALL * FROM tab2 WHERE CAST( NULL AS SIGNED ) NOT IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-7327
SELECT ALL * FROM tab2 WHERE CAST ( NULL AS INTEGER ) NOT IN ( col2 )
----

query I rowsort
SELECT ALL + 52 * - - col0 FROM tab2
----
2392
3328
3900

query I rowsort
SELECT DISTINCT col2 * - - col0 * + 73 FROM tab2 AS cor0
----
186880
317550
77234

onlyif mysql # DIV for integer division: 
query I rowsort label-7330
SELECT - col1 + + - 27 + - - 44 DIV + col2 AS col2 FROM tab2 AS cor0
----
-103
-77
-94

skipif mysql # not compatible
query I rowsort label-7330
SELECT - col1 + + - 27 + - - 44 / + col2 AS col2 FROM tab2 AS cor0
----
-103
-77
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7331
SELECT COUNT( * ) + SUM( + col0 ) FROM tab1 AS cor0
----
230

skipif mysql # not compatible
query I rowsort label-7331
SELECT COUNT ( * ) + SUM ( + col0 ) FROM tab1 AS cor0
----
230

query I rowsort
SELECT DISTINCT + 52 * + col2 + + col1 AS col2 FROM tab0 cor0
----
2525
5149
541

onlyif mysql # DIV for integer division: 
query I rowsort label-7333
SELECT 53 + - col2 DIV - - 76 + + 4 FROM tab2 cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-7333
SELECT 53 + - col2 / - - 76 + + 4 FROM tab2 cor0
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7334
SELECT ALL - 18 * CAST( - 51 AS SIGNED ) + + col2 AS col1 FROM tab2 AS cor0
----
941
958
976

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL - 18 * CAST ( - 51 AS INTEGER ) + + col2 AS col1 FROM tab2 AS cor0
----
941
958
976

query II rowsort
SELECT + 99 + - col1 AS col2, - col0 * - 88 AS col1 FROM tab2 AS cor0
----
22
5632
32
6600
48
4048

query I rowsort
SELECT 22 + - + 42 FROM tab1 AS cor0
----
-20
-20
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7337
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > CAST( - + col2 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7337
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > CAST ( - + col2 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT ALL ( + MAX( DISTINCT + 39 ) ) + + 49 AS col1 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-7338
SELECT ALL ( + MAX ( DISTINCT + 39 ) ) + + 49 AS col1 FROM tab1 AS cor0
----
88

query I rowsort
SELECT - ( - col1 ) + - - col0 FROM tab2
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 48 - col1 col0 FROM tab2
----
-19
-29
-3

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

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

query I rowsort
SELECT DISTINCT 48 - + col1 FROM tab1
----
1
34
43

query II rowsort
SELECT ALL + col2 AS col1, + ( col1 ) * - col2 * 86 + + - 14 * - 63 AS col2 FROM tab0
----
10
-17178
47
-326520
99
-7632

query III rowsort
SELECT * FROM tab2 WHERE NULL > - col2
----

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7348
SELECT + ( SUM( - col2 ) ) - - 53 + - 76 + + 75 FROM tab0 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-7348
SELECT + ( SUM ( - col2 ) ) - - 53 + - 76 + + 75 FROM tab0 AS cor0
----
-104

query I rowsort
SELECT - ( + 0 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE 64 IS NOT NULL
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 / + - 35 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT ALL - 39 * + col0 AS col2 FROM tab2 AS cor0
----
-1794
-2496
-2925

query I rowsort
SELECT ALL + + AVG ( DISTINCT - + 88 ) * 50 FROM tab0 AS cor0 WHERE NOT NULL < col0
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7357
SELECT col2 DIV + 61 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7357
SELECT col2 / + 61 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7358
SELECT + + col1 AS col0 FROM tab1 WHERE NOT NULL BETWEEN CAST( NULL AS SIGNED ) AND - col0
----

skipif mysql # not compatible
query I rowsort label-7358
SELECT + + col1 AS col0 FROM tab1 WHERE NOT NULL BETWEEN CAST ( NULL AS INTEGER ) AND - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7359
SELECT DISTINCT * FROM tab1 WHERE NOT + + 34 / + col1 NOT IN ( - + col0 / col0, + CAST( NULL AS DECIMAL ), - col0, + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7359
SELECT DISTINCT * FROM tab1 WHERE NOT + + 34 / + col1 NOT IN ( - + col0 / col0, + CAST ( NULL AS REAL ), - col0, + CAST ( NULL AS REAL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 39 * + - col2 col1 FROM tab0
----
-1833
-3861
-390

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

skipif mysql # not compatible
query I rowsort label-7361
SELECT MIN ( - col2 ) FROM tab0 AS cor0
----
-99

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN - + col1 AND + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT + COUNT( * ) * - - MAX( DISTINCT + 9 ) FROM tab2 cor0
----
27

skipif mysql # not compatible
query I rowsort label-7364
SELECT + COUNT ( * ) * - - MAX ( DISTINCT + 9 ) FROM tab2 cor0
----
27

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7369
SELECT DISTINCT 61 - + - COUNT( * ) FROM tab0, tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-7369
SELECT DISTINCT 61 - + - COUNT ( * ) FROM tab0, tab0 AS cor0
----
70

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7372
SELECT COUNT ( * ) * - 5 FROM tab1 AS cor0
----
-15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * - + col2 IS NULL
----

query I rowsort
SELECT DISTINCT 72 * - col2 + + col2 AS col2 FROM tab1 AS cor0
----
-4189
-4828
-6816

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

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

query I rowsort
SELECT - + col1 FROM tab0 AS cor0 WHERE - col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7378
SELECT ALL * FROM tab0 AS cor0 WHERE 16 BETWEEN CAST( - col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7378
SELECT ALL * FROM tab0 AS cor0 WHERE 16 BETWEEN CAST ( - col0 AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7379
SELECT ALL col1 + + 62 DIV + col1 FROM tab2
----
52
67
77

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL col1 + + 62 / + col1 FROM tab2
----
52
67
77

query I rowsort
SELECT + col2 FROM tab1 WHERE + + 3 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 - - col1 - col1 * 61 col1 FROM tab1
----
1804
3181
8376

query II rowsort
SELECT DISTINCT + col2 - col1 AS col1, + col0 FROM tab0
----
-11
87
-34
15
98
97

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

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

skipif mysql # not compatible
query I rowsort label-7384
SELECT DISTINCT - MAX ( - + 43 ) AS col1 FROM tab2
----
43

query I rowsort
SELECT + 9 + - col0 FROM tab0
----
-6
-78
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-7386
SELECT ALL - col2 DIV - 49 - col2 AS col0 FROM tab2
----
-23
-40
-57

skipif mysql # not compatible
query I rowsort label-7386
SELECT ALL - col2 / - 49 - col2 AS col0 FROM tab2
----
-23
-40
-57

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

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

query I rowsort
SELECT - col2 + - 22 FROM tab2 AS cor0
----
-45
-62
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-7389
SELECT DISTINCT + col0 * - - col2 - col0 DIV col0 AS col1 FROM tab1 AS cor0
----
4895
5014
6187

skipif mysql # not compatible
query I rowsort label-7389
SELECT DISTINCT + col0 * - - col2 - col0 / col0 AS col1 FROM tab1 AS cor0
----
4895
5014
6187

query I rowsort
SELECT + 32 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT - col0 + + - col2 * col2 * - + col2 * - - ( - 50 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3200064
-608396
-9755675

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

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

query II rowsort
SELECT ALL col0 AS col0, col0 * + + 29 AS col1 FROM tab1 WHERE NULL <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT + COUNT( * ) + 89 * - SUM( 34 ) AS col1 FROM tab2
----
-9075

skipif mysql # not compatible
query I rowsort label-7395
SELECT + COUNT ( * ) + 89 * - SUM ( 34 ) AS col1 FROM tab2
----
-9075

query I rowsort
SELECT + + col2 - + col0 + - 48 * - col1 FROM tab2 WHERE NOT - 31 IS NULL
----
2425
3199
3672

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

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

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

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

query I rowsort
SELECT ALL + col2 * 64 + - 78 * - 82 + - + col2 FROM tab2 cor0
----
10050
7845
8916

query I rowsort
SELECT - + col2 * + 58 + col0 + - col1 FROM tab1 AS cor0
----
-3342
-3900
-5531

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

query I rowsort
SELECT DISTINCT - + 54 + - col0 * 11 FROM tab1 AS cor0
----
-1055
-615
-989

query I rowsort
SELECT + col0 AS col1 FROM tab2 cor0 WHERE + col0 / 86 <> col2 + + - 36
----
46
64
75

query I rowsort
SELECT - - col2 + + 15 AS col0 FROM tab0 cor0
----
114
25
62

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 / + col2 - + - col0 + - + col2 NOT BETWEEN + + col2 AND - col0 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

skipif mysql # not compatible
query I rowsort label-7407
SELECT SUM ( ALL + - ( col1 ) ) FROM tab0
----
-103

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7411
SELECT AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7411
SELECT AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 52 + + + 57 AS col2 FROM tab1
----
109

query I rowsort
SELECT ALL 41 - - col0 FROM tab0
----
128
138
56

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

query I rowsort
SELECT DISTINCT 59 - + 56 + - 88 * - col0 FROM tab0
----
1323
7659
8539

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7417
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> + 67 * - col2 / + CAST( NULL AS SIGNED ) * - 18 - col1 + - 71
----

skipif mysql # not compatible
query III rowsort label-7417
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> + 67 * - col2 / + CAST ( NULL AS INTEGER ) * - 18 - col1 + - 71
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 83 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 23 * - ( + - 94 ) FROM tab1 AS cor0
----
-2162
-2162
-2162

query I rowsort
SELECT + + 93 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

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

query I rowsort
SELECT ( - - 28 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT DISTINCT + 11 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
11

query I rowsort
SELECT ALL - + ( - + 26 ) * - col1 + col0 FROM tab2 AS cor0
----
-1280
-1667
-1938

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7427
SELECT ALL - - CAST( NULL AS SIGNED ) + + 93 AS col1, + COUNT( * ) + 13 FROM tab0 AS cor0
----
NULL
16

skipif mysql # not compatible
query II rowsort label-7427
SELECT ALL - - CAST ( NULL AS INTEGER ) + + 93 AS col1, + COUNT ( * ) + 13 FROM tab0 AS cor0
----
NULL
16

onlyif mysql # DIV for integer division: 
query II rowsort label-7428
SELECT + - col1 * - col1 * col1 AS col0, col2 DIV 4 * 95 AS col0 FROM tab1 AS cor0
----
103823
1615
125
1330
2744
2280

skipif mysql # not compatible
query II rowsort label-7428
SELECT + - col1 * - col1 * col1 AS col0, col2 / 4 * 95 AS col0 FROM tab1 AS cor0
----
103823
1615
125
1330
2744
2280

onlyif mysql # aggregate syntax: 
query II rowsort label-7429
SELECT ALL 25, + 72 * COUNT( DISTINCT + + col0 ) col2 FROM tab1
----
25
216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7429
SELECT ALL 25, + 72 * COUNT ( DISTINCT + + col0 ) col2 FROM tab1
----
25
216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 col0, col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - 30 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - 27, col0 FROM tab1 WHERE - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 - col2 * + col0 FROM tab1
----
-4947
-5100
-6279

query I rowsort
SELECT - 65 * - col2 * - - ( + + col0 ) FROM tab1
----
318240
325975
402220

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

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

query I rowsort
SELECT + - 25 - - 76 * - col0 FROM tab1 cor0
----
-3901
-6485
-6941

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

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

query I rowsort
SELECT + 60 - - col0 * - col2 AS col0 FROM tab0 AS cor0
----
-645
-810
-9543

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7440
SELECT CAST( - col2 AS SIGNED ) + + col2 * + - col2 col1 FROM tab1
----
-3540
-4692
-9312

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7440
SELECT CAST ( - col2 AS INTEGER ) + + col2 * + - col2 col1 FROM tab1
----
-3540
-4692
-9312

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE + - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT ALL MIN( + 35 ) + + 71 AS col2 FROM tab1
----
106

skipif mysql # not compatible
query I rowsort label-7442
SELECT ALL MIN ( + 35 ) + + 71 AS col2 FROM tab1
----
106

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, - col0 * + 89 col1 FROM tab1
----
-14
-4539
-47
-8099
-5
-7565

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT 76 = NULL
----

query I rowsort
SELECT DISTINCT - col0 + - - 88 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3
3
37

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7448
SELECT col2 * - - CAST( - col2 AS SIGNED ) + + - col2 AS col2 FROM tab1 AS cor0
----
-3540
-4692
-9312

skipif mysql # not compatible
query I rowsort label-7448
SELECT col2 * - - CAST ( - col2 AS INTEGER ) + + - col2 AS col2 FROM tab1 AS cor0
----
-3540
-4692
-9312

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

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

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

skipif mysql # not compatible
query II rowsort label-7450
SELECT - col2 AS col0, + col0 * - col0 / + CAST ( - ( + CAST ( NULL AS INTEGER ) ) AS REAL ) FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

query III rowsort
SELECT + col0, col1, col1 FROM tab0
----
9 values hashing to 27cc7709f86b808da63f62d5e8c8d10e

query II rowsort
SELECT ALL 28, 11 AS col2 FROM tab2
----
28
11
28
11
28
11

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7453
SELECT - + col2 / col1 col1 FROM tab0 AS cor0
----
-99
0
0

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

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

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

query I rowsort
SELECT ALL 48 * - col2 AS col2 FROM tab0 cor0
----
-2256
-4752
-480

query I rowsort
SELECT DISTINCT - - col0 * + col1 * - 97 AS col2 FROM tab0 AS cor0
----
-117855
-177219
-9409

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

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

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

query I rowsort
SELECT - - 3 + + - col1 FROM tab0 AS cor0
----
-18
-78
2

query III rowsort
SELECT * FROM tab1 WHERE 8 NOT IN ( - 78, - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7463
SELECT + col2 * 45 + - CAST( NULL AS SIGNED ), 29 * col1 + + - 26 AS col0 FROM tab0
----
NULL
2323
NULL
3
NULL
583

skipif mysql # not compatible
query II rowsort label-7463
SELECT + col2 * 45 + - CAST ( NULL AS INTEGER ), 29 * col1 + + - 26 AS col0 FROM tab0
----
NULL
2323
NULL
3
NULL
583

query I rowsort
SELECT + col0 + 39 FROM tab1
----
124
130
90

query I rowsort
SELECT - AVG ( ALL - 24 ) FROM tab1 WHERE - col0 + + col1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 72 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7467
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT col0 * + col1 * - col2 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT ALL - MAX( ALL col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN + 66 * - + col2 + 25 * - col2 + + - 35 AND - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL - MAX ( ALL col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN + 66 * - + col2 + 25 * - col2 + + - 35 AND - - col0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 93 > - - col0
----
15
81
47
87
21
10

query I rowsort
SELECT col0 + - col0 FROM tab1 AS cor0 WHERE + col1 + + 46 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 54 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT ALL COUNT( * ) * MIN( ALL 25 ) * + COUNT( * ) - - - ( - MIN( col2 ) ) + - + MAX( DISTINCT + col1 ) * - COUNT( ALL + 84 ) + + + COUNT( * ) AS col1 FROM tab2
----
482

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL COUNT ( * ) * MIN ( ALL 25 ) * + COUNT ( * ) - - - ( - MIN ( col2 ) ) + - + MAX ( DISTINCT + col1 ) * - COUNT ( ALL + 84 ) + + + COUNT ( * ) AS col1 FROM tab2
----
482

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * + ( + 78 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7475
SELECT ALL + + CAST( - 71 AS SIGNED ) AS col1 FROM tab0 cor0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-7475
SELECT ALL + + CAST ( - 71 AS INTEGER ) AS col1 FROM tab0 cor0
----
-71
-71
-71

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7476
SELECT * FROM tab2 AS cor0 WHERE col2 * - col0 + + CAST( NULL AS DECIMAL ) IN ( col2, col0, - 73 )
----

skipif mysql # not compatible
query III rowsort label-7476
SELECT * FROM tab2 AS cor0 WHERE col2 * - col0 + + CAST ( NULL AS REAL ) IN ( col2, col0, - 73 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - + col1 BETWEEN 74 AND col2
----
97
1
99

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col0 * + - col0 + - col0 >= - - 30
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 98 AS col1, ( + col0 ) FROM tab2 AS cor0
----
-98
46
-98
64
-98
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7480
SELECT - + col2 * col2 * + CAST( NULL AS SIGNED ) col0, - 38 FROM tab2 cor0
----
NULL
-38
NULL
-38
NULL
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7480
SELECT - + col2 * col2 * + CAST ( NULL AS INTEGER ) col0, - 38 FROM tab2 cor0
----
NULL
-38
NULL
-38
NULL
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT DISTINCT COUNT( - + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7481
SELECT DISTINCT COUNT ( - + col2 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + ( 73 ) AS col2 FROM tab0 AS cor0 WHERE NOT + col2 * + 7 IS NULL
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT ALL - MIN( DISTINCT 9 ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL - MIN ( DISTINCT 9 ) FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7484
SELECT DISTINCT AVG ( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7484
SELECT DISTINCT AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT MAX( - - col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7485
SELECT MAX ( - - col1 ) FROM tab1
----
47

query I rowsort
SELECT + + col1 * + col0 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

query II rowsort
SELECT + + col2 * - 49 AS col2, - ( - 2 ) * - + col0 + - + col2 AS col2 FROM tab2 AS cor0
----
-1127
-115
-1960
-168
-2842
-208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7488
SELECT - + 35 * - CAST( - + 49 AS SIGNED ) FROM tab0 cor0
----
-1715
-1715
-1715

skipif mysql # not compatible
query I rowsort label-7488
SELECT - + 35 * - CAST ( - + 49 AS INTEGER ) FROM tab0 cor0
----
-1715
-1715
-1715

query I rowsort
SELECT + 75 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7491
SELECT MIN( DISTINCT + ( + - CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7491
SELECT MIN ( DISTINCT + ( + - CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7492
SELECT + SUM( ALL + 27 ) AS col2 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7492
SELECT + SUM ( ALL + 27 ) AS col2 FROM tab1 AS cor0
----
81

query I rowsort
SELECT DISTINCT + + col1 * + col2 * - 39 FROM tab1 AS cor0
----
-11505
-124644
-52416

query I rowsort
SELECT DISTINCT - 45 + + col1 FROM tab0 AS cor0
----
-24
-44
36

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 17 + - col2 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 col2 FROM tab0 AS cor0 WHERE 4 IS NOT NULL
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-7497
SELECT ALL col1 DIV + - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7497
SELECT ALL col1 / + - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7498
SELECT ALL - ( col1 ) + - + CAST( NULL AS SIGNED ) + + + 88 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7498
SELECT ALL - ( col1 ) + - + CAST ( NULL AS INTEGER ) + + + 88 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7499
SELECT - - MIN( DISTINCT - ( - CAST( + col2 AS SIGNED ) ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7499
SELECT - - MIN ( DISTINCT - ( - CAST ( + col2 AS INTEGER ) ) ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL + 76 AS col1 FROM tab2 WHERE ( NULL ) BETWEEN col0 * - col1 * col0 AND + col2
----

query I rowsort
SELECT DISTINCT 99 + + - col2 FROM tab1
----
3
31
40

onlyif mysql # DIV for integer division: 
query I rowsort label-7502
SELECT DISTINCT col2 * col1 DIV 16 AS col0 FROM tab0
----
13
237
6

skipif mysql # not compatible
query I rowsort label-7502
SELECT DISTINCT col2 * col1 / 16 AS col0 FROM tab0
----
13
237
6

query I rowsort
SELECT ALL col1 * col0 + + + col0 FROM tab0
----
1230
1914
194

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT COUNT( * ) * 62 FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-7504
SELECT COUNT ( * ) * 62 FROM tab0
----
186

query I rowsort
SELECT ALL 54 * - 46 FROM tab2
----
-2484
-2484
-2484

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 52 * - col1, 29 col1 FROM tab1
----
-2444
29
-260
29
-728
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7507
SELECT - + 39 + + MAX( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-7507
SELECT - + 39 + + MAX ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
52

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7508
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 * + - col0 / - CAST( NULL AS DECIMAL ) + - + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7508
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col1 * + - col0 / - CAST ( NULL AS REAL ) + - + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - col0 * + 46 FROM tab0 AS cor0
----
-4002
-4462
-690

query I rowsort
SELECT ALL + col0 + + - col1 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT DISTINCT - col1 * + col0 + - 82 FROM tab1 AS cor0
----
-4359
-507
-796

query III rowsort
SELECT * FROM tab0 WHERE 50 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 18 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7514
SELECT ALL CAST( NULL AS SIGNED ) * - + ( 92 ) * - AVG ( DISTINCT + 23 ) * 39 - + 17 + + - 65 col1, - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7514
SELECT ALL CAST ( NULL AS INTEGER ) * - + ( 92 ) * - AVG ( DISTINCT + 23 ) * 39 - + 17 + + - 65 col1, - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 65 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7516
SELECT ALL col0 * - 3 - 84 DIV col2 FROM tab0
----
-269
-291
-46

skipif mysql # not compatible
query I rowsort label-7516
SELECT ALL col0 * - 3 - 84 / col2 FROM tab0
----
-269
-291
-46

query III rowsort
SELECT * FROM tab2 WHERE 80 * col0 / col0 >= 13
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT + 11 - - MAX( + col2 ) AS col2 FROM tab0 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-7518
SELECT + 11 - - MAX ( + col2 ) AS col2 FROM tab0 AS cor0
----
110

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 30 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * + 81 * + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col2 FROM tab1 AS cor0 WHERE NOT ( - + 57 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT col2 * + - 71 IS NOT NULL
----

query I rowsort
SELECT ALL - ( - 73 ) AS col1 FROM tab0
----
73
73
73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7524
SELECT * FROM tab1 WHERE NOT col1 + + col1 NOT BETWEEN NULL AND + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7524
SELECT * FROM tab1 WHERE NOT col1 + + col1 NOT BETWEEN NULL AND + + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7525
SELECT + 92 DIV + COUNT( * ) AS col1 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-7525
SELECT + 92 / + COUNT ( * ) AS col1 FROM tab1
----
30

query II rowsort
SELECT ALL col0, + 73 FROM tab2
----
46
73
64
73
75
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7527
SELECT SUM( + CAST( + 81 AS SIGNED ) ) col2 FROM tab2
----
243

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7527
SELECT SUM ( + CAST ( + 81 AS INTEGER ) ) col2 FROM tab2
----
243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7528
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7528
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT ALL 72 * col0 FROM tab0
----
1080
6264
6984

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT MAX( ALL - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-7530
SELECT MAX ( ALL - col0 ) FROM tab2
----
-46

query I rowsort
SELECT DISTINCT + col0 * - 17 AS col0 FROM tab1
----
-1445
-1547
-867

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT - 90 * - COUNT( * ) FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-7532
SELECT - 90 * - COUNT ( * ) FROM tab0
----
270

query II rowsort
SELECT col0, 38 AS col2 FROM tab1
----
51
38
85
38
91
38

query II rowsort
SELECT 87 AS col1, col1 FROM tab2
----
87
51
87
67
87
77

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 58 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7536
SELECT ALL + SUM( - + 97 ) * - + CAST( NULL AS SIGNED ) * + + COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7536
SELECT ALL + SUM ( - + 97 ) * - + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7537
SELECT DISTINCT 84 DIV 52 FROM tab1, tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7537
SELECT DISTINCT 84 / 52 FROM tab1, tab2 cor0
----
1

query I rowsort
SELECT - 15 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 54 AND NULL
----

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7541
SELECT ALL + + col1 * + + col2 + + 60 + CAST( NULL AS SIGNED ), col1 / 83 * + - 27 * - 57 + - - 3 - - col1 + + 80 - - col1 * CAST( NULL AS SIGNED ) * + - col1 FROM tab1 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7541
SELECT ALL + + col1 * + + col2 + + 60 + CAST ( NULL AS INTEGER ), col1 / 83 * + - 27 * - 57 + - - 3 - - col1 + + 80 - - col1 * CAST ( NULL AS INTEGER ) * + - col1 FROM tab1 cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - 78 + - - 38 col1 FROM tab2 cor0
----
4016
5264
6044

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7543
SELECT ALL - CAST( NULL AS SIGNED ) + - + 18 + - - col2 AS col2, 38 DIV + - 42 + + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-7543
SELECT ALL - CAST ( NULL AS INTEGER ) + - + 18 + - - col2 AS col2, 38 / + - 42 + + col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT - MAX( DISTINCT + col0 ) + + MIN( ALL - 82 ) FROM tab0
----
-179

skipif mysql # not compatible
query I rowsort label-7544
SELECT - MAX ( DISTINCT + col0 ) + + MIN ( ALL - 82 ) FROM tab0
----
-179

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT COUNT( * ) * 81 FROM tab1
----
243

skipif mysql # not compatible
query I rowsort label-7545
SELECT COUNT ( * ) * 81 FROM tab1
----
243

onlyif mysql # DIV for integer division: 
query I rowsort label-7546
SELECT DISTINCT col2 DIV 31 AS col1 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT col2 / 31 AS col1 FROM tab0
----
0
1
3

query I rowsort
SELECT - 63 * + - col0 * - + 23 FROM tab2
----
-108675
-66654
-92736

query I rowsort
SELECT ALL col1 - col0 * + col2 * + + 45 AS col1 FROM tab0
----
-31644
-39129
-432134

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT DISTINCT 82 * - 20 * + + 10 * - ( + + ( + SUM( DISTINCT col0 ) ) ) FROM tab2
----
3034000

skipif mysql # not compatible
query I rowsort label-7549
SELECT DISTINCT 82 * - 20 * + + 10 * - ( + + ( + SUM ( DISTINCT col0 ) ) ) FROM tab2
----
3034000

query I rowsort
SELECT ALL + - 27 * 89 AS col2 FROM tab2 AS cor0
----
-2403
-2403
-2403

query I rowsort
SELECT DISTINCT col2 + - - col2 AS col0 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT ALL - 94 + - 14 + - - ( - col2 ) FROM tab2 cor0
----
-131
-148
-166

onlyif mysql # DIV for integer division: 
query I rowsort label-7553
SELECT 92 DIV + 27 + + col2 FROM tab0
----
102
13
50

skipif mysql # not compatible
query I rowsort label-7553
SELECT 92 / + 27 + + col2 FROM tab0
----
102
13
50

query I rowsort
SELECT col2 + + 27 AS col0 FROM tab2
----
50
67
85

query I rowsort
SELECT col0 + - 65 * - col1 FROM tab1
----
3146
410
961

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7556
SELECT - 75 * + - SUM( ALL 95 ) + + 8 + + + 86 + + COUNT( * ) DIV - - COUNT( * ) col1 FROM tab2 AS cor0
----
21470

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7556
SELECT - 75 * + - SUM ( ALL 95 ) + + 8 + + + 86 + + COUNT ( * ) / - - COUNT ( * ) col1 FROM tab2 AS cor0
----
21470

query II rowsort
SELECT + 93 AS col2, col1 FROM tab0 AS cor0
----
93
1
93
21
93
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT DISTINCT + MIN( + + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT + MIN ( + + col0 ) FROM tab1 AS cor0
----
51

query I rowsort
SELECT + col0 * + - col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 98 col1, - 18 col2 FROM tab1 AS cor0
----
98
-18
98
-18
98
-18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7561
SELECT ALL 60 * COUNT( * ) DIV COUNT( ALL + 72 ) AS col2 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL 60 * COUNT ( * ) / COUNT ( ALL + 72 ) AS col2 FROM tab0 AS cor0
----
60

query II rowsort
SELECT ALL 92 AS col0, + ( - 50 ) FROM tab0 AS cor0
----
92
-50
92
-50
92
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-7563
SELECT + col1 DIV ( + col1 ) AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7563
SELECT + col1 / ( + col1 ) AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT + 81 * - col2 FROM tab0
----
-3807
-8019
-810

query I rowsort
SELECT DISTINCT + ( 92 ) AS col1 FROM tab2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT DISTINCT + - 62 + - MIN( - col2 ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-7566
SELECT DISTINCT + - 62 + - MIN ( - col2 ) FROM tab1 AS cor0
----
34

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 * col1 = + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND ( - + 36 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7569
SELECT ALL + - COUNT( * ) AS col0, + 88 FROM tab2 AS cor0
----
-3
88

skipif mysql # not compatible
query II rowsort label-7569
SELECT ALL + - COUNT ( * ) AS col0, + 88 FROM tab2 AS cor0
----
-3
88

query I rowsort
SELECT ALL - col0 + col2 + - - col1 * col0 FROM tab0 AS cor0
----
1247
1750
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 99 * - col1 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT DISTINCT - MIN( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7572
SELECT DISTINCT - MIN ( DISTINCT + col0 ) AS col2 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT - + 76 * + 35 AS col1 FROM tab0 AS cor0
----
-2660
-2660
-2660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7574
SELECT ALL + + 20 * - col2 - - CAST( + + 50 AS SIGNED ) + - 12 + + 17 AS col1 FROM tab1 AS cor0
----
-1125
-1305
-1865

skipif mysql # not compatible
query I rowsort label-7574
SELECT ALL + + 20 * - col2 - - CAST ( + + 50 AS INTEGER ) + - 12 + + 17 AS col1 FROM tab1 AS cor0
----
-1125
-1305
-1865

query I rowsort
SELECT ALL + col0 + 80 FROM tab1 cor0
----
131
165
171

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT ALL - 33 + 87 - MAX( DISTINCT + + col2 ) * COUNT( * ) - - + 38 col1 FROM tab1
----
-196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7576
SELECT ALL - 33 + 87 - MAX ( DISTINCT + + col2 ) * COUNT ( * ) - - + 38 col1 FROM tab1
----
-196

query I rowsort
SELECT col1 / + 16 * + col2 * 38 + - - 20 AS col1 FROM tab1 WHERE + + 78 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - ( - - col2 ) / 46 * + col0 >= NULL
----

query I rowsort
SELECT - 45 + + col0 - 78 + + + col1 FROM tab0
----
-15
-25
-27

query III rowsort
SELECT ALL * FROM tab2 WHERE - 34 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 48 - col0 AS col2 FROM tab2
----
-16
-27
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT + ( 98 ) + COUNT( * ) FROM tab1
----
101

skipif mysql # not compatible
query I rowsort label-7582
SELECT + ( 98 ) + COUNT ( * ) FROM tab1
----
101

query I rowsort
SELECT + 13 + col1 * + - col0 FROM tab0
----
-1202
-1814
-84

query I rowsort
SELECT DISTINCT + 84 AS col1 FROM tab1 cor0
----
84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = - 25
----

query I rowsort
SELECT ALL + - col0 + col0 + - 51 + - 18 FROM tab2 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-7587
SELECT DISTINCT ( 64 ) * - - MIN( ALL + - col2 ) * + 55 FROM tab1
----
-337920

skipif mysql # not compatible
query I rowsort label-7587
SELECT DISTINCT ( 64 ) * - - MIN ( ALL + - col2 ) * + 55 FROM tab1
----
-337920

query II rowsort
SELECT ALL - 72 AS col1, + 51 FROM tab0 cor0
----
-72
51
-72
51
-72
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7589
SELECT DISTINCT + col2 * - ( col2 ) * - + ( + col1 ) * + - CAST( NULL AS SIGNED ) + col0 + - 78 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT + col2 * - ( col2 ) * - + ( + col1 ) * + - CAST ( NULL AS INTEGER ) + col0 + - 78 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT + COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT col0 < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7590
SELECT + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT col0 < NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7591
SELECT ALL - 62 DIV - ( - + col1 ) FROM tab1 AS cor0
----
-1
-12
-4

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL - 62 / - ( - + col1 ) FROM tab1 AS cor0
----
-1
-12
-4

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 2 - - + col1 + - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT ALL + SUM( ALL + + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL + SUM ( ALL + + col1 ) FROM tab0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7594
SELECT DISTINCT col0 AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-7594
SELECT DISTINCT col0 AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7595
SELECT DISTINCT - SUM( DISTINCT + col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT - SUM ( DISTINCT + col0 ) AS col1 FROM tab1
----
-227

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7596
SELECT col0 * - - col1 DIV CAST( col1 AS SIGNED ) col2, col1 FROM tab2
----
46
51
64
77
75
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7596
SELECT col0 * - - col1 / CAST ( col1 AS INTEGER ) col2, col1 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7597
SELECT ALL CAST( NULL AS SIGNED ) / 17 * - + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7597
SELECT ALL CAST ( NULL AS INTEGER ) / 17 * - + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7598
SELECT + col2 DIV + - ( + col0 ) AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7598
SELECT + col2 / + - ( + col0 ) AS col1 FROM tab1
----
-1
0
0

query II rowsort
SELECT + col0, - 49 FROM tab0
----
15
-49
87
-49
97
-49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7600
SELECT + COUNT( * ) DIV - 90 col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7600
SELECT + COUNT ( * ) / - 90 col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT + SUM( DISTINCT - col1 ) AS col1 FROM tab2 WHERE NOT 29 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7601
SELECT + SUM ( DISTINCT - col1 ) AS col1 FROM tab2 WHERE NOT 29 IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT col0, 76 FROM tab0
----
15
76
87
76
97
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7603
SELECT - COUNT( 17 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7603
SELECT - COUNT ( 17 ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + col0 * - 97 + + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-1470
-8526
-9506

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> + 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT MAX( + col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7606
SELECT MAX ( + col2 ) FROM tab0 AS cor0
----
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= + col2 * - col0 + + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7608
SELECT DISTINCT MIN( 38 ) AS col1, + 57 FROM tab1
----
38
57

skipif mysql # not compatible
query II rowsort label-7608
SELECT DISTINCT MIN ( 38 ) AS col1, + 57 FROM tab1
----
38
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + AVG ( DISTINCT - 48 ) col2 FROM tab0 WHERE NOT - col1 < NULL
----
NULL

query I rowsort
SELECT DISTINCT 74 AS col2 FROM tab0 cor0
----
74

query I rowsort
SELECT - + 83 + + col1 + + 82 FROM tab1 AS cor0
----
13
4
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT DISTINCT MAX( + - col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7612
SELECT DISTINCT MAX ( + - col2 ) AS col0 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT + 92 + col1 * - - col2 + - 86 + - - col2 / + 81 AS col1 FROM tab0 AS cor0 WHERE NULL = col2
----

query I rowsort
SELECT ALL 37 + - 40 * + 71 AS col1 FROM tab0 AS cor0
----
-2803
-2803
-2803

query I rowsort
SELECT - 34 + - col2 FROM tab0 WHERE + col1 NOT BETWEEN NULL AND col2 - - - col1
----
-44
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7616
SELECT CAST( NULL AS DECIMAL ) AS col2, - col2 * - + col2 AS col0 FROM tab1
----
NULL
3481
NULL
4624
NULL
9216

skipif mysql # not compatible
query II rowsort label-7616
SELECT CAST ( NULL AS REAL ) AS col2, - col2 * - + col2 AS col0 FROM tab1
----
NULL
3481
NULL
4624
NULL
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7617
SELECT DISTINCT col0 * - col2 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7617
SELECT DISTINCT col0 * - col2 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE ( col2 ) + - + col1 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT ALL + COUNT( * ) + - - MAX( DISTINCT - + col0 ) col1 FROM tab1 WHERE + col2 + + col1 IS NOT NULL
----
-48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7619
SELECT ALL + COUNT ( * ) + - - MAX ( DISTINCT - + col0 ) col1 FROM tab1 WHERE + col2 + + col1 IS NOT NULL
----
-48

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - col1 AND col0 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7621
SELECT - 3 * - CAST( + col2 AS SIGNED ) AS col0, + col1 FROM tab2
----
120
77
174
67
69
51

skipif mysql # not compatible
query II rowsort label-7621
SELECT - 3 * - CAST ( + col2 AS INTEGER ) AS col0, + col1 FROM tab2
----
120
77
174
67
69
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7622
SELECT DISTINCT * FROM tab2 WHERE CAST( + - 41 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7622
SELECT DISTINCT * FROM tab2 WHERE CAST ( + - 41 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + + col0 AS col1, 74 + + col2 FROM tab0 cor0
----
15
121
87
84
97
173

query II rowsort
SELECT DISTINCT + - 50, 96 AS col1 FROM tab2 AS cor0
----
-50
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( col2, - col1 )
----

query I rowsort
SELECT + ( + col0 ) + - col2 * + 90 AS col1 FROM tab1
----
-5225
-6029
-8589

query I rowsort
SELECT + 29 + - col0 AS col1 FROM tab2
----
-17
-35
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT - 18 + MIN( - 18 ) col2 FROM tab1
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7628
SELECT - 18 + MIN ( - 18 ) col2 FROM tab1
----
-36

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 22 IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7630
SELECT + 8 + 74 col1 FROM tab1 WHERE ( 73 * + col0 ) > ( CAST( + col0 AS SIGNED ) * col1 + col2 )
----
82
82
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7630
SELECT + 8 + 74 col1 FROM tab1 WHERE ( 73 * + col0 ) > ( CAST ( + col0 AS INTEGER ) * col1 + col2 )
----
82
82
82

query I rowsort
SELECT col1 + 95 AS col0 FROM tab0 WHERE - col1 + - col1 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT MAX( ALL - 29 ) AS col0 FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-7632
SELECT MAX ( ALL - 29 ) AS col0 FROM tab2
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7633
SELECT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) + + col0 NOT BETWEEN - col0 AND + 14 * + col0 + ( col1 )
----

skipif mysql # not compatible
query III rowsort label-7633
SELECT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) + + col0 NOT BETWEEN - col0 AND + 14 * + col0 + ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT - MAX( DISTINCT col2 ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-7634
SELECT - MAX ( DISTINCT col2 ) AS col2 FROM tab0
----
-99

query I rowsort
SELECT DISTINCT col1 * col2 + - 55 AS col1 FROM tab2
----
1118
3025
3831

query I rowsort
SELECT DISTINCT + col1 - - col2 * - 21 FROM tab2
----
-1151
-432
-763

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 col0 FROM tab2
----
96
96
96

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE - col0 IS NULL
----

query I rowsort
SELECT + col2 * - col2 - col0 AS col1 FROM tab2
----
-1664
-3439
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT DISTINCT + MAX( col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT + MAX ( col1 ) AS col1 FROM tab2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7641
SELECT DISTINCT col2 / + CAST( NULL AS SIGNED ) FROM tab1 WHERE ( NULL ) < + 81
----

skipif mysql # not compatible
query I rowsort label-7641
SELECT DISTINCT col2 / + CAST ( NULL AS INTEGER ) FROM tab1 WHERE ( NULL ) < + 81
----

query I rowsort
SELECT + col2 * + col0 AS col2 FROM tab0 WHERE NOT col1 + 18 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 1 * col0 FROM tab1
----
51
85
91

query I rowsort
SELECT - ( - 76 ) FROM tab1
----
76
76
76

query I rowsort
SELECT + 38 AS col2 FROM tab0 WHERE 78 + - 32 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7646
SELECT - MIN( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7646
SELECT - MIN ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT ALL 76 FROM tab1 WHERE NOT NULL IS NOT NULL
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT ALL - MAX( DISTINCT + col0 ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-7648
SELECT ALL - MAX ( DISTINCT + col0 ) AS col0 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7649
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT col2 < col2 + col1 * col2
----
0

skipif mysql # not compatible
query I rowsort label-7649
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT col2 < col2 + col1 * col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7650
SELECT * FROM tab1 AS cor0 WHERE NOT 22 * CAST( + col2 AS SIGNED ) NOT BETWEEN - 28 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7650
SELECT * FROM tab1 AS cor0 WHERE NOT 22 * CAST ( + col2 AS INTEGER ) NOT BETWEEN - 28 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 88 col1 FROM tab0 AS cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT - COUNT( * ) * + 97 FROM tab1 AS cor0 WHERE - col0 + - col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7652
SELECT - COUNT ( * ) * + 97 FROM tab1 AS cor0 WHERE - col0 + - col2 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT + COUNT( + col2 ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7653
SELECT + COUNT ( + col2 ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT + COUNT( * ) + + 2 FROM tab0 cor0
----
5

skipif mysql # not compatible
query I rowsort label-7654
SELECT + COUNT ( * ) + + 2 FROM tab0 cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7655
SELECT ALL 37 * - CAST( NULL AS SIGNED ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7655
SELECT ALL 37 * - CAST ( NULL AS INTEGER ) + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 AS col0 FROM tab0 cor0 WHERE NULL BETWEEN ( - col2 + 34 ) AND + col0
----

query I rowsort
SELECT ALL col0 + col0 * col1 FROM tab0 cor0
----
1230
1914
194

query I rowsort
SELECT ALL - ( 51 ) AS col1 FROM tab2 AS cor0 WHERE + 7 * + col1 = NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7660
SELECT ALL * FROM tab1 WHERE NOT col1 NOT BETWEEN ( - ( + CAST( col1 AS SIGNED ) ) ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7660
SELECT ALL * FROM tab1 WHERE NOT col1 NOT BETWEEN ( - ( + CAST ( col1 AS INTEGER ) ) ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7661
SELECT + + CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7661
SELECT + + CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 * - 7 col2 FROM tab1 cor0
----
-105
-105
-105

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE - col1 IN ( col2 * 18 )
----

query I rowsort
SELECT ALL col1 * + col1 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 BETWEEN + col1 AND + 57
----
2601
4489
5929

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 64 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7666
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7666
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col1 * - 73 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 ) = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 - + col0 col1 FROM tab2 cor0
----
2070
4032
5550

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 + + 14 NOT IN ( - col0 * - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 <> + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * - 82 - 25 AS col2 FROM tab2 AS cor0
----
-1911
-3305
-4781

query III rowsort
SELECT * FROM tab2 WHERE + ( - 42 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> + col1 / col1 - 87
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE 31 <> col1 / col0 + 33
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7677
SELECT CAST( - col0 AS SIGNED ) + col0 * col2 FROM tab2
----
1012
2496
4275

skipif mysql # not compatible
query I rowsort label-7677
SELECT CAST ( - col0 AS INTEGER ) + col0 * col2 FROM tab2
----
1012
2496
4275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7678
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7678
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7679
SELECT COUNT( + col1 ) + COUNT( * ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7679
SELECT COUNT ( + col1 ) + COUNT ( * ) AS col2 FROM tab0
----
6

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE ( 49 + + 40 * - col0 ) > ( NULL )
----

query I rowsort
SELECT ALL col2 - + 93 + + col1 FROM tab1
----
-29
17
22

query I rowsort
SELECT DISTINCT + col0 + + 96 - col1 * ( + col1 * + col1 ) FROM tab1
----
-103636
-2597
56

query I rowsort
SELECT ( + - ( - col2 ) ) * - col1 + col0 FROM tab2
----
-1127
-3016
-3811

query I rowsort
SELECT DISTINCT col0 * + - 61 FROM tab2
----
-2806
-3904
-4575

query I rowsort
SELECT 72 * + col1 AS col1 FROM tab0
----
1512
5832
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT ALL + - COUNT( * ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7686
SELECT ALL + - COUNT ( * ) col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT MAX( - 87 ) FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-7687
SELECT MAX ( - 87 ) FROM tab0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT DISTINCT + COUNT( * ) * COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-7688
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7689
SELECT COUNT( * ) DIV - 40 * - 72 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7689
SELECT COUNT ( * ) / - 40 * - 72 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT SUM( DISTINCT 0 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7690
SELECT SUM ( DISTINCT 0 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT ALL MAX( - + col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL MAX ( - + col0 ) AS col1 FROM tab1 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-7692
SELECT ALL - col2 DIV + - col2 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7692
SELECT ALL - col2 / + - col2 AS col1 FROM tab1 AS cor0
----
1
1
1

query II rowsort
SELECT + col0 AS col0, 22 FROM tab1 AS cor0
----
51
22
85
22
91
22

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + col2 + 91 col2 FROM tab0 AS cor0 WHERE NOT NULL <> - 95
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7696
SELECT DISTINCT + col0 * 18 DIV + + ( + ( + col1 ) ) + col1 AS col0 FROM tab0 cor0
----
1747
84
95

skipif mysql # not compatible
query I rowsort label-7696
SELECT DISTINCT + col0 * 18 / + + ( + ( + col1 ) ) + col1 AS col0 FROM tab0 cor0
----
1747
84
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT - SUM( + 76 ) AS col1 FROM tab1 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-7697
SELECT - SUM ( + 76 ) AS col1 FROM tab1 AS cor0
----
-228

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 23 ) NOT IN ( ( 90 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 * - 19 + - col2 col2 FROM tab0
----
-1016
-1068
-979

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT 15 + + + COUNT( + col0 ) AS col0 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-7700
SELECT 15 + + + COUNT ( + col0 ) AS col0 FROM tab2
----
18

query I rowsort
SELECT col1 + + 73 AS col0 FROM tab1
----
120
78
87

query I rowsort
SELECT 58 * + - col0 * + 14 + col2 FROM tab0
----
-12133
-70634
-78665

onlyif mysql # DIV for integer division: 
query I rowsort label-7703
SELECT ALL col2 DIV + - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7703
SELECT ALL col2 / + - col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab2 WHERE ( + 98 ) BETWEEN ( NULL ) AND NULL AND NULL <> ( + ( 29 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7705
SELECT ALL - 95 DIV - - 47 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-7705
SELECT ALL - 95 / - - 47 FROM tab2
----
-2
-2
-2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * ( - ( col1 ) ) * + col2 NOT IN ( + col1 - 26 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT + - SUM( ALL - 4 ) FROM tab1 cor0
----
12

skipif mysql # not compatible
query I rowsort label-7707
SELECT + - SUM ( ALL - 4 ) FROM tab1 cor0
----
12

query II rowsort
SELECT 62 * 0 - - col0, col1 FROM tab0
----
15
81
87
21
97
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - col1 - + col2, + col1 col0 FROM tab2
----
-2624
51
-4547
67
-5969
77

query I rowsort
SELECT col0 + + + col0 + col2 AS col2 FROM tab1
----
198
229
250

query I rowsort
SELECT DISTINCT - ( 88 ) + - col0 * 28 FROM tab2
----
-1376
-1880
-2188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 * col2 col1 FROM tab1
----
-5841
-6732
-9504

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT - + MAX( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col1 AND - col0 * 34
----
NULL

skipif mysql # not compatible
query I rowsort label-7713
SELECT - + MAX ( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col1 AND - col0 * 34
----
NULL

query I rowsort
SELECT ALL + 76 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 25 AND + ( + ( + 49 ) )
----

query I rowsort
SELECT 29 * - col0 + + - 47 - - col0 + 25 * col2 FROM tab1 cor0
----
-895
-952
925

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 + col1 * + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-1230
-1914
-194

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 24 + 2 - - col2 + + ( col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-7719
SELECT + 99 DIV 36 - + col2 AS col0, ( + 31 ) - - col0 FROM tab1 AS cor0
----
-57
116
-66
122
-94
82

skipif mysql # not compatible
query II rowsort label-7719
SELECT + 99 / 36 - + col2 AS col0, ( + 31 ) - - col0 FROM tab1 AS cor0
----
-57
116
-66
122
-94
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7720
SELECT DISTINCT + AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) col0 FROM tab2 AS cor0 WHERE NULL <> + col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7720
SELECT DISTINCT + AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0 WHERE NULL <> + col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7721
SELECT ALL - col1 + - CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7721
SELECT ALL - col1 + - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT + COUNT( * ) * - + MIN( ALL col1 ) FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7722
SELECT + COUNT ( * ) * - + MIN ( ALL col1 ) FROM tab1 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7723
SELECT - CAST( - col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7723
SELECT - CAST ( - col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL 62 + + col1 FROM tab1
----
109
67
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7725
SELECT ALL col2 * - 44 - CAST( - col0 AS SIGNED ) - + + col2 FROM tab0
----
-2100
-363
-4358

skipif mysql # not compatible
query I rowsort label-7725
SELECT ALL col2 * - 44 - CAST ( - col0 AS INTEGER ) - + + col2 FROM tab0
----
-2100
-363
-4358

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE - 63 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7727
SELECT ALL - MAX( ALL 39 ) AS col2 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-7727
SELECT ALL - MAX ( ALL 39 ) AS col2 FROM tab2
----
-39

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( ( NOT NULL NOT BETWEEN ( + col0 ) AND col2 + + col2 * + 37 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col0, + col2 + - col0 FROM tab1
----
59
-26
68
-23
96
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7730
SELECT - + col0 AS col0, - col2 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-7730
SELECT - + col0 AS col0, - col2 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

query II rowsort
SELECT + + col2, 67 FROM tab0 AS cor0
----
10
67
47
67
99
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7732
SELECT DISTINCT + CAST( + + col2 AS SIGNED ) col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7732
SELECT DISTINCT + CAST ( + + col2 AS INTEGER ) col1 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT ALL - SUM( + 26 ) AS col1 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL - SUM ( + 26 ) AS col1 FROM tab1 AS cor0
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-7734
SELECT + 46 * - col2 AS col1 FROM tab1 AS cor0 WHERE NOT 84 NOT IN ( - 78 DIV - - col2 + + col0, 8 )
----
-2714

skipif mysql # not compatible
query I rowsort label-7734
SELECT + 46 * - col2 AS col1 FROM tab1 AS cor0 WHERE NOT 84 NOT IN ( - 78 / - - col2 + + col0, 8 )
----
-2714

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 82 / + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - + col1 col1 FROM tab0 AS cor0 WHERE NOT ( - 63 + - 55 ) NOT IN ( - col0 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT + SUM( DISTINCT - - 96 ) AS col2 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7737
SELECT + SUM ( DISTINCT - - 96 ) AS col2 FROM tab0 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT + 66 * + + MIN( - - 33 ) AS col0 FROM tab1 AS cor0
----
2178

skipif mysql # not compatible
query I rowsort label-7738
SELECT + 66 * + + MIN ( - - 33 ) AS col0 FROM tab1 AS cor0
----
2178

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 0 * 89 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7740
SELECT CAST( + 16 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
16
16
16

skipif mysql # not compatible
query I rowsort label-7740
SELECT CAST ( + 16 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT DISTINCT + MAX( DISTINCT - ( - col2 ) ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7741
SELECT DISTINCT + MAX ( DISTINCT - ( - col2 ) ) FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7742
SELECT ALL + CAST( - col0 AS SIGNED ) * - col0 - col0 DIV + col0 + + col0 * + col0 + + 40 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14489
16601
5241

skipif mysql # not compatible
query I rowsort label-7742
SELECT ALL + CAST ( - col0 AS INTEGER ) * - col0 - col0 / + col0 + + col0 * + col0 + + 40 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14489
16601
5241

onlyif mysql # aggregate syntax: 
query I rowsort label-7743
SELECT ALL + MIN( DISTINCT - col1 ) FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL + MIN ( DISTINCT - col1 ) FROM tab0 cor0
----
-81

query I rowsort
SELECT DISTINCT + 27 + + col2 FROM tab1 AS cor0
----
123
86
95

query I rowsort
SELECT ALL col1 + col1 * - - 23 FROM tab2
----
1224
1608
1848

query III rowsort
SELECT * FROM tab0 WHERE col1 / - col2 / + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 + - 41 FROM tab0
----
-20
-40
40

query I rowsort
SELECT DISTINCT + col0 * 54 AS col0 FROM tab0
----
4698
5238
810

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 81 + - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 25 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7751
SELECT DISTINCT + col2 + + CAST( - + col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT + col2 + + CAST ( - + col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT 48 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 71 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 38 + + col0 AS col0 FROM tab0
----
-23
49
59

query I rowsort
SELECT DISTINCT - - 66 AS col1 FROM tab2 WHERE ( NOT ( col2 > - 58 ) )
----

query I rowsort
SELECT DISTINCT + + 16 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
16

query I rowsort
SELECT ALL + ( + 69 ) AS col0 FROM tab0
----
69
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 col2 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7759
SELECT + col2 * 66 + - - col1 * + col1 - col0 * + CAST( + col1 AS SIGNED ) * + col2 col2 FROM tab1 AS cor0
----
-21156
-284139
-62012

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7759
SELECT + col2 * 66 + - - col1 * + col1 - col0 * + CAST ( + col1 AS INTEGER ) * + col2 col2 FROM tab1 AS cor0
----
-21156
-284139
-62012

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 IN ( - ( + + ( + col2 ) ), + col1, + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT ALL + COUNT( ALL + - col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7761
SELECT ALL + COUNT ( ALL + - col1 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 35 + + - col2 + - - col2 + - 57 = ( + + 99 * - + 46 )
----

query I rowsort
SELECT ALL + + 43 AS col1 FROM tab0 AS cor0
----
43
43
43

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - + col0 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT SUM( - - col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-7765
SELECT SUM ( - - col0 ) AS col1 FROM tab1
----
227

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT - + 50 BETWEEN 30 AND NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT MAX( ALL - + col1 ) col1 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7767
SELECT MAX ( ALL - + col1 ) col1 FROM tab2
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-7768
SELECT ALL + col0 DIV - 45 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL + col0 / - 45 FROM tab2
----
-1
-1
-1

query II rowsort
SELECT col1, + col1 AS col1 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT + - ( - + col2 ) FROM tab2 WHERE NULL >= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT DISTINCT + MAX( + - col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-7771
SELECT DISTINCT + MAX ( + - col2 ) AS col1 FROM tab1
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7772
SELECT DISTINCT col2 AS col0, col1 + - + CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7772
SELECT DISTINCT col2 AS col0, col1 + - + CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT - 18 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 + 85 * + + col2 = - col2
----

query II rowsort
SELECT ALL col2, col1 + 31 AS col0 FROM tab1
----
59
36
68
78
96
45

query II rowsort
SELECT DISTINCT - col1 AS col1, col1 AS col2 FROM tab2
----
-51
51
-67
67
-77
77

query II rowsort
SELECT ALL + col2 AS col2, - col0 FROM tab1
----
59
-85
68
-91
96
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + col2 ) col0 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7779
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 * + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7779
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 * + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT DISTINCT - SUM( + - col1 ) + + 29 AS col0 FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-7780
SELECT DISTINCT - SUM ( + - col1 ) + + 29 AS col0 FROM tab1 AS cor0
----
95

query I rowsort
SELECT ALL + - 64 + - col2 FROM tab0 cor0
----
-111
-163
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 58 col0, - 71 * col1 AS col2 FROM tab1 cor0
----
58
-3337
58
-355
58
-994

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7784
SELECT - col0 * + col0 + + - col2 + - col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7784
SELECT - col0 * + col0 + + - col2 + - col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7785
SELECT + + COUNT( * ) + - 43, + ( MIN( DISTINCT - col0 ) ) AS col1 FROM tab2 AS cor0
----
-40
-75

skipif mysql # not compatible
query II rowsort label-7785
SELECT + + COUNT ( * ) + - 43, + ( MIN ( DISTINCT - col0 ) ) AS col1 FROM tab2 AS cor0
----
-40
-75

query I rowsort
SELECT col1 + - 53 + - 83 * - col0 AS col2 FROM tab1
----
4194
7007
7547

query III rowsort
SELECT * FROM tab1 WHERE + 54 / col2 * + 3 * col2 - + + col0 BETWEEN ( + + col0 ) AND ( ( - col0 ) + + col1 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT ALL + SUM( ALL + 83 ) AS col0 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-7788
SELECT ALL + SUM ( ALL + 83 ) AS col0 FROM tab2
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT SUM( 28 ) AS col2 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-7789
SELECT SUM ( 28 ) AS col2 FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT - 10 * - MAX( DISTINCT + + col2 ) AS col0 FROM tab2
----
580

skipif mysql # not compatible
query I rowsort label-7790
SELECT - 10 * - MAX ( DISTINCT + + col2 ) AS col0 FROM tab2
----
580

query I rowsort
SELECT ALL - col1 + - 16 + - ( - col0 ) * + 21 AS col0 FROM tab2 AS cor0
----
1251
1492
899

onlyif mysql # aggregate syntax: 
query I rowsort label-7792
SELECT DISTINCT - + COUNT( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7792
SELECT DISTINCT - + COUNT ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT 77 - + col0 AS col2 FROM tab1 AS cor0
----
-14
-8
26

query I rowsort
SELECT 16 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT ALL 36 - - 60 + + col0 AS col2 FROM tab1
----
147
181
187

onlyif mysql # aggregate syntax: 
query II rowsort label-7796
SELECT DISTINCT - COUNT( * ) AS col1, 13 FROM tab0
----
-3
13

skipif mysql # not compatible
query II rowsort label-7796
SELECT DISTINCT - COUNT ( * ) AS col1, 13 FROM tab0
----
-3
13

query I rowsort
SELECT ALL - col2 - + - ( - col1 ) FROM tab0
----
-100
-128
-31

query I rowsort
SELECT DISTINCT + 45 - + col1 * + col1 * col0 FROM tab0
----
-38322
-52
-98370

query I rowsort
SELECT ALL col0 * + 51 * - + col1 AS col1 FROM tab0 cor0 WHERE NOT - 81 < - 57 - - 18
----

query I rowsort
SELECT + - 5 * - ( + - col1 ) * - 27 AS col0 FROM tab1 AS cor0
----
1890
6345
675

query I rowsort
SELECT - 30 * - col2 AS col1 FROM tab2 AS cor0
----
1200
1740
690

query I rowsort
SELECT ALL col2 * 24 * + 90 FROM tab1 AS cor0
----
127440
146880
207360

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT - + COUNT( * ) * - COUNT( * ) - MIN( - - col1 ) AS col0 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-7803
SELECT - + COUNT ( * ) * - COUNT ( * ) - MIN ( - - col1 ) AS col0 FROM tab2 AS cor0
----
-42

query I rowsort
SELECT DISTINCT - col1 * - 50 AS col0 FROM tab2 AS cor0
----
2550
3350
3850

query I rowsort
SELECT DISTINCT + + col1 * col0 + - 81 AS col2 FROM tab2 cor0
----
2265
4847
4944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7806
SELECT DISTINCT + MAX( ALL 94 ) DIV COUNT( * ) DIV + COUNT( ALL - + 59 ) + CAST( - - 85 AS SIGNED ) FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-7806
SELECT DISTINCT + MAX ( ALL 94 ) / COUNT ( * ) / + COUNT ( ALL - + 59 ) + CAST ( - - 85 AS INTEGER ) FROM tab1 AS cor0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-7807
SELECT - 40 DIV col0 * + - col0 * + 41 col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7807
SELECT - 40 / col0 * + - col0 * + 41 col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT 31 * + + MAX( ALL + col1 ) FROM tab1 cor0 WHERE NOT ( + col2 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7808
SELECT 31 * + + MAX ( ALL + col1 ) FROM tab1 cor0 WHERE NOT ( + col2 IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7809
SELECT + MIN( ALL 36 ) * - - COUNT( * ) + + + COUNT( ALL - + 46 ) FROM tab1 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-7809
SELECT + MIN ( ALL 36 ) * - - COUNT ( * ) + + + COUNT ( ALL - + 46 ) FROM tab1 AS cor0
----
111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 82 * + + col1 col2, - col1 FROM tab2
----
-4182
-51
-5494
-67
-6314
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7811
SELECT + ( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7811
SELECT + ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 69 AS col2 FROM tab1
----
69
69
69

onlyif mysql # DIV for integer division: 
query I rowsort label-7813
SELECT DISTINCT col1 * col0 DIV col0 AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7813
SELECT DISTINCT col1 * col0 / col0 AS col0 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT ALL MAX( - - col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-7814
SELECT ALL MAX ( - - col2 ) FROM tab0
----
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 = - - 40
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-7816
SELECT ALL - MAX( + - 28 ) AS col0, 76 AS col2 FROM tab1 AS cor0
----
28
76

skipif mysql # not compatible
query II rowsort label-7816
SELECT ALL - MAX ( + - 28 ) AS col0, 76 AS col2 FROM tab1 AS cor0
----
28
76

query I rowsort
SELECT + ( - ( + 15 ) ) FROM tab0 AS cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT ALL COUNT( * ) * + + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL COUNT ( * ) * + + COUNT ( * ) FROM tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7819
SELECT DISTINCT + col2 DIV - 4 FROM tab2 AS cor0
----
-10
-14
-5

skipif mysql # not compatible
query I rowsort label-7819
SELECT DISTINCT + col2 / - 4 FROM tab2 AS cor0
----
-10
-14
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7820
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7820
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ( col1 ) + + 25 FROM tab0
----
106
26
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7822
SELECT ALL CAST( NULL AS SIGNED ) * + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7822
SELECT ALL CAST ( NULL AS INTEGER ) * + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7823
SELECT + 24 AS col2, COUNT( * ) AS col2 FROM tab1 AS cor0
----
24
3

skipif mysql # not compatible
query II rowsort label-7823
SELECT + 24 AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
24
3

query I rowsort
SELECT ALL - + 15 FROM tab2 AS cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT + COUNT( DISTINCT + 94 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7825
SELECT + COUNT ( DISTINCT + 94 ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7826
SELECT MAX( - + CAST( 67 AS SIGNED ) ) FROM tab0 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-7826
SELECT MAX ( - + CAST ( 67 AS INTEGER ) ) FROM tab0 AS cor0
----
-67

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE 91 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7828
SELECT ALL * FROM tab1 cor0 WHERE - col0 = + 31 + + CAST( + + 33 AS SIGNED ) * - 6
----

skipif mysql # not compatible
query III rowsort label-7828
SELECT ALL * FROM tab1 cor0 WHERE - col0 = + 31 + + CAST ( + + 33 AS INTEGER ) * - 6
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 20 col2 FROM tab0 AS cor0
----
119
30
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT ALL 28 + - COUNT( * ) AS col2 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL 28 + - COUNT ( * ) AS col2 FROM tab0
----
25

query III rowsort
SELECT * FROM tab0 WHERE + + 84 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col2, col2 + + - ( + col0 ) col2 FROM tab2
----
51
-23
67
-17
77
-24

query I rowsort
SELECT ALL ( + + col0 ) + - 84 AS col2 FROM tab1
----
-33
1
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 col1 FROM tab1 AS cor0 WHERE NOT - ( + + ( + 36 ) ) IS NULL
----
-51
-85
-91

query I rowsort
SELECT col0 + + - 57 AS col1 FROM tab0 AS cor0
----
-42
30
40

query I rowsort
SELECT col0 + + col2 + - col0 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > + - col0 * - - col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * + ( - + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + - col1 col1 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT - col2 + - + 71 * - ( - + ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
1610
2800
4060

query II rowsort
SELECT ALL 33 AS col1, - 66 AS col1 FROM tab0 AS cor0
----
33
-66
33
-66
33
-66

query I rowsort
SELECT 85 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 77 * 25 FROM tab2 AS cor0
----
-1925
-1925
-1925

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7844
SELECT MIN( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7844
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - ( 99 ) AS col0 FROM tab0 AS cor0
----
-99
-99
-99

query I rowsort
SELECT ALL - col1 * - - 9 AS col1 FROM tab0 AS cor0
----
-189
-729
-9

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 25 * - col1 - 52 + + col2 < col2
----
15
81
47
87
21
10

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 - - - ( - col2 ) + + + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * + 70 / + 51 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT - MAX( ALL - col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-7850
SELECT - MAX ( ALL - col2 ) AS col2 FROM tab0
----
10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > + 25 * col2
----

query I rowsort
SELECT - 34 * - + col0 * + - col2 FROM tab1
----
-166464
-170510
-210392

query I rowsort
SELECT - col1 * + 95 FROM tab0
----
-1995
-7695
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7854
SELECT DISTINCT - MAX( + 77 ) FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-7854
SELECT DISTINCT - MAX ( + 77 ) FROM tab0
----
-77

query II rowsort
SELECT ALL + col1 * - + ( 52 ), + 90 AS col2 FROM tab2
----
-2652
90
-3484
90
-4004
90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col1 + - ( col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 - + + col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7858
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + ( 11 ) / - CAST( - 67 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-7858
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + ( 11 ) / - CAST ( - 67 AS REAL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 47 AND NULL
----

query I rowsort
SELECT DISTINCT 95 AS col2 FROM tab0 cor0 WHERE + 26 IS NOT NULL
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7861
SELECT - - col0 * + CAST( - + 17 AS SIGNED ) - col0 + + + 72 AS col0 FROM tab0 AS cor0
----
-1494
-1674
-198

skipif mysql # not compatible
query I rowsort label-7861
SELECT - - col0 * + CAST ( - + 17 AS INTEGER ) - col0 + + + 72 AS col0 FROM tab0 AS cor0
----
-1494
-1674
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT DISTINCT 98 * - - 77 * + - COUNT( * ) FROM tab0
----
-22638

skipif mysql # not compatible
query I rowsort label-7862
SELECT DISTINCT 98 * - - 77 * + - COUNT ( * ) FROM tab0
----
-22638

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND + ( 38 )
----

query I rowsort
SELECT + 74 * + 96 + + col0 - + col1 - - col0 + + col0 FROM tab0 AS cor0
----
7068
7344
7394

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT DISTINCT COUNT( * ) + + 30 FROM tab1 cor0
----
33

skipif mysql # not compatible
query I rowsort label-7866
SELECT DISTINCT COUNT ( * ) + + 30 FROM tab1 cor0
----
33

query I rowsort
SELECT + + col1 + + col0 * col1 FROM tab1 AS cor0
----
430
4324
728

query I rowsort
SELECT DISTINCT + 99 + + col1 AS col0 FROM tab0
----
100
120
180

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT + COUNT( col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7869
SELECT + COUNT ( col2 ) FROM tab0
----
3

query I rowsort
SELECT ALL col1 - + - col2 * col1 FROM tab2
----
1224
3157
3953

query I rowsort
SELECT DISTINCT + col1 + 49 AS col2 FROM tab0
----
130
50
70

query I rowsort
SELECT DISTINCT col1 - + ( + 22 ) FROM tab2
----
29
45
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, 43 * + + col2 col2 FROM tab0
----
15
2021
87
430
97
4257

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT DISTINCT - SUM( + 68 ) AS col0 FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-7874
SELECT DISTINCT - SUM ( + 68 ) AS col0 FROM tab0
----
-204

query II rowsort
SELECT ALL col2, + col1 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT 94 * - + col1 FROM tab2
----
-4794
-6298
-7238

onlyif mysql # DIV for integer division: 
query I rowsort label-7877
SELECT ALL + col2 DIV - 76 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7877
SELECT ALL + col2 / - 76 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NULL <= col1 * - - 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7879
SELECT ALL - COUNT( * ) + - + MIN( + col1 ) AS col0 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL - COUNT ( * ) + - + MIN ( + col1 ) AS col0 FROM tab0 AS cor0
----
-4

query I rowsort
SELECT - - col0 * + 98 * - col2 * - col0 - - 45 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
24470253
41774995
55184629

query I rowsort
SELECT ALL ( + - 11 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT + + 22 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 91 + - - 46 * + + 49 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7884
SELECT - COUNT( * ) AS col0, ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT + ( col1 ) IS NULL
----
-3
3

skipif mysql # not compatible
query II rowsort label-7884
SELECT - COUNT ( * ) AS col0, ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT + ( col1 ) IS NULL
----
-3
3

query I rowsort
SELECT DISTINCT - 20 * - + 42 * - 63 FROM tab0 AS cor0
----
-52920

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 49
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7887
SELECT ALL + CAST( + - COUNT( - + 14 ) AS SIGNED ) * - 98 AS col1 FROM tab0 cor0
----
294

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL + CAST ( + - COUNT ( - + 14 ) AS INTEGER ) * - 98 AS col1 FROM tab0 cor0
----
294

query II rowsort
SELECT + + col0, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL - + 99 FROM tab1 AS cor0
----
-99
-99
-99

query II rowsort
SELECT + 11, + col1 * + 1 AS col0 FROM tab2 cor0
----
11
51
11
67
11
77

query I rowsort
SELECT - 75 * - col2 + - - col2 * col1 * - - col0 FROM tab2 AS cor0
----
200120
295800
55683

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7892
SELECT - COUNT( * ) DIV 28 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7892
SELECT - COUNT ( * ) / 28 AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - - 78 ) > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7894
SELECT DISTINCT - - COUNT( * ), COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7894
SELECT DISTINCT - - COUNT ( * ), COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 11 col2, + col0 + - col2 FROM tab1 WHERE NOT + col2 <= - col0 * col2 - - ( + col1 )
----
11
-45
11
23
11
26

query I rowsort
SELECT DISTINCT col0 * 74 AS col0 FROM tab1
----
3774
6290
6734

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7898
SELECT DISTINCT - MAX( DISTINCT - CAST( + col2 AS SIGNED ) ) * 92 FROM tab0
----
920

skipif mysql # not compatible
query I rowsort label-7898
SELECT DISTINCT - MAX ( DISTINCT - CAST ( + col2 AS INTEGER ) ) * 92 FROM tab0
----
920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7899
SELECT DISTINCT + CAST( - MAX( DISTINCT - col2 ) AS SIGNED ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT + CAST ( - MAX ( DISTINCT - col2 ) AS INTEGER ) FROM tab0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7900
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + COUNT( * ), 37 AS col1 FROM tab1 AS cor0
----
NULL
37

skipif mysql # not compatible
query II rowsort label-7900
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + COUNT ( * ), 37 AS col1 FROM tab1 AS cor0
----
NULL
37

onlyif mysql # DIV for integer division: 
query I rowsort label-7901
SELECT DISTINCT 49 DIV - col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT 49 / - col0 FROM tab2
----
-1
0

query I rowsort
SELECT - 82 * + col0 FROM tab0 AS cor0
----
-1230
-7134
-7954

query I rowsort
SELECT + + col2 FROM tab1 AS cor0 WHERE + col2 / + 61 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col2 + col0 * + - col1 * - col2 AS col0, 2 + col0 col2, - + 49 AS col2 FROM tab0 AS cor0
----
9 values hashing to 3fd2fb789ba759593fde4ae25f029d3a

query I rowsort
SELECT DISTINCT - col1 + - 79 FROM tab2 AS cor0
----
-130
-146
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-7906
SELECT ALL + + 94, + COUNT( * ) AS col1 FROM tab1 WHERE col1 IS NULL
----
94
0

skipif mysql # not compatible
query II rowsort label-7906
SELECT ALL + + 94, + COUNT ( * ) AS col1 FROM tab1 WHERE col1 IS NULL
----
94
0

query I rowsort
SELECT DISTINCT ( + col0 ) + - 47 + - 24 AS col1 FROM tab0
----
-56
16
26

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT MAX( col1 ) + 36 AS col0 FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-7908
SELECT MAX ( col1 ) + 36 AS col0 FROM tab0
----
117

onlyif mysql # DIV for integer division: 
query I rowsort label-7909
SELECT DISTINCT - col1 DIV - ( 96 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7909
SELECT DISTINCT - col1 / - ( 96 ) AS col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT ALL + + MIN( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL + + MIN ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7911
SELECT ALL - col2 DIV 85 - + ( - col1 ) AS col0, ( + 69 ) FROM tab0 AS cor0
----
0
69
21
69
81
69

skipif mysql # not compatible
query II rowsort label-7911
SELECT ALL - col2 / 85 - + ( - col1 ) AS col0, ( + 69 ) FROM tab0 AS cor0
----
0
69
21
69
81
69

query I rowsort
SELECT - col1 + + 21 + + col1 * ( + ( - col1 ) ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND col2 * + + col1 * 43
----

query I rowsort
SELECT DISTINCT + + 10 / 79 AS col1 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7916
SELECT CAST( - SUM( ALL col1 ) AS SIGNED ) col1, - COUNT( - + col0 ) AS col1 FROM tab0
----
-103
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7916
SELECT CAST ( - SUM ( ALL col1 ) AS INTEGER ) col1, - COUNT ( - + col0 ) AS col1 FROM tab0
----
-103
-3

query I rowsort
SELECT + + 16 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT MIN( - - col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7918
SELECT MIN ( - - col2 ) AS col2 FROM tab2 AS cor0
----
23

query II rowsort
SELECT 37, col0 FROM tab2 AS cor0
----
37
46
37
64
37
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7920
SELECT - - 61 AS col2, - SUM( ALL + 56 ) FROM tab2 AS cor0
----
61
-168

skipif mysql # not compatible
query II rowsort label-7920
SELECT - - 61 AS col2, - SUM ( ALL + 56 ) FROM tab2 AS cor0
----
61
-168

query I rowsort
SELECT ALL + - 63 AS col2 FROM tab0 cor0
----
-63
-63
-63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7922
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 / + + col0 * - + ( + - 64 ) + + CAST( 8 AS SIGNED ) AND + + 89 + - 78
----

skipif mysql # not compatible
query III rowsort label-7922
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 / + + col0 * - + ( + - 64 ) + + CAST ( 8 AS INTEGER ) AND + + 89 + - 78
----

query I rowsort
SELECT + col0 * + 67 FROM tab2 AS cor0
----
3082
4288
5025

query I rowsort
SELECT col1 + - 92 FROM tab1
----
-45
-78
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7925
SELECT ALL - 53 * - - 85 * + CAST( + col1 AS SIGNED ) col2 FROM tab2 WHERE NOT + col1 <= + - 33
----
-229755
-301835
-346885

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7925
SELECT ALL - 53 * - - 85 * + CAST ( + col1 AS INTEGER ) col2 FROM tab2 WHERE NOT + col1 <= + - 33
----
-229755
-301835
-346885

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col1 + - - col0 col2 FROM tab2
----
143
205
217

query I rowsort
SELECT + 54 + 24 * 76 + - + 24 AS col2 FROM tab0
----
1854
1854
1854

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( - ( - 79 ) / - + 73 ) AND + 88
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 76 ) col0 FROM tab0
----
-76
-76
-76

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col2 * - ( + + col1 ) AS col0 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT col1 * - col0 * - + col2 AS col0 FROM tab2
----
197120
291450
53958

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7933
SELECT + COUNT( DISTINCT - CAST( + - 55 AS SIGNED ) ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7933
SELECT + COUNT ( DISTINCT - CAST ( + - 55 AS INTEGER ) ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT + col2 * - + 31 * - col1 AS col1 FROM tab2 AS cor0
----
120466
36363
95480

query I rowsort
SELECT DISTINCT - + 62 + - + ( + col1 ) * 35 FROM tab1 cor0
----
-1707
-237
-552

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7936
SELECT DISTINCT + MAX( DISTINCT + col1 ) + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7936
SELECT DISTINCT + MAX ( DISTINCT + col1 ) + CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL

query III rowsort
SELECT ALL + col2 AS col0, col0 + - ( col0 ), + col1 FROM tab1 AS cor0
----
9 values hashing to 992ee2b91a8da965bf5e20769548b26d

query I rowsort
SELECT DISTINCT 59 * - col2 FROM tab0
----
-2773
-5841
-590

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7939
SELECT CAST( + 18 AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

skipif mysql # not compatible
query I rowsort label-7939
SELECT CAST ( + 18 AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query I rowsort
SELECT DISTINCT col2 * ( + + col0 ) + - - col1 AS col1 FROM tab0
----
786
891
9604

query III rowsort
SELECT * FROM tab0 WHERE + col2 BETWEEN - col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 = + 76
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7943
SELECT ALL COUNT( * ) - - CAST( NULL AS SIGNED ) + SUM( DISTINCT + col2 ) * - 0 * + COUNT( DISTINCT - + col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7943
SELECT ALL COUNT ( * ) - - CAST ( NULL AS INTEGER ) + SUM ( DISTINCT + col2 ) * - 0 * + COUNT ( DISTINCT - + col2 ) FROM tab2
----
NULL

query I rowsort
SELECT + - 83 + - col0 FROM tab0 cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT ALL col2 + - ( + col1 ) FROM tab2 AS cor0
----
-28
-37
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( - - 45 ) + + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 8 > NULL
----

query I rowsort
SELECT ALL + 15 + - col0 FROM tab1 AS cor0
----
-36
-70
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT MIN( + ( col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7949
SELECT MIN ( + ( col2 ) ) FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7950
SELECT ALL + col2 * + - col1 + + col1 AS col2, - 24 FROM tab1 cor0 WHERE NOT - col0 <= + - CAST( NULL AS DECIMAL ) * col1 * + col1 + + CAST( col1 AS SIGNED ) + + col0 * - col2
----

skipif mysql # not compatible
query II rowsort label-7950
SELECT ALL + col2 * + - col1 + + col1 AS col2, - 24 FROM tab1 cor0 WHERE NOT - col0 <= + - CAST ( NULL AS REAL ) * col1 * + col1 + + CAST ( col1 AS INTEGER ) + + col0 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT + SUM( DISTINCT ( - 67 ) ) FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-7951
SELECT + SUM ( DISTINCT ( - 67 ) ) FROM tab1
----
-67

query II rowsort
SELECT 16, + col2 FROM tab1
----
16
59
16
68
16
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT COUNT( ALL + col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7953
SELECT COUNT ( ALL + col0 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT + col1 - + + col2 + + col1 * + 73 * - 17 AS col1 FROM tab1
----
-17456
-58348
-6259

query I rowsort
SELECT - + 11 * - col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT + - col2 * + col0 + 8 AS col2 FROM tab1 AS cor0
----
-4888
-5007
-6180

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7957
SELECT - - CAST( NULL AS DECIMAL ) * - 22 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7957
SELECT - - CAST ( NULL AS REAL ) * - 22 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7958
SELECT COUNT( * ) DIV + - 91 * + + 59 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( ( 37 ) DIV 89 IS NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-7958
SELECT COUNT ( * ) / + - 91 * + + 59 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( ( 37 ) / 89 IS NULL ) )
----
0

query I rowsort
SELECT DISTINCT - 38 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-38

query I rowsort
SELECT DISTINCT ( + + 61 ) FROM tab0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT DISTINCT + SUM( - 79 ) FROM tab2 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-7961
SELECT DISTINCT + SUM ( - 79 ) FROM tab2 AS cor0
----
-237

query I rowsort
SELECT + col1 * - - col1 FROM tab2 AS cor0 WHERE NOT - col1 / - - 23 * - - col0 * + col0 IS NULL
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT - SUM( + col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-7963
SELECT - SUM ( + col0 ) AS col1 FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT DISTINCT + COUNT( DISTINCT - 35 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7964
SELECT DISTINCT + COUNT ( DISTINCT - 35 ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT DISTINCT SUM( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT SUM ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 50 col2 FROM tab1 AS cor0
----
-50
-50
-50

query I rowsort
SELECT 86 * + + col0 * col0 FROM tab2 AS cor0
----
181976
352256
483750

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 15 * - - 32 * col0 FROM tab2 AS cor0
----
-22080
-30720
-36000

onlyif mysql # DIV for integer division: 
query I rowsort label-7970
SELECT ALL + col2 DIV 27 FROM tab1
----
2
2
3

skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL + col2 / 27 FROM tab1
----
2
2
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7971
SELECT DISTINCT * FROM tab1 WHERE NOT - 37 / + 18 + + col1 + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7971
SELECT DISTINCT * FROM tab1 WHERE NOT - 37 / + 18 + + col1 + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT col1, 59 + 63 AS col2, + + col1 AS col1 FROM tab0
----
9 values hashing to 7d92cfb427c0e7d730f7179e300329a0

query I rowsort
SELECT DISTINCT - - col2 + + col1 * - col1 - - col0 * + - col0 FROM tab0 AS cor0
----
-6739
-8000
-9311

query I rowsort
SELECT + col1 + - 92 AS col0 FROM tab1 cor0
----
-45
-78
-87

query II rowsort
SELECT ALL col1 AS col2, col0 AS col1 FROM tab2
----
51
46
67
75
77
64

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 44 <= - col0
----

query I rowsort
SELECT + + col2 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + 77, + col2 + - col0 AS col0 FROM tab1
----
77
-23
77
-26
77
45

query I rowsort
SELECT + + col0 * 55 * - col0 FROM tab1 WHERE - col1 IS NOT NULL
----
-143055
-397375
-455455

query II rowsort
SELECT DISTINCT + + col1 AS col1, + col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7981
SELECT DISTINCT + + AVG ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7981
SELECT DISTINCT + + AVG ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + - 12 * - col1 * 6 + - col0 * - col2 * col1 AS col1 FROM tab0 AS cor0
----
19782
62937
9675

onlyif mysql # aggregate syntax: 
query I rowsort label-7983
SELECT - 23 - COUNT( * ) FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-7983
SELECT - 23 - COUNT ( * ) FROM tab0 AS cor0
----
-26

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 cor0 WHERE NOT col0 * - 35 NOT IN ( - 46 * + col1 * + - col0 + - - col0, 11, - + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + + 80 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7986
SELECT ALL - 68 * MAX( ALL - 57 ) AS col2 FROM tab0 AS cor0
----
3876

skipif mysql # not compatible
query I rowsort label-7986
SELECT ALL - 68 * MAX ( ALL - 57 ) AS col2 FROM tab0 AS cor0
----
3876

query I rowsort
SELECT col2 * + col2 + col1 - - col2 FROM tab2 AS cor0
----
1717
3489
603

query II rowsort
SELECT ALL 96 AS col0, - col0 AS col0 FROM tab2 cor0
----
96
-46
96
-64
96
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7989
SELECT DISTINCT + col1 * 30 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7989
SELECT DISTINCT + col1 * 30 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 FROM tab0 WHERE col2 / + 71 IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE + col0 * - col0 - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT 56 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7993
SELECT ALL col2 DIV + col2 AS col0, col2 + + col0 FROM tab2
----
1
104
1
133
1
69

skipif mysql # not compatible
query II rowsort label-7993
SELECT ALL col2 / + col2 AS col0, col2 + + col0 FROM tab2
----
1
104
1
133
1
69

query I rowsort
SELECT - 23 FROM tab0 WHERE NOT ( NOT ( NULL IS NOT NULL ) ) OR NOT 0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7995
SELECT + SUM( + - col1 ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-7995
SELECT + SUM ( + - col1 ) FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT + COUNT( DISTINCT 77 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7996
SELECT + COUNT ( DISTINCT 77 ) FROM tab0
----
1

query I rowsort
SELECT ALL + + 72 AS col2 FROM tab2 AS cor0
----
72
72
72

query II rowsort
SELECT DISTINCT col2 * - 17 AS col1, + col2 FROM tab0 AS cor0
----
-1683
99
-170
10
-799
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7999
SELECT DISTINCT - - COUNT( * ) DIV - + 82 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7999
SELECT DISTINCT - - COUNT ( * ) / - + 82 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8000
SELECT DISTINCT + COUNT( * ) col0 FROM tab0 WHERE - + col0 + - + col0 * col1 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8000
SELECT DISTINCT + COUNT ( * ) col0 FROM tab0 WHERE - + col0 + - + col0 * col1 IS NULL
----
0

query I rowsort
SELECT ALL col0 * col1 AS col1 FROM tab2 WHERE + + col2 IS NOT NULL
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8002
SELECT DISTINCT + col1, col2 + - ( - - CAST( NULL AS SIGNED ) ) + - col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-8002
SELECT DISTINCT + col1, col2 + - ( - - CAST ( NULL AS INTEGER ) ) + - col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query II rowsort
SELECT + - 55, col0 FROM tab2 AS cor0
----
-55
46
-55
64
-55
75

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT col1 < - col0
----
51
85
91

query I rowsort
SELECT ALL + 18 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 AND - - 50 + col2
----

query I rowsort
SELECT DISTINCT - col0 + 20 FROM tab1 AS cor0
----
-31
-65
-71

query I rowsort
SELECT DISTINCT + col0 + + col0 + + 59 AS col2 FROM tab0 cor0
----
233
253
89

query I rowsort
SELECT + col1 + - - 7 * + col0 + - col2 FROM tab2 AS cor0
----
350
485
534

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8010
SELECT ALL 61 DIV + + COUNT( * ) AS col2 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL 61 / + + COUNT ( * ) AS col2 FROM tab0
----
20

query I rowsort
SELECT col2 * + + ( - col0 ) + col0 FROM tab1
----
-4845
-4930
-6097

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + - 81 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 22 * + col0 + + col1 + + + col0 FROM tab2
----
-1267
-1508
-915

query I rowsort
SELECT + 46 * + 94 FROM tab2
----
4324
4324
4324

query I rowsort
SELECT + ( + 84 ) AS col2 FROM tab2
----
84
84
84

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8016
SELECT DISTINCT - COUNT( DISTINCT CAST( - 89 AS DECIMAL ) ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8016
SELECT DISTINCT - COUNT ( DISTINCT CAST ( - 89 AS REAL ) ) AS col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT + MAX( ALL + - 28 ) col1 FROM tab0
----
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8017
SELECT + MAX ( ALL + - 28 ) col1 FROM tab0
----
-28

query III rowsort
SELECT * FROM tab1 WHERE NULL <= 11
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE NOT ( - - 45 ) + - + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + + - 36 FROM tab2 cor0 WHERE NOT col1 IS NULL
----
-13
22
4

query I rowsort
SELECT 3 FROM tab2 AS cor0 WHERE col1 BETWEEN + col1 AND col1
----
3
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8022
SELECT ALL MAX( ALL col1 ) * + MAX( DISTINCT + CAST( - 60 AS SIGNED ) ) FROM tab1 cor0
----
-2820

skipif mysql # not compatible
query I rowsort label-8022
SELECT ALL MAX ( ALL col1 ) * + MAX ( DISTINCT + CAST ( - 60 AS INTEGER ) ) FROM tab1 cor0
----
-2820

query I rowsort
SELECT DISTINCT - + 70 AS col0 FROM tab0 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8024
SELECT + ( + ( - - ( COUNT( * ) ) ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8024
SELECT + ( + ( - - ( COUNT ( * ) ) ) ) FROM tab0 cor0
----
3

query III rowsort
SELECT ALL col0 * 21 AS col2, col2 * + col1, col0 AS col1 FROM tab2
----
9 values hashing to 524ce78a7dd5fbb66ed45c8b02d63db4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8026
SELECT ALL - 21 * col0 FROM tab0 WHERE + col0 * - col2 * + ( CAST( NULL AS DECIMAL ) ) IS NULL
----
-1827
-2037
-315

skipif mysql # not compatible
query I rowsort label-8026
SELECT ALL - 21 * col0 FROM tab0 WHERE + col0 * - col2 * + ( CAST ( NULL AS REAL ) ) IS NULL
----
-1827
-2037
-315

query II rowsort
SELECT ALL col2, col0 AS col1 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT ALL - MAX( - 82 ) AS col1 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL - MAX ( - 82 ) AS col1 FROM tab1
----
82

query I rowsort
SELECT + col1 * - col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 7
----

query I rowsort
SELECT ALL + 35 AS col0 FROM tab1 cor0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8031
SELECT + MAX( ALL - ( + 88 ) ) col2 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8031
SELECT + MAX ( ALL - ( + 88 ) ) col2 FROM tab1 AS cor0
----
-88

query I rowsort
SELECT DISTINCT 41 * + col2 FROM tab0 AS cor0
----
1927
4059
410

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT ALL - MAX( - - 4 ) * + 77 * COUNT( + ( + + 28 ) ) AS col2 FROM tab2 AS cor0
----
-924

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL - MAX ( - - 4 ) * + 77 * COUNT ( + ( + + 28 ) ) AS col2 FROM tab2 AS cor0
----
-924

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8035
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = - col1 * - CAST( NULL AS SIGNED ) * + 8 + - 98
----

skipif mysql # not compatible
query III rowsort label-8035
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = - col1 * - CAST ( NULL AS INTEGER ) * + 8 + - 98
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8036
SELECT DISTINCT - CAST( - - ( + 72 ) AS SIGNED ) DIV + MIN( DISTINCT + col0 ) AS col1, COUNT( * ) * + 28 AS col2 FROM tab1 AS cor0
----
-1
84

skipif mysql # not compatible
query II rowsort label-8036
SELECT DISTINCT - CAST ( - - ( + 72 ) AS INTEGER ) / + MIN ( DISTINCT + col0 ) AS col1, COUNT ( * ) * + 28 AS col2 FROM tab1 AS cor0
----
-1
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8037
SELECT SUM( ALL - - CAST( col2 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8037
SELECT SUM ( ALL - - CAST ( col2 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT ALL + - COUNT( * ) + - MIN( ALL 29 ) + COUNT( ALL - - col1 ) AS col2 FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL + - COUNT ( * ) + - MIN ( ALL 29 ) + COUNT ( ALL - - col1 ) AS col2 FROM tab1 AS cor0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8039
SELECT DISTINCT - CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT - CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL + ( - col0 ) * - col0 + col1 FROM tab0 AS cor0
----
306
7590
9410

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 72 * + + col2 IS NULL
----

query I rowsort
SELECT + + col1 * - + 22 AS col1 FROM tab2 AS cor0
----
-1122
-1474
-1694

query I rowsort
SELECT + col1 * ( - ( col2 ) ) FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-8044
SELECT ALL - MIN( DISTINCT - col0 ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8044
SELECT ALL - MIN ( DISTINCT - col0 ) FROM tab2
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8045
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8045
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - COUNT ( * ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL > + 7 - + + 62
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8047
SELECT ALL 43 * + + CAST( CAST( - - COUNT( * ) AS DECIMAL ) AS SIGNED ), - 39 AS col2 FROM tab1
----
129
-39

skipif mysql # not compatible
query II rowsort label-8047
SELECT ALL 43 * + + CAST ( CAST ( - - COUNT ( * ) AS REAL ) AS INTEGER ), - 39 AS col2 FROM tab1
----
129
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-8048
SELECT DISTINCT + ( + col1 ) DIV - - col1 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT + ( + col1 ) / - - col1 AS col1 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + col0 col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT + 33 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-8050
SELECT + 33 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
36

query II rowsort
SELECT ALL - 65, - 25 * - col0 AS col0 FROM tab2 AS cor0
----
-65
1150
-65
1600
-65
1875

query II rowsort
SELECT - + col2 AS col2, col0 AS col2 FROM tab0 cor0
----
-10
87
-47
15
-99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 + + col2 col0 FROM tab1
----
-13
-4
24

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 - + col0 <> col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8055
SELECT COUNT( * ) - + - COUNT( * ) AS col0, COUNT( * ) AS col1 FROM tab1
----
6
3

skipif mysql # not compatible
query II rowsort label-8055
SELECT COUNT ( * ) - + - COUNT ( * ) AS col0, COUNT ( * ) AS col1 FROM tab1
----
6
3

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE ( NULL NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ( - - col1 ) * - + ( col0 ) + col1 FROM tab2 AS cor0
----
-2295
-4851
-4958

query I rowsort
SELECT ALL - + col2 AS col1 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8059
SELECT - + 33 * - + COUNT( * ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8059
SELECT - + 33 * - + COUNT ( * ) FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT + SUM( ALL + - 34 ) * - COUNT( ALL - col0 ) col0 FROM tab1 AS cor0
----
306

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8060
SELECT + SUM ( ALL + - 34 ) * - COUNT ( ALL - col0 ) col0 FROM tab1 AS cor0
----
306

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT col2 / - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 73 FROM tab1 cor0
----
-73

query I rowsort
SELECT 17 AS col1 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8064
SELECT 50 DIV - col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8064
SELECT 50 / - col1 AS col2 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL - col1 AS col2, - 18 FROM tab0
----
-1
-18
-21
-18
-81
-18

onlyif mysql # aggregate syntax: 
query II rowsort label-8066
SELECT ALL COUNT( * ) AS col0, - 39 AS col0 FROM tab1
----
3
-39

skipif mysql # not compatible
query II rowsort label-8066
SELECT ALL COUNT ( * ) AS col0, - 39 AS col0 FROM tab1
----
3
-39

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( col2, + col2 * ( + - col0 ) )
----

query II rowsort
SELECT DISTINCT + 70, 1 AS col0 FROM tab0
----
70
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT COUNT( ALL + - col2 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8069
SELECT COUNT ( ALL + - col2 ) col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8070
SELECT DISTINCT CAST( + - col2 AS SIGNED ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8070
SELECT DISTINCT CAST ( + - col2 AS INTEGER ) FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-8071
SELECT ALL 0, + MAX( 84 ) col1 FROM tab1
----
0
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8071
SELECT ALL 0, + MAX ( 84 ) col1 FROM tab1
----
0
84

query I rowsort
SELECT 4 * - col2 * + 56 / col0 + + - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 14 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8073
SELECT ALL - - 38 * 40 + + ( col1 ) + + CAST( NULL AS DECIMAL ) + + + col1 + - ( col1 ) * - col0 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8073
SELECT ALL - - 38 * 40 + + ( col1 ) + + CAST ( NULL AS REAL ) + + + col1 + - ( col1 ) * - col0 * + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + 71 + col0 + + col1 * - col0 AS col2 FROM tab2 AS cor0
----
-193
1321
603

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT SUM( - + col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-8076
SELECT SUM ( - + col1 ) AS col2 FROM tab0
----
-103

query I rowsort
SELECT - col0 + + + 9 AS col1 FROM tab1 AS cor0
----
-42
-76
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT DISTINCT + 85 + ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-8078
SELECT DISTINCT + 85 + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
88

query I rowsort
SELECT - col0 + - ( 8 ) FROM tab0 AS cor0
----
-105
-23
-95

query I rowsort
SELECT DISTINCT + 16 + - - col2 FROM tab1 cor0
----
112
75
84

query I rowsort
SELECT + + col1 + + - col0 FROM tab1 AS cor0
----
-37
-44
-80

query I rowsort
SELECT DISTINCT + ( 91 ) * - - col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL - - col0 + - col2 * - col0 FROM tab0 AS cor0
----
720
957
9700

query I rowsort
SELECT ALL + col1 + 60 + col1 * + col1 + - 10 FROM tab2 AS cor0
----
2702
4606
6056

query I rowsort
SELECT DISTINCT - - col1 * + col0 + col2 + - col2 AS col1 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT ALL + col0 * 35 FROM tab1
----
1785
2975
3185

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT DISTINCT + COUNT( + - col1 ) * + COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT + COUNT ( + - col1 ) * + COUNT ( * ) FROM tab1
----
9

query I rowsort
SELECT ALL + col2 * + 1 AS col0 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8089
SELECT ALL 26 * COUNT( ALL ( - 63 ) ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-8089
SELECT ALL 26 * COUNT ( ALL ( - 63 ) ) FROM tab2
----
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 63 col1 FROM tab2
----
2898
4032
4725

query I rowsort
SELECT ( - + 0 ) * + 41 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * 45 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE - 4 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT ALL COUNT( * ) FROM tab2 WHERE NULL <= - ( 64 )
----
0

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL COUNT ( * ) FROM tab2 WHERE NULL <= - ( 64 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT + - COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8095
SELECT + - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8096
SELECT ALL 46 DIV - 26 + col0 + + col0 + - col1 * + - col1 * + col2 - ( 81 ) FROM tab2 cor0
----
237206
260430
59833

skipif mysql # not compatible
query I rowsort label-8096
SELECT ALL 46 / - 26 + col0 + + col0 + - col1 * + - col1 * + col2 - ( 81 ) FROM tab2 cor0
----
237206
260430
59833

query I rowsort
SELECT + + col0 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

query II rowsort
SELECT DISTINCT col0 AS col2, - col0 AS col1 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

query II rowsort
SELECT ALL + + col0, col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 AS cor0 WHERE NOT NULL <= - col0 * - col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col1 + + + col0 = NULL
----

query I rowsort
SELECT ALL + col2 * 12 * col0 FROM tab1
----
58752
60180
74256

query I rowsort
SELECT + - 18 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab1 WHERE NULL >= + col0 / - - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 74 * - col2 + - col1 + + col2 > - col1 + + - 12
----

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8107
SELECT CAST( 94 AS SIGNED ) * col2 + col0 * - 19 * - - col0 * - - col2 AS col1 FROM tab0 AS cor0
----
-1437170
-17689023
-196507

skipif mysql # not compatible
query I rowsort label-8107
SELECT CAST ( 94 AS INTEGER ) * col2 + col0 * - 19 * - - col0 * - - col2 AS col1 FROM tab0 AS cor0
----
-1437170
-17689023
-196507

query I rowsort
SELECT - + 1 AS col1 FROM tab1 cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 64 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8110
SELECT DISTINCT + col0 + CAST( - col2 AS SIGNED ) AS col1, 26 * ( + col1 ) col0 FROM tab2 AS cor0
----
17
1742
23
1326
24
2002

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8110
SELECT DISTINCT + col0 + CAST ( - col2 AS INTEGER ) AS col1, 26 * ( + col1 ) col0 FROM tab2 AS cor0
----
17
1742
23
1326
24
2002

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT DISTINCT + SUM( ALL + 24 ) AS col1 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-8111
SELECT DISTINCT + SUM ( ALL + 24 ) AS col1 FROM tab0 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT ALL - - COUNT( * ) + ( + COUNT( * ) ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8112
SELECT ALL - - COUNT ( * ) + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL + 59 + 56 AS col2 FROM tab2 AS cor0
----
115
115
115

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8114
SELECT - 89 DIV CAST( col2 AS SIGNED ) - - col1 + 21 col1 FROM tab1 AS cor0
----
25
35
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8114
SELECT - 89 / CAST ( col2 AS INTEGER ) - - col1 + 21 col1 FROM tab1 AS cor0
----
25
35
67

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT col2 + col1 + - - 80 * - - ( 44 ) FROM tab1
----
3584
3630
3635

query I rowsort
SELECT + 96 * + col2 * 19 + - col1 AS col1 FROM tab1
----
107611
123985
175090

query I rowsort
SELECT DISTINCT - - col2 + + - col0 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT 75 * + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> ( - - col2 )
----

query II rowsort
SELECT DISTINCT ( - col2 ), - col2 AS col0 FROM tab1
----
-59
-59
-68
-68
-96
-96

query I rowsort
SELECT col1 FROM tab2 WHERE NOT 9 IS NULL
----
51
67
77

query I rowsort
SELECT + - col2 * + 53 AS col0 FROM tab2 AS cor0
----
-1219
-2120
-3074

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8124
SELECT ALL COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) * + - SUM( ALL - col1 ) DIV + - 31 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8124
SELECT ALL COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) * + - SUM ( ALL - col1 ) / + - 31 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT DISTINCT + + COUNT( * ) col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8125
SELECT DISTINCT + + COUNT ( * ) col2 FROM tab2 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> 69
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8128
SELECT col2 DIV 10 FROM tab2
----
2
4
5

skipif mysql # not compatible
query I rowsort label-8128
SELECT col2 / 10 FROM tab2
----
2
4
5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 74 FROM tab0 WHERE + 1 IS NOT NULL
----
74
74
74

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8132
SELECT + SUM( + 91 ) FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-8132
SELECT + SUM ( + 91 ) FROM tab0
----
273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8133
SELECT + COUNT( * ) / - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8133
SELECT + COUNT ( * ) / - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT + COUNT( * ) col0 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8134
SELECT + COUNT ( * ) col0 FROM tab1, tab1 AS cor0
----
9

query II rowsort
SELECT DISTINCT + col2 + - col0 + - col1, + ( + col1 ) AS col1 FROM tab2 AS cor0
----
-101
77
-74
51
-84
67

query I rowsort
SELECT ALL 59 + 10 AS col0 FROM tab1 AS cor0
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT SUM( + col1 ) FROM tab0 WHERE NOT ( - col1 ) IS NULL
----
103

skipif mysql # not compatible
query I rowsort label-8137
SELECT SUM ( + col1 ) FROM tab0 WHERE NOT ( - col1 ) IS NULL
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-8138
SELECT 93 DIV 85 - col1 FROM tab0
----
-20
-80
0

skipif mysql # not compatible
query I rowsort label-8138
SELECT 93 / 85 - col1 FROM tab0
----
-20
-80
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8139
SELECT col0 DIV col0 - col0 FROM tab1
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-8139
SELECT col0 / col0 - col0 FROM tab1
----
-50
-84
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT DISTINCT + COUNT( DISTINCT col0 ) * + 85 + - COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL NOT IN ( - ( 4 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT + COUNT ( DISTINCT col0 ) * + 85 + - COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL NOT IN ( - ( 4 ) )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 54 + 48 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 44 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT + COUNT( DISTINCT col1 ) * + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8143
SELECT + COUNT ( DISTINCT col1 ) * + COUNT ( * ) FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8144
SELECT - col0 * CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8144
SELECT - col0 * CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 28 AS col0 FROM tab0 WHERE 99 BETWEEN + col2 * + 99 AND ( + col2 )
----

query I rowsort
SELECT + col2 * - 62 AS col2 FROM tab0
----
-2914
-6138
-620

query I rowsort
SELECT + 29 * - col2 FROM tab1
----
-1711
-1972
-2784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 25 col0 FROM tab2
----
25
25
25

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > ( col1 )
----

query I rowsort
SELECT + ( 31 ) * col2 FROM tab2
----
1240
1798
713

query III rowsort
SELECT * FROM tab1 WHERE - 69 / 58 BETWEEN col1 / - ( col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8152
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( - col0 - - col2 * CAST( NULL AS SIGNED ) ) AND col1 * + CAST( col1 * 91 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8152
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( - col0 - - col2 * CAST ( NULL AS INTEGER ) ) AND col1 * + CAST ( col1 * 91 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8153
SELECT DISTINCT + COUNT( * ) * - 56 FROM tab2
----
-168

skipif mysql # not compatible
query I rowsort label-8153
SELECT DISTINCT + COUNT ( * ) * - 56 FROM tab2
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-8154
SELECT COUNT( ALL 63 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8154
SELECT COUNT ( ALL 63 ) AS col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 col1 FROM tab1
----
20
20
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8156
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) * - col2 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) * - col2 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col2 + - col2 * + 92 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( - col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND + col0 - col1
----

query I rowsort
SELECT DISTINCT - col0 * - col2 AS col1 FROM tab0
----
705
870
9603

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 98 * - ( + col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col0 * + 74 )
----

query I rowsort
SELECT DISTINCT + 46 * + col2 AS col0 FROM tab0
----
2162
4554
460

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8163
SELECT CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col2
----

skipif mysql # not compatible
query I rowsort label-8163
SELECT CAST ( NULL AS REAL ) FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col2
----

query I rowsort
SELECT ALL + 81 AS col2 FROM tab1 WHERE NOT col1 * col2 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8165
SELECT + 68 DIV ( COUNT( * ) ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-8165
SELECT + 68 / ( COUNT ( * ) ) FROM tab2
----
22

query I rowsort
SELECT DISTINCT + 61 - - col2 FROM tab1
----
120
129
157

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8168
SELECT DISTINCT * FROM tab1 WHERE - CAST( 37 AS SIGNED ) - - 82 * - col2 NOT BETWEEN + col1 * - 9 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8168
SELECT DISTINCT * FROM tab1 WHERE - CAST ( 37 AS INTEGER ) - - 82 * - col2 NOT BETWEEN + col1 * - 9 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8169
SELECT ALL - MIN( ALL - 5 ) FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8169
SELECT ALL - MIN ( ALL - 5 ) FROM tab2 AS cor0
----
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col0 FROM tab2 AS cor0
----
9
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8172
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST( + col2 AS SIGNED ) ) = NULL
----

skipif mysql # not compatible
query III rowsort label-8172
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST ( + col2 AS INTEGER ) ) = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8173
SELECT COUNT( * ) DIV COUNT( DISTINCT 21 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8173
SELECT COUNT ( * ) / COUNT ( DISTINCT 21 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col2 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT + COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-8175
SELECT + COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8176
SELECT - COUNT( * ) + + 42 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
33

skipif mysql # not compatible
query I rowsort label-8176
SELECT - COUNT ( * ) + + 42 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
33

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 30 ) * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * 63 AS col2 FROM tab1 AS cor0
----
3717
4284
6048

onlyif mysql # aggregate syntax: 
query I rowsort label-8179
SELECT ALL + + 6 * COUNT( * ) FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL + + 6 * COUNT ( * ) FROM tab0 cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8180
SELECT + ( CAST( col1 AS SIGNED ) ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8180
SELECT + ( CAST ( col1 AS INTEGER ) ) FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT col2 AS col0 FROM tab2 cor0 WHERE NOT - ( - ( - col0 ) ) * col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8182
SELECT 78 + col2 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL >= 91
----

skipif mysql # not compatible
query I rowsort label-8182
SELECT 78 + col2 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL >= 91
----

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT - 33 NOT BETWEEN NULL AND col1 / + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT COUNT( * ) * 16 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-8184
SELECT COUNT ( * ) * 16 FROM tab1 AS cor0
----
48

query I rowsort
SELECT ALL + 63 * + col0 FROM tab2 AS cor0
----
2898
4032
4725

query I rowsort
SELECT DISTINCT + col1 * + 14 AS col1 FROM tab2 AS cor0
----
1078
714
938

query I rowsort
SELECT ALL + - col2 * ( - col1 - - ( - 88 ) ) AS col0 FROM tab1 AS cor0
----
5487
9180
9792

onlyif mysql # aggregate syntax: 
query I rowsort label-8188
SELECT SUM( + col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8188
SELECT SUM ( + col1 ) FROM tab0 AS cor0
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-8189
SELECT DISTINCT + col2 DIV - + 48 * - col1 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-8189
SELECT DISTINCT + col2 / - + 48 * - col1 FROM tab0
----
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 54 col0 FROM tab0 WHERE + col1 IS NOT NULL
----
-4698
-5238
-810

query I rowsort
SELECT ALL col1 * + 7 FROM tab2 AS cor0
----
357
469
539

query I rowsort
SELECT DISTINCT + col2 * + - col1 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT + 47 + - + 93 FROM tab2 AS cor0
----
-46
-46
-46

query I rowsort
SELECT - - col2 + - 47 FROM tab0 AS cor0
----
-37
0
52

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 69 ) <> + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8196
SELECT DISTINCT + col1 + 26 DIV col1 AS col1 FROM tab0
----
22
27
81

skipif mysql # not compatible
query I rowsort label-8196
SELECT DISTINCT + col1 + 26 / col1 AS col1 FROM tab0
----
22
27
81

query II rowsort
SELECT - col0 AS col0, col2 FROM tab2
----
-46
23
-64
40
-75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT ALL COUNT( * ) col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8198
SELECT ALL COUNT ( * ) col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8199
SELECT + col0 DIV - 61 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8199
SELECT + col0 / - 61 FROM tab1
----
-1
-1
0

query I rowsort
SELECT + 68 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT ALL + - ( + 82 ) AS col2 FROM tab1 AS cor0
----
-82
-82
-82

query II rowsort
SELECT DISTINCT - col0, col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8203
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 * CAST( NULL AS SIGNED ) NOT BETWEEN col1 AND col0
----

skipif mysql # not compatible
query III rowsort label-8203
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 * CAST ( NULL AS INTEGER ) NOT BETWEEN col1 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT DISTINCT - COUNT( ALL - col1 ) FROM tab0 AS cor0 WHERE NULL < ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8204
SELECT DISTINCT - COUNT ( ALL - col1 ) FROM tab0 AS cor0 WHERE NULL < ( col0 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8205
SELECT CAST( col2 AS SIGNED ) FROM tab0 AS cor0 WHERE col0 * + col1 NOT IN ( col1 + 85 )
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8205
SELECT CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 WHERE col0 * + col1 NOT IN ( col1 + 85 )
----
10
47
99

query I rowsort
SELECT DISTINCT + - col1 + + 58 AS col2 FROM tab0 AS cor0
----
-23
37
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8207
SELECT ALL COUNT( * ) * + 79 + 56 * 19 FROM tab2 WHERE NOT ( col1 ) >= col0 * + col1 AND ( NULL ) NOT BETWEEN - col0 + 72 / - col0 AND ( NULL )
----
1064

skipif mysql # not compatible
query I rowsort label-8207
SELECT ALL COUNT ( * ) * + 79 + 56 * 19 FROM tab2 WHERE NOT ( col1 ) >= col0 * + col1 AND ( NULL ) NOT BETWEEN - col0 + 72 / - col0 AND ( NULL )
----
1064

query I rowsort
SELECT DISTINCT col1 + + + col1 AS col1 FROM tab2
----
102
134
154

query I rowsort
SELECT + col0 + col0 + - col0 AS col1 FROM tab0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IS NULL AND NOT - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col0 NOT BETWEEN NULL AND + col2 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + 14 <> - col0 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col1 * 26 IN ( col2 )
----

query I rowsort
SELECT - col2 * - + 11 AS col1 FROM tab2
----
253
440
638

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 31 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 IN ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col2 * - + col0 * - col0 + - 2 * - col0 <= + 25
----

query IIIIII rowsort
SELECT * FROM tab1 cor0 JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # aggregate syntax: 
query I rowsort label-8219
SELECT DISTINCT MAX( ALL col2 ) * - 31 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN col1 AND 40
----
-1798

skipif mysql # not compatible
query I rowsort label-8219
SELECT DISTINCT MAX ( ALL col2 ) * - 31 FROM tab2 AS cor0 WHERE col0 NOT BETWEEN col1 AND 40
----
-1798

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 + + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8221
SELECT DISTINCT AVG ( ALL col1 ) * - CAST( NULL AS SIGNED ) * + + COUNT( * ) * - 30 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT AVG ( ALL col1 ) * - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) * - 30 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT DISTINCT + - SUM( DISTINCT + - 63 ) + + - MAX( - col0 ) * + - COUNT( * ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8222
SELECT DISTINCT + - SUM ( DISTINCT + - 63 ) + + - MAX ( - col0 ) * + - COUNT ( * ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT col0 * + + col1 + + col0 + 2 * - col1 FROM tab0 AS cor0
----
1068
1872
192

query I rowsort
SELECT DISTINCT col1 * + + col0 AS col0 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + + col0 ) IN ( - col1 + col1 * + - ( col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8226
SELECT COUNT( * ) * 20 AS col0 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-8226
SELECT COUNT ( * ) * 20 AS col0 FROM tab1
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8227
SELECT ALL + CAST( + col1 AS SIGNED ) AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8227
SELECT ALL + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT 11 * + col2 * - col2 FROM tab1
----
-101376
-38291
-50864

query I rowsort
SELECT DISTINCT ( - - 31 ) * + + col2 AS col2 FROM tab0
----
1457
3069
310

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + col2 NOT IN ( col0 + + 90 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 66 AND + col0
----

query II rowsort
SELECT + + col2, + col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL < - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL < - col0 )
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 45 / - col0 NOT IN ( - 48 * + 43 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - col1 + - + col1 * + - ( + col1 ) * - 18 AS col2, - col2 + 14 AS col2 FROM tab2 AS cor0
----
-106799
-26
-46869
-9
-80869
-44

query I rowsort
SELECT DISTINCT 14 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
14

query I rowsort
SELECT ALL col2 + + col0 + - + col0 * 67 AS col1 FROM tab1 AS cor0
----
-3270
-5551
-5938

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col0 ) < + 0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8239
SELECT + col0 - - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8239
SELECT + col0 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 2 + + - ( + + 59 ) AS col2 FROM tab0
----
-61
-61
-61

query II rowsort
SELECT ALL - col1 AS col2, col1 AS col1 FROM tab0
----
-1
1
-21
21
-81
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8242
SELECT ALL 1, CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
1
NULL
1
NULL
1
NULL

skipif mysql # not compatible
query II rowsort label-8242
SELECT ALL 1, CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
1
NULL
1
NULL
1
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8243
SELECT DISTINCT - col0 col2, - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8243
SELECT DISTINCT - col0 col2, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15
NULL
-87
NULL
-97
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + 68 BETWEEN - 76 AND - col1 * - 7
----
97
1
99

query III rowsort
SELECT * FROM tab0 WHERE NOT + 7 - - - 41 >= 22
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE 70 * + ( ( + 86 ) ) > + + col2 + + col2 OR NOT col0 > NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( - - 24 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 55 AS col2 FROM tab0 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT DISTINCT + MIN( col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT + MIN ( col1 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 < - col1 * + 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 61 + + col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 * - - col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 35 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( col1, + col2 )
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 50 IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8255
SELECT - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8255
SELECT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 82 AS col1 FROM tab2 cor0
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8257
SELECT + CAST( col0 AS SIGNED ), col0 + - col2 + - 59 col2 FROM tab1 AS cor0
----
51
-104
85
-33
91
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8257
SELECT + CAST ( col0 AS INTEGER ), col0 + - col2 + - 59 col2 FROM tab1 AS cor0
----
51
-104
85
-33
91
-36

query I rowsort
SELECT + col0 * col2 AS col0 FROM tab1 cor0 WHERE NOT + col0 NOT BETWEEN 5 AND NULL
----

query I rowsort
SELECT ALL + col0 * + + ( 85 ) + - col2 FROM tab2 AS cor0
----
3887
5400
6317

query I rowsort
SELECT DISTINCT - 8 + col2 AS col2 FROM tab1 AS cor0
----
51
60
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT ALL + 19 + MAX( 65 ) AS col0 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL + 19 + MAX ( 65 ) AS col0 FROM tab0 AS cor0
----
84

query I rowsort
SELECT ALL + 45 * + + col1 FROM tab1
----
2115
225
630

query III rowsort
SELECT * FROM tab2 WHERE + col1 + - + 43 + + + col0 + - 93 NOT BETWEEN ( + col2 - + - col0 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8264
SELECT DISTINCT + 1 * + CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8264
SELECT DISTINCT + 1 * + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8265
SELECT ALL MIN( + col1 ) DIV - MIN( DISTINCT - col2 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL MIN ( + col1 ) / - MIN ( DISTINCT - col2 ) AS col2 FROM tab2
----
0

query I rowsort
SELECT - 26 + - + col0 AS col2 FROM tab2 AS cor0
----
-101
-72
-90

query I rowsort
SELECT - - col0 + - - 32 FROM tab1 AS cor0
----
117
123
83

query I rowsort
SELECT ALL + 95 + + - col0 + - + col2 * + 14 * - ( + - 73 ) * + col2 * - col2 AS col2 FROM tab1 AS cor0
----
209897348
321349508
904200236

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT DISTINCT + 75 + + MAX( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
122

skipif mysql # not compatible
query I rowsort label-8269
SELECT DISTINCT + 75 + + MAX ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
122

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8271
SELECT CAST( + col0 AS SIGNED ) * - + col0 FROM tab0 AS cor0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-8271
SELECT CAST ( + col0 AS INTEGER ) * - + col0 FROM tab0 AS cor0
----
-225
-7569
-9409

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 >= col0
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT + ( + SUM( + 7 ) ) / COUNT( * ) AS col1 FROM tab0 WHERE NOT - col1 NOT BETWEEN NULL AND - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8273
SELECT + ( + SUM ( + 7 ) ) / COUNT ( * ) AS col1 FROM tab0 WHERE NOT - col1 NOT BETWEEN NULL AND - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT - SUM( ALL + 99 ) FROM tab2
----
-297

skipif mysql # not compatible
query I rowsort label-8274
SELECT - SUM ( ALL + 99 ) FROM tab2
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT ALL - - MIN( DISTINCT + 82 ) col1 FROM tab1 AS cor0
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8275
SELECT ALL - - MIN ( DISTINCT + 82 ) col1 FROM tab1 AS cor0
----
82

query I rowsort
SELECT DISTINCT + - 71 FROM tab0 cor0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8277
SELECT DISTINCT CAST( - ( + - 82 ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-8277
SELECT DISTINCT CAST ( - ( + - 82 ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8278
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 57 * + col1 - - 57 * - 73 BETWEEN ( col0 + - CAST( NULL AS SIGNED ) * ( + - 18 ) ) AND 30
----

skipif mysql # not compatible
query III rowsort label-8278
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 57 * + col1 - - 57 * - 73 BETWEEN ( col0 + - CAST ( NULL AS INTEGER ) * ( + - 18 ) ) AND 30
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8279
SELECT + 3 - - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8279
SELECT + 3 - - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT ALL col0 AS col0, col1 AS col2 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT ALL + + col0 + 5 AS col0 FROM tab1 AS cor0
----
56
90
96

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 / col0 IS NULL
----

query I rowsort
SELECT 55 * col0 FROM tab2 AS cor0 WHERE ( NULL ) <> - 84 * - 82 * - 27
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 >= - + 79 * + col0 + 65
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col2 + - + col1 + - col2, col0 AS col0 FROM tab2 cor0
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL - 22 + - - ( COUNT( * ) ) col1 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8286
SELECT ALL - 22 + - - ( COUNT ( * ) ) col1 FROM tab1 AS cor0
----
-19

query I rowsort
SELECT 18 + col1 FROM tab0 AS cor0
----
19
39
99

query I rowsort
SELECT + - 90 * + + col0 * 11 AS col0 FROM tab1 AS cor0 WHERE - 5 >= - - col2
----

query I rowsort
SELECT ( - col0 ) + - 76 AS col0 FROM tab2
----
-122
-140
-151

query I rowsort
SELECT ALL - 91 * + 81 FROM tab2
----
-7371
-7371
-7371

query I rowsort
SELECT DISTINCT - 57 * 44 AS col0 FROM tab1
----
-2508

onlyif mysql # DIV for integer division: 
query I rowsort label-8292
SELECT ALL - col1 DIV + 48 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL - col1 / + 48 AS col2 FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT ALL ( + + COUNT( * ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL ( + + COUNT ( * ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT + col0 + - col1 + 1 AS col0 FROM tab0 AS cor0
----
-65
67
97

query I rowsort
SELECT + 6 + + + col0 FROM tab0
----
103
21
93

query I rowsort
SELECT - col2 + + + col1 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT ALL - 68 - col1 AS col0 FROM tab2
----
-119
-135
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT DISTINCT MAX( + col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT MAX ( + col2 ) AS col0 FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT 20 * col1 + col2 + - 48 * + + col2 AS col2 FROM tab2 cor0
----
-1386
-340
-61

query II rowsort
SELECT DISTINCT col1, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT ALL - 18 * - + MIN( col2 ) col2 FROM tab2 AS cor0
----
414

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8301
SELECT ALL - 18 * - + MIN ( col2 ) col2 FROM tab2 AS cor0
----
414

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col2 * + - 86 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT ALL - ( + ( + COUNT( * ) ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8303
SELECT ALL - ( + ( + COUNT ( * ) ) ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT 43 * 44 + + 13 AS col1 FROM tab2 AS cor0
----
1905
1905
1905

query I rowsort
SELECT ALL + 24 * - + 15 AS col1 FROM tab1 AS cor0
----
-360
-360
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-8306
SELECT MIN( - 50 ) AS col0 FROM tab2 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-8306
SELECT MIN ( - 50 ) AS col0 FROM tab2 cor0
----
-50

query I rowsort
SELECT ALL + 94 * + + 43 * + - 38 FROM tab0 AS cor0
----
-153596
-153596
-153596

query I rowsort
SELECT ALL + col1 * - + col1 AS col2 FROM tab0 AS cor0
----
-1
-441
-6561

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 34 NOT BETWEEN NULL AND + + 30 * - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT SUM( DISTINCT + 22 ) AS col1 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-8310
SELECT SUM ( DISTINCT + 22 ) AS col1 FROM tab0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8311
SELECT * FROM tab1 WHERE NOT - CAST( ( + col2 ) AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8311
SELECT * FROM tab1 WHERE NOT - CAST ( ( + col2 ) AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8312
SELECT ALL col1 col2, - col0 * + + col1 + - CAST( 79 AS SIGNED ) col0 FROM tab1
----
14
-793
47
-4356
5
-504

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8312
SELECT ALL col1 col2, - col0 * + + col1 + - CAST ( 79 AS INTEGER ) col0 FROM tab1
----
14
-793
47
-4356
5
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT ALL MAX( + 72 ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-8313
SELECT ALL MAX ( + 72 ) FROM tab0
----
72

query II rowsort
SELECT DISTINCT + col1 AS col0, + 86 FROM tab0
----
1
86
21
86
81
86

query III rowsort
SELECT col2, + col0 AS col2, col1 FROM tab0
----
9 values hashing to 32015b7fe2b950b49a13c53412c163f7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8316
SELECT - 33 / - + CAST( NULL AS SIGNED ) * - + col2 / + - 44 * - col0 / col2, - 4 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8316
SELECT - 33 / - + CAST ( NULL AS INTEGER ) * - + col2 / + - 44 * - col0 / col2, - 4 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query II rowsort
SELECT + col2, + 43 FROM tab0
----
10
43
47
43
99
43

onlyif mysql # DIV for integer division: 
query I rowsort label-8318
SELECT ALL - + col1 DIV - col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8318
SELECT ALL - + col1 / - col2 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT ( - ( - - ( - ( + - 76 ) ) ) ) FROM tab0 AS cor0
----
-76
-76
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8320
SELECT - CAST( - CAST( col1 AS SIGNED ) AS SIGNED ) + + 39 col1 FROM tab2 AS cor0 WHERE NOT - 33 <= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8320
SELECT - CAST ( - CAST ( col1 AS INTEGER ) AS INTEGER ) + + 39 col1 FROM tab2 AS cor0 WHERE NOT - 33 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8321
SELECT - COUNT( * ) + + ( 82 ) AS col0 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-8321
SELECT - COUNT ( * ) + + ( 82 ) AS col0 FROM tab0 AS cor0
----
79

query I rowsort
SELECT DISTINCT 10 + + 83 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8323
SELECT DISTINCT - col2 * 65 AS col0, - CAST( - 36 AS SIGNED ) * - + 90 + + col1 col2 FROM tab1 WHERE NOT + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8323
SELECT DISTINCT - col2 * 65 AS col0, - CAST ( - 36 AS INTEGER ) * - + 90 + + col1 col2 FROM tab1 WHERE NOT + + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + - 16 AS col0 FROM tab0 cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT DISTINCT COUNT( ALL - col2 ) + + + 93 AS col2 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT COUNT ( ALL - col2 ) + + + 93 AS col2 FROM tab2 AS cor0
----
96

query II rowsort
SELECT - col0 AS col0, - 5 + 92 FROM tab0 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT ALL COUNT( + 3 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL COUNT ( + 3 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8328
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8328
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT + SUM( DISTINCT col2 ) AS col2 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-8329
SELECT + SUM ( DISTINCT col2 ) AS col2 FROM tab0 cor0
----
156

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col0
----

query III rowsort
SELECT * FROM tab0 WHERE - + col2 * - 81 * - 62 + ( + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT 39 + - - 89 + - + SUM( DISTINCT - ( + - ( + col0 ) ) ) AS col0 FROM tab0
----
-71

skipif mysql # not compatible
query I rowsort label-8333
SELECT 39 + - - 89 + - + SUM ( DISTINCT - ( + - ( + col0 ) ) ) AS col0 FROM tab0
----
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8334
SELECT - 52 + + col2 + - CAST( NULL AS SIGNED ) * + - col0 - 10 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8334
SELECT - 52 + + col2 + - CAST ( NULL AS INTEGER ) * + - col0 - 10 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 + + ( 9 ) + + - 72 - + col0 FROM tab0 AS cor0
----
-129
-159
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT + MAX( col2 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8336
SELECT + MAX ( col2 ) AS col2 FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL - col2 + col1 + - col1 * 82 FROM tab2 cor0
----
-4154
-5485
-6277

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT - MAX( ALL + 62 ) FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8338
SELECT - MAX ( ALL + 62 ) FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8339
SELECT ALL + 28 DIV + col2 + + 38, col1 FROM tab0 AS cor0
----
38
1
38
81
40
21

skipif mysql # not compatible
query II rowsort label-8339
SELECT ALL + 28 / + col2 + + 38, col1 FROM tab0 AS cor0
----
38
1
38
81
40
21

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 / col0 + - - col2 + + col1 ) IS NULL
----

query I rowsort
SELECT + 3 / + col1 AS col2 FROM tab0 cor0 WHERE ( NULL ) BETWEEN + col2 * + 70 + + + col0 * - + col1 AND col0
----

query I rowsort
SELECT - col2 - - ( + - ( - 31 ) ) AS col1 FROM tab1
----
-28
-37
-65

query I rowsort
SELECT DISTINCT + - 98 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8344
SELECT DISTINCT - - 11 + CAST( NULL AS SIGNED ) col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8344
SELECT DISTINCT - - 11 + CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - 86 * - + ( - col2 ) AS col2 FROM tab1
----
-5074
-5848
-8256

onlyif mysql # aggregate syntax: 
query I rowsort label-8346
SELECT ALL - - MAX( - - col0 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8346
SELECT ALL - - MAX ( - - col0 ) AS col1 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT ALL ( - + COUNT( * ) ) * + 54 AS col0 FROM tab1 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-8347
SELECT ALL ( - + COUNT ( * ) ) * + 54 AS col0 FROM tab1 AS cor0
----
-162

query I rowsort
SELECT - col0 * - + 21 FROM tab2 AS cor0
----
1344
1575
966

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8349
SELECT ALL - - CAST( NULL AS DECIMAL ) * + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL - - CAST ( NULL AS REAL ) * + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 + + - ( col0 ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-141
-142
-97

query I rowsort
SELECT ALL - 61 FROM tab1 AS cor0 WHERE NOT ( ( col0 * - 2 * col0 ) BETWEEN NULL AND NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8352
SELECT DISTINCT - 97 DIV col1 * col1 AS col1, col0 AS col1 FROM tab0
----
-81
15
-84
87
-97
97

skipif mysql # not compatible
query II rowsort label-8352
SELECT DISTINCT - 97 / col1 * col1 AS col1, col0 AS col1 FROM tab0
----
-81
15
-84
87
-97
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 col0 FROM tab2
----
-40

query I rowsort
SELECT ALL + col1 * - col0 * - col1 AS col2 FROM tab2
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-8355
SELECT + MIN( DISTINCT 23 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8355
SELECT + MIN ( DISTINCT 23 ) AS col0 FROM tab2
----
23

query I rowsort
SELECT col2 * - 26 FROM tab0
----
-1222
-2574
-260

query I rowsort
SELECT DISTINCT - col2 * - 79 AS col2 FROM tab0
----
3713
7821
790

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8358
SELECT 97, SUM( + - 42 ) DIV - - 58 AS col0 FROM tab1
----
97
-2

skipif mysql # not compatible
query II rowsort label-8358
SELECT 97, SUM ( + - 42 ) / - - 58 AS col0 FROM tab1
----
97
-2

query I rowsort
SELECT ALL + - col2 + - col1 - col1 FROM tab1 cor0
----
-124
-162
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + + 88 ) col1 FROM tab0 AS cor0
----
-88
-88
-88

query II rowsort
SELECT DISTINCT - + 29, + col2 + - col1 * 87 AS col1 FROM tab2 AS cor0
----
-29
-4414
-29
-5771
-29
-6659

query I rowsort
SELECT DISTINCT - + 21 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-8363
SELECT MIN( ALL - col1 ) + SUM( - col0 ) AS col2, + COUNT( * ) FROM tab1
----
-274
3

skipif mysql # not compatible
query II rowsort label-8363
SELECT MIN ( ALL - col1 ) + SUM ( - col0 ) AS col2, + COUNT ( * ) FROM tab1
----
-274
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8364
SELECT 11 DIV col1 + + + col1 FROM tab1
----
14
47
7

skipif mysql # not compatible
query I rowsort label-8364
SELECT 11 / col1 + + + col1 FROM tab1
----
14
47
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT ALL + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8366
SELECT ALL + 98 AS col1, COUNT( * ) * + 75 FROM tab1
----
98
225

skipif mysql # not compatible
query II rowsort label-8366
SELECT ALL + 98 AS col1, COUNT ( * ) * + 75 FROM tab1
----
98
225

query II rowsort
SELECT DISTINCT + col0, col1 + col2 AS col1 FROM tab0 AS cor0
----
15
128
87
31
97
100

query I rowsort
SELECT + 1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT + 71 + COUNT( col0 ) AS col0 FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-8369
SELECT + 71 + COUNT ( col0 ) AS col0 FROM tab2 AS cor0
----
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8370
SELECT DISTINCT col1 * col0 + - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8370
SELECT DISTINCT col1 * col0 + - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT ALL - COUNT( * ) + + 47 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL - COUNT ( * ) + + 47 FROM tab0 AS cor0
----
44

query III rowsort
SELECT * FROM tab1 WHERE col1 * 89 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8373
SELECT ALL + col2 - col1 DIV col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL + col2 - col1 / col2 FROM tab1
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 62 - - col2 AS col0, + col0 col2 FROM tab1
----
-3
85
34
51
6
91

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8375
SELECT - CAST( NULL AS DECIMAL ) + - col2, col0 FROM tab2 cor0
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-8375
SELECT - CAST ( NULL AS REAL ) + - col2, col0 FROM tab2 cor0
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8376
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + 75 + - col0 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8376
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + 75 + - col0 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT + + COUNT( * ) * - 76 + + 77 + 19 * - 57 FROM tab0 AS cor0
----
-1234

skipif mysql # not compatible
query I rowsort label-8377
SELECT + + COUNT ( * ) * - 76 + + 77 + 19 * - 57 FROM tab0 AS cor0
----
-1234

query I rowsort
SELECT ALL + + 31 FROM tab2 AS cor0
----
31
31
31

query I rowsort
SELECT - 67 * + - 73 AS col1 FROM tab1
----
4891
4891
4891

onlyif mysql # aggregate syntax: 
query I rowsort label-8380
SELECT DISTINCT ( - + SUM( DISTINCT col0 ) ) col0 FROM tab1
----
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8380
SELECT DISTINCT ( - + SUM ( DISTINCT col0 ) ) col0 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT DISTINCT - COUNT( * ) * COUNT( * ) * + + COUNT( * ) * 86 FROM tab1 AS cor0
----
-2322

skipif mysql # not compatible
query I rowsort label-8381
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) * + + COUNT ( * ) * 86 FROM tab1 AS cor0
----
-2322

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT COUNT( + - col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8382
SELECT COUNT ( + - col0 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT - COUNT( * ) * - + 29 * + SUM( ALL + 83 ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
21666

skipif mysql # not compatible
query I rowsort label-8383
SELECT - COUNT ( * ) * - + 29 * + SUM ( ALL + 83 ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
21666

query I rowsort
SELECT - ( - 70 ) AS col1 FROM tab2 AS cor0
----
70
70
70

query I rowsort
SELECT + + col2 * - 35 AS col2 FROM tab1 AS cor0
----
-2065
-2380
-3360

query I rowsort
SELECT - col2 * 98 * + 75 * + 22 FROM tab2 AS cor0
----
-3719100
-6468000
-9378600

query I rowsort
SELECT + ( + - col2 ) AS col1 FROM tab1 WHERE NOT + col2 < - col1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT DISTINCT COUNT( * ) * + - 25 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8388
SELECT DISTINCT COUNT ( * ) * + - 25 FROM tab2
----
-75

query II rowsort
SELECT DISTINCT - col1 * + col1 AS col1, - col1 AS col1 FROM tab2
----
-2601
-51
-4489
-67
-5929
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 79 + - ( - 62 ) col1 FROM tab0 AS cor0
----
-17
-17
-17

query I rowsort
SELECT col2 + - 78 FROM tab0 AS cor0 WHERE + 77 - - + col1 IS NOT NULL
----
-31
-68
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT DISTINCT 89 + + - COUNT( col1 ) col1 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8392
SELECT DISTINCT 89 + + - COUNT ( col1 ) col1 FROM tab1 AS cor0
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 + + ( ( col0 ) ) + - - col1 col0 FROM tab0
----
125
127
137

query I rowsort
SELECT DISTINCT col2 * + - col2 FROM tab2
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT - - 5 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - 54
----

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE NOT - 56 > ( NULL )
----

query I rowsort
SELECT ALL 71 + + + ( - - col1 ) - + col1 FROM tab1
----
71
71
71

query I rowsort
SELECT - 78 * + - col0 FROM tab2 AS cor0
----
3588
4992
5850

query I rowsort
SELECT - + 46 AS col1 FROM tab1 cor0
----
-46
-46
-46

query I rowsort
SELECT ALL - - col2 * + col2 FROM tab1 AS cor0 WHERE NOT ( - col2 IS NULL )
----
3481
4624
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - col2 * col1 col1 FROM tab2 AS cor0
----
-1122
-3003
-3819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8402
SELECT col1 - 19 + 68 * col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8402
SELECT col1 - 19 + 68 * col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8403
SELECT DISTINCT - 56 + + 99 DIV - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT - 56 + + 99 / - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-89

query I rowsort
SELECT ALL + + col2 + - + 74 AS col1 FROM tab2 AS cor0
----
-16
-34
-51

query I rowsort
SELECT DISTINCT - col0 * 45 - + 98 AS col0 FROM tab0
----
-4013
-4463
-773

query I rowsort
SELECT DISTINCT col1 + 79 AS col1 FROM tab1
----
126
84
93

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 < - + 71
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8408
SELECT - 43 DIV - col2 + + 51 AS col0 FROM tab1
----
51
51
51

skipif mysql # not compatible
query I rowsort label-8408
SELECT - 43 / - col2 + + 51 AS col0 FROM tab1
----
51
51
51

query II rowsort
SELECT DISTINCT - 29 - - col1 AS col1, col2 FROM tab2
----
22
23
38
58
48
40

query I rowsort
SELECT col1 + - - ( - col2 ) AS col2 FROM tab0
----
-98
11
34

query I rowsort
SELECT DISTINCT - 2 - - ( + col0 ) FROM tab1
----
49
83
89

onlyif mysql # DIV for integer division: 
query I rowsort label-8412
SELECT ALL 5 - - - 51 DIV - col1 AS col1 FROM tab1
----
15
6
8

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL 5 - - - 51 / - col1 AS col1 FROM tab1
----
15
6
8

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8413
SELECT CAST( NULL AS DECIMAL ) * COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8413
SELECT CAST ( NULL AS REAL ) * COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8414
SELECT DISTINCT + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) BETWEEN - ( - + col2 ) AND - + col1
----
0

skipif mysql # not compatible
query I rowsort label-8414
SELECT DISTINCT + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) BETWEEN - ( - + col2 ) AND - + col1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8415
SELECT DISTINCT 72 AS col0, + MIN( DISTINCT - col0 ) + 10 AS col1 FROM tab1 AS cor0
----
72
-81

skipif mysql # not compatible
query II rowsort label-8415
SELECT DISTINCT 72 AS col0, + MIN ( DISTINCT - col0 ) + 10 AS col1 FROM tab1 AS cor0
----
72
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - 86 ) col0 FROM tab2
----
86

query I rowsort
SELECT col2 FROM tab2 WHERE NOT col0 BETWEEN col1 AND NULL
----
23
40

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8418
SELECT * FROM tab1 WHERE NOT - 7 + + col1 * 61 + col0 BETWEEN NULL AND CAST( + col0 AS DECIMAL ) + + CAST( NULL AS DECIMAL ) / - - 67 * + col2
----

skipif mysql # not compatible
query III rowsort label-8418
SELECT * FROM tab1 WHERE NOT - 7 + + col1 * 61 + col0 BETWEEN NULL AND CAST ( + col0 AS REAL ) + + CAST ( NULL AS REAL ) / - - 67 * + col2
----

query I rowsort
SELECT DISTINCT col1 + - col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8420
SELECT DISTINCT - MAX( ALL + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8420
SELECT DISTINCT - MAX ( ALL + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + ( + + 16 ) FROM tab2 cor0
----
16
16
16

query I rowsort
SELECT DISTINCT - - 26 AS col0 FROM tab0 cor0
----
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1, 90 )
----

query I rowsort
SELECT ALL ( + 52 ) AS col0 FROM tab2 AS cor0
----
52
52
52

query II rowsort
SELECT ( - + 78 ) + + col2, col1 FROM tab0
----
-31
81
-68
21
21
1

query I rowsort
SELECT - 50 * col0 AS col0 FROM tab2
----
-2300
-3200
-3750

query I rowsort
SELECT + col0 * - 97 FROM tab2
----
-4462
-6208
-7275

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT ALL 96 * + 37 * - MAX( - ( - col2 ) ) AS col0 FROM tab0
----
-351648

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL 96 * + 37 * - MAX ( - ( - col2 ) ) AS col0 FROM tab0
----
-351648

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8429
SELECT ALL + + COUNT( * ) DIV + 83 + - 27 FROM tab0 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL + + COUNT ( * ) / + 83 + - 27 FROM tab0 cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8430
SELECT DISTINCT - + 91 * - COUNT( * ) col0 FROM tab1 AS cor0
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8430
SELECT DISTINCT - + 91 * - COUNT ( * ) col0 FROM tab1 AS cor0
----
273

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8432
SELECT DISTINCT MAX( - 61 ) DIV 11 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT MAX ( - 61 ) / 11 FROM tab2
----
-5

query I rowsort
SELECT DISTINCT + 96 - - 46 * col1 FROM tab1
----
2258
326
740

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8434
SELECT DISTINCT + - COUNT( * ) FROM tab2 AS cor0 WHERE CAST( - + col0 AS SIGNED ) BETWEEN NULL AND + - col0
----
0

skipif mysql # not compatible
query I rowsort label-8434
SELECT DISTINCT + - COUNT ( * ) FROM tab2 AS cor0 WHERE CAST ( - + col0 AS INTEGER ) BETWEEN NULL AND + - col0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 97 * + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8436
SELECT * FROM tab2 AS cor0 WHERE - CAST( NULL AS DECIMAL ) + - col2 <> NULL
----

skipif mysql # not compatible
query III rowsort label-8436
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS REAL ) + - col2 <> NULL
----

query I rowsort
SELECT DISTINCT - + col1 + + 57 * 57 AS col1 FROM tab0 AS cor0
----
3168
3228
3248

onlyif mysql # DIV for integer division: 
query I rowsort label-8438
SELECT ALL col0 - - 35 DIV + 52 + - col0 FROM tab0 cor0 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8438
SELECT ALL col0 - - 35 / + 52 + - col0 FROM tab0 cor0 WHERE NULL IS NULL
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col1 AND 64 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8440
SELECT + 3 - - ( COUNT( * ) ) col1 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8440
SELECT + 3 - - ( COUNT ( * ) ) col1 FROM tab0
----
6

query I rowsort
SELECT DISTINCT + 16 AS col1 FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8442
SELECT ALL + ( + - ( + COUNT( * ) ) ) AS col2, 16 col0 FROM tab2
----
-3
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8442
SELECT ALL + ( + - ( + COUNT ( * ) ) ) AS col2, 16 col0 FROM tab2
----
-3
16

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 / - 30 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8444
SELECT ALL + COUNT( * ) AS col1, + COUNT( * ) * - + 9 + + COUNT( * ) FROM tab1 AS cor0
----
3
-24

skipif mysql # not compatible
query II rowsort label-8444
SELECT ALL + COUNT ( * ) AS col1, + COUNT ( * ) * - + 9 + + COUNT ( * ) FROM tab1 AS cor0
----
3
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8445
SELECT COUNT( * ) * AVG ( DISTINCT 83 ) * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8445
SELECT COUNT ( * ) * AVG ( DISTINCT 83 ) * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8446
SELECT + COUNT( * ) * 47 AS col2 FROM tab2 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-8446
SELECT + COUNT ( * ) * 47 AS col2 FROM tab2 AS cor0
----
141

query I rowsort
SELECT DISTINCT 81 * - col1 FROM tab1 AS cor0
----
-1134
-3807
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT DISTINCT MIN( 75 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT MIN ( 75 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
75

query I rowsort
SELECT col2 * - - 7 AS col1 FROM tab0 AS cor0
----
329
693
70

query II rowsort
SELECT - - col2 AS col2, col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 BETWEEN - col0 AND - col1 + - + 22
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, - 46 * - col0 * + + col1 AS col1 FROM tab0
----
15
55890
87
84042
97
4462

query II rowsort
SELECT - col0, 96 AS col1 FROM tab1 AS cor0
----
-51
96
-85
96
-91
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT - SUM( ALL + 89 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8454
SELECT - SUM ( ALL + 89 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT DISTINCT + COUNT( ALL - - col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8455
SELECT DISTINCT + COUNT ( ALL - - col2 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col1 + 21 FROM tab1 cor0
----
26
35
68

query I rowsort
SELECT ALL + col1 * + 67 * + - 83 FROM tab1 AS cor0 WHERE 70 + - + 96 IS NOT NULL
----
-261367
-27805
-77854

query I rowsort
SELECT ALL + 39 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT MAX( ALL 21 ) * 15 + COUNT( * ) * - 47 AS col2 FROM tab0 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-8459
SELECT MAX ( ALL 21 ) * 15 + COUNT ( * ) * - 47 AS col2 FROM tab0 AS cor0
----
174

query II rowsort
SELECT col0, - col1 * col0 FROM tab1 cor0
----
51
-714
85
-425
91
-4277

query I rowsort
SELECT - + 95 AS col1 FROM tab1 cor0
----
-95
-95
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8462
SELECT + CAST( NULL AS SIGNED ) * + + SUM( + + col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8462
SELECT + CAST ( NULL AS INTEGER ) * + + SUM ( + + col2 ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 + + + col0 AS col2 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT - COUNT( * ) * SUM( - - col1 ) * - COUNT( DISTINCT + col0 ) AS col1 FROM tab1 WHERE + 15 + - - 84 IS NOT NULL
----
594

skipif mysql # not compatible
query I rowsort label-8464
SELECT - COUNT ( * ) * SUM ( - - col1 ) * - COUNT ( DISTINCT + col0 ) AS col1 FROM tab1 WHERE + 15 + - - 84 IS NOT NULL
----
594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8465
SELECT ALL col1 AS col0 FROM tab2 WHERE NOT NULL BETWEEN - col1 AND ( + CAST( + col2 AS SIGNED ) ) / - col0 + - col2
----

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL col1 AS col0 FROM tab2 WHERE NOT NULL BETWEEN - col1 AND ( + CAST ( + col2 AS INTEGER ) ) / - col0 + - col2
----

query III rowsort
SELECT * FROM tab2 WHERE col0 IN ( + 2 / col0 + col2 * - 33, - col0, - + col1 - - + col0 * - - col0 )
----

query I rowsort
SELECT 91 + - ( + - col0 ) FROM tab2
----
137
155
166

query I rowsort
SELECT + ( - - 98 ) * - col1 + - col2 AS col1 FROM tab2
----
-5021
-6624
-7586

query II rowsort
SELECT DISTINCT + col1 + + col1, 24 AS col1 FROM tab1 AS cor0
----
10
24
28
24
94
24

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <> col2
----

query I rowsort
SELECT + - col1 + - 17 AS col0 FROM tab2 cor0
----
-68
-84
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8472
SELECT DISTINCT + CAST( - col0 AS SIGNED ) + col2 FROM tab1 AS cor0
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) + col2 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT - col1 + ( + 86 ) + + - 78 FROM tab2 AS cor0
----
-43
-59
-69

query I rowsort
SELECT DISTINCT + 1 + + 63 - col2 FROM tab1 AS cor0
----
-32
-4
5

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8476
SELECT DISTINCT SUM( + 7 ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT SUM ( + 7 ) FROM tab1
----
21

query III rowsort
SELECT * FROM tab0 WHERE + - 15 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col0 * + col1 - col0 FROM tab1 cor0
----
340
4186
663

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT - 85 - + COUNT( * ) FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-8479
SELECT - 85 - + COUNT ( * ) FROM tab1 AS cor0
----
-88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < - col1
----

query I rowsort
SELECT - 89 - - col2 FROM tab2 AS cor0
----
-31
-49
-66

query I rowsort
SELECT - col0 - - col0 * 80 FROM tab0 AS cor0
----
1185
6873
7663

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT ALL - ( + + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL - ( + + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= 56
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) * + 80 col0 FROM tab1
----
4720
5440
7680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + - 55 col0 FROM tab2
----
-1265
-2200
-3190

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8487
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 33 ) > ( - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8487
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 33 ) > ( - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8488
SELECT col0 DIV - 70 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8488
SELECT col0 / - 70 AS col1 FROM tab2
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8489
SELECT DISTINCT col1 DIV - + col1 AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8489
SELECT DISTINCT col1 / - + col1 AS col1 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 <= - 92 * - col0 * - 98
----
3

skipif mysql # not compatible
query I rowsort label-8490
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col0 <= - 92 * - col0 * - 98
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8491
SELECT DISTINCT - SUM( + - 97 ) + - - COUNT( * ) + - AVG ( col2 ) * COUNT( * ) AS col0, 53 FROM tab0 AS cor0 WHERE NULL <> + col0
----
NULL
53

skipif mysql # not compatible
query II rowsort label-8491
SELECT DISTINCT - SUM ( + - 97 ) + - - COUNT ( * ) + - AVG ( col2 ) * COUNT ( * ) AS col0, 53 FROM tab0 AS cor0 WHERE NULL <> + col0
----
NULL
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT + MIN( DISTINCT col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8492
SELECT + MIN ( DISTINCT col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT DISTINCT + + COUNT( ALL + + col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8493
SELECT DISTINCT + + COUNT ( ALL + + col2 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col1 * - ( + + col2 ) + - 60 AS col1 FROM tab2 AS cor0
----
1113
3020
3826

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8495
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= - col0 / - + CAST( NULL AS SIGNED ) + - 91 * col2
----

skipif mysql # not compatible
query III rowsort label-8495
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= - col0 / - + CAST ( NULL AS INTEGER ) + - 91 * col2
----

query I rowsort
SELECT + col0 + + col1 + + col0 AS col1 FROM tab0 AS cor0
----
111
195
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT - 58 + - COUNT( * ) FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-8497
SELECT - 58 + - COUNT ( * ) FROM tab0
----
-61

query III rowsort
SELECT DISTINCT col1, 48 * 15 * - col0, + col2 AS col0 FROM tab1
----
9 values hashing to 4eaa99b6857a5ccc26b2a711de9f4fb1

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NOT ( - - 95 * col1 ) IS NULL
----
59
68
96

query II rowsort
SELECT ALL col0 AS col0, + 71 * + col0 AS col2 FROM tab0
----
15
1065
87
6177
97
6887

query I rowsort
SELECT col0 * + + col1 AS col2 FROM tab0
----
1215
1827
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 9 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 12 AS col0, 92 col1 FROM tab0
----
-12
92
-12
92
-12
92

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 56 IS NOT NULL
----

query II rowsort
SELECT 1 * - + col1, + col0 FROM tab1
----
-14
51
-47
91
-5
85

query I rowsort
SELECT col0 + + - 24 * 29 AS col0 FROM tab2 AS cor0 WHERE col1 * col2 * + col0 <= + 11 * + 61 + - ( + col0 )
----

query I rowsort
SELECT DISTINCT 71 - - col2 AS col2 FROM tab2
----
111
129
94

query I rowsort
SELECT DISTINCT - ( 34 ) * col0 AS col2 FROM tab2 cor0
----
-1564
-2176
-2550

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8509
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - MIN( ALL - + col2 ) - + + SUM( + col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8509
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - MIN ( ALL - + col2 ) - + + SUM ( + col1 ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab1 AS cor0 WHERE ( NULL ) = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8511
SELECT - MAX( DISTINCT - 62 ) AS col0 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-8511
SELECT - MAX ( DISTINCT - 62 ) AS col0 FROM tab0 AS cor0
----
62

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - - 6 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT - SUM( DISTINCT + + ( col1 ) ) * + 32 FROM tab0 AS cor0
----
-3296

skipif mysql # not compatible
query I rowsort label-8513
SELECT - SUM ( DISTINCT + + ( col1 ) ) * + 32 FROM tab0 AS cor0
----
-3296

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 81 <= - - col0 * + 74 * col0
----

query II rowsort
SELECT + col1, + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + col0 * + + col1 * + 96, + col0 FROM tab0 AS cor0
----
116640
15
175392
87
9312
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - ( col0 ) AND + 21 - 22
----

query I rowsort
SELECT - + ( - - 61 ) AS col1 FROM tab0 cor0
----
-61
-61
-61

query I rowsort
SELECT ALL + col2 * - 31 AS col2 FROM tab1
----
-1829
-2108
-2976

onlyif mysql # DIV for integer division: 
query II rowsort label-8520
SELECT + col0 DIV col0 * - col2 * + col2, 91 AS col0 FROM tab1
----
-3481
91
-4624
91
-9216
91

skipif mysql # not compatible
query II rowsort label-8520
SELECT + col0 / col0 * - col2 * + col2, 91 AS col0 FROM tab1
----
-3481
91
-4624
91
-9216
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 22 AS col2, + col2 col0 FROM tab2
----
22
23
22
40
22
58

onlyif mysql # DIV for integer division: 
query II rowsort label-8522
SELECT ALL + col1 AS col0, ( col1 ) * col2 DIV 81 FROM tab0
----
1
1
21
2
81
47

skipif mysql # not compatible
query II rowsort label-8522
SELECT ALL + col1 AS col0, ( col1 ) * col2 / 81 FROM tab0
----
1
1
21
2
81
47

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 2 * - 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8524
SELECT ALL 92 * + - COUNT( * ) * - 88 FROM tab1 WHERE NOT - col0 > 4 * + 99 * - 34
----
0

skipif mysql # not compatible
query I rowsort label-8524
SELECT ALL 92 * + - COUNT ( * ) * - 88 FROM tab1 WHERE NOT - col0 > 4 * + 99 * - 34
----
0

query II rowsort
SELECT - 95, col1 FROM tab2
----
-95
51
-95
67
-95
77

query II rowsort
SELECT ALL col1 AS col0, col2 AS col1 FROM tab1
----
14
96
47
68
5
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 52 IS NULL
----

query I rowsort
SELECT + 37 * + + col1 * col1 AS col2 FROM tab0 AS cor0
----
16317
242757
37

query I rowsort
SELECT - col2 * + - col0 * 89 + - + col1 + + + col1 * + 86 FROM tab2 AS cor0
----
234385
392845
98497

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8530
SELECT ALL - MAX( ALL + CAST( 38 AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-38

skipif mysql # not compatible
query I rowsort label-8530
SELECT ALL - MAX ( ALL + CAST ( 38 AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-38

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL <> NULL
----

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-14
-47
-5

query I rowsort
SELECT - col1 * + col1 * col0 AS col2 FROM tab1 AS cor0
----
-201019
-2125
-9996

query I rowsort
SELECT ALL - ( + + col1 ) + - 97 FROM tab0 AS cor0
----
-118
-178
-98

query I rowsort
SELECT ALL + + 47 + + + col2 AS col1 FROM tab1 AS cor0 WHERE NULL = + col1
----

query I rowsort
SELECT DISTINCT 67 + + col2 FROM tab1
----
126
135
163

query I rowsort
SELECT ALL + ( + - 54 ) FROM tab0
----
-54
-54
-54

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8538
SELECT ALL CAST( NULL AS DECIMAL ) / + col2 + col2 * - - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL CAST ( NULL AS REAL ) / + col2 + col2 * - - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + - col1 + - col1 + col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT ALL - 57 * COUNT( * ) FROM tab1
----
-171

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL - 57 * COUNT ( * ) FROM tab1
----
-171

query I rowsort
SELECT DISTINCT 53 * - col1 FROM tab1
----
-2491
-265
-742

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT ALL MIN( - col1 ) + 8 AS col1 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL MIN ( - col1 ) + 8 AS col1 FROM tab2
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8543
SELECT - 68 + SUM( - col1 ) FROM tab0
----
-171

skipif mysql # not compatible
query I rowsort label-8543
SELECT - 68 + SUM ( - col1 ) FROM tab0
----
-171

onlyif mysql # DIV for integer division: 
query I rowsort label-8544
SELECT - - 51 DIV col1 AS col2 FROM tab1 AS cor0
----
1
10
3

skipif mysql # not compatible
query I rowsort label-8544
SELECT - - 51 / col1 AS col2 FROM tab1 AS cor0
----
1
10
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col1 BETWEEN NULL AND - - ( - col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 92 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

onlyif mysql # aggregate syntax: 
query II rowsort label-8547
SELECT DISTINCT - - COUNT( * ) col2, + COUNT( * ) * SUM( - - 89 ) FROM tab0 AS cor0
----
3
801

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8547
SELECT DISTINCT - - COUNT ( * ) col2, + COUNT ( * ) * SUM ( - - 89 ) FROM tab0 AS cor0
----
3
801

query I rowsort
SELECT + col0 * + 29 * + col1 FROM tab2 AS cor0
----
142912
145725
68034

query II rowsort
SELECT col0, - col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT + COUNT( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8550
SELECT + COUNT ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 20 IS NOT NULL
----

query I rowsort
SELECT ALL 45 * - - col1 FROM tab1 cor0
----
2115
225
630

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8553
SELECT * FROM tab0 WHERE NOT col0 <> + 6 * 99 + - - col0 + - - CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8553
SELECT * FROM tab0 WHERE NOT col0 <> + 6 * 99 + - - col0 + - - CAST ( + col1 AS INTEGER )
----

query I rowsort
SELECT DISTINCT col0 * - col0 AS col2 FROM tab0 WHERE ( NULL < col2 )
----

query I rowsort
SELECT DISTINCT + col2 * 6 FROM tab2
----
138
240
348

onlyif mysql # DIV for integer division: 
query II rowsort label-8556
SELECT DISTINCT - 42 DIV - 30 col2, col2 AS col2 FROM tab0 AS cor0
----
1
10
1
47
1
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8556
SELECT DISTINCT - 42 / - 30 col2, col2 AS col2 FROM tab0 AS cor0
----
1
10
1
47
1
99

query I rowsort
SELECT ALL + + 94 AS col0 FROM tab1 cor0
----
94
94
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8558
SELECT 58 DIV MIN( ALL col0 ), 24 AS col1 FROM tab2
----
1
24

skipif mysql # not compatible
query II rowsort label-8558
SELECT 58 / MIN ( ALL col0 ), 24 AS col1 FROM tab2
----
1
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT MAX( DISTINCT - - col2 ) AS col1 FROM tab0 WHERE - 36 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8559
SELECT MAX ( DISTINCT - - col2 ) AS col1 FROM tab0 WHERE - 36 BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ALL + - 65 + - + col0 FROM tab1 AS cor0
----
-116
-150
-156

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( 13 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8562
SELECT ALL + col0 + + - col1 * + - ( 40 ) + CAST( 50 AS SIGNED ) * ( 60 ) AS col0 FROM tab1 cor0
----
3285
3611
4971

skipif mysql # not compatible
query I rowsort label-8562
SELECT ALL + col0 + + - col1 * + - ( 40 ) + CAST ( 50 AS INTEGER ) * ( 60 ) AS col0 FROM tab1 cor0
----
3285
3611
4971

onlyif mysql # DIV for integer division: 
query I rowsort label-8563
SELECT DISTINCT col1 + col2 DIV - col1 FROM tab0 AS cor0
----
-98
21
81

skipif mysql # not compatible
query I rowsort label-8563
SELECT DISTINCT col1 + col2 / - col1 FROM tab0 AS cor0
----
-98
21
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 71 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - ( - 79 ) FROM tab0 AS cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-8566
SELECT + MIN( + col0 ) col1 FROM tab1 AS cor0 WHERE 38 > NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8566
SELECT + MIN ( + col0 ) col1 FROM tab1 AS cor0 WHERE 38 > NULL
----
NULL

query I rowsort
SELECT + 11 * - 91 AS col2 FROM tab2
----
-1001
-1001
-1001

query I rowsort
SELECT DISTINCT + ( - ( + col2 ) ) + - 10 FROM tab1
----
-106
-69
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT + SUM( + 32 ) * COUNT( * ) FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-8569
SELECT + SUM ( + 32 ) * COUNT ( * ) FROM tab2
----
288

query I rowsort
SELECT ALL col1 - + - col1 * + ( + col0 ) FROM tab0
----
1296
1848
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT + COUNT( + + col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8571
SELECT + COUNT ( + + col2 ) AS col2 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8572
SELECT DISTINCT - col2 DIV + - col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-8572
SELECT DISTINCT - col2 / + - col0 FROM tab1
----
0
1

query III rowsort
SELECT * FROM tab0 WHERE + - col1 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT ALL + ( + COUNT( * ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8574
SELECT ALL + ( + COUNT ( * ) ) AS col2 FROM tab1
----
3

query I rowsort
SELECT + 6 - + ( - + ( + col0 ) ) + - + ( - 55 ) AS col1 FROM tab1 AS cor0
----
112
146
152

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 86 IS NULL
----

query I rowsort
SELECT 99 + + col2 FROM tab0 cor0
----
109
146
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8578
SELECT ALL - + CAST( NULL AS SIGNED ) + 2 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL - + CAST ( NULL AS INTEGER ) + 2 + - col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT + 63 + + + COUNT( + 30 ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8579
SELECT + 63 + + + COUNT ( + 30 ) FROM tab2 AS cor0
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8580
SELECT COUNT( - col1 ) DIV 45 DIV - COUNT( * ) + 53 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-8580
SELECT COUNT ( - col1 ) / 45 / - COUNT ( * ) + 53 FROM tab1 AS cor0
----
53

query I rowsort
SELECT - col2 + + 60 - + 11 * - + col2 FROM tab0
----
1050
160
530

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 55 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 11 AS col1 FROM tab0 cor0
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 col1 FROM tab1 AS cor0
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT DISTINCT - SUM( + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-8586
SELECT DISTINCT - SUM ( + col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT ALL - ( + + COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8587
SELECT ALL - ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - + ( - + col2 ) AS col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8589
SELECT CAST( NULL AS SIGNED ) * + ( - col2 ) - - col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8589
SELECT CAST ( NULL AS INTEGER ) * + ( - col2 ) - - col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8590
SELECT ALL - COUNT( * ) AS col1, 42 * - 14 * + - 30 + - + COUNT( * ) + + 79 AS col1 FROM tab0
----
-3
17716

skipif mysql # not compatible
query II rowsort label-8590
SELECT ALL - COUNT ( * ) AS col1, 42 * - 14 * + - 30 + - + COUNT ( * ) + + 79 AS col1 FROM tab0
----
-3
17716

query II rowsort
SELECT DISTINCT col2 AS col1, - 6 FROM tab0
----
10
-6
47
-6
99
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT + COUNT( col0 ) FROM tab1 WHERE NOT - 8 BETWEEN NULL AND - 34
----
3

skipif mysql # not compatible
query I rowsort label-8592
SELECT + COUNT ( col0 ) FROM tab1 WHERE NOT - 8 BETWEEN NULL AND - 34
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8593
SELECT ( COUNT( * ) ) AS col2, - 76 AS col0 FROM tab0
----
3
-76

skipif mysql # not compatible
query II rowsort label-8593
SELECT ( COUNT ( * ) ) AS col2, - 76 AS col0 FROM tab0
----
3
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 68 * + col2 col0 FROM tab0
----
3196
6732
680

query II rowsort
SELECT + col1, - 58 FROM tab1 AS cor0
----
14
-58
47
-58
5
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8596
SELECT DISTINCT + col2, - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8596
SELECT DISTINCT + col2, - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8597
SELECT + col2 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8597
SELECT + col2 + - CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 + - - col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT 95 + COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-8599
SELECT 95 + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
95

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT ALL 14 * + col1 AS col2 FROM tab1 AS cor0
----
196
658
70

query I rowsort
SELECT ALL - + 90 + col0 AS col2 FROM tab2 AS cor0
----
-15
-26
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8603
SELECT - ( + ( ( + - CAST( NULL AS SIGNED ) ) ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8603
SELECT - ( + ( ( + - CAST ( NULL AS INTEGER ) ) ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT ALL - + COUNT( DISTINCT + col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL - + COUNT ( DISTINCT + col1 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8605
SELECT DISTINCT - MIN( DISTINCT col0 ) - + COUNT( * ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8605
SELECT DISTINCT - MIN ( DISTINCT col0 ) - + COUNT ( * ) FROM tab0 AS cor0
----
-18

query I rowsort
SELECT + - col0 + + + col1 AS col1 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT DISTINCT col0 * + 45 + - 98 AS col1 FROM tab0
----
3817
4267
577

query I rowsort
SELECT - 98 AS col1 FROM tab1, tab1 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

query I rowsort
SELECT DISTINCT + col2 - + 8 + - + 96 FROM tab0
----
-5
-57
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT + COUNT( * ) + - - COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8610
SELECT + COUNT ( * ) + - - COUNT ( * ) FROM tab1
----
6

query III rowsort
SELECT * FROM tab0 WHERE 97 * + col2 - - col1 + + + col0 * col2 / col1 IS NULL
----

query I rowsort
SELECT + 94 + - - 2 FROM tab1
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT DISTINCT - MIN( - 62 ) AS col0 FROM tab2, tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-8613
SELECT DISTINCT - MIN ( - 62 ) AS col0 FROM tab2, tab2 AS cor0
----
62

query I rowsort
SELECT 50 FROM tab0 WHERE + 58 IS NOT NULL
----
50
50
50

query I rowsort
SELECT - 61 * - col0 FROM tab1
----
3111
5185
5551

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> 58 + + 55
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * 36 * + + col2 * + - ( + 86 ) + + - 94 col2 FROM tab1 AS cor0
----
4160930
913226
9894722

query II rowsort
SELECT ALL - - col0, col0 AS col2 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT ALL - - 49 AS col2 FROM tab0 AS cor0
----
49
49
49

query I rowsort
SELECT DISTINCT + + 54 AS col1 FROM tab0 AS cor0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8621
SELECT ALL COUNT( * ) DIV + - 47 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL COUNT ( * ) / + - 47 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT 72 * - col1 FROM tab0 WHERE col2 * - 26 IS NOT NULL
----
-1512
-5832
-72

query III rowsort
SELECT * FROM tab1 WHERE NOT - 94 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT COUNT( DISTINCT + 61 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8624
SELECT COUNT ( DISTINCT + 61 ) FROM tab1
----
1

query I rowsort
SELECT - 9 + col1 AS col1 FROM tab0
----
-8
12
72

onlyif mysql # DIV for integer division: 
query I rowsort label-8626
SELECT ALL - col1 DIV 25 + - 28 AS col0 FROM tab1
----
-28
-28
-29

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL - col1 / 25 + - 28 AS col0 FROM tab1
----
-28
-28
-29

query I rowsort
SELECT DISTINCT ( ( + 87 ) ) AS col1 FROM tab1
----
87

query I rowsort
SELECT DISTINCT col0 + - 38 * + col1 AS col0 FROM tab1
----
-105
-1695
-481

query I rowsort
SELECT col0 + col0 * col0 FROM tab2 WHERE NOT ( col2 * + col1 ) IS NULL
----
2162
4160
5700

query I rowsort
SELECT + col2 + + 96 / - 4 AS col1 FROM tab2 WHERE col2 + - col1 BETWEEN ( NULL ) AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT ALL - 36 - + COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL = - col0 * col0
----
-36

skipif mysql # not compatible
query I rowsort label-8631
SELECT ALL - 36 - + COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL = - col0 * col0
----
-36

query I rowsort
SELECT + 70 AS col0 FROM tab2 WHERE NOT ( - col2 ) BETWEEN + col0 AND NULL
----
70
70
70

query I rowsort
SELECT ( + col1 ) FROM tab1 WHERE + col0 / - col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col1 * + 65 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 92 col0 FROM tab1 WHERE NOT 60 + col2 / - ( + col0 ) IN ( - 98 + 88 )
----
92

query III rowsort
SELECT * FROM tab1 WHERE ( col2 - col1 * - col0 ) NOT IN ( + 6 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT DISTINCT MIN( - 66 ) FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-8637
SELECT DISTINCT MIN ( - 66 ) FROM tab2
----
-66

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE + col1 * - col2 = - 28
----

query I rowsort
SELECT ALL col2 + - 31 * + col0 AS col2 FROM tab0
----
-2687
-2908
-418

onlyif mysql # DIV for integer division: 
query I rowsort label-8640
SELECT + 11 DIV 14 FROM tab1 WHERE + col1 + + 96 IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8640
SELECT + 11 / 14 FROM tab1 WHERE + col1 + + 96 IS NOT NULL
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE 52 / + 86 BETWEEN - 34 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8642
SELECT DISTINCT col0 DIV col1 - - col0 AS col1 FROM tab0
----
15
194
91

skipif mysql # not compatible
query I rowsort label-8642
SELECT DISTINCT col0 / col1 - - col0 AS col1 FROM tab0
----
15
194
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8643
SELECT ( - MIN( col0 ) ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-8643
SELECT ( - MIN ( col0 ) ) AS col2 FROM tab0
----
-15

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT ( col2 ) <> ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8645
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 ) > + 63 + + col2 / - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8645
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 ) > + 63 + + col2 / - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col0 + col2 FROM tab1 AS cor0 WHERE ( - col1 ) * - col1 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT col2 + + ( 89 ) AS col1 FROM tab0
----
136
188
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8648
SELECT * FROM tab2 WHERE NULL = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8648
SELECT * FROM tab2 WHERE NULL = CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8649
SELECT DISTINCT MAX( DISTINCT - 30 ) * 54 FROM tab1 AS cor0 CROSS JOIN tab1
----
-1620

skipif mysql # not compatible
query I rowsort label-8649
SELECT DISTINCT MAX ( DISTINCT - 30 ) * 54 FROM tab1 AS cor0 CROSS JOIN tab1
----
-1620

query III rowsort
SELECT * FROM tab2 WHERE 98 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8651
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + CAST( 91 AS SIGNED ) ) BETWEEN ( - 18 ) AND + ( col1 ) * col0 + col0
----

skipif mysql # not compatible
query III rowsort label-8651
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + CAST ( 91 AS INTEGER ) ) BETWEEN ( - 18 ) AND + ( col1 ) * col0 + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col2 ) > + 31
----
46
51
23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8654
SELECT ( col2 ) AS col2 FROM tab1 AS cor0 WHERE - ( CAST( NULL AS SIGNED ) ) > 48
----

skipif mysql # not compatible
query I rowsort label-8654
SELECT ( col2 ) AS col2 FROM tab1 AS cor0 WHERE - ( CAST ( NULL AS INTEGER ) ) > 48
----

query I rowsort
SELECT DISTINCT - ( + col2 ) * col2 + - col1 AS col2 FROM tab0 cor0
----
-121
-2290
-9802

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8656
SELECT ALL - col0 + col1 AS col0 FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( CAST( NULL AS SIGNED ) - col2 * 3 )
----

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL - col0 + col1 AS col0 FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( CAST ( NULL AS INTEGER ) - col2 * 3 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 - - col0 col1 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8658
SELECT MIN( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8658
SELECT MIN ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT + col1 - + 63 AS col2 FROM tab0
----
-42
-62
18

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IS NOT NULL OR NOT col1 BETWEEN ( col0 ) AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT ALL MAX( col0 ) + 59 AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL MAX ( col0 ) + 59 AS col0 FROM tab0
----
156

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8662
SELECT DISTINCT CAST( + col0 AS SIGNED ) DIV - col0 - + col1 FROM tab0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-8662
SELECT DISTINCT CAST ( + col0 AS INTEGER ) / - col0 - + col1 FROM tab0
----
-2
-22
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8663
SELECT COUNT( * ) * + CAST( + 9 AS SIGNED ) col1 FROM tab2
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8663
SELECT COUNT ( * ) * + CAST ( + 9 AS INTEGER ) col1 FROM tab2
----
27

query I rowsort
SELECT DISTINCT col1 + + 97 FROM tab2
----
148
164
174

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8665
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8666
SELECT col2 * 57 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8666
SELECT col2 * 57 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8667
SELECT ALL + col1 * + col1 - + col2 DIV + 54 FROM tab2
----
2601
4488
5929

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL + col1 * + col1 - + col2 / + 54 FROM tab2
----
2601
4488
5929

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT col1 * col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 ) > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 36 * - 11 IN ( 11 * - col0 + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( col0 ) + col0 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8672
SELECT DISTINCT - col1 + col2 AS col2 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN col0 + 17 / - CAST( NULL AS DECIMAL ) AND col0
----
82

skipif mysql # not compatible
query I rowsort label-8672
SELECT DISTINCT - col1 + col2 AS col2 FROM tab1 AS cor0 WHERE NOT col2 BETWEEN col0 + 17 / - CAST ( NULL AS REAL ) AND col0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8673
SELECT + 56 DIV + - col1 - col1 AS col0 FROM tab2 cor0
----
-52
-67
-77

skipif mysql # not compatible
query I rowsort label-8673
SELECT + 56 / + - col1 - col1 AS col0 FROM tab2 cor0
----
-52
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT DISTINCT - COUNT( ALL - ( 8 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8674
SELECT DISTINCT - COUNT ( ALL - ( 8 ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8675
SELECT + col0, - CAST( NULL AS SIGNED ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-8675
SELECT + col0, - CAST ( NULL AS INTEGER ) FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8676
SELECT ALL + 99 * COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
891

skipif mysql # not compatible
query I rowsort label-8676
SELECT ALL + 99 * COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
891

query II rowsort
SELECT ALL + 9, 22 * - + ( 74 ) * 8 AS col2 FROM tab1 AS cor0
----
9
-13024
9
-13024
9
-13024

query I rowsort
SELECT - + 25 * + ( - 41 ) + col1 AS col2 FROM tab2 AS cor0
----
1076
1092
1102

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT + 98 * COUNT( * ) FROM tab1 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-8679
SELECT + 98 * COUNT ( * ) FROM tab1 AS cor0
----
294

query I rowsort
SELECT DISTINCT col0 * - 82 AS col0 FROM tab2 AS cor0
----
-3772
-5248
-6150

onlyif mysql # DIV for integer division: 
query I rowsort label-8681
SELECT DISTINCT 68 DIV + col0 + - col2 FROM tab1 AS cor0
----
-59
-68
-95

skipif mysql # not compatible
query I rowsort label-8681
SELECT DISTINCT 68 / + col0 + - col2 FROM tab1 AS cor0
----
-59
-68
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT MAX( ALL + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 39
----
NULL

skipif mysql # not compatible
query I rowsort label-8682
SELECT MAX ( ALL + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 39
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + col2 * - + col0 col2 FROM tab1 AS cor0
----
-4910
-5020
-6235

query II rowsort
SELECT col0, - col1 + + - 24 * 22 FROM tab2 AS cor0
----
46
-579
64
-605
75
-595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 col0 FROM tab0
----
50

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 NOT BETWEEN ( NULL ) AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8687
SELECT col1 DIV - 60 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8687
SELECT col1 / - 60 AS col0 FROM tab2
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 47 col2 FROM tab0
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8689
SELECT - 9 + COUNT( * ) AS col2 FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8689
SELECT - 9 + COUNT ( * ) AS col2 FROM tab2 cor0
----
-6

query II rowsort
SELECT ALL - - ( + 48 ) AS col0, col1 AS col0 FROM tab1 AS cor0
----
48
14
48
47
48
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8691
SELECT DISTINCT col1 DIV + col2 + + 5 AS col2 FROM tab0 AS cor0
----
5
6
7

skipif mysql # not compatible
query I rowsort label-8691
SELECT DISTINCT col1 / + col2 + + 5 AS col2 FROM tab0 AS cor0
----
5
6
7

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col1 + + + col0 * col0 FROM tab2 AS cor0
----
2167
4173
5692

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - ( col1 ) + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8695
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - AVG ( ALL + 73 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8695
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - AVG ( ALL + 73 ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8696
SELECT + ( + 77 ) DIV col1 - + + col1 AS col2 FROM tab0 AS cor0
----
-18
-81
76

skipif mysql # not compatible
query I rowsort label-8696
SELECT + ( + 77 ) / col1 - + + col1 AS col2 FROM tab0 AS cor0
----
-18
-81
76

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE - col1 * + 25 <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8698
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN + + col1 * - 1 - 1 / 29 AND NULL AND ( 68 ) >= ( col0 )
----

skipif mysql # not compatible
query III rowsort label-8698
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN + + col1 * - 1 - 1 / 29 AND NULL AND ( 68 ) >= ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - col0 ) + col1 AS col0, col1 col1 FROM tab2 AS cor0
----
-8
67
13
77
5
51

query I rowsort
SELECT DISTINCT - - col0 * col2 + - col1 * col2 + col1 + + col0 FROM tab0 AS cor0
----
-3006
768
9602

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8701
SELECT ALL CAST( NULL AS SIGNED ) * MIN( + - col1 ) * AVG ( + + col0 ) + COUNT( * ) + ( - MAX( - col0 ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8701
SELECT ALL CAST ( NULL AS INTEGER ) * MIN ( + - col1 ) * AVG ( + + col0 ) + COUNT ( * ) + ( - MAX ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8702
SELECT DISTINCT CAST( - 30 AS SIGNED ) - CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-8702
SELECT DISTINCT CAST ( - 30 AS INTEGER ) - CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8703
SELECT ALL - CAST( NULL AS SIGNED ) * + - 32 - - col0 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8703
SELECT ALL - CAST ( NULL AS INTEGER ) * + - 32 - - col0 col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT DISTINCT 67 - - COUNT( * ) AS col0 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-8704
SELECT DISTINCT 67 - - COUNT ( * ) AS col0 FROM tab0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8705
SELECT ALL - CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 67 FROM tab0, tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT 16, - col1 AS col1 FROM tab2
----
16
-51
16
-67
16
-77

query I rowsort
SELECT DISTINCT - col0 * - + col0 AS col1 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT DISTINCT - 42 * - col0 + - col1 FROM tab0 AS cor0
----
3633
4073
549

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT 10 + + COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
10

skipif mysql # not compatible
query I rowsort label-8710
SELECT 10 + + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----
10

query II rowsort
SELECT DISTINCT col1, - col0 FROM tab0 cor0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT ( + + col0 ) AS col2 FROM tab0
----
15
87
97

query I rowsort
SELECT - + col2 + + col1 FROM tab0 WHERE NOT 65 * + + 52 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( + - col0 ) NOT BETWEEN - col2 AND - - 66
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT COUNT( + 26 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8715
SELECT COUNT ( + 26 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col2
----

query II rowsort
SELECT ALL - col0 * - - 37 AS col0, col1 FROM tab1 AS cor0
----
-1887
14
-3145
5
-3367
47

query I rowsort
SELECT DISTINCT ( + - col0 ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, 91 col1 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL IN ( col0, col1 - - 81 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 60 NOT BETWEEN ( NULL ) AND 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8722
SELECT ALL + COUNT( * ) * - - ( + - 12 ) FROM tab0 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-8722
SELECT ALL + COUNT ( * ) * - - ( + - 12 ) FROM tab0 cor0
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 col1 FROM tab1 AS cor0
----
38

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab0 WHERE NOT col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 43 AS col0, + col2 col2 FROM tab0
----
43
10
43
47
43
99

query I rowsort
SELECT - 86 * + col0 AS col1 FROM tab0
----
-1290
-7482
-8342

onlyif mysql # DIV for integer division: 
query I rowsort label-8727
SELECT 95 DIV + 30 FROM tab1
----
3
3
3

skipif mysql # not compatible
query I rowsort label-8727
SELECT 95 / + 30 FROM tab1
----
3
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - 30 col2 FROM tab2
----
1380
1920
2250

query I rowsort
SELECT DISTINCT + 9 * - + col0 FROM tab0
----
-135
-783
-873

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----
0

query II rowsort
SELECT + col1 - col0, 16 * 11 AS col2 FROM tab1 cor0 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 19 + + col0 col0 FROM tab0 AS cor0
----
106
116
34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8733
SELECT * FROM tab2 AS cor0 WHERE - col1 / CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8733
SELECT * FROM tab2 AS cor0 WHERE - col1 / CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL - col0 + col2 + + - col1 + + 34 FROM tab1 AS cor0
----
-36
3
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8735
SELECT DISTINCT + MAX( col2 ) + MIN( + - 16 ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8735
SELECT DISTINCT + MAX ( col2 ) + MIN ( + - 16 ) FROM tab2 AS cor0
----
42

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col2 * + + 75 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * + 96 AS col1 FROM tab2
----
-2208
-3840
-5568

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + ( + col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8739
SELECT CAST( col2 AS SIGNED ) DIV 1 * + col1 AS col1, + 35 AS col0 FROM tab2 AS cor0
----
1173
35
3080
35
3886
35

skipif mysql # not compatible
query II rowsort label-8739
SELECT CAST ( col2 AS INTEGER ) / 1 * + col1 AS col1, + 35 AS col0 FROM tab2 AS cor0
----
1173
35
3080
35
3886
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 col2 FROM tab1 AS cor0
----
-84
-84
-84

query I rowsort
SELECT DISTINCT - 21 * - col2 * col0 AS col1 FROM tab0 AS cor0
----
14805
18270
201663

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col2 + - + 41 / col1 IN ( - 7 * - + col0 + + - 91 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT - SUM( DISTINCT + - col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-8743
SELECT - SUM ( DISTINCT + - col2 ) AS col0 FROM tab2
----
121

query I rowsort
SELECT ALL ( + + ( 13 ) ) AS col2 FROM tab1
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT + + COUNT( * ) AS col1 FROM tab1 WHERE NOT + 3 > col2
----
3

skipif mysql # not compatible
query I rowsort label-8745
SELECT + + COUNT ( * ) AS col1 FROM tab1 WHERE NOT + 3 > col2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8746
SELECT DISTINCT - + MIN( DISTINCT + 30 ) * - 93 + + MIN( - col2 ) AS col0 FROM tab0 WHERE + col2 NOT BETWEEN ( NULL ) AND - col1 / col1
----
2691

skipif mysql # not compatible
query I rowsort label-8746
SELECT DISTINCT - + MIN ( DISTINCT + 30 ) * - 93 + + MIN ( - col2 ) AS col0 FROM tab0 WHERE + col2 NOT BETWEEN ( NULL ) AND - col1 / col1
----
2691

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT NULL BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ALL 28 AS col1 FROM tab1 AS cor0 WHERE ( + col0 * - col2 BETWEEN ( NULL ) AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8749
SELECT - 96 * + CAST( - 62 AS SIGNED ) * - + col0 FROM tab0 AS cor0
----
-517824
-577344
-89280

skipif mysql # not compatible
query I rowsort label-8749
SELECT - 96 * + CAST ( - 62 AS INTEGER ) * - + col0 FROM tab0 AS cor0
----
-517824
-577344
-89280

query I rowsort
SELECT ALL 29 AS col1 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query II rowsort
SELECT col1 * - + 48, col2 - col1 + - + ( + 0 ) AS col1 FROM tab0
----
-1008
-11
-3888
-34
-48
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8752
SELECT 69 - + - CAST( NULL AS SIGNED ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8752
SELECT 69 - + - CAST ( NULL AS INTEGER ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL + ( + + col1 ) FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8754
SELECT + + COUNT( - - CAST( + + col2 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8754
SELECT + + COUNT ( - - CAST ( + + col2 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT col1 + + 55 FROM tab2 AS cor0
----
106
122
132

query I rowsort
SELECT - ( - 92 ) * + - col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-4324
-9108
-920

query I rowsort
SELECT DISTINCT - 71 * + + 72 AS col2 FROM tab2 AS cor0
----
-5112

onlyif mysql # aggregate syntax: 
query I rowsort label-8758
SELECT DISTINCT MAX( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8758
SELECT DISTINCT MAX ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8759
SELECT SUM( ALL col2 ) col0, + 35 DIV - 19 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8759
SELECT SUM ( ALL col2 ) col0, + 35 / - 19 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8760
SELECT ALL - 86 * + 66 + + + SUM( - - col1 ) + - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-5576

skipif mysql # not compatible
query I rowsort label-8760
SELECT ALL - 86 * + 66 + + + SUM ( - - col1 ) + - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-5576

onlyif mysql # aggregate syntax: 
query II rowsort label-8761
SELECT + COUNT( * ) AS col2, COUNT( * ) * + 88 AS col1 FROM tab0 cor0
----
3
264

skipif mysql # not compatible
query II rowsort label-8761
SELECT + COUNT ( * ) AS col2, COUNT ( * ) * + 88 AS col1 FROM tab0 cor0
----
3
264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 38 * + col1, col1 col2 FROM tab2 cor0
----
1938
51
2546
67
2926
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8763
SELECT + CAST( - ( - 19 ) AS SIGNED ) AS col1 FROM tab2 cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-8763
SELECT + CAST ( - ( - 19 ) AS INTEGER ) AS col1 FROM tab2 cor0
----
19
19
19

query II rowsort
SELECT - 54 AS col1, + col0 FROM tab2 AS cor0
----
-54
46
-54
64
-54
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8765
SELECT DISTINCT - + 45 + + COUNT( * ) FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-8765
SELECT DISTINCT - + 45 + + COUNT ( * ) FROM tab0 AS cor0
----
-42

query I rowsort
SELECT + ( + ( + 20 ) ) AS col0 FROM tab2
----
20
20
20

query III rowsort
SELECT * FROM tab0 WHERE 3 * + + 31 - col0 < ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8768
SELECT ALL + 11 DIV COUNT( * ) * - - MIN( DISTINCT col0 ) + - COUNT( * ) col1 FROM tab2
----
135

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8768
SELECT ALL + 11 / COUNT ( * ) * - - MIN ( DISTINCT col0 ) + - COUNT ( * ) col1 FROM tab2
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT ( + + ( 62 ) * col2 + - 11 - - col2 ) <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT ( + + ( 62 ) * col2 + - 11 - - col2 ) <> NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 4 / - - 3 >= NULL
----

query I rowsort
SELECT + 26 AS col0 FROM tab0 WHERE + col1 < + + col2
----
26

query I rowsort
SELECT ALL ( + - col0 ) FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT + 94 + 42 * + MIN( ALL - 4 ) * ( + 22 ) AS col2 FROM tab2 AS cor0
----
-3602

skipif mysql # not compatible
query I rowsort label-8773
SELECT + 94 + 42 * + MIN ( ALL - 4 ) * ( + 22 ) AS col2 FROM tab2 AS cor0
----
-3602

query I rowsort
SELECT + + col2 * - - col1 AS col0 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab2 AS cor0 WHERE ( + col2 ) * + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8776
SELECT col0 * + ( - col2 ) + + 92 + - CAST( - - col2 AS SIGNED ) DIV - + col0 + - 55 AS col0 FROM tab0 AS cor0
----
-665
-833
-9565

skipif mysql # not compatible
query I rowsort label-8776
SELECT col0 * + ( - col2 ) + + 92 + - CAST ( - - col2 AS INTEGER ) / - + col0 + - 55 AS col0 FROM tab0 AS cor0
----
-665
-833
-9565

query I rowsort
SELECT DISTINCT + 27 AS col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
27

query II rowsort
SELECT col0, col2 AS col1 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8779
SELECT 43 - + - CAST( - col0 AS SIGNED ) FROM tab1
----
-42
-48
-8

skipif mysql # not compatible
query I rowsort label-8779
SELECT 43 - + - CAST ( - col0 AS INTEGER ) FROM tab1
----
-42
-48
-8

query II rowsort
SELECT ALL col1 AS col1, - col2 * col2 FROM tab1 AS cor0
----
14
-9216
47
-4624
5
-3481

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8781
SELECT + col2 - + CAST( NULL AS SIGNED ) + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8781
SELECT + col2 - + CAST ( NULL AS INTEGER ) + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 20 > - + col2 * + + col1 * + col2
----

query I rowsort
SELECT + 11 FROM tab1 AS cor0 WHERE NOT ( NULL <> NULL )
----

query II rowsort
SELECT ( + + col2 ), + 43 FROM tab0
----
10
43
47
43
99
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8785
SELECT DISTINCT COUNT( * ) DIV - + COUNT( * ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-8785
SELECT DISTINCT COUNT ( * ) / - + COUNT ( * ) FROM tab1
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8786
SELECT ALL + col1 / + - CAST( NULL AS DECIMAL ) * + 18 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8786
SELECT ALL + col1 / + - CAST ( NULL AS REAL ) * + 18 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8787
SELECT ( COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8787
SELECT ( COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 82 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8789
SELECT + + ( - - COUNT( * ) ) + ( - ( - - COUNT( * ) ) ) DIV - 50 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8789
SELECT + + ( - - COUNT ( * ) ) + ( - ( - - COUNT ( * ) ) ) / - 50 FROM tab1 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8790
SELECT DISTINCT + col1 * col0 DIV - 86 FROM tab1 AS cor0
----
-4
-49
-8

skipif mysql # not compatible
query I rowsort label-8790
SELECT DISTINCT + col1 * col0 / - 86 FROM tab1 AS cor0
----
-4
-49
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT + + SUM( - + 43 ) + COUNT( * ) FROM tab0 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-8791
SELECT + + SUM ( - + 43 ) + COUNT ( * ) FROM tab0 AS cor0
----
-126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8792
SELECT ALL CAST( NULL AS DECIMAL ) + - MIN( - CAST( + ( col0 ) AS SIGNED ) ) / 11 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8792
SELECT ALL CAST ( NULL AS REAL ) + - MIN ( - CAST ( + ( col0 ) AS INTEGER ) ) / 11 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8793
SELECT ALL col1 * + CAST( NULL AS SIGNED ) / col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8793
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) / col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT col1 AS col2, col1 AS col0 FROM tab1
----
14
14
47
47
5
5

query II rowsort
SELECT DISTINCT - col1 + + 85 AS col1, 23 AS col2 FROM tab2
----
18
23
34
23
8
23

query I rowsort
SELECT ALL + 16 * + + col1 FROM tab2
----
1072
1232
816

query II rowsort
SELECT col0 * + + 81 AS col2, 29 AS col1 FROM tab2
----
3726
29
5184
29
6075
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 * - - col2 col2 FROM tab1
----
2773
3196
4512

onlyif mysql # DIV for integer division: 
query I rowsort label-8799
SELECT DISTINCT + col0 DIV - col0 col2 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8799
SELECT DISTINCT + col0 / - col0 col2 FROM tab1
----
-1

query I rowsort
SELECT ALL + ( - - col1 ) + + 18 AS col1 FROM tab2 WHERE NOT + col0 > - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT - - COUNT( * ) FROM tab2 WHERE - 16 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8801
SELECT - - COUNT ( * ) FROM tab2 WHERE - 16 IS NOT NULL
----
3

query I rowsort
SELECT col1 * - 57 AS col1 FROM tab0
----
-1197
-4617
-57

query I rowsort
SELECT + col0 * - ( - col0 ) * + + 37 AS col2 FROM tab2
----
151552
208125
78292

query I rowsort
SELECT DISTINCT + 52 + col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 18 + - col0 + - col0 > + col0
----

query II rowsort
SELECT ALL - - col2 AS col1, + 39 FROM tab0 AS cor0
----
10
39
47
39
99
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT ALL + SUM( 53 ) + 23 FROM tab2 AS cor0
----
182

skipif mysql # not compatible
query I rowsort label-8807
SELECT ALL + SUM ( 53 ) + 23 FROM tab2 AS cor0
----
182

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT ALL 51 - + SUM( + col1 ) FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL 51 - + SUM ( + col1 ) FROM tab0
----
-52

query I rowsort
SELECT DISTINCT 21 * - - 6 * + + col1 - - col2 FROM tab2
----
6449
8500
9742

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT ALL - - 20 - - SUM( + - 76 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-664

skipif mysql # not compatible
query I rowsort label-8810
SELECT ALL - - 20 - - SUM ( + - 76 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-664

query II rowsort
SELECT ALL col2 + - col1, ( - - 2 ) * + 9 + - col0 FROM tab0 AS cor0 WHERE NULL <> col2 + - 21
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 16 * + col0 * - col0 + + - col2 = col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 26 * + col0 FROM tab1 cor0
----
-1326
-2210
-2366

onlyif mysql # aggregate syntax: 
query I rowsort label-8814
SELECT DISTINCT COUNT( * ) * 59 AS col0 FROM tab0 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT COUNT ( * ) * 59 AS col0 FROM tab0 AS cor0
----
177

query II rowsort
SELECT + + col0 * 72 * + + 28 AS col1, - 0 FROM tab0 AS cor0 WHERE NOT NULL = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8816
SELECT ALL - - COUNT( * ) * + 62 FROM tab1 cor0
----
186

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL - - COUNT ( * ) * + 62 FROM tab1 cor0
----
186

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8817
SELECT ALL + + COUNT( * ) DIV MIN( - ( + - col2 ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8817
SELECT ALL + + COUNT ( * ) / MIN ( - ( + - col2 ) ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8818
SELECT DISTINCT 84 DIV col1 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8818
SELECT DISTINCT 84 / col1 AS col2 FROM tab2
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + col1 IS NULL )
----

query II rowsort
SELECT ALL 28, + col2 AS col0 FROM tab1
----
28
59
28
68
28
96

query I rowsort
SELECT ALL 7 FROM tab0, tab1 cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query II rowsort
SELECT DISTINCT col2 AS col2, + col1 FROM tab1
----
59
5
68
47
96
14

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( ( NOT col1 <= NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT MIN( - 95 ) - + - 91 FROM tab2, tab1 AS cor0 WHERE + - 81 IS NOT NULL
----
-4

skipif mysql # not compatible
query I rowsort label-8824
SELECT MIN ( - 95 ) - + - 91 FROM tab2, tab1 AS cor0 WHERE + - 81 IS NOT NULL
----
-4

query I rowsort
SELECT DISTINCT + 49 AS col0 FROM tab2, tab1 AS cor0
----
49

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 * - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * + + col2 - - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8828
SELECT ALL 84 DIV + MIN( col1 ) col1 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8828
SELECT ALL 84 / + MIN ( col1 ) col1 FROM tab2
----
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN col2 + col0 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8830
SELECT ALL COUNT( DISTINCT + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8830
SELECT ALL COUNT ( DISTINCT + col0 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 99 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8832
SELECT COUNT( DISTINCT col0 ) + + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8832
SELECT COUNT ( DISTINCT col0 ) + + COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT DISTINCT - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8833
SELECT DISTINCT - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) = + 70
----

query I rowsort
SELECT + - 91 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT ALL - - col2 + + - col0 * + col1 FROM tab1 AS cor0
----
-366
-4209
-618

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 53 ) <= + 83
----

query I rowsort
SELECT ALL col0 + + + col0 * - 24 AS col2 FROM tab2 AS cor0
----
-1058
-1472
-1725

query I rowsort
SELECT DISTINCT - col2 + + col0 + + col1 AS col1 FROM tab1 AS cor0
----
-31
31
70

query I rowsort
SELECT ALL + col2 + + - 4 FROM tab2
----
19
36
54

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT - col2 + 51 AS col2 FROM tab1
----
-17
-45
-8

query I rowsort
SELECT ALL col1 * col1 + 79 AS col1 FROM tab0
----
520
6640
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8844
SELECT - 29 + - CAST( - + col1 AS SIGNED ) FROM tab1
----
-15
-24
18

skipif mysql # not compatible
query I rowsort label-8844
SELECT - 29 + - CAST ( - + col1 AS INTEGER ) FROM tab1
----
-15
-24
18

query II rowsort
SELECT ALL - 43 * col2 + - 62 * + col2 * + col0 AS col1, col2 AS col2 FROM tab2 WHERE 8 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * - ( - col1 ) - 64 AS col1 FROM tab1 WHERE NOT - - 20 * - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT DISTINCT - MAX( - col2 ) col0 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8847
SELECT DISTINCT - MAX ( - col2 ) col0 FROM tab1
----
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - 29 * + col2 / 15 AND NULL
----

query I rowsort
SELECT + 38 * + col0 + + ( + - 6 ) FROM tab1 AS cor0
----
1932
3224
3452

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8850
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8850
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT COUNT( * ) * COUNT( * ) - - SUM( - + col0 ) AS col2 FROM tab0 AS cor0
----
-190

skipif mysql # not compatible
query I rowsort label-8851
SELECT COUNT ( * ) * COUNT ( * ) - - SUM ( - + col0 ) AS col2 FROM tab0 AS cor0
----
-190

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 BETWEEN - ( - col1 ) AND + - col1
----

query I rowsort
SELECT DISTINCT - - 76 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
76

query II rowsort
SELECT ALL - 76, + 21 AS col2 FROM tab1 AS cor0
----
-76
21
-76
21
-76
21

query II rowsort
SELECT DISTINCT + + col1 AS col2, - col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

query II rowsort
SELECT ALL + col2 AS col2, col2 FROM tab1 cor0
----
59
59
68
68
96
96

query I rowsort
SELECT ALL - 88 * - 64 * 93 AS col2 FROM tab2 AS cor0
----
523776
523776
523776

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 36 + + col1 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8859
SELECT ALL ( - + col1 ) DIV + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8859
SELECT ALL ( - + col1 ) / + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 + - col0 < NULL
----

query II rowsort
SELECT col2 * col2, 26 AS col0 FROM tab2
----
1600
26
3364
26
529
26

query III rowsort
SELECT * FROM tab0 WHERE + col0 + 78 < - col1 AND NOT NULL >= col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 col0 FROM tab2
----
-75
-75
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8864
SELECT - SUM( - col1 ) * - + 90 + + COUNT( * ) * - CAST( NULL AS SIGNED ) * + 94 * - ( - SUM( + 54 ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8864
SELECT - SUM ( - col1 ) * - + 90 + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) * + 94 * - ( - SUM ( + 54 ) ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 * - col2 + + 14 >= - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 21 col1 FROM tab1 AS cor0 WHERE 15 * - col2 - + col0 <> - + col2
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL col1 AS col2, col1 + + col1 * col0 col2, - col0 * - col2 * - + 26 FROM tab2 AS cor0 WHERE ( NOT - + col1 NOT BETWEEN - 94 * + col2 AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8868
SELECT col2 DIV + - 19 AS col1 FROM tab0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-8868
SELECT col2 / + - 19 AS col1 FROM tab0
----
-2
-5
0

query I rowsort
SELECT - 82 * + + 31 * + col0 * + col1 + + + col2 AS col0 FROM tab2
----
-12526936
-12773492
-5963509

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8870
SELECT - COUNT( ALL - 22 ) * + 30 + - MAX( + - CAST( NULL AS SIGNED ) ) * + 65 * - AVG ( DISTINCT + 46 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8870
SELECT - COUNT ( ALL - 22 ) * + 30 + - MAX ( + - CAST ( NULL AS INTEGER ) ) * + 65 * - AVG ( DISTINCT + 46 ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 71 col1 FROM tab0 AS cor0
----
-71

query I rowsort
SELECT - col2 + + + col1 AS col0 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8873
SELECT ALL COUNT( * ) + + + ( COUNT( ALL + col2 ) ) AS col0 FROM tab2 AS cor0 WHERE CAST( + 58 AS SIGNED ) + - col2 IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-8873
SELECT ALL COUNT ( * ) + + + ( COUNT ( ALL + col2 ) ) AS col0 FROM tab2 AS cor0 WHERE CAST ( + 58 AS INTEGER ) + - col2 IS NOT NULL
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8874
SELECT DISTINCT - - 6 + + 69 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8874
SELECT DISTINCT - - 6 + + 69 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NULL = - ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8876
SELECT + 3 * - - col0 AS col2 FROM tab1 WHERE CAST( + + col1 AS SIGNED ) IS NOT NULL
----
153
255
273

skipif mysql # not compatible
query I rowsort label-8876
SELECT + 3 * - - col0 AS col2 FROM tab1 WHERE CAST ( + + col1 AS INTEGER ) IS NOT NULL
----
153
255
273

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT DISTINCT + 20 - COUNT( * ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-8877
SELECT DISTINCT + 20 - COUNT ( * ) FROM tab1
----
17

query I rowsort
SELECT 45 + + - 46 FROM tab1, tab1 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - - ( + ( col0 ) ) col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8880
SELECT DISTINCT - - CAST( - + CAST( + col1 AS DECIMAL ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + + 71 AND + col2
----
-14

skipif mysql # not compatible
query I rowsort label-8880
SELECT DISTINCT - - CAST ( - + CAST ( + col1 AS REAL ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN + + 71 AND + col2
----
-14

query II rowsort
SELECT 6 - col2, + col1 AS col1 FROM tab1 AS cor0
----
-53
5
-62
47
-90
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * 71 col2, 74 + - + col2 + - col0 AS col1 FROM tab0 AS cor0
----
1491
-23
5751
12
71
-122

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8883
SELECT DISTINCT + - COUNT( ALL - col0 ), 88 DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3
29

skipif mysql # not compatible
query II rowsort label-8883
SELECT DISTINCT + - COUNT ( ALL - col0 ), 88 / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT 84 * MIN( col2 ) FROM tab2 AS cor0 WHERE 22 + - ( 89 ) NOT IN ( + - col2 )
----
1932

skipif mysql # not compatible
query I rowsort label-8884
SELECT 84 * MIN ( col2 ) FROM tab2 AS cor0 WHERE 22 + - ( 89 ) NOT IN ( + - col2 )
----
1932

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT + ( - COUNT( * ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8885
SELECT + ( - COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-3

query III rowsort
SELECT col0, - 58, 27 / col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0 * - col1 + - col0, 71 * - col1 * col0 * - col0, 10 * - col2 / col1 + 11 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT DISTINCT - MIN( ALL + 96 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8887
SELECT DISTINCT - MIN ( ALL + 96 ) FROM tab1
----
-96

query I rowsort
SELECT 35 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8889
SELECT DISTINCT - SUM( 51 ) * - ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8889
SELECT DISTINCT - SUM ( 51 ) * - ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + col1 * - 94 FROM tab1 AS cor0
----
1316
4418
470

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 56 NOT IN ( + 49 + + ( + col0 ) * + + ( + - col0 ) * ( + 57 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT DISTINCT - 32 * - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8892
SELECT DISTINCT - 32 * - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
96

query I rowsort
SELECT + 71 FROM tab0 cor0 WHERE NOT - col2 NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT - 47 * - 12 AS col2 FROM tab2 AS cor0
----
564
564
564

query II rowsort
SELECT DISTINCT + col2 AS col0, - 21 FROM tab0
----
10
-21
47
-21
99
-21

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= - 64
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE NOT + - col0 >= + + col0 - 47 + col2 + + 29
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-8898
SELECT - 2 col0, + MIN( DISTINCT col2 ) col0 FROM tab0
----
-2
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8898
SELECT - 2 col0, + MIN ( DISTINCT col2 ) col0 FROM tab0
----
-2
10

query I rowsort
SELECT col2 + - 9 AS col0 FROM tab1 AS cor0
----
50
59
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 26 + + col2 col1 FROM tab1 AS cor0
----
122
85
94

query I rowsort
SELECT col1 + + - col1 - - col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + ( + col1 ) + + + col0 AS col2 FROM tab0 AS cor0
----
108
96
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 35 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 71 + col2 / ( ( - 38 ) ) AS col1 FROM tab2 WHERE NULL NOT BETWEEN + 87 - 71 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8905
SELECT - MIN( ALL + 45 ) FROM tab2, tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-45

skipif mysql # not compatible
query I rowsort label-8905
SELECT - MIN ( ALL + 45 ) FROM tab2, tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-45

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 = ( + col0 * - 23 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 49 - - + col2 IS NOT NULL
----

query I rowsort
SELECT + 16 * + 12 AS col2 FROM tab2
----
192
192
192

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE + ( - - 3 ) IS NULL
----

query I rowsort
SELECT ALL + 88 + + col1 FROM tab0 AS cor0
----
109
169
89

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8911
SELECT - col2 - col1 * 1 DIV 30 + - col2 + + col2 * + CAST( - - 81 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3711
7821
790

skipif mysql # not compatible
query I rowsort label-8911
SELECT - col2 - col1 * 1 / 30 + - col2 + + col2 * + CAST ( - - 81 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3711
7821
790

query I rowsort
SELECT + col1 * - ( - 31 ) + - 29 AS col0 FROM tab2 AS cor0
----
1552
2048
2358

query II rowsort
SELECT - col2 * - col0 + 2, col1 FROM tab1 AS cor0
----
4898
14
5017
5
6190
47

query I rowsort
SELECT + 14 + - col1 * - col2 FROM tab0 AS cor0
----
113
224
3821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8915
SELECT DISTINCT + COUNT( + - col1 ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8915
SELECT DISTINCT + COUNT ( + - col1 ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 60 + - 64 FROM tab0
----
-4
-4
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-8917
SELECT DISTINCT + 24 DIV - col1 FROM tab1 WHERE NULL IS NULL
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-8917
SELECT DISTINCT + 24 / - col1 FROM tab1 WHERE NULL IS NULL
----
-1
-4
0

query I rowsort
SELECT ALL col2 - 19 * - col0 * - 34 FROM tab2
----
-29693
-41304
-48392

query I rowsort
SELECT DISTINCT + ( + col0 ) AS col2 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT ALL - MIN( ALL - col0 ) - + MIN( DISTINCT 37 ) AS col2 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL - MIN ( ALL - col0 ) - + MIN ( DISTINCT 37 ) AS col2 FROM tab1
----
54

query I rowsort
SELECT + col1 / - 3 FROM tab2 WHERE - 43 / + 45 / - col0 * col1 BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT DISTINCT 81 - - 42 * MIN( - 13 ) * 58 FROM tab0
----
-31587

skipif mysql # not compatible
query I rowsort label-8922
SELECT DISTINCT 81 - - 42 * MIN ( - 13 ) * 58 FROM tab0
----
-31587

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8923
SELECT DISTINCT + ( CAST( - 81 AS SIGNED ) ), col0 AS col0, - + col1 AS col0 FROM tab1 AS cor0
----
9 values hashing to affebb78ff4cd0cf8d93db84ed0bf751

skipif mysql # not compatible
query III rowsort label-8923
SELECT DISTINCT + ( CAST ( - 81 AS INTEGER ) ), col0 AS col0, - + col1 AS col0 FROM tab1 AS cor0
----
9 values hashing to affebb78ff4cd0cf8d93db84ed0bf751

query II rowsort
SELECT + - 81, + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-81
-2116
-81
-4096
-81
-5625

onlyif mysql # aggregate syntax: 
query II rowsort label-8925
SELECT - COUNT( * ) * COUNT( + - col0 ) AS col1, - COUNT( * ) AS col2 FROM tab1 cor0
----
-9
-3

skipif mysql # not compatible
query II rowsort label-8925
SELECT - COUNT ( * ) * COUNT ( + - col0 ) AS col1, - COUNT ( * ) AS col2 FROM tab1 cor0
----
-9
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT ALL SUM( + col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8926
SELECT ALL SUM ( + col2 ) AS col2 FROM tab1 AS cor0
----
223

query II rowsort
SELECT DISTINCT col0 AS col2, col0 AS col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

query I rowsort
SELECT + ( 55 ) FROM tab1 AS cor0
----
55
55
55

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8929
SELECT - COUNT( - + 79 ) DIV - SUM( ALL + ( + col0 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + CAST( 76 AS SIGNED ) IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8929
SELECT - COUNT ( - + 79 ) / - SUM ( ALL + ( + col0 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + CAST ( 76 AS INTEGER ) IN ( - col1 )
----
0

query I rowsort
SELECT ALL - 14 * - 6 FROM tab0 AS cor0
----
84
84
84

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= + - 25
----

query I rowsort
SELECT - col0 * col2 + - 74 * + + col2 * 55 * - col2 FROM tab2 AS cor0
----
13687130
2151972
6509440

query I rowsort
SELECT DISTINCT + col1 + + + col0 * 59 AS col2 FROM tab0
----
5154
5724
966

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = - col1
----

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT + 91 IS NOT NULL
----

query I rowsort
SELECT ALL 54 * - - col0 AS col2 FROM tab0
----
4698
5238
810

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NULL <> - col2 + - - 45 / - col2 * - 49
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8938
SELECT DISTINCT + 78 * - CAST( NULL AS SIGNED ) + 1 - + 46 * - 39 AS col1, COUNT( * ) FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8938
SELECT DISTINCT + 78 * - CAST ( NULL AS INTEGER ) + 1 - + 46 * - 39 AS col1, COUNT ( * ) FROM tab0 AS cor0
----
NULL
3

query I rowsort
SELECT ALL + + col1 + - - col0 AS col1 FROM tab2 cor0
----
141
142
97

query I rowsort
SELECT DISTINCT - col0 + + 8 + - 16 - + - col1 + + col1 * - + col1 * col2 * + 28 FROM tab2 AS cor0
----
-1675047
-6640475
-7290152

query I rowsort
SELECT ALL + 67 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8942
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT 75 + - + COUNT( * ) col2 FROM tab2
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8943
SELECT 75 + - + COUNT ( * ) col2 FROM tab2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT - + COUNT( * ) FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-8944
SELECT - + COUNT ( * ) FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT DISTINCT COUNT( * ) * - COUNT( - 83 ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT COUNT ( * ) * - COUNT ( - 83 ) AS col1 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8946
SELECT - 47 * - - MAX( ALL - 38 ) + + ( + 74 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
1860

skipif mysql # not compatible
query I rowsort label-8946
SELECT - 47 * - - MAX ( ALL - 38 ) + + ( + 74 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
1860

query I rowsort
SELECT + ( + col1 ) * + - col1 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + col0 * col2 + - ( - + 37 ) + - col0 FROM tab2 AS cor0
----
1049
2533
4312

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT DISTINCT - ( SUM( ALL col1 ) ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8949
SELECT DISTINCT - ( SUM ( ALL col1 ) ) AS col1 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT - - 3 AS col1 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8951
SELECT + SUM( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE - 72 + - + col2 IS NOT NULL
----
-103

skipif mysql # not compatible
query I rowsort label-8951
SELECT + SUM ( DISTINCT - col1 ) FROM tab0 AS cor0 WHERE - 72 + - + col2 IS NOT NULL
----
-103

query I rowsort
SELECT DISTINCT - col0 + - + 39 FROM tab0 AS cor0
----
-126
-136
-54

query I rowsort
SELECT ALL 76 FROM tab2 AS cor0 WHERE NULL <> ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + + col1 col1 FROM tab2 AS cor0
----
28
37
9

query II rowsort
SELECT + col1 AS col2, + 42 + + col0 FROM tab2 AS cor0
----
51
88
67
117
77
106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 31 col0 FROM tab1 AS cor0
----
-31
-31
-31

query I rowsort
SELECT ALL + + col0 + - 96 * - col2 * + + col0 AS col1 FROM tab2 AS cor0
----
101614
245824
417675

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 * - col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * col2 - 93 + col0 * + ( - col1 ) + + col0 AS col1 FROM tab1
----
-1083
-138
588

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT 51 - + MIN( DISTINCT + col2 ) - + 31 * + COUNT( * ) FROM tab1
----
-101

skipif mysql # not compatible
query I rowsort label-8960
SELECT 51 - + MIN ( DISTINCT + col2 ) - + 31 * + COUNT ( * ) FROM tab1
----
-101

onlyif mysql # DIV for integer division: 
query I rowsort label-8961
SELECT col2 - - col2 DIV - - col2 AS col0 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-8961
SELECT col2 - - col2 / - - col2 AS col0 FROM tab2
----
24
41
59

query III rowsort
SELECT * FROM tab1 WHERE NOT 76 + - + 58 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8963
SELECT ALL + 42 DIV + 86 * col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL + 42 / + 86 * col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 WHERE NOT NULL NOT BETWEEN + + col2 - - col0 * - 24 * - + 54 AND + col1 * col1
----

query II rowsort
SELECT + col1 * 41 AS col0, 46 FROM tab2 cor0
----
2091
46
2747
46
3157
46

query I rowsort
SELECT - col2 + + 39 FROM tab2 AS cor0 WHERE NOT + 59 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT ALL + COUNT( DISTINCT - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8967
SELECT ALL + COUNT ( DISTINCT - col1 ) FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 51 - + - col2 IS NULL
----

query II rowsort
SELECT ALL + + col0 AS col1, col1 + - + col0 AS col0 FROM tab1 AS cor0
----
51
-37
85
-80
91
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT + + COUNT( + 19 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8970
SELECT + + COUNT ( + 19 ) AS col0 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT - col1 AS col0, col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 = - col0 * - + 7
----

query I rowsort
SELECT 54 + 83 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT - + MAX( + + col0 ) AS col1 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8974
SELECT - + MAX ( + + col0 ) AS col1 FROM tab2 cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL + + SUM( ALL - ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL + + SUM ( ALL - ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
185

query I rowsort
SELECT - col1 * - 94 AS col1 FROM tab0 AS cor0
----
1974
7614
94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 78 = + 64
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 + - 18 col0 FROM tab2 AS cor0
----
-1076
-2578
-4368

query II rowsort
SELECT DISTINCT + + col0 AS col2, col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 31 * + + 27 col0, 22 FROM tab0
----
837
22
837
22
837
22

query I rowsort
SELECT ALL - col0 * - 83 * + col1 FROM tab2
----
194718
409024
417075

query I rowsort
SELECT 71 * + 88 + 0 AS col2 FROM tab0
----
6248
6248
6248

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) + - - col2 - + + col1 col2 FROM tab1 cor0
----
112
133
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8984
SELECT 31 DIV - SUM( - 64 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8984
SELECT 31 / - SUM ( - 64 ) AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * - + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) IS NOT NULL OR NULL <> 57
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 90 + col0 + + col1 FROM tab1 AS cor0
----
155
180
228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8988
SELECT ALL CAST( + 51 AS SIGNED ) FROM tab0 AS cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-8988
SELECT ALL CAST ( + 51 AS INTEGER ) FROM tab0 AS cor0
----
51
51
51

query I rowsort
SELECT DISTINCT + 77 + 85 FROM tab0 AS cor0 WHERE NOT - col1 = + 43 AND + ( - + col1 ) + - 51 IS NOT NULL
----
162

query I rowsort
SELECT DISTINCT - col1 + + + col1 + col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT - ( - + 22 ) * - - 27 + - COUNT( * ) FROM tab0 AS cor0
----
591

skipif mysql # not compatible
query I rowsort label-8991
SELECT - ( - + 22 ) * - - 27 + - COUNT ( * ) FROM tab0 AS cor0
----
591

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 col0 FROM tab2 AS cor0
----
29

query I rowsort
SELECT - + col1 + - - col0 * col0 * - 75 FROM tab2 AS cor0
----
-158751
-307277
-421942

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
SELECT DISTINCT + ( - 82 ) + COUNT( * ) + + 33 AS col0 FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8994
SELECT DISTINCT + ( - 82 ) + COUNT ( * ) + + 33 AS col0 FROM tab1 AS cor0
----
-46

query I rowsort
SELECT ALL + col2 * 37 * col1 AS col2 FROM tab1 AS cor0
----
10915
118252
49728

onlyif mysql # DIV for integer division: 
query I rowsort label-8996
SELECT ALL + - col1 DIV + 21 AS col1 FROM tab2 AS cor0
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL + - col1 / + 21 AS col1 FROM tab2 AS cor0
----
-2
-3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8997
SELECT * FROM tab0 WHERE NOT + - CAST( col1 AS SIGNED ) IN ( + - ( + 63 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8997
SELECT * FROM tab0 WHERE NOT + - CAST ( col1 AS INTEGER ) IN ( + - ( + 63 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8998
SELECT - 43 DIV col1 DIV - 83 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8998
SELECT - 43 / col1 / - 83 AS col1 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 86, col0 col2 FROM tab0
----
86
15
86
87
86
97

query I rowsort
SELECT DISTINCT col2 * + 89 FROM tab1
----
5251
6052
8544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col2, + col1 col1 FROM tab0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query II rowsort label-9002
SELECT DISTINCT - + 46 AS col0, 97 + - ( + 58 ) + COUNT( * ) FROM tab0 AS cor0
----
-46
42

skipif mysql # not compatible
query II rowsort label-9002
SELECT DISTINCT - + 46 AS col0, 97 + - ( + 58 ) + COUNT ( * ) FROM tab0 AS cor0
----
-46
42

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT + MAX( DISTINCT - col1 ) * 8 AS col2 FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-9003
SELECT + MAX ( DISTINCT - col1 ) * 8 AS col2 FROM tab1 AS cor0
----
-40

query II rowsort
SELECT ALL 95, - 52 AS col1 FROM tab0 cor0
----
95
-52
95
-52
95
-52

query I rowsort
SELECT + 3 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT - 70 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-70
-70
-70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 0 col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT - - ( - col0 ) * + + ( 88 ) + col0 * - col0 FROM tab2 AS cor0
----
-12225
-6164
-9728

query I rowsort
SELECT + + 12 * + ( + 4 ) + - col2 + + 55 FROM tab2 AS cor0
----
45
63
80

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + + col1 * - col0 / + col1 >= + col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 * - 1 >= + + 31 + 0 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT ALL + MIN( ALL - col1 ) col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9012
SELECT ALL + MIN ( ALL - col1 ) col2 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT DISTINCT + - 48 AS col0 FROM tab2 AS cor0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9014
SELECT - col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE + col1 = - 95 * + 17
----

skipif mysql # not compatible
query II rowsort label-9014
SELECT - col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE + col1 = - 95 * + 17
----

query II rowsort
SELECT col1 AS col2, - col0 AS col1 FROM tab1
----
14
-51
47
-91
5
-85

query I rowsort
SELECT + col0 * + + col1 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 * + - col0 IS NOT NULL
----

query I rowsort
SELECT + col2 * - 59 * + 94 FROM tab1
----
-327214
-377128
-532416

query I rowsort
SELECT + col1 * - ( + + col0 ) AS col1 FROM tab2
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 col0 FROM tab1
----
55
55
55

query I rowsort
SELECT - ( + ( + ( + col2 ) ) ) AS col0 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT ALL MIN( DISTINCT + + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9022
SELECT ALL MIN ( DISTINCT + + col1 ) FROM tab2
----
51

query II rowsort
SELECT ALL + col1 AS col2, + 97 AS col0 FROM tab1
----
14
97
47
97
5
97

query I rowsort
SELECT DISTINCT + + col0 + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9025
SELECT ALL col0 + + col2 * - + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL col0 + + col2 * - + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 + - col1 * + col0 col2, 68 col0 FROM tab1 AS cor0
----
-366
68
-4209
68
-618
68

query I rowsort
SELECT + 45 * col0 * 27 * + 54 + 48 * 65 FROM tab2
----
3021180
4202160
4923870

query I rowsort
SELECT 45 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT + 13 + - col2 FROM tab2
----
-10
-27
-45

query I rowsort
SELECT - 80 * + + 85 FROM tab2
----
-6800
-6800
-6800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 * + + col1 col2 FROM tab0 AS cor0
----
1701
6561
81

query I rowsort
SELECT + + col0 * - col2 + - col0 * + + 17 AS col0 FROM tab1 cor0
----
-5763
-6460
-7735

query I rowsort
SELECT DISTINCT col2 * - col2 + + + 51 FROM tab2 AS cor0
----
-1549
-3313
-478

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9034
SELECT + 34 DIV - + COUNT( * ) FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-9034
SELECT + 34 / - + COUNT ( * ) FROM tab1
----
-11

query I rowsort
SELECT DISTINCT col2 * 91 AS col2 FROM tab0
----
4277
9009
910

query I rowsort
SELECT 58 * 50 + col2 FROM tab0 AS cor0
----
2910
2947
2999

query I rowsort
SELECT DISTINCT - col1 * + + col2 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT 12 AS col0 FROM tab2 AS cor0 WHERE NOT 69 IS NOT NULL
----

query I rowsort
SELECT + col2 * - + col2 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9040
SELECT - col0 / - CAST( NULL AS DECIMAL ) * + - 20 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9040
SELECT - col0 / - CAST ( NULL AS REAL ) * + - 20 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + + 60 = ( - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9042
SELECT COUNT( ALL - col1 ) col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9042
SELECT COUNT ( ALL - col1 ) col1 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT + - 11 * col0 AS col1 FROM tab1 AS cor0
----
-1001
-561
-935

query I rowsort
SELECT - - col2 AS col0 FROM tab0 AS cor0 WHERE col1 + - ( + col2 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9045
SELECT DISTINCT ( + + CAST( - + col2 AS SIGNED ) ) + - + col2 FROM tab2 AS cor0
----
-116
-46
-80

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT ( + + CAST ( - + col2 AS INTEGER ) ) + - + col2 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9046
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----
0

query III rowsort
SELECT col1, + col1 - col2 * col1 * 74 * + ( + - 77 ) AS col1, col0 - + col1 FROM tab0 AS cor0
----
9 values hashing to c766b7ea8c27abfbd74e981ff7d97001

query I rowsort
SELECT col0 * + + col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 95 col0, + 22 AS col0 FROM tab2 AS cor0
----
95
22
95
22
95
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT ALL + 79 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-9050
SELECT ALL + 79 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
82

query I rowsort
SELECT + col2 + - + col0 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT DISTINCT - 64 + + col1 FROM tab0 AS cor0
----
-43
-63
17

query I rowsort
SELECT DISTINCT AVG ( ALL + 16 ) FROM tab2 WHERE NOT - + 73 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT ALL MAX( DISTINCT + 80 ) AS col2 FROM tab2 WHERE NOT - + col0 + - col0 <= 12
----
NULL

skipif mysql # not compatible
query I rowsort label-9054
SELECT ALL MAX ( DISTINCT + 80 ) AS col2 FROM tab2 WHERE NOT - + col0 + - col0 <= 12
----
NULL

query I rowsort
SELECT DISTINCT col2 + + 48 FROM tab2
----
106
71
88

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9057
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT - + 86 <> + col2 * - - 48
----
0

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT - + 86 <> + col2 * - - 48
----
0

query I rowsort
SELECT + 0 + - col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9059
SELECT MIN( - - CAST( - col2 AS SIGNED ) ) * - 95 * + 61 + - 93 AS col2 FROM tab1 AS cor0
----
556227

skipif mysql # not compatible
query I rowsort label-9059
SELECT MIN ( - - CAST ( - col2 AS INTEGER ) ) * - 95 * + 61 + - 93 AS col2 FROM tab1 AS cor0
----
556227

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT DISTINCT SUM( + col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9060
SELECT DISTINCT SUM ( + col1 ) AS col0 FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT - MAX( 26 ) * + 86 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-2236

skipif mysql # not compatible
query I rowsort label-9061
SELECT - MAX ( 26 ) * + 86 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-2236

query I rowsort
SELECT DISTINCT - col0 * + ( + col0 ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + - col0 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT ( - - COUNT( + col1 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9063
SELECT ( - - COUNT ( + col1 ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT 55 * + - col1 AS col0 FROM tab2 AS cor0
----
-2805
-3685
-4235

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9065
SELECT col1 + - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col1 * - col2 * - col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-9065
SELECT col1 + - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col1 * - col2 * - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT - MAX( - col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9066
SELECT - MAX ( - col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL + col2 * - + 87 AS col2 FROM tab1 AS cor0
----
-5133
-5916
-8352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9068
SELECT DISTINCT - CAST( + col2 AS SIGNED ) AS col0 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9068
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9069
SELECT 5 DIV + col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9069
SELECT 5 / + col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT - MIN( + - col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9070
SELECT - MIN ( + - col1 ) FROM tab1
----
47

query I rowsort
SELECT DISTINCT + 39 * + + 51 * + col0 FROM tab2
----
127296
149175
91494

onlyif mysql # aggregate syntax: 
query II rowsort label-9072
SELECT DISTINCT 96 * + - COUNT( * ) AS col2, + 15 * 55 * + 89 + + 68 FROM tab2
----
-288
73493

skipif mysql # not compatible
query II rowsort label-9072
SELECT DISTINCT 96 * + - COUNT ( * ) AS col2, + 15 * 55 * + 89 + + 68 FROM tab2
----
-288
73493

query I rowsort
SELECT DISTINCT + + 30 * - col1 AS col1 FROM tab0 AS cor0
----
-2430
-30
-630

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 20 + - col2 / - col2 IS NOT NULL
----

query II rowsort
SELECT ALL col2, + 84 FROM tab2
----
23
84
40
84
58
84

query I rowsort
SELECT col2 + + 42 FROM tab1
----
101
110
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9077
SELECT DISTINCT MIN( DISTINCT CAST( + 25 AS SIGNED ) ) FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-9077
SELECT DISTINCT MIN ( DISTINCT CAST ( + 25 AS INTEGER ) ) FROM tab1
----
25

onlyif mysql # DIV for integer division: 
query II rowsort label-9078
SELECT 47 + + + col0 DIV col1 * + col0 * col0, col0 FROM tab2
----
47
46
47
64
5672
75

skipif mysql # not compatible
query II rowsort label-9078
SELECT 47 + + + col0 / col1 * + col0 * col0, col0 FROM tab2
----
47
46
47
64
5672
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT - - 9 + - COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9079
SELECT - - 9 + - COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9080
SELECT ALL + - col0 DIV - col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9080
SELECT ALL + - col0 / - col2 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT + col0 * 39 AS col1 FROM tab0 AS cor0 WHERE ( - 85 * + col1 + + col0 + + 64 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9082
SELECT DISTINCT COUNT( * ) + + + 2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9082
SELECT DISTINCT COUNT ( * ) + + + 2 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9083
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9084
SELECT ALL + ( CAST( NULL AS SIGNED ) ) + col0, 93 AS col2 FROM tab0 AS cor0
----
NULL
93
NULL
93
NULL
93

skipif mysql # not compatible
query II rowsort label-9084
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) + col0, 93 AS col2 FROM tab0 AS cor0
----
NULL
93
NULL
93
NULL
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab2 AS cor0 WHERE + col2 + + 72 IS NULL
----

query I rowsort
SELECT ALL col1 + + 64 AS col1 FROM tab1
----
111
69
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9087
SELECT DISTINCT - COUNT( * ) / + CAST( NULL AS SIGNED ) col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9087
SELECT DISTINCT - COUNT ( * ) / + CAST ( NULL AS INTEGER ) col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + 48 + + col1 AS col0 FROM tab2 AS cor0
----
115
125
99

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + col0 ) <= + col2 + + + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 = 88
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT - MAX( - col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-9093
SELECT - MAX ( - col0 ) FROM tab0 cor0
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-9094
SELECT 2 DIV + 84 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9094
SELECT 2 / + 84 FROM tab1
----
0
0
0

query II rowsort
SELECT 6, col0 FROM tab1
----
6
51
6
85
6
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col2 col0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * + + ( col0 ) * col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 6, - col2 * - col2 + + + col0 col1 FROM tab2 AS cor0
----
-6
1664
-6
3439
-6
575

query I rowsort
SELECT ALL - 84 * + 3 + 44 AS col1 FROM tab0 AS cor0
----
-208
-208
-208

query I rowsort
SELECT - + col0 * + + 61 + + col0 FROM tab1 AS cor0
----
-3060
-5100
-5460

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT - COUNT( * ) + - 50 AS col1 FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-9102
SELECT - COUNT ( * ) + - 50 AS col1 FROM tab1 AS cor0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-9103
SELECT - 74 DIV - 26 + - - col2 AS col2 FROM tab0 AS cor0
----
101
12
49

skipif mysql # not compatible
query I rowsort label-9103
SELECT - 74 / - 26 + - - col2 AS col2 FROM tab0 AS cor0
----
101
12
49

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( + col1 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT ALL - COUNT( * ) + + ( 45 ) AS col1 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL - COUNT ( * ) + + ( 45 ) AS col1 FROM tab0
----
42

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 - + 54 / + 2 IS NOT NULL
----

query I rowsort
SELECT + 46 FROM tab0 WHERE NULL IS NULL
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9108
SELECT DISTINCT ( + SUM( 54 ) ) FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-9108
SELECT DISTINCT ( + SUM ( 54 ) ) FROM tab2
----
162

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 61 ) IN ( - ( + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9110
SELECT - MIN( - col0 ) AS col1 FROM tab1 WHERE + 42 + + CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9110
SELECT - MIN ( - col0 ) AS col1 FROM tab1 WHERE + 42 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - 46 IS NOT NULL
----

query I rowsort
SELECT col2 + + col2 * + col2 AS col2 FROM tab0
----
110
2256
9900

query I rowsort
SELECT DISTINCT col2 * - col0 FROM tab2 WHERE NOT - col1 IS NULL
----
-1058
-2560
-4350

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL > ( ( col0 ) / col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9115
SELECT col2 - 99 / CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9115
SELECT col2 - 99 / CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND ( - ( + col0 ) )
----

query III rowsort
SELECT * FROM tab2 WHERE - 27 IS NULL
----

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT 88 BETWEEN ( + col2 ) AND NULL
----
97

query I rowsort
SELECT + col2 - + 21 FROM tab1
----
38
47
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9120
SELECT - 93 DIV + col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9120
SELECT - 93 / + col0 FROM tab2
----
-1
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-9121
SELECT + 10 DIV + 89 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9121
SELECT + 10 / + 89 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL col2 + + 72 * col0 FROM tab1
----
3768
6179
6620

query I rowsort
SELECT ALL - col2 * col0 FROM tab0 WHERE 40 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 - - 81 ) <= ( NULL )
----

query I rowsort
SELECT 91 * col2 AS col0 FROM tab1
----
5369
6188
8736

query I rowsort
SELECT col0 * + 61 AS col0 FROM tab2
----
2806
3904
4575

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) * + 6 AS col1 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-9127
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) * + 6 AS col1 FROM tab2
----
21

query I rowsort
SELECT - ( + 31 ) FROM tab2 WHERE NOT ( - col2 ) IS NULL
----
-31
-31
-31

query III rowsort
SELECT * FROM tab0 WHERE ( + 61 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9130
SELECT - COUNT( * ) * + SUM( 39 ) AS col1 FROM tab2
----
-351

skipif mysql # not compatible
query I rowsort label-9130
SELECT - COUNT ( * ) * + SUM ( 39 ) AS col1 FROM tab2
----
-351

onlyif mysql # DIV for integer division: 
query I rowsort label-9131
SELECT ALL col1 * + col0 + + col1 DIV - col1 FROM tab0
----
1214
1826
96

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL col1 * + col0 + + col1 / - col1 FROM tab0
----
1214
1826
96

query I rowsort
SELECT DISTINCT col1 + + 79 FROM tab0 WHERE NOT - 99 IS NULL
----
100
160
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9133
SELECT DISTINCT + col2 + + col2 / - ( col0 * - 75 ) AS col0 FROM tab2 WHERE NOT + col1 <> ( + CAST( col0 AS SIGNED ) - col1 * - col0 )
----

skipif mysql # not compatible
query I rowsort label-9133
SELECT DISTINCT + col2 + + col2 / - ( col0 * - 75 ) AS col0 FROM tab2 WHERE NOT + col1 <> ( + CAST ( col0 AS INTEGER ) - col1 * - col0 )
----

query I rowsort
SELECT ALL - 11 FROM tab1 WHERE NOT - col0 * - col0 + ( col1 ) NOT BETWEEN ( col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT - ( - 28 ) FROM tab1
----
28

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) BETWEEN ( ( + col1 ) * + col0 ) AND NULL
----

query I rowsort
SELECT col2 + ( + 76 ) AS col2 FROM tab2
----
116
134
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT - COUNT( * ) AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9138
SELECT - COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT DISTINCT - col1 + 19 FROM tab2 AS cor0
----
-32
-48
-58

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 AS cor0 WHERE NOT - 66 IN ( col0 )
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col2 / + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * 32 FROM tab0 AS cor0
----
2592
32
672

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT - 4 * col1 IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NULL = ( 74 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT DISTINCT COUNT( ALL + 94 ) * 84 FROM tab0 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-9145
SELECT DISTINCT COUNT ( ALL + 94 ) * 84 FROM tab0 AS cor0
----
252

query I rowsort
SELECT DISTINCT - 50 AS col0 FROM tab0 AS cor0
----
-50

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9148
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * CAST( NULL AS SIGNED ) BETWEEN + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9148
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * CAST ( NULL AS INTEGER ) BETWEEN + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 58 * col1 + + 46 / - 7 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT - MIN( ALL + 52 ) + 45 FROM tab1 WHERE NOT 3 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9150
SELECT - MIN ( ALL + 52 ) + 45 FROM tab1 WHERE NOT 3 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - 12 * + 58 AS col1 FROM tab0
----
-696

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * - col2 IN ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT SUM( DISTINCT + col1 ) col0 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9153
SELECT SUM ( DISTINCT + col1 ) col0 FROM tab2
----
195

query I rowsort
SELECT + col0 * + col2 * col1 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT col0 * col1 AS col1 FROM tab1 WHERE NOT ( col2 * - 34 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9156
SELECT - 40 * + COUNT( * ) FROM tab0 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-9156
SELECT - 40 * + COUNT ( * ) FROM tab0 AS cor0
----
-120

query I rowsort
SELECT DISTINCT col2 + + col1 + col1 FROM tab2 cor0
----
125
192
194

query I rowsort
SELECT DISTINCT 31 + + col0 FROM tab0 AS cor0
----
118
128
46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 23 * - col2 BETWEEN NULL AND 58
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9160
SELECT DISTINCT 24 FROM tab1 WHERE NOT ( ( + 29 ) BETWEEN ( - 46 ) * CAST( + col2 AS SIGNED ) AND 23 )
----
24

skipif mysql # not compatible
query I rowsort label-9160
SELECT DISTINCT 24 FROM tab1 WHERE NOT ( ( + 29 ) BETWEEN ( - 46 ) * CAST ( + col2 AS INTEGER ) AND 23 )
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT COUNT( * ) + 54 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-9161
SELECT COUNT ( * ) + 54 FROM tab0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT + COUNT( * ) * - COUNT( * ) + - + COUNT( * ) AS col1 FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-9162
SELECT + COUNT ( * ) * - COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab2
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9163
SELECT DISTINCT 57 * col2 FROM tab0 AS cor0 WHERE ( ( - CAST( col1 AS SIGNED ) ) ) <> col1 + col0
----
2679
5643
570

skipif mysql # not compatible
query I rowsort label-9163
SELECT DISTINCT 57 * col2 FROM tab0 AS cor0 WHERE ( ( - CAST ( col1 AS INTEGER ) ) ) <> col1 + col0
----
2679
5643
570

query I rowsort
SELECT DISTINCT - col2 + - 18 FROM tab0 AS cor0
----
-117
-28
-65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 77 + - 2 IS NULL
----

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT DISTINCT + - col1 + - + col0 AS col2 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT ALL + col0 + + + col1 FROM tab2 cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9169
SELECT ALL + - COUNT( * ) + + 2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL + - COUNT ( * ) + + 2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9171
SELECT + - COUNT( * ) * + SUM( ALL - ( CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9171
SELECT + - COUNT ( * ) * + SUM ( ALL - ( CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT DISTINCT COUNT( * ) + - - 4 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-9172
SELECT DISTINCT COUNT ( * ) + - - 4 FROM tab0 AS cor0
----
7

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + + col1 + - col1 )
----

query II rowsort
SELECT DISTINCT - col2 - col2, + col0 FROM tab2
----
-116
75
-46
46
-80
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9175
SELECT + 42 - - ( + MAX( DISTINCT - col0 ) ) col1 FROM tab2
----
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9175
SELECT + 42 - - ( + MAX ( DISTINCT - col0 ) ) col1 FROM tab2
----
-4

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + ( + col2 ) ) NOT BETWEEN NULL AND ( + col1 ) AND NOT + col1 > - col2 + 37
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 - 25 col1, col2 + + col1 FROM tab0
----
-10
128
62
31
72
100

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT ALL MIN( DISTINCT - + col2 ) - + 51 col0 FROM tab0
----
-150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9178
SELECT ALL MIN ( DISTINCT - + col2 ) - + 51 col0 FROM tab0
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT MIN( col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9179
SELECT MIN ( col2 ) AS col1 FROM tab0 AS cor0
----
10

query I rowsort
SELECT DISTINCT - ( - 84 ) * + + col1 AS col2 FROM tab2 AS cor0
----
4284
5628
6468

query I rowsort
SELECT DISTINCT - 89 * - 26 * col2 AS col1 FROM tab2 AS cor0
----
134212
53222
92560

query II rowsort
SELECT ALL col1, - col0 FROM tab0
----
1
-97
21
-87
81
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9183
SELECT * FROM tab2 WHERE NOT - col2 + + + CAST( NULL AS DECIMAL ) * col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9183
SELECT * FROM tab2 WHERE NOT - col2 + + + CAST ( NULL AS REAL ) * col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * - - 81 FROM tab2 cor0
----
4131
5427
6237

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 - - col2 + + col1 / col0 + + 4 NOT IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 58 FROM tab0 cor0
----
-58
-58
-58

query I rowsort
SELECT ALL + 38 * + 85 + + - col1 * 2 * + col2 FROM tab1 AS cor0
----
-3162
2640
542

onlyif mysql # DIV for integer division: 
query I rowsort label-9188
SELECT DISTINCT col0 DIV 42 FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT col0 / 42 FROM tab1 AS cor0
----
1
2

query I rowsort
SELECT 67 + - 72 * - col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( 27 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9190
SELECT SUM( - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9190
SELECT SUM ( - col2 ) FROM tab0 AS cor0
----
-156

query II rowsort
SELECT ALL - 84, col0 AS col1 FROM tab0
----
-84
15
-84
87
-84
97

query I rowsort
SELECT 36 + - 26 FROM tab0 WHERE NOT ( ( ( 40 NOT BETWEEN - 49 - 21 AND NULL ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9193
SELECT - col1 DIV + col0 + + - col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9193
SELECT - col1 / + col0 + + - col1 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-9194
SELECT ALL + COUNT( * ) AS col2, - COUNT( * ) FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-9194
SELECT ALL + COUNT ( * ) AS col2, - COUNT ( * ) FROM tab2
----
3
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 BETWEEN - 35 * col1 + + 58 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT MIN( DISTINCT + 62 ) * - COUNT( * ) + - SUM( ALL + 11 ) + + COUNT( * ) FROM tab2 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-9196
SELECT MIN ( DISTINCT + 62 ) * - COUNT ( * ) + - SUM ( ALL + 11 ) + + COUNT ( * ) FROM tab2 AS cor0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT - MIN( - col1 ) + - MIN( - col2 ) FROM tab0 cor0
----
180

skipif mysql # not compatible
query I rowsort label-9197
SELECT - MIN ( - col1 ) + - MIN ( - col2 ) FROM tab0 cor0
----
180

query I rowsort
SELECT DISTINCT + col0 + - + ( col0 ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT + - 38 + + COUNT( * ) col1 FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9199
SELECT + - 38 + + COUNT ( * ) col1 FROM tab2 AS cor0
----
-35

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 - + col2 + + ( - - col0 ) + - col2 ) = - col2
----

query I rowsort
SELECT DISTINCT - 25 * - + col1 + + + col0 FROM tab2 cor0 WHERE NULL <= + ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9202
SELECT ALL 3 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9202
SELECT ALL 3 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9203
SELECT ALL + CAST( NULL AS SIGNED ) + + + SUM( - + 54 ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL + CAST ( NULL AS INTEGER ) + + + SUM ( - + 54 ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
NULL

query I rowsort
SELECT + col1 - - 23 FROM tab1 AS cor0
----
28
37
70

query I rowsort
SELECT + 55 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + - col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9206
SELECT + 59 + ( + CAST( MIN( ALL - 9 ) AS SIGNED ) ) FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-9206
SELECT + 59 + ( + CAST ( MIN ( ALL - 9 ) AS INTEGER ) ) FROM tab0 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9207
SELECT + - SUM( DISTINCT 80 ) + - - 68 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9207
SELECT + - SUM ( DISTINCT 80 ) + - - 68 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT DISTINCT + 24 + + col2 FROM tab0 AS cor0
----
123
34
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 col1 FROM tab1 AS cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT ALL - COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT ( - 70 / - col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT ( - 70 / - col2 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9211
SELECT DISTINCT - SUM( CAST( col0 AS SIGNED ) ) * 61 AS col1 FROM tab0 AS cor0
----
-12139

skipif mysql # not compatible
query I rowsort label-9211
SELECT DISTINCT - SUM ( CAST ( col0 AS INTEGER ) ) * 61 AS col1 FROM tab0 AS cor0
----
-12139

query I rowsort
SELECT ALL + + 76 + - 37 AS col1 FROM tab2 cor0
----
39
39
39

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 81 / - col0 IS NULL
----

query I rowsort
SELECT - col1 * col2 + - 31 + + 69 AS col0 FROM tab0
----
-172
-3769
-61

query I rowsort
SELECT DISTINCT col2 + - + col1 FROM tab1
----
21
54
82

onlyif mysql # DIV for integer division: 
query I rowsort label-9216
SELECT DISTINCT + col1 DIV + col0 - col2 FROM tab0
----
-10
-42
-99

skipif mysql # not compatible
query I rowsort label-9216
SELECT DISTINCT + col1 / + col0 - col2 FROM tab0
----
-10
-42
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT + MIN( + + col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-9217
SELECT + MIN ( + + col2 ) AS col0 FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT + COUNT( - 17 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9218
SELECT + COUNT ( - 17 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-9219
SELECT ALL 9, MAX( ALL col0 ) col1 FROM tab1
----
9
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9219
SELECT ALL 9, MAX ( ALL col0 ) col1 FROM tab1
----
9
91

query I rowsort
SELECT + 10 * + + col1 FROM tab2
----
510
670
770

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT ALL + + COUNT( * ) AS col2 FROM tab0 WHERE NOT - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9221
SELECT ALL + + COUNT ( * ) AS col2 FROM tab0 WHERE NOT - col2 IS NULL
----
3

query II rowsort
SELECT 37, 88 AS col2 FROM tab2
----
37
88
37
88
37
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT - - 34 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-9223
SELECT - - 34 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-102

query I rowsort
SELECT - + col2 / + col0 FROM tab0 AS cor0 WHERE NOT NULL <> + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9225
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 13 - col1 + CAST( - - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9225
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 13 - col1 + CAST ( - - col2 AS INTEGER ) )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 95 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9227
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT 77 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query I rowsort
SELECT DISTINCT - 31 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-31

query I rowsort
SELECT DISTINCT - 20 * col0 + - col2 AS col0 FROM tab1 AS cor0
----
-1116
-1759
-1888

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT - 13 NOT IN ( + - col1, + 73 )
----

query I rowsort
SELECT ALL col2 + + + col0 AS col1 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9233
SELECT DISTINCT + 51 * COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
459

skipif mysql # not compatible
query I rowsort label-9233
SELECT DISTINCT + 51 * COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
459

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9235
SELECT DISTINCT + col2 DIV col1 + + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT + col2 / col1 + + col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL 63 + + + 47 FROM tab1
----
110
110
110

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= ( + col2 / col2 + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9238
SELECT DISTINCT ( + + col0 ) DIV - - col0 + + 33 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-9238
SELECT DISTINCT ( + + col0 ) / - - col0 + + 33 FROM tab0
----
34

query I rowsort
SELECT DISTINCT col1 * + - col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL ( + + 31 ) FROM tab0
----
31
31
31

query I rowsort
SELECT col1 * + - col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT - 67 * 67 AS col1 FROM tab1
----
-4489

query I rowsort
SELECT DISTINCT ( + - 0 ) AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT COUNT( * ) * - SUM( 91 ) AS col0 FROM tab1
----
-819

skipif mysql # not compatible
query I rowsort label-9244
SELECT COUNT ( * ) * - SUM ( 91 ) AS col0 FROM tab1
----
-819

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9245
SELECT + ( + COUNT( * ) ) * CAST( 11 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-9245
SELECT + ( + COUNT ( * ) ) * CAST ( 11 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
33

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE ( NOT NULL NOT BETWEEN + 9 + - 80 + + + 19 + + col0 * 81 * + col0 AND ( - col0 ) / + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9247
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( col0 AS SIGNED ) IN ( 23 * - - 34, 33 * + ( - - col2 ) )
----

skipif mysql # not compatible
query III rowsort label-9247
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( col0 AS INTEGER ) IN ( 23 * - - 34, 33 * + ( - - col2 ) )
----

query I rowsort
SELECT DISTINCT + col1 - + col1 * 30 FROM tab0
----
-2349
-29
-609

query I rowsort
SELECT ALL + 75 * - col2 + 22 AS col1 FROM tab0
----
-3503
-728
-7403

query III rowsort
SELECT * FROM tab2 WHERE NULL < + 18
----

query II rowsort
SELECT col0 AS col0, + 23 * + 57 * - 77 * col2 FROM tab0 cor0
----
15
-4744509
87
-1009470
97
-9993753

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 AND 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9253
SELECT ALL - - MAX( DISTINCT + 80 ) FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-9253
SELECT ALL - - MAX ( DISTINCT + 80 ) FROM tab0 AS cor0
----
80

query I rowsort
SELECT ALL 30 FROM tab0 cor0
----
30
30
30

query I rowsort
SELECT DISTINCT col0 / + col1 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 58 col1 FROM tab1 AS cor0
----
2726
290
812

query I rowsort
SELECT - - col1 * - 96 AS col0 FROM tab1 AS cor0
----
-1344
-4512
-480

query I rowsort
SELECT - + 8 AS col0 FROM tab0 AS cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT DISTINCT + MIN( DISTINCT + 4 ) AS col0 FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-9259
SELECT DISTINCT + MIN ( DISTINCT + 4 ) AS col0 FROM tab0 AS cor0
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-9260
SELECT - 55 DIV - ( - col0 ) FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9260
SELECT - 55 / - ( - col0 ) FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT 83 * - MAX( ALL 17 ) FROM tab1, tab1 AS cor0
----
-1411

skipif mysql # not compatible
query I rowsort label-9261
SELECT 83 * - MAX ( ALL 17 ) FROM tab1, tab1 AS cor0
----
-1411

query I rowsort
SELECT ALL - ( + ( + 63 ) ) AS col0 FROM tab2
----
-63
-63
-63

query I rowsort
SELECT + + 65 AS col2 FROM tab0 cor0
----
65
65
65

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 AND ( ( - col0 ) * - col1 * - + col2 - + 93 ) OR NOT NULL IN ( - col2 * + col0 * - - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT - - COUNT( * ) * + COUNT( * ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9265
SELECT - - COUNT ( * ) * + COUNT ( * ) FROM tab2 cor0
----
9

query I rowsort
SELECT + 47 AS col1 FROM tab0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT ALL + col0 * + 93 FROM tab0
----
1395
8091
9021

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT + - MAX( DISTINCT 66 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-66

skipif mysql # not compatible
query I rowsort label-9268
SELECT + - MAX ( DISTINCT 66 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9269
SELECT MAX( ALL + 65 ) FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-9269
SELECT MAX ( ALL + 65 ) FROM tab0 AS cor0
----
65

query I rowsort
SELECT DISTINCT - + col1 AS col1 FROM tab2 AS cor0 WHERE + 2 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT - + ( + col1 ) * + - col0 AS col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT ALL COUNT( * ) + + 54 col1 FROM tab0 AS cor0 WHERE + col0 * - col2 * + col2 IS NOT NULL
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9272
SELECT ALL COUNT ( * ) + + 54 col1 FROM tab0 AS cor0 WHERE + col0 * - col2 * + col2 IS NOT NULL
----
57

query I rowsort
SELECT DISTINCT - col1 * + + 9 + - col0 * col0 FROM tab0 AS cor0
----
-7758
-9418
-954

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT ALL - - COUNT( + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL - - COUNT ( + col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + col1 + 47 FROM tab0 AS cor0
----
128
48
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9276
SELECT - MAX( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9276
SELECT - MAX ( DISTINCT - col0 ) AS col1 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9277
SELECT 66 + - CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-9277
SELECT 66 + - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9278
SELECT CAST( NULL AS SIGNED ) + AVG ( col2 ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9278
SELECT CAST ( NULL AS INTEGER ) + AVG ( col2 ) col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL 72 * + 51 AS col1 FROM tab1
----
3672
3672
3672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9280
SELECT ALL - col0 + + - CAST( col0 AS SIGNED ) FROM tab0
----
-174
-194
-30

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL - col0 + + - CAST ( col0 AS INTEGER ) FROM tab0
----
-174
-194
-30

query I rowsort
SELECT ALL 8 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT + MAX( DISTINCT - - col1 ) AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
47

skipif mysql # not compatible
query I rowsort label-9282
SELECT + MAX ( DISTINCT - - col1 ) AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9283
SELECT ALL - + 14 + - 83 DIV - col2 FROM tab1 AS cor0
----
-13
-13
-14

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL - + 14 + - 83 / - col2 FROM tab1 AS cor0
----
-13
-13
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT DISTINCT - - 24 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9284
SELECT DISTINCT - - 24 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
27

query I rowsort
SELECT + ( 59 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE - col2 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT ALL - - 14 FROM tab1 AS cor0
----
14
14
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9288
SELECT 89 * ( + CAST( + 15 AS SIGNED ) ) + col1 AS col1 FROM tab0 cor0
----
1336
1356
1416

skipif mysql # not compatible
query I rowsort label-9288
SELECT 89 * ( + CAST ( + 15 AS INTEGER ) ) + col1 AS col1 FROM tab0 cor0
----
1336
1356
1416

query I rowsort
SELECT + 91 * 16 FROM tab0 cor0
----
1456
1456
1456

query I rowsort
SELECT DISTINCT - 87 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-87

query II rowsort
SELECT DISTINCT - 83 * - col0 + + 31, col1 * col1 AS col2 FROM tab0 cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9292
SELECT + 96 DIV - col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9292
SELECT + 96 / - col1 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9293
SELECT + - col2 DIV + col1 col1 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9293
SELECT + - col2 / + col1 col1 FROM tab1 AS cor0
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT DISTINCT - - COUNT( DISTINCT + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9294
SELECT DISTINCT - - COUNT ( DISTINCT + col2 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL + col1, + 91 * col2 FROM tab2
----
51
2093
67
5278
77
3640

query II rowsort
SELECT DISTINCT col2, + col2 * 68 AS col2 FROM tab2
----
23
1564
40
2720
58
3944

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT ALL - ( COUNT( * ) ) * + + 59 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-9297
SELECT ALL - ( COUNT ( * ) ) * + + 59 FROM tab1
----
-177

onlyif mysql # DIV for integer division: 
query I rowsort label-9298
SELECT ALL 97 DIV 20 FROM tab0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-9298
SELECT ALL 97 / 20 FROM tab0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT SUM( ALL + + col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9299
SELECT SUM ( ALL + + col0 ) FROM tab2
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col2, col2 AS col1 FROM tab0
----
15
47
87
10
97
99

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 93 * - - 62 / col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9302
SELECT + 7 * - 61 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN - + col2 * 98 * - CAST( NULL AS SIGNED ) AND ( col2 )
----

skipif mysql # not compatible
query I rowsort label-9302
SELECT + 7 * - 61 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN - + col2 * 98 * - CAST ( NULL AS INTEGER ) AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT COUNT( ALL - - col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9303
SELECT COUNT ( ALL - - col1 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9304
SELECT ( - + col0 ) * - CAST( + col1 AS SIGNED ) AS col1 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-9304
SELECT ( - + col0 ) * - CAST ( + col1 AS INTEGER ) AS col1 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT ALL + MAX( DISTINCT + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9305
SELECT ALL + MAX ( DISTINCT + col1 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT - col1 * ( col1 ) AS col0 FROM tab2
----
-2601
-4489
-5929

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 - + 0 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 5 - - col0 = + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT DISTINCT 86 + - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-9309
SELECT DISTINCT 86 + - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
89

query II rowsort
SELECT DISTINCT - col2 + 62, + col2 AS col1 FROM tab2 cor0
----
22
40
39
23
4
58

query I rowsort
SELECT DISTINCT - col1 + - - col0 FROM tab1 cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL - COUNT( * ) + - COUNT( * ) + + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL - COUNT ( * ) + - COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9313
SELECT - - MIN( ALL - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9313
SELECT - - MIN ( ALL - col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9314
SELECT ALL 56 / + ( + + CAST( NULL AS SIGNED ) ) AS col1, - col0 AS col0 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-9314
SELECT ALL 56 / + ( + + CAST ( NULL AS INTEGER ) ) AS col1, - col0 AS col0 FROM tab1
----
NULL
-51
NULL
-85
NULL
-91

query I rowsort
SELECT DISTINCT + 5 * + - col2 FROM tab1
----
-295
-340
-480

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT + 39 = col1 + + - 74 * + 59 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT ALL - 72 * COUNT( * ) FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-9317
SELECT ALL - 72 * COUNT ( * ) FROM tab0
----
-216

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col1 <= + + col2 * - 43
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 3 * 29 * col1 * col2 col0 FROM tab0
----
18270
331209
8613

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 - 74 col0 FROM tab1
----
-23
-23
-23

query I rowsort
SELECT DISTINCT - 78 * col1 FROM tab2
----
-3978
-5226
-6006

onlyif mysql # DIV for integer division: 
query I rowsort label-9322
SELECT - 24 * - 68 - - 51 * 3 DIV - col2 AS col2 FROM tab1 AS cor0
----
1630
1630
1631

skipif mysql # not compatible
query I rowsort label-9322
SELECT - 24 * - 68 - - 51 * 3 / - col2 AS col2 FROM tab1 AS cor0
----
1630
1630
1631

query I rowsort
SELECT ALL 2 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9324
SELECT + + COUNT( * ) + + + ( + ( + + CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9324
SELECT + + COUNT ( * ) + + + ( + ( + + CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9325
SELECT ALL col1 + - CAST( - col0 AS SIGNED ) AS col0 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-9325
SELECT ALL col1 + - CAST ( - col0 AS INTEGER ) AS col0 FROM tab1
----
138
65
90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 4 BETWEEN + - col1 * 74 * - ( + + col2 ) AND + + ( - - 15 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9327
SELECT DISTINCT * FROM tab0 WHERE NOT - + ( CAST( NULL AS SIGNED ) ) + + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9327
SELECT DISTINCT * FROM tab0 WHERE NOT - + ( CAST ( NULL AS INTEGER ) ) + + col0 IS NULL
----

query I rowsort
SELECT ALL col2 * col1 * + 5 AS col2 FROM tab1 AS cor0
----
1475
15980
6720

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9329
SELECT DISTINCT * FROM tab2 cor0 WHERE - CAST( NULL AS SIGNED ) * - - 94 * + col2 / - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9329
SELECT DISTINCT * FROM tab2 cor0 WHERE - CAST ( NULL AS INTEGER ) * - - 94 * + col2 / - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9330
SELECT DISTINCT - COUNT( * ) * + + 22 AS col0 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9330
SELECT DISTINCT - COUNT ( * ) * + + 22 AS col0 FROM tab0 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT + MIN( ALL + col2 ) * - COUNT( * ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-9331
SELECT + MIN ( ALL + col2 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-9332
SELECT - 70 DIV - 41 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9332
SELECT - 70 / - 41 FROM tab0 cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * - col1 NOT BETWEEN NULL AND 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT COUNT( * ) * COUNT( * ) - COUNT( * ) FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-9334
SELECT COUNT ( * ) * COUNT ( * ) - COUNT ( * ) FROM tab1 cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9335
SELECT + + col0 DIV + CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9335
SELECT + + col0 / + CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9336
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9336
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9337
SELECT MIN( ALL - CAST( - 95 AS SIGNED ) ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-9337
SELECT MIN ( ALL - CAST ( - 95 AS INTEGER ) ) FROM tab0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-9338
SELECT ALL col2 DIV ( - col2 ) AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9338
SELECT ALL col2 / ( - col2 ) AS col1 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9340
SELECT DISTINCT + col2 DIV + 86 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-9340
SELECT DISTINCT + col2 / + 86 FROM tab0
----
0
1

query I rowsort
SELECT ( + - col0 ) FROM tab2 WHERE NOT col1 / + + 19 * + col2 IS NULL
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9342
SELECT DISTINCT col2 DIV 61 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT col2 / 61 FROM tab0
----
0
1

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE + col1 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT ( - COUNT( col1 ) ) + 97 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-9344
SELECT ( - COUNT ( col1 ) ) + 97 FROM tab1 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT + + MIN( DISTINCT - 31 ) + + - 7 AS col2 FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-9345
SELECT + + MIN ( DISTINCT - 31 ) + + - 7 AS col2 FROM tab0 AS cor0
----
-38

query I rowsort
SELECT col0 * - - col1 AS col0 FROM tab2
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9347
SELECT * FROM tab2 WHERE NOT ( - 70 ) < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9347
SELECT * FROM tab2 WHERE NOT ( - 70 ) < + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN col2 * - col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + ( - + col1 ) + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9350
SELECT ALL - 41 AS col1, + col0 * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-41
NULL
-41
NULL
-41
NULL

skipif mysql # not compatible
query II rowsort label-9350
SELECT ALL - 41 AS col1, + col0 * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-41
NULL
-41
NULL
-41
NULL

query I rowsort
SELECT ALL 55 + - col1 * - col1 AS col0 FROM tab0 AS cor0
----
496
56
6616

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT COUNT( ALL - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9352
SELECT COUNT ( ALL - col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9353
SELECT + CAST( MAX( ALL 9 ) AS SIGNED ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9353
SELECT + CAST ( MAX ( ALL 9 ) AS INTEGER ) FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT - COUNT( * ) + + - 5 FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9354
SELECT - COUNT ( * ) + + - 5 FROM tab0 AS cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-9355
SELECT + 78 + MAX( ALL - + ( col1 ) ) + + 85 + + 51 AS col1 FROM tab0 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-9355
SELECT + 78 + MAX ( ALL - + ( col1 ) ) + + 85 + + 51 AS col1 FROM tab0 AS cor0
----
213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9356
SELECT ALL + CAST( - col1 AS SIGNED ) * + + 8 + + - col2 AS col2 FROM tab1
----
-208
-444
-99

skipif mysql # not compatible
query I rowsort label-9356
SELECT ALL + CAST ( - col1 AS INTEGER ) * + + 8 + + - col2 AS col2 FROM tab1
----
-208
-444
-99

query I rowsort
SELECT 25 + + + 47 AS col1 FROM tab0
----
72
72
72

query I rowsort
SELECT DISTINCT + 44 + - col2 AS col1 FROM tab0
----
-3
-55
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 - + 35, col0 * - - col2 col0 FROM tab2
----
16
1058
32
4350
42
2560

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9360
SELECT * FROM tab2 WHERE ( + + 57 ) * col0 * CAST( NULL AS SIGNED ) * + col2 + - + col2 + + 69 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9360
SELECT * FROM tab2 WHERE ( + + 57 ) * col0 * CAST ( NULL AS INTEGER ) * + col2 + - + col2 + + 69 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9361
SELECT - MIN( + col2 ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9361
SELECT - MIN ( + col2 ) AS col2 FROM tab1 AS cor0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-9362
SELECT - 6 DIV + - col1 + col1 AS col0 FROM tab1 AS cor0
----
14
47
6

skipif mysql # not compatible
query I rowsort label-9362
SELECT - 6 / + - col1 + col1 AS col0 FROM tab1 AS cor0
----
14
47
6

query I rowsort
SELECT ALL - 15 * - col1 * + - 91 FROM tab2 AS cor0
----
-105105
-69615
-91455

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN + + 55 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT ALL SUM( col0 ) + + + 54 FROM tab0 AS cor0
----
253

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL SUM ( col0 ) + + + 54 FROM tab0 AS cor0
----
253

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9367
SELECT ALL + - col0 + - col1 + CAST( col0 AS SIGNED ) * + col2 AS col0 FROM tab0 cor0
----
609
762
9505

skipif mysql # not compatible
query I rowsort label-9367
SELECT ALL + - col0 + - col1 + CAST ( col0 AS INTEGER ) * + col2 AS col0 FROM tab0 cor0
----
609
762
9505

query I rowsort
SELECT + - 2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT DISTINCT MIN( col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9369
SELECT DISTINCT MIN ( col2 ) AS col0 FROM tab0
----
10

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col0 / + + 10 * - - 60 <> - 28
----

query II rowsort
SELECT - 98, col2 AS col2 FROM tab2
----
-98
23
-98
40
-98
58

query II rowsort
SELECT DISTINCT + col2 AS col0, - col1 FROM tab1 AS cor0 WHERE - 49 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT ALL + COUNT( * ) * 52 * - 16 - + 5 AS col2 FROM tab0 AS cor0
----
-2501

skipif mysql # not compatible
query I rowsort label-9373
SELECT ALL + COUNT ( * ) * 52 * - 16 - + 5 AS col2 FROM tab0 AS cor0
----
-2501

query I rowsort
SELECT ALL + - col0 * - - 90 FROM tab1 AS cor0
----
-4590
-7650
-8190

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT DISTINCT SUM( - + col1 ) col0 FROM tab1 cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9375
SELECT DISTINCT SUM ( - + col1 ) col0 FROM tab1 cor0
----
-66

query I rowsort
SELECT DISTINCT col1 * - col1 * col0 + - 53 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 + + col1 < + - col0 - col0
----
-150
-38420
-98468

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9377
SELECT ALL + 11 DIV - 27 * - COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9377
SELECT ALL + 11 / - 27 * - COUNT ( * ) AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT ALL MAX( ALL - + col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL MAX ( ALL - + col1 ) AS col1 FROM tab1
----
-5

query II rowsort
SELECT + ( 50 ) AS col2, 90 AS col1 FROM tab1
----
50
90
50
90
50
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9380
SELECT DISTINCT SUM( ALL + - ( col2 ) ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT SUM ( ALL + - ( col2 ) ) FROM tab0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9381
SELECT ALL - + 66 + - CAST( + AVG ( + ( + 26 ) ) AS SIGNED ) FROM tab0 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-9381
SELECT ALL - + 66 + - CAST ( + AVG ( + ( + 26 ) ) AS INTEGER ) FROM tab0 AS cor0
----
-92

onlyif mysql # DIV for integer division: 
query II rowsort label-9382
SELECT DISTINCT - col0 DIV - + col0, col2 FROM tab2 AS cor0
----
1
23
1
40
1
58

skipif mysql # not compatible
query II rowsort label-9382
SELECT DISTINCT - col0 / - + col0, col2 FROM tab2 AS cor0
----
1
23
1
40
1
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT DISTINCT MAX( col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT MAX ( col1 ) FROM tab0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9386
SELECT - - 0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 35 * - 28 + + CAST( NULL AS SIGNED ) - - 4 IS NULL
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-9386
SELECT - - 0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 35 * - 28 + + CAST ( NULL AS INTEGER ) - - 4 IS NULL
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL 92 * + 92 * - ( + + col0 ) FROM tab1
----
-431664
-719440
-770224

query I rowsort
SELECT ALL - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * + col0 - + col2 + - col2 + + col0 * + col1 * - col1 AS col0 FROM tab1 AS cor0
----
-194967
-5292
2772

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 67 + 22 < col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * + 49 >= 38
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9392
SELECT DISTINCT - - col2 DIV - - col2 * - col1 DIV - col1 + - col1 FROM tab2 AS cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-9392
SELECT DISTINCT - - col2 / - - col2 * - col1 / - col1 + - col1 FROM tab2 AS cor0
----
-50
-66
-76

query I rowsort
SELECT ALL 18 + - 78 FROM tab0 AS cor0
----
-60
-60
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab1 WHERE col0 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT + 41 * + - 99 - + 82 + + COUNT( + col1 ) FROM tab1
----
-4138

skipif mysql # not compatible
query I rowsort label-9395
SELECT + 41 * + - 99 - + 82 + + COUNT ( + col1 ) FROM tab1
----
-4138

query II rowsort
SELECT DISTINCT 49 - - 62 AS col2, + 95 FROM tab0
----
111
95

query I rowsort
SELECT col2 * + col2 - - 69 AS col2 FROM tab2
----
1669
3433
598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9398
SELECT ALL CAST( - + col0 AS SIGNED ) * 84 + 35 FROM tab0
----
-1225
-7273
-8113

skipif mysql # not compatible
query I rowsort label-9398
SELECT ALL CAST ( - + col0 AS INTEGER ) * 84 + 35 FROM tab0
----
-1225
-7273
-8113

query I rowsort
SELECT - ( col0 ) - col2 FROM tab1
----
-144
-147
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9400
SELECT DISTINCT - col1 - + CAST( col2 AS SIGNED ) FROM tab0
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-9400
SELECT DISTINCT - col1 - + CAST ( col2 AS INTEGER ) FROM tab0
----
-100
-128
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9401
SELECT ALL SUM( - CAST( NULL AS SIGNED ) ) + - - 46 FROM tab2 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9401
SELECT ALL SUM ( - CAST ( NULL AS INTEGER ) ) + - - 46 FROM tab2 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT - col2 - - - col2 FROM tab2
----
-116
-46
-80

query I rowsort
SELECT + col2 * - + col1 - col2 FROM tab0
----
-198
-220
-3854

query II rowsort
SELECT ALL + col1 AS col0, - ( + + col0 ) AS col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9405
SELECT ALL - MIN( DISTINCT + + col0 ) * CAST( NULL AS SIGNED ) col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9405
SELECT ALL - MIN ( DISTINCT + + col0 ) * CAST ( NULL AS INTEGER ) col0 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9406
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 36 * - col1 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9406
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 36 * - col1 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 76 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 78 * col2 * col1 )
----

query I rowsort
SELECT + - 94 * col0 AS col2 FROM tab0 cor0
----
-1410
-8178
-9118

onlyif mysql # DIV for integer division: 
query I rowsort label-9410
SELECT + ( + col0 ) DIV - 85 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9410
SELECT + ( + col0 ) / - 85 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 49 * + col0 NOT BETWEEN col2 + 56 / col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - - ( - - col0 ) col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT - 14 * - - col2 * + 82 * - 77 FROM tab2 AS cor0
----
2033108
3535840
5126968

onlyif mysql # aggregate syntax: 
query I rowsort label-9414
SELECT DISTINCT MAX( 38 ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-9414
SELECT DISTINCT MAX ( 38 ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
114

onlyif mysql # aggregate syntax: 
query II rowsort label-9415
SELECT + COUNT( * ) * - MAX( DISTINCT 31 ) col0, - COUNT( * ) AS col2 FROM tab1
----
-93
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9415
SELECT + COUNT ( * ) * - MAX ( DISTINCT 31 ) col0, - COUNT ( * ) AS col2 FROM tab1
----
-93
-3

query I rowsort
SELECT + ( - + col2 ) AS col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + 57
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9418
SELECT + COUNT( * ) AS col2, 18 - + - 24 AS col2 FROM tab0
----
3
42

skipif mysql # not compatible
query II rowsort label-9418
SELECT + COUNT ( * ) AS col2, 18 - + - 24 AS col2 FROM tab0
----
3
42

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NOT NULL = 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT COUNT( * ) + 66 - - 48 + + 24 FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-9420
SELECT COUNT ( * ) + 66 - - 48 + + 24 FROM tab0
----
141

query I rowsort
SELECT 46 + + + col1 FROM tab1 AS cor0
----
51
60
93

query I rowsort
SELECT DISTINCT col0 + + col1 AS col0 FROM tab2 cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT 2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
2

query I rowsort
SELECT DISTINCT - 36 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-36

query II rowsort
SELECT col1 AS col0, - col1 AS col1 FROM tab2 WHERE NULL >= + + 42
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT + + ( 53 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9427
SELECT - - 89 - - 66 DIV + + col2 FROM tab0 AS cor0
----
89
90
95

skipif mysql # not compatible
query I rowsort label-9427
SELECT - - 89 - - 66 / + + col2 FROM tab0 AS cor0
----
89
90
95

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9428
SELECT * FROM tab1 AS cor0 WHERE + 19 + + - col2 + - + CAST( NULL AS DECIMAL ) + + 48 / - 49 * col2 / - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9428
SELECT * FROM tab1 AS cor0 WHERE + 19 + + - col2 + - + CAST ( NULL AS REAL ) + + 48 / - 49 * col2 / - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-9429
SELECT ALL + MAX( DISTINCT - col2 ) AS col1, 41 FROM tab0 AS cor0
----
-10
41

skipif mysql # not compatible
query II rowsort label-9429
SELECT ALL + MAX ( DISTINCT - col2 ) AS col1, 41 FROM tab0 AS cor0
----
-10
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9430
SELECT - + COUNT( * ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9430
SELECT - + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9431
SELECT DISTINCT + + col1 DIV - - ( + + col1 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9431
SELECT DISTINCT + + col1 / - - ( + + col1 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9432
SELECT - ( + - COUNT( * ) ) FROM tab0 AS cor0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9432
SELECT - ( + - COUNT ( * ) ) FROM tab0 AS cor0 WHERE - col1 IS NULL
----
0

query I rowsort
SELECT + 14 + + - col2 * + - 84 FROM tab2 AS cor0
----
1946
3374
4886

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT DISTINCT + COUNT( * ) * 47 - - COUNT( * ) + - 51 AS col0 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-9434
SELECT DISTINCT + COUNT ( * ) * 47 - - COUNT ( * ) + - 51 AS col0 FROM tab0 AS cor0
----
93

query I rowsort
SELECT + ( + + col0 ) * + - col2 * + col0 AS col0 FROM tab1 WHERE NULL NOT BETWEEN + - col1 AND col1
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( NULL ) >= - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9437
SELECT DISTINCT + 61 DIV + + col1 AS col0 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-9437
SELECT DISTINCT + 61 / + + col1 AS col0 FROM tab2
----
0
1

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9439
SELECT + COUNT( * ) * COUNT( * ) * COUNT( * ), COUNT( * ) AS col1 FROM tab0 AS cor0
----
27
3

skipif mysql # not compatible
query II rowsort label-9439
SELECT + COUNT ( * ) * COUNT ( * ) * COUNT ( * ), COUNT ( * ) AS col1 FROM tab0 AS cor0
----
27
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT MIN( ALL 24 ) * - + 42 FROM tab2 AS cor0
----
-1008

skipif mysql # not compatible
query I rowsort label-9440
SELECT MIN ( ALL 24 ) * - + 42 FROM tab2 AS cor0
----
-1008

query II rowsort
SELECT ALL - col1, col0 + - col0 AS col2 FROM tab1
----
-14
0
-47
0
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT + MIN( 53 ) FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9442
SELECT + MIN ( 53 ) FROM tab0 AS cor0
----
53

query I rowsort
SELECT - - 12 + col1 AS col0 FROM tab2 AS cor0
----
63
79
89

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 20 AND + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 - - 87 * + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 + + 71 + 63 AS col2 FROM tab0 cor0
----
144
181
233

query I rowsort
SELECT - col2 * 79 * col2 AS col0 FROM tab2 AS cor0
----
-126400
-265756
-41791

query I rowsort
SELECT DISTINCT - col2 / - + col1 AS col2 FROM tab2 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9450
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + + 55 / + 43 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9450
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + + 55 / + 43 FROM tab0
----
NULL

query I rowsort
SELECT - col2 * 20 AS col1 FROM tab2
----
-1160
-460
-800

query I rowsort
SELECT - ( + col1 ) AS col1 FROM tab0 WHERE + col0 >= - - col2 * col0
----

query II rowsort
SELECT DISTINCT + col1 * 76 AS col0, - 30 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1596
-30
6156
-30
76
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT - 60 + - - SUM( 95 ) col2 FROM tab2 cor0 WHERE ( col0 ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9454
SELECT - 60 + - - SUM ( 95 ) col2 FROM tab2 cor0 WHERE ( col0 ) IS NULL
----
NULL

query I rowsort
SELECT + col1 + - 67 FROM tab0 AS cor0 WHERE - 79 - + col2 IS NOT NULL
----
-46
-66
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT + ( 48 ) + - COUNT( * ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-9456
SELECT + ( 48 ) + - COUNT ( * ) FROM tab0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9457
SELECT ALL - COUNT( * ) * + 97 FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-9457
SELECT ALL - COUNT ( * ) * + 97 FROM tab1
----
-291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9458
SELECT + col0 + - - CAST( NULL AS SIGNED ) * + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9458
SELECT + col0 + - - CAST ( NULL AS INTEGER ) * + col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9459
SELECT - 83 + - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9459
SELECT - 83 + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 63 + col1 - 28 + col1 * - + 24 FROM tab1
----
-1046
-287
-80

query I rowsort
SELECT ALL - 21 * - 85 + + - col0 AS col0 FROM tab2
----
1710
1721
1739

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT ALL + 67 * + ( + COUNT( * ) ) AS col2 FROM tab2 cor0
----
201

skipif mysql # not compatible
query I rowsort label-9462
SELECT ALL + 67 * + ( + COUNT ( * ) ) AS col2 FROM tab2 cor0
----
201

query II rowsort
SELECT DISTINCT - col2 AS col1, col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9464
SELECT DISTINCT 98 DIV + + col1 FROM tab1 AS cor0
----
19
2
7

skipif mysql # not compatible
query I rowsort label-9464
SELECT DISTINCT 98 / + + col1 FROM tab1 AS cor0
----
19
2
7

query I rowsort
SELECT ALL + ( + - 50 ) FROM tab0 AS cor0
----
-50
-50
-50

query I rowsort
SELECT DISTINCT - + ( + ( + col0 ) ) + - col1 AS col0 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT - MIN( + 82 ) AS col1 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-9467
SELECT - MIN ( + 82 ) AS col1 FROM tab2 AS cor0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9468
SELECT - + COUNT( DISTINCT + - col2 ) - + - 62 * - SUM( - - CAST( + + col2 AS SIGNED ) ) * + + 27 FROM tab2 AS cor0
----
-202557

skipif mysql # not compatible
query I rowsort label-9468
SELECT - + COUNT ( DISTINCT + - col2 ) - + - 62 * - SUM ( - - CAST ( + + col2 AS INTEGER ) ) * + + 27 FROM tab2 AS cor0
----
-202557

query I rowsort
SELECT ALL - + 92 + - + col0 FROM tab1 AS cor0
----
-143
-177
-183

query I rowsort
SELECT ( + ( col2 ) ) AS col0 FROM tab0
----
10
47
99

query I rowsort
SELECT + + 19 AS col2 FROM tab2 WHERE NOT - col0 = - + col2 + - 46 * - col1 * - - col2
----
19
19
19

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IS NOT NULL AND NOT ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * ( + - col0 ) - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT ALL + MIN( ALL + col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9474
SELECT ALL + MIN ( ALL + col2 ) AS col1 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT - COUNT( * ) * - MIN( DISTINCT - + col1 ) * + + 35 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-25515

skipif mysql # not compatible
query I rowsort label-9475
SELECT - COUNT ( * ) * - MIN ( DISTINCT - + col1 ) * + + 35 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-25515

query I rowsort
SELECT - col0 * - + col2 * - col2 + ( + col2 ) FROM tab2 cor0
----
-102360
-24311
-252242

onlyif mysql # DIV for integer division: 
query I rowsort label-9477
SELECT + + col1 DIV ( - 81 ) AS col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9477
SELECT + + col1 / ( - 81 ) AS col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT - - ( + 27 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT - + COUNT( - + 91 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9479
SELECT - + COUNT ( - + 91 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT - - COUNT( + + 5 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9480
SELECT - - COUNT ( + + 5 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + + 67 FROM tab2 AS cor0 WHERE NOT 74 * col0 IS NULL
----
67
67
67

query I rowsort
SELECT + col0 * + + col0 FROM tab0 cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT DISTINCT - + SUM( - col1 ) FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT - + SUM ( - col1 ) FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT - col1 * col2 - - col2 AS col1 FROM tab1 AS cor0
----
-1248
-236
-3128

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT - MIN( DISTINCT 86 ) AS col1 FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-9485
SELECT - MIN ( DISTINCT 86 ) AS col1 FROM tab2 AS cor0
----
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 33 AS col0, col1 col2 FROM tab0
----
33
1
33
21
33
81

query I rowsort
SELECT + - col2 FROM tab0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9488
SELECT ALL - COUNT( * ) FROM tab1 cor0 WHERE NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL - COUNT ( * ) FROM tab1 cor0 WHERE NULL <= ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9489
SELECT ALL - CAST( NULL AS SIGNED ), col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-9489
SELECT ALL - CAST ( NULL AS INTEGER ), col1 AS col0 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query II rowsort
SELECT + - col1, col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

onlyif mysql # DIV for integer division: 
query II rowsort label-9491
SELECT ALL + col0 DIV 96, col1 AS col1 FROM tab2
----
0
51
0
67
0
77

skipif mysql # not compatible
query II rowsort label-9491
SELECT ALL + col0 / 96, col1 AS col1 FROM tab2
----
0
51
0
67
0
77

onlyif mysql # DIV for integer division: 
query II rowsort label-9492
SELECT col0 + - col0, col0 DIV - col1 AS col0 FROM tab0 AS cor0
----
0
-4
0
-97
0
0

skipif mysql # not compatible
query II rowsort label-9492
SELECT col0 + - col0, col0 / - col1 AS col0 FROM tab0 AS cor0
----
0
-4
0
-97
0
0

query I rowsort
SELECT + col2 + col2 FROM tab0 AS cor0 WHERE ( ( col2 < + - 21 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9494
SELECT ( CAST( NULL AS SIGNED ) ) + + + col2 + - - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9494
SELECT ( CAST ( NULL AS INTEGER ) ) + + + col2 + - - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9495
SELECT DISTINCT + COUNT( * ) AS col2, 48 AS col1 FROM tab2
----
3
48

skipif mysql # not compatible
query II rowsort label-9495
SELECT DISTINCT + COUNT ( * ) AS col2, 48 AS col1 FROM tab2
----
3
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9496
SELECT DISTINCT + SUM( ALL CAST( NULL AS SIGNED ) ) FROM tab1 WHERE - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT + SUM ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE - col2 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 24 AS col1, - col0 col2 FROM tab0
----
24
-15
24
-87
24
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9498
SELECT 47 DIV - + ( - ( + + col2 ) ) AS col0 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9498
SELECT 47 / - + ( - ( + + col2 ) ) AS col0 FROM tab2
----
0
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9499
SELECT ALL - col0 col2, - CAST( NULL AS SIGNED ) FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9499
SELECT ALL - col0 col2, - CAST ( NULL AS INTEGER ) FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

query I rowsort
SELECT DISTINCT + + 6 AS col2 FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL - - ( - - 91 ) FROM tab0 AS cor0
----
91
91
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9502
SELECT ALL CAST( NULL AS DECIMAL ) / + 84 + - COUNT( * ) - - MAX( col2 ) + - 6 + + 5 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL CAST ( NULL AS REAL ) / + 84 + - COUNT ( * ) - - MAX ( col2 ) + - 6 + + 5 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT + SUM( - col2 ) FROM tab0 WHERE NOT ( ( NOT + col2 IS NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-9503
SELECT + SUM ( - col2 ) FROM tab0 WHERE NOT ( ( NOT + col2 IS NULL ) )
----
NULL

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE NOT - + col1 / + 95 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9505
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9505
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0, tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-9506
SELECT + COUNT( * ) + COUNT( * ) col0, 96 AS col2 FROM tab1 AS cor0
----
6
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9506
SELECT + COUNT ( * ) + COUNT ( * ) col0, 96 AS col2 FROM tab1 AS cor0
----
6
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT + 57 + SUM( + 90 ) FROM tab0 AS cor0
----
327

skipif mysql # not compatible
query I rowsort label-9507
SELECT + 57 + SUM ( + 90 ) FROM tab0 AS cor0
----
327

query I rowsort
SELECT 29 AS col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9509
SELECT ALL ( + col1 ) + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL ( + col1 ) + CAST ( NULL AS REAL ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, + 23 AS col1 FROM tab1
----
59
23
68
23
96
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + col1 col1 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL ( + 62 ) FROM tab1
----
62
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + 2 col0 FROM tab1
----
-14
2
-47
2
-5
2

query I rowsort
SELECT - col1 - 70 AS col1 FROM tab2 AS cor0
----
-121
-137
-147

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9515
SELECT * FROM tab2 AS cor0 WHERE 39 / + + CAST( - col1 AS SIGNED ) * - col0 + - + col0 < NULL
----

skipif mysql # not compatible
query III rowsort label-9515
SELECT * FROM tab2 AS cor0 WHERE 39 / + + CAST ( - col1 AS INTEGER ) * - col0 + - + col0 < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT + col1 * + col1 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT DISTINCT 68 + - COUNT( * ) col0 FROM tab0 cor0
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9517
SELECT DISTINCT 68 + - COUNT ( * ) col0 FROM tab0 cor0
----
65

query I rowsort
SELECT - + col2 + + + 2 AS col2 FROM tab0 AS cor0
----
-45
-8
-97

query I rowsort
SELECT ALL + col2 + + - col2 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT - 1 AS col2, col1 AS col0 FROM tab1 cor0
----
-1
14
-1
47
-1
5

query I rowsort
SELECT col1 * + + col1 FROM tab0 cor0
----
1
441
6561

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9522
SELECT ALL COUNT( * ) DIV - + 81 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL COUNT ( * ) / - + 81 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * - + col0 * - 70 BETWEEN - col1 AND - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9524
SELECT + - 85 DIV - CAST( + AVG ( col0 ) AS SIGNED ), COUNT( * ) AS col0 FROM tab0 AS cor0
----
1
3

skipif mysql # not compatible
query II rowsort label-9524
SELECT + - 85 / - CAST ( + AVG ( col0 ) AS INTEGER ), COUNT ( * ) AS col0 FROM tab0 AS cor0
----
1
3

query I rowsort
SELECT ALL + - col2 * + 27 FROM tab1 AS cor0
----
-1593
-1836
-2592

query II rowsort
SELECT + 24 * - + col2 AS col0, + col1 AS col2 FROM tab1
----
-1416
5
-1632
47
-2304
14

onlyif mysql # DIV for integer division: 
query I rowsort label-9527
SELECT ALL - col0 DIV - 79 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9527
SELECT ALL - col0 / - 79 col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9528
SELECT DISTINCT col2 * - 19 * + col0 FROM tab0 AS cor0 WHERE NOT + 19 NOT IN ( CAST( NULL AS DECIMAL ) * - + col2, 29 / + col0, - + ( + col1 ) + + col2 - - - col1 )
----

skipif mysql # not compatible
query I rowsort label-9528
SELECT DISTINCT col2 * - 19 * + col0 FROM tab0 AS cor0 WHERE NOT + 19 NOT IN ( CAST ( NULL AS REAL ) * - + col2, 29 / + col0, - + ( + col1 ) + + col2 - - - col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9530
SELECT ALL + CAST( - 68 AS SIGNED ) FROM tab2
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL + CAST ( - 68 AS INTEGER ) FROM tab2
----
-68
-68
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-9531
SELECT DISTINCT + col0 + + col0 * col1 DIV - 91 FROM tab0
----
2
67
96

skipif mysql # not compatible
query I rowsort label-9531
SELECT DISTINCT + col0 + + col0 * col1 / - 91 FROM tab0
----
2
67
96

query I rowsort
SELECT + ( - 49 ) FROM tab1 AS cor0
----
-49
-49
-49

query I rowsort
SELECT ALL + col2 + + + 77 FROM tab1 AS cor0
----
136
145
173

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT ALL + COUNT( * ) + - COUNT( * ) + + + 19 + + + 2 + 81 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-9534
SELECT ALL + COUNT ( * ) + - COUNT ( * ) + + + 19 + + + 2 + 81 FROM tab0 AS cor0
----
102

query I rowsort
SELECT + - 27 + ( - 92 ) FROM tab0 AS cor0
----
-119
-119
-119

query III rowsort
SELECT * FROM tab1 WHERE - col1 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - ( - 61 ) + + 18
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9538
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 - 51 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 - 51 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 WHERE - 32 <> - col2 + - col0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-9540
SELECT - ( COUNT( ALL - + col0 ) ) * - 1 col1, 37 FROM tab2 cor0
----
3
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9540
SELECT - ( COUNT ( ALL - + col0 ) ) * - 1 col1, 37 FROM tab2 cor0
----
3
37

query I rowsort
SELECT ALL col2 + - + 47 FROM tab1 AS cor0
----
12
21
49

query I rowsort
SELECT ALL - col2 * + col2 - + 33 FROM tab0 cor0
----
-133
-2242
-9834

query I rowsort
SELECT ALL - 87 * 48 AS col0 FROM tab2 AS cor0
----
-4176
-4176
-4176

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT ALL + ( + MIN( DISTINCT + col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9544
SELECT ALL + ( + MIN ( DISTINCT + col2 ) ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE NOT 60 * col0 / - col2 + - col1 + + 81 BETWEEN + col2 AND ( + - 11 )
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9546
SELECT + CAST( + - SUM( DISTINCT + - 67 ) AS SIGNED ), - 98 + - 56 * 62 * - - 98 AS col2 FROM tab1 AS cor0
----
67
-340354

skipif mysql # not compatible
query II rowsort label-9546
SELECT + CAST ( + - SUM ( DISTINCT + - 67 ) AS INTEGER ), - 98 + - 56 * 62 * - - 98 AS col2 FROM tab1 AS cor0
----
67
-340354

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT DISTINCT + ( COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9547
SELECT DISTINCT + ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9548
SELECT ALL + ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9548
SELECT ALL + ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT - MAX( DISTINCT + + col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9549
SELECT - MAX ( DISTINCT + + col0 ) FROM tab0
----
-97

query II rowsort
SELECT - col0, col2 FROM tab0 WHERE NOT NULL <= col0 / + + col0 * + col1 + 19 + + - col0 + + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9551
SELECT COUNT( * ) AS col0, 39 DIV - COUNT( * ) col2 FROM tab1
----
3
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9551
SELECT COUNT ( * ) AS col0, 39 / - COUNT ( * ) col2 FROM tab1
----
3
-13

query I rowsort
SELECT ALL - 97 * 97 FROM tab2
----
-9409
-9409
-9409

query II rowsort
SELECT DISTINCT 75 AS col1, + col2 FROM tab0
----
75
10
75
47
75
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9554
SELECT - SUM( - + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9554
SELECT - SUM ( - + col1 ) FROM tab1
----
66

query II rowsort
SELECT ALL - col1 AS col0, - col2 * - 50 AS col0 FROM tab2
----
-51
1150
-67
2900
-77
2000

onlyif mysql # DIV for integer division: 
query II rowsort label-9556
SELECT - col2 DIV + col0 AS col0, col2 AS col1 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-9556
SELECT - col2 / + col0 AS col0, col2 AS col1 FROM tab2
----
0
23
0
40
0
58

query I rowsort
SELECT ALL - col2 * col2 * - 23 AS col1 FROM tab0
----
225423
2300
50807

query II rowsort
SELECT 68, - col0 AS col0 FROM tab2 AS cor0
----
68
-46
68
-64
68
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9559
SELECT ALL + CAST( col1 AS SIGNED ) AS col1, 83 FROM tab1 AS cor0
----
14
83
47
83
5
83

skipif mysql # not compatible
query II rowsort label-9559
SELECT ALL + CAST ( col1 AS INTEGER ) AS col1, 83 FROM tab1 AS cor0
----
14
83
47
83
5
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT ALL + 54 + - + 60 + + - ( + 15 ) + COUNT( * ) FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9560
SELECT ALL + 54 + - + 60 + + - ( + 15 ) + COUNT ( * ) FROM tab1 AS cor0
----
-18

query II rowsort
SELECT ALL + col2 * + 25, col2 AS col2 FROM tab1
----
1475
59
1700
68
2400
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9562
SELECT CAST( - 88 AS SIGNED ) * - - col2 * col2 + col2 FROM tab2
----
-140760
-295974
-46529

skipif mysql # not compatible
query I rowsort label-9562
SELECT CAST ( - 88 AS INTEGER ) * - - col2 * col2 + col2 FROM tab2
----
-140760
-295974
-46529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9563
SELECT 23 + CAST( - 83 AS SIGNED ) AS col0 FROM tab1
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-9563
SELECT 23 + CAST ( - 83 AS INTEGER ) AS col0 FROM tab1
----
-60
-60
-60

query I rowsort
SELECT - 72 + - 21 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT DISTINCT - 92 + 40 AS col2 FROM tab1
----
-52

query I rowsort
SELECT + - 18 + + 91 FROM tab0 AS cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT ALL + - MAX( DISTINCT + 11 ) * - - COUNT( * ) AS col1 FROM tab0 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-9567
SELECT ALL + - MAX ( DISTINCT + 11 ) * - - COUNT ( * ) AS col1 FROM tab0 cor0
----
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, - col1 * - col0 + + - col0 - + 25 * - col1 * ( - col2 ) AS col1 FROM tab2
----
46
-27025
64
-72136
75
-92200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, 92 AS col1 FROM tab1
----
14
92
47
92
5
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9570
SELECT ALL * FROM tab1 WHERE NOT CAST( ( + 18 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9570
SELECT ALL * FROM tab1 WHERE NOT CAST ( ( + 18 ) AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( col2 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT - MIN( + ( - - col0 ) ) col2 FROM tab2
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9572
SELECT - MIN ( + ( - - col0 ) ) col2 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9573
SELECT DISTINCT col2 * + CAST( - col1 AS SIGNED ) * - col0 col1 FROM tab1
----
25075
290836
68544

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9573
SELECT DISTINCT col2 * + CAST ( - col1 AS INTEGER ) * - col0 col1 FROM tab1
----
25075
290836
68544

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NOT NULL IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT ( NULL > - 44 )
----
0

skipif mysql # not compatible
query I rowsort label-9575
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT ( NULL > - 44 )
----
0

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT col2 < ( - 27 )
----
51
67
77

query I rowsort
SELECT + col2 + col1 + - col1 + col2 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT ALL ( MIN( + 18 ) ) col1 FROM tab2 cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9578
SELECT ALL ( MIN ( + 18 ) ) col1 FROM tab2 cor0
----
18

query II rowsort
SELECT ALL + col1, 12 * 61 AS col0 FROM tab1 AS cor0
----
14
732
47
732
5
732

query I rowsort
SELECT - 30 + - 20 FROM tab0 cor0
----
-50
-50
-50

query II rowsort
SELECT - + col0, 79 AS col0 FROM tab0 AS cor0
----
-15
79
-87
79
-97
79

query I rowsort
SELECT ALL - 25 AS col0 FROM tab1
----
-25
-25
-25

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT NULL = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 * col1 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9585
SELECT - col0 + - col2 FROM tab0 WHERE NOT ( - col2 ) >= ( CAST( NULL AS SIGNED ) ) * col0
----

skipif mysql # not compatible
query I rowsort label-9585
SELECT - col0 + - col2 FROM tab0 WHERE NOT ( - col2 ) >= ( CAST ( NULL AS INTEGER ) ) * col0
----

query I rowsort
SELECT - ( + col1 ) * - col0 + col0 FROM tab1
----
4368
510
765

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT ALL MAX( - col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9587
SELECT ALL MAX ( - col2 ) AS col0 FROM tab2
----
-23

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 ) IN ( + 31 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT - ( MAX( ALL + 74 ) ) AS col0 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-9590
SELECT - ( MAX ( ALL + 74 ) ) AS col0 FROM tab1
----
-74

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 / + 16 <> ( - 75 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab2 WHERE + col0 * + 36 >= - col2 * - col0
----
46

query I rowsort
SELECT DISTINCT - col1 + 1 FROM tab1
----
-13
-4
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT MIN( - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9594
SELECT MIN ( - col2 ) FROM tab2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9595
SELECT - CAST( + 52 AS SIGNED ) AS col1 FROM tab1
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-9595
SELECT - CAST ( + 52 AS INTEGER ) AS col1 FROM tab1
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT ALL MIN( DISTINCT - 12 ) FROM tab1 WHERE NOT ( - 32 * + 48 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9596
SELECT ALL MIN ( DISTINCT - 12 ) FROM tab1 WHERE NOT ( - 32 * + 48 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9597
SELECT 21 - + MAX( col1 ) col1 FROM tab2
----
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9597
SELECT 21 - + MAX ( col1 ) col1 FROM tab2
----
-56

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 21 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT - COUNT( * ) FROM tab1 WHERE col0 + + 92 >= ( + col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-9599
SELECT - COUNT ( * ) FROM tab1 WHERE col0 + + 92 >= ( + col1 )
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN ( - col0 * 18 ) AND ( ( + 18 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT DISTINCT MAX( DISTINCT - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-9601
SELECT DISTINCT MAX ( DISTINCT - col0 ) FROM tab0
----
-15

query I rowsort
SELECT col2 * 80 AS col0 FROM tab0
----
3760
7920
800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9603
SELECT + CAST( NULL AS SIGNED ) * + ( + 73 * - col2 ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9603
SELECT + CAST ( NULL AS INTEGER ) * + ( + 73 * - col2 ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + 64 AS col2 FROM tab1 cor0
----
3776
4352
6144

query I rowsort
SELECT col2 + - col0 * - col2 AS col0 FROM tab1 AS cor0
----
4992
5074
6256

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 col1 FROM tab0 AS cor0 WHERE ( - col2 - 93 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9607
SELECT * FROM tab1 AS cor0 WHERE NULL < ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9607
SELECT * FROM tab1 AS cor0 WHERE NULL < ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9608
SELECT DISTINCT - col1 + + 26 DIV 29 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9608
SELECT DISTINCT - col1 + + 26 / 29 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT NULL <> - 13 / + 73
----

query III rowsort
SELECT * FROM tab2 WHERE ( 57 ) >= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 0 col0 FROM tab2 cor0 CROSS JOIN tab1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL 93 AS col1 FROM tab2 cor0 CROSS JOIN tab1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

onlyif mysql # DIV for integer division: 
query I rowsort label-9613
SELECT ALL - 31 DIV - 4 FROM tab1
----
7
7
7

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL - 31 / - 4 FROM tab1
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT ALL + COUNT( * ) * - 37 FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL + COUNT ( * ) * - 37 FROM tab0 AS cor0
----
-111

query I rowsort
SELECT - 78 * 82 - 42 * - col1 AS col2 FROM tab2 AS cor0
----
-3162
-3582
-4254

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9616
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9616
SELECT DISTINCT - CAST ( NULL AS REAL ) * + col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + 81 + 48 AS col0 FROM tab1 AS cor0
----
129

query I rowsort
SELECT - col0 - + col2 * col2 AS col2 FROM tab1 AS cor0
----
-3566
-4715
-9267

query I rowsort
SELECT DISTINCT 99 + col2 * - col1 FROM tab1 AS cor0
----
-1245
-196
-3097

onlyif mysql # DIV for integer division: 
query I rowsort label-9620
SELECT - ( 25 ) * 79 + 28 DIV col2 FROM tab2 AS cor0
----
-1974
-1975
-1975

skipif mysql # not compatible
query I rowsort label-9620
SELECT - ( 25 ) * 79 + 28 / col2 FROM tab2 AS cor0
----
-1974
-1975
-1975

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9621
SELECT DISTINCT + ( + CAST( col1 AS SIGNED ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > col0 + + 68
----

skipif mysql # not compatible
query I rowsort label-9621
SELECT DISTINCT + ( + CAST ( col1 AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) > col0 + + 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT ALL COUNT( * ) - - MIN( ALL - 0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL COUNT ( * ) - - MIN ( ALL - 0 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9623
SELECT DISTINCT - col1 + + col2 DIV + 49 AS col0 FROM tab2
----
-51
-66
-77

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT - col1 + + col2 / + 49 AS col0 FROM tab2
----
-51
-66
-77

query I rowsort
SELECT ALL - col1 * + + ( - col2 ) - + col1 FROM tab1
----
1330
290
3149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9625
SELECT DISTINCT ( + 23 ) FROM tab1 WHERE ( col0 + + 93 / - CAST( NULL AS SIGNED ) ) BETWEEN 60 * col1 AND ( - col0 / col1 )
----

skipif mysql # not compatible
query I rowsort label-9625
SELECT DISTINCT ( + 23 ) FROM tab1 WHERE ( col0 + + 93 / - CAST ( NULL AS INTEGER ) ) BETWEEN 60 * col1 AND ( - col0 / col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 51 / + 29 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9627
SELECT 82 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9627
SELECT 82 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * - - col2 - - col0 FROM tab0
----
-13
-2194
-9704

query I rowsort
SELECT 54 AS col2 FROM tab0 WHERE 71 <= ( - col1 * - col0 )
----
54
54
54

query I rowsort
SELECT - 28 * - - col0 FROM tab0
----
-2436
-2716
-420

query I rowsort
SELECT col2 FROM tab2 WHERE ( + col1 * + col1 ) IN ( - col2 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9632
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 IN ( - CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9632
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 IN ( - CAST ( col2 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9633
SELECT ALL CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( col1 ) AND col2 * + col0 + 70
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9633
SELECT ALL CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( col1 ) AND col2 * + col0 + 70
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT ( - col2 * 96 ) BETWEEN ( - 99 / - col2 ) AND ( - col2 )
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 * 75 + col1 * - 95 AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9636
SELECT + 1 DIV + - col2 * - 80 + 60 FROM tab2 AS cor0
----
60
60
60

skipif mysql # not compatible
query I rowsort label-9636
SELECT + 1 / + - col2 * - 80 + 60 FROM tab2 AS cor0
----
60
60
60

query I rowsort
SELECT DISTINCT - ( + 95 ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN col0 * + col2 AND + col1
----

query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
87

query I rowsort
SELECT + + 4 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9640
SELECT DISTINCT + CAST( NULL AS SIGNED ) / col0 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / col0 AS col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, col1 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9642
SELECT - COUNT( - + col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9642
SELECT - COUNT ( - + col0 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9643
SELECT DISTINCT - col0 * + CAST( + - 54 AS SIGNED ) FROM tab1 AS cor0
----
2754
4590
4914

skipif mysql # not compatible
query I rowsort label-9643
SELECT DISTINCT - col0 * + CAST ( + - 54 AS INTEGER ) FROM tab1 AS cor0
----
2754
4590
4914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9644
SELECT - + 37 * - CAST( - + 78 AS SIGNED ) FROM tab0 AS cor0
----
-2886
-2886
-2886

skipif mysql # not compatible
query I rowsort label-9644
SELECT - + 37 * - CAST ( - + 78 AS INTEGER ) FROM tab0 AS cor0
----
-2886
-2886
-2886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) col2 FROM tab1 cor0 WHERE NULL > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 43 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9648
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9648
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT + col1 AS col1, + col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT MAX( ALL - col0 ) * + + 37 AS col0 FROM tab2
----
-1702

skipif mysql # not compatible
query I rowsort label-9650
SELECT MAX ( ALL - col0 ) * + + 37 AS col0 FROM tab2
----
-1702

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE NOT NULL BETWEEN col1 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT ALL ( - COUNT( * ) ) FROM tab1 WHERE NOT ( NULL ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL ( - COUNT ( * ) ) FROM tab1 WHERE NOT ( NULL ) > NULL
----
0

query I rowsort
SELECT - - 56 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
56
56
56

query I rowsort
SELECT ALL + col1 * + - col2 + - ( - col1 ) AS col2 FROM tab0
----
-189
-3726
-98

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * - - col0 + + 17 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + + - 55 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT DISTINCT + MIN( DISTINCT col0 ) * COUNT( * ) + SUM( ALL col0 ) AS col1 FROM tab2
----
323

skipif mysql # not compatible
query I rowsort label-9657
SELECT DISTINCT + MIN ( DISTINCT col0 ) * COUNT ( * ) + SUM ( ALL col0 ) AS col1 FROM tab2
----
323

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 WHERE col1 NOT IN ( - col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 WHERE col1 NOT IN ( - col1 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT + SUM( + 73 ) * + - COUNT( * ) FROM tab1 cor0
----
-657

skipif mysql # not compatible
query I rowsort label-9659
SELECT + SUM ( + 73 ) * + - COUNT ( * ) FROM tab1 cor0
----
-657

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT - - ( + COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9660
SELECT - - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9661
SELECT + + ( + CAST( NULL AS SIGNED ) ) AS col0, + 29 FROM tab1 AS cor0
----
NULL
29
NULL
29
NULL
29

skipif mysql # not compatible
query II rowsort label-9661
SELECT + + ( + CAST ( NULL AS INTEGER ) ) AS col0, + 29 FROM tab1 AS cor0
----
NULL
29
NULL
29
NULL
29

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE + + 13 NOT IN ( - 47 + col1 - col1 )
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 + - col2 col1 FROM tab1
----
-4345
-484
-810

query I rowsort
SELECT 3 * col2 + col0 FROM tab2
----
115
184
249

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE NOT 86 * - 75 IN ( + + col2 )
----
14
47
5

query II rowsort
SELECT - 82 * 90 + + - col0, col0 FROM tab0 AS cor0
----
-7395
15
-7467
87
-7477
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9667
SELECT - COUNT( * ) * + COUNT( DISTINCT + col0 ), - COUNT( * ) + - + 20 AS col1 FROM tab0 AS cor0
----
-9
-23

skipif mysql # not compatible
query II rowsort label-9667
SELECT - COUNT ( * ) * + COUNT ( DISTINCT + col0 ), - COUNT ( * ) + - + 20 AS col1 FROM tab0 AS cor0
----
-9
-23

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col1 / 57 * col0 * - 25 )
----

query I rowsort
SELECT DISTINCT + col1 + + 87 FROM tab1 AS cor0
----
101
134
92

query I rowsort
SELECT ALL - 36 + ( - + col0 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col2 + + + 25 * - col1 FROM tab0 cor0
----
-1978
-515
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT DISTINCT + COUNT( * ) - ( - 0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9672
SELECT DISTINCT + COUNT ( * ) - ( - 0 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - col2 + - col1 + col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ( + 73 ) - - col2 AS col2 FROM tab0
----
120
172
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9675
SELECT CAST( NULL AS SIGNED ) - + + 64 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9675
SELECT CAST ( NULL AS INTEGER ) - + + 64 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 - - 69 FROM tab1
----
116
74
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9677
SELECT DISTINCT - 74 + COUNT( * ) + + + COUNT( * ) FROM tab2
----
-68

skipif mysql # not compatible
query I rowsort label-9677
SELECT DISTINCT - 74 + COUNT ( * ) + + + COUNT ( * ) FROM tab2
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9678
SELECT ALL - 93 * - - 9 - - - col1 + + col1 * - CAST( NULL AS SIGNED ) + - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9678
SELECT ALL - 93 * - - 9 - - - col1 + + col1 * - CAST ( NULL AS INTEGER ) + - col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + 91, + 49 * - - col0 )
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE ( ( NULL ) >= col2 / + - 63 / 42 )
----

query I rowsort
SELECT ALL - 87 AS col0 FROM tab0 WHERE + 94 + - - col0 IS NOT NULL
----
-87
-87
-87

query I rowsort
SELECT 59 - - + 6 + + col0 * - 68 FROM tab0
----
-5851
-6531
-955

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT ( - COUNT( * ) ) * - COUNT( * ) FROM tab2 WHERE col2 * + col2 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-9683
SELECT ( - COUNT ( * ) ) * - COUNT ( * ) FROM tab2 WHERE col2 * + col2 IS NOT NULL
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-9684
SELECT 64 AS col2, MIN( col2 ) - + COUNT( * ) FROM tab1
----
64
56

skipif mysql # not compatible
query II rowsort label-9684
SELECT 64 AS col2, MIN ( col2 ) - + COUNT ( * ) FROM tab1
----
64
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9685
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9685
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query II rowsort
SELECT + col1 AS col1, 20 * + col1 AS col1 FROM tab0
----
1
20
21
420
81
1620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + - col2 col1 FROM tab0 AS cor0
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col0 FROM tab2 AS cor0 WHERE NOT NULL <= 3 + + col1
----

query I rowsort
SELECT + col1 * + col2 + - 25 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col2 * col0 ) <> ( NULL )
----

query I rowsort
SELECT ALL - col2 * + + col0 AS col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT ( NULL ) NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT DISTINCT MAX( 25 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
25

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT MAX ( 25 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
25

query II rowsort
SELECT + + 80 * - col1, + col0 FROM tab2 AS cor0
----
-4080
46
-5360
75
-6160
64

query I rowsort
SELECT 67 FROM tab0 AS cor0 WHERE NOT NULL = col0 + 0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9695
SELECT DISTINCT - + 73 + + COUNT( * ) AS col1, 11 AS col0 FROM tab1 AS cor0
----
-70
11

skipif mysql # not compatible
query II rowsort label-9695
SELECT DISTINCT - + 73 + + COUNT ( * ) AS col1, 11 AS col0 FROM tab1 AS cor0
----
-70
11

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT ( NOT - 14 - + 66 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9698
SELECT col0 DIV - - col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9698
SELECT col0 / - - col0 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9699
SELECT DISTINCT col1, - 24 - - ( + ( CAST( NULL AS SIGNED ) ) ) + - ( + col1 ) AS col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-9699
SELECT DISTINCT col1, - 24 - - ( + ( CAST ( NULL AS INTEGER ) ) ) + - ( + col1 ) AS col0 FROM tab1
----
14
NULL
47
NULL
5
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 43 + - 30 + + - 37 = + - 48
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col0, col0 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - 73
----

query I rowsort
SELECT ALL ( - 62 ) FROM tab1
----
-62
-62
-62

query II rowsort
SELECT ALL col1 AS col1, 60 + - col1 + - col0 AS col0 FROM tab0
----
1
-38
21
-48
81
-36

query I rowsort
SELECT DISTINCT col1 * col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1215
1827
97

query I rowsort
SELECT - - col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT ALL + MAX( - 98 ) FROM tab2
----
-98

skipif mysql # not compatible
query I rowsort label-9706
SELECT ALL + MAX ( - 98 ) FROM tab2
----
-98

query I rowsort
SELECT ALL + - col0 + - + 70 AS col0 FROM tab2 AS cor0
----
-116
-134
-145

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9708
SELECT ALL + - col0 + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9708
SELECT ALL + - col0 + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT DISTINCT - SUM( ALL 96 ) * + COUNT( * ) + 19 AS col2 FROM tab1 AS cor0
----
-845

skipif mysql # not compatible
query I rowsort label-9709
SELECT DISTINCT - SUM ( ALL 96 ) * + COUNT ( * ) + 19 AS col2 FROM tab1 AS cor0
----
-845

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - 23 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-9711
SELECT COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
9

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + ( - 84 ) + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT + COUNT( * ) + + + 14 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-9713
SELECT + COUNT ( * ) + + + 14 FROM tab2 AS cor0
----
17

query I rowsort
SELECT 47 + + 29 FROM tab1 AS cor0
----
76
76
76

query I rowsort
SELECT - - 2 + - 89 * + 70 AS col1 FROM tab2 AS cor0
----
-6228
-6228
-6228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9716
SELECT CAST( - - 72 AS SIGNED ) + + 62 FROM tab2 AS cor0
----
134
134
134

skipif mysql # not compatible
query I rowsort label-9716
SELECT CAST ( - - 72 AS INTEGER ) + + 62 FROM tab2 AS cor0
----
134
134
134

query I rowsort
SELECT - col1 + - col0 * - - col0 FROM tab0 cor0
----
-306
-7590
-9410

query I rowsort
SELECT - col1 + 67 FROM tab1 cor0
----
20
53
62

query II rowsort
SELECT ALL - col1 - - 33, - 58 AS col1 FROM tab2 AS cor0 WHERE + 58 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 87 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col1 + - - 24 + - 68 * + col2 AS col2 FROM tab2 AS cor0
----
-1591
-2773
-3987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9722
SELECT ALL - col0 / - CAST( NULL AS SIGNED ) + + col2 + - col1 * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL - col0 / - CAST ( NULL AS INTEGER ) + + col2 + - col1 * col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2 AS col1, col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9724
SELECT CAST( - + col1 AS SIGNED ) * + 96 + - col1 * + col1 col0 FROM tab0
----
-14337
-2457
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9724
SELECT CAST ( - + col1 AS INTEGER ) * + 96 + - col1 * + col1 col0 FROM tab0
----
-14337
-2457
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9725
SELECT + - col2 DIV + col2 + - col1 AS col2 FROM tab0 AS cor0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-9725
SELECT + - col2 / + col2 + - col1 AS col2 FROM tab0 AS cor0
----
-2
-22
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 7 col0 FROM tab0 AS cor0
----
-7

query I rowsort
SELECT DISTINCT + 23 * - ( - col1 ) + - + col1 AS col2 FROM tab1 AS cor0
----
1034
110
308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9728
SELECT + 80 * + COUNT( * ) FROM tab0 cor0 WHERE NOT ( col0 - col1 + + ( CAST( col0 AS SIGNED ) ) ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9728
SELECT + 80 * + COUNT ( * ) FROM tab0 cor0 WHERE NOT ( col0 - col1 + + ( CAST ( col0 AS INTEGER ) ) ) BETWEEN NULL AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9729
SELECT DISTINCT + 14 DIV + col2 AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT + 14 / + col2 AS col2 FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT + + 81 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT COUNT( * ) + - - COUNT( ALL - 40 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-9731
SELECT COUNT ( * ) + - - COUNT ( ALL - 40 ) FROM tab0
----
6

query I rowsort
SELECT ALL col0 - col2 * + col1 FROM tab0 AS cor0 WHERE - 55 / - col0 * col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9733
SELECT 72 + + + col0 + CAST( NULL AS SIGNED ) + + - 48 AS col0, ( + - col2 ) FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-9733
SELECT 72 + + + col0 + CAST ( NULL AS INTEGER ) + + - 48 AS col0, ( + - col2 ) FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

query I rowsort
SELECT DISTINCT + 82 * + 51 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9735
SELECT DISTINCT 55 DIV COUNT( * ) + + COUNT( * ) + + ( + 29 ) * ( COUNT( * ) ) AS col1 FROM tab2 cor0
----
108

skipif mysql # not compatible
query I rowsort label-9735
SELECT DISTINCT 55 / COUNT ( * ) + + COUNT ( * ) + + ( + 29 ) * ( COUNT ( * ) ) AS col1 FROM tab2 cor0
----
108

query II rowsort
SELECT DISTINCT + col0, 91 FROM tab1 AS cor0
----
51
91
85
91
91
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9737
SELECT - COUNT( * ) DIV + - 28 col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9737
SELECT - COUNT ( * ) / + - 28 col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT ALL MAX( DISTINCT - - col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL MAX ( DISTINCT - - col1 ) AS col0 FROM tab1
----
47

query II rowsort
SELECT DISTINCT - col0 * col0 AS col1, + col0 AS col1 FROM tab2
----
-2116
46
-4096
64
-5625
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( 17 * 82 )
----

query I rowsort
SELECT DISTINCT + 16 AS col1 FROM tab0 WHERE NOT NULL IN ( - ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT + 61 * + + 39 - + COUNT( * ) + + + COUNT( * ) FROM tab0 AS cor0
----
2379

skipif mysql # not compatible
query I rowsort label-9742
SELECT + 61 * + + 39 - + COUNT ( * ) + + + COUNT ( * ) FROM tab0 AS cor0
----
2379

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9743
SELECT - 81 AS col1, col1 * - 4 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( col2 ) + - + 62 NOT IN ( - - 43, 80, - ( + CAST( NULL AS SIGNED ) ) ) )
----

skipif mysql # not compatible
query II rowsort label-9743
SELECT - 81 AS col1, col1 * - 4 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( col2 ) + - + 62 NOT IN ( - - 43, 80, - ( + CAST ( NULL AS INTEGER ) ) ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 8 NOT IN ( + col2 * - 19, col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT DISTINCT + ( - MAX( ALL - col0 ) ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-9745
SELECT DISTINCT + ( - MAX ( ALL - col0 ) ) FROM tab0
----
15

query I rowsort
SELECT ALL + 7 AS col0 FROM tab1
----
7
7
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( col1 ) AS col0, - col0 col0 FROM tab2
----
51
-46
67
-75
77
-64

query III rowsort
SELECT * FROM tab1 WHERE NOT 75 < NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 39 + col1 IS NOT NULL
----

query II rowsort
SELECT ( - col2 ) AS col1, - col1 * col1 * - + col0 AS col1 FROM tab0 AS cor0
----
-10
38367
-47
98415
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9751
SELECT + + MAX( + col1 ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-9751
SELECT + + MAX ( + col1 ) FROM tab0 cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col0 + + col0 + - 79 ) = + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 88 FROM tab2 WHERE NOT ( - col0 * 4 - col1 / col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - col1 * + + 70 AS col0 FROM tab0
----
-1470
-5670
-70

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 20 + + - col1 + 65 + col1 FROM tab1 AS cor0
----
85

query I rowsort
SELECT ALL - 21 + 6 AS col1 FROM tab0 AS cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT - - COUNT( * ) * + + COUNT( * ) FROM tab2 AS cor0 WHERE + 60 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9758
SELECT - - COUNT ( * ) * + + COUNT ( * ) FROM tab2 AS cor0 WHERE + 60 IS NULL
----
0

query I rowsort
SELECT col2 * - 67 FROM tab0 AS cor0
----
-3149
-6633
-670

query I rowsort
SELECT DISTINCT - - 79 + - + 28 FROM tab2 AS cor0
----
51

query II rowsort
SELECT + 72 AS col2, + col2 AS col1 FROM tab0 AS cor0
----
72
10
72
47
72
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT + + COUNT( * ) + + - 74 AS col2 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-9762
SELECT + + COUNT ( * ) + + - 74 AS col2 FROM tab2 AS cor0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9763
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) * COUNT( * ) + - COUNT( * ) + - 69 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9763
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) * COUNT ( * ) + - COUNT ( * ) + - 69 FROM tab1
----
NULL

query I rowsort
SELECT + ( - 34 ) + + 65 FROM tab2
----
31
31
31

query I rowsort
SELECT ALL 37 + + 48 AS col0 FROM tab0
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 70 + - col2 + + ( + ( + col1 ) ) * - col0 AS col2, col1 col1 FROM tab0
----
-1332
81
-1907
21
-266
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 WHERE NULL IS NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 16 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT ALL COUNT( * ) + + + 18 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL COUNT ( * ) + + + 18 FROM tab2 AS cor0
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9770
SELECT COUNT( * ) DIV - CAST( 92 AS SIGNED ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9770
SELECT COUNT ( * ) / - CAST ( 92 AS INTEGER ) FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 + col2 col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9772
SELECT DISTINCT + MAX( col2 ) DIV + - COUNT( ALL - col2 ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-9772
SELECT DISTINCT + MAX ( col2 ) / + - COUNT ( ALL - col2 ) FROM tab1 AS cor0
----
-32

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN 97 * + col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT 22 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT ( - col2 ) - col0 + + + col1 FROM tab1
----
-112
-133
-139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 71 * - + ( + + 4 ) col0 FROM tab1
----
-188
-216
-225

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9778
SELECT ALL + 47 DIV + 40 + + - 86 FROM tab1 AS cor0
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL + 47 / + 40 + + - 86 FROM tab1 AS cor0
----
-85
-85
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9779
SELECT + 91 * - col1 * - CAST( 25 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
106925
11375
31850

skipif mysql # not compatible
query I rowsort label-9779
SELECT + 91 * - col1 * - CAST ( 25 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
106925
11375
31850

onlyif mysql # aggregate syntax: 
query II rowsort label-9780
SELECT MAX( DISTINCT - + col1 ) AS col1, + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-51
3

skipif mysql # not compatible
query II rowsort label-9780
SELECT MAX ( DISTINCT - + col1 ) AS col1, + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-51
3

query I rowsort
SELECT + + 83 * - - col1 * - - col0 AS col1 FROM tab1 AS cor0
----
35275
354991
59262

query I rowsort
SELECT DISTINCT + col2 * 34 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
2006
2312
3264

query I rowsort
SELECT ALL + - 81 FROM tab1 AS cor0
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT MAX( ALL + + col0 ) FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9784
SELECT MAX ( ALL + + col0 ) FROM tab1 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9785
SELECT 96, COUNT( * ) col2 FROM tab2
----
96
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9785
SELECT 96, COUNT ( * ) col2 FROM tab2
----
96
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 21 NOT IN ( - - 38 * - col2, col1, 70, + ( - col1 ), - 15 )
----
87
21
10

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 27 - col0 BETWEEN + + 97 AND + + ( col0 ) / - col0 * ( + col0 ) )
----

query II rowsort
SELECT col1, - ( + - col0 ) + - + col2 AS col0 FROM tab1
----
14
-45
47
23
5
26

query II rowsort
SELECT 7, col1 AS col1 FROM tab2
----
7
51
7
67
7
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9790
SELECT DISTINCT + CAST( NULL AS SIGNED ), 54 - - 72 * + - ( + 65 ) * - - MAX( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
NULL
23454

skipif mysql # not compatible
query II rowsort label-9790
SELECT DISTINCT + CAST ( NULL AS INTEGER ), 54 - - 72 * + - ( + 65 ) * - - MAX ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
NULL
23454

query II rowsort
SELECT ALL + 77, col0 FROM tab1 cor0
----
77
51
77
85
77
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - + 90 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT ALL ( COUNT( * ) ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9793
SELECT ALL ( COUNT ( * ) ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT ALL MIN( col2 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-9794
SELECT ALL MIN ( col2 ) FROM tab2 cor0
----
23

query II rowsort
SELECT + col0, + col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

query III rowsort
SELECT DISTINCT col2 AS col0, - col1 + - + col2 - + col0 AS col1, col1 AS col2 FROM tab1 AS cor0
----
9 values hashing to ca69ca55911c423cb81161a58afd4c7d

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT - 43 * + COUNT( * ) * + COUNT( * ) AS col2 FROM tab2
----
-387

skipif mysql # not compatible
query I rowsort label-9797
SELECT - 43 * + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2
----
-387

onlyif mysql # DIV for integer division: 
query III rowsort label-9798
SELECT * FROM tab1 WHERE NOT + 47 < col1 DIV 58 * col1 * 77 + + 40 - - col1
----
85
5
59

skipif mysql # not compatible
query III rowsort label-9798
SELECT * FROM tab1 WHERE NOT + 47 < col1 / 58 * col1 * 77 + + 40 - - col1
----
85
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 + + col1 * col1 + + col2 col2 FROM tab2
----
2633
4556
5978

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 12 + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - col0 * + + 30 * - col0 + + 89 + - 36 * - + 77 * - 54 col0 FROM tab2 AS cor0
----
11156651
3087881
9312161

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 * + col0 - - 73 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + col2 + - 94 FROM tab0 AS cor0
----
-104
-141
-193

query I rowsort
SELECT ALL col2 + + - col0 + - col0 AS col0 FROM tab0 cor0
----
-164
-95
17

query I rowsort
SELECT ALL + - 12 * col1 - 60 AS col0 FROM tab2 AS cor0
----
-672
-864
-984

query I rowsort
SELECT ALL - col1 - ( ( - + col2 ) ) AS col0 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9807
SELECT CAST( NULL AS SIGNED ) AS col2, - col0 AS col1 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-9807
SELECT CAST ( NULL AS INTEGER ) AS col2, - col0 AS col1 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT ALL ( - col2 ) + col1 AS col0 FROM tab1
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9809
SELECT DISTINCT 95 - + 11 + + + col1 + - - CAST( + + col2 AS SIGNED ) + col1 DIV + col2 AS col0 FROM tab0
----
117
184
213

skipif mysql # not compatible
query I rowsort label-9809
SELECT DISTINCT 95 - + 11 + + + col1 + - - CAST ( + + col2 AS INTEGER ) + col1 / + col2 AS col0 FROM tab0
----
117
184
213

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT ( + - MAX( ALL - ( 46 ) ) ) - COUNT( * ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-9810
SELECT ( + - MAX ( ALL - ( 46 ) ) ) - COUNT ( * ) FROM tab2
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9811
SELECT ALL - col1 * + CAST( - 89 AS SIGNED ) col0 FROM tab0
----
1869
7209
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9811
SELECT ALL - col1 * + CAST ( - 89 AS INTEGER ) col0 FROM tab0
----
1869
7209
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 - + col2 + col2 + - col1 col2 FROM tab2
----
-17
-33
-43

onlyif mysql # DIV for integer division: 
query I rowsort label-9813
SELECT DISTINCT + 3 DIV + col0 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9813
SELECT DISTINCT + 3 / + col0 AS col1 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9814
SELECT ALL + col0 DIV + 75 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-9814
SELECT ALL + col0 / + 75 FROM tab1 cor0
----
0
1
1

query I rowsort
SELECT DISTINCT + col0 + - - 20 AS col1 FROM tab1 AS cor0
----
105
111
71

query I rowsort
SELECT DISTINCT - 62 + - 11 * - - col0 FROM tab1 AS cor0
----
-1063
-623
-997

onlyif mysql # aggregate syntax: 
query II rowsort label-9817
SELECT COUNT( * ) + + 65, - COUNT( * ) AS col1 FROM tab1
----
68
-3

skipif mysql # not compatible
query II rowsort label-9817
SELECT COUNT ( * ) + + 65, - COUNT ( * ) AS col1 FROM tab1
----
68
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, 78 + + col2 * - + col1 + + col2 FROM tab2
----
46
-1072
64
-2962
75
-3750

query III rowsort
SELECT * FROM tab0 WHERE + col2 NOT IN ( + 21 + - col2 * col1 * 0 * col2, col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 + - 35 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + - ( - + col1 ) ) col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT DISTINCT - - ( - - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9822
SELECT DISTINCT - - ( - - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT DISTINCT + ( MAX( + ( - ( col0 ) ) ) ) * + - 89 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 * + col1 > - + col1
----
1335

skipif mysql # not compatible
query I rowsort label-9823
SELECT DISTINCT + ( MAX ( + ( - ( col0 ) ) ) ) * + - 89 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 * + col1 > - + col1
----
1335

query II rowsort
SELECT ALL + 30, col2 * + col1 AS col2 FROM tab0 AS cor0
----
30
210
30
3807
30
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9825
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 97 - + + CAST( 64 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9825
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 97 - + + CAST ( 64 AS INTEGER )
----

query I rowsort
SELECT ( + + 54 ) AS col0 FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT DISTINCT - 37 * - col1 * - + col0 FROM tab2 AS cor0
----
-182336
-185925
-86802

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT + COUNT( * ) * - + 80 - - 46 FROM tab0 AS cor0
----
-194

skipif mysql # not compatible
query I rowsort label-9828
SELECT + COUNT ( * ) * - + 80 - - 46 FROM tab0 AS cor0
----
-194

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 83 NOT BETWEEN NULL AND - 63
----

query I rowsort
SELECT - col1 * + 82 AS col0 FROM tab2
----
-4182
-5494
-6314

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 2 col1 FROM tab1
----
10
28
94

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 ) NOT BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9833
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9833
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT ALL + 2 * COUNT( + 28 ) col2 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9834
SELECT ALL + 2 * COUNT ( + 28 ) col2 FROM tab1
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9835
SELECT ALL - 97 DIV - col0 FROM tab0
----
1
1
6

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL - 97 / - col0 FROM tab0
----
1
1
6

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 > + + 71 * - 31 + + col1 + + ( - - col0 ) - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 95 AS col0 FROM tab0 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query II rowsort label-9838
SELECT - 82 AS col2, + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-82
9

skipif mysql # not compatible
query II rowsort label-9838
SELECT - 82 AS col2, + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-82
9

query I rowsort
SELECT DISTINCT - 91 + - col2 AS col0 FROM tab1
----
-150
-159
-187

query I rowsort
SELECT + + 67 * col2 AS col0 FROM tab1 AS cor0
----
3953
4556
6432

query I rowsort
SELECT col0 + 60 AS col1 FROM tab1 AS cor0
----
111
145
151

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT DISTINCT - + COUNT( * ) + + MIN( col0 ) * + - 79 AS col1 FROM tab1 AS cor0
----
-4032

skipif mysql # not compatible
query I rowsort label-9842
SELECT DISTINCT - + COUNT ( * ) + + MIN ( col0 ) * + - 79 AS col1 FROM tab1 AS cor0
----
-4032

onlyif mysql # DIV for integer division: 
query I rowsort label-9843
SELECT ALL col0 * - 28 + + 56 + + - col1 * + col0 DIV + 92 DIV + 94 DIV + 82 AS col1 FROM tab2 AS cor0
----
-1232
-1736
-2044

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL col0 * - 28 + + 56 + + - col1 * + col0 / + 92 / + 94 / + 82 AS col1 FROM tab2 AS cor0
----
-1232
-1736
-2044

onlyif mysql # aggregate syntax: 
query I rowsort label-9844
SELECT - - MAX( ALL - col2 ) + - SUM( col0 ) FROM tab0 cor0
----
-209

skipif mysql # not compatible
query I rowsort label-9844
SELECT - - MAX ( ALL - col2 ) + - SUM ( col0 ) FROM tab0 cor0
----
-209

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 10 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 4 AS col0 FROM tab1 WHERE NOT - - 24 IS NULL
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9847
SELECT ( + col0 ) * - CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9847
SELECT ( + col0 ) * - CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - col1 * + col2 + - 69 * 3 AS col2 FROM tab1 WHERE ( NOT NULL IS NULL )
----

query II rowsort
SELECT DISTINCT ( col1 ), ( - col1 ) AS col1 FROM tab2 AS cor0
----
51
-51
67
-67
77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 93 ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
93

query I rowsort
SELECT + - col1 FROM tab2 WHERE NOT - - 59 IS NULL
----
-51
-67
-77

query I rowsort
SELECT ALL - 93 * + col2 * + - col1 AS col1 FROM tab0 AS cor0
----
19530
354051
9207

query I rowsort
SELECT ALL 24 * + - col2 FROM tab2 AS cor0
----
-1392
-552
-960

query I rowsort
SELECT DISTINCT - col0 * ( + ( + col1 ) ) FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL + ( - col0 ) * col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT + 1 <> - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT ALL 18 * 6 + - 64 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
300

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL 18 * 6 + - 64 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
300

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9858
SELECT DISTINCT + 36 DIV - MIN( - col1 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9858
SELECT DISTINCT + 36 / - MIN ( - col1 ) AS col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9859
SELECT DISTINCT * FROM tab1 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9859
SELECT DISTINCT * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT - - col0 AS col0, col2 / 32 * 55 FROM tab2 WHERE NOT - 95 IS NOT NULL
----

query II rowsort
SELECT ALL col0 AS col1, col0 * - col2 AS col2 FROM tab0
----
15
-705
87
-870
97
-9603

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col2 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT + 50 * - col0 IS NULL
----
23
40
58

query II rowsort
SELECT ALL + 68 AS col2, - col0 + + col0 + col2 FROM tab2
----
68
23
68
40
68
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9865
SELECT + CAST( ( + COUNT( * ) ) AS SIGNED ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9865
SELECT + CAST ( ( + COUNT ( * ) ) AS INTEGER ) col1 FROM tab2
----
3

query II rowsort
SELECT - col0 AS col2, 49 AS col0 FROM tab0
----
-15
49
-87
49
-97
49

query I rowsort
SELECT DISTINCT - + 41 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 * - - col1 IS NULL
----
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 AND - col1 + - - col2 * - - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9869
SELECT DISTINCT - COUNT( * ) AS col0, COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-9869
SELECT DISTINCT - COUNT ( * ) AS col0, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3
3

query II rowsort
SELECT ALL + - 69, + col0 AS col1 FROM tab0 cor0
----
-69
15
-69
87
-69
97

query I rowsort
SELECT 47 + - col2 AS col2 FROM tab2
----
-11
24
7

query I rowsort
SELECT DISTINCT + - 34 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 65 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 97 + 92 col1 FROM tab0 AS cor0
----
-5
-5
-5

onlyif mysql # DIV for integer division: 
query II rowsort label-9875
SELECT col2 AS col1, col0 * + col0 + - 88 DIV - 44 FROM tab1
----
59
7227
68
8283
96
2603

skipif mysql # not compatible
query II rowsort label-9875
SELECT col2 AS col1, col0 * + col0 + - 88 / - 44 FROM tab1
----
59
7227
68
8283
96
2603

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9876
SELECT + 2 - - - 72 DIV + + 93 AS col0, + 37 + - CAST( + ( 61 ) AS SIGNED ) AS col1 FROM tab0
----
2
-24
2
-24
2
-24

skipif mysql # not compatible
query II rowsort label-9876
SELECT + 2 - - - 72 / + + 93 AS col0, + 37 + - CAST ( + ( 61 ) AS INTEGER ) AS col1 FROM tab0
----
2
-24
2
-24
2
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9877
SELECT CAST( NULL AS SIGNED ) - + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9877
SELECT CAST ( NULL AS INTEGER ) - + col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 83 * - + col2 + - 18 AS col2 FROM tab1
----
-4915
-5662
-7986

onlyif mysql # DIV for integer division: 
query II rowsort label-9879
SELECT - col2 * - col1 - - col2 col2, - 36 * ( + col1 ) DIV 65 AS col0 FROM tab2
----
1196
-28
3120
-42
3944
-37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9879
SELECT - col2 * - col1 - - col2 col2, - 36 * ( + col1 ) / 65 AS col0 FROM tab2
----
1196
-28
3120
-42
3944
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-9880
SELECT + col1 DIV col0 * + col2 - - + col1 col2 FROM tab0
----
1
21
316

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9880
SELECT + col1 / col0 * + col2 - - + col1 col2 FROM tab0
----
1
21
316

query II rowsort
SELECT ALL col1 AS col0, col1 + 49 AS col2 FROM tab1
----
14
63
47
96
5
54

query I rowsort
SELECT - 67 + + col1 AS col0 FROM tab2
----
-16
0
10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + + col0 + + 80 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9884
SELECT 0 * - - CAST( + COUNT( - col1 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9884
SELECT 0 * - - CAST ( + COUNT ( - col1 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9886
SELECT 31 DIV - col2 AS col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-9886
SELECT 31 / - col2 AS col0 FROM tab0
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 59 * - + col0 col0 FROM tab2
----
-2714
-3776
-4425

query I rowsort
SELECT ALL + ( + 73 ) * - col1 FROM tab1
----
-1022
-3431
-365

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT - MAX( + + 57 ) * - 89 col2 FROM tab2 AS cor0
----
5073

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9889
SELECT - MAX ( + + 57 ) * - 89 col2 FROM tab2 AS cor0
----
5073

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9890
SELECT DISTINCT CAST( 74 AS SIGNED ) col0 FROM tab0 AS cor0 WHERE 50 + - + 83 + + col1 * + + 42 * - col1 * - 0 >= - - CAST( 9 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9890
SELECT DISTINCT CAST ( 74 AS INTEGER ) col0 FROM tab0 AS cor0 WHERE 50 + - + 83 + + col1 * + + 42 * - col1 * - 0 >= - - CAST ( 9 AS INTEGER )
----

query I rowsort
SELECT - - 2 * - col1 AS col1 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT DISTINCT - 12 * + 59 + MAX( - 60 ) - + 73 FROM tab1 AS cor0
----
-841

skipif mysql # not compatible
query I rowsort label-9892
SELECT DISTINCT - 12 * + 59 + MAX ( - 60 ) - + 73 FROM tab1 AS cor0
----
-841

query I rowsort
SELECT - - 80 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN - col1 AND - 97 * - 91 + + col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN - - ( + col1 ) - col0 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9895
SELECT 93 * + - CAST( NULL AS SIGNED ) * + + col1 + + 58 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9895
SELECT 93 * + - CAST ( NULL AS INTEGER ) * + + col1 + + 58 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 19 * - 0 + + + 75 + + + col2, col0 FROM tab0 cor0
----
122
15
174
97
85
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9897
SELECT 76 * - + COUNT( * ) FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-9897
SELECT 76 * - + COUNT ( * ) FROM tab2
----
-228

query II rowsort
SELECT ALL + col0 AS col0, - col1 FROM tab0
----
15
-81
87
-21
97
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9899
SELECT DISTINCT col0 + - + 56 + + - CAST( NULL AS SIGNED ) * + ( + col2 ) AS col0 FROM tab1 WHERE - 96 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9899
SELECT DISTINCT col0 + - + 56 + + - CAST ( NULL AS INTEGER ) * + ( + col2 ) AS col0 FROM tab1 WHERE - 96 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 36 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT ALL + COUNT( * ) * - + SUM( ALL 84 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-6804

skipif mysql # not compatible
query I rowsort label-9901
SELECT ALL + COUNT ( * ) * - + SUM ( ALL 84 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-6804

query I rowsort
SELECT ALL - col2 * + col1 * - 67 AS col1 FROM tab0
----
14070
255069
6633

query I rowsort
SELECT DISTINCT - col1 * 73 / col0 + - col2 * - - col1 FROM tab0 WHERE + col1 IS NULL
----

query I rowsort
SELECT - col1 - + 36 FROM tab2
----
-103
-113
-87

query I rowsort
SELECT 32 - + 33 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9906
SELECT ALL + + col2 DIV col0 + + 18 AS col2 FROM tab2 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-9906
SELECT ALL + + col2 / col0 + + 18 AS col2 FROM tab2 AS cor0
----
18
18
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9907
SELECT DISTINCT - + 17 DIV + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9907
SELECT DISTINCT - + 17 / + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT + + 58 + + MIN( DISTINCT - 34 ) col2 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9908
SELECT + + 58 + + MIN ( DISTINCT - 34 ) col2 FROM tab0 AS cor0
----
24

query I rowsort
SELECT col1 + + 46 FROM tab1 AS cor0
----
51
60
93

query I rowsort
SELECT - + col1 + + - col2 + col0 + col1 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT ALL - MIN( - col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9911
SELECT ALL - MIN ( - col1 ) AS col0 FROM tab2 AS cor0
----
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= col1
----

query II rowsort
SELECT - 77 + - + col1, ( - + col1 ) AS col1 FROM tab2 AS cor0
----
-128
-51
-144
-67
-154
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9914
SELECT DISTINCT + col0 + - + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
37
44
80

skipif mysql # not compatible
query I rowsort label-9914
SELECT DISTINCT + col0 + - + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
37
44
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9915
SELECT + 81 + + CAST( + col1 AS SIGNED ) * - + col1 AS col1 FROM tab1 AS cor0
----
-115
-2128
56

skipif mysql # not compatible
query I rowsort label-9915
SELECT + 81 + + CAST ( + col1 AS INTEGER ) * - + col1 AS col1 FROM tab1 AS cor0
----
-115
-2128
56

query I rowsort
SELECT ALL 76 * + 36 + col2 - + + col0 FROM tab1
----
2710
2713
2781

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT ALL - COUNT( * ) AS col0 FROM tab0 WHERE + 36 + + col1 + - 2 * - + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 WHERE + 36 + + col1 + - 2 * - + col1 IS NOT NULL
----
-3

query I rowsort
SELECT - col1 * - col1 * - - 73 AS col1 FROM tab0
----
32193
478953
73

query III rowsort
SELECT ALL * FROM tab0 WHERE + 79 <> NULL
----

query I rowsort
SELECT DISTINCT - + col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( - col1, col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9921
SELECT ALL + - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9921
SELECT ALL + - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT ALL 18 * COUNT( ALL - col0 ) * - MIN( - - col1 ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-9922
SELECT ALL 18 * COUNT ( ALL - col0 ) * - MIN ( - - col1 ) FROM tab0 AS cor0
----
-54

query II rowsort
SELECT DISTINCT col2 AS col2, ( - col1 ) AS col2 FROM tab2
----
23
-51
40
-77
58
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9924
SELECT - CAST( NULL AS SIGNED ) + + - 43 + + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9924
SELECT - CAST ( NULL AS INTEGER ) + + - 43 + + - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 * col0 col1 FROM tab2 cor0
----
4508
6272
7350

query I rowsort
SELECT ALL - + col2 * + + col0 * - + col1 FROM tab1 AS cor0
----
25075
290836
68544

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( - + col0 ) NOT BETWEEN + col1 + + col1 AND + 49
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * - col1 / + 21 <> NULL
----

query I rowsort
SELECT DISTINCT 2 + + ( - col2 ) AS col1 FROM tab2
----
-21
-38
-56

onlyif mysql # DIV for integer division: 
query II rowsort label-9930
SELECT - col2 DIV - col0 AS col1, col2 AS col0 FROM tab0
----
0
10
1
99
3
47

skipif mysql # not compatible
query II rowsort label-9930
SELECT - col2 / - col0 AS col1, col2 AS col0 FROM tab0
----
0
10
1
99
3
47

query I rowsort
SELECT 0 AS col2 FROM tab1 WHERE 27 * - 29 + 82 + - + col2 NOT BETWEEN - col2 AND ( NULL )
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 17 - - ( - col0 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9933
SELECT col0 * col1 AS col1 FROM tab0 WHERE NULL NOT IN ( - col2 * - CAST( NULL AS SIGNED ) - + - col2 + - 63 / - col2 )
----

skipif mysql # not compatible
query I rowsort label-9933
SELECT col0 * col1 AS col1 FROM tab0 WHERE NULL NOT IN ( - col2 * - CAST ( NULL AS INTEGER ) - + - col2 + - 63 / - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9934
SELECT - COUNT( * ) DIV + SUM( - 39 ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9934
SELECT - COUNT ( * ) / + SUM ( - 39 ) AS col1 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT DISTINCT - - COUNT( * ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT - - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
6

query II rowsort
SELECT - col2 AS col2, + col0 FROM tab0 cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT ALL - col0 + + - col0 AS col0 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # DIV for integer division: 
query I rowsort label-9938
SELECT DISTINCT + 90 DIV - 71 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9938
SELECT DISTINCT + 90 / - 71 FROM tab1 cor0
----
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col2 ) * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1, ( 42 ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 + - col2 NOT IN ( + + col2 + - 37 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-9942
SELECT - 55 * 22 - - - col1 AS col2, - 82 DIV + col2 AS col2 FROM tab0 AS cor0
----
-1211
0
-1231
-8
-1291
-1

skipif mysql # not compatible
query II rowsort label-9942
SELECT - 55 * 22 - - - col1 AS col2, - 82 / + col2 AS col2 FROM tab0 AS cor0
----
-1211
0
-1231
-8
-1291
-1

query I rowsort
SELECT DISTINCT - ( + + col0 ) - - col1 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9944
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NULL < NULL AND NOT col1 < + col2
----
0

skipif mysql # not compatible
query I rowsort label-9944
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL < NULL AND NOT col1 < + col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9945
SELECT + 94 DIV - COUNT( * ) col0 FROM tab2
----
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9945
SELECT + 94 / - COUNT ( * ) col0 FROM tab2
----
-31

query I rowsort
SELECT ALL - + ( 0 ) AS col0 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + + 86 FROM tab2 WHERE - - col0 + - - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9948
SELECT DISTINCT 61 DIV - col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-9948
SELECT DISTINCT 61 / - col0 FROM tab2
----
-1
0

query I rowsort
SELECT DISTINCT + 57 + + + col0 AS col0 FROM tab1 WHERE ( ( NULL ) >= + 41 )
----

query II rowsort
SELECT DISTINCT - col1 AS col2, - ( + col0 ) AS col2 FROM tab0
----
-1
-97
-21
-87
-81
-15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - + col2 ) * - col1 AS col2 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 cor0 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9953
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NULL > NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 64 IN ( + col2, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT 62 + col1 + ( + - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9956
SELECT DISTINCT MIN( + + col2 ), COUNT( * ) AS col1 FROM tab2
----
23
3

skipif mysql # not compatible
query II rowsort label-9956
SELECT DISTINCT MIN ( + + col2 ), COUNT ( * ) AS col1 FROM tab2
----
23
3

query I rowsort
SELECT ALL + 72 * - 90 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to d9e1376c8505c7726db829cb8034aad8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT DISTINCT 47 * COUNT( DISTINCT col2 ) FROM tab0 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT 47 * COUNT ( DISTINCT col2 ) FROM tab0 AS cor0
----
141

query I rowsort
SELECT ALL - 89 + + - 45 FROM tab0 AS cor0
----
-134
-134
-134

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 col0 FROM tab0 AS cor0
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT + 56 + + - MAX( + col1 ) - - MAX( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-9963
SELECT + 56 + + - MAX ( + col1 ) - - MAX ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
56

query I rowsort
SELECT - col2 + - + col2 + col0 + col0 FROM tab0
----
-4
-64
154

onlyif mysql # DIV for integer division: 
query II rowsort label-9965
SELECT DISTINCT col1, - col1 DIV + - col0 FROM tab2
----
51
1
67
0
77
1

skipif mysql # not compatible
query II rowsort label-9965
SELECT DISTINCT col1, - col1 / + - col0 FROM tab2
----
51
1
67
0
77
1

query I rowsort
SELECT ALL - col1 * - col1 * - + col0 * 17 FROM tab1
----
-169932
-3417323
-36125

query I rowsort
SELECT ALL + col1 * + col1 * - ( - 56 ) AS col2 FROM tab0
----
24696
367416
56

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE - col1 IS NULL
----

query I rowsort
SELECT 39 * + - col2 + + + 66 + - 39 AS col0 FROM tab1 AS cor0 WHERE 10 IS NOT NULL
----
-2274
-2625
-3717

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 NOT BETWEEN + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9971
SELECT DISTINCT + - ( + col1 ) FROM tab0 WHERE - - col2 NOT BETWEEN NULL AND - + ( - + col0 ) / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9971
SELECT DISTINCT + - ( + col1 ) FROM tab0 WHERE - - col2 NOT BETWEEN NULL AND - + ( - + col0 ) / CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 77 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query III rowsort
SELECT * FROM tab2 WHERE 5 * - col2 * - + col2 * - 41 * + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * col2 + + col1 - + col1 - - col0 FROM tab1
----
-1293
-210
-3105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9975
SELECT CAST( + - col0 AS SIGNED ) + - + col2 + - col0 * col1 AS col0 FROM tab2 AS cor0
----
-2415
-5032
-5158

skipif mysql # not compatible
query I rowsort label-9975
SELECT CAST ( + - col0 AS INTEGER ) + - + col2 + - col0 * col1 AS col0 FROM tab2 AS cor0
----
-2415
-5032
-5158

onlyif mysql # DIV for integer division: 
query I rowsort label-9976
SELECT + col0 DIV col1 * + - col0 + + 26 FROM tab1 AS cor0
----
-127
-1419
-65

skipif mysql # not compatible
query I rowsort label-9976
SELECT + col0 / col1 * + - col0 + + 26 FROM tab1 AS cor0
----
-127
-1419
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 38 col1 FROM tab1 AS cor0
----
-38
-38
-38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9978
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 AND - + CAST( NULL AS SIGNED ) * + 65 / + + col1
----

skipif mysql # not compatible
query III rowsort label-9978
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 AND - + CAST ( NULL AS INTEGER ) * + 65 / + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9979
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - + CAST( 98 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9979
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - + CAST ( 98 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 15 FROM tab1 WHERE NULL IS NULL
----
-15
-15
-15

query I rowsort
SELECT - col1 + + 72 * + col0 FROM tab1 WHERE NOT NULL BETWEEN - 77 + + - 54 + + 74 AND NULL
----

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NOT col0 + - + 77 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT ALL COUNT( + - 25 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9983
SELECT ALL COUNT ( + - 25 ) AS col0 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 14 col0, - 61 AS col2 FROM tab1 AS cor0
----
-14
-61
-14
-61
-14
-61

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 8 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 71 AND NULL
----

query II rowsort
SELECT DISTINCT 71, col1 FROM tab1 AS cor0
----
71
14
71
47
71
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9988
SELECT + MAX( + col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9988
SELECT + MAX ( + col2 ) FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9989
SELECT ALL + MAX( ALL - 52 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-52

skipif mysql # not compatible
query I rowsort label-9989
SELECT ALL + MAX ( ALL - 52 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-52

query I rowsort
SELECT ALL + col1 * - col2 FROM tab2 WHERE - col2 + + ( col2 ) IS NOT NULL
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9991
SELECT 30 + COUNT( ALL + - col0 ) FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-9991
SELECT 30 + COUNT ( ALL + - col0 ) FROM tab2
----
33

query I rowsort
SELECT - 12 * - col0 + col0 AS col1 FROM tab2
----
598
832
975

query I rowsort
SELECT DISTINCT - - 21 + - 70 AS col2 FROM tab1 AS cor0
----
-49

query I rowsort
SELECT ALL + - ( ( - 88 ) ) AS col1 FROM tab2 AS cor0
----
88
88
88

query II rowsort
SELECT DISTINCT - col1 + + + col1 AS col1, - 12 + + col1 AS col1 FROM tab0 AS cor0
----
0
-11
0
69
0
9

query I rowsort
SELECT ALL 10 + + 78 AS col0 FROM tab2 cor0
----
88
88
88

onlyif mysql # DIV for integer division: 
query II rowsort label-9997
SELECT - 38, - ( + 59 ) DIV + col2 AS col2 FROM tab2 AS cor0
----
-38
-1
-38
-1
-38
-2

skipif mysql # not compatible
query II rowsort label-9997
SELECT - 38, - ( + 59 ) / + col2 AS col2 FROM tab2 AS cor0
----
-38
-1
-38
-1
-38
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9998
SELECT * FROM tab1 WHERE ( NOT ( + col1 / - + CAST( - - col1 AS SIGNED ) + + - col2 IS NOT NULL ) )
----

skipif mysql # not compatible
query III rowsort label-9998
SELECT * FROM tab1 WHERE ( NOT ( + col1 / - + CAST ( - - col1 AS INTEGER ) + + - col2 IS NOT NULL ) )
----

query I rowsort
SELECT DISTINCT + col0 + + ( - col1 ) FROM tab0
----
-66
66
96

