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 # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-0
SELECT - CAST( NULL AS SIGNED ) + - col2 AS col2, col0 * + + col0 + - + 22 DIV - col1 AS col2 FROM tab1 cor0
----
NULL
2602
NULL
7229
NULL
8281

skipif mysql # not compatible
query II rowsort label-0
SELECT - CAST ( NULL AS INTEGER ) + - col2 AS col2, col0 * + + col0 + - + 22 / - col1 AS col2 FROM tab1 cor0
----
NULL
2602
NULL
7229
NULL
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-1
SELECT - - col0 DIV + + col1 + col0 * + 1 + ( - 50 ) AS col0 FROM tab0 cor0
----
-35
144
41

skipif mysql # not compatible
query I rowsort label-1
SELECT - - col0 / + + col1 + col0 * + 1 + ( - 50 ) AS col0 FROM tab0 cor0
----
-35
144
41

query I rowsort
SELECT - + 1 * + - col0 + - ( + col2 ) + + + 87 AS col2 FROM tab0 AS cor0
----
164
55
85

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

skipif mysql # not compatible
query I rowsort label-3
SELECT ALL MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT ALL + 69 + + ( ( - col1 ) ) AS col0 FROM tab2 WHERE NOT - 35 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6
SELECT COUNT( ALL - 60 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6
SELECT COUNT ( ALL - 60 ) FROM tab0
----
3

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE ( NULL ) IN ( - - 27 )
----

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

query I rowsort
SELECT + + 61 - + col2 AS col0 FROM tab1 AS cor0
----
-35
-7
2

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

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

query I rowsort
SELECT DISTINCT 58 + col1 FROM tab2 AS cor0 WHERE NOT ( NOT + + col0 + col0 * col2 IS NOT NULL )
----
109
125
135

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-14
SELECT COUNT ( * ) / COUNT ( * ) col0 FROM tab0
----
1

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

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

query II rowsort
SELECT DISTINCT col2, + 20 FROM tab1
----
59
20
68
20
96
20

query I rowsort
SELECT DISTINCT + 93 * - ( col2 ) AS col0 FROM tab0
----
-4371
-9207
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-18
SELECT + 3 * + ( - COUNT( * ) ) FROM tab0 WHERE NOT ( - col1 ) IN ( col2 )
----
-9

skipif mysql # not compatible
query I rowsort label-18
SELECT + 3 * + ( - COUNT ( * ) ) FROM tab0 WHERE NOT ( - col1 ) IN ( col2 )
----
-9

query I rowsort
SELECT DISTINCT + 73 FROM tab1 WHERE - col1 <> ( - col2 ) + + col2 + + col2
----
73

query I rowsort
SELECT 43 * - - 47 FROM tab0
----
2021
2021
2021

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

skipif mysql # not compatible
query I rowsort label-21
SELECT col0 / + - col1 AS col0 FROM tab2
----
-1
0
0

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE 37 IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT ALL + COUNT( * ) col0 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-26
SELECT ALL + COUNT ( * ) col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

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

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

query II rowsort
SELECT DISTINCT - ( col2 ) AS col1, 6 AS col2 FROM tab0 AS cor0
----
-10
6
-47
6
-99
6

query I rowsort
SELECT ALL - col0 * col2 + 13 + + col2 AS col2 FROM tab2 AS cor0
----
-1022
-2507
-4279

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT DISTINCT - 25 + COUNT( * ) FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-31
SELECT DISTINCT - 25 + COUNT ( * ) FROM tab1 AS cor0
----
-22

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 + - col2 col2 FROM tab1
----
-15
-43
-6

query III rowsort
SELECT * FROM tab1 WHERE NULL > col2 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT 16 + - COUNT( DISTINCT + col0 ) * + 72 AS col2 FROM tab1
----
-200

skipif mysql # not compatible
query I rowsort label-35
SELECT 16 + - COUNT ( DISTINCT + col0 ) * + 72 AS col2 FROM tab1
----
-200

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * - col2 < ( + + 16 * col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-38
SELECT ALL 13 AS col2, - SUM( DISTINCT + 94 ) AS col2 FROM tab1 cor0
----
13
-94

skipif mysql # not compatible
query II rowsort label-38
SELECT ALL 13 AS col2, - SUM ( DISTINCT + 94 ) AS col2 FROM tab1 cor0
----
13
-94

query I rowsort
SELECT - 70 - + 84 AS col1 FROM tab1 AS cor0
----
-154
-154
-154

query I rowsort
SELECT - 71 - - 10 FROM tab2 AS cor0
----
-61
-61
-61

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

query I rowsort
SELECT DISTINCT + + 84 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-43
SELECT - col1 DIV - col0 - - 68 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
68
68
68

skipif mysql # not compatible
query I rowsort label-43
SELECT - col1 / - col0 - - 68 AS col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
68
68
68

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-47
SELECT ALL - 20 * - + COUNT( * ) col1 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-47
SELECT ALL - 20 * - + COUNT ( * ) col1 FROM tab2 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-48
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-48
SELECT DISTINCT + - COUNT ( * ) col2 FROM tab2 cor0
----
-3

query I rowsort
SELECT 49 - - col2 AS col0 FROM tab1 WHERE NOT ( NOT NULL = NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-50
SELECT 15 DIV + - COUNT( * ) FROM tab0
----
-5

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-52
SELECT DISTINCT + ( CAST( - col0 AS SIGNED ) ) DIV + 75 FROM tab1 WHERE NOT ( NOT - col2 * - 73 + col1 IS NOT NULL )
----
-1
0

skipif mysql # not compatible
query I rowsort label-52
SELECT DISTINCT + ( CAST ( - col0 AS INTEGER ) ) / + 75 FROM tab1 WHERE NOT ( NOT - col2 * - 73 + col1 IS NOT NULL )
----
-1
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 * - ( + + col2 ) + col2 * + 58 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-55
SELECT - + COUNT( * ) DIV - 89 AS col1 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND - 63 + - + ( - col0 ) * ( col1 ) DIV + CAST( NULL AS SIGNED ) * - 88
----
0

skipif mysql # not compatible
query I rowsort label-55
SELECT - + COUNT ( * ) / - 89 AS col1 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND - 63 + - + ( - col0 ) * ( col1 ) / + CAST ( NULL AS INTEGER ) * - 88
----
0

query I rowsort
SELECT ALL + col2 + + - ( + col1 ) AS col2 FROM tab1 cor0
----
21
54
82

query I rowsort
SELECT DISTINCT + col2 + + - col0 FROM tab2
----
-17
-23
-24

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

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

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

query I rowsort
SELECT ALL col2 - 54 * - - col1 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IN ( - col2 + + 23, col0 * - col1, + 17 )
----
166360
209902
63365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-61
SELECT + ( - 95 ) * col0 + + - CAST( 48 AS SIGNED ) FROM tab2 AS cor0
----
-4418
-6128
-7173

skipif mysql # not compatible
query I rowsort label-61
SELECT + ( - 95 ) * col0 + + - CAST ( 48 AS INTEGER ) FROM tab2 AS cor0
----
-4418
-6128
-7173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-62
SELECT - CAST( + - col1 AS SIGNED ) FROM tab1 AS cor0 WHERE col1 NOT IN ( col1, - col0 + - 79, + ( 12 ) + + col2 )
----

skipif mysql # not compatible
query I rowsort label-62
SELECT - CAST ( + - col1 AS INTEGER ) FROM tab1 AS cor0 WHERE col1 NOT IN ( col1, - col0 + - 79, + ( 12 ) + + col2 )
----

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

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

query I rowsort
SELECT ALL - + col0 * - ( 91 ) FROM tab2 AS cor0
----
4186
5824
6825

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

query I rowsort
SELECT + col2 - 66 * - col0 + - + 69 FROM tab0
----
5683
6432
968

query I rowsort
SELECT ALL 77 + - 95 + + 21 AS col2 FROM tab1
----
3
3
3

query I rowsort
SELECT 85 + + col1 FROM tab2
----
136
152
162

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

query I rowsort
SELECT 54 + - col1 * + col2 FROM tab0
----
-156
-3753
-45

query I rowsort
SELECT ( + col2 ) + - 57 + 90 FROM tab0
----
132
43
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-72
SELECT col0 * col2 + col1 * - col2 col0, - col2 FROM tab2 AS cor0 WHERE CAST( col1 AS SIGNED ) + - col2 + - col0 <> NULL
----

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

query I rowsort
SELECT col1 * col0 + 64 * + col0 * + - 91 AS col0 FROM tab0 cor0
----
-504861
-564831
-86145

query I rowsort
SELECT col1 * - 62 AS col2 FROM tab1
----
-2914
-310
-868

query II rowsort
SELECT DISTINCT - + 22, + ( - - col1 ) AS col0 FROM tab2 AS cor0
----
-22
51
-22
67
-22
77

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

query I rowsort
SELECT + ( + 35 ) FROM tab0 AS cor0
----
35
35
35

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

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

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

query I rowsort
SELECT - col2 * col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - col2 * - col0 + - 90 AND NULL
----

query I rowsort
SELECT 69 + - col1 FROM tab0 cor0 WHERE NOT - 2 IS NULL
----
-12
48
68

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-83
SELECT ALL MAX( col0 ) AS col0, COUNT( * ) AS col2 FROM tab0
----
97
3

skipif mysql # not compatible
query II rowsort label-83
SELECT ALL MAX ( col0 ) AS col0, COUNT ( * ) AS col2 FROM tab0
----
97
3

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

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT + MAX ( + + col2 ) AS col2 FROM tab2
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-85
SELECT - MAX( CAST( NULL AS SIGNED ) ) * MIN( ALL + 16 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-85
SELECT - MAX ( CAST ( NULL AS INTEGER ) ) * MIN ( ALL + 16 ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-86
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN - col0 / - - col0 AND - col0 / - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-86
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN - col0 / - - col0 AND - col0 / - CAST ( NULL AS INTEGER )
----

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

query II rowsort
SELECT ALL - 68 AS col0, col0 FROM tab2
----
-68
46
-68
64
-68
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-89
SELECT ALL col0 AS col0, CAST( - col1 AS SIGNED ) AS col0 FROM tab1
----
51
-14
85
-5
91
-47

skipif mysql # not compatible
query II rowsort label-89
SELECT ALL col0 AS col0, CAST ( - col1 AS INTEGER ) AS col0 FROM tab1
----
51
-14
85
-5
91
-47

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 10 AND + - col2
----

query I rowsort
SELECT ALL col0 * 82 AS col1 FROM tab1 AS cor0
----
4182
6970
7462

query I rowsort
SELECT DISTINCT + 99 * - - col0 FROM tab1 AS cor0
----
5049
8415
9009

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT - MAX( col2 ) + - - 98 AS col1 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-93
SELECT - MAX ( col2 ) + - - 98 AS col1 FROM tab2 AS cor0
----
40

query I rowsort
SELECT ALL - col1 * + col1 * + - 2 * + col2 FROM tab2 AS cor0
----
119646
474320
520724

query I rowsort
SELECT DISTINCT + 35 + + col1 + - 70 FROM tab1 AS cor0
----
-21
-30
12

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

onlyif mysql # DIV for integer division: 
query I rowsort label-97
SELECT ALL + - col2 DIV - + 80 AS col0 FROM tab2 WHERE + 58 >= + 35 - + col2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-97
SELECT ALL + - col2 / - + 80 AS col0 FROM tab2 WHERE + 58 >= + 35 - + col2
----
0
0
0

query I rowsort
SELECT ALL + col0 + - col2 + - col1 AS col1 FROM tab2
----
-28
-50
-53

query I rowsort
SELECT + - 28 * - col1 + - col1 FROM tab1 WHERE + - col0 IS NOT NULL
----
1269
135
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-100
SELECT DISTINCT + - ( + 72 ) * - 93 * - ( - col1 ) AS col1 FROM tab0 WHERE CAST( NULL AS SIGNED ) * - col2 IS NULL
----
140616
542376
6696

skipif mysql # not compatible
query I rowsort label-100
SELECT DISTINCT + - ( + 72 ) * - 93 * - ( - col1 ) AS col1 FROM tab0 WHERE CAST ( NULL AS INTEGER ) * - col2 IS NULL
----
140616
542376
6696

query I rowsort
SELECT DISTINCT ( - col0 ) * - - 99 + + - 7 + 77 AS col2 FROM tab0
----
-1415
-8543
-9533

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

query I rowsort
SELECT 38 - + - col1 AS col1 FROM tab0 AS cor0
----
119
39
59

query I rowsort
SELECT 39 - + 61 FROM tab2 AS cor0
----
-22
-22
-22

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

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

skipif mysql # not compatible
query I rowsort label-106
SELECT col0 - col2 / - col2 FROM tab1 AS cor0
----
52
86
92

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

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL + SUM ( ALL - - col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-108
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 58 * + CAST( + col1 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-108
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 58 * + CAST ( + col1 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-110
SELECT ALL + CAST( col1 AS SIGNED ) DIV - 4 AS col0 FROM tab2 AS cor0
----
-12
-16
-19

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL + CAST ( col1 AS INTEGER ) / - 4 AS col0 FROM tab2 AS cor0
----
-12
-16
-19

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

query II rowsort
SELECT ( col2 ) AS col2, - 8 AS col2 FROM tab1 AS cor0
----
59
-8
68
-8
96
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-113
SELECT - + MAX( ALL - + 35 ) FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-113
SELECT - + MAX ( ALL - + 35 ) FROM tab0 AS cor0
----
35

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

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

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

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

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

query I rowsort
SELECT DISTINCT ( - + 89 ) AS col1 FROM tab1 AS cor0
----
-89

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

onlyif mysql # aggregate syntax: 
query II rowsort label-119
SELECT ALL + + 53, - COUNT( DISTINCT + 8 ) + + 16 col0 FROM tab2 AS cor0
----
53
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-119
SELECT ALL + + 53, - COUNT ( DISTINCT + 8 ) + + 16 col0 FROM tab2 AS cor0
----
53
15

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

onlyif mysql # DIV for integer division: 
query I rowsort label-121
SELECT + + col2 DIV + + col0 + + col0 AS col0 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-121
SELECT + + col2 / + + col0 + + col0 AS col0 FROM tab2 cor0
----
46
64
75

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

query I rowsort
SELECT DISTINCT + 59 + - col2 * + 78 - - - 54 FROM tab1 cor0
----
-4597
-5299
-7483

onlyif mysql # DIV for integer division: 
query I rowsort label-124
SELECT col2 DIV ( - - ( + + col1 ) ) DIV - col1 - - - 1 + - 29 * col1 DIV - col2 FROM tab2
----
32
54
63

skipif mysql # not compatible
query I rowsort label-124
SELECT col2 / ( - - ( + + col1 ) ) / - col1 - - - 1 + - 29 * col1 / - col2 FROM tab2
----
32
54
63

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IS NOT NULL AND ( - - 36 ) * - 31 IS NULL
----

query I rowsort
SELECT ALL - col2 + col0 + - 52 AS col1 FROM tab0
----
-54
-84
25

query I rowsort
SELECT 36 + + col2 * + 85 FROM tab1
----
5051
5816
8196

query III rowsort
SELECT * FROM tab2 WHERE - - 13 < - + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-129
SELECT 77 + + + COUNT( * ) * + 14 / + CAST( NULL AS SIGNED ) + + MIN( ALL col2 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-129
SELECT 77 + + + COUNT ( * ) * + 14 / + CAST ( NULL AS INTEGER ) + + MIN ( ALL col2 ) AS col2 FROM tab1
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 34 ) - col2 col1 FROM tab0
----
-133
-44
-81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-132
SELECT DISTINCT - 4 * - SUM( DISTINCT CAST( NULL AS DECIMAL ) ) - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-132
SELECT DISTINCT - 4 * - SUM ( DISTINCT CAST ( NULL AS REAL ) ) - COUNT ( * ) FROM tab1
----
NULL

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

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

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

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

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

query II rowsort
SELECT DISTINCT - col0 AS col1, col2 + 6 AS col1 FROM tab2
----
-46
29
-64
46
-75
64

query I rowsort
SELECT - 75 * - col0 AS col1 FROM tab1
----
3825
6375
6825

query I rowsort
SELECT - col1 * + ( + ( + col2 ) ) AS col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT ALL ( + COUNT( * ) ) * - 4 AS col1 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-139
SELECT ALL ( + COUNT ( * ) ) * - 4 AS col1 FROM tab1
----
-12

query II rowsort
SELECT DISTINCT + col0 AS col1, - 90 FROM tab1
----
51
-90
85
-90
91
-90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( 59 - col1, 43 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-142
SELECT ALL - CAST( + - MAX( - 99 ) AS SIGNED ) AS col2, - 92 FROM tab2 cor0
----
-99
-92

skipif mysql # not compatible
query II rowsort label-142
SELECT ALL - CAST ( + - MAX ( - 99 ) AS INTEGER ) AS col2, - 92 FROM tab2 cor0
----
-99
-92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-144
SELECT + SUM( 12 ) FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-144
SELECT + SUM ( 12 ) FROM tab1 AS cor0
----
36

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-148
SELECT - COUNT ( ALL - col0 ) AS col0 FROM tab2 cor0 WHERE NOT + col2 > - + col0 + + CAST ( NULL AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT - 76 / + MAX( ALL + - col2 ) AS col2 FROM tab0 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-149
SELECT - 76 / + MAX ( ALL + - col2 ) AS col2 FROM tab0 WHERE NOT NULL < NULL
----
NULL

query I rowsort
SELECT 68 + + 74 FROM tab1
----
142
142
142

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-151
SELECT ALL CAST( NULL AS SIGNED ) * - + COUNT( * ) * - COUNT( * ) + + 67 + + + 84 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-151
SELECT ALL CAST ( NULL AS INTEGER ) * - + COUNT ( * ) * - COUNT ( * ) + + 67 + + + 84 col0 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col1 = - - 71
----

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

query I rowsort
SELECT 42 * + col1 * + col2 AS col0 FROM tab2 cor0
----
129360
163212
49266

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 35 col0, 3 col1 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
-35
3

query I rowsort
SELECT ALL - - ( col2 ) FROM tab2 cor0
----
23
40
58

query II rowsort
SELECT DISTINCT - col0 AS col2, - col1 + - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
-74
-64
-117
-75
-125

query I rowsort
SELECT DISTINCT - - 55 - + col0 FROM tab0 cor0
----
-32
-42
40

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

query I rowsort
SELECT + col1 + + 70 AS col2 FROM tab0 AS cor0
----
151
71
91

onlyif mysql # aggregate syntax: 
query I rowsort label-162
SELECT ALL - SUM( ALL + 4 ) - + + ( 60 ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-162
SELECT ALL - SUM ( ALL + 4 ) - + + ( 60 ) FROM tab2 AS cor0
----
-72

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( 84 ) NOT BETWEEN 81 AND NULL
----

query II rowsort
SELECT ALL + + col2, 21 FROM tab1 AS cor0
----
59
21
68
21
96
21

query II rowsort
SELECT - 17 * + + col1 * + + col0, - 72 AS col2 FROM tab2 AS cor0
----
-39882
-72
-83776
-72
-85425
-72

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT ALL + COUNT( * ) AS col1 FROM tab2 WHERE col2 * + col2 + - 2 + + 40 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-168
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 WHERE col2 * + col2 + - 2 + + 40 IS NULL
----
0

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

query I rowsort
SELECT DISTINCT col2 + - - 62 + + ( + col1 ) FROM tab1
----
126
172
177

onlyif mysql # aggregate syntax: 
query II rowsort label-171
SELECT + + AVG ( ALL - ( col1 ) ) AS col0, ( COUNT( * ) ) FROM tab1 WHERE NOT NULL = + + col2 * - - col1 - 26 + - 25 * - 93 + - - col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-171
SELECT + + AVG ( ALL - ( col1 ) ) AS col0, ( COUNT ( * ) ) FROM tab1 WHERE NOT NULL = + + col2 * - - col1 - 26 + - 25 * - 93 + - - col2
----
NULL
0

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

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-179
SELECT DISTINCT 3 + + col2 AS col2, - 69 DIV - 17 AS col2 FROM tab0 AS cor0
----
102
4
13
4
50
4

skipif mysql # not compatible
query II rowsort label-179
SELECT DISTINCT 3 + + col2 AS col2, - 69 / - 17 AS col2 FROM tab0 AS cor0
----
102
4
13
4
50
4

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

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

query I rowsort
SELECT ALL - 13 * - + 50 FROM tab2 AS cor0
----
650
650
650

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

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

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

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

query I rowsort
SELECT DISTINCT col0 + - 69 FROM tab0
----
-54
18
28

query I rowsort
SELECT DISTINCT col1 * 84 + - col1 FROM tab2
----
4233
5561
6391

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

skipif mysql # not compatible
query I rowsort label-186
SELECT DISTINCT + MAX ( ( col1 ) ) FROM tab1
----
47

query I rowsort
SELECT + col0 * + col0 * - col1 + - 50 + 22 FROM tab1
----
-36153
-36442
-389235

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + ( col2 ) + + ( + 5 ) col2 FROM tab0 AS cor0
----
102
201
67

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-191
SELECT DISTINCT - CAST( + - COUNT( - col1 ) AS SIGNED ) - 35 * + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-191
SELECT DISTINCT - CAST ( + - COUNT ( - col1 ) AS INTEGER ) - 35 * + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-192
SELECT COUNT( * ) * MAX( ALL 30 ) AS col1 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-192
SELECT COUNT ( * ) * MAX ( ALL 30 ) AS col1 FROM tab1 AS cor0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-193
SELECT + col1 DIV - 32 AS col2 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-193
SELECT + col1 / - 32 AS col2 FROM tab0
----
-2
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-195
SELECT ALL SUM( - 72 ) AS col2 FROM tab2
----
-216

skipif mysql # not compatible
query I rowsort label-195
SELECT ALL SUM ( - 72 ) AS col2 FROM tab2
----
-216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-196
SELECT CAST( NULL AS SIGNED ) * + 76 * 40 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-196
SELECT CAST ( NULL AS INTEGER ) * + 76 * 40 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 66 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-198
SELECT + 40 DIV + col2 - - 58 FROM tab2 AS cor0
----
58
59
59

skipif mysql # not compatible
query I rowsort label-198
SELECT + 40 / + col2 - - 58 FROM tab2 AS cor0
----
58
59
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-199
SELECT col1 / CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-199
SELECT col1 / CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT - col0 IS NOT NULL
----

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

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

query II rowsort
SELECT ALL col1, 48 AS col1 FROM tab0 AS cor0
----
1
48
21
48
81
48

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 <= NULL
----

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

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

query I rowsort
SELECT DISTINCT - col0 + 51 + - col0 FROM tab0 AS cor0
----
-123
-143
21

query I rowsort
SELECT DISTINCT - 47 * 47 * + + col0 + + 18 FROM tab2 AS cor0
----
-101596
-141358
-165657

query I rowsort
SELECT ALL + col2 + - + col0 * + col0 + + + 14 FROM tab2
----
-2079
-4042
-5553

query I rowsort
SELECT col2 * - 60 * - col2 + - + 53 FROM tab0
----
132487
588007
5947

query II rowsort
SELECT col2 + - col0 AS col0, + 17 + + - col0 AS col1 FROM tab2
----
-17
-58
-23
-29
-24
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 84 + 58 - 42 col2 FROM tab1
----
100

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= ( - 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT DISTINCT - - COUNT( * ) * + 96 + + 37 AS col1 FROM tab0 AS cor0
----
325

skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT - - COUNT ( * ) * + 96 + + 37 AS col1 FROM tab0 AS cor0
----
325

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 11 IN ( ( col2 ) * - - col2 + - 9 * - 98 * - + col1, col1 )
----

query I rowsort
SELECT - col1 * + ( - - 99 ) FROM tab0 AS cor0
----
-2079
-8019
-99

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

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

query I rowsort
SELECT ALL 73 + - - 74 - 21 + col0 + + 4 + + 80 + - col2 * 49 - - col0 AS col2 FROM tab2
----
-1622
-2482
-825

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

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

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

query II rowsort
SELECT col0 + - - col1 * + - col2, col1 FROM tab0 AS cor0
----
-123
21
-2
1
-3792
81

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT ALL - MAX( ALL 6 ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL - MAX ( ALL 6 ) AS col1 FROM tab1 AS cor0
----
-6

query II rowsort
SELECT col1, 44 FROM tab0 AS cor0
----
1
44
21
44
81
44

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

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

query I rowsort
SELECT - col0 * + 59 FROM tab1 cor0
----
-3009
-5015
-5369

onlyif mysql # DIV for integer division: 
query I rowsort label-223
SELECT DISTINCT 69 DIV - col1 FROM tab1 AS cor0
----
-1
-13
-4

skipif mysql # not compatible
query I rowsort label-223
SELECT DISTINCT 69 / - col1 FROM tab1 AS cor0
----
-1
-13
-4

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT + col1 / + col2 = col1
----
-59
-68
-96

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

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

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

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

query I rowsort
SELECT + 38 * + ( - - col1 ) AS col0 FROM tab0
----
3078
38
798

query II rowsort
SELECT DISTINCT + 57 * + col0 AS col0, + col2 * - + col0 FROM tab1
----
2907
-4896
4845
-5015
5187
-6188

query III rowsort
SELECT * FROM tab2 WHERE NOT - 64 = - 1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 37 AS col0 FROM tab1 AS cor0
----
-37

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 68 / + 67 * - col2 IS NULL )
----

query I rowsort
SELECT 33 AS col2 FROM tab0 cor0
----
33
33
33

query I rowsort
SELECT col2 + + ( ( + - 70 ) ) AS col0 FROM tab0
----
-23
-60
29

query I rowsort
SELECT ALL 83 * + col1 * - + col1 * 88 FROM tab1 AS cor0
----
-1431584
-16134536
-182600

query I rowsort
SELECT ALL + col0 * - - col2 * - + col0 AS col0 FROM tab1 AS cor0
----
-249696
-426275
-563108

query I rowsort
SELECT + col2 * + - 62 * - col0 + + 26 + + col2 * - + col1 AS col1 FROM tab0 AS cor0
----
39929
53756
595313

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) = - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-240
SELECT ALL CAST( NULL AS SIGNED ) * + 4 + + COUNT( * ) FROM tab2 AS cor0 WHERE col1 * - 69 * + col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-240
SELECT ALL CAST ( NULL AS INTEGER ) * + 4 + + COUNT ( * ) FROM tab2 AS cor0 WHERE col1 * - 69 * + col0 < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT ALL + + ( - MAX( DISTINCT - + 37 ) ) * + 2 FROM tab2 cor0
----
74

skipif mysql # not compatible
query I rowsort label-241
SELECT ALL + + ( - MAX ( DISTINCT - + 37 ) ) * + 2 FROM tab2 cor0
----
74

query II rowsort
SELECT - 38, col2 FROM tab0
----
-38
10
-38
47
-38
99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-244
SELECT DISTINCT * FROM tab2 WHERE col0 - + - col1 < - CAST( + - col0 AS SIGNED ) + - + 62 / - - col1
----

skipif mysql # not compatible
query III rowsort label-244
SELECT DISTINCT * FROM tab2 WHERE col0 - + - col1 < - CAST ( + - col0 AS INTEGER ) + - + 62 / - - col1
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - - 95 col0 FROM tab0
----
1425
8265
9215

query I rowsort
SELECT DISTINCT 65 + col0 FROM tab0
----
152
162
80

query I rowsort
SELECT DISTINCT col1 * - - col0 * col0 FROM tab2
----
107916
315392
376875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-250
SELECT DISTINCT - 79 DIV + COUNT( * ) col1 FROM tab0 cor0
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-250
SELECT DISTINCT - 79 / + COUNT ( * ) col1 FROM tab0 cor0
----
-26

query III rowsort
SELECT * FROM tab0 WHERE 25 <= + 49
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 45 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT - - col0 * - + 96 * 42 - - col0 IS NULL
----
-10
-47
-99

query I rowsort
SELECT - 70 - + + col1 AS col0 FROM tab2
----
-121
-137
-147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-255
SELECT DISTINCT + 63 * + - COUNT( * ), + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-189
NULL

skipif mysql # not compatible
query II rowsort label-255
SELECT DISTINCT + 63 * + - COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-189
NULL

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

query I rowsort
SELECT ALL col0 * ( 89 ) + 41 AS col1 FROM tab0 cor0
----
1376
7784
8674

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

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

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

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

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

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

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

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

query II rowsort
SELECT ALL + 77, col2 FROM tab2
----
77
23
77
40
77
58

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-266
SELECT col1 DIV + CAST( - - 82 AS SIGNED ) * 60 * col1 + 5 AS col1 FROM tab0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-266
SELECT col1 / + CAST ( - - 82 AS INTEGER ) * 60 * col1 + 5 AS col1 FROM tab0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT DISTINCT COUNT( - - 65 ) * - COUNT( * ) * 92 AS col0 FROM tab1
----
-828

skipif mysql # not compatible
query I rowsort label-267
SELECT DISTINCT COUNT ( - - 65 ) * - COUNT ( * ) * 92 AS col0 FROM tab1
----
-828

query III rowsort
SELECT * FROM tab2 WHERE NOT 78 < + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-270
SELECT ALL - AVG ( DISTINCT + CAST( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-270
SELECT ALL - AVG ( DISTINCT + CAST ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab2
----
NULL

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT + COUNT( * ) - - COUNT( 38 ) + + 67 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
85

skipif mysql # not compatible
query I rowsort label-274
SELECT + COUNT ( * ) - - COUNT ( 38 ) + + 67 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NOT NULL
----
85

query I rowsort
SELECT DISTINCT + 85 * + - 94 * - + 58 * + + col2 FROM tab1
----
27341780
31512560
44488320

onlyif mysql # DIV for integer division: 
query I rowsort label-276
SELECT DISTINCT col0 DIV - col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-276
SELECT DISTINCT col0 / - col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + ( 95 ) col0 FROM tab0 AS cor0
----
105
142
194

query I rowsort
SELECT + + col0 + + + 0 AS col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT - ( + 28 ) FROM tab0 AS cor0
----
-28

query I rowsort
SELECT ALL + 2 + - col2 + col1 * - 43 AS col2 FROM tab2 AS cor0
----
-2214
-2937
-3349

query I rowsort
SELECT DISTINCT 83 * + ( + 83 ) + 98 + 65 * + 41 FROM tab1
----
9652

onlyif mysql # DIV for integer division: 
query I rowsort label-282
SELECT DISTINCT + 13 DIV col2 + - col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-282
SELECT DISTINCT + 13 / col2 + - col0 FROM tab1
----
-51
-85
-91

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 - col0 col0 FROM tab0
----
-25
-35
47

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

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

query I rowsort
SELECT DISTINCT 29 + col0 * - - col0 AS col2 FROM tab2
----
2145
4125
5654

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

onlyif mysql # aggregate syntax: 
query I rowsort label-288
SELECT ALL + - MAX( DISTINCT 16 ) FROM tab0 cor0
----
-16

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL + - MAX ( DISTINCT 16 ) FROM tab0 cor0
----
-16

query II rowsort
SELECT ALL ( 11 ) AS col0, + col1 AS col0 FROM tab0 cor0 WHERE NOT ( - col0 ) IS NULL
----
11
1
11
21
11
81

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

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

query I rowsort
SELECT DISTINCT - 29 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT DISTINCT SUM( ALL + 19 ) AS col2 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-292
SELECT DISTINCT SUM ( ALL + 19 ) AS col2 FROM tab2
----
57

query I rowsort
SELECT + + ( + - col1 ) FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT - + ( - - col1 ) * col0 * + + ( - col1 ) * + 10 - + col0 FROM tab1 AS cor0
----
2010099
21165
99909

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-296
SELECT DISTINCT MIN( CAST( 35 AS SIGNED ) ) FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-296
SELECT DISTINCT MIN ( CAST ( 35 AS INTEGER ) ) FROM tab0 AS cor0
----
35

query I rowsort
SELECT - col1 * - col0 * + col0 FROM tab1 AS cor0
----
36125
36414
389207

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT - SUM( DISTINCT 37 ) FROM tab2 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-298
SELECT - SUM ( DISTINCT 37 ) FROM tab2 AS cor0
----
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 65 + + 28, col0 col0 FROM tab0 WHERE NOT col2 BETWEEN - 32 AND + col0
----
-37
15
-37
97

query I rowsort
SELECT 64 * + + col1 AS col1 FROM tab0
----
1344
5184
64

query I rowsort
SELECT DISTINCT - 89 * + - col1 * 64 * + 30 * col1 FROM tab0
----
1121143680
170880
75358080

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-302
SELECT DISTINCT 20 / CAST( NULL AS SIGNED ), COUNT( * ) AS col2 FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-302
SELECT DISTINCT 20 / CAST ( NULL AS INTEGER ), COUNT ( * ) AS col2 FROM tab1
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-303
SELECT DISTINCT CAST( - ( 5 ) AS SIGNED ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-303
SELECT DISTINCT CAST ( - ( 5 ) AS INTEGER ) AS col2 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-304
SELECT ALL COUNT( ALL 66 ) FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-304
SELECT ALL COUNT ( ALL 66 ) FROM tab0, tab1 AS cor0
----
9

query I rowsort
SELECT - + ( - 6 ) FROM tab0 AS cor0
----
6
6
6

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * col0 = NULL
----

query II rowsort
SELECT ALL col0 + + col1 AS col2, 83 AS col1 FROM tab2 AS cor0
----
141
83
142
83
97
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 col2 FROM tab0 WHERE NULL >= + col1
----

query I rowsort
SELECT + 27 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

query I rowsort
SELECT + ( 35 ) FROM tab0
----
35
35
35

onlyif mysql # aggregate syntax: 
query II rowsort label-312
SELECT COUNT( * ), 65 + 29 col0 FROM tab1
----
3
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-312
SELECT COUNT ( * ), 65 + 29 col0 FROM tab1
----
3
94

query I rowsort
SELECT ALL 53 + + col2 AS col1 FROM tab1 AS cor0
----
112
121
149

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

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

query II rowsort
SELECT - - ( ( - - 40 ) ), col2 AS col0 FROM tab1 AS cor0
----
40
59
40
68
40
96

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

skipif mysql # not compatible
query I rowsort label-316
SELECT DISTINCT - - MIN ( DISTINCT + col2 ) FROM tab1 AS cor0
----
59

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-319
SELECT - 58 + + CAST( 5 AS SIGNED ) AS col1 FROM tab2
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-319
SELECT - 58 + + CAST ( 5 AS INTEGER ) AS col1 FROM tab2
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 71 col1 FROM tab1
----
130
139
167

query I rowsort
SELECT col2 * + - 65 + + col2 AS col1 FROM tab2
----
-1472
-2560
-3712

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + - 92 col2, + col0 * - col0 FROM tab0
----
-5
-7569
-77
-225
5
-9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-323
SELECT ALL CAST( + 26 AS SIGNED ) + + - COUNT( + CAST( NULL AS SIGNED ) ) AS col0, 36 * - 89 FROM tab0
----
26
-3204

skipif mysql # not compatible
query II rowsort label-323
SELECT ALL CAST ( + 26 AS INTEGER ) + + - COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0, 36 * - 89 FROM tab0
----
26
-3204

query I rowsort
SELECT 68 + - - col0 + col0 AS col0 FROM tab0
----
242
262
98

query I rowsort
SELECT 99 * 10 * col1 + - 72 FROM tab2
----
50418
66258
76158

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT DISTINCT - 98 - COUNT( * ) FROM tab2 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-326
SELECT DISTINCT - 98 - COUNT ( * ) FROM tab2 AS cor0
----
-101

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-327
SELECT DISTINCT col2, 18 + CAST( + 48 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-327
SELECT DISTINCT col2, 18 + CAST ( + 48 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

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

query I rowsort
SELECT ALL - ( - 35 ) FROM tab2
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-331
SELECT DISTINCT - MIN( DISTINCT 73 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-73

skipif mysql # not compatible
query I rowsort label-331
SELECT DISTINCT - MIN ( DISTINCT 73 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-73

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

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT ALL - - MIN( DISTINCT - - 63 ) FROM tab1 cor0
----
63

skipif mysql # not compatible
query I rowsort label-333
SELECT ALL - - MIN ( DISTINCT - - 63 ) FROM tab1 cor0
----
63

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 51 < col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 29 * col2 FROM tab2
----
1160
1682
667

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-336
SELECT ALL * FROM tab2 WHERE CAST( NULL AS DECIMAL ) * + 38 / - - 54 < + col1
----

skipif mysql # not compatible
query III rowsort label-336
SELECT ALL * FROM tab2 WHERE CAST ( NULL AS REAL ) * + 38 / - - 54 < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT 33 * 65 * COUNT( * ) FROM tab1
----
6435

skipif mysql # not compatible
query I rowsort label-337
SELECT 33 * 65 * COUNT ( * ) FROM tab1
----
6435

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-338
SELECT DISTINCT + COUNT( * ) DIV - + 20 AS col1, COUNT( * ) col2 FROM tab0
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-338
SELECT DISTINCT + COUNT ( * ) / - + 20 AS col1, COUNT ( * ) col2 FROM tab0
----
0
3

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

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

query I rowsort
SELECT 59 + - 47 AS col2 FROM tab0
----
12
12
12

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

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

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

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE - col2 * col0 > - - 84 * + + col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-344
SELECT DISTINCT - 88 * + col0 FROM tab1 AS cor0 WHERE ( - col2 * + 96 >= + CAST( 13 AS SIGNED ) * - 92 )
----

skipif mysql # not compatible
query I rowsort label-344
SELECT DISTINCT - 88 * + col0 FROM tab1 AS cor0 WHERE ( - col2 * + 96 >= + CAST ( 13 AS INTEGER ) * - 92 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-345
SELECT + 21 + COUNT( ALL col1 ) - 12 DIV - + ( - 11 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-345
SELECT + 21 + COUNT ( ALL col1 ) - 12 / - + ( - 11 ) FROM tab2 cor0
----
23

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-346
SELECT ALL CAST ( NULL AS REAL ) - COUNT ( * ) + + + 85 col0 FROM tab2 AS cor0
----
NULL

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

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

query I rowsort
SELECT ALL - + col1 * + col0 + col0 AS col0 FROM tab0 AS cor0
----
-1200
-1740
0

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT + 77 * - 62 + + col0 >= - 12
----
10
47
99

query I rowsort
SELECT - ( + 32 ) * - - col1 AS col2 FROM tab2 AS cor0
----
-1632
-2144
-2464

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-352
SELECT + CAST( NULL AS SIGNED ) + - + col2 AS col1 FROM tab2 WHERE + 27 / + + col2 + 95 * - col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-352
SELECT + CAST ( NULL AS INTEGER ) + - + col2 AS col1 FROM tab2 WHERE + 27 / + + col2 + 95 * - col0 IS NOT NULL
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-354
SELECT DISTINCT MIN( 52 ) + + 21 AS col2 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-354
SELECT DISTINCT MIN ( 52 ) + + 21 AS col2 FROM tab2
----
73

query I rowsort
SELECT ALL + col2 * - - col1 * + col0 - 63 FROM tab1
----
25012
290773
68481

onlyif mysql # aggregate syntax: 
query I rowsort label-356
SELECT ALL + 44 + + COUNT( DISTINCT col0 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-356
SELECT ALL + 44 + + COUNT ( DISTINCT col0 ) AS col1 FROM tab1
----
47

query II rowsort
SELECT ( + + col1 ) - + - col2 AS col2, col1 * + - col2 FROM tab2
----
117
-3080
125
-3886
74
-1173

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + + col1 * + + 37 - - col0 <> NULL
----

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

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

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

query I rowsort
SELECT ALL - 83 * - col2 * + col1 * 21 FROM tab0 AS cor0
----
172557
366030
6635601

query III rowsort
SELECT * FROM tab1 WHERE + col2 IN ( + ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-364
SELECT - SUM( - col2 ) col2 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-364
SELECT - SUM ( - col2 ) col2 FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT ALL - ( MAX( ALL 28 ) ) AS col0 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-365
SELECT ALL - ( MAX ( ALL 28 ) ) AS col0 FROM tab1
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-366
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * + 71 BETWEEN - CAST( NULL AS SIGNED ) - 21 AND - ( 90 ) + - 9 * - col2
----

skipif mysql # not compatible
query III rowsort label-366
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * + 71 BETWEEN - CAST ( NULL AS INTEGER ) - 21 AND - ( 90 ) + - 9 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT ALL - SUM( DISTINCT + 34 ) AS col2 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-367
SELECT ALL - SUM ( DISTINCT + 34 ) AS col2 FROM tab0
----
-34

query I rowsort
SELECT + 23 FROM tab0 WHERE col1 * col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-369
SELECT MAX( + ( - 94 ) ) FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-369
SELECT MAX ( + ( - 94 ) ) FROM tab2
----
-94

query I rowsort
SELECT DISTINCT + 71 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( col0 )
----

query I rowsort
SELECT ALL col1 * 97 FROM tab2 WHERE NOT 6 >= - col0
----

query I rowsort
SELECT ALL - col0 * 33 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-373
SELECT DISTINCT CAST( NULL AS SIGNED ) - - COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-373
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - COUNT ( * ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-374
SELECT - COUNT( * ) + 50 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-374
SELECT - COUNT ( * ) + 50 FROM tab2
----
47

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 WHERE 66 >= 78
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-376
SELECT + col0 + - 82 AS col1 FROM tab1 WHERE NOT - col2 * - CAST( NULL AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-376
SELECT + col0 + - 82 AS col1 FROM tab1 WHERE NOT - col2 * - CAST ( NULL AS INTEGER ) > NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-378
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - 9 + CAST( 84 + col1 AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-378
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - 9 + CAST ( 84 + col1 AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-379
SELECT DISTINCT + MAX( - col0 ) AS col1 FROM tab1 WHERE col0 IN ( - 0 + - 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-379
SELECT DISTINCT + MAX ( - col0 ) AS col1 FROM tab1 WHERE col0 IN ( - 0 + - 51 )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT COUNT( * ) AS col0 FROM tab0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-381
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT 36 FROM tab0 WHERE 78 * + col0 NOT BETWEEN - 21 * ( col1 ) AND ( col2 + + col2 )
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT MAX( DISTINCT - col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-383
SELECT MAX ( DISTINCT - col0 ) AS col0 FROM tab2
----
-46

query I rowsort
SELECT + ( + col2 ) - col0 * col0 FROM tab0
----
-178
-7559
-9310

query I rowsort
SELECT + col1 - + 42 FROM tab2
----
25
35
9

query I rowsort
SELECT col0 * + 55 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-387
SELECT + 65 DIV col2 + ( - col1 + col2 ) col0 FROM tab2
----
-26
-36
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-387
SELECT + 65 / col2 + ( - col1 + col2 ) col0 FROM tab2
----
-26
-36
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-388
SELECT DISTINCT - CAST( + col0 AS SIGNED ) FROM tab0 WHERE NOT - 27 + - col2 >= col1
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-388
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) FROM tab0 WHERE NOT - 27 + - col2 >= col1
----
-15
-87
-97

query I rowsort
SELECT ALL 24 * 74 FROM tab2 WHERE NOT ( 52 ) > NULL
----

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 = ( col2 * - 9 )
----

query I rowsort
SELECT + 54 + - col0 FROM tab0 AS cor0
----
-33
-43
39

onlyif mysql # aggregate syntax: 
query I rowsort label-393
SELECT COUNT( * ) + 48 AS col1 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-393
SELECT COUNT ( * ) + 48 AS col1 FROM tab1 cor0
----
51

query I rowsort
SELECT DISTINCT - 58 * 24 AS col2 FROM tab0 AS cor0
----
-1392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-395
SELECT ALL COUNT( * ) DIV COUNT( * ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-395
SELECT ALL COUNT ( * ) / COUNT ( * ) FROM tab2 cor0
----
1

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-397
SELECT DISTINCT + MIN( + 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-397
SELECT DISTINCT + MIN ( + col1 ) * - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 ) BETWEEN NULL AND - 38 / + 44
----

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

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

query I rowsort
SELECT - 89 * 73 FROM tab2 AS cor0
----
-6497
-6497
-6497

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

query I rowsort
SELECT 14 FROM tab2 AS cor0 WHERE 69 = ( NULL )
----

query I rowsort
SELECT DISTINCT + 24 * - 99 AS col0 FROM tab1 AS cor0
----
-2376

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT DISTINCT + SUM( ALL col2 ) + 46 FROM tab1
----
269

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT + SUM ( ALL col2 ) + 46 FROM tab1
----
269

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

onlyif mysql # DIV for integer division: 
query I rowsort label-409
SELECT - 80 + + col0 DIV - 21 AS col1 FROM tab0
----
-80
-84
-84

skipif mysql # not compatible
query I rowsort label-409
SELECT - 80 + + col0 / - 21 AS col1 FROM tab0
----
-80
-84
-84

query I rowsort
SELECT 14 * - + 35 * col0 + col0 * 93 FROM tab1
----
-20247
-33745
-36127

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-412
SELECT col2 DIV - 71 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-412
SELECT col2 / - 71 FROM tab0
----
-1
0
0

query I rowsort
SELECT - 78 * - col0 AS col1 FROM tab2
----
3588
4992
5850

query I rowsort
SELECT ALL + 45 * - 36 AS col1 FROM tab2
----
-1620
-1620
-1620

query I rowsort
SELECT DISTINCT - - 35 FROM tab1 cor0
----
35

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 83 IS NULL
----

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

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE + 49 IN ( - 81 * 94 )
----

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

onlyif mysql # DIV for integer division: 
query III rowsort label-421
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) <> + 4 DIV col1 + + col1
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-421
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) <> + 4 / col1 + + col1
----
15
81
47
87
21
10

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-424
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN - CAST( + col2 AS SIGNED ) AND NULL
----
85
5
59
91
47
68

skipif mysql # not compatible
query III rowsort label-424
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN - CAST ( + col2 AS INTEGER ) AND NULL
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT DISTINCT SUM( - col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-227

skipif mysql # not compatible
query I rowsort label-425
SELECT DISTINCT SUM ( - col0 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-227

query I rowsort
SELECT + col1 AS col2 FROM tab0 AS cor0 WHERE NOT - ( 22 ) IS NULL
----
1
21
81

query I rowsort
SELECT ALL - 1 AS col2 FROM tab0 AS cor0 WHERE col1 + + col1 <= + col0 * col1 + - col0
----
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, + col0 * + 97 * - col2 AS col0 FROM tab0 cor0
----
15
-68385
87
-84390
97
-931491

onlyif mysql # DIV for integer division: 
query I rowsort label-429
SELECT DISTINCT - col1 * - 0 DIV + 22 AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-429
SELECT DISTINCT - col1 * - 0 / + 22 AS col2 FROM tab0 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-430
SELECT DISTINCT + CAST( 71 AS SIGNED ) + - col1 + - col1 * + 1 AS col1 FROM tab2 AS cor0
----
-31
-63
-83

skipif mysql # not compatible
query I rowsort label-430
SELECT DISTINCT + CAST ( 71 AS INTEGER ) + - col1 + - col1 * + 1 AS col1 FROM tab2 AS cor0
----
-31
-63
-83

query I rowsort
SELECT 78 + 92 + - 26 AS col1 FROM tab1 AS cor0
----
144
144
144

query I rowsort
SELECT ALL 36 + - col2 AS col2 FROM tab1
----
-23
-32
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT + 5 * + 7 + - - SUM( DISTINCT + 27 ) AS col1 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-433
SELECT + 5 * + 7 + - - SUM ( DISTINCT + 27 ) AS col1 FROM tab2
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT DISTINCT COUNT( DISTINCT - 70 ) + + + COUNT( * ) AS col2 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-434
SELECT DISTINCT COUNT ( DISTINCT - 70 ) + + + COUNT ( * ) AS col2 FROM tab0
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 98 + 79 + - col0 col1 FROM tab2
----
-65
-83
-94

query I rowsort
SELECT DISTINCT + col2 * col1 + 41 FROM tab0
----
140
251
3848

query I rowsort
SELECT - 82 + + col0 FROM tab2
----
-18
-36
-7

query I rowsort
SELECT ALL col1 + + - col2 + - + 63 FROM tab2
----
-26
-35
-54

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 69 NOT IN ( col1 )
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-444
SELECT + col0 DIV - col1 col1, - col2 AS col0 FROM tab0 cor0
----
-4
-10
-97
-99
0
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-444
SELECT + col0 / - col1 col1, - col2 AS col0 FROM tab0 cor0
----
-4
-10
-97
-99
0
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-445
SELECT - MAX( ALL - col1 ) DIV COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-445
SELECT - MAX ( ALL - col1 ) / COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - 55 * + - 16 - + col1 AS col0 FROM tab0 AS cor0
----
799
859
879

query I rowsort
SELECT col1 * + 84 - - col2 FROM tab1
----
1272
4016
479

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT ALL + COUNT( * ) + + - 45 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-448
SELECT ALL + COUNT ( * ) + + - 45 FROM tab0
----
-42

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NULL BETWEEN NULL AND - - col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-451
SELECT DISTINCT COUNT( * ) * + 14 * COUNT( DISTINCT col1 ) col2 FROM tab0 cor0
----
126

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

query I rowsort
SELECT DISTINCT - 88 + col0 FROM tab0 AS cor0 WHERE NOT + col0 * - + 42 * - + col1 IS NULL
----
-1
-73
9

query I rowsort
SELECT - col0 * - + 25 AS col2 FROM tab1 AS cor0
----
1275
2125
2275

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

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

query I rowsort
SELECT ALL - col2 * - col2 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
3481
4624
9216

onlyif mysql # DIV for integer division: 
query I rowsort label-457
SELECT + + col1 DIV 30 * - - col2 + + col1 + - - col1 * - col1 FROM tab1 AS cor0
----
-182
-20
-2094

skipif mysql # not compatible
query I rowsort label-457
SELECT + + col1 / 30 * - - col2 + + col1 + - - col1 * - col1 FROM tab1 AS cor0
----
-182
-20
-2094

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-459
SELECT + COUNT ( * ) / + 57 col1 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT - + 40 AS col0 FROM tab1 cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT + SUM( - 68 ) FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-462
SELECT + SUM ( - 68 ) FROM tab1
----
-204

query I rowsort
SELECT + ( - col2 ) * - - ( - - col2 ) FROM tab2
----
-1600
-3364
-529

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

query I rowsort
SELECT ALL col1 * - - 92 * - col0 AS col0 FROM tab0
----
-111780
-168084
-8924

query I rowsort
SELECT ALL 28 * - + col0 AS col1 FROM tab0
----
-2436
-2716
-420

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT - 53 IS NOT NULL )
----

query I rowsort
SELECT + ( - 17 ) * + col2 AS col2 FROM tab0
----
-1683
-170
-799

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

skipif mysql # not compatible
query I rowsort label-469
SELECT + + MAX ( + ( - col0 ) ) FROM tab0 AS cor0
----
-15

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL BETWEEN 37 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 BETWEEN - 4 / + col1 AND - - col2 AND col2 + - col2 <> NULL
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-474
SELECT ALL + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) col1 FROM tab1 cor0
----
-51
-85
-91

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

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

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

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

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

query I rowsort
SELECT ALL + + col2 + - col1 * - 9 AS col0 FROM tab0 cor0
----
108
199
776

query I rowsort
SELECT 63 FROM tab2 WHERE NULL = 81
----

query I rowsort
SELECT ALL + 84 + 12 AS col2 FROM tab1
----
96
96
96

query III rowsort
SELECT * FROM tab2 WHERE ( - - col2 ) IN ( + col0 + + 62 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col1 * col2 + 41 col1 FROM tab1
----
1399
3284
341

query I rowsort
SELECT DISTINCT 61 * 81 AS col0 FROM tab2
----
4941

query I rowsort
SELECT ( - col2 ) + - col2 + col1 AS col2 FROM tab1
----
-113
-178
-89

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 39 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT DISTINCT - col1 * 3 * - + col1 * + + col0 AS col2 FROM tab2 AS cor0
----
1010025
1138368
358938

onlyif mysql # aggregate syntax: 
query I rowsort label-490
SELECT - MAX( DISTINCT + 26 ) col2 FROM tab1 cor0
----
-26

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

query II rowsort
SELECT - 84 AS col1, + col0 * - col0 * 29 AS col2 FROM tab2
----
-84
-118784
-84
-163125
-84
-61364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 20 col0 FROM tab0
----
-1620
-20
-420

query I rowsort
SELECT ALL col1 * + 9 AS col0 FROM tab0
----
189
729
9

onlyif mysql # DIV for integer division: 
query I rowsort label-494
SELECT - 71 DIV - col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-494
SELECT - 71 / - col0 FROM tab0
----
0
0
4

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

query I rowsort
SELECT 36 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT ALL COUNT( * ) + SUM( + col0 ) * 4 AS col2 FROM tab2 AS cor0
----
743

skipif mysql # not compatible
query I rowsort label-498
SELECT ALL COUNT ( * ) + SUM ( + col0 ) * 4 AS col2 FROM tab2 AS cor0
----
743

onlyif mysql # aggregate syntax: 
query II rowsort label-499
SELECT 35 AS col1, MAX( ALL - col1 ) AS col2 FROM tab0
----
35
-1

skipif mysql # not compatible
query II rowsort label-499
SELECT 35 AS col1, MAX ( ALL - col1 ) AS col2 FROM tab0
----
35
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-500
SELECT CAST( - - 89 AS SIGNED ) FROM tab0
----
89
89
89

skipif mysql # not compatible
query I rowsort label-500
SELECT CAST ( - - 89 AS INTEGER ) FROM tab0
----
89
89
89

query II rowsort
SELECT + col0 * 72, + 95 * + - col1 AS col2 FROM tab0
----
1080
-7695
6264
-1995
6984
-95

query I rowsort
SELECT ALL 5 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-504
SELECT DISTINCT + 67 AS col1, - 12 + COUNT( * ) FROM tab1 AS cor0
----
67
-9

skipif mysql # not compatible
query II rowsort label-504
SELECT DISTINCT + 67 AS col1, - 12 + COUNT ( * ) FROM tab1 AS cor0
----
67
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-505
SELECT 67 DIV - col1 + + col0 * col0 AS col0, - col2 + col2 DIV - col0 + - - 10 AS col0 FROM tab1 AS cor0
----
2597
-87
7212
-49
8280
-58

skipif mysql # not compatible
query II rowsort label-505
SELECT 67 / - col1 + + col0 * col0 AS col0, - col2 + col2 / - col0 + - - 10 AS col0 FROM tab1 AS cor0
----
2597
-87
7212
-49
8280
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 36, ( - - col1 ) col2 FROM tab2 AS cor0
----
-36
51
-36
67
-36
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 41 >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-508
SELECT CAST( - + 93 AS SIGNED ) + + 47 AS col0 FROM tab0 AS cor0
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-508
SELECT CAST ( - + 93 AS INTEGER ) + + 47 AS col0 FROM tab0 AS cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-509
SELECT ALL - 15 DIV + + 62 + + COUNT( * ) + + MIN( ALL - + col1 ) FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-509
SELECT ALL - 15 / + + 62 + + COUNT ( * ) + + MIN ( ALL - + col1 ) FROM tab1 AS cor0
----
-44

query I rowsort
SELECT DISTINCT col0 + - + 58 + - col2 FROM tab0 AS cor0
----
-60
-90
19

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

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

query I rowsort
SELECT DISTINCT - 15 FROM tab1 WHERE NOT col2 * + col0 + + col2 BETWEEN + col2 + col1 AND ( NULL )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-514
SELECT CAST( + 51 AS SIGNED ) + + + ( - col2 ) FROM tab1
----
-17
-45
-8

skipif mysql # not compatible
query I rowsort label-514
SELECT CAST ( + 51 AS INTEGER ) + + + ( - col2 ) FROM tab1
----
-17
-45
-8

query I rowsort
SELECT ALL col2 + - + 44 FROM tab2
----
-21
-4
14

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

query I rowsort
SELECT ALL col2 - + + 61 FROM tab0
----
-14
-51
38

query II rowsort
SELECT col0 - - - 86 AS col1, - 57 FROM tab0 AS cor0
----
-71
-57
1
-57
11
-57

query I rowsort
SELECT DISTINCT col0 + + ( + - col1 ) FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT DISTINCT + - col1 * 62 FROM tab2 cor0
----
-3162
-4154
-4774

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

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT ALL + COUNT( * ) FROM tab2 cor0 WHERE col0 * - col2 NOT BETWEEN + col2 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-522
SELECT ALL + COUNT ( * ) FROM tab2 cor0 WHERE col0 * - col2 NOT BETWEEN + col2 AND NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-523
SELECT - col0 AS col0, + col2 * CAST( 84 AS SIGNED ) FROM tab2 cor0
----
-46
1932
-64
3360
-75
4872

skipif mysql # not compatible
query II rowsort label-523
SELECT - col0 AS col0, + col2 * CAST ( 84 AS INTEGER ) FROM tab2 cor0
----
-46
1932
-64
3360
-75
4872

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-525
SELECT DISTINCT MIN ( ALL - col2 ) col1 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-526
SELECT ALL 87 * - COUNT( * ) * MIN( + - col2 ) FROM tab2 AS cor0
----
15138

skipif mysql # not compatible
query I rowsort label-526
SELECT ALL 87 * - COUNT ( * ) * MIN ( + - col2 ) FROM tab2 AS cor0
----
15138

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = - 26 * ( 24 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-528
SELECT 27 AS col0, MIN( + col0 ) FROM tab1 AS cor0
----
27
51

skipif mysql # not compatible
query II rowsort label-528
SELECT 27 AS col0, MIN ( + col0 ) FROM tab1 AS cor0
----
27
51

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-531
SELECT ALL + ( - + ( - col0 ) ) * + - col2 + + + CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
-1035
-2520
-4292

skipif mysql # not compatible
query I rowsort label-531
SELECT ALL + ( - + ( - col0 ) ) * + - col2 + + + CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
-1035
-2520
-4292

query I rowsort
SELECT col1 * + - ( - col0 ) FROM tab1
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-533
SELECT ALL - col1 DIV 74 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL - col1 / 74 AS col2 FROM tab0
----
-1
0
0

query I rowsort
SELECT col1 * - - 49 * + + col1 AS col2 FROM tab2
----
127449
219961
290521

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

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

query I rowsort
SELECT col2 * - 42 - col1 AS col1 FROM tab2 AS cor0
----
-1017
-1757
-2503

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

query I rowsort
SELECT DISTINCT + col0 + - 55 FROM tab1
----
-4
30
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-539
SELECT DISTINCT - + 19 AS col0, COUNT( * ) DIV - ( 27 ) FROM tab0 AS cor0
----
-19
0

skipif mysql # not compatible
query II rowsort label-539
SELECT DISTINCT - + 19 AS col0, COUNT ( * ) / - ( 27 ) FROM tab0 AS cor0
----
-19
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-540
SELECT + 93 * + CAST( NULL AS DECIMAL ) + ( + 31 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-540
SELECT + 93 * + CAST ( NULL AS REAL ) + ( + 31 ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * + - 43 AS col0 FROM tab0 AS cor0
----
-3483
-43
-903

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT COUNT( * ) - - 45 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-545
SELECT COUNT ( * ) - - 45 FROM tab1
----
48

query II rowsort
SELECT ALL + col1 + - - col2 - ( + col0 ) * - col1 * + + col1 AS col2, - 46 FROM tab0
----
197
-46
38398
-46
98543
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-547
SELECT col0 + + CAST( col1 AS SIGNED ) FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-547
SELECT col0 + + CAST ( col1 AS INTEGER ) FROM tab1
----
138
65
90

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

query I rowsort
SELECT ( col1 ) + + 7 FROM tab2
----
58
74
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-550
SELECT + CAST( 64 AS SIGNED ) + - + 32 + - 72 AS col2 FROM tab1
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-550
SELECT + CAST ( 64 AS INTEGER ) + - + 32 + - 72 AS col2 FROM tab1
----
-40
-40
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-551
SELECT 68 DIV - + ( + COUNT( * ) ) + + COUNT( * ) FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-551
SELECT 68 / - + ( + COUNT ( * ) ) + + COUNT ( * ) FROM tab1
----
-19

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

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

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

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

query I rowsort
SELECT 79 * + col0 + ( - ( col0 ) ) + - 71 + - col1 AS col2 FROM tab1 AS cor0
----
3893
6554
6980

query I rowsort
SELECT - 35 + + 0 FROM tab2 AS cor0
----
-35
-35
-35

query I rowsort
SELECT - 39 + - + 17 * + - 53 FROM tab1 AS cor0
----
862
862
862

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-558
SELECT ALL - + 64 - + CAST( col2 AS SIGNED ) col2 FROM tab0 AS cor0
----
-111
-163
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-558
SELECT ALL - + 64 - + CAST ( col2 AS INTEGER ) col2 FROM tab0 AS cor0
----
-111
-163
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-559
SELECT 28 DIV SUM( ALL + 7 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-559
SELECT 28 / SUM ( ALL + 7 ) AS col1 FROM tab1 AS cor0
----
1

query II rowsort
SELECT - 58 * - + col1 AS col1, + col0 AS col0 FROM tab0
----
1218
87
4698
15
58
97

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 35 NOT IN ( - ( + + col1 ), + col0, - 48 )
----

query I rowsort
SELECT DISTINCT + - col1 * 39 AS col0 FROM tab1 AS cor0
----
-1833
-195
-546

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col0, + col1 * + col1 col2 FROM tab1
----
14
196
47
2209
5
25

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT DISTINCT + MAX( col0 ) * - + SUM( col0 ) AS col0 FROM tab1 AS cor0
----
-20657

skipif mysql # not compatible
query I rowsort label-567
SELECT DISTINCT + MAX ( col0 ) * - + SUM ( col0 ) AS col0 FROM tab1 AS cor0
----
-20657

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

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

query I rowsort
SELECT ALL + + 71 + + - 35 * + 71 FROM tab0 AS cor0 WHERE col0 * - 15 <> col1
----
-2414
-2414
-2414

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

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT DISTINCT 78 + MAX( ALL - col2 ) AS col1 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-571
SELECT DISTINCT 78 + MAX ( ALL - col2 ) AS col1 FROM tab2
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-572
SELECT + COUNT( * ) AS col0, - 76 FROM tab1 cor0 WHERE 73 < - 91
----
0
-76

skipif mysql # not compatible
query II rowsort label-572
SELECT + COUNT ( * ) AS col0, - 76 FROM tab1 cor0 WHERE 73 < - 91
----
0
-76

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-574
SELECT ALL + ( - col2 ) * - + CAST( + + ( + 44 ) AS SIGNED ) AS col1, + 89 * - col1 FROM tab0 AS cor0
----
2068
-7209
4356
-89
440
-1869

skipif mysql # not compatible
query II rowsort label-574
SELECT ALL + ( - col2 ) * - + CAST ( + + ( + 44 ) AS INTEGER ) AS col1, + 89 * - col1 FROM tab0 AS cor0
----
2068
-7209
4356
-89
440
-1869

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

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

query I rowsort
SELECT 15 + + col1 FROM tab0 AS cor0
----
16
36
96

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-579
SELECT ALL + COUNT( 8 ) DIV 3 AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-579
SELECT ALL + COUNT ( 8 ) / 3 AS col2 FROM tab1 AS cor0
----
1

query II rowsort
SELECT DISTINCT + + col2 + 26 AS col0, ( - 90 ) * - + 5 AS col0 FROM tab0 AS cor0
----
125
450
36
450
73
450

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( 98 NOT IN ( col1 * col0, + ( + + 0 ) * - col2 + - + 67 ) )
----

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

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

query I rowsort
SELECT ALL 92 / - + col2 FROM tab0 WHERE NULL <= + col1
----

query I rowsort
SELECT DISTINCT col1 * + col1 AS col0 FROM tab0 WHERE - col0 NOT BETWEEN + col1 - + col2 AND + col0 * - + col0
----
1
441
6561

query I rowsort
SELECT DISTINCT + col2 - - col0 + + col1 * + ( - col1 ) AS col1 FROM tab2
----
-2532
-4356
-5825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-586
SELECT DISTINCT CAST( NULL AS SIGNED ) / CAST( NULL AS SIGNED ) FROM tab1
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-587
SELECT - - col0 - + col1 DIV - 44 + - col0 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-587
SELECT - - col0 - + col1 / - 44 + - col0 FROM tab2 cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-588
SELECT ALL + col1 DIV - 34 AS col1 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-588
SELECT ALL + col1 / - 34 AS col1 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT 34 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-589
SELECT 34 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-590
SELECT - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 59 col0, 63 * 26 AS col1 FROM tab1 AS cor0
----
59
1638
59
1638
59
1638

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

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

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

query I rowsort
SELECT ALL + - 61 * - col0 * - + col0 * - - 45 FROM tab2 cor0
----
-11243520
-15440625
-5808420

query III rowsort
SELECT * FROM tab0 WHERE NOT - 48 * + 29 * col0 + - 55 <= NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 62 = col0 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 * - 57 col0 FROM tab2
----
-456
-456
-456

query II rowsort
SELECT - col0 * col0, + col1 FROM tab2 cor0
----
-2116
51
-4096
77
-5625
67

query I rowsort
SELECT 90 * col2 + + col1 FROM tab0 AS cor0
----
4311
8911
921

query II rowsort
SELECT ALL col0 + + + col1 + col1 AS col2, + 51 * + + 70 AS col0 FROM tab2 cor0
----
148
3570
209
3570
218
3570

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-604
SELECT - + CAST( NULL AS SIGNED ), + 76 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 0ec3a5cb631937a9dddca94a367fff89

skipif mysql # not compatible
query II rowsort label-604
SELECT - + CAST ( NULL AS INTEGER ), + 76 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to 0ec3a5cb631937a9dddca94a367fff89

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-606
SELECT ALL + CAST( - col0 AS SIGNED ) + + - 3 col0 FROM tab2
----
-49
-67
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-606
SELECT ALL + CAST ( - col0 AS INTEGER ) + + - 3 col0 FROM tab2
----
-49
-67
-78

query I rowsort
SELECT DISTINCT + 47 - - - 96 FROM tab1
----
-49

query I rowsort
SELECT - 45 + - col1 FROM tab2
----
-112
-122
-96

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

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

query I rowsort
SELECT DISTINCT col1 + + col2 + 9 FROM tab1
----
119
124
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-611
SELECT + CAST( - ( - 41 ) AS SIGNED ) * + col0 FROM tab0 WHERE NULL >= col0 * + col0 * + + 53 * + - 16 * - - col2
----

skipif mysql # not compatible
query I rowsort label-611
SELECT + CAST ( - ( - 41 ) AS INTEGER ) * + col0 FROM tab0 WHERE NULL >= col0 * + col0 * + + 53 * + - 16 * - - col2
----

query I rowsort
SELECT DISTINCT - col0 * 56 FROM tab1
----
-2856
-4760
-5096

query II rowsort
SELECT ALL + 50 * 77 AS col1, + col0 + - + col2 AS col1 FROM tab0 AS cor0
----
3850
-2
3850
-32
3850
77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-614
SELECT DISTINCT + CAST( CAST( - col1 AS DECIMAL ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-614
SELECT DISTINCT + CAST ( CAST ( - col1 AS REAL ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT col1 * + 70 AS col0 FROM tab2
----
3570
4690
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT - SUM( - 80 ) AS col0 FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-616
SELECT - SUM ( - 80 ) AS col0 FROM tab1
----
240

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

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

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

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

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

query I rowsort
SELECT + 7 AS col0 FROM tab2 WHERE NOT 20 < + ( + + col2 ) * - + 88
----
7
7
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-621
SELECT ALL MIN( ALL col0 ) + - CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL MIN ( ALL col0 ) + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
43

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT col0 * - 86 <= 26
----

query I rowsort
SELECT 8 + 97 AS col1 FROM tab0
----
105
105
105

query I rowsort
SELECT + 18 + - col1 FROM tab2
----
-33
-49
-59

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

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

query II rowsort
SELECT ALL - 57, col0 * + - 98 AS col0 FROM tab1
----
-57
-4998
-57
-8330
-57
-8918

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-627
SELECT DISTINCT - ( - + col0 ) col2, - col0 * 39 + + 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-627
SELECT DISTINCT - ( - + col0 ) col2, - col0 * 39 + + CAST ( NULL AS INTEGER ) + col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT - 85 + + col2 FROM tab2
----
-27
-45
-62

query I rowsort
SELECT - col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND + + col0
----

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

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

skipif mysql # not compatible
query I rowsort label-631
SELECT ALL MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-632
SELECT DISTINCT - COUNT ( * ) + - ( - 25 ) col1 FROM tab2 AS cor0
----
22

query II rowsort
SELECT - + col2, col1 FROM tab0 cor0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT - col1 * + 18 + 69 AS col1 FROM tab2
----
-1137
-1317
-849

onlyif mysql # DIV for integer division: 
query I rowsort label-635
SELECT ALL - col1 DIV + col1 - - col1 FROM tab0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-635
SELECT ALL - col1 / + col1 - - col1 FROM tab0
----
0
20
80

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) NOT IN ( + + col1 / - + ( + col2 ) + - col0, col2, - col2, 35 / - 38, + col1, - - col0, + col2 )
----

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

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

query I rowsort
SELECT DISTINCT 28 * - 62 + 37 - + 85 AS col0 FROM tab2 AS cor0
----
-1784

query I rowsort
SELECT ALL + 73 - - 37 AS col1 FROM tab2 AS cor0
----
110
110
110

query I rowsort
SELECT + + col2 * - col0 + 73 AS col0 FROM tab1 AS cor0
----
-4823
-4942
-6115

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

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NOT + + col1 + + + col0 NOT BETWEEN + - col2 AND - - col0 * + + col2 + col0
----
46
64
75

query I rowsort
SELECT + ( 49 ) AS col2 FROM tab0
----
49
49
49

query I rowsort
SELECT DISTINCT + col1 * 98 FROM tab0
----
2058
7938
98

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 / col0 <= - col2 + + + col2 - - 82
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT MAX( 95 ) AS col2 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-647
SELECT MAX ( 95 ) AS col2 FROM tab0
----
95

query I rowsort
SELECT DISTINCT + + col2 * 8 FROM tab1 AS cor0
----
472
544
768

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

query II rowsort
SELECT ALL col2 AS col2, col1 AS col2 FROM tab0 AS cor0
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT - 57 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-651
SELECT - 57 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-171

query I rowsort
SELECT col1 * 66 AS col0 FROM tab1 cor0
----
3102
330
924

query I rowsort
SELECT DISTINCT 77 * + col1 AS col0 FROM tab2
----
3927
5159
5929

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 < + 39
----
87
21
10

query I rowsort
SELECT - col2 * + 42 * + + col1 FROM tab0 AS cor0
----
-159894
-4158
-8820

query I rowsort
SELECT + + ( 67 ) FROM tab0 AS cor0
----
67
67
67

query I rowsort
SELECT ALL - 86 * 55 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND - ( col0 ) + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - ( - col0 ) col0 FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT DISTINCT col0 + - - col0, col2 FROM tab0 WHERE ( col1 ) IS NOT NULL
----
174
10
194
99
30
47

query I rowsort
SELECT - ( - - 72 ) FROM tab2
----
-72
-72
-72

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

query I rowsort
SELECT + 17 + + - col0 * 96 FROM tab0
----
-1423
-8335
-9295

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + AVG ( DISTINCT + ( col1 ) ) col2 FROM tab0 WHERE NULL IN ( col2 * 29 - + col1, + col0, - 85 + - - col0 + + - col2 )
----
NULL

query I rowsort
SELECT - col1 + + col0 * col1 FROM tab1 AS cor0
----
420
4230
700

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 60 * - col1 + - 87 + col0 * - col2, col2 * + col0 col2 FROM tab0 AS cor0
----
-9630
9603
303
870
4068
705

query I rowsort
SELECT - 74 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-672
SELECT MIN( + CAST( - col1 AS SIGNED ) ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-672
SELECT MIN ( + CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab0
----
-81

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

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

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

query I rowsort
SELECT ALL 0 - - 34 AS col1 FROM tab0 AS cor0
----
34
34
34

query II rowsort
SELECT ALL col0, col0 + + col0 FROM tab2 cor0
----
46
92
64
128
75
150

query II rowsort
SELECT DISTINCT - col0 - + col1 AS col2, col0 * - 98 * - col0 AS col2 FROM tab2 cor0
----
-141
401408
-142
551250
-97
207368

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT + 22 * + 97 * - COUNT( * ) FROM tab0
----
-6402

skipif mysql # not compatible
query I rowsort label-681
SELECT + 22 * + 97 * - COUNT ( * ) FROM tab0
----
-6402

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

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

query I rowsort
SELECT ALL - 76 * + - col1 AS col2 FROM tab2
----
3876
5092
5852

query I rowsort
SELECT + 88 * + col2 FROM tab0
----
4136
8712
880

query II rowsort
SELECT DISTINCT - 43 * 88 AS col1, 37 FROM tab1
----
-3784
37

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-689
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE - + 74 + + col0 >= + col0
----
0

skipif mysql # not compatible
query I rowsort label-689
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE - + 74 + + col0 >= + col0
----
0

query II rowsort
SELECT - ( + col1 ) * - + col2 * - col1 AS col0, - ( col2 ) FROM tab0
----
-308367
-47
-4410
-10
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-691
SELECT DISTINCT + ( + COUNT( * ) ) * ( + MIN( DISTINCT + 5 ) ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
45

skipif mysql # not compatible
query I rowsort label-691
SELECT DISTINCT + ( + COUNT ( * ) ) * ( + MIN ( DISTINCT + 5 ) ) AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
45

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

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL MIN ( DISTINCT CAST ( NULL AS REAL ) ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT ALL - SUM( - col0 ) * - - COUNT( * ) * COUNT( DISTINCT + - 56 ) + + 86 FROM tab1 AS cor0
----
767

skipif mysql # not compatible
query I rowsort label-693
SELECT ALL - SUM ( - col0 ) * - - COUNT ( * ) * COUNT ( DISTINCT + - 56 ) + + 86 FROM tab1 AS cor0
----
767

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

query I rowsort
SELECT DISTINCT - + col2 * - col0 FROM tab0 cor0
----
705
870
9603

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

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT + - COUNT( + + 20 ) + + 72 AS col2 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-697
SELECT + - COUNT ( + + 20 ) + + 72 AS col2 FROM tab1 AS cor0
----
69

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

skipif mysql # not compatible
query I rowsort label-698
SELECT DISTINCT 92 + - ( COUNT ( * ) ) FROM tab2
----
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) + - 4 * + + col2 col0 FROM tab2
----
-165
-41
-83

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

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

query I rowsort
SELECT ALL + col2 * + col2 + - col1 + - col0 + + + col1 * col1 + + col1 + col0 * + ( - col1 ) - 85 FROM tab1
----
2380
2911
8562

query I rowsort
SELECT DISTINCT + col2 + + + col0 * 40 FROM tab0
----
3490
3979
647

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

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT DISTINCT SUM( + + col0 ) * - + 14 FROM tab1
----
-3178

skipif mysql # not compatible
query I rowsort label-704
SELECT DISTINCT SUM ( + + col0 ) * - + 14 FROM tab1
----
-3178

query II rowsort
SELECT ALL - col0 * - + col0 AS col0, + 71 AS col2 FROM tab0 cor0
----
225
71
7569
71
9409
71

query I rowsort
SELECT DISTINCT + 67 * - + col0 * - col0 FROM tab1 AS cor0
----
174267
484075
554827

query I rowsort
SELECT col2 * 41 AS col2 FROM tab1 cor0
----
2419
2788
3936

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-708
SELECT 59 - - CAST( - col2 AS SIGNED ) + + 50 FROM tab0 AS cor0
----
10
62
99

skipif mysql # not compatible
query I rowsort label-708
SELECT 59 - - CAST ( - col2 AS INTEGER ) + + 50 FROM tab0 AS cor0
----
10
62
99

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 + - + col2 col1, + 64 AS col1 FROM tab2 AS cor0 WHERE + 27 <= + col0
----
0
64
0
64
0
64

onlyif mysql # aggregate syntax: 
query I rowsort label-711
SELECT - + COUNT( * ) * ( MIN( ALL col1 ) ) AS col0 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-711
SELECT - + COUNT ( * ) * ( MIN ( ALL col1 ) ) AS col0 FROM tab2 AS cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT DISTINCT + MAX( - - col2 ) FROM tab1 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-712
SELECT DISTINCT + MAX ( - - col2 ) FROM tab1 AS cor0 WHERE NULL < NULL
----
NULL

query I rowsort
SELECT ALL + + 79 * - ( - + 91 ) FROM tab1 AS cor0 WHERE + col0 IS NULL
----

query II rowsort
SELECT - ( col1 ) * - col1 - col0 - - - 68 AS col2, 65 FROM tab1 AS cor0
----
-128
65
2050
65
77
65

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

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

query I rowsort
SELECT 63 * - + col2 + - 20 FROM tab1 AS cor0
----
-3737
-4304
-6068

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT DISTINCT - 15 * - + COUNT( col0 ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-717
SELECT DISTINCT - 15 * - + COUNT ( col0 ) FROM tab1
----
45

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-721
SELECT col1 DIV + col1 + - col2 + - 88 FROM tab1 AS cor0
----
-146
-155
-183

skipif mysql # not compatible
query I rowsort label-721
SELECT col1 / + col1 + - col2 + - 88 FROM tab1 AS cor0
----
-146
-155
-183

query I rowsort
SELECT - 66 + + 13 * col0 - + col1 + + 34 FROM tab0 AS cor0 WHERE NOT NULL >= col1 / + 67
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 80 <= NULL
----

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

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

query I rowsort
SELECT ALL col1 * + col0 - - col1 - + col2 FROM tab0 AS cor0
----
-1
1249
1838

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-728
SELECT MIN ( ( col0 ) ) col1 FROM tab1 AS cor0
----
51

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

query I rowsort
SELECT ALL - col0 * + 89 + - + col1 AS col2 FROM tab1 cor0
----
-4553
-7570
-8146

query I rowsort
SELECT DISTINCT 4 * + col0 + + - col2 AS col1 FROM tab1 AS cor0
----
108
281
296

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 = + + col2 + - col0
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-734
SELECT - 88, - COUNT( * ) col1 FROM tab1
----
-88
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-734
SELECT - 88, - COUNT ( * ) col1 FROM tab1
----
-88
-3

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

query I rowsort
SELECT ALL + 13 + + col1 * - col1 FROM tab2
----
-2588
-4476
-5916

query I rowsort
SELECT ALL + 8 + 99 AS col1 FROM tab1
----
107
107
107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + ( + 70 ) col0 FROM tab0
----
-3290
-6930
-700

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

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

query I rowsort
SELECT col2 + + + 11 + - + col2 FROM tab1
----
11
11
11

query I rowsort
SELECT + 81 + + col0 FROM tab2 AS cor0
----
127
145
156

onlyif mysql # DIV for integer division: 
query I rowsort label-742
SELECT ALL - 87 DIV - - col1 col1 FROM tab2 cor0
----
-1
-1
-1

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < ( + + col0 )
----

query I rowsort
SELECT ALL + 3 + + + col1 AS col2 FROM tab1
----
17
50
8

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

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

skipif mysql # not compatible
query I rowsort label-746
SELECT DISTINCT + COUNT ( * ) / - 29 FROM tab2 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-748
SELECT DISTINCT - + COUNT( * ) * - 30 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 + + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-748
SELECT DISTINCT - + COUNT ( * ) * - 30 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 + + col0 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-749
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) - col0 + - ( col1 ) + - col1 + + ( + 99 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-749
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) - col0 + - ( col1 ) + - col1 + + ( + 99 ) IS NULL
----

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

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

query II rowsort
SELECT DISTINCT col1 * + 87 * 26 AS col0, - col0 FROM tab1
----
106314
-91
11310
-85
31668
-51

query I rowsort
SELECT 51 * col1 FROM tab1
----
2397
255
714

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 <= + 29
----

query I rowsort
SELECT + + 72 + 76 * - col2 * - + 56 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= ( col2 )
----

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

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

query I rowsort
SELECT DISTINCT col2 + + ( + col1 ) + + col1 + + col0 FROM tab0
----
139
198
224

onlyif mysql # aggregate syntax: 
query I rowsort label-758
SELECT + 47 + + COUNT( * ) + + - 10 AS col2 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-758
SELECT + 47 + + COUNT ( * ) + + - 10 AS col2 FROM tab0
----
40

query I rowsort
SELECT 18 * + - col0 + + col0 AS col2 FROM tab1 AS cor0
----
-1445
-1547
-867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - - col1 AS col0, 27 col0 FROM tab2
----
2601
27
4489
27
5929
27

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT SUM( + + 20 ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-761
SELECT SUM ( + + 20 ) FROM tab2
----
60

query I rowsort
SELECT + 71 * - col2 AS col0 FROM tab2
----
-1633
-2840
-4118

query I rowsort
SELECT ALL - - ( + col2 ) + 84 AS col0 FROM tab0 AS cor0
----
131
183
94

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-764
SELECT + 80 * - - col1 - CAST( col1 AS SIGNED ) DIV - 16 FROM tab2 AS cor0
----
4083
5364
6164

skipif mysql # not compatible
query I rowsort label-764
SELECT + 80 * - - col1 - CAST ( col1 AS INTEGER ) / - 16 FROM tab2 AS cor0
----
4083
5364
6164

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

skipif mysql # not compatible
query I rowsort label-765
SELECT MIN ( ALL 19 ) AS col0 FROM tab2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT ALL - 68 * - MIN( ALL - 38 ) FROM tab1
----
-2584

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL - 68 * - MIN ( ALL - 38 ) FROM tab1
----
-2584

query I rowsort
SELECT DISTINCT - col2 * - - col1 * + + 8 FROM tab0
----
-1680
-30456
-792

onlyif mysql # DIV for integer division: 
query II rowsort label-768
SELECT col1 AS col0, col2 DIV - 45 AS col2 FROM tab0
----
1
-2
21
0
81
-1

skipif mysql # not compatible
query II rowsort label-768
SELECT col1 AS col0, col2 / - 45 AS col2 FROM tab0
----
1
-2
21
0
81
-1

query I rowsort
SELECT ALL 52 * + + col1 * 89 FROM tab2 cor0
----
236028
310076
356356

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-771
SELECT ALL - - 77 DIV + SUM( ALL + + 44 ) * - - 55 AS col1, 3 AS col2 FROM tab1 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-771
SELECT ALL - - 77 / + SUM ( ALL + + 44 ) * - - 55 AS col1, 3 AS col2 FROM tab1 AS cor0
----
0
3

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

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

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

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

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

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

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

skipif mysql # not compatible
query III rowsort label-777
SELECT * FROM tab0 WHERE NOT NULL = - - CAST ( - 35 AS INTEGER ) * - - col1
----

query I rowsort
SELECT ALL - col0 * - 59 FROM tab2
----
2714
3776
4425

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 WHERE NOT - col2 >= - col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT ALL MIN( - + col0 ) * - MIN( + 25 ) AS col1 FROM tab0
----
2425

skipif mysql # not compatible
query I rowsort label-781
SELECT ALL MIN ( - + col0 ) * - MIN ( + 25 ) AS col1 FROM tab0
----
2425

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-782
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 95 BETWEEN - CAST( NULL AS SIGNED ) AND + ( + col1 ) + + + 14
----

skipif mysql # not compatible
query III rowsort label-782
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 95 BETWEEN - CAST ( NULL AS INTEGER ) AND + ( + col1 ) + + + 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-783
SELECT - MIN( ALL - col2 ) * - 18 FROM tab2 AS cor0
----
-1044

skipif mysql # not compatible
query I rowsort label-783
SELECT - MIN ( ALL - col2 ) * - 18 FROM tab2 AS cor0
----
-1044

onlyif mysql # aggregate syntax: 
query II rowsort label-784
SELECT DISTINCT - 0 AS col2, + MIN( DISTINCT - 76 ) FROM tab2 AS cor0
----
0
-76

skipif mysql # not compatible
query II rowsort label-784
SELECT DISTINCT - 0 AS col2, + MIN ( DISTINCT - 76 ) FROM tab2 AS cor0
----
0
-76

query I rowsort
SELECT DISTINCT ( 21 ) + + - col2 FROM tab1 AS cor0
----
-38
-47
-75

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

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

query I rowsort
SELECT - 50 + - 4 FROM tab0
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-788
SELECT ALL - COUNT( * ) + - - 46 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-788
SELECT ALL - COUNT ( * ) + - - 46 FROM tab2
----
43

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + col1, - 45 + 61 * + 29, + - col2 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-792
SELECT - 43 * 89 DIV + 80 + + col1 FROM tab0
----
-26
-46
34

skipif mysql # not compatible
query I rowsort label-792
SELECT - 43 * 89 / + 80 + + col1 FROM tab0
----
-26
-46
34

onlyif mysql # DIV for integer division: 
query I rowsort label-793
SELECT + 16 + 57 + 69 DIV + col0 AS col1 FROM tab2
----
73
74
74

skipif mysql # not compatible
query I rowsort label-793
SELECT + 16 + 57 + 69 / + col0 AS col1 FROM tab2
----
73
74
74

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

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

query I rowsort
SELECT + + col1 * 51 - + 15 FROM tab2 AS cor0
----
2586
3402
3912

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT + COUNT( * ) FROM tab1 WHERE NOT 77 / - col2 > - 21
----
0

skipif mysql # not compatible
query I rowsort label-796
SELECT + COUNT ( * ) FROM tab1 WHERE NOT 77 / - col2 > - 21
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT DISTINCT + + MIN( ALL - + 55 ) AS col2 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-797
SELECT DISTINCT + + MIN ( ALL - + 55 ) AS col2 FROM tab2 AS cor0
----
-55

query II rowsort
SELECT - + ( + - 65 ) AS col2, col0 + - + ( col1 ) + - 28 * + - col1 FROM tab1 AS cor0
----
65
1360
65
220
65
429

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT + col1 < + col1
----
51
67
77

query I rowsort
SELECT - col0 * + col0 - + - col2 AS col1 FROM tab2 AS cor0
----
-2093
-4056
-5567

query I rowsort
SELECT + col0 + - col0 * col1 AS col1 FROM tab2
----
-2300
-4864
-4950

query II rowsort
SELECT + col0 + - - col2 * - - col2 * 27 * - + col1 * 61, 36 AS col1 FROM tab2
----
-202910336
36
-371213961
36
-44434367
36

query I rowsort
SELECT DISTINCT col0 * col2 + + col1 * + + col2 AS col2 FROM tab0
----
1080
4512
9702

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-806
SELECT + COUNT( * ) * + 15 AS col2 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-806
SELECT + COUNT ( * ) * + 15 AS col2 FROM tab0
----
45

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

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

query II rowsort
SELECT ALL - 52 AS col1, col2 * - col0 AS col1 FROM tab2 AS cor0
----
-52
-1058
-52
-2560
-52
-4350

query I rowsort
SELECT DISTINCT col1 + - 53 FROM tab2 AS cor0
----
-2
14
24

onlyif mysql # aggregate syntax: 
query I rowsort label-811
SELECT MIN( DISTINCT - 72 ) AS col0 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-811
SELECT MIN ( DISTINCT - 72 ) AS col0 FROM tab2
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT MIN( col0 ) * + 59 FROM tab2 WHERE col0 * - col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-812
SELECT MIN ( col0 ) * + 59 FROM tab2 WHERE col0 * - col2 <> NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * 95 FROM tab1
----
1330
4465
475

query I rowsort
SELECT ALL 13 * + col1 AS col2 FROM tab1
----
182
611
65

query I rowsort
SELECT col1 + ( + ( + col1 ) + + ( + col2 ) ) AS col1 FROM tab0
----
101
209
52

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT MIN( ALL + 17 ) + + MAX( DISTINCT col2 + - col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-816
SELECT MIN ( ALL + 17 ) + + MAX ( DISTINCT col2 + - col0 ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE 96 < NULL
----

query I rowsort
SELECT DISTINCT col0 + + 29 AS col2 FROM tab1
----
114
120
80

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

query I rowsort
SELECT - col1 FROM tab2 WHERE - col1 IN ( - col1 )
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-821
SELECT * FROM tab1 WHERE NOT - CAST( 2 AS SIGNED ) + col2 * - col1 BETWEEN 50 AND 64
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-821
SELECT * FROM tab1 WHERE NOT - CAST ( 2 AS INTEGER ) + col2 * - col1 BETWEEN 50 AND 64
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - 54 - - 69 AS col0 FROM tab0
----
-1065
-4305
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 * - 69 col1 FROM tab2
----
621
621
621

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

query I rowsort
SELECT + 99 * 69 FROM tab1
----
6831
6831
6831

query I rowsort
SELECT 83 * + col2 + 58 AS col1 FROM tab0
----
3959
8275
888

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-827
SELECT ALL + CAST( - col1 AS SIGNED ) DIV ( + col1 ) AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-827
SELECT ALL + CAST ( - col1 AS INTEGER ) / ( + col1 ) AS col1 FROM tab1
----
-1
-1
-1

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

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

query I rowsort
SELECT DISTINCT 38 AS col1 FROM tab2 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * 47 FROM tab2
----
2397
3149
3619

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 <> + 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-832
SELECT DISTINCT 61 + - COUNT( * ) AS col0 FROM tab1 WHERE NOT ( NULL ) BETWEEN 80 AND col0
----
61

skipif mysql # not compatible
query I rowsort label-832
SELECT DISTINCT 61 + - COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( NULL ) BETWEEN 80 AND col0
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-833
SELECT ALL CAST( + 97 AS SIGNED ) * - col0 AS col2 FROM tab1
----
-4947
-8245
-8827

skipif mysql # not compatible
query I rowsort label-833
SELECT ALL CAST ( + 97 AS INTEGER ) * - col0 AS col2 FROM tab1
----
-4947
-8245
-8827

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

skipif mysql # not compatible
query I rowsort label-834
SELECT MIN ( ALL 93 ) AS col0 FROM tab2
----
93

query I rowsort
SELECT ALL - col0 * 51 AS col2 FROM tab2
----
-2346
-3264
-3825

query III rowsort
SELECT ALL * FROM tab1 WHERE 42 = col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-837
SELECT col2 DIV col1 FROM tab0 WHERE ( col1 ) NOT IN ( col2 )
----
0
0
99

skipif mysql # not compatible
query I rowsort label-837
SELECT col2 / col1 FROM tab0 WHERE ( col1 ) NOT IN ( col2 )
----
0
0
99

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

query I rowsort
SELECT + 48 FROM tab0 WHERE col2 > 37
----
48
48

query III rowsort
SELECT * FROM tab2 WHERE ( - 38 ) > ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 9 * col1 NOT BETWEEN + col2 AND 76
----

query I rowsort
SELECT - col0 + col0 * - 47 AS col0 FROM tab0
----
-4176
-4656
-720

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

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

query I rowsort
SELECT + col0 * 30 FROM tab1 cor0
----
1530
2550
2730

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-849
SELECT + + 10 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-30

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

query I rowsort
SELECT ALL 69 * ( col0 * - 20 ) FROM tab1 AS cor0
----
-117300
-125580
-70380

query I rowsort
SELECT - ( 5 ) AS col0 FROM tab1 AS cor0
----
-5
-5
-5

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

skipif mysql # not compatible
query I rowsort label-852
SELECT CAST ( + 63 AS INTEGER ) FROM tab2 AS cor0
----
63
63
63

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

skipif mysql # not compatible
query I rowsort label-853
SELECT ALL 64 + - ( COUNT ( * ) ) + COUNT ( * ) FROM tab0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT ALL - MAX( - 70 ) col2 FROM tab1
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-854
SELECT ALL - MAX ( - 70 ) col2 FROM tab1
----
70

query I rowsort
SELECT ALL + col0 * + col2 + - col0 AS col0 FROM tab2 WHERE - col2 < ( NULL )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-856
SELECT COUNT ( * ) col0 FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - col0 * - col2 * col0 AS col1 FROM tab0
----
10575
75690
931491

onlyif mysql # DIV for integer division: 
query I rowsort label-858
SELECT - 51 + + + col0 DIV - col2 AS col0 FROM tab2
----
-52
-52
-53

skipif mysql # not compatible
query I rowsort label-858
SELECT - 51 + + + col0 / - col2 AS col0 FROM tab2
----
-52
-52
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-859
SELECT 27 + - - CAST( SUM( ALL - 43 ) AS SIGNED ) FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-859
SELECT 27 + - - CAST ( SUM ( ALL - 43 ) AS INTEGER ) FROM tab0
----
-102

query I rowsort
SELECT - ( - 38 ) + + col2 AS col0 FROM tab1 cor0
----
106
134
97

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT - COUNT( * ) + MIN( ALL + col1 ) FROM tab1 cor0
----
2

skipif mysql # not compatible
query I rowsort label-861
SELECT - COUNT ( * ) + MIN ( ALL + col1 ) FROM tab1 cor0
----
2

query I rowsort
SELECT 56 + - 29 FROM tab0 cor0
----
27
27
27

query I rowsort
SELECT + - col1 + + col1 + 51 * col0 AS col1 FROM tab2 AS cor0
----
2346
3264
3825

query I rowsort
SELECT ALL 64 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT ALL - 38 * - 6 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 089770693ed05b90ff1d6e52838c3525

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-866
SELECT DISTINCT - - COUNT ( * ) - COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
0

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

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

query I rowsort
SELECT DISTINCT + 64 * - - 63 AS col2 FROM tab2
----
4032

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

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

query I rowsort
SELECT ALL + + col1 * 77 + + col1 AS col0 FROM tab2 AS cor0
----
3978
5226
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT DISTINCT + MAX( ALL col2 ) - + - COUNT( * ) FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-871
SELECT DISTINCT + MAX ( ALL col2 ) - + - COUNT ( * ) FROM tab0 AS cor0
----
102

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

query I rowsort
SELECT ALL col1 FROM tab2 cor0 WHERE ( NULL ) IN ( + - col1 * - col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN 87 AND col1
----

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

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

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

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

query I rowsort
SELECT col2 * col1 * ( + + col0 ) + col1 AS col1 FROM tab0
----
18291
57186
9604

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 NOT IN ( 13 )
----

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

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

skipif mysql # not compatible
query II rowsort label-881
SELECT - col1 / + 93 AS col2, col2 AS col1 FROM tab1
----
0
59
0
68
0
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-882
SELECT ALL - 42 DIV COUNT( + 83 ) AS col0 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-882
SELECT ALL - 42 / COUNT ( + 83 ) AS col0 FROM tab1
----
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-883
SELECT + MAX( - col1 ) DIV + + 93 * - 3 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-883
SELECT + MAX ( - col1 ) / + + 93 * - 3 AS col0 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 0 > ( - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-885
SELECT DISTINCT - COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NULL BETWEEN + col0 AND - 44
----
0

skipif mysql # not compatible
query I rowsort label-885
SELECT DISTINCT - COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NULL BETWEEN + col0 AND - 44
----
0

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-889
SELECT DISTINCT + 18 * SUM( DISTINCT CAST( NULL AS SIGNED ) / ( 54 ) ) + + 68 FROM tab2 AS cor0 WHERE ( NOT 45 NOT IN ( - 53 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT + 18 * SUM ( DISTINCT CAST ( NULL AS INTEGER ) / ( 54 ) ) + + 68 FROM tab2 AS cor0 WHERE ( NOT 45 NOT IN ( - 53 ) )
----
NULL

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

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

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

query I rowsort
SELECT ALL 29 AS col1 FROM tab1 WHERE NOT - 16 * - col0 + + col1 = + 92 * col0 OR NOT + 91 IS NOT NULL
----
29
29
29

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 74 * - col2 + + + col2 ) = + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col1 * ( + 91 ) FROM tab0 AS cor0
----
-1911
-7371
-91

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + ( + col2 ) + 62 col1 FROM tab2 AS cor0
----
-1538
-3302
-467

query I rowsort
SELECT DISTINCT - 14 * col2 * - - col1 + - col2 AS col0 FROM tab2 AS cor0
----
-16445
-43160
-54462

query I rowsort
SELECT + 48 + + 88 FROM tab2 AS cor0
----
136
136
136

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

query I rowsort
SELECT ALL + ( + 35 ) + - col1 AS col2 FROM tab1 AS cor0
----
-12
21
30

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 9 + - col1 - - 18 col0 FROM tab0
----
-12
-72
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-908
SELECT 9 + COUNT( * ) * - - 52 + COUNT( * ) FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-908
SELECT 9 + COUNT ( * ) * - - 52 + COUNT ( * ) FROM tab0
----
168

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

onlyif mysql # aggregate syntax: 
query I rowsort label-910
SELECT ALL 7 * - - COUNT( * ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL 7 * - - COUNT ( * ) FROM tab0
----
21

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

onlyif mysql # aggregate syntax: 
query I rowsort label-912
SELECT - 68 + + 37 - - 81 + COUNT( * ) col0 FROM tab2, tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-912
SELECT - 68 + + 37 - - 81 + COUNT ( * ) col0 FROM tab2, tab1 AS cor0
----
59

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

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

query II rowsort
SELECT DISTINCT ( 16 ), - 87 AS col1 FROM tab2 cor0
----
16
-87

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-918
SELECT DISTINCT + - col2 DIV - 40 AS col0 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT + - col2 / - 40 AS col0 FROM tab0 AS cor0
----
0
1
2

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

query II rowsort
SELECT + col0 + col0, - 79 * + 9 AS col2 FROM tab1
----
102
-711
170
-711
182
-711

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

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

query I rowsort
SELECT ALL - 66 + + - col2 + + + 11 AS col1 FROM tab1 WHERE ( + + 40 + - col0 ) IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + + col1 col2, + 17 FROM tab1 cor0
----
10
17
28
17
94
17

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

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col0 BETWEEN + col0 AND + + 22 / + col1 - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 0 ) * - 5 col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT DISTINCT 53 * COUNT( * ) AS col1 FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT 53 * COUNT ( * ) AS col1 FROM tab1
----
159

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 < + 59
----
64
77
40
75
67
58

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

skipif mysql # not compatible
query III rowsort label-936
SELECT * FROM tab0 AS cor0 WHERE NOT + 51 NOT BETWEEN ( + col0 + CAST ( col1 AS INTEGER ) ) AND - col1 * + 40
----

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

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

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

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

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

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

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

query I rowsort
SELECT ALL ( + - 70 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT + MIN( ALL 61 ) FROM tab0, tab1 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-942
SELECT + MIN ( ALL 61 ) FROM tab0, tab1 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT COUNT( * ) * ( - 5 ) col2 FROM tab1
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-943
SELECT COUNT ( * ) * ( - 5 ) col2 FROM tab1
----
-15

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

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

query I rowsort
SELECT DISTINCT col0 / - col1 / col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-947
SELECT ALL - col1 * 96 * - + col1 * + - col2 + - col0 DIV - - col1 FROM tab0 AS cor0
----
-29603232
-423364
-9601

skipif mysql # not compatible
query I rowsort label-947
SELECT ALL - col1 * 96 * - + col1 * + - col2 + - col0 / - - col1 FROM tab0 AS cor0
----
-29603232
-423364
-9601

query II rowsort
SELECT ALL - 34 AS col0, - 82 + - col0 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-950
SELECT DISTINCT CAST( NULL AS SIGNED ) + 11 * - col1 * - col2 + - 95, - CAST( NULL AS SIGNED ) + + col0 + + + col0 AS col0, - col0 + + col0 * 97 AS col1 FROM tab1
----
9 values hashing to 5f6d98c5e7826c71bd7234bf41fc4f79

skipif mysql # not compatible
query III rowsort label-950
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 11 * - col1 * - col2 + - 95, - CAST ( NULL AS INTEGER ) + + col0 + + + col0 AS col0, - col0 + + col0 * 97 AS col1 FROM tab1
----
9 values hashing to 5f6d98c5e7826c71bd7234bf41fc4f79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 col2 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT DISTINCT - COUNT( * ) + 72 AS col0 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT - COUNT ( * ) + 72 AS col0 FROM tab0
----
69

query I rowsort
SELECT ALL + col1 * ( + 97 ) FROM tab2
----
4947
6499
7469

onlyif mysql # DIV for integer division: 
query I rowsort label-954
SELECT ALL - col1 + col2 DIV - 27 FROM tab2
----
-51
-69
-78

skipif mysql # not compatible
query I rowsort label-954
SELECT ALL - col1 + col2 / - 27 FROM tab2
----
-51
-69
-78

query I rowsort
SELECT + col1 + + col0 + + - 76 AS col0 FROM tab2
----
21
65
66

query I rowsort
SELECT DISTINCT - col1 - + 99 - - 33 AS col0 FROM tab1
----
-113
-71
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + 51 col0 FROM tab2 cor0
----
115
126
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + - col1 col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT DISTINCT SUM( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-959
SELECT DISTINCT SUM ( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE NOT NULL < NULL
----
NULL

query I rowsort
SELECT DISTINCT + 64 + + + col0 + - ( 35 ) AS col1 FROM tab2
----
104
75
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-961
SELECT ALL + col2 + + col2 + + CAST( - ( + col1 ) AS SIGNED ) FROM tab1
----
113
178
89

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL + col2 + + col2 + + CAST ( - ( + col1 ) AS INTEGER ) FROM tab1
----
113
178
89

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-963
SELECT col0 - + + col0 DIV + CAST( - - col1 AS SIGNED ) AS col1 FROM tab1
----
48
68
90

skipif mysql # not compatible
query I rowsort label-963
SELECT col0 - + + col0 / + CAST ( - - col1 AS INTEGER ) AS col1 FROM tab1
----
48
68
90

query I rowsort
SELECT - col0 - + + col2 + - - 18 FROM tab2
----
-115
-51
-86

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

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

query II rowsort
SELECT ALL + 56, + col0 FROM tab2 AS cor0
----
56
46
56
64
56
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 54 * + col0 AS col2, + col2 col2 FROM tab1 AS cor0
----
2754
96
4590
59
4914
68

onlyif mysql # DIV for integer division: 
query II rowsort label-968
SELECT col0 DIV 99, + col1 * ( + col1 ) DIV - 30 AS col2 FROM tab0
----
0
-14
0
-218
0
0

skipif mysql # not compatible
query II rowsort label-968
SELECT col0 / 99, + col1 * ( + col1 ) / - 30 AS col2 FROM tab0
----
0
-14
0
-218
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-969
SELECT col1 DIV + 96 * + 67 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-969
SELECT col1 / + 96 * + 67 AS col0 FROM tab1
----
0
0
0

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

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

skipif mysql # not compatible
query I rowsort label-971
SELECT DISTINCT - col1 / + 41 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-972
SELECT + MAX( ALL + 80 ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( col2 * + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-972
SELECT + MAX ( ALL + 80 ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( col2 * + col2 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-973
SELECT - MAX ( DISTINCT - col1 ) * 55 FROM tab0
----
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT DISTINCT COUNT( * ) + + 32 col0 FROM tab0, tab1 cor0
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-975
SELECT DISTINCT COUNT ( * ) + + 32 col0 FROM tab0, tab1 cor0
----
41

query I rowsort
SELECT ALL 63 + - + col2 + + col1 + 35 AS col0 FROM tab1
----
16
44
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-977
SELECT DISTINCT 81 DIV - ( + COUNT( DISTINCT - ( + 9 ) ) ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-977
SELECT DISTINCT 81 / - ( + COUNT ( DISTINCT - ( + 9 ) ) ) AS col2 FROM tab0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-978
SELECT ALL 8, CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
8
NULL
8
NULL
8
NULL

skipif mysql # not compatible
query II rowsort label-978
SELECT ALL 8, CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
8
NULL
8
NULL
8
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-979
SELECT DISTINCT 98 AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
98
NULL

skipif mysql # not compatible
query II rowsort label-979
SELECT DISTINCT 98 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
98
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-981
SELECT ALL + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 <= - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-981
SELECT ALL + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 <= - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT ALL - - SUM( + 78 ) AS col0 FROM tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-982
SELECT ALL - - SUM ( + 78 ) AS col0 FROM tab2 AS cor0
----
234

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT ALL - COUNT( * ) + - 46 FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-985
SELECT ALL - COUNT ( * ) + - 46 FROM tab0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT ALL COUNT( * ) * 17 + SUM( + col2 ) col1 FROM tab1
----
274

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-986
SELECT ALL COUNT ( * ) * 17 + SUM ( + col2 ) col1 FROM tab1
----
274

onlyif mysql # aggregate syntax: 
query II rowsort label-987
SELECT DISTINCT MAX( DISTINCT - - col2 ), 99 AS col1 FROM tab1 WHERE NULL >= ( NULL )
----
NULL
99

skipif mysql # not compatible
query II rowsort label-987
SELECT DISTINCT MAX ( DISTINCT - - col2 ), 99 AS col1 FROM tab1 WHERE NULL >= ( NULL )
----
NULL
99

query III rowsort
SELECT * FROM tab1 WHERE - 76 IS NULL
----

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

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

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

query I rowsort
SELECT ALL + 24 - - 89 FROM tab2 AS cor0
----
113
113
113

query I rowsort
SELECT DISTINCT - col0 - - 32 FROM tab0 AS cor0
----
-55
-65
17

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 + - ( - - 59 ) col1 FROM tab2 AS cor0
----
-97
-97
-97

query I rowsort
SELECT ALL - ( 22 ) * + 19 FROM tab1, tab2 AS cor0
----
9 values hashing to 21401dd4c45b4176a4e939af2dda5c12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT ALL - MAX( DISTINCT col0 ) col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-997
SELECT ALL - MAX ( DISTINCT col0 ) col2 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL + 1 * - 97 AS col2 FROM tab0 AS cor0
----
-97
-97
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT - 60 * + MIN( ALL + col2 ) FROM tab0
----
-600

skipif mysql # not compatible
query I rowsort label-1001
SELECT - 60 * + MIN ( ALL + col2 ) FROM tab0
----
-600

onlyif mysql # DIV for integer division: 
query II rowsort label-1002
SELECT DISTINCT - - col2 * - - col2 + col1 DIV 34 * + col0 * - 31, col2 FROM tab0 AS cor0
----
100
10
1279
47
9801
99

skipif mysql # not compatible
query II rowsort label-1002
SELECT DISTINCT - - col2 * - - col2 + col1 / 34 * + col0 * - 31, col2 FROM tab0 AS cor0
----
100
10
1279
47
9801
99

query I rowsort
SELECT ALL + col0 * + ( col2 ) AS col1 FROM tab2 AS cor0
----
1058
2560
4350

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

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

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

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

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

query I rowsort
SELECT ALL + 57 * 59 FROM tab1 cor0
----
3363
3363
3363

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

query I rowsort
SELECT + + col1 * - 12 * + ( 12 ) * - 73 AS col0 FROM tab2 AS cor0
----
536112
704304
809424

onlyif mysql # aggregate syntax: 
query II rowsort label-1010
SELECT DISTINCT + ( ( - 58 ) ) AS col1, COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + col1 <= - - col1 * + + col0 - - col0
----
-58
3

skipif mysql # not compatible
query II rowsort label-1010
SELECT DISTINCT + ( ( - 58 ) ) AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + col1 <= - - col1 * + + col0 - - col0
----
-58
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1011
SELECT DISTINCT - - CAST( - 23 AS SIGNED ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-1011
SELECT DISTINCT - - CAST ( - 23 AS INTEGER ) FROM tab2 AS cor0
----
-23

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1016
SELECT CAST( - col2 AS SIGNED ) * - + 42 + + col2 FROM tab0
----
2021
4257
430

skipif mysql # not compatible
query I rowsort label-1016
SELECT CAST ( - col2 AS INTEGER ) * - + 42 + + col2 FROM tab0
----
2021
4257
430

query I rowsort
SELECT + col0 + - 8 AS col1 FROM tab0
----
7
79
89

query I rowsort
SELECT DISTINCT - 86 * + 65 - + 91 AS col1 FROM tab0
----
-5681

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1019
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 NOT IN ( + col0, col1, - + CAST( + col0 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-1019
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 NOT IN ( + col0, col1, - + CAST ( + col0 AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1020
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( - - col1 AS SIGNED ) > + col0 * + + 24 + 16
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1020
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( - - col1 AS INTEGER ) > + col0 * + + 24 + 16
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

skipif mysql # not compatible
query I rowsort label-1022
SELECT ( + COUNT ( * ) ) * - COUNT ( * ) / - + 83 AS col0 FROM tab2
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 75 col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-75

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 22 * + col2 + + 82 IS NOT NULL
----

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

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

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT NULL <= 74
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT - MAX( - + 71 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN - ( + 96 ) AND + - 93
----
NULL

skipif mysql # not compatible
query I rowsort label-1030
SELECT - MAX ( - + 71 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN - ( + 96 ) AND + - 93
----
NULL

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

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

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

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

query I rowsort
SELECT 33 * + col1 * - col1 FROM tab2
----
-148137
-195657
-85833

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1035
SELECT + COUNT( * ) DIV + 10 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1035
SELECT + COUNT ( * ) / + 10 AS col2 FROM tab0
----
0

query I rowsort
SELECT col0 * - 90 AS col2 FROM tab2
----
-4140
-5760
-6750

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1037
SELECT ALL + 67, - 41 DIV SUM( ALL 28 ) AS col0 FROM tab1
----
67
0

skipif mysql # not compatible
query II rowsort label-1037
SELECT ALL + 67, - 41 / SUM ( ALL 28 ) AS col0 FROM tab1
----
67
0

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT ALL + - 53 + - - ( - - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-1041
SELECT ALL + - 53 + - - ( - - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT ALL COUNT( * ) + - 13 FROM tab1 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL COUNT ( * ) + - 13 FROM tab1 cor0
----
-10

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT ALL MIN( + col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL MIN ( + col2 ) AS col1 FROM tab2
----
23

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

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

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

query I rowsort
SELECT - + col1 + + + 70 + + col2 AS col1 FROM tab1 AS cor0
----
124
152
91

query II rowsort
SELECT DISTINCT col0 * col2 + + ( col0 ), col1 FROM tab2 cor0
----
1104
51
2624
77
4425
67

query I rowsort
SELECT + ( + 32 ) + col0 FROM tab1 AS cor0
----
117
123
83

query I rowsort
SELECT + ( + - col1 ) * - ( - col2 ) * - - 2 FROM tab0 AS cor0
----
-198
-420
-7614

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1052
SELECT ALL + CAST( + 2 AS SIGNED ) + - col1 AS col0 FROM tab1
----
-12
-3
-45

skipif mysql # not compatible
query I rowsort label-1052
SELECT ALL + CAST ( + 2 AS INTEGER ) + - col1 AS col0 FROM tab1
----
-12
-3
-45

query II rowsort
SELECT DISTINCT - col0 * col2 + 19 * - ( - 61 ) AS col1, col0 AS col2 FROM tab2
----
-1401
64
-3191
75
101
46

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

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

query III rowsort
SELECT * FROM tab0 WHERE ( - 45 ) < NULL
----

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

skipif mysql # not compatible
query I rowsort label-1056
SELECT ALL - CAST ( NULL AS REAL ) - - MAX ( ALL col2 ) + + COUNT ( * ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col0 - + col0 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1058
SELECT ALL 61 + COUNT( * ) DIV + ( + SUM( ALL ( - - col2 ) ) ) AS col2 FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-1058
SELECT ALL 61 + COUNT ( * ) / + ( + SUM ( ALL ( - - col2 ) ) ) AS col2 FROM tab0
----
61

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1060
SELECT CAST( MIN( col2 ) AS DECIMAL ) AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN CAST( NULL AS DECIMAL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1060
SELECT CAST ( MIN ( col2 ) AS REAL ) AS col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS REAL ) AND NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1061
SELECT ALL + - COUNT ( * ) / - - 33 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1062
SELECT ( - CAST( + + COUNT( ALL 90 ) AS SIGNED ) ), 91 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-3
91

skipif mysql # not compatible
query II rowsort label-1062
SELECT ( - CAST ( + + COUNT ( ALL 90 ) AS INTEGER ) ), 91 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-3
91

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1065
SELECT ALL - ( MAX ( col0 ) ) col2 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1066
SELECT - SUM( ALL 51 ) AS col2 FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-1066
SELECT - SUM ( ALL 51 ) AS col2 FROM tab0 AS cor0
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1067
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) * - 36 * + 55 / - ( - col2 ) + - - 45 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1067
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * - 36 * + 55 / - ( - col2 ) + - - 45 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + - 63 AS col1, col0 AS col1 FROM tab1 AS cor0
----
-63
51
-63
85
-63
91

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

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

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT ( + col2 * - 67 ) IS NULL
----
14
47
5

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

query I rowsort
SELECT ALL 16 * - col1 FROM tab0 AS cor0
----
-1296
-16
-336

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

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

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

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

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

query I rowsort
SELECT DISTINCT col2 * + 86 FROM tab0
----
4042
8514
860

query I rowsort
SELECT + col0 * col1 + - - col2 FROM tab2 AS cor0
----
2369
4968
5083

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1078
SELECT DISTINCT - col0 + - CAST( - + col0 AS SIGNED ) * - col0 col0 FROM tab0 AS cor0
----
-240
-7656
-9506

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1078
SELECT DISTINCT - col0 + - CAST ( - + col0 AS INTEGER ) * - col0 col0 FROM tab0 AS cor0
----
-240
-7656
-9506

query I rowsort
SELECT DISTINCT + - 28 + - + 70 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-98

query I rowsort
SELECT ALL + ( 42 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT + col1 * 83 AS col0 FROM tab1 AS cor0
----
1162
3901
415

query I rowsort
SELECT DISTINCT - col1 * + + 66 FROM tab1 AS cor0
----
-3102
-330
-924

onlyif mysql # DIV for integer division: 
query I rowsort label-1083
SELECT + col1 * + + col1 * + col1 - - col2 * - + col0 DIV + col0 AS col0 FROM tab0 cor0
----
-98
531394
9251

skipif mysql # not compatible
query I rowsort label-1083
SELECT + col1 * + + col1 * + col1 - - col2 * - + col0 / + col0 AS col0 FROM tab0 cor0
----
-98
531394
9251

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT - COUNT( * ) - + 2 AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1085
SELECT - COUNT ( * ) - + 2 AS col1 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT DISTINCT + 55 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----

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

skipif mysql # not compatible
query I rowsort label-1087
SELECT ALL + COUNT ( + + ( + col2 ) ) AS col2 FROM tab2 WHERE NOT col1 <> - col1
----
0

query I rowsort
SELECT DISTINCT - 27 + - + col0 FROM tab1
----
-112
-118
-78

query I rowsort
SELECT col0 + - ( + col0 ) AS col0 FROM tab1
----
0
0
0

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

query III rowsort
SELECT DISTINCT - col2 AS col2, col1 + ( - 43 ) AS col2, col2 FROM tab0
----
9 values hashing to 229ecc357c382915288d5c873256d38c

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

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL + CAST ( + + ( + COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab0
----
3

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1095
SELECT 20 AS col1, col0 * 98 * 42 DIV - col1 AS col2 FROM tab1
----
20
-14994
20
-69972
20
-7969

skipif mysql # not compatible
query II rowsort label-1095
SELECT 20 AS col1, col0 * 98 * 42 / - col1 AS col2 FROM tab1
----
20
-14994
20
-69972
20
-7969

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

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

query I rowsort
SELECT ALL + - 28 * + 0 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL col1 AS col1, + 62 AS col1 FROM tab0 AS cor0
----
1
62
21
62
81
62

query II rowsort
SELECT DISTINCT + + col2, - 86 + + - 68 FROM tab1 AS cor0
----
59
-154
68
-154
96
-154

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col0, ( + ( col1 ) ) FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
-51
14
-85
5
-91
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1103
SELECT col1 DIV - col1 + 8 AS col0 FROM tab1 AS cor0
----
7
7
7

skipif mysql # not compatible
query I rowsort label-1103
SELECT col1 / - col1 + 8 AS col0 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT - col0 * + col2 + - col1 + + col0 AS col0 FROM tab0 AS cor0
----
-771
-804
-9507

query I rowsort
SELECT DISTINCT - 77 + + + col2 FROM tab2
----
-19
-37
-54

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

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

skipif mysql # not compatible
query I rowsort label-1107
SELECT DISTINCT - CAST ( - 93 AS INTEGER ) FROM tab0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1108
SELECT DISTINCT col2 / 89 - + + col2 + + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) * + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE 16 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT col2 / 89 - + + col2 + + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE 16 IS NOT NULL
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1110
SELECT DISTINCT MIN( ALL 57 ) FROM tab2 WHERE NOT - - col0 * - 8 + + 5 + + 53 * + ( - 43 ) * + - CAST( + + 37 AS SIGNED ) * + col0 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1110
SELECT DISTINCT MIN ( ALL 57 ) FROM tab2 WHERE NOT - - col0 * - 8 + + 5 + + 53 * + ( - 43 ) * + - CAST ( + + 37 AS INTEGER ) * + col0 <> NULL
----
NULL

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col0 / 87 * + 18 * + col1 * 84 + - 17 + col1 NOT IN ( + - col2, - 12, 11 + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 85 - 1 FROM tab2 AS cor0
----
-86
-86
-86

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT + SUM( + col1 ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-1116
SELECT + SUM ( + col1 ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
585

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

query I rowsort
SELECT - 89 * + + col2 FROM tab2 AS cor0
----
-2047
-3560
-5162

onlyif mysql # aggregate syntax: 
query I rowsort label-1119
SELECT 6 * - MIN( ALL - col0 ) FROM tab0
----
582

skipif mysql # not compatible
query I rowsort label-1119
SELECT 6 * - MIN ( ALL - col0 ) FROM tab0
----
582

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col0 - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - col1 ) * - col2 + + col0 FROM tab2
----
-1127
-3016
-3811

onlyif mysql # DIV for integer division: 
query I rowsort label-1123
SELECT DISTINCT + col0 DIV ( + col1 ) AS col0 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-1123
SELECT DISTINCT + col0 / ( + col1 ) AS col0 FROM tab1
----
1
17
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( + col1 ) >= - - 50
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 80 * col0 AS col1 FROM tab1
----
4080
6800
7280

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 76 * + col1 col0 FROM tab0 AS cor0
----
-1596
-6156
-76

query I rowsort
SELECT - ( 22 ) FROM tab0 cor0
----
-22
-22
-22

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1129
SELECT DISTINCT - + COUNT( * ) + - 98 FROM tab2 AS cor0
----
-101

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT - + COUNT ( * ) + - 98 FROM tab2 AS cor0
----
-101

onlyif mysql # DIV for integer division: 
query I rowsort label-1130
SELECT + 80 DIV + col2 AS col1 FROM tab0 AS cor0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-1130
SELECT + 80 / + col2 AS col1 FROM tab0 AS cor0
----
0
1
8

query I rowsort
SELECT ALL - + 25 + col1 FROM tab1 AS cor0
----
-11
-20
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1132
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE CAST( + + col2 AS SIGNED ) >= - 98
----
-3

skipif mysql # not compatible
query I rowsort label-1132
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE CAST ( + + col2 AS INTEGER ) >= - 98
----
-3

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

query I rowsort
SELECT - col2 FROM tab1 WHERE - col0 > - col0
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 WHERE - col2 * + 31 + - col1 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT - COUNT( ALL + col1 ) + 64 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-1137
SELECT - COUNT ( ALL + col1 ) + 64 FROM tab2
----
61

query I rowsort
SELECT 54 * col1 + + - col1 AS col2 FROM tab2
----
2703
3551
4081

query I rowsort
SELECT - col2 * col2 + + - 89 FROM tab0
----
-189
-2298
-9890

query II rowsort
SELECT - col1 + 22 AS col1, - ( + + col1 ) AS col1 FROM tab1
----
-25
-47
17
-5
8
-14

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

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

query I rowsort
SELECT + + col2 + + col2 AS col1 FROM tab1 cor0
----
118
136
192

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

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT NULL = ( NULL )
----

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

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

query I rowsort
SELECT ALL - + 66 + col0 FROM tab1 AS cor0
----
-15
19
25

query I rowsort
SELECT DISTINCT 63 - col0 FROM tab0 AS cor0
----
-24
-34
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 - + - ( + col0 ) AS col1, + 91 * col2 * - + col0 col1 FROM tab0 AS cor0
----
196
-873873
62
-64155
97
-79170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1149
SELECT ALL - SUM( + CAST( NULL AS SIGNED ) ) - + 71 FROM tab2 cor0
----
NULL

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

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

query I rowsort
SELECT - + col0 * + 74 AS col2 FROM tab1 cor0 WHERE NOT - ( + 92 ) <> col1 * + - 33 * 58 + col2
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1153
SELECT ALL + 75 * + - 68 * + COUNT( * ) DIV COUNT( * ) * - 44 AS col1 FROM tab0 AS cor0
----
224400

skipif mysql # not compatible
query I rowsort label-1153
SELECT ALL + 75 * + - 68 * + COUNT ( * ) / COUNT ( * ) * - 44 AS col1 FROM tab0 AS cor0
----
224400

query II rowsort
SELECT + 58 * + 51 * + col0 AS col0, 26 AS col0 FROM tab0 AS cor0
----
257346
26
286926
26
44370
26

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

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

query II rowsort
SELECT 83 * col2, col0 * - - col1 AS col1 FROM tab1
----
4897
425
5644
4277
7968
714

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1157
SELECT col2 * + - col0 AS col1, + CAST( - 82 AS SIGNED ) FROM tab2
----
-1058
-82
-2560
-82
-4350
-82

skipif mysql # not compatible
query II rowsort label-1157
SELECT col2 * + - col0 AS col1, + CAST ( - 82 AS INTEGER ) FROM tab2
----
-1058
-82
-2560
-82
-4350
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT DISTINCT + SUM( ALL - 4 ) FROM tab2 WHERE NOT + col2 IS NULL
----
-12

skipif mysql # not compatible
query I rowsort label-1158
SELECT DISTINCT + SUM ( ALL - 4 ) FROM tab2 WHERE NOT + col2 IS NULL
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-1159
SELECT ALL SUM( ALL 89 ) AS col1 FROM tab0 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-1159
SELECT ALL SUM ( ALL 89 ) AS col1 FROM tab0 AS cor0
----
267

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1160
SELECT ALL 11 DIV - + COUNT( * ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1160
SELECT ALL 11 / - + COUNT ( * ) FROM tab2
----
-3

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

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

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

query I rowsort
SELECT ALL col2 * - + 11 AS col0 FROM tab0 cor0
----
-1089
-110
-517

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1165
SELECT col2 + + CAST( + col1 AS SIGNED ) * col2 - ( - - col1 ) + + CAST( + + col0 AS SIGNED ) FROM tab1 AS cor0
----
1477
3308
434

skipif mysql # not compatible
query I rowsort label-1165
SELECT col2 + + CAST ( + col1 AS INTEGER ) * col2 - ( - - col1 ) + + CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0
----
1477
3308
434

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 AND + col2 / - - 18
----

query I rowsort
SELECT ALL - 11 + - ( + - col1 ) FROM tab2 AS cor0
----
40
56
66

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1169
SELECT DISTINCT + 68 + + + COUNT( * ) DIV + 28 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-1169
SELECT DISTINCT + 68 + + + COUNT ( * ) / + 28 FROM tab1
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-1170
SELECT DISTINCT - col2 + - - col2 DIV + + col1 FROM tab0
----
-10
-47
0

skipif mysql # not compatible
query I rowsort label-1170
SELECT DISTINCT - col2 + - - col2 / + + col1 FROM tab0
----
-10
-47
0

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

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

query I rowsort
SELECT DISTINCT + col0 * - col1 + - col1 FROM tab0
----
-1296
-1848
-98

query I rowsort
SELECT + col0 * - 10 AS col1 FROM tab2
----
-460
-640
-750

query I rowsort
SELECT ALL 84 + + 43 AS col1 FROM tab2
----
127
127
127

onlyif mysql # aggregate syntax: 
query I rowsort label-1175
SELECT - SUM( - + col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-1175
SELECT - SUM ( - + col0 ) FROM tab1
----
227

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 46 > + col2 * + - 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1177
SELECT ALL + SUM( + col1 ) FROM tab1 AS cor0 WHERE NOT col2 >= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1177
SELECT ALL + SUM ( + col1 ) FROM tab1 AS cor0 WHERE NOT col2 >= + col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1179
SELECT DISTINCT CAST( - 88 AS SIGNED ) + + + 97 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-1179
SELECT DISTINCT CAST ( - 88 AS INTEGER ) + + + 97 FROM tab2
----
9

query II rowsort
SELECT DISTINCT + + 51 AS col0, ( - + 25 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
51
-25

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1181
SELECT DISTINCT - + CAST( + - CAST( - col2 AS DECIMAL ) AS SIGNED ) FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-1181
SELECT DISTINCT - + CAST ( + - CAST ( - col2 AS REAL ) AS INTEGER ) FROM tab1 cor0
----
-59
-68
-96

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT + col0 <= - + col0 + 64
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT - COUNT( * ) * 54 AS col0 FROM tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-1183
SELECT - COUNT ( * ) * 54 AS col0 FROM tab2 AS cor0
----
-162

query I rowsort
SELECT - 25 * - - 95 + + - ( 11 ) * - 45 - col2 AS col2 FROM tab0 cor0
----
-1890
-1927
-1979

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

query I rowsort
SELECT + ( - 80 ) * + col0 AS col2 FROM tab0
----
-1200
-6960
-7760

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT ALL MIN( - 23 ) AS col0 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-1187
SELECT ALL MIN ( - 23 ) AS col0 FROM tab0
----
-23

query II rowsort
SELECT ALL - col1 AS col2, col0 + - - col1 * - + 93 AS col1 FROM tab1
----
-14
-1251
-47
-4280
-5
-380

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1191
SELECT DISTINCT + MIN( + col2 ) FROM tab2 WHERE - col1 IS NOT NULL
----
23

skipif mysql # not compatible
query I rowsort label-1191
SELECT DISTINCT + MIN ( + col2 ) FROM tab2 WHERE - col1 IS NOT NULL
----
23

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

query I rowsort
SELECT col0 * + + 59 FROM tab0 AS cor0
----
5133
5723
885

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

query I rowsort
SELECT 39 * ( - + ( - col0 ) ) FROM tab2
----
1794
2496
2925

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

skipif mysql # not compatible
query I rowsort label-1196
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT 37 IS NOT NULL
----

query I rowsort
SELECT col0 * - col2 * - 39 AS col2 FROM tab2 AS cor0
----
169650
41262
99840

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

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

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

query I rowsort
SELECT ALL + + col1 * + col2 - col2 * col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1201
SELECT - 20 DIV col0 - col0 * col0 DIV - col2 - col1 col2 FROM tab0 cor0
----
-78
735
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1201
SELECT - 20 / col0 - col0 * col0 / - col2 - col1 col2 FROM tab0 cor0
----
-78
735
94

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < 64
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1203
SELECT DISTINCT 94 * - CAST( NULL AS SIGNED ) * 21 * - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1203
SELECT DISTINCT 94 * - CAST ( NULL AS INTEGER ) * 21 * - col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col2 + - + 40 AS col1 FROM tab0
----
-139
-50
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-1205
SELECT DISTINCT + 38 + - col1 DIV - 55 FROM tab2
----
38
39

skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT + 38 + - col1 / - 55 FROM tab2
----
38
39

query I rowsort
SELECT DISTINCT + col1 - 24 AS col1 FROM tab1
----
-10
-19
23

query II rowsort
SELECT ALL col0 * + col1 + - + 72, col2 + - - col1 AS col2 FROM tab1
----
353
64
4205
115
642
110

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1210
SELECT DISTINCT 93 - + COUNT( * ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-1210
SELECT DISTINCT 93 - + COUNT ( * ) FROM tab0
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + col0 + - col0 * - col2 col1 FROM tab0
----
-6699
194
480

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab2 WHERE NOT 71 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1213
SELECT ALL COUNT( * ) * - COUNT( * ) + - 40 + 73 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-1213
SELECT ALL COUNT ( * ) * - COUNT ( * ) + - 40 + 73 FROM tab0
----
24

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

query I rowsort
SELECT + + col1 + - + 90 FROM tab0 cor0
----
-69
-89
-9

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 97 NOT BETWEEN NULL AND NULL
----

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

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

query II rowsort
SELECT ALL - 78, + col1 FROM tab2
----
-78
51
-78
67
-78
77

query II rowsort
SELECT 83 AS col1, col1 * - col2 * + 78 + - 18 + - - col2 AS col1 FROM tab1
----
83
-104754
83
-22969
83
-249238

query III rowsort
SELECT * FROM tab0 cor0 WHERE 61 IS NULL AND NOT NULL IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - ( + - 27 ) FROM tab0 AS cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1224
SELECT DISTINCT - 30 AS col0, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-30
NULL

skipif mysql # not compatible
query II rowsort label-1224
SELECT DISTINCT - 30 AS col0, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-30
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1225
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( 57 AS SIGNED ) * + 6 * - + 71 + - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1225
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( 57 AS INTEGER ) * + 6 * - + 71 + - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1226
SELECT ALL + - col2 DIV - col2 + col1 * col2 * - + col1 FROM tab0 AS cor0
----
-308366
-4409
-98

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL + - col2 / - col2 + col1 * col2 * - + col1 FROM tab0 AS cor0
----
-308366
-4409
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1227
SELECT ALL - MIN( - col0 ) * 40 + - 18 - + 10 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> col0 / + 5
----
NULL

skipif mysql # not compatible
query I rowsort label-1227
SELECT ALL - MIN ( - col0 ) * 40 + - 18 - + 10 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> col0 / + 5
----
NULL

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

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

query I rowsort
SELECT - 38 * + ( - + col2 ) FROM tab0
----
1786
3762
380

onlyif mysql # aggregate syntax: 
query II rowsort label-1230
SELECT DISTINCT SUM( - 46 ) AS col1, 31 AS col0 FROM tab1
----
-138
31

skipif mysql # not compatible
query II rowsort label-1230
SELECT DISTINCT SUM ( - 46 ) AS col1, 31 AS col0 FROM tab1
----
-138
31

onlyif mysql # DIV for integer division: 
query II rowsort label-1231
SELECT - col0 * - - col2, 40 DIV + col2 col0 FROM tab0
----
-705
0
-870
4
-9603
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1231
SELECT - col0 * - - col2, 40 / + col2 col0 FROM tab0
----
-705
0
-870
4
-9603
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1232
SELECT SUM( - col0 ) / + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1233
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + CAST( - + col2 AS SIGNED ) * + 60
----

skipif mysql # not compatible
query III rowsort label-1233
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + CAST ( - + col2 AS INTEGER ) * + 60
----

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

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

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

query II rowsort
SELECT col0, col1 * col1 * - col2 FROM tab2
----
46
-59823
64
-237160
75
-260362

onlyif mysql # aggregate syntax: 
query I rowsort label-1238
SELECT + 56 * - COUNT( * ) + - + 78 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-582

skipif mysql # not compatible
query I rowsort label-1238
SELECT + 56 * - COUNT ( * ) + - + 78 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-582

query I rowsort
SELECT DISTINCT col1 * + + 73 FROM tab2
----
3723
4891
5621

query I rowsort
SELECT col2 * col0 FROM tab0 AS cor0 WHERE col1 / col2 IS NULL
----

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1244
SELECT COUNT ( * ) * - MAX ( DISTINCT - + col2 ) AS col1 FROM tab0 AS cor0
----
30

query I rowsort
SELECT DISTINCT col1 * 84 * + + col2 - - col2 + + 29 AS col1 FROM tab1 AS cor0
----
113021
24868
268561

query I rowsort
SELECT DISTINCT + 21 - + - 68 AS col0 FROM tab0
----
89

query I rowsort
SELECT DISTINCT + col2 - - - 43 FROM tab0 AS cor0
----
-33
4
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 93 * col0 col2 FROM tab0
----
1395
8091
9021

query I rowsort
SELECT ALL col1 * + 38 AS col0 FROM tab0
----
3078
38
798

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

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

query I rowsort
SELECT - ( 3 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

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

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

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

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

query I rowsort
SELECT - - col2 * 23 AS col2 FROM tab2 cor0
----
1334
529
920

onlyif mysql # aggregate syntax: 
query II rowsort label-1256
SELECT ALL - 89 AS col1, - COUNT( * ) + ( - COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-89
-6

skipif mysql # not compatible
query II rowsort label-1256
SELECT ALL - 89 AS col1, - COUNT ( * ) + ( - COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-89
-6

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, 53 * + col0 FROM tab0
----
15
795
87
4611
97
5141

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + - col1 >= + 3
----
15
81
47

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1263
SELECT DISTINCT 68 * - CAST( NULL AS SIGNED ) * - 80 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1263
SELECT DISTINCT 68 * - CAST ( NULL AS INTEGER ) * - 80 FROM tab1
----
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 / + 26 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT + + COUNT( * ) * 65 FROM tab2 WHERE + 69 * col1 * + 3 + col1 > - 69 * - 42 - - - col1
----
195

skipif mysql # not compatible
query I rowsort label-1267
SELECT + + COUNT ( * ) * 65 FROM tab2 WHERE + 69 * col1 * + 3 + col1 > - 69 * - 42 - - - col1
----
195

query I rowsort
SELECT - 21 * 15 AS col2 FROM tab2 AS cor0
----
-315
-315
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-1269
SELECT DISTINCT + 4 * - COUNT( * ) - - - 49 AS col1 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-1269
SELECT DISTINCT + 4 * - COUNT ( * ) - - - 49 AS col1 FROM tab0 AS cor0
----
-61

onlyif mysql # aggregate syntax: 
query II rowsort label-1270
SELECT DISTINCT COUNT( - - 90 ) col2, MIN( DISTINCT + ( 25 ) ) * - MIN( col2 ) - MAX( + col0 ) FROM tab2 AS cor0
----
3
-650

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1270
SELECT DISTINCT COUNT ( - - 90 ) col2, MIN ( DISTINCT + ( 25 ) ) * - MIN ( col2 ) - MAX ( + col0 ) FROM tab2 AS cor0
----
3
-650

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1271
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( ( col2 ), - CAST( - - 26 AS DECIMAL ), - col2 / - ( - 95 ) * col0 * - + col2 + + - 28 - - - 56 * - - 72, col2, + col2 / + + 13 + - col1 )
----

skipif mysql # not compatible
query III rowsort label-1271
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( ( col2 ), - CAST ( - - 26 AS REAL ), - col2 / - ( - 95 ) * col0 * - + col2 + + - 28 - - - 56 * - - 72, col2, + col2 / + + 13 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1272
SELECT ALL - MIN( DISTINCT + + 80 ) AS col1 FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL - MIN ( DISTINCT + + 80 ) AS col1 FROM tab0 AS cor0
----
-80

query I rowsort
SELECT ALL - 44 + - col1 * col1 FROM tab0 AS cor0
----
-45
-485
-6605

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

query I rowsort
SELECT col2 + 70 FROM tab1
----
129
138
166

onlyif mysql # aggregate syntax: 
query I rowsort label-1276
SELECT - - SUM( + 16 ) FROM tab1 WHERE - ( + ( + + col2 ) ) IS NOT NULL
----
48

skipif mysql # not compatible
query I rowsort label-1276
SELECT - - SUM ( + 16 ) FROM tab1 WHERE - ( + ( + + col2 ) ) IS NOT NULL
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1277
SELECT + COUNT( DISTINCT + col0 ) + + 3 + + + MAX( + col2 ) + - + COUNT( * ) AS col0 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-1277
SELECT + COUNT ( DISTINCT + col0 ) + + 3 + + + MAX ( + col2 ) + - + COUNT ( * ) AS col0 FROM tab1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT COUNT( * ) + - MIN( DISTINCT - 16 ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-1278
SELECT COUNT ( * ) + - MIN ( DISTINCT - 16 ) FROM tab2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT - MIN( + - 33 ) AS col1 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-1279
SELECT - MIN ( + - 33 ) AS col1 FROM tab0
----
33

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < + col2 / - - col1
----

onlyif mysql # DIV for integer division: 
query III rowsort label-1281
SELECT DISTINCT + col0 * + col2 DIV - + col2 AS col2, + ( col1 ) + - + 85, 49 DIV - 47 AS col2 FROM tab1 AS cor0
----
9 values hashing to 8c8f501a25d38b5ff414ea9ad0f1d406

skipif mysql # not compatible
query III rowsort label-1281
SELECT DISTINCT + col0 * + col2 / - + col2 AS col2, + ( col1 ) + - + 85, 49 / - 47 AS col2 FROM tab1 AS cor0
----
9 values hashing to 8c8f501a25d38b5ff414ea9ad0f1d406

query I rowsort
SELECT DISTINCT - 90 FROM tab0 AS cor0 WHERE NOT - 28 / col2 > + + col2 * + - ( + col0 ) * + col0 + 31 + - ( col1 ) + - col2
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT - col2 <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT 39 - + COUNT( * ) * - 37 AS col1 FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-1284
SELECT 39 - + COUNT ( * ) * - 37 AS col1 FROM tab2
----
150

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

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

query I rowsort
SELECT DISTINCT - 2 + 87 * - 15 FROM tab1 WHERE NOT + col1 - + 39 IS NULL
----
-1307

onlyif mysql # aggregate syntax: 
query I rowsort label-1287
SELECT - MAX( col0 ) FROM tab1 WHERE - col1 + col2 * 19 IN ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1287
SELECT - MAX ( col0 ) FROM tab1 WHERE - col1 + col2 * 19 IN ( - col2 )
----
NULL

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

query I rowsort
SELECT - ( + col2 ) * + ( + col1 + - 76 ) FROM tab1
----
1972
4189
5952

query I rowsort
SELECT + col2 - col1 * - 80 FROM tab0
----
1690
179
6527

query I rowsort
SELECT - col0 * - col1 FROM tab1 WHERE ( - ( + 44 ) ) - col1 IS NOT NULL
----
425
4277
714

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 43 - - 51 * col1 ) >= - col2 + + 12
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 WHERE ( 26 / + 45 ) < ( - col2 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT DISTINCT MIN( col0 ) * - 67 FROM tab0
----
-1005

skipif mysql # not compatible
query I rowsort label-1296
SELECT DISTINCT MIN ( col0 ) * - 67 FROM tab0
----
-1005

query I rowsort
SELECT ALL col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 * + col0 + - 23 AS col0 FROM tab0
----
-728
-893
-9626

onlyif mysql # DIV for integer division: 
query I rowsort label-1299
SELECT ALL - 7 DIV col2 AS col0 FROM tab0 WHERE 34 NOT IN ( col0 * col2 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1299
SELECT ALL - 7 / col2 AS col0 FROM tab0 WHERE 34 NOT IN ( col0 * col2 )
----
0
0
0

query I rowsort
SELECT - 79 * - 4 FROM tab0 AS cor0
----
316
316
316

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE col2 > 50
----
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1302
SELECT ALL CAST( col0 AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT ( - 54 ) < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL CAST ( col0 AS REAL ) FROM tab0 AS cor0 WHERE NOT ( - 54 ) < ( NULL )
----

query I rowsort
SELECT DISTINCT + 79 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NOT NULL IS NOT NULL
----
79

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE ( col2 ) IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1306
SELECT DISTINCT CAST( AVG ( - 55 ) AS SIGNED ) - 54 col1 FROM tab0 AS cor0
----
-109

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1306
SELECT DISTINCT CAST ( AVG ( - 55 ) AS INTEGER ) - 54 col1 FROM tab0 AS cor0
----
-109

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1309
SELECT ALL + + 0 + + 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-1309
SELECT ALL + + 0 + + CAST ( NULL AS INTEGER ) * col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col0 ) <= - col0
----

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

query I rowsort
SELECT col2 - col0 + - col2 * col1 FROM tab1
----
-1299
-321
-3219

query I rowsort
SELECT ( + 20 ) AS col2 FROM tab2 WHERE NOT ( + 28 ) IS NULL
----
20
20
20

query I rowsort
SELECT + + 41 FROM tab2 cor0
----
41
41
41

query I rowsort
SELECT DISTINCT - col1 * + 24 AS col1 FROM tab1 AS cor0
----
-1128
-120
-336

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1317
SELECT + ( CAST ( col2 AS INTEGER ) ) + 50 col2 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col1 ) * + + 38 col0 FROM tab1 AS cor0
----
-1786
-190
-532

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + - col1 col0 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-1321
SELECT DISTINCT + 42 DIV - col0 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1321
SELECT DISTINCT + 42 / - col0 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1322
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) - + col2 * 12 > NULL
----

skipif mysql # not compatible
query III rowsort label-1322
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) - + col2 * 12 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1323
SELECT * FROM tab1 cor0 WHERE NOT NULL > ( + CAST( NULL AS SIGNED ) - - col1 )
----

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

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

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 AS cor0 WHERE col1 + - col1 BETWEEN + 85 AND col2 * - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1326
SELECT MIN( DISTINCT + CAST( + - ( + col2 ) AS SIGNED ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-1326
SELECT MIN ( DISTINCT + CAST ( + - ( + col2 ) AS INTEGER ) ) FROM tab2
----
-58

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

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

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

query I rowsort
SELECT ALL col2 + + col2 * 53 FROM tab1
----
3186
3672
5184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 + + col1 + - col1 col2 FROM tab0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 + - col0 / + ( col0 + col1 ) col1 FROM tab1 WHERE ( + 11 ) IN ( - col2 + + 75 / col2 )
----

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

skipif mysql # not compatible
query I rowsort label-1332
SELECT ALL MAX ( - 40 ) AS col2 FROM tab0
----
-40

onlyif mysql # DIV for integer division: 
query I rowsort label-1333
SELECT - 56 + 10 * 69 DIV - col0 FROM tab1
----
-63
-64
-69

skipif mysql # not compatible
query I rowsort label-1333
SELECT - 56 + 10 * 69 / - col0 FROM tab1
----
-63
-64
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-1334
SELECT DISTINCT SUM( ALL + col2 ) AS col1, + COUNT( * ) AS col1 FROM tab2
----
121
3

skipif mysql # not compatible
query II rowsort label-1334
SELECT DISTINCT SUM ( ALL + col2 ) AS col1, + COUNT ( * ) AS col1 FROM tab2
----
121
3

query I rowsort
SELECT - 86 + - 80 FROM tab2 AS cor0
----
-166
-166
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT ALL MIN( + col0 ) * - - 63 AS col0 FROM tab2 AS cor0
----
2898

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL MIN ( + col0 ) * - - 63 AS col0 FROM tab2 AS cor0
----
2898

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE ( NOT + col0 / 71 NOT BETWEEN 55 + - col2 AND col2 )
----
58

query I rowsort
SELECT DISTINCT + col0 + 92 + - col2 AS col0 FROM tab1 cor0
----
115
118
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1339
SELECT ALL - ( ( col0 ) ) * + + CAST( col0 AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
-262144
-421875
-97336

skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL - ( ( col0 ) ) * + + CAST ( col0 AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
-262144
-421875
-97336

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

query I rowsort
SELECT ALL + 34 * col0 + + col0 FROM tab0
----
3045
3395
525

query I rowsort
SELECT ( col1 ) - - + 61 FROM tab1
----
108
66
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * col0 / - col2 < ( NULL )
----

query I rowsort
SELECT DISTINCT col2 - col1 + + col0 AS col1 FROM tab1 AS cor0
----
112
133
139

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1346
SELECT - ( + 69 ) DIV - + 33 AS col1 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1346
SELECT - ( + 69 ) / - + 33 AS col1 FROM tab2 AS cor0
----
2
2
2

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1349
SELECT + COUNT ( * ) col1, + ( 15 ) FROM tab0
----
3
15

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

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

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NOT ( + + 41 + + col2 ) <> - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1353
SELECT - 17, SUM( 64 ) DIV 19 AS col0 FROM tab2
----
-17
10

skipif mysql # not compatible
query II rowsort label-1353
SELECT - 17, SUM ( 64 ) / 19 AS col0 FROM tab2
----
-17
10

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

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

query II rowsort
SELECT ALL - col0 AS col1, + 71 AS col2 FROM tab1
----
-51
71
-85
71
-91
71

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - 39 ) IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1358
SELECT DISTINCT 20 AS col1, + CAST( NULL AS SIGNED ) * + 29 AS col1 FROM tab2 AS cor0
----
20
NULL

skipif mysql # not compatible
query II rowsort label-1358
SELECT DISTINCT 20 AS col1, + CAST ( NULL AS INTEGER ) * + 29 AS col1 FROM tab2 AS cor0
----
20
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, - 7 AS col1 FROM tab2 AS cor0
----
-46
-7
-64
-7
-75
-7

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

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

query I rowsort
SELECT DISTINCT - + col2 * + - col0 + - 71 FROM tab0 AS cor0
----
634
799
9532

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT + MAX( - 62 ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-62

skipif mysql # not compatible
query I rowsort label-1362
SELECT + MAX ( - 62 ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 95 * - 14 col2 FROM tab0 AS cor0
----
1330
1330
1330

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1364
SELECT ALL - CAST( col1 AS SIGNED ) - 39 FROM tab2 AS cor0 WHERE col2 <> - + 82 + col1 + + + 57 + - 50 / + 40
----
-106
-116
-90

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL - CAST ( col1 AS INTEGER ) - 39 FROM tab2 AS cor0 WHERE col2 <> - + 82 + col1 + + + 57 + - 50 / + 40
----
-106
-116
-90

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT + 14 + + + COUNT( * ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-1367
SELECT + 14 + + + COUNT ( * ) FROM tab2 AS cor0
----
17

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

query I rowsort
SELECT + - col1 * - ( + col0 ) * 67 + + ( col2 ) * - col0 AS col1 FROM tab1 AS cor0
----
23460
280371
42942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1370
SELECT DISTINCT - CAST( - ( 56 ) AS SIGNED ) col2 FROM tab1 AS cor0 WHERE col1 * - col0 <> ( - - 42 ) + - + 83 * - + 95 + + col1
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1370
SELECT DISTINCT - CAST ( - ( 56 ) AS INTEGER ) col2 FROM tab1 AS cor0 WHERE col1 * - col0 <> ( - - 42 ) + - + 83 * - + 95 + + col1
----
56

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 * + 91 + + col1 col0 FROM tab0
----
-2467
-2527
-2547

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * - col2 * 55 <= + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * - col0 * + 64 FROM tab1
----
313344
320960
396032

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT ALL 38 + COUNT( * ) AS col0 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL 38 + COUNT ( * ) AS col0 FROM tab1
----
41

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

query I rowsort
SELECT DISTINCT 65 * + + col2 AS col1 FROM tab0
----
3055
6435
650

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

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

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

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

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

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

query I rowsort
SELECT - 93 - - - 65 FROM tab1 AS cor0
----
-158
-158
-158

query I rowsort
SELECT ALL + 42 * - col2 FROM tab1 AS cor0
----
-2478
-2856
-4032

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1385
SELECT DISTINCT 68 DIV 81 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-1385
SELECT DISTINCT 68 / 81 FROM tab0 cor0
----
0

query I rowsort
SELECT - col0 + - col0 + 58 FROM tab0 AS cor0
----
-116
-136
28

query II rowsort
SELECT ALL - + col2 AS col0, - 4 * + 82 * col2 * col2 FROM tab2 AS cor0
----
-23
-173512
-40
-524800
-58
-1103392

query I rowsort
SELECT DISTINCT 7 AS col1 FROM tab0, tab1 AS cor0
----
7

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 25 AND ( + 9 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT DISTINCT - - 87 * - + MAX( + 65 ) AS col0 FROM tab2 cor0
----
-5655

skipif mysql # not compatible
query I rowsort label-1393
SELECT DISTINCT - - 87 * - + MAX ( + 65 ) AS col0 FROM tab2 cor0
----
-5655

onlyif mysql # DIV for integer division: 
query I rowsort label-1394
SELECT DISTINCT ( + 81 ) DIV - col2 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1394
SELECT DISTINCT ( + 81 ) / - col2 FROM tab1 AS cor0
----
-1
0

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1398
SELECT - + col0 DIV + col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1398
SELECT - + col0 / + col0 FROM tab0 AS cor0
----
-1
-1
-1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1400
SELECT + 37 * + + SUM( + 16 ) col0, + 30 * + COUNT( * ) AS col1 FROM tab2
----
1776
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1400
SELECT + 37 * + + SUM ( + 16 ) col0, + 30 * + COUNT ( * ) AS col1 FROM tab2
----
1776
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1401
SELECT ALL + CAST( + MIN( DISTINCT 13 ) AS SIGNED ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-1401
SELECT ALL + CAST ( + MIN ( DISTINCT 13 ) AS INTEGER ) FROM tab1
----
13

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

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

query I rowsort
SELECT ALL + col1 * + col2 * - + col1 FROM tab0
----
-308367
-4410
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT - - COUNT( * ) * 67 FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-1404
SELECT - - COUNT ( * ) * 67 FROM tab2 AS cor0
----
201

query II rowsort
SELECT 16 + + 61, col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - + col1 * - 88 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 86 - + - 77 NOT BETWEEN ( - 12 ) AND NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1408
SELECT 99 DIV - 12 + ( + col1 ) * + + 85 AS col0 FROM tab0 AS cor0
----
1777
6877
77

skipif mysql # not compatible
query I rowsort label-1408
SELECT 99 / - 12 + ( + col1 ) * + + 85 AS col0 FROM tab0 AS cor0
----
1777
6877
77

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

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

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

skipif mysql # not compatible
query II rowsort label-1410
SELECT DISTINCT - COUNT ( * ), - COUNT ( DISTINCT + + col2 ) * + 37 AS col0 FROM tab2
----
-3
-111

query I rowsort
SELECT - 63 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1412
SELECT + + col0 DIV col1 - - - col2 FROM tab2 AS cor0
----
-23
-40
-57

skipif mysql # not compatible
query I rowsort label-1412
SELECT + + col0 / col1 - - - col2 FROM tab2 AS cor0
----
-23
-40
-57

query II rowsort
SELECT + - col0 AS col0, + col0 * + col1 * + - 78 AS col2 FROM tab2 AS cor0
----
-46
-182988
-64
-384384
-75
-391950

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT DISTINCT - + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col1 <> - col2
----
0

skipif mysql # not compatible
query I rowsort label-1414
SELECT DISTINCT - + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col1 <> - col2
----
0

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

query I rowsort
SELECT - 30 * + col0 * col1 FROM tab0 AS cor0
----
-2910
-36450
-54810

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT DISTINCT - ( MIN( + col2 ) ) AS col0 FROM tab2 AS cor0 WHERE 50 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1418
SELECT DISTINCT - ( MIN ( + col2 ) ) AS col0 FROM tab2 AS cor0 WHERE 50 NOT BETWEEN NULL AND NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT + + SUM ( - + 36 ) * + COUNT ( * ) - - - 10 AS col0 FROM tab0 AS cor0
----
-334

query I rowsort
SELECT DISTINCT + + col1 + + ( - col2 ) + - 13 FROM tab2 cor0
----
-4
15
24

query I rowsort
SELECT 2 * - 39 FROM tab0, tab2 AS cor0
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT ALL 92 AS col1 FROM tab0, tab2 cor0
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT DISTINCT - col0 - + + 30 * - 62 * - col2 FROM tab2
----
-107955
-42826
-74464

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1425
SELECT ALL MAX( - - col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1425
SELECT ALL MAX ( - - col0 ) AS col0 FROM tab1
----
91

query I rowsort
SELECT col2 + col2 * - col0 * col1 AS col2 FROM tab1
----
-25016
-290768
-68448

onlyif mysql # aggregate syntax: 
query I rowsort label-1427
SELECT DISTINCT + COUNT( * ) * - + ( - + 29 ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-1427
SELECT DISTINCT + COUNT ( * ) * - + ( - + 29 ) FROM tab0
----
87

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

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

skipif mysql # not compatible
query I rowsort label-1429
SELECT MIN ( + 53 ) AS col2 FROM tab2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1430
SELECT ALL CAST( NULL AS SIGNED ) - - - 97 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1430
SELECT ALL CAST ( NULL AS INTEGER ) - - - 97 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 72 - - col2 FROM tab1
----
131
140
168

query I rowsort
SELECT - 68 + + 16 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

onlyif mysql # DIV for integer division: 
query I rowsort label-1433
SELECT DISTINCT 21 DIV + 75 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1433
SELECT DISTINCT 21 / + 75 AS col2 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( NULL ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-1435
SELECT + col1 AS col0, col2 DIV 97 FROM tab1 cor0
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-1435
SELECT + col1 AS col0, col2 / 97 FROM tab1 cor0
----
14
0
47
0
5
0

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

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

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

query I rowsort
SELECT DISTINCT + 81 * - col1 AS col0 FROM tab1 AS cor0
----
-1134
-3807
-405

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 53 + + 31 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 col2 FROM tab1
----
76
76
76

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT SUM( 16 ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-1443
SELECT SUM ( 16 ) FROM tab2
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1444
SELECT + CAST( - - MIN( DISTINCT + 35 ) AS SIGNED ) / + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1444
SELECT + CAST ( - - MIN ( DISTINCT + 35 ) AS INTEGER ) / + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 > - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1446
SELECT 29 + - + CAST( NULL AS SIGNED ) / + 45 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1446
SELECT 29 + - + CAST ( NULL AS INTEGER ) / + 45 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col0, - ( + col2 ) col2 FROM tab1
----
51
-96
85
-59
91
-68

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT + 16 + + col0 = 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + col0 ) = - + col1
----
3

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + col0 ) = - + col1
----
3

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

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

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

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

query I rowsort
SELECT 25 + + col1 FROM tab2 AS cor0
----
102
76
92

query I rowsort
SELECT DISTINCT + 97 + + col1 AS col2 FROM tab2
----
148
164
174

onlyif mysql # aggregate syntax: 
query II rowsort label-1455
SELECT COUNT( * ), 85 AS col2 FROM tab2
----
3
85

skipif mysql # not compatible
query II rowsort label-1455
SELECT COUNT ( * ), 85 AS col2 FROM tab2
----
3
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 + col2 col1 FROM tab1
----
2697
7284
8349

query I rowsort
SELECT ALL col2 - - + 90 FROM tab0
----
100
137
189

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

query I rowsort
SELECT ALL + 73 * - 16 - + col1 AS col0 FROM tab1 AS cor0
----
-1173
-1182
-1215

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 26 BETWEEN + - col0 AND col1
----
87
21
10
97
1
99

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

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

query I rowsort
SELECT ALL + col1 * - col1 * + 49 FROM tab2
----
-127449
-219961
-290521

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT MAX( 87 ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-1463
SELECT MAX ( 87 ) FROM tab0
----
87

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1468
SELECT DISTINCT 56 * COUNT( * ) FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-1468
SELECT DISTINCT 56 * COUNT ( * ) FROM tab1 AS cor0
----
168

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

query I rowsort
SELECT DISTINCT - col2 * ( + ( - + col2 ) ) FROM tab1
----
3481
4624
9216

query I rowsort
SELECT ALL + - 79 + col1 + 66 AS col0 FROM tab0 WHERE NOT - + 60 * - 20 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT + col1 / + - col0 FROM tab2
----
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1473
SELECT ALL + 45 col2, COUNT( * ) * MAX( ALL 39 ) FROM tab1
----
45
117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1473
SELECT ALL + 45 col2, COUNT ( * ) * MAX ( ALL 39 ) FROM tab1
----
45
117

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL < + col2 - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT - 0 + - - MIN( ALL - 48 ) + - - 12 col0 FROM tab2 cor0
----
-36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1475
SELECT - 0 + - - MIN ( ALL - 48 ) + - - 12 col0 FROM tab2 cor0
----
-36

query I rowsort
SELECT DISTINCT col2 * - 34 AS col1 FROM tab1 AS cor0
----
-2006
-2312
-3264

query I rowsort
SELECT + - col0 + + + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 29 * + col1 + + col2 FROM tab1
----
-1295
-310
-86

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

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

query I rowsort
SELECT DISTINCT 83 * 92 FROM tab1
----
7636

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT 15 * COUNT( * ) * - 53 FROM tab0 AS cor0
----
-2385

skipif mysql # not compatible
query I rowsort label-1481
SELECT 15 * COUNT ( * ) * - 53 FROM tab0 AS cor0
----
-2385

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 0 ) IS NULL
----

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

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

query I rowsort
SELECT col1 * - + col1 + + + 0 * + - 51 * col2 AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-1486
SELECT ALL + + COUNT( * ) FROM tab0 cor0 WHERE NOT col0 IN ( col0, col2 * + col0, - - 4, + 38 * - col2, col0 + col0 + - + col1, 4 )
----
0

skipif mysql # not compatible
query I rowsort label-1486
SELECT ALL + + COUNT ( * ) FROM tab0 cor0 WHERE NOT col0 IN ( col0, col2 * + col0, - - 4, + 38 * - col2, col0 + col0 + - + col1, 4 )
----
0

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

query II rowsort
SELECT - col2 * - 98, 95 / - 37 - + col2 FROM tab2 WHERE col2 + + col1 * - col1 BETWEEN NULL AND ( - col0 )
----

query I rowsort
SELECT ALL + 8 AS col1 FROM tab1 WHERE NOT + + ( + 0 ) * col1 IS NOT NULL
----

query I rowsort
SELECT ALL col2 + col2 * + col1 AS col2 FROM tab0
----
198
220
3854

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

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

query I rowsort
SELECT + col0 + + - 58 * - col0 AS col2 FROM tab0
----
5133
5723
885

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col1 >= + + col2
----
-3

skipif mysql # not compatible
query I rowsort label-1494
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col1 >= + + col2
----
-3

query II rowsort
SELECT DISTINCT - 13, col1 FROM tab2
----
-13
51
-13
67
-13
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 <> + 24
----

query II rowsort
SELECT 61 AS col2, col0 + - + 4 FROM tab1 AS cor0
----
61
47
61
81
61
87

query I rowsort
SELECT ALL - col2 * + 19 FROM tab1 AS cor0
----
-1121
-1292
-1824

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > col2 / + 44 * - - ( - 0 ) * - + col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1501
SELECT ALL - - CAST( - + col0 AS SIGNED ) 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-1501
SELECT ALL - - CAST ( - + col0 AS INTEGER ) col0 FROM tab1 AS cor0
----
-51
-85
-91

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

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

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

query II rowsort
SELECT ALL 24 AS col0, col0 AS col1 FROM tab2 AS cor0
----
24
46
24
64
24
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1505
SELECT + 94 * CAST( + col1 AS SIGNED ) FROM tab2
----
4794
6298
7238

skipif mysql # not compatible
query I rowsort label-1505
SELECT + 94 * CAST ( + col1 AS INTEGER ) FROM tab2
----
4794
6298
7238

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

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

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

query I rowsort
SELECT - col1 * + 21 * + ( - col0 ) AS col1 FROM tab1
----
14994
8925
89817

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

skipif mysql # not compatible
query I rowsort label-1509
SELECT - ( + col0 ) * CAST ( NULL AS INTEGER ) + + ( - col0 ) / + 32 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 58 IS NOT NULL
----

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL < + 99
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1514
SELECT DISTINCT - 52 DIV 31 AS col2 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1514
SELECT DISTINCT - 52 / 31 AS col2 FROM tab2 cor0
----
-1

query I rowsort
SELECT DISTINCT ( - 29 ) FROM tab1 AS cor0
----
-29

query I rowsort
SELECT + 35 + + 13 AS col0 FROM tab0 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT COUNT( * ) * 95 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-1517
SELECT COUNT ( * ) * 95 FROM tab0 AS cor0
----
285

onlyif mysql # DIV for integer division: 
query II rowsort label-1518
SELECT - col1 DIV + 91 * + - col1 * + + 96 AS col1, ( - + 99 ) AS col2 FROM tab0 AS cor0
----
0
-99
0
-99
0
-99

skipif mysql # not compatible
query II rowsort label-1518
SELECT - col1 / + 91 * + - col1 * + + 96 AS col1, ( - + 99 ) AS col2 FROM tab0 AS cor0
----
0
-99
0
-99
0
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-1519
SELECT DISTINCT + + 87 DIV + 25 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1519
SELECT DISTINCT + + 87 / + 25 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1520
SELECT col2, + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-1520
SELECT col2, + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT - SUM( - + 38 ) col2 FROM tab1, tab0 AS cor0
----
342

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1521
SELECT - SUM ( - + 38 ) col2 FROM tab1, tab0 AS cor0
----
342

query I rowsort
SELECT col2 * 82 FROM tab2
----
1886
3280
4756

query I rowsort
SELECT DISTINCT + col0 - - col0 AS col0 FROM tab1 WHERE NULL <= - col0 * - - 18
----

query I rowsort
SELECT DISTINCT - 50 * - col0 - 46 + + 36 FROM tab2
----
2290
3190
3740

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT DISTINCT COUNT( * ) * - - 98 - 50 * - 74 FROM tab1
----
3994

skipif mysql # not compatible
query I rowsort label-1525
SELECT DISTINCT COUNT ( * ) * - - 98 - 50 * - 74 FROM tab1
----
3994

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1526
SELECT DISTINCT col0 * + col2 - + col2 * col2 * - col0 * - - ( col2 ) + + CAST( + ( - col0 ) AS SIGNED ) + 66 FROM tab0
----
1558101
87849
94128575

skipif mysql # not compatible
query I rowsort label-1526
SELECT DISTINCT col0 * + col2 - + col2 * col2 * - col0 * - - ( col2 ) + + CAST ( + ( - col0 ) AS INTEGER ) + 66 FROM tab0
----
1558101
87849
94128575

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 + - - col2 * 65 + + col2 * 89 ) >= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT 7 * + - 70 AS col1 FROM tab2
----
-490
-490
-490

query I rowsort
SELECT ALL - - 26 AS col2 FROM tab1 AS cor0
----
26
26
26

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 * + - col0 * + col1 col0 FROM tab0 AS cor0
----
-3686
-46170
-69426

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

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

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

query I rowsort
SELECT DISTINCT + col0 + - 94 FROM tab1 AS cor0
----
-3
-43
-9

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

query I rowsort
SELECT ALL - col2 + col2 * + - col1 AS col1 FROM tab1 AS cor0
----
-1440
-3264
-354

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + + 88 col0 FROM tab2 AS cor0
----
134
152
163

query I rowsort
SELECT col2 + + - 83 FROM tab1 cor0
----
-15
-24
13

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1540
SELECT ALL col1 + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 WHERE - 45 / + 91 = 17
----

skipif mysql # not compatible
query I rowsort label-1540
SELECT ALL col1 + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 WHERE - 45 / + 91 = 17
----

query I rowsort
SELECT ALL 77 * - col2 AS col0 FROM tab2
----
-1771
-3080
-4466

query III rowsort
SELECT ALL * FROM tab2 WHERE + 97 <= - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1543
SELECT DISTINCT 62 * + COUNT( * ) col1 FROM tab1
----
186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1543
SELECT DISTINCT 62 * + COUNT ( * ) col1 FROM tab1
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT DISTINCT + 65 - COUNT( ALL - + col0 ) FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT + 65 - COUNT ( ALL - + col0 ) FROM tab1 AS cor0
----
62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1546
SELECT - 2 - + ( - + 89 ) - + COUNT( ALL 22 ) FROM tab2 cor0
----
84

skipif mysql # not compatible
query I rowsort label-1546
SELECT - 2 - + ( - + 89 ) - + COUNT ( ALL 22 ) FROM tab2 cor0
----
84

query II rowsort
SELECT 29 / + - 22, - col0 * col2 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT COUNT( * ) + 75 FROM tab1 AS cor0 WHERE NULL IS NULL
----
78

skipif mysql # not compatible
query I rowsort label-1548
SELECT COUNT ( * ) + 75 FROM tab1 AS cor0 WHERE NULL IS NULL
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT + COUNT( DISTINCT 5 ) - + - 79 + + 46 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-1549
SELECT + COUNT ( DISTINCT 5 ) - + - 79 + + 46 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT DISTINCT - 11 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-1550
SELECT DISTINCT - 11 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1551
SELECT - 16 + + 41 + - - CAST( - COUNT( * ) AS SIGNED ) DIV + COUNT( * ) AS col2 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-1551
SELECT - 16 + + 41 + - - CAST ( - COUNT ( * ) AS INTEGER ) / + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-1552
SELECT ALL - ( + col1 ) DIV - 25 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1552
SELECT ALL - ( + col1 ) / - 25 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + 42 + 94 FROM tab2 AS cor0
----
136

onlyif mysql # aggregate syntax: 
query I rowsort label-1554
SELECT DISTINCT - 52 + - COUNT( * ) AS col0 FROM tab1
----
-55

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT - 52 + - COUNT ( * ) AS col0 FROM tab1
----
-55

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NULL > + col2 * col0
----

query II rowsort
SELECT 49 AS col1, 12 FROM tab0
----
49
12
49
12
49
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT ALL COUNT( * ) * 76 AS col0 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-1557
SELECT ALL COUNT ( * ) * 76 AS col0 FROM tab0
----
228

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT DISTINCT MIN( DISTINCT - + col0 ) * - + COUNT( * ) + + + COUNT( * ) col0 FROM tab2
----
228

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1559
SELECT DISTINCT MIN ( DISTINCT - + col0 ) * - + COUNT ( * ) + + + COUNT ( * ) col0 FROM tab2
----
228

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1562
SELECT 4 AS col0, - MAX( - - col2 ) FROM tab1 AS cor0
----
4
-96

skipif mysql # not compatible
query II rowsort label-1562
SELECT 4 AS col0, - MAX ( - - col2 ) FROM tab1 AS cor0
----
4
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-1563
SELECT ALL - - col2 DIV - 30 FROM tab1 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL - - col2 / - 30 FROM tab1 AS cor0
----
-1
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT DISTINCT - - MAX( ALL col1 ) / 63 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1564
SELECT DISTINCT - - MAX ( ALL col1 ) / 63 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

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

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

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

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

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

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

query I rowsort
SELECT + 72 * + col2 + + 41 AS col2 FROM tab1 AS cor0
----
4289
4937
6953

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1570
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) DIV + COUNT( * ) FROM tab2 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1570
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) / + COUNT ( * ) FROM tab2 cor0
----
-4

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

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

query I rowsort
SELECT DISTINCT + 58 + - + col2 + + + col0 FROM tab2
----
75
81
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT + MAX( ALL + - col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-1573
SELECT + MAX ( ALL + - col0 ) FROM tab1
----
-51

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

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

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

skipif mysql # not compatible
query I rowsort label-1575
SELECT DISTINCT + 40 + + COUNT ( * ) FROM tab2
----
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - col0 col2 FROM tab1
----
2601
7225
8281

query III rowsort
SELECT * FROM tab1 WHERE - 26 BETWEEN col1 * 81 * - - col0 + + col1 / - 51 AND NULL
----

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1582
SELECT 93 + SUM( DISTINCT + - col1 ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN + 51 + 64 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1585
SELECT DISTINCT + col1 DIV col2 - - - col2 AS col1 FROM tab2 cor0
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-1585
SELECT DISTINCT + col1 / col2 - - - col2 AS col1 FROM tab2 cor0
----
-21
-39
-57

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1590
SELECT 46 DIV + + 85 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1590
SELECT 46 / + + 85 AS col1 FROM tab0 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT ALL col0 * - col0 * + col2 * - 43 FROM tab0 AS cor0
----
3254670
40054113
454725

onlyif mysql # DIV for integer division: 
query II rowsort label-1593
SELECT DISTINCT - 25 * col2 col2, 93 DIV - col0 + + col1 AS col1 FROM tab1
----
-1475
4
-1700
46
-2400
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1593
SELECT DISTINCT - 25 * col2 col2, 93 / - col0 + + col1 AS col1 FROM tab1
----
-1475
4
-1700
46
-2400
13

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - - 70 AND NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1596
SELECT ALL - 83 DIV + col1 AS col2 FROM tab0 cor0
----
-1
-3
-83

skipif mysql # not compatible
query I rowsort label-1596
SELECT ALL - 83 / + col1 AS col2 FROM tab0 cor0
----
-1
-3
-83

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + - col0 <> col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1598
SELECT - CAST( - col2 AS SIGNED ), - col2 AS col0 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

skipif mysql # not compatible
query II rowsort label-1598
SELECT - CAST ( - col2 AS INTEGER ), - col2 AS col0 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT ALL - 21 * - + MIN( DISTINCT - - col2 ) FROM tab2 AS cor0
----
483

skipif mysql # not compatible
query I rowsort label-1599
SELECT ALL - 21 * - + MIN ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
483

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col0 * 81 * - col2 >= - 41
----
0

skipif mysql # not compatible
query I rowsort label-1603
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col0 * 81 * - col2 >= - 41
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 73 AS col2, - col0 col2 FROM tab0 AS cor0
----
73
-15
73
-87
73
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-1607
SELECT ALL - 26, - MAX( ALL + - col2 ) + 47 AS col2 FROM tab2 AS cor0
----
-26
70

skipif mysql # not compatible
query II rowsort label-1607
SELECT ALL - 26, - MAX ( ALL + - col2 ) + 47 AS col2 FROM tab2 AS cor0
----
-26
70

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT ALL + + SUM( + 81 ) * 71 + 83 AS col1 FROM tab0 AS cor0
----
17336

skipif mysql # not compatible
query I rowsort label-1609
SELECT ALL + + SUM ( + 81 ) * 71 + 83 AS col1 FROM tab0 AS cor0
----
17336

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

query I rowsort
SELECT DISTINCT + col0 + - + col2 + + ( + - col0 ) + + 86 FROM tab0
----
-13
39
76

query III rowsort
SELECT * FROM tab1 WHERE NULL <> + + col1
----

query II rowsort
SELECT col1 + - + col2, col0 AS col2 FROM tab0
----
-98
97
11
87
34
15

query I rowsort
SELECT DISTINCT - 96 + - - col2 + + + col2 AS col1 FROM tab0
----
-2
-76
102

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1616
SELECT + CAST( + + 99 AS SIGNED ) * + 6 + + col0 - - 52 + 64 + col2 * + col0 AS col1 FROM tab2 AS cor0
----
1814
3334
5135

skipif mysql # not compatible
query I rowsort label-1616
SELECT + CAST ( + + 99 AS INTEGER ) * + 6 + + col0 - - 52 + 64 + col2 * + col0 AS col1 FROM tab2 AS cor0
----
1814
3334
5135

query I rowsort
SELECT + + ( + - 11 ) + + col2 FROM tab1 AS cor0
----
48
57
85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( 8, - col0 + col1, - + col2 + col2, + - col2 )
----

query I rowsort
SELECT 59 + + ( - 12 ) FROM tab0 cor0
----
47
47
47

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1621
SELECT + ( - 54 ) DIV - col0 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1621
SELECT + ( - 54 ) / - col0 AS col2 FROM tab2
----
0
0
1

query I rowsort
SELECT - 82 - - col0 FROM tab1
----
-31
3
9

query I rowsort
SELECT ALL - col2 + - col1 * + + col1 + + 59 FROM tab1
----
-2218
-233
-25

query I rowsort
SELECT + 15 - - + col1 + - ( + 63 ) AS col2 FROM tab2
----
19
29
3

query I rowsort
SELECT ALL + 25 - 89 FROM tab0 AS cor0
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT + - COUNT( * ) - - 34 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-1626
SELECT + - COUNT ( * ) - - 34 FROM tab1 AS cor0
----
31

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= 2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 48 col0 FROM tab1 cor0 WHERE NOT - col0 <= + 15 + + 85
----

query I rowsort
SELECT ALL - 86 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1631
SELECT + - MIN( DISTINCT CAST( NULL AS DECIMAL ) ) AS col2, + COUNT( * ) FROM tab2 WHERE NOT col1 > - col2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1631
SELECT + - MIN ( DISTINCT CAST ( NULL AS REAL ) ) AS col2, + COUNT ( * ) FROM tab2 WHERE NOT col1 > - col2
----
NULL
0

query I rowsort
SELECT ALL - 57 * 83 FROM tab0
----
-4731
-4731
-4731

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1634
SELECT DISTINCT - col0 AS col2, col1 + 37 DIV col2 * - + col1 * + col2 FROM tab2
----
-46
-1122
-64
77
-75
67

skipif mysql # not compatible
query II rowsort label-1634
SELECT DISTINCT - col0 AS col2, col1 + 37 / col2 * - + col1 * + col2 FROM tab2
----
-46
-1122
-64
77
-75
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1635
SELECT DISTINCT - 63 DIV - COUNT( * ) AS col0 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-1635
SELECT DISTINCT - 63 / - COUNT ( * ) AS col0 FROM tab2
----
21

query II rowsort
SELECT ALL + col2, + ( col0 ) FROM tab0 AS cor0
----
10
87
47
15
99
97

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

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

skipif mysql # not compatible
query I rowsort label-1638
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) FROM tab2 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 80 * - - col2 col0 FROM tab2 WHERE NOT NULL BETWEEN - - ( - - col2 ) AND - ( col2 )
----

query I rowsort
SELECT ALL col2 * - + col1 + + col1 FROM tab1 AS cor0
----
-1330
-290
-3149

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

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

query I rowsort
SELECT - col0 * - 55 + 60 + - col2 FROM tab2 AS cor0
----
2567
3540
4127

query I rowsort
SELECT + 20 + + col1 + - 51 - - col0 + col0 * 44 FROM tab0 AS cor0
----
3905
4335
725

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1645
SELECT 14 DIV + SUM( DISTINCT - col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1645
SELECT 14 / + SUM ( DISTINCT - col1 ) FROM tab0
----
0

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1647
SELECT ( - CAST ( - 99 AS INTEGER ) ) col1 FROM tab0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT DISTINCT + + SUM( ALL - 91 ) AS col2 FROM tab0 WHERE col2 IS NOT NULL
----
-273

skipif mysql # not compatible
query I rowsort label-1648
SELECT DISTINCT + + SUM ( ALL - 91 ) AS col2 FROM tab0 WHERE col2 IS NOT NULL
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT DISTINCT ( - 76 ) + + - COUNT( * ) FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-1649
SELECT DISTINCT ( - 76 ) + + - COUNT ( * ) FROM tab0
----
-79

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1650
SELECT ALL + col0, - CAST( NULL AS DECIMAL ) * - + col1 AS col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-1650
SELECT ALL + col0, - CAST ( NULL AS REAL ) * - + col1 AS col1 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1651
SELECT DISTINCT + MAX( DISTINCT - CAST( - 71 AS SIGNED ) ) FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-1651
SELECT DISTINCT + MAX ( DISTINCT - CAST ( - 71 AS INTEGER ) ) FROM tab1
----
71

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

query I rowsort
SELECT DISTINCT col2 - - ( - col2 ) AS col0 FROM tab1
----
0

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

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

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

query II rowsort
SELECT ALL col2 * col0 + - 99, + ( + col2 ) FROM tab2 AS cor0
----
2461
40
4251
58
959
23

query I rowsort
SELECT DISTINCT + col1 + + + col2 + + + col2 FROM tab1
----
123
183
206

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT + + COUNT( ALL col2 ) * + + COUNT( col2 ) + - 31 AS col0 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-1661
SELECT + + COUNT ( ALL col2 ) * + + COUNT ( col2 ) + - 31 AS col0 FROM tab0 AS cor0
----
-22

query I rowsort
SELECT + 86 AS col0 FROM tab2 WHERE NOT + col1 IS NULL
----
86
86
86

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

skipif mysql # not compatible
query I rowsort label-1663
SELECT ALL - SUM ( + - col0 ) AS col1 FROM tab0
----
199

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1665
SELECT + col0 AS col0, - 74 DIV col0 AS col0 FROM tab0
----
15
-4
87
0
97
0

skipif mysql # not compatible
query II rowsort label-1665
SELECT + col0 AS col0, - 74 / col0 AS col0 FROM tab0
----
15
-4
87
0
97
0

query I rowsort
SELECT - - 55 + + + 11 FROM tab0 AS cor0
----
66
66
66

query I rowsort
SELECT + 62 + + 66 - + col1 FROM tab1 AS cor0
----
114
123
81

query I rowsort
SELECT ALL + col2 + + 42 FROM tab2 AS cor0
----
100
65
82

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1670
SELECT ALL + + col0 * - CAST( + - col1 AS SIGNED ) * col2 FROM tab0 AS cor0
----
18270
57105
9603

skipif mysql # not compatible
query I rowsort label-1670
SELECT ALL + + col0 * - CAST ( + - col1 AS INTEGER ) * col2 FROM tab0 AS cor0
----
18270
57105
9603

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1671
SELECT MAX ( ALL - 21 ) col2 FROM tab0 AS cor0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-1672
SELECT - 31 DIV - 83 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1672
SELECT - 31 / - 83 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1673
SELECT ALL - MAX( ALL + - 84 ) DIV + 32 + + 58 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL - MAX ( ALL + - 84 ) / + 32 + + 58 FROM tab2 AS cor0
----
60

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 2 * + col1 FROM tab0 AS cor0
----
162
2
42

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

query I rowsort
SELECT ALL + 61 * 47 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to ac30b0e3c538d71ed791ad0f0d6ad38a

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 IN ( - col0, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT ALL COUNT( * ) + - 20 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-1681
SELECT ALL COUNT ( * ) + - 20 FROM tab0
----
-17

query I rowsort
SELECT - + col0 + + ( + col1 ) + + 36 AS col0 FROM tab2 AS cor0
----
28
41
49

query I rowsort
SELECT ALL - ( - col1 ) - col0 * col1 AS col1 FROM tab2 AS cor0
----
-2295
-4851
-4958

query I rowsort
SELECT ALL col2 - - 56 - col1 + ( - col0 ) FROM tab1 AS cor0
----
-14
25
87

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-1685
SELECT ALL - COUNT( + + CAST( NULL AS DECIMAL ) ) DIV + COUNT( DISTINCT - + col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1685
SELECT ALL - COUNT ( + + CAST ( NULL AS REAL ) ) / + COUNT ( DISTINCT - + col2 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1686
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT CAST( NULL AS SIGNED ) / col2 IS NULL ) OR NOT + col1 + - 58 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1686
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) / col2 IS NULL ) OR NOT + col1 + - 58 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT DISTINCT MIN( + - col2 ) * - + COUNT( DISTINCT - + col0 ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-1687
SELECT DISTINCT MIN ( + - col2 ) * - + COUNT ( DISTINCT - + col0 ) FROM tab1
----
288

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

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

query II rowsort
SELECT DISTINCT col2 AS col1, 58 FROM tab1
----
59
58
68
58
96
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT COUNT( DISTINCT 8 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1690
SELECT COUNT ( DISTINCT 8 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col1
----

query II rowsort
SELECT ALL - 95, - 9 - + - col1 * col0 AS col2 FROM tab1 AS cor0
----
-95
416
-95
4268
-95
705

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 54 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - 25, + col1 FROM tab0 AS cor0
----
-25
1
-25
21
-25
81

query I rowsort
SELECT DISTINCT - - ( - col2 ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 33 col2 FROM tab0
----
-33
-33
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 48 col2 FROM tab0
----
-4176
-4656
-720

onlyif mysql # aggregate syntax: 
query II rowsort label-1698
SELECT MAX( + + 16 ) AS col2, - 90 col1 FROM tab1
----
16
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1698
SELECT MAX ( + + 16 ) AS col2, - 90 col1 FROM tab1
----
16
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1699
SELECT DISTINCT * FROM tab0 WHERE + + CAST( NULL AS SIGNED ) / - 9 + - - 82 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1699
SELECT DISTINCT * FROM tab0 WHERE + + CAST ( NULL AS INTEGER ) / - 9 + - - 82 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 AND ( - - col0 )
----

query I rowsort
SELECT + 83 FROM tab2 AS cor0 WHERE NOT 49 IS NULL
----
83
83
83

query I rowsort
SELECT ALL - col2 * + 66 AS col0 FROM tab2 AS cor0
----
-1518
-2640
-3828

query I rowsort
SELECT DISTINCT - 98 + + 76 * - col1 + + col0 AS col0 FROM tab0 cor0
----
-1607
-6239
-77

query I rowsort
SELECT + 34 AS col1 FROM tab0 cor0 WHERE NOT - col1 IS NULL
----
34
34
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1705
SELECT - 44 * + COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1705
SELECT - 44 * + COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE NULL > + 6
----

query I rowsort
SELECT ALL 95 + + col0 FROM tab1
----
146
180
186

query I rowsort
SELECT + 6 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # aggregate syntax: 
query I rowsort label-1709
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1709
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1710
SELECT DISTINCT + + COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1710
SELECT DISTINCT + + COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + + ( + col1 ) + + col1 IS NULL
----

query I rowsort
SELECT - ( - - 88 ) FROM tab0 AS cor0
----
-88
-88
-88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 77 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT DISTINCT - SUM( ALL ( col0 ) ) + + + COUNT( * ) FROM tab2
----
-182

skipif mysql # not compatible
query I rowsort label-1714
SELECT DISTINCT - SUM ( ALL ( col0 ) ) + + + COUNT ( * ) FROM tab2
----
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT - MIN( - col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1715
SELECT - MIN ( - col2 ) AS col1 FROM tab0
----
99

query I rowsort
SELECT DISTINCT + ( col0 ) + + 22 AS col2 FROM tab0
----
109
119
37

query III rowsort
SELECT * FROM tab1 WHERE 21 + + col2 * + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 29 AS col2, ( + col1 ) + - + col0 col2 FROM tab2
----
29
-8
29
13
29
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT - MAX( ALL - - 48 ) AS col0 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-1719
SELECT - MAX ( ALL - - 48 ) AS col0 FROM tab1
----
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-1720
SELECT ALL - col2 DIV + - col1 + 32 FROM tab1
----
33
38
43

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL - col2 / + - col1 + 32 FROM tab1
----
33
38
43

onlyif mysql # aggregate syntax: 
query I rowsort label-1721
SELECT + SUM( + 52 ) - - COUNT( * ) FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-1721
SELECT + SUM ( + 52 ) - - COUNT ( * ) FROM tab2
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-1722
SELECT ALL 44 - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL 44 - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
47

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE ( 56 IS NULL )
----

query I rowsort
SELECT + + 63 AS col2 FROM tab2 cor0
----
63
63
63

query I rowsort
SELECT - - 96 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
96
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT DISTINCT + MIN( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1726
SELECT DISTINCT + MIN ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1727
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + CAST( + + col0 AS SIGNED ) * + col0 * - 62
----

skipif mysql # not compatible
query III rowsort label-1727
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + CAST ( + + col0 AS INTEGER ) * + col0 * - 62
----

query I rowsort
SELECT ( - 52 ) AS col1 FROM tab2
----
-52
-52
-52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1729
SELECT - CAST( - - col0 AS SIGNED ) + + col0 col0, col1 FROM tab0 AS cor0
----
0
1
0
21
0
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1729
SELECT - CAST ( - - col0 AS INTEGER ) + + col0 col0, col1 FROM tab0 AS cor0
----
0
1
0
21
0
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1730
SELECT ALL - col0 DIV ( CAST( - col2 AS SIGNED ) ) FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1730
SELECT ALL - col0 / ( CAST ( - col2 AS INTEGER ) ) FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT + MAX( col0 ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-1731
SELECT + MAX ( col0 ) AS col1 FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT + 64 * 49 FROM tab0
----
3136

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT COUNT( ( 1 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1733
SELECT COUNT ( ( 1 ) ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 70 + - col2 ) IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1735
SELECT COUNT( * ) DIV 68 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1735
SELECT COUNT ( * ) / 68 FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1736
SELECT DISTINCT - CAST( 53 AS SIGNED ) * + col2 AS col2 FROM tab1
----
-3127
-3604
-5088

skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT - CAST ( 53 AS INTEGER ) * + col2 AS col2 FROM tab1
----
-3127
-3604
-5088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 54 * col0 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
4698
5238
810

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) >= + col2 + col1
----

query I rowsort
SELECT DISTINCT + ( - ( col0 ) ) AS col2 FROM tab1 WHERE NOT ( + col2 + + col1 * - ( - col1 + col1 / - col2 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1740
SELECT ALL + CAST( NULL AS SIGNED ) * 84 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1740
SELECT ALL + CAST ( NULL AS INTEGER ) * 84 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT - MAX( DISTINCT 87 ) AS col2 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-1741
SELECT - MAX ( DISTINCT 87 ) AS col2 FROM tab1
----
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1742
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) - COUNT( * ) * - 65 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1742
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) - COUNT ( * ) * - 65 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 52 * - col0 - + col0 FROM tab2
----
-2438
-3392
-3975

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( col2 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT DISTINCT + SUM( + 9 ) + - 41 FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-1745
SELECT DISTINCT + SUM ( + 9 ) + - 41 FROM tab2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1746
SELECT CAST( NULL AS SIGNED ) * - 93 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1746
SELECT CAST ( NULL AS INTEGER ) * - 93 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + 94 AS col2 FROM tab0
----
109
181
191

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT ALL + COUNT( * ) * - SUM( 1 ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL + COUNT ( * ) * - SUM ( 1 ) AS col1 FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1749
SELECT + 87 - CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1749
SELECT + 87 - CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 76 * + col1 AS col2 FROM tab1
----
-1064
-3572
-380

query I rowsort
SELECT + ( - 52 ) * - col0 AS col0 FROM tab0
----
4524
5044
780

query I rowsort
SELECT ALL - 94 + + col2 AS col1 FROM tab1
----
-26
-35
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1753
SELECT ALL 33 + CAST( - COUNT( DISTINCT - 97 ) AS SIGNED ) AS col2 FROM tab1 WHERE ( col2 * - col2 ) IN ( col0 )
----
33

skipif mysql # not compatible
query I rowsort label-1753
SELECT ALL 33 + CAST ( - COUNT ( DISTINCT - 97 ) AS INTEGER ) AS col2 FROM tab1 WHERE ( col2 * - col2 ) IN ( col0 )
----
33

query I rowsort
SELECT 70 * - col2 FROM tab1
----
-4130
-4760
-6720

query I rowsort
SELECT ALL 66 * + col1 AS col0 FROM tab2
----
3366
4422
5082

onlyif mysql # aggregate syntax: 
query I rowsort label-1756
SELECT COUNT( * ) * 80 FROM tab2
----
240

skipif mysql # not compatible
query I rowsort label-1756
SELECT COUNT ( * ) * 80 FROM tab2
----
240

query I rowsort
SELECT ALL 12 * + col1 AS col2 FROM tab1 WHERE NOT 70 <= 91 - col1
----
564

onlyif mysql # DIV for integer division: 
query I rowsort label-1758
SELECT DISTINCT ( col1 ) DIV col0 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1758
SELECT DISTINCT ( col1 ) / col0 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT + 4 + + COUNT( * ) FROM tab0 WHERE - ( - col1 ) * col2 IN ( + 80 )
----
4

skipif mysql # not compatible
query I rowsort label-1759
SELECT + 4 + + COUNT ( * ) FROM tab0 WHERE - ( - col1 ) * col2 IN ( + 80 )
----
4

query I rowsort
SELECT ALL 81 + - 71 * + 68 FROM tab2 AS cor0 CROSS JOIN tab0
----
9 values hashing to cf9bf354f18a94c20559583d88c654f1

query I rowsort
SELECT ALL + col2 * 85 FROM tab2
----
1955
3400
4930

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1762
SELECT - col2 * CAST( NULL AS DECIMAL ) + col1 col1 FROM tab1 WHERE NOT 61 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1762
SELECT - col2 * CAST ( NULL AS REAL ) + col1 col1 FROM tab1 WHERE NOT 61 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab1 WHERE NOT NULL >= 7
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 83 col1 FROM tab0
----
-1743
-6723
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-1765
SELECT ALL + 12 DIV - 15 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL + 12 / - 15 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1766
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1766
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < CAST ( + col1 AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE col0 * col0 IS NULL
----

query I rowsort
SELECT ALL - - 53 AS col0 FROM tab2 cor0
----
53
53
53

query I rowsort
SELECT col1 + + 82 FROM tab0 AS cor0
----
103
163
83

query I rowsort
SELECT - 36 * - - col1 AS col1 FROM tab2
----
-1836
-2412
-2772

query I rowsort
SELECT ALL + col1 + + ( col0 ) AS col2 FROM tab0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1772
SELECT * FROM tab1 WHERE NOT ( 67 ) <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1772
SELECT * FROM tab1 WHERE NOT ( 67 ) <> CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 18 * + col1 FROM tab0
----
1458
18
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1774
SELECT CAST( col0 AS SIGNED ) * + col1 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-1774
SELECT CAST ( col0 AS INTEGER ) * + col1 FROM tab1
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-1775
SELECT col0 DIV + + 80 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1775
SELECT col0 / + + 80 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 WHERE 99 IS NULL
----

query I rowsort
SELECT ALL + col0 + - 77 AS col0 FROM tab2
----
-13
-2
-31

query I rowsort
SELECT ALL + ( + 34 ) AS col0 FROM tab1
----
34
34
34

query I rowsort
SELECT + 63 AS col2 FROM tab0 WHERE ( + 78 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 37 BETWEEN ( NULL ) AND NULL OR NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1781
SELECT ALL ( - ( 80 ) ) AS col1 FROM tab2 WHERE NOT NULL <= col2 * CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) + + col2
----

skipif mysql # not compatible
query I rowsort label-1781
SELECT ALL ( - ( 80 ) ) AS col1 FROM tab2 WHERE NOT NULL <= col2 * CAST ( CAST ( NULL AS INTEGER ) AS REAL ) + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT ALL MIN( ALL col2 ) AS col1 FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-1782
SELECT ALL MIN ( ALL col2 ) AS col1 FROM tab0 cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1783
SELECT DISTINCT SUM( DISTINCT 38 ) AS col1 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-1783
SELECT DISTINCT SUM ( DISTINCT 38 ) AS col1 FROM tab2 AS cor0
----
38

query I rowsort
SELECT DISTINCT + + 53 * + + col0 FROM tab1 AS cor0
----
2703
4505
4823

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT DISTINCT 58 * COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
174

skipif mysql # not compatible
query I rowsort label-1785
SELECT DISTINCT 58 * COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
174

query I rowsort
SELECT ALL - col0 + + col1 * - ( 49 ) FROM tab2 AS cor0
----
-2545
-3358
-3837

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1787
SELECT ALL + col0 + + CAST( + col1 AS SIGNED ) DIV col1 col2 FROM tab0
----
16
88
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1787
SELECT ALL + col0 + + CAST ( + col1 AS INTEGER ) / col1 col2 FROM tab0
----
16
88
98

query I rowsort
SELECT 12 * 32 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to af6ba67e280190d1bd38bd7e5d1849fb

query I rowsort
SELECT ALL - 79 - + 34 FROM tab2, tab1 cor0
----
9 values hashing to 5ca6f42fb58c724d01d684d1b90fdef0

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT ALL 42 - + COUNT( * ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL 42 - + COUNT ( * ) FROM tab2
----
39

query III rowsort
SELECT * FROM tab1 WHERE + col2 NOT IN ( + 65 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 68 - + + col0 + col0 * col1 FROM tab1 AS cor0
----
408
4254
731

onlyif mysql # aggregate syntax: 
query II rowsort label-1793
SELECT + + COUNT( * ) col2, + COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1793
SELECT + + COUNT ( * ) col2, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1794
SELECT ALL + CAST( col2 AS SIGNED ) * + col2 FROM tab2 AS cor0 WHERE NOT - col0 <> + - CAST( 70 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL + CAST ( col2 AS INTEGER ) * + col2 FROM tab2 AS cor0 WHERE NOT - col0 <> + - CAST ( 70 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 61 / - 86 ) IN ( + col0 + ( - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1796
SELECT col2 DIV + 55 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1796
SELECT col2 / + 55 FROM tab2 AS cor0
----
0
0
1

query I rowsort
SELECT - 46 * + 1 AS col2 FROM tab0 AS cor0
----
-46
-46
-46

query II rowsort
SELECT col0, - col0 + + + col0 AS col0 FROM tab1 AS cor0
----
51
0
85
0
91
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1799
SELECT - 70, - COUNT( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-70
-3

skipif mysql # not compatible
query II rowsort label-1799
SELECT - 70, - COUNT ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
-70
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 85 col0 FROM tab1 AS cor0 WHERE NULL > - 98
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 55 col1 FROM tab0
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT ( - + 68 ) - + - MIN( + 47 ) AS col2 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-1802
SELECT ( - + 68 ) - + - MIN ( + 47 ) AS col2 FROM tab2
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1803
SELECT * FROM tab1 WHERE NOT - - CAST( NULL AS SIGNED ) + col0 NOT IN ( col0 )
----

skipif mysql # not compatible
query III rowsort label-1803
SELECT * FROM tab1 WHERE NOT - - CAST ( NULL AS INTEGER ) + col0 NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1804
SELECT ( + CAST( + CAST( + col0 AS SIGNED ) AS SIGNED ) ) FROM tab2 WHERE NOT ( - + CAST( NULL AS SIGNED ) ) IN ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-1804
SELECT ( + CAST ( + CAST ( + col0 AS INTEGER ) AS INTEGER ) ) FROM tab2 WHERE NOT ( - + CAST ( NULL AS INTEGER ) ) IN ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 48 IS NULL
----

query I rowsort
SELECT ALL + - 86 AS col0 FROM tab1 AS cor0
----
-86
-86
-86

query I rowsort
SELECT col1 * ( + - 74 ) AS col1 FROM tab2 AS cor0
----
-3774
-4958
-5698

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + 19 ) NOT IN ( 34 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1809
SELECT DISTINCT - COUNT( DISTINCT + col2 ) * MIN( DISTINCT + + CAST( NULL AS SIGNED ) ) + + 90 + 30 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1809
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) * MIN ( DISTINCT + + CAST ( NULL AS INTEGER ) ) + + 90 + 30 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT - + MIN( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-1810
SELECT - + MIN ( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1811
SELECT + col2 DIV 11 * + 24 AS col2 FROM tab1 AS cor0
----
120
144
192

skipif mysql # not compatible
query I rowsort label-1811
SELECT + col2 / 11 * + 24 AS col2 FROM tab1 AS cor0
----
120
144
192

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT ALL - SUM( - 60 ) AS col1 FROM tab2 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-1812
SELECT ALL - SUM ( - 60 ) AS col1 FROM tab2 AS cor0
----
180

query I rowsort
SELECT ALL - 75 * + col2 FROM tab1 AS cor0
----
-4425
-5100
-7200

onlyif mysql # aggregate syntax: 
query I rowsort label-1814
SELECT DISTINCT + - 19 * - COUNT( * ) FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-1814
SELECT DISTINCT + - 19 * - COUNT ( * ) FROM tab1 AS cor0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1815
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - col1 + - CAST( NULL AS SIGNED ) NOT BETWEEN ( + 70 * col2 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-1815
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - col1 + - CAST ( NULL AS INTEGER ) NOT BETWEEN ( + 70 * col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + col0 * - col0 + + 49 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1817
SELECT - 43 * col1 col0 FROM tab1 WHERE + col1 NOT BETWEEN + CAST( NULL AS SIGNED ) + - col2 AND + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1817
SELECT - 43 * col1 col0 FROM tab1 WHERE + col1 NOT BETWEEN + CAST ( NULL AS INTEGER ) + - col2 AND + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1818
SELECT DISTINCT * FROM tab0 WHERE + - CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1818
SELECT DISTINCT * FROM tab0 WHERE + - CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1819
SELECT * FROM tab0 WHERE - col2 * + CAST( - + 64 AS DECIMAL ) + + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1819
SELECT * FROM tab0 WHERE - col2 * + CAST ( - + 64 AS REAL ) + + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1820
SELECT col2 + - ( ( CAST( + col0 AS SIGNED ) ) ) * - - col0 FROM tab0 AS cor0
----
-178
-7559
-9310

skipif mysql # not compatible
query I rowsort label-1820
SELECT col2 + - ( ( CAST ( + col0 AS INTEGER ) ) ) * - - col0 FROM tab0 AS cor0
----
-178
-7559
-9310

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 61 ) * col1 col1 FROM tab2 AS cor0 WHERE 32 < - 77 + + - col0 + 59 + + 95 + + col2 / + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT + COUNT( * ) * - + COUNT( * ) + + 66 AS col0 FROM tab2 cor0
----
57

skipif mysql # not compatible
query I rowsort label-1822
SELECT + COUNT ( * ) * - + COUNT ( * ) + + 66 AS col0 FROM tab2 cor0
----
57

query I rowsort
SELECT DISTINCT 23 + + - col0 + 22 AS col2 FROM tab2 AS cor0
----
-1
-19
-30

query I rowsort
SELECT - + ( - - 5 ) + + col0 FROM tab2 AS cor0
----
41
59
70

query I rowsort
SELECT DISTINCT - col0 + - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + 84 IS NULL )
----

query I rowsort
SELECT + + 14 AS col2 FROM tab0 AS cor0 WHERE NULL <= 12 * - - col0 * - - 51 / - + 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1828
SELECT ALL + + SUM( + col2 ) col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1828
SELECT ALL + + SUM ( + col2 ) col0 FROM tab2 AS cor0
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 25 col1 FROM tab2 cor0
----
25

query I rowsort
SELECT ALL AVG ( DISTINCT col0 ) FROM tab0 WHERE NOT col0 <= + col1 * + col2 * col0 + - col1 + - ( col0 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1831
SELECT - AVG ( + - CAST( NULL AS SIGNED ) ) * 97 * - COUNT( DISTINCT - col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1831
SELECT - AVG ( + - CAST ( NULL AS INTEGER ) ) * 97 * - COUNT ( DISTINCT - col1 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1832
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + COUNT( col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + COUNT ( col2 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1833
SELECT - COUNT( * ), 18 AS col1 FROM tab1
----
-3
18

skipif mysql # not compatible
query II rowsort label-1833
SELECT - COUNT ( * ), 18 AS col1 FROM tab1
----
-3
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1834
SELECT + CAST( + col1 AS SIGNED ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1834
SELECT + CAST ( + col1 AS INTEGER ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 * - col2 col0 FROM tab0
----
-3901
-8217
-830

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NULL IN ( - ( col1 ) + + col1 * - col0 - - 25 )
----

query I rowsort
SELECT col2 * + + col0 AS col1 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT + + 71 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
71

query I rowsort
SELECT col0 * + 92 FROM tab0
----
1380
8004
8924

query I rowsort
SELECT + + col0 + + ( col1 ) AS col2 FROM tab2 cor0
----
141
142
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 83 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < col1 + + + ( - ( - + col0 ) ) * - col2
----

query I rowsort
SELECT DISTINCT + + 1 * + - 87 AS col0 FROM tab1 cor0
----
-87

query I rowsort
SELECT DISTINCT - col1 + - col1 + + - col1 FROM tab0 AS cor0
----
-243
-3
-63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 69 + + col0 * + + col0 * - 89 BETWEEN ( NULL ) AND col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1846
SELECT DISTINCT + CAST( NULL AS SIGNED ) + MIN( - col0 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + MIN ( - col0 ) AS col1 FROM tab0
----
NULL

query II rowsort
SELECT - 11 AS col2, col2 * + ( + col2 ) AS col0 FROM tab2
----
-11
1600
-11
3364
-11
529

query I rowsort
SELECT ALL col1 * + col2 + - col1 - - col1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT 56 * + - col2 AS col1 FROM tab2
----
-1288
-2240
-3248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1850
SELECT DISTINCT 13 / + CAST( NULL AS SIGNED ) + + 56 * - + CAST( NULL AS SIGNED ) * col2 * col2 + - col0 + + col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1850
SELECT DISTINCT 13 / + CAST ( NULL AS INTEGER ) + + 56 * - + CAST ( NULL AS INTEGER ) * col2 * col2 + - col0 + + col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT + ( MAX( DISTINCT + col1 ) ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-1851
SELECT + ( MAX ( DISTINCT + col1 ) ) AS col1 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1852
SELECT - COUNT( + col0 ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1852
SELECT - COUNT ( + col0 ) col0 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT + col0 + + + 37 FROM tab1
----
122
128
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1854
SELECT DISTINCT CAST( - - col1 AS SIGNED ) AS col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1854
SELECT DISTINCT CAST ( - - col1 AS INTEGER ) AS col2 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1855
SELECT DISTINCT COUNT( * ) DIV - + 62 - + 24 FROM tab0
----
-24

skipif mysql # not compatible
query I rowsort label-1855
SELECT DISTINCT COUNT ( * ) / - + 62 - + 24 FROM tab0
----
-24

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL BETWEEN NULL AND ( NULL ) )
----

query I rowsort
SELECT ALL + col1 * - 89 + - - ( + col1 ) FROM tab0 AS cor0
----
-1848
-7128
-88

query I rowsort
SELECT + + 4 - + col0 AS col0 FROM tab2 AS cor0
----
-42
-60
-71

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
46
64
75

query I rowsort
SELECT - col2 + - - col0 AS col0 FROM tab2 cor0
----
17
23
24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 4 * - + col0 BETWEEN + col1 * + 53 AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1863
SELECT col1 + + + col0 DIV - 20 FROM tab2
----
49
64
74

skipif mysql # not compatible
query I rowsort label-1863
SELECT col1 + + + col0 / - 20 FROM tab2
----
49
64
74

query I rowsort
SELECT DISTINCT col1 - col2 * - col2 AS col2 FROM tab1
----
3486
4671
9230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1865
SELECT - col1 * - CAST( NULL AS SIGNED ) * + - 27 + - 79 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1865
SELECT - col1 * - CAST ( NULL AS INTEGER ) * + - 27 + - 79 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1866
SELECT ALL + CAST( NULL AS SIGNED ) - 44 + + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1866
SELECT ALL + CAST ( NULL AS INTEGER ) - 44 + + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1867
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-1867
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 45 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1869
SELECT ALL + CAST( NULL AS SIGNED ) * - + 67 * + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL + CAST ( NULL AS INTEGER ) * - + 67 * + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 1 * - col1 AS col1 FROM tab2 cor0
----
-51
-67
-77

query II rowsort
SELECT DISTINCT col0, - 44 AS col2 FROM tab1 AS cor0
----
51
-44
85
-44
91
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT - MIN( ALL 89 ) FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-1872
SELECT - MIN ( ALL 89 ) FROM tab0 AS cor0
----
-89

query I rowsort
SELECT col0 + - 50 FROM tab0 AS cor0 WHERE NOT col1 + + ( + + col0 ) * + - 38 BETWEEN + + 76 AND + col0
----
-35
37
47

query II rowsort
SELECT ALL + 5 AS col0, - col1 * + 68 + - ( - + col2 ) FROM tab0 AS cor0
----
5
-1418
5
-5461
5
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1875
SELECT - + 57 * - SUM( ALL col0 ) col2 FROM tab1 AS cor0
----
12939

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1875
SELECT - + 57 * - SUM ( ALL col0 ) col2 FROM tab1 AS cor0
----
12939

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 40 col2, - col2 * - col0 FROM tab2 AS cor0
----
40
1058
40
2560
40
4350

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT - col1 * 52 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1878
SELECT CAST( NULL AS SIGNED ) / + 31 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1878
SELECT CAST ( NULL AS INTEGER ) / + 31 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 * col2 > col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1880
SELECT 52 * COUNT( * ) col0, - CAST( 60 AS SIGNED ) FROM tab0
----
156
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1880
SELECT 52 * COUNT ( * ) col0, - CAST ( 60 AS INTEGER ) FROM tab0
----
156
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 + - 74 col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-13

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 NOT IN ( - 25, - col0, - ( + col1 ) + + - 80 )
----

query I rowsort
SELECT ALL - ( + 69 ) FROM tab0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT MAX( + 43 ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-1884
SELECT MAX ( + 43 ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1885
SELECT - col1 * col2 + - col0 col2, CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
-1395
NULL
-3287
NULL
-380
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1885
SELECT - col1 * col2 + - col0 col2, CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
-1395
NULL
-3287
NULL
-380
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 89 col1 FROM tab2 cor0 WHERE ( NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( - ( + col0 ) ) * - col0 + col2 FROM tab0 AS cor0
----
272
7579
9508

query I rowsort
SELECT ALL 49 * - + col2 + + + ( - col1 ) FROM tab0
----
-2384
-4852
-511

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1890
SELECT ALL + MIN( ALL + CAST( NULL AS SIGNED ) ) + + COUNT( - - col1 ) / - AVG ( + - 20 ) / + - COUNT( * ) AS col2, + COUNT( * ) FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1890
SELECT ALL + MIN ( ALL + CAST ( NULL AS INTEGER ) ) + + COUNT ( - - col1 ) / - AVG ( + - 20 ) / + - COUNT ( * ) AS col2, + COUNT ( * ) FROM tab2
----
NULL
3

query I rowsort
SELECT - col1 + + + 55 FROM tab1
----
41
50
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 4 col1 FROM tab1
----
1
10
43

query I rowsort
SELECT + 7 + - col2 + col1 FROM tab2
----
16
35
44

query I rowsort
SELECT ALL 85 + 10 * col2 + - 79 - + col1 FROM tab1
----
591
639
952

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT ALL - 76 * MIN( ALL col2 ) * 87 + + 26 FROM tab0 AS cor0
----
-66094

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL - 76 * MIN ( ALL col2 ) * 87 + + 26 FROM tab0 AS cor0
----
-66094

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1896
SELECT - - COUNT( * ) DIV - 41 col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1896
SELECT - - COUNT ( * ) / - 41 col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1897
SELECT DISTINCT - + CAST( NULL AS SIGNED ) / - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1897
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1898
SELECT - + col1 DIV col0 col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1898
SELECT - + col1 / col0 col0 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 58 + + + col1 FROM tab1
----
105
63
72

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT 77 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1901
SELECT ALL + CAST( + 34 AS SIGNED ) AS col1 FROM tab1 WHERE NULL IS NULL
----
34
34
34

skipif mysql # not compatible
query I rowsort label-1901
SELECT ALL + CAST ( + 34 AS INTEGER ) AS col1 FROM tab1 WHERE NULL IS NULL
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT - COUNT( * ) - + MIN( ALL - - 97 ) FROM tab1, tab1 AS cor0
----
-106

skipif mysql # not compatible
query I rowsort label-1902
SELECT - COUNT ( * ) - + MIN ( ALL - - 97 ) FROM tab1, tab1 AS cor0
----
-106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - - col2 col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1904
SELECT DISTINCT CAST( - MIN( + ( - col1 ) ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1904
SELECT DISTINCT CAST ( - MIN ( + ( - col1 ) ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1905
SELECT ALL + - COUNT( - col1 ) DIV 38 + 58 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-1905
SELECT ALL + - COUNT ( - col1 ) / 38 + 58 FROM tab0 AS cor0
----
58

query II rowsort
SELECT + 61 AS col2, + col2 * + + ( col0 ) AS col0 FROM tab2 AS cor0
----
61
1058
61
2560
61
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT MAX( - col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1907
SELECT MAX ( - col1 ) AS col0 FROM tab0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1908
SELECT 24 DIV - MIN( - col1 ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1908
SELECT 24 / - MIN ( - col1 ) col2 FROM tab0
----
0

query I rowsort
SELECT ( - 86 ) FROM tab2
----
-86
-86
-86

query I rowsort
SELECT DISTINCT col0 * 80 * - 79 FROM tab2
----
-290720
-404480
-474000

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1911
SELECT SUM( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1911
SELECT SUM ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1912
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL <> col2 * - col1 * 93
----
0

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL <> col2 * - col1 * 93
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1913
SELECT DISTINCT col1 DIV + col0 * col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1913
SELECT DISTINCT col1 / + col0 * col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1914
SELECT 64 AS col1, - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
64
NULL
64
NULL
64
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1914
SELECT 64 AS col1, - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
64
NULL
64
NULL
64
NULL

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT + 75 + col0 FROM tab2 AS cor0
----
121
139
150

onlyif mysql # aggregate syntax: 
query I rowsort label-1917
SELECT + COUNT( * ) * MIN( ALL + - 51 ) AS col0 FROM tab0 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-1917
SELECT + COUNT ( * ) * MIN ( ALL + - 51 ) AS col0 FROM tab0 cor0
----
-153

query I rowsort
SELECT 4 * col0 + - ( col1 ) + + 43 + - - ( - col2 ) FROM tab0 AS cor0
----
-25
331
360

query III rowsort
SELECT ALL 55 + 26 AS col1, col0, + - col0 + - - ( col0 ) FROM tab2 AS cor0
----
9 values hashing to 667ef9b6033338142ba731054768d327

onlyif mysql # DIV for integer division: 
query I rowsort label-1920
SELECT col2 * - col1 DIV - col1 + + + col1 FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-1920
SELECT col2 * - col1 / - col1 + + + col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1921
SELECT ALL + + CAST( NULL AS DECIMAL ) + + col0 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1921
SELECT ALL + + CAST ( NULL AS REAL ) + + col0 * + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1922
SELECT - CAST( + SUM( DISTINCT + 16 ) AS SIGNED ), 11 AS col0 FROM tab2
----
-16
11

skipif mysql # not compatible
query II rowsort label-1922
SELECT - CAST ( + SUM ( DISTINCT + 16 ) AS INTEGER ), 11 AS col0 FROM tab2
----
-16
11

query I rowsort
SELECT DISTINCT + col2 + - col1 * + - col0 AS col0 FROM tab1
----
4345
484
810

query I rowsort
SELECT ALL col2 - - 11 FROM tab0
----
110
21
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + + 21 col1 FROM tab2
----
-1071
-1407
-1617

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1926
SELECT * FROM tab0 WHERE - + col1 * + - col0 + + CAST( + col1 AS SIGNED ) + - col0 + + col1 * col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1926
SELECT * FROM tab0 WHERE - + col1 * + - col0 + + CAST ( + col1 AS INTEGER ) + - col0 + + col1 * col1 IS NULL
----

query I rowsort
SELECT ALL - col1 - + 44 FROM tab1
----
-49
-58
-91

query I rowsort
SELECT DISTINCT col0 * col2 + + 6 FROM tab2
----
1064
2566
4356

onlyif mysql # aggregate syntax: 
query II rowsort label-1929
SELECT ALL COUNT( * ), - 73 + - - 99 AS col0 FROM tab0 AS cor0
----
3
26

skipif mysql # not compatible
query II rowsort label-1929
SELECT ALL COUNT ( * ), - 73 + - - 99 AS col0 FROM tab0 AS cor0
----
3
26

query II rowsort
SELECT + 91 + ( + - col0 ), + col0 AS col0 FROM tab0 AS cor0
----
-6
97
4
87
76
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT ALL + COUNT( * ) - + MAX( ALL - 20 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1931
SELECT ALL + COUNT ( * ) - + MAX ( ALL - 20 ) AS col2 FROM tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + col2
----

query II rowsort
SELECT + 70 AS col0, + 43 FROM tab2 WHERE NOT + - col0 IS NOT NULL
----

query I rowsort
SELECT 83 * + - col1 AS col1 FROM tab2 AS cor0
----
-4233
-5561
-6391

query I rowsort
SELECT DISTINCT + + 46 AS col2 FROM tab0 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT DISTINCT + - 70 * - 79 * - MAX( + 58 ) FROM tab1 AS cor0
----
-320740

skipif mysql # not compatible
query I rowsort label-1936
SELECT DISTINCT + - 70 * - 79 * - MAX ( + 58 ) FROM tab1 AS cor0
----
-320740

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col2 col1 FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1938
SELECT DISTINCT col1 * + col0 * ( - CAST( NULL AS SIGNED ) ) * + 65 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1938
SELECT DISTINCT col1 * + col0 * ( - CAST ( NULL AS INTEGER ) ) * + 65 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1939
SELECT 6 + 94 + - + 26 FROM tab0 WHERE NOT - CAST( - col1 AS SIGNED ) NOT BETWEEN ( col1 ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1939
SELECT 6 + 94 + - + 26 FROM tab0 WHERE NOT - CAST ( - col1 AS INTEGER ) NOT BETWEEN ( col1 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 4 IN ( 95, 97 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1941
SELECT ALL col1 DIV + + col1 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1941
SELECT ALL col1 / + + col1 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT col2 * - + col2 AS col0 FROM tab2
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-1943
SELECT + ( + COUNT( + col0 ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1943
SELECT + ( + COUNT ( + col0 ) ) AS col0 FROM tab0
----
3

query I rowsort
SELECT + col1 + - ( - 73 ) FROM tab0 AS cor0
----
154
74
94

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 > + 81 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT DISTINCT + COUNT( DISTINCT 91 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT + COUNT ( DISTINCT 91 ) FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1947
SELECT 27 DIV col2 - - col1 FROM tab0 AS cor0
----
1
23
81

skipif mysql # not compatible
query I rowsort label-1947
SELECT 27 / col2 - - col1 FROM tab0 AS cor0
----
1
23
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 <= col1 * + col0 + - 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + - col1 >= NULL OR NOT 29 + - + 65 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 87 ) col1 FROM tab1 cor0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT ALL - 69 + COUNT( - 46 ) FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-1951
SELECT ALL - 69 + COUNT ( - 46 ) FROM tab0 AS cor0
----
-66

query I rowsort
SELECT - col0 + - col2 FROM tab0 WHERE - col1 NOT IN ( col1, + 92 * - - col1 * - + 92 * - col2 + + 3, col1, - - 16 )
----
-196
-62
-97

query I rowsort
SELECT - + col2 FROM tab2 WHERE - + 52 + - col2 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT ALL ( MAX( ALL - col0 ) ) + + + ( + 48 ) col0 FROM tab2
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1954
SELECT ALL ( MAX ( ALL - col0 ) ) + + + ( + 48 ) col0 FROM tab2
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 * col2 - 34 col1 FROM tab1
----
3683
4250
6014

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col1 + + 43 + + col2 * + + 51 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 col0 FROM tab1
----
97
97
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 24 > NULL
----

query I rowsort
SELECT ALL + + col1 * + + 39 FROM tab1 cor0
----
1833
195
546

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN + col0 * - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT + MIN( - 35 ) FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-1961
SELECT + MIN ( - 35 ) FROM tab1 AS cor0
----
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2, - col2 + - col0 col0 FROM tab1 AS cor0
----
59
-144
68
-159
96
-147

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1963
SELECT DISTINCT + col2, - CAST( + - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
46
40
64
58
75

skipif mysql # not compatible
query II rowsort label-1963
SELECT DISTINCT + col2, - CAST ( + - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT ALL + - MIN( col2 ) * + COUNT( * ) AS col2 FROM tab2 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-1964
SELECT ALL + - MIN ( col2 ) * + COUNT ( * ) AS col2 FROM tab2 cor0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1965
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IN ( col2, + col0 )
----

skipif mysql # not compatible
query III rowsort label-1965
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IN ( col2, + col0 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) > + 74
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1967
SELECT ALL col0 + - + col1 DIV - + col2 FROM tab2 AS cor0
----
48
65
76

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL col0 + - + col1 / - + col2 FROM tab2 AS cor0
----
48
65
76

query I rowsort
SELECT DISTINCT + col2 * - + col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1969
SELECT ALL - col1 * CAST( col2 AS SIGNED ) AS col0 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL - col1 * CAST ( col2 AS INTEGER ) AS col0 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT + 90 * col2 + 71 * col2 * + col1 FROM tab1
----
104064
233036
26255

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT - MAX( - ( col1 ) ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1971
SELECT - MAX ( - ( col1 ) ) AS col1 FROM tab2
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1972
SELECT - 38 DIV - COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-1972
SELECT - 38 / - COUNT ( * ) FROM tab0
----
12

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( + 13 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT ALL COUNT( * ) * + 27 AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1974
SELECT ALL COUNT ( * ) * + 27 AS col2 FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL - + col2 * + + col1 AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 > + + 31 * + 56
----

query I rowsort
SELECT + - 81 + - 24 FROM tab0 AS cor0
----
-105
-105
-105

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 98 * col1 + + - col0 FROM tab1
----
1321
405
4515

query I rowsort
SELECT + col1 + + 81 AS col2 FROM tab1
----
128
86
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT + + 19 * - - COUNT( * ) + - 52 + + MAX( DISTINCT 80 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
199

skipif mysql # not compatible
query I rowsort label-1981
SELECT + + 19 * - - COUNT ( * ) + - 52 + + MAX ( DISTINCT 80 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
199

query I rowsort
SELECT ALL AVG ( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0 col1, ( - 53 ) FROM tab2 AS cor0
----
46
-53
64
-53
75
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - + col1 + - + 20 AND + 81 + - 45 + + ( 7 ) / - + 66 * + - col0 + - col1
----
0

skipif mysql # not compatible
query I rowsort label-1984
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - + col1 + - + 20 AND + 81 + - 45 + + ( 7 ) / - + 66 * + - col0 + - col1
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> + 87
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1986
SELECT ALL CAST( NULL AS SIGNED ) + - + CAST( col2 AS SIGNED ) 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-1986
SELECT ALL CAST ( NULL AS INTEGER ) + - + CAST ( col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 7 * - + col2 AS col2 FROM tab1 AS cor0
----
413
476
672

query I rowsort
SELECT DISTINCT + 91 * ( - col0 ) FROM tab0 AS cor0
----
-1365
-7917
-8827

query I rowsort
SELECT - - col0 * + 46 * + col0 AS col1 FROM tab2 AS cor0
----
188416
258750
97336

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NOT ( NOT NULL <= - 10 * - col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1990
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NOT ( NOT NULL <= - 10 * - col1 ) )
----
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT - col1 * - 64 * + + col2 AS col1 FROM tab2 AS cor0
----
197120
248704
75072

query III rowsort
SELECT * FROM tab0 WHERE + 59 IS NULL
----

query I rowsort
SELECT col0 - - 5 FROM tab2
----
51
69
80

query I rowsort
SELECT 71 * + + col2 * - - 88 - - col1 FROM tab2
----
143755
249997
362451

onlyif mysql # aggregate syntax: 
query I rowsort label-1996
SELECT + COUNT( * ) - - COUNT( * ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-1996
SELECT + COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab1
----
6

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE col2 NOT BETWEEN + - col2 * + 86 AND - 19
----
23
40
58

query I rowsort
SELECT col1 - + - col1 FROM tab2
----
102
134
154

query I rowsort
SELECT DISTINCT + col2 * + col0 + + 5 AS col0 FROM tab1
----
4901
5020
6193

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2000
SELECT DISTINCT + 51 AS col2, + ( CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
51
NULL

skipif mysql # not compatible
query II rowsort label-2000
SELECT DISTINCT + 51 AS col2, + ( CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
51
NULL

query I rowsort
SELECT + 45 * 56 + 67 AS col1 FROM tab1 AS cor0
----
2587
2587
2587

query I rowsort
SELECT + 80 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT SUM( - + 57 ) FROM tab1 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-2003
SELECT SUM ( - + 57 ) FROM tab1 AS cor0
----
-171

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * col1 + col2 / + 17 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( 54 ) AS col1 FROM tab0 AS cor0
----
54
54
54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( col0 ) + 65 + - 39 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 + - col1 col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 77 + - col1 AS col2 FROM tab0
----
-158
-78
-98

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 + - + col1 + - - col1 IS NOT NULL
----

query I rowsort
SELECT 85 + - - 40 + - col1 AS col0 FROM tab0
----
104
124
44

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 11 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2012
SELECT DISTINCT - col1 * CAST( NULL AS DECIMAL ) - - + col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2012
SELECT DISTINCT - col1 * CAST ( NULL AS REAL ) - - + col2 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col2 + 83 AS col2 FROM tab1 AS cor0
----
-13
15
24

query I rowsort
SELECT - col1 AS col2 FROM tab2 cor0 WHERE ( 26 IS NOT NULL )
----
-51
-67
-77

query I rowsort
SELECT ALL + 68 * - 8 FROM tab1 AS cor0
----
-544
-544
-544

onlyif mysql # aggregate syntax: 
query I rowsort label-2016
SELECT ALL + MIN( ALL ( 22 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
22

skipif mysql # not compatible
query I rowsort label-2016
SELECT ALL + MIN ( ALL ( 22 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
22

query III rowsort
SELECT * FROM tab2 WHERE 4 / col2 * 74 BETWEEN - + col2 AND - 34
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2018
SELECT - CAST( NULL AS SIGNED ) - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2018
SELECT - CAST ( NULL AS INTEGER ) - COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2019
SELECT ALL - CAST( NULL AS SIGNED ) * col0 AS col0, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-2019
SELECT ALL - CAST ( NULL AS INTEGER ) * col0 AS col0, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT col2 + + + col1 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT ALL + + 66 - col2 AS col0 FROM tab0 AS cor0
----
-33
19
56

query I rowsort
SELECT + col2 + 0 AS col1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT - - 16 AS col2 FROM tab2 WHERE NOT ( NOT NULL = 32 * col1 + - col0 )
----

query I rowsort
SELECT DISTINCT - col0 * - + ( - 31 ) AS col2 FROM tab2
----
-1426
-1984
-2325

query I rowsort
SELECT ALL 0 * + + col1 * col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2026
SELECT ALL SUM( col1 ) DIV - + 22 FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL SUM ( col1 ) / - + 22 FROM tab2
----
-8

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( + ( col0 ) ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( col1 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2029
SELECT DISTINCT + + 37 DIV COUNT( * ) FROM tab1 cor0
----
12

skipif mysql # not compatible
query I rowsort label-2029
SELECT DISTINCT + + 37 / COUNT ( * ) FROM tab1 cor0
----
12

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 70 = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2031
SELECT DISTINCT - 87 DIV col1, - col1 AS col2 FROM tab2 WHERE NOT + col0 = + + col0 DIV + 55 - - 45 * + col1
----
-1
-51
-1
-67
-1
-77

skipif mysql # not compatible
query II rowsort label-2031
SELECT DISTINCT - 87 / col1, - col1 AS col2 FROM tab2 WHERE NOT + col0 = + + col0 / + 55 - - 45 * + col1
----
-1
-51
-1
-67
-1
-77

query I rowsort
SELECT - - 86 AS col0 FROM tab2 AS cor0 WHERE NOT - 2 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - ( + - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT ALL + 84 * - + SUM( col0 ) + - 20 AS col0 FROM tab2 AS cor0
----
-15560

skipif mysql # not compatible
query I rowsort label-2034
SELECT ALL + 84 * - + SUM ( col0 ) + - 20 AS col0 FROM tab2 AS cor0
----
-15560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2035
SELECT - col0 + 52 col2 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2035
SELECT - col0 + 52 col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT - - 11 AS col2, - col1 AS col2 FROM tab2 AS cor0
----
11
-51
11
-67
11
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2037
SELECT DISTINCT MAX( DISTINCT + 85 ) * - + 29 + ( + + 54 ) FROM tab2
----
-2411

skipif mysql # not compatible
query I rowsort label-2037
SELECT DISTINCT MAX ( DISTINCT + 85 ) * - + 29 + ( + + 54 ) FROM tab2
----
-2411

query III rowsort
SELECT * FROM tab1 WHERE - col2 * - ( + - col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2039
SELECT ALL CAST( NULL AS SIGNED ) + + 71 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2039
SELECT ALL CAST ( NULL AS INTEGER ) + + 71 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2041
SELECT - SUM( ALL - 94 ) AS col0, + MIN( ALL col0 ) FROM tab0
----
282
15

skipif mysql # not compatible
query II rowsort label-2041
SELECT - SUM ( ALL - 94 ) AS col0, + MIN ( ALL col0 ) FROM tab0
----
282
15

query III rowsort
SELECT * FROM tab0 WHERE + - ( - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 * - col0 + + 20 col1 FROM tab0 cor0
----
-3460
-3860
-580

onlyif mysql # aggregate syntax: 
query II rowsort label-2044
SELECT ALL + COUNT( * ) * 19 AS col1, MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
57
-1

skipif mysql # not compatible
query II rowsort label-2044
SELECT ALL + COUNT ( * ) * 19 AS col1, MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
57
-1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 73 + col0 + 25 IS NULL
----

query I rowsort
SELECT + col2 * + col0 FROM tab1 AS cor0 WHERE + ( + + col2 ) IS NOT NULL
----
4896
5015
6188

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - col2 <= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2048
SELECT DISTINCT CAST( + 35 AS SIGNED ) * + col2 + col2 + + + col0 AS col2 FROM tab1
----
2209
2539
3507

skipif mysql # not compatible
query I rowsort label-2048
SELECT DISTINCT CAST ( + 35 AS INTEGER ) * + col2 + col2 + + + col0 AS col2 FROM tab1
----
2209
2539
3507

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT ALL 51 - - - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
42

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL 51 - - - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
42

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 46 >= NULL
----

query I rowsort
SELECT ALL ( 61 ) + - ( + col0 ) FROM tab1
----
-24
-30
10

query I rowsort
SELECT - - 81 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT + - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2053
SELECT + - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT DISTINCT - ( + ( col0 ) ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + ( + col2 ) - + 82 FROM tab1 AS cor0
----
-14
-23
14

query I rowsort
SELECT 40 * ( + col1 ) AS col2 FROM tab2 AS cor0
----
2040
2680
3080

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 <> - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2058
SELECT ALL CAST( - col2 AS SIGNED ) FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2058
SELECT ALL CAST ( - col2 AS INTEGER ) FROM tab2 cor0
----
-23
-40
-58

query I rowsort
SELECT + 42 * + - ( + 73 ) + 31 FROM tab2 AS cor0
----
-3035
-3035
-3035

query I rowsort
SELECT ALL + 9 * - 50 AS col0 FROM tab2
----
-450
-450
-450

query I rowsort
SELECT DISTINCT - col2 * - col0 * + - 96 FROM tab1
----
-470016
-481440
-594048

onlyif mysql # DIV for integer division: 
query I rowsort label-2062
SELECT ALL - col2 DIV col1 * - + col0 AS col2 FROM tab0
----
0
0
9603

skipif mysql # not compatible
query I rowsort label-2062
SELECT ALL - col2 / col1 * - + col0 AS col2 FROM tab0
----
0
0
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT DISTINCT COUNT( * ) * + - 62 AS col2 FROM tab1
----
-186

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT COUNT ( * ) * + - 62 AS col2 FROM tab1
----
-186

query I rowsort
SELECT + col1 * + col1 * - col1 * + - col0 FROM tab2 AS cor0
----
22557225
29218112
6101946

query I rowsort
SELECT + 77 * + col2 * col1 FROM tab0 AS cor0
----
16170
293139
7623

query II rowsort
SELECT + 75, 78 AS col2 FROM tab0 AS cor0
----
75
78
75
78
75
78

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL BETWEEN col1 * - col0 + - col1 AND 98 + - 67 + - col2 * col0
----

query I rowsort
SELECT - 60 AS col0 FROM tab2 cor0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT + SUM( - col0 ) AS col0 FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2069
SELECT + SUM ( - col0 ) AS col0 FROM tab1 cor0
----
-227

query I rowsort
SELECT DISTINCT + 0 * - - 29 * col0 * - col1 + + col2 + - - col0 AS col0 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT ALL - 81 + - 64 AS col0 FROM tab2
----
-145
-145
-145

query III rowsort
SELECT * FROM tab1 WHERE NULL < 88
----

query I rowsort
SELECT DISTINCT - col2 + + col2 * + col1 FROM tab1
----
1248
236
3128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2074
SELECT 25 AS col2 FROM tab2 WHERE NULL IN ( - - 82, CAST( NULL AS SIGNED ) / col0 )
----

skipif mysql # not compatible
query I rowsort label-2074
SELECT 25 AS col2 FROM tab2 WHERE NULL IN ( - - 82, CAST ( NULL AS INTEGER ) / col0 )
----

query I rowsort
SELECT DISTINCT - 58 * + - 13 + + + col2 * - col1 FROM tab0
----
-3053
544
655

query III rowsort
SELECT * FROM tab0 WHERE ( NOT + ( + col2 ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2077
SELECT ALL col1 * - + CAST( col1 AS SIGNED ) * + - col1 FROM tab2
----
132651
300763
456533

skipif mysql # not compatible
query I rowsort label-2077
SELECT ALL col1 * - + CAST ( col1 AS INTEGER ) * + - col1 FROM tab2
----
132651
300763
456533

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2078
SELECT 88 + - - ( + CAST( col2 AS SIGNED ) ) + - col1 * + - col0 * + col1 AS col0 FROM tab2 AS cor0
----
119757
336821
379584

skipif mysql # not compatible
query I rowsort label-2078
SELECT 88 + - - ( + CAST ( col2 AS INTEGER ) ) + - col1 * + - col0 * + col1 AS col0 FROM tab2 AS cor0
----
119757
336821
379584

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT + + COUNT( * ) * - - COUNT( * ) + MAX( ALL - col0 ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2079
SELECT + + COUNT ( * ) * - - COUNT ( * ) + MAX ( ALL - col0 ) FROM tab0 cor0
----
-6

query I rowsort
SELECT + ( - 63 ) AS col1 FROM tab2 cor0
----
-63
-63
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ALL + + MAX( - col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL + + MAX ( - col1 ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT ( COUNT( * ) ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2082
SELECT ( COUNT ( * ) ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT col2 - col2 - 80 * - 94 AS col0 FROM tab0
----
7520
7520
7520

query I rowsort
SELECT DISTINCT + ( - 0 ) AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * col1 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2086
SELECT * FROM tab2 WHERE NOT - 42 * + + col1 IN ( - - 29, CAST( NULL AS DECIMAL ), ( - 48 ), 98 * + - col1 )
----

skipif mysql # not compatible
query III rowsort label-2086
SELECT * FROM tab2 WHERE NOT - 42 * + + col1 IN ( - - 29, CAST ( NULL AS REAL ), ( - 48 ), 98 * + - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 * + + 40 col1 FROM tab0
----
-600
-600
-600

query I rowsort
SELECT 7 * - + col1 FROM tab1
----
-329
-35
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2089
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT + col0 NOT BETWEEN NULL AND + col1 / - col2 + + col1 + - - 42
----

skipif mysql # not compatible
query I rowsort label-2089
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT + col0 NOT BETWEEN NULL AND + col1 / - col2 + + col1 + - - 42
----

query I rowsort
SELECT DISTINCT 46 * - + 69 AS col1 FROM tab0
----
-3174

query II rowsort
SELECT - 56, col0 - - col2 AS col0 FROM tab0
----
-56
196
-56
62
-56
97

query I rowsort
SELECT ALL + - col2 FROM tab2 WHERE - col2 + + col1 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT 56 * 26 FROM tab2
----
1456
1456
1456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 92 * + 3 * - 17 AS col1, + 20 col1 FROM tab2
----
-4692
20

query I rowsort
SELECT ALL - col1 * - 62 FROM tab1
----
2914
310
868

onlyif mysql # aggregate syntax: 
query II rowsort label-2096
SELECT ALL - COUNT( * ) AS col2, + 8 * ( - 99 ) col1 FROM tab0
----
-3
-792

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2096
SELECT ALL - COUNT ( * ) AS col2, + 8 * ( - 99 ) col1 FROM tab0
----
-3
-792

onlyif mysql # aggregate syntax: 
query II rowsort label-2097
SELECT - - COUNT( * ), - ( COUNT( - + col1 ) ) AS col0 FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-2097
SELECT - - COUNT ( * ), - ( COUNT ( - + col1 ) ) AS col0 FROM tab2 AS cor0
----
3
-3

query II rowsort
SELECT - + col1, ( - col1 ) FROM tab2 AS cor0
----
-51
-51
-67
-67
-77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
14
47
5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - ( + col2 ) - - 53 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2101
SELECT ( - COUNT( * ) ) AS col2 FROM tab0 cor0 WHERE NOT NULL >= 11 + 51 * - - col0
----
0

skipif mysql # not compatible
query I rowsort label-2101
SELECT ( - COUNT ( * ) ) AS col2 FROM tab0 cor0 WHERE NOT NULL >= 11 + 51 * - - col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2102
SELECT CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2102
SELECT CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-2103
SELECT ( - ( - COUNT( ALL - col2 ) ) ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2103
SELECT ( - ( - COUNT ( ALL - col2 ) ) ) col0 FROM tab2
----
3

query I rowsort
SELECT ALL + 46 AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN 79 AND - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT DISTINCT - - SUM( DISTINCT - 76 ) AS col1 FROM tab1 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-2106
SELECT DISTINCT - - SUM ( DISTINCT - 76 ) AS col1 FROM tab1 cor0
----
-76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + + col1 > NULL
----

query I rowsort
SELECT - col2 + + 8 FROM tab1 AS cor0
----
-51
-60
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-2109
SELECT - 21 DIV - col1 AS col1, col2 * col0 FROM tab1 AS cor0
----
0
6188
1
4896
4
5015

skipif mysql # not compatible
query II rowsort label-2109
SELECT - 21 / - col1 AS col1, col2 * col0 FROM tab1 AS cor0
----
0
6188
1
4896
4
5015

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2110
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - COUNT( * ) + - 69 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2110
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - COUNT ( * ) + - 69 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * - 45 + col2 FROM tab0 AS cor0
----
-3598
-935
54

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 IN ( - 82, - col2, 82, + - 89, - 19 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT ALL - COUNT( * ) + 83 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL - COUNT ( * ) + 83 FROM tab2
----
80

query II rowsort
SELECT 17, + col1 FROM tab1
----
17
14
17
47
17
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT COUNT( * ) * + 58 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-2115
SELECT COUNT ( * ) * + 58 FROM tab2
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT DISTINCT MIN( DISTINCT - col0 ) + - 21 FROM tab1
----
-112

skipif mysql # not compatible
query I rowsort label-2116
SELECT DISTINCT MIN ( DISTINCT - col0 ) + - 21 FROM tab1
----
-112

query I rowsort
SELECT ALL col0 / - - col0 * + - col0 * + + ( - + col1 ) AS col1 FROM tab0 WHERE NOT + 27 + + col2 IS NULL AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2118
SELECT ALL col0 * col0 - 12 - + - col2 * + + CAST( + col2 AS SIGNED ) * 73 FROM tab0
----
14857
161470
724870

skipif mysql # not compatible
query I rowsort label-2118
SELECT ALL col0 * col0 - 12 - + - col2 * + + CAST ( + col2 AS INTEGER ) * 73 FROM tab0
----
14857
161470
724870

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2119
SELECT * FROM tab1 WHERE NULL IN ( col0, - col2, - CAST( + + col2 AS SIGNED ), - 97 * ( + - col2 ) )
----

skipif mysql # not compatible
query III rowsort label-2119
SELECT * FROM tab1 WHERE NULL IN ( col0, - col2, - CAST ( + + col2 AS INTEGER ), - 97 * ( + - col2 ) )
----

query I rowsort
SELECT 84 FROM tab2 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT - ( - - 75 ) + + + col0 AS col0 FROM tab0 cor0
----
-60
12
22

query I rowsort
SELECT + col2 + - - 70 * - - col1 FROM tab2 AS cor0
----
3593
4748
5430

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - + 26 * - - 36 * - + 6 col1 FROM tab2 AS cor0
----
5667
5683
5693

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT DISTINCT 46 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-2124
SELECT DISTINCT 46 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
43

query I rowsort
SELECT - ( - 52 ) * + - col0 FROM tab0
----
-4524
-5044
-780

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * - 89 + - 68 <= - + 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2127
SELECT + + MAX( ALL - col2 ) FROM tab0 cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2127
SELECT + + MAX ( ALL - col2 ) FROM tab0 cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col0, + 1 * - col2 AS col1 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

query II rowsort
SELECT 88 AS col0, + col1 AS col2 FROM tab0 AS cor0
----
88
1
88
21
88
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col0, 92 col2 FROM tab1 AS cor0
----
14
92
47
92
5
92

query I rowsort
SELECT col2 * - col2 + - + col1 FROM tab1 AS cor0
----
-3486
-4671
-9230

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 * - col2 * 51 col1 FROM tab0 AS cor0
----
232509
489753
49470

query II rowsort
SELECT + col1 * - col2 AS col2, col1 FROM tab1
----
-1344
14
-295
5
-3196
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 col0 FROM tab1
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2135
SELECT DISTINCT 43 DIV 25 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2135
SELECT DISTINCT 43 / 25 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2136
SELECT ALL COUNT( col0 ), 35 AS col2 FROM tab2
----
3
35

skipif mysql # not compatible
query II rowsort label-2136
SELECT ALL COUNT ( col0 ), 35 AS col2 FROM tab2
----
3
35

query I rowsort
SELECT DISTINCT - col1 * - 2 AS col1 FROM tab0
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2138
SELECT col1 * - CAST( - - 19 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-266
-893
-95

skipif mysql # not compatible
query I rowsort label-2138
SELECT col1 * - CAST ( - - 19 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-266
-893
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-2139
SELECT ALL + ( - - COUNT( * ) ) * - + MIN( + - 10 ) AS col2, 6 AS col0 FROM tab1 AS cor0
----
30
6

skipif mysql # not compatible
query II rowsort label-2139
SELECT ALL + ( - - COUNT ( * ) ) * - + MIN ( + - 10 ) AS col2, 6 AS col0 FROM tab1 AS cor0
----
30
6

query II rowsort
SELECT - 7 AS col2, + col1 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT + col1 + - + col2 - ( + + col1 ) * - 13 FROM tab0 AS cor0
----
-85
1087
284

query II rowsort
SELECT DISTINCT + - col1 * - + col2 + col2, col1 AS col1 FROM tab0 cor0
----
198
1
220
21
3854
81

query I rowsort
SELECT DISTINCT col2 + 92 AS col2 FROM tab2 AS cor0
----
115
132
150

query II rowsort
SELECT ALL - col2 + + + ( - - 22 ) AS col1, + 2 * - + 24 AS col1 FROM tab0 AS cor0
----
-25
-48
-77
-48
12
-48

query I rowsort
SELECT - col2 + + col2 + + + col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2146
SELECT ALL * FROM tab0 WHERE 19 + col0 < - - 21 * - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2146
SELECT ALL * FROM tab0 WHERE 19 + col0 < - - 21 * - - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2148
SELECT ALL col2 DIV col0 DIV col1 + + - col0 AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2148
SELECT ALL col2 / col0 / col1 + + - col0 AS col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL - 53 + + col0 FROM tab1
----
-2
32
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 31 * + - col2 col2 FROM tab1 WHERE + col2 * - col2 - col2 IS NULL
----

query I rowsort
SELECT col2 * + col0 * - col1 AS col1 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT + 73 * - - ( + col0 ) FROM tab2 AS cor0
----
3358
4672
5475

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND - col1 / + 84
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 47 IS NULL
----

query I rowsort
SELECT ALL - + 76 AS col0 FROM tab0 AS cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-2156
SELECT - MIN( + 90 ) FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-2156
SELECT - MIN ( + 90 ) FROM tab1 AS cor0
----
-90

query I rowsort
SELECT ALL + - 36 AS col0 FROM tab2 AS cor0 WHERE NOT - ( + ( col0 ) ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT COUNT( * ) * ( - 62 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col2 * - 99 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2158
SELECT COUNT ( * ) * ( - 62 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col2 * - 99 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT - COUNT( * ) * 51 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-2159
SELECT - COUNT ( * ) * 51 FROM tab1
----
-153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 25, 14 * + 34 col2 FROM tab2
----
25
476

onlyif mysql # DIV for integer division: 
query I rowsort label-2161
SELECT + col1 DIV + - ( - col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2161
SELECT + col1 / + - ( - col2 ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2162
SELECT DISTINCT + MAX( ALL + + col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-2162
SELECT DISTINCT + MAX ( ALL + + col2 ) AS col2 FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT DISTINCT + COUNT( * ) * + ( + COUNT( * ) ) * - MIN( DISTINCT - col0 ) + COUNT( col0 ) AS col1 FROM tab2 AS cor0
----
678

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT + COUNT ( * ) * + ( + COUNT ( * ) ) * - MIN ( DISTINCT - col0 ) + COUNT ( col0 ) AS col1 FROM tab2 AS cor0
----
678

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT COUNT( + - col2 ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2164
SELECT COUNT ( + - col2 ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT DISTINCT - 39 FROM tab0 AS cor0 WHERE - col1 IS NOT NULL
----
-39

query I rowsort
SELECT + - ( - 38 ) FROM tab2 AS cor0
----
38
38
38

query I rowsort
SELECT ALL - col0 * - col0 + col2 + 32 AS col0 FROM tab1
----
2729
7316
8381

query I rowsort
SELECT col1 * col1 + - 66 FROM tab0
----
-65
375
6495

query I rowsort
SELECT + col1 + + col2 * - col0 AS col2 FROM tab0 AS cor0
----
-624
-849
-9602

query I rowsort
SELECT ALL - 15 FROM tab2 AS cor0 WHERE NOT - 87 IS NULL
----
-15
-15
-15

query I rowsort
SELECT DISTINCT - col1 * + - col0 * col1 + col2 AS col1 FROM tab2 AS cor0
----
119669
336733
379496

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN + - col0 + + col1 AND ( - col1 / col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2173
SELECT + - col0 DIV + + col1 AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-2173
SELECT + - col0 / + + col1 AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-4
-97
0

query I rowsort
SELECT ALL col1 + 83 + 63 FROM tab1 cor0
----
151
160
193

query I rowsort
SELECT DISTINCT - ( - 60 ) * - col1 AS col0 FROM tab2 AS cor0
----
-3060
-4020
-4620

onlyif mysql # aggregate syntax: 
query I rowsort label-2176
SELECT DISTINCT - - SUM( - - col1 ) + + + COUNT( * ) * - + 63 FROM tab1 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT - - SUM ( - - col1 ) + + + COUNT ( * ) * - + 63 FROM tab1 AS cor0
----
-123

query II rowsort
SELECT col2 AS col2, - col0 + col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
0
47
0
99
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2178
SELECT - 59 DIV - + ( - - col2 ) AS col1, - col0 AS col2 FROM tab1
----
0
-51
0
-91
1
-85

skipif mysql # not compatible
query II rowsort label-2178
SELECT - 59 / - + ( - - col2 ) AS col1, - col0 AS col2 FROM tab1
----
0
-51
0
-91
1
-85

query I rowsort
SELECT 90 * + 35 AS col2 FROM tab0
----
3150
3150
3150

query I rowsort
SELECT DISTINCT - col2 + - 0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT ALL 57 - + + 54 AS col1 FROM tab0
----
3
3
3

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + col2 / col1 / col1 / + + col0 + + - 21
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2183
SELECT ALL 59 DIV + + col2 AS col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL 59 / + + col2 AS col2 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT ( MAX( DISTINCT - - col0 ) ) + + 93 AS col0 FROM tab1 AS cor0
----
184

skipif mysql # not compatible
query I rowsort label-2184
SELECT ( MAX ( DISTINCT - - col0 ) ) + + 93 AS col0 FROM tab1 AS cor0
----
184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0, col0 col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

query III rowsort
SELECT * FROM tab1 WHERE - col1 > col2 * + col1 + + col0 / + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT ALL + MAX( ALL col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-2187
SELECT ALL + MAX ( ALL col0 ) AS col1 FROM tab2
----
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 + + 88 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 + - col1 * 51 FROM tab1
----
-2350
-250
-700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2190
SELECT 54 + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2190
SELECT 54 + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 23 + col2 FROM tab1
----
119
82
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2192
SELECT DISTINCT col1 DIV ( + col1 ) + ( + 31 ) FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT col1 / ( + col1 ) + ( + 31 ) FROM tab0
----
32

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) = NULL
----

query I rowsort
SELECT DISTINCT 70 * + col2 AS col2 FROM tab1 WHERE - col1 < 8
----
4130
4760
6720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2195
SELECT 90 - 71 / CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2195
SELECT 90 - 71 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2196
SELECT - 33 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2196
SELECT - 33 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 94 + - 45 FROM tab1
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2198
SELECT - CAST( ( + COUNT( * ) ) AS SIGNED ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2198
SELECT - CAST ( ( + COUNT ( * ) ) AS INTEGER ) FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 * - 11 - col2 * col2 col0 FROM tab0
----
-10835
-1134
-3243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2200
SELECT + 97 * 78 - COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2200
SELECT + 97 * 78 - COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2201
SELECT ( CAST( col1 AS SIGNED ) ) AS col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2201
SELECT ( CAST ( col1 AS INTEGER ) ) AS col0 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT MIN( DISTINCT 58 ) FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-2202
SELECT MIN ( DISTINCT 58 ) FROM tab1
----
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2203
SELECT ALL - CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT col0 NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL - CAST ( NULL AS REAL ) FROM tab2 WHERE NOT col0 NOT IN ( col2 )
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT - 19 * 81 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2205
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + + ( - col0 ) = 14 * + col2 + + ( - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-2205
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + + ( - col0 ) = 14 * + col2 + + ( - CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT DISTINCT - MIN( DISTINCT + col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2206
SELECT DISTINCT - MIN ( DISTINCT + col0 ) AS col1 FROM tab1
----
-51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * ( - col2 ) BETWEEN NULL AND - 7 * - 57
----

query I rowsort
SELECT 62 * + 72 AS col2 FROM tab2
----
4464
4464
4464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2209
SELECT + col2 * + CAST( NULL AS SIGNED ) - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2209
SELECT + col2 * + CAST ( NULL AS INTEGER ) - col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2210
SELECT CAST( - 84 AS SIGNED ) * 1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-2210
SELECT CAST ( - 84 AS INTEGER ) * 1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-84
-84
-84

query I rowsort
SELECT 17 + ( + col2 ) FROM tab2 AS cor0
----
40
57
75

query I rowsort
SELECT + col0 * + col1 + col0 * 94 FROM tab1 AS cor0
----
12831
5508
8415

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + 75 + ( - col0 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 9 - - col2 col0 FROM tab2 AS cor0 WHERE ( 42 * col0 + + 95 ) < ( + 36 )
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE - 43 IS NULL
----

query I rowsort
SELECT ALL col1 + + 81 AS col0 FROM tab1
----
128
86
95

query III rowsort
SELECT * FROM tab2 WHERE + col0 + - col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2218
SELECT ALL + col1 * col0 + - ( + CAST( col0 AS SIGNED ) ) col0 FROM tab2 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2218
SELECT ALL + col1 * col0 + - ( + CAST ( col0 AS INTEGER ) ) col0 FROM tab2 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT ALL MAX( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL MAX ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
96

query I rowsort
SELECT 17 - - 63 FROM tab1 AS cor0
----
80
80
80

onlyif mysql # DIV for integer division: 
query I rowsort label-2221
SELECT ALL + col1 - + 77 DIV - col1 AS col2 FROM tab2 AS cor0
----
52
68
78

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL + col1 - + 77 / - col1 AS col2 FROM tab2 AS cor0
----
52
68
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT ALL + COUNT( * ) - + 28 * - COUNT( * ) FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL + COUNT ( * ) - + 28 * - COUNT ( * ) FROM tab2 AS cor0
----
87

query I rowsort
SELECT 53 - ( 85 ) FROM tab2 AS cor0
----
-32
-32
-32

query I rowsort
SELECT 14 * - col1 + col1 AS col0 FROM tab0 AS cor0
----
-1053
-13
-273

query I rowsort
SELECT + col0 + + col2 * + 96 AS col0 FROM tab1 AS cor0 WHERE - 51 * 43 + col2 <> col2 * ( - 21 )
----
5749
6619
9267

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT 4 + - 0 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-2226
SELECT 4 + - 0 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
4

query I rowsort
SELECT DISTINCT - + 59 AS col0 FROM tab2 cor0
----
-59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 75 / + col0 <= NULL
----

query I rowsort
SELECT DISTINCT 29 + - col2 FROM tab0 AS cor0
----
-18
-70
19

query I rowsort
SELECT + 28 / col0 AS col1 FROM tab1 cor0 WHERE + 11 <> NULL
----

query I rowsort
SELECT 42 + ( 76 ) * col2 FROM tab0
----
3614
7566
802

query I rowsort
SELECT DISTINCT - ( + col1 ) - + 92 AS col2 FROM tab2
----
-143
-159
-169

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab2 WHERE NOT NULL BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2234
SELECT ALL + MAX( - col2 ) FROM tab2 WHERE col0 IS NOT NULL
----
-23

skipif mysql # not compatible
query I rowsort label-2234
SELECT ALL + MAX ( - col2 ) FROM tab2 WHERE col0 IS NOT NULL
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2235
SELECT SUM( + - 46 ) AS col0 FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-2235
SELECT SUM ( + - 46 ) AS col0 FROM tab1
----
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2236
SELECT DISTINCT col2 * CAST( 54 AS SIGNED ) FROM tab1
----
3186
3672
5184

skipif mysql # not compatible
query I rowsort label-2236
SELECT DISTINCT col2 * CAST ( 54 AS INTEGER ) FROM tab1
----
3186
3672
5184

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2237
SELECT ALL + CAST( + col0 AS SIGNED ) DIV col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL + CAST ( + col0 AS INTEGER ) / col0 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT ( - COUNT( * ) ) * 44 AS col2 FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NULL
----
-132

skipif mysql # not compatible
query I rowsort label-2238
SELECT ( - COUNT ( * ) ) * 44 AS col2 FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NULL
----
-132

query I rowsort
SELECT + 48 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 )
----

query I rowsort
SELECT DISTINCT + 87 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL
----
87

query I rowsort
SELECT ALL + 54 * col0 FROM tab1
----
2754
4590
4914

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < + 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT DISTINCT - ( - MAX( - 36 ) ) AS col1 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-2243
SELECT DISTINCT - ( - MAX ( - 36 ) ) AS col1 FROM tab0 AS cor0
----
-36

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT col0 - - col2 FROM tab0 cor0 WHERE NOT col1 / + 33 + + 72 * + 84 BETWEEN ( - col2 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT - ( + 86 ) * + MAX( DISTINCT - col0 ) AS col1 FROM tab2 cor0
----
3956

skipif mysql # not compatible
query I rowsort label-2246
SELECT - ( + 86 ) * + MAX ( DISTINCT - col0 ) AS col1 FROM tab2 cor0
----
3956

query I rowsort
SELECT ALL 73 * col1 * col2 FROM tab0
----
15330
277911
7227

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 23 ) <= col1 * col0 AND NULL IS NULL
----

query I rowsort
SELECT ALL - col2 + + 59 * - - 74 AS col0 FROM tab2
----
4308
4326
4343

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 col1 FROM tab1
----
28
28
28

query I rowsort
SELECT ALL - col2 * col1 + + col0 AS col2 FROM tab2 WHERE NULL IS NULL
----
-1127
-3016
-3811

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2252
SELECT * FROM tab0 WHERE - CAST( col1 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-2252
SELECT * FROM tab0 WHERE - CAST ( col1 AS INTEGER ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT COUNT( - - col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2253
SELECT COUNT ( - - col0 ) AS col0 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col2 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT SUM( + 59 ) AS col1 FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-2255
SELECT SUM ( + 59 ) AS col1 FROM tab0
----
177

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2256
SELECT DISTINCT - 34 * - CAST( + col0 AS DECIMAL ) + col0 col1 FROM tab0 WHERE NOT NULL IN ( 61 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2256
SELECT DISTINCT - 34 * - CAST ( + col0 AS REAL ) + col0 col1 FROM tab0 WHERE NOT NULL IN ( 61 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2257
SELECT ALL - 81 DIV + - 1 FROM tab0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-2257
SELECT ALL - 81 / + - 1 FROM tab0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT MAX( ALL - ( - col0 ) ) FROM tab0 WHERE ( + - 67 * + - col1 + col2 ) IS NOT NULL
----
97

skipif mysql # not compatible
query I rowsort label-2258
SELECT MAX ( ALL - ( - col0 ) ) FROM tab0 WHERE ( + - 67 * + - col1 + col2 ) IS NOT NULL
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2259
SELECT DISTINCT + 48 DIV col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2259
SELECT DISTINCT + 48 / col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - - col0 * 25 FROM tab2 AS cor0 WHERE NOT col0 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2261
SELECT DISTINCT + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 * + col1 AS col2 FROM tab2 AS cor0 WHERE col2 = + 35
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 86 + - 33 * - AVG ( DISTINCT 85 ) AS col2 FROM tab1 AS cor0 WHERE 34 - - col2 < 80
----
NULL

query I rowsort
SELECT col0 + + 91 - - + ( + 31 ) AS col2 FROM tab1
----
173
207
213

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE ( + col1 ) IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2267
SELECT 75 + + ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2267
SELECT 75 + + ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 64 * + 88 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
5632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - col1 col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT ALL - ( - + COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2270
SELECT ALL - ( - + COUNT ( * ) ) FROM tab1 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + + 58 ) BETWEEN + 72 * 29 * col0 AND col1 AND + col0 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( - + col0 ) FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT + 12 - + + col0 + + + 42 * + col1 * + 73 FROM tab0
----
248343
2981
64311

onlyif mysql # aggregate syntax: 
query II rowsort label-2274
SELECT COUNT( * ), - MAX( DISTINCT + 90 ) AS col2 FROM tab2
----
3
-90

skipif mysql # not compatible
query II rowsort label-2274
SELECT COUNT ( * ), - MAX ( DISTINCT + 90 ) AS col2 FROM tab2
----
3
-90

query I rowsort
SELECT - col0 * 47 FROM tab0 WHERE NOT + col1 + col0 < - - col0
----
-4089
-4559
-705

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * + col2 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 97 * + ( + 83 ) AS col1 FROM tab0
----
-8051
-8051
-8051

onlyif mysql # DIV for integer division: 
query II rowsort label-2278
SELECT ALL 66 * + col1 AS col1, ( + col0 ) DIV - - col1 + col0 AS col0 FROM tab1
----
3102
92
330
102
924
54

skipif mysql # not compatible
query II rowsort label-2278
SELECT ALL 66 * + col1 AS col1, ( + col0 ) / - - col1 + col0 AS col0 FROM tab1
----
3102
92
330
102
924
54

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN ( - 41 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 24 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2281
SELECT COUNT( * ) * - 37 AS col1 FROM tab0 WHERE NOT ( + - col2 + CAST( NULL AS DECIMAL ) ) NOT IN ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2281
SELECT COUNT ( * ) * - 37 AS col1 FROM tab0 WHERE NOT ( + - col2 + CAST ( NULL AS REAL ) ) NOT IN ( + col2 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col1 / + 60 * col0 IS NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NOT 59 IS NOT NULL
----

query II rowsort
SELECT ALL + 27, - col0 AS col2 FROM tab0 AS cor0
----
27
-15
27
-87
27
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2285
SELECT CAST( NULL AS SIGNED ) AS col2, col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-2285
SELECT CAST ( NULL AS INTEGER ) AS col2, col0 AS col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT ALL 67 * + + 32 * + col0 * - - col0 AS col2 FROM tab1 AS cor0
----
15490400
17754464
5576544

query I rowsort
SELECT + - 12 * - - col1 FROM tab2 WHERE NOT - col0 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2288
SELECT DISTINCT - CAST( + col2 AS SIGNED ) * col2 * col1 * 15 + - col2 AS col2 FROM tab1 AS cor0
----
-1935456
-261134
-3259988

skipif mysql # not compatible
query I rowsort label-2288
SELECT DISTINCT - CAST ( + col2 AS INTEGER ) * col2 * col1 * 15 + - col2 AS col2 FROM tab1 AS cor0
----
-1935456
-261134
-3259988

onlyif mysql # aggregate syntax: 
query I rowsort label-2289
SELECT DISTINCT + + MIN( - + 91 ) FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2289
SELECT DISTINCT + + MIN ( - + 91 ) FROM tab0 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT + + SUM( ALL - 75 ) AS col2 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-2290
SELECT + + SUM ( ALL - 75 ) AS col2 FROM tab2 AS cor0
----
-225

query I rowsort
SELECT 21 * 33 AS col2 FROM tab0 AS cor0
----
693
693
693

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2293
SELECT ALL + ( CAST( NULL AS SIGNED ) ) AS col1, + col1 DIV + 57 FROM tab0 AS cor0
----
NULL
0
NULL
0
NULL
1

skipif mysql # not compatible
query II rowsort label-2293
SELECT ALL + ( CAST ( NULL AS INTEGER ) ) AS col1, + col1 / + 57 FROM tab0 AS cor0
----
NULL
0
NULL
0
NULL
1

query I rowsort
SELECT DISTINCT - + 45 FROM tab0 AS cor0 WHERE NULL <> - 34 * - - 31
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT + + col1 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2296
SELECT ALL - CAST( col1 AS SIGNED ) * 27 FROM tab2 AS cor0
----
-1377
-1809
-2079

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL - CAST ( col1 AS INTEGER ) * 27 FROM tab2 AS cor0
----
-1377
-1809
-2079

query II rowsort
SELECT ALL - + col1 + col1 AS col0, col1 * - + ( col1 ) FROM tab1 AS cor0
----
0
-196
0
-2209
0
-25

query I rowsort
SELECT DISTINCT + 75 + - - 35 FROM tab2 AS cor0
----
110

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= - 2 * col0
----

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE ( NULL ) IN ( 72 + - - col1 * - 34 )
----

query I rowsort
SELECT ALL ( col2 ) + - ( - 18 ) + + col0 FROM tab1
----
162
165
177

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN + - col0 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> ( + + 54 + - 41 )
----

query I rowsort
SELECT DISTINCT ( - 17 ) FROM tab1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2305
SELECT ALL + MAX( DISTINCT + col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL + MAX ( DISTINCT + col0 ) AS col1 FROM tab1
----
91

query I rowsort
SELECT DISTINCT 43 * - col2 AS col2 FROM tab0
----
-2021
-4257
-430

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 78 * - + col1 >= - col2 * + + 74
----

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NULL <= - 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2309
SELECT DISTINCT 53 AS col1, CAST( + + 95 AS SIGNED ) FROM tab2 AS cor0
----
53
95

skipif mysql # not compatible
query II rowsort label-2309
SELECT DISTINCT 53 AS col1, CAST ( + + 95 AS INTEGER ) FROM tab2 AS cor0
----
53
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT COUNT( * ) * + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2310
SELECT COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2311
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2311
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT ALL - col0 - - - col1 FROM tab2
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2313
SELECT CAST( NULL AS SIGNED ) * - 62 - ( - 90 ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2313
SELECT CAST ( NULL AS INTEGER ) * - 62 - ( - 90 ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 25 + 92 * - col1 AS col1 FROM tab2 AS cor0
----
-4717
-6189
-7109

query I rowsort
SELECT - - col2 + + + 5 + + col1 + + - col2 + - - col1 * - col0 * col0 * 99 AS col1 FROM tab2 AS cor0
----
-10683628
-31223726
-37310553

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2316
SELECT + CAST( NULL AS SIGNED ) + 86 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2316
SELECT + CAST ( NULL AS INTEGER ) + 86 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= + 47
----

query I rowsort
SELECT ALL col0 * + 34 AS col0 FROM tab0
----
2958
3298
510

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT - COUNT( DISTINCT col1 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2319
SELECT - COUNT ( DISTINCT col1 ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT DISTINCT - - COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT - - COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT DISTINCT COUNT( - col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2321
SELECT DISTINCT COUNT ( - col2 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2322
SELECT 70 AS col2, + COUNT( * ) + COUNT( ALL - 25 ) AS col0 FROM tab1
----
70
6

skipif mysql # not compatible
query II rowsort label-2322
SELECT 70 AS col2, + COUNT ( * ) + COUNT ( ALL - 25 ) AS col0 FROM tab1
----
70
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2323
SELECT DISTINCT + - 4 * - CAST( NULL AS SIGNED ) * - + col1 * col0 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2323
SELECT DISTINCT + - 4 * - CAST ( NULL AS INTEGER ) * - + col1 * col0 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 61 * - col1 FROM tab1 AS cor0
----
2867
305
854

onlyif mysql # aggregate syntax: 
query II rowsort label-2325
SELECT DISTINCT - - COUNT( * ), - COUNT( * ) AS col1 FROM tab0 cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-2325
SELECT DISTINCT - - COUNT ( * ), - COUNT ( * ) AS col1 FROM tab0 cor0
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2326
SELECT * FROM tab0 cor0 WHERE NOT col2 <> + 93 / - + CAST( + 63 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2326
SELECT * FROM tab0 cor0 WHERE NOT col2 <> + 93 / - + CAST ( + 63 AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 12 <> + - col1 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT - + MAX( + col2 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-58

skipif mysql # not compatible
query I rowsort label-2328
SELECT - + MAX ( + col2 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + 66 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2330
SELECT ALL - col0, CAST( NULL AS SIGNED ) / 23 AS col2 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-2330
SELECT ALL - col0, CAST ( NULL AS INTEGER ) / 23 AS col2 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 + - + col1 col2 FROM tab2
----
-23
-39
-49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2332
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 - + CAST( NULL AS SIGNED ) * col0 * col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2332
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 - + CAST ( NULL AS INTEGER ) * col0 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2333
SELECT ALL - col1 * + ( + 19 ) / + col2 * col1 + + - CAST( NULL AS SIGNED ) + + - col1 * - 62 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2333
SELECT ALL - col1 * + ( + 19 ) / + col2 * col1 + + - CAST ( NULL AS INTEGER ) + + - col1 * - 62 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT DISTINCT MIN( ALL col0 ) * - + 86 AS col2 FROM tab1 AS cor0
----
-4386

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT MIN ( ALL col0 ) * - + 86 AS col2 FROM tab1 AS cor0
----
-4386

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2335
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ALL + - col2 + + ( 49 ) * + - col1 AS col1 FROM tab0 AS cor0
----
-1039
-148
-4016

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 / col0 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT DISTINCT + 6 + COUNT( * ) + 92 col2 FROM tab2
----
101

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2338
SELECT DISTINCT + 6 + COUNT ( * ) + 92 col2 FROM tab2
----
101

query II rowsort
SELECT ( + col1 ) AS col0, + 24 FROM tab1
----
14
24
47
24
5
24

query I rowsort
SELECT ALL 53 + + - col2 + col0 AS col2 FROM tab1
----
76
79
8

query I rowsort
SELECT col2 / + col1 AS col0 FROM tab1 WHERE - 94 IS NULL
----

query I rowsort
SELECT ALL + col1 + - col2 + - + col0 FROM tab1
----
-112
-133
-139

query III rowsort
SELECT * FROM tab1 WHERE 61 * + col0 * 5 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT ALL SUM( 49 ) * 76 * - 23 col0 FROM tab2
----
-256956

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2344
SELECT ALL SUM ( 49 ) * 76 * - 23 col0 FROM tab2
----
-256956

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2345
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2345
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2, tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - + ( + 30 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-30

query I rowsort
SELECT + 59 FROM tab0 AS cor0 WHERE NULL > - col2
----

query I rowsort
SELECT - 20 FROM tab0 AS cor0 WHERE 73 IS NULL
----

query I rowsort
SELECT DISTINCT 42 * + - 56 + + col0 + - - 98 * col1 + - 95 * - col2 AS col1 FROM tab0
----
10066
7248
743

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2350
SELECT DISTINCT - + 17 DIV MAX( ALL - CAST( + col0 AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2350
SELECT DISTINCT - + 17 / MAX ( ALL - CAST ( + col0 AS INTEGER ) ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2351
SELECT - - MAX( DISTINCT col1 ) FROM tab2 AS cor0 WHERE NOT col1 * - + col0 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2351
SELECT - - MAX ( DISTINCT col1 ) FROM tab2 AS cor0 WHERE NOT col1 * - + col0 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT DISTINCT + SUM( - - col0 ) col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2352
SELECT DISTINCT + SUM ( - - col0 ) col0 FROM tab1 AS cor0
----
227

query I rowsort
SELECT 78 AS col0 FROM tab1 cor0
----
78
78
78

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2354
SELECT ALL col0 AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-2354
SELECT ALL col0 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
46
NULL
64
NULL
75
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> 3 * + 6 + + - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2356
SELECT DISTINCT MAX( ALL + col1 ) DIV COUNT( * ) AS col0 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-2356
SELECT DISTINCT MAX ( ALL + col1 ) / COUNT ( * ) AS col0 FROM tab2
----
25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2357
SELECT + 5 DIV - - 85 AS col0, - CAST( NULL AS SIGNED ) * - - col0 * - + col2 * ( + col2 ) * - col0 FROM tab1
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-2357
SELECT + 5 / - - 85 AS col0, - CAST ( NULL AS INTEGER ) * - - col0 * - + col2 * ( + col2 ) * - col0 FROM tab1
----
0
NULL
0
NULL
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2358
SELECT DISTINCT - AVG ( 90 ) * - CAST( NULL AS DECIMAL ) * COUNT( DISTINCT + - 39 ) + - CAST( + 46 AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2358
SELECT DISTINCT - AVG ( 90 ) * - CAST ( NULL AS REAL ) * COUNT ( DISTINCT + - 39 ) + - CAST ( + 46 AS INTEGER ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col2 AND 31
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 * - + 83 ) BETWEEN col0 * - + 30 / + col1 * - col2 AND - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2361
SELECT ALL * FROM tab1 WHERE NOT - 19 = - + CAST( NULL AS SIGNED ) + + col2
----

skipif mysql # not compatible
query III rowsort label-2361
SELECT ALL * FROM tab1 WHERE NOT - 19 = - + CAST ( NULL AS INTEGER ) + + col2
----

query II rowsort
SELECT DISTINCT + ( - col2 ) AS col0, col1 + + col2 + 31 FROM tab1
----
-59
95
-68
146
-96
141

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 81 NOT BETWEEN 47 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN + ( - col2 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 88 <= ( 84 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2366
SELECT ALL COUNT( * ) + + 25 + + - 20 DIV + 53 * - - 20 AS col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
34

skipif mysql # not compatible
query I rowsort label-2366
SELECT ALL COUNT ( * ) + + 25 + + - 20 / + 53 * - - 20 AS col0 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
34

query I rowsort
SELECT + - 85 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT ( - + 64 ) AS col2 FROM tab0 cor0
----
-64
-64
-64

query I rowsort
SELECT col2 + col2 AS col1 FROM tab2 cor0 WHERE 32 IS NULL
----

query I rowsort
SELECT ALL col1 * - col2 + 73 AS col2 FROM tab0 AS cor0
----
-137
-26
-3734

query I rowsort
SELECT DISTINCT + 29 + + + col1 AS col0 FROM tab2 AS cor0
----
106
80
96

query I rowsort
SELECT + col1 * 71 + - 87 FROM tab1 cor0
----
268
3250
907

onlyif mysql # aggregate syntax: 
query I rowsort label-2373
SELECT COUNT( * ) * 60 + + - 10 FROM tab0
----
170

skipif mysql # not compatible
query I rowsort label-2373
SELECT COUNT ( * ) * 60 + + - 10 FROM tab0
----
170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 col1 FROM tab2 WHERE - ( col0 ) <> - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2375
SELECT CAST( col0 AS SIGNED ) + - col1 AS col2 FROM tab0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-2375
SELECT CAST ( col0 AS INTEGER ) + - col1 AS col2 FROM tab0
----
-66
66
96

query II rowsort
SELECT 42 + - col0 * - col0 * col2 AS col2, + 56 * - + col1 AS col2 FROM tab0
----
10617
-4536
75732
-1176
931533
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT + ( + + ( + + 69 ) ) * - 2 - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-2377
SELECT + ( + + ( + + 69 ) ) * - 2 - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-141

query I rowsort
SELECT - col1 * + 15 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 * col2 >= - col2
----

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + + col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 cor0 WHERE col2 BETWEEN 66 AND col1
----

query I rowsort
SELECT - - 75 AS col0 FROM tab2 AS cor0
----
75
75
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND - 6
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT DISTINCT - + ( + + COUNT( ALL col1 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT - + ( + + COUNT ( ALL col1 ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT MAX( ALL + - 52 ) * + 68 FROM tab2 AS cor0
----
-3536

skipif mysql # not compatible
query I rowsort label-2387
SELECT MAX ( ALL + - 52 ) * + 68 FROM tab2 AS cor0
----
-3536

query I rowsort
SELECT 64 * + 83 AS col2 FROM tab0
----
5312
5312
5312

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE NOT ( + + col2 + + 19 / + + col0 - + + col2 ) >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2389
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( + + col2 + + 19 / + + col0 - + + col2 ) >= ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2390
SELECT col2 * + CAST( + + CAST( NULL AS DECIMAL ) AS SIGNED ) * col0 + + 27 + - col2 + 18 * + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2390
SELECT col2 * + CAST ( + + CAST ( NULL AS REAL ) AS INTEGER ) * col0 + + 27 + - col2 + 18 * + col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + + 80
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2392
SELECT 13, COUNT( * ) col2 FROM tab2
----
13
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2392
SELECT 13, COUNT ( * ) col2 FROM tab2
----
13
3

query II rowsort
SELECT 62 AS col0, + 2 FROM tab2
----
62
2
62
2
62
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT DISTINCT - MAX( - 16 ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-2394
SELECT DISTINCT - MAX ( - 16 ) FROM tab1
----
16

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 41 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - - 7 * + 89 + - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 82 - 52 col0 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT ALL - 82 + - + 98 FROM tab2 cor0
----
-180
-180
-180

onlyif mysql # DIV for integer division: 
query I rowsort label-2399
SELECT col0 + + col1 DIV - + col2 AS col1 FROM tab0
----
14
85
97

skipif mysql # not compatible
query I rowsort label-2399
SELECT col0 + + col1 / - + col2 AS col1 FROM tab0
----
14
85
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT + COUNT( * ) + MIN( ALL + 60 ) + - COUNT( * ) AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-2400
SELECT + COUNT ( * ) + MIN ( ALL + 60 ) + - COUNT ( * ) AS col1 FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2401
SELECT + + MAX( ALL 13 ) AS col0 FROM tab1 AS cor0 WHERE ( ( - col1 / + 88 IS NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2401
SELECT + + MAX ( ALL 13 ) AS col0 FROM tab1 AS cor0 WHERE ( ( - col1 / + 88 IS NULL ) )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 12 IS NULL
----

query II rowsort
SELECT + ( - - 24 ) * col2 + + + col2, 35 AS col0 FROM tab1 cor0
----
1475
35
1700
35
2400
35

onlyif mysql # aggregate syntax: 
query II rowsort label-2404
SELECT DISTINCT + 43, - MAX( - col1 ) AS col1 FROM tab0 AS cor0 WHERE col0 + - - col0 IS NULL
----
43
NULL

skipif mysql # not compatible
query II rowsort label-2404
SELECT DISTINCT + 43, - MAX ( - col1 ) AS col1 FROM tab0 AS cor0 WHERE col0 + - - col0 IS NULL
----
43
NULL

query I rowsort
SELECT ALL - col1 + - col0 + + col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2406
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col2 * - - col0 * + + CAST( NULL AS SIGNED ) + + col2 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2406
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col2 * - - col0 * + + CAST ( NULL AS INTEGER ) + + col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= col0 + 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT DISTINCT + COUNT( - + col2 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2408
SELECT DISTINCT + COUNT ( - + col2 ) col0 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2409
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 WHERE 26 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2409
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT + MIN( - 77 ) FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-2410
SELECT + MIN ( - 77 ) FROM tab1
----
-77

query I rowsort
SELECT col2 * - - col0 * + + col2 * - 29 * - 75 FROM tab0
----
18922500
2067765975
72068625

query I rowsort
SELECT ALL 59 + 19 AS col0 FROM tab0
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 col0 FROM tab1 WHERE ( + - col2 ) < col2
----
15
15
15

query I rowsort
SELECT DISTINCT AVG ( ALL col2 ) AS col0 FROM tab0 WHERE NOT NULL IN ( - ( + col0 ) )
----
NULL

query I rowsort
SELECT ( - - 49 ) - + col1 + - col2 * + - col2 + + 2 FROM tab2
----
1574
3348
529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col2, - col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT - - ( 72 ) + + COUNT( * ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2417
SELECT - - ( 72 ) + + COUNT ( * ) FROM tab1 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-2418
SELECT SUM( ALL - col2 ) + 27 col0, 89 FROM tab2 AS cor0
----
-94
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2418
SELECT SUM ( ALL - col2 ) + 27 col0, 89 FROM tab2 AS cor0
----
-94
89

query I rowsort
SELECT + 72 + - 64 AS col1 FROM tab0 AS cor0
----
8
8
8

query I rowsort
SELECT + + 40 FROM tab2 cor0
----
40
40
40

query II rowsort
SELECT DISTINCT col1 AS col2, 28 AS col2 FROM tab1
----
14
28
47
28
5
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - ( - + col0 ) * - 6 + - col0 col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT ALL - 23 AS col2, + 11 + - col1 FROM tab1 cor0
----
-23
-3
-23
-36
-23
6

query II rowsort
SELECT ALL - col0, + col1 AS col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2425
SELECT - col2 AS col2, - col1 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-2425
SELECT - col2 AS col2, - col1 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2426
SELECT - 4 AS col0, col2 DIV - + col0 FROM tab1 AS cor0
----
-4
-1
-4
0
-4
0

skipif mysql # not compatible
query II rowsort label-2426
SELECT - 4 AS col0, col2 / - + col0 FROM tab1 AS cor0
----
-4
-1
-4
0
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT + + COUNT( ALL + col2 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2427
SELECT + + COUNT ( ALL + col2 ) col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL - col1 AS col1, - col1 AS col2 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

query I rowsort
SELECT DISTINCT 28 * 52 FROM tab0 AS cor0
----
1456

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 WHERE NOT + col0 * - + 95 IS NOT NULL
----

query I rowsort
SELECT 76 FROM tab1 WHERE NOT NULL <= col1
----

query I rowsort
SELECT ALL col0 FROM tab0 WHERE 63 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + 12 AND NULL
----

query I rowsort
SELECT ALL ( ( col2 ) ) AS col0 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2436
SELECT ALL MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2436
SELECT ALL MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - col2 col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-2438
SELECT ALL + ( - - col2 ) DIV + col2 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2438
SELECT ALL + ( - - col2 ) / + col2 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT col0 + - - col2 + + 44 FROM tab0 AS cor0
----
106
141
240

query I rowsort
SELECT DISTINCT - - 96 + + col2 * + + 84 + 28 FROM tab2 AS cor0
----
2056
3484
4996

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 96 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 * + ( col0 ) + + col1 AS col2 FROM tab0
----
1296
1848
98

query I rowsort
SELECT - 28 - - col0 AS col1 FROM tab0 cor0
----
-13
59
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2444
SELECT COUNT( * ) - MAX( + - col2 ) - + 32 AS col1 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-2444
SELECT COUNT ( * ) - MAX ( + - col2 ) - + 32 AS col1 FROM tab0 AS cor0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-2445
SELECT + - 86 DIV - + col0 - - 61 FROM tab1 AS cor0
----
61
62
62

skipif mysql # not compatible
query I rowsort label-2445
SELECT + - 86 / - + col0 - - 61 FROM tab1 AS cor0
----
61
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT COUNT( * ) + + 7 + + 16 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-2446
SELECT COUNT ( * ) + + 7 + + 16 FROM tab2 AS cor0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2447
SELECT - 40 DIV + col0 + - + 9 AS col1 FROM tab1 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-2447
SELECT - 40 / + col0 + - + 9 AS col1 FROM tab1 AS cor0
----
-9
-9
-9

query I rowsort
SELECT col1 + + 85 FROM tab0 AS cor0
----
106
166
86

query I rowsort
SELECT ALL col0 * + - ( 32 ) * + col1 + + ( - col1 ) + - 11 + + col1 FROM tab0 AS cor0
----
-3115
-38891
-58475

query II rowsort
SELECT ALL + 51 + + + col1, + col0 FROM tab1
----
56
85
65
51
98
91

query II rowsort
SELECT DISTINCT + col1 - + ( - col2 ) + - 49 AS col2, + col1 AS col2 FROM tab0
----
-18
21
51
1
79
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2452
SELECT DISTINCT CAST( + 82 AS SIGNED ) * + col0 * - 3 + + col1 AS col0 FROM tab0
----
-21381
-23861
-3609

skipif mysql # not compatible
query I rowsort label-2452
SELECT DISTINCT CAST ( + 82 AS INTEGER ) * + col0 * - 3 + + col1 AS col0 FROM tab0
----
-21381
-23861
-3609

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT + COUNT( - ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2453
SELECT + COUNT ( - ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2454
SELECT - + MAX( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2454
SELECT - + MAX ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT col2 AS col1, + ( - col0 ) + - + col1 FROM tab1
----
59
-90
68
-138
96
-65

query I rowsort
SELECT ALL - col1 * - 55 AS col0 FROM tab2
----
2805
3685
4235

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT DISTINCT ( - 99 ) * - - 49 + - COUNT( * ) AS col2 FROM tab1
----
-4854

skipif mysql # not compatible
query I rowsort label-2458
SELECT DISTINCT ( - 99 ) * - - 49 + - COUNT ( * ) AS col2 FROM tab1
----
-4854

onlyif mysql # DIV for integer division: 
query I rowsort label-2459
SELECT - col2 DIV + 9 + + + 30 FROM tab1 AS cor0
----
20
23
24

skipif mysql # not compatible
query I rowsort label-2459
SELECT - col2 / + 9 + + + 30 FROM tab1 AS cor0
----
20
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT - + COUNT( ALL + + 9 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2460
SELECT - + COUNT ( ALL + + 9 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT - ( + 10 ) AS col0 FROM tab1 AS cor0
----
-10
-10
-10

query I rowsort
SELECT 79 AS col2 FROM tab1 cor0
----
79
79
79

query I rowsort
SELECT DISTINCT + + col1 * + 1 * col0 + col1 * - col2 * + + col2 FROM tab2 AS cor0
----
-118272
-220363
-24633

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2464
SELECT ALL + COUNT( * ) DIV - - COUNT( * ) + + 31 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-2464
SELECT ALL + COUNT ( * ) / - - COUNT ( * ) + + 31 FROM tab1 AS cor0
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + - col0 + + + 85 col1 FROM tab2
----
77
90
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2466
SELECT DISTINCT col1 DIV + - 40 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-2466
SELECT DISTINCT col1 / + - 40 FROM tab1
----
-1
0

query I rowsort
SELECT + 42 * + 33 AS col2 FROM tab0
----
1386
1386
1386

query I rowsort
SELECT + col0 * col1 * - 23 FROM tab1
----
-16422
-9775
-98371

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + ( + 42 ) col0 FROM tab1
----
-2478
-2856
-4032

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 45 col0 FROM tab1
----
-2295
-3825
-4095

query II rowsort
SELECT DISTINCT - 23 AS col2, col2 + + col2 FROM tab2
----
-23
116
-23
46
-23
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2472
SELECT + ( + - col0 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2472
SELECT + ( + - col0 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + ( col0 ) ) * - col0 AS col0 FROM tab2
----
2116
4096
5625

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( - col1 ) > - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 46 + + col0 FROM tab0 AS cor0
----
-31
41
51

query I rowsort
SELECT + 35 FROM tab0 AS cor0 WHERE col0 <= NULL
----

query I rowsort
SELECT DISTINCT - 45 + ( - + 45 ) + - col2 AS col2 FROM tab2
----
-113
-130
-148

query I rowsort
SELECT DISTINCT - - 11 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
11

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = + ( col2 ) + ( + 33 )
----

query I rowsort
SELECT DISTINCT - + col0 * col1 AS col0 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT + MIN( ALL + col1 ) FROM tab1 AS cor0 WHERE col1 - - - col0 / + 51 <> ( + 44 )
----
5

skipif mysql # not compatible
query I rowsort label-2481
SELECT + MIN ( ALL + col1 ) FROM tab1 AS cor0 WHERE col1 - - - col0 / + 51 <> ( + 44 )
----
5

query I rowsort
SELECT 40 AS col0 FROM tab1 AS cor0 WHERE - ( - + col0 ) * - + col2 * + col2 <= + - col0
----
40
40
40

query II rowsort
SELECT + ( col1 ) * + - col1, col2 FROM tab1 AS cor0
----
-196
96
-2209
68
-25
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2484
SELECT SUM( ALL - 66 ) FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-2484
SELECT SUM ( ALL - 66 ) FROM tab2 AS cor0
----
-198

query II rowsort
SELECT - + 94 - - 24 AS col0, - col0 AS col1 FROM tab0 AS cor0
----
-70
-15
-70
-87
-70
-97

query II rowsort
SELECT - col0 - - - col1 AS col0, col0 * + + 27 AS col0 FROM tab2 cor0
----
-141
1728
-142
2025
-97
1242

query I rowsort
SELECT ALL - 80 FROM tab0 WHERE NOT col1 >= 61 AND NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT + COUNT( * ) - + 86 col2 FROM tab1
----
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2488
SELECT + COUNT ( * ) - + 86 col2 FROM tab1
----
-83

query II rowsort
SELECT ALL + col1 AS col0, + col2 AS col1 FROM tab1
----
14
96
47
68
5
59

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( - + 83 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 / + - col2 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + col1 > + col2 )
----
97
1
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 <> + col1 * + 40
----

query II rowsort
SELECT DISTINCT - ( + + 56 ), col1 FROM tab2
----
-56
51
-56
67
-56
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT + SUM( ALL + col0 ) AS col1 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-2495
SELECT + SUM ( ALL + col0 ) AS col1 FROM tab0 cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT COUNT( * ) - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN + + col1 AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-2496
SELECT COUNT ( * ) - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 BETWEEN + + col1 AND - col2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2497
SELECT ALL CAST( + + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2497
SELECT ALL CAST ( + + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2498
SELECT ALL ( + SUM( - - 52 ) ) FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2498
SELECT ALL ( + SUM ( - - 52 ) ) FROM tab2 AS cor0
----
156

query I rowsort
SELECT ALL - col2 * - - col1 * col0 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT ALL + ( + + 47 ) + 10 FROM tab0 AS cor0
----
57
57
57

query I rowsort
SELECT ALL + + ( col0 ) * + col2 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT ALL - col0 + - 68 AS col0 FROM tab0
----
-155
-165
-83

query II rowsort
SELECT + col1 AS col0, col0 FROM tab2 WHERE NOT + ( - + 10 ) / col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT - 58 + - COUNT( * ) FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-2504
SELECT - 58 + - COUNT ( * ) FROM tab2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT DISTINCT - 49 * + + 12 + + - 88 + - MIN( col2 ) AS col1 FROM tab1 AS cor0
----
-735

skipif mysql # not compatible
query I rowsort label-2505
SELECT DISTINCT - 49 * + + 12 + + - 88 + - MIN ( col2 ) AS col1 FROM tab1 AS cor0
----
-735

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT - - COUNT( * ) + 39 AS col2 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2507
SELECT - - COUNT ( * ) + 39 AS col2 FROM tab0 AS cor0
----
42

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col0 NOT IN ( - + col1, col2 - + - col2 )
----
64
77
40
75
67
58

query I rowsort
SELECT DISTINCT 77 * col0 AS col0 FROM tab0
----
1155
6699
7469

query I rowsort
SELECT + - col1 + 29 FROM tab0 AS cor0
----
-52
28
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2511
SELECT DISTINCT - + col1 * + + col2 + - col0 - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2511
SELECT DISTINCT - + col1 * + + col2 + - col0 - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - - col0 * + 96 AS col0 FROM tab2 AS cor0
----
4416
6144
7200

query II rowsort
SELECT 11 + + col2, col0 FROM tab2 AS cor0
----
34
46
51
64
69
75

query I rowsort
SELECT + 74 + + col1 FROM tab0 AS cor0
----
155
75
95

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 + + + col0 + + - col0 / + - col2 AND - col2 * + 30
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2516
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) BETWEEN + col1 AND + 99 + - col2
----

skipif mysql # not compatible
query III rowsort label-2516
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) BETWEEN + col1 AND + 99 + - col2
----

query I rowsort
SELECT + 16 FROM tab1 cor0 WHERE + col1 * - col2 * - - col0 - 94 IS NOT NULL
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-2518
SELECT ALL - COUNT( * ) * ( 14 ) AS col0 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-2518
SELECT ALL - COUNT ( * ) * ( 14 ) AS col0 FROM tab0 AS cor0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2519
SELECT ALL + - MAX( col2 ) FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + CAST( + - 12 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL + - MAX ( col2 ) FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + CAST ( + - 12 AS INTEGER )
----
NULL

query I rowsort
SELECT ALL + 67 * 6 AS col0 FROM tab0
----
402
402
402

query I rowsort
SELECT - ( 80 ) FROM tab2
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT MAX( ALL - + col2 ) col1 FROM tab1
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2522
SELECT MAX ( ALL - + col2 ) col1 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT COUNT( col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2523
SELECT COUNT ( col2 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT ALL + MAX( - 73 ) FROM tab1 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL + MAX ( - 73 ) FROM tab1 cor0
----
-73

query IIIIII rowsort
SELECT * FROM tab1 cor0 JOIN tab0 AS cor1 ON NULL <= 74
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2526
SELECT DISTINCT col1 DIV + 74 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-2526
SELECT DISTINCT col1 / + 74 FROM tab0
----
0
1

query II rowsort
SELECT DISTINCT + ( - + 83 ) * - 60, col0 AS col2 FROM tab0 AS cor0
----
4980
15
4980
87
4980
97

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL + + 7 + + - 34 - + col0 * - 42 FROM tab1 cor0
----
2115
3543
3795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2530
SELECT - - CAST( - 30 AS SIGNED ) FROM tab2 AS cor0
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-2530
SELECT - - CAST ( - 30 AS INTEGER ) FROM tab2 AS cor0
----
-30
-30
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2531
SELECT DISTINCT col2 + CAST( + 6 AS SIGNED ) AS col0 FROM tab0
----
105
16
53

skipif mysql # not compatible
query I rowsort label-2531
SELECT DISTINCT col2 + CAST ( + 6 AS INTEGER ) AS col0 FROM tab0
----
105
16
53

query II rowsort
SELECT 15 * - col2 AS col1, col1 FROM tab0
----
-1485
1
-150
21
-705
81

query II rowsort
SELECT - ( + col0 ) AS col2, + col1 + + + col2 + + 29 FROM tab1
----
-51
139
-85
93
-91
144

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT ALL 83 + - MIN( - 33 ) FROM tab2
----
116

skipif mysql # not compatible
query I rowsort label-2534
SELECT ALL 83 + - MIN ( - 33 ) FROM tab2
----
116

query III rowsort
SELECT * FROM tab0 WHERE - col1 BETWEEN col2 AND col1
----

query I rowsort
SELECT ( - + 52 ) * 72 AS col0 FROM tab1
----
-3744
-3744
-3744

query I rowsort
SELECT ALL - 46 + - + col1 + col2 FROM tab2
----
-55
-74
-83

query II rowsort
SELECT ALL + 40 * + col2 AS col2, + col1 AS col1 FROM tab1
----
2360
5
2720
47
3840
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 26 col1 FROM tab0
----
2106
26
546

query I rowsort
SELECT ( + + 92 ) * + + col2 FROM tab1
----
5428
6256
8832

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL NOT BETWEEN col2 AND - col1 / - 60 * 53 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT ALL + 77 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-2542
SELECT ALL + 77 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
231

query I rowsort
SELECT + 83 FROM tab0 AS cor0 WHERE ( NOT + col1 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN + 7 AND - + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - - 92 ) IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 45 * + 84 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT DISTINCT 1 - - 34 FROM tab1
----
35

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - col0 + + 44
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 NOT IN ( - 80 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + ( - + col0 ) - - 79 FROM tab2 AS cor0
----
125
143
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2551
SELECT - COUNT( * ) DIV 24 * + - COUNT( * ) + + - 59 AS col1 FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2551
SELECT - COUNT ( * ) / 24 * + - COUNT ( * ) + + - 59 AS col1 FROM tab2 AS cor0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2552
SELECT ALL - col2 AS col1, - 76 / - CAST( NULL AS SIGNED ) - - + col0 + col1 * + - ( + 26 ) * + + col1 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-2552
SELECT ALL - col2 AS col1, - 76 / - CAST ( NULL AS INTEGER ) - - + col0 + col1 * + - ( + 26 ) * + + col1 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2553
SELECT - ( + 57 ) * + + CAST( - + col1 AS SIGNED ) * + + 37 AS col0 FROM tab1 cor0
----
10545
29526
99123

skipif mysql # not compatible
query I rowsort label-2553
SELECT - ( + 57 ) * + + CAST ( - + col1 AS INTEGER ) * + + 37 AS col0 FROM tab1 cor0
----
10545
29526
99123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2554
SELECT DISTINCT col2 * + col0 / + 26 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT col2 * + col0 / + 26 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT + col0 * - ( - + 10 ) FROM tab1
----
510
850
910

query I rowsort
SELECT DISTINCT col1 * - 48 * - col2 AS col0 FROM tab2
----
147840
186528
56304

query I rowsort
SELECT DISTINCT + 46 * + ( col1 ) AS col2 FROM tab2
----
2346
3082
3542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2558
SELECT + 46 FROM tab0 WHERE NOT - 13 <> 36 * - - CAST( NULL AS SIGNED ) * + 49 - + - col1
----

skipif mysql # not compatible
query I rowsort label-2558
SELECT + 46 FROM tab0 WHERE NOT - 13 <> 36 * - - CAST ( NULL AS INTEGER ) * + 49 - + - col1
----

query I rowsort
SELECT col2 / - - col1 + - col1 FROM tab1 WHERE NOT NULL >= + 26
----

query I rowsort
SELECT - 87 * + - col2 * col0 * - + col0 + - - col0 * - ( - col0 ) + - + ( + col0 ) FROM tab0 WHERE NOT NULL BETWEEN ( col2 * - - col1 * - col1 / col1 - - col0 * + col2 ) AND + 15
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2562
SELECT - 45 AS col0, + COUNT( * ) FROM tab0 AS cor0
----
-45
3

skipif mysql # not compatible
query II rowsort label-2562
SELECT - 45 AS col0, + COUNT ( * ) FROM tab0 AS cor0
----
-45
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT ALL - COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2563
SELECT ALL - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2564
SELECT - col1 DIV + 48 + - 19 AS col2 FROM tab2 AS cor0
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-2564
SELECT - col1 / + 48 + - 19 AS col2 FROM tab2 AS cor0
----
-20
-20
-20

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2565
SELECT - COUNT( * ) DIV + - SUM( - - col2 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2565
SELECT - COUNT ( * ) / + - SUM ( - - col2 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - col1 * - 88 AS col0 FROM tab0 AS cor0
----
-1848
-7128
-88

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN - 28 AND - col1 * col1
----

query I rowsort
SELECT DISTINCT + col2 + + + col0 * + col0 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * - + col2 >= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2570
SELECT CAST( NULL AS SIGNED ) + + - col0 - + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2570
SELECT CAST ( NULL AS INTEGER ) + + - col0 - + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 56 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2572
SELECT * FROM tab0 WHERE - col0 + 16 NOT BETWEEN - col0 + 4 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2572
SELECT * FROM tab0 WHERE - col0 + 16 NOT BETWEEN - col0 + 4 AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2573
SELECT DISTINCT 31 + CAST( MAX( + 1 ) AS SIGNED ) AS col2 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-2573
SELECT DISTINCT 31 + CAST ( MAX ( + 1 ) AS INTEGER ) AS col2 FROM tab0
----
32

query III rowsort
SELECT * FROM tab1 WHERE + - col0 / 95 + + col2 - + col1 IS NULL
----

query I rowsort
SELECT 25 + - col1 AS col0 FROM tab1
----
-22
11
20

query I rowsort
SELECT col2 + - 7 + - col2 FROM tab0
----
-7
-7
-7

query I rowsort
SELECT - col0 * + + 65 + - col1 FROM tab0 WHERE - + 36 IS NULL
----

query II rowsort
SELECT - + 2 AS col1, - 89 + 5 FROM tab1 AS cor0
----
-2
-84
-2
-84
-2
-84

query I rowsort
SELECT - 56 * + - 43 FROM tab2 AS cor0
----
2408
2408
2408

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT - + MIN( - col0 ) AS col2 FROM tab2 cor0
----
75

skipif mysql # not compatible
query I rowsort label-2580
SELECT - + MIN ( - col0 ) AS col2 FROM tab2 cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2581
SELECT + col0 - + col0 + + - ( + CAST( 50 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-2581
SELECT + col0 - + col0 + + - ( + CAST ( 50 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-2582
SELECT - SUM( 95 ) FROM tab0, tab1 AS cor0
----
-855

skipif mysql # not compatible
query I rowsort label-2582
SELECT - SUM ( 95 ) FROM tab0, tab1 AS cor0
----
-855

query I rowsort
SELECT ALL - 27 + 7 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT col2 * col1 + - col1 FROM tab2 cor0
----
1122
3003
3819

query I rowsort
SELECT + 54 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
54
54
54

query I rowsort
SELECT + + col1 * + + 34 FROM tab2 AS cor0
----
1734
2278
2618

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col2 / + - ( - ( + col2 ) ) < + 55
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 69 + col1 AS col0 FROM tab0 AS cor0 WHERE + col1 <= NULL OR NULL = NULL
----

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT 1 > ( - 18 * + 98 )
----

query I rowsort
SELECT ALL 38 * 8 AS col1 FROM tab0
----
304
304
304

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT DISTINCT + COUNT( * ) * + 68 AS col0 FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT + COUNT ( * ) * + 68 AS col0 FROM tab1
----
204

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 93 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 * + - col1 * + + 29 * - 11 AS col0 FROM tab0
----
1214433
31581
66990

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2594
SELECT CAST( NULL AS DECIMAL ) AS col1, COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL >= - col1 - + col0
----
NULL
0

skipif mysql # not compatible
query II rowsort label-2594
SELECT CAST ( NULL AS REAL ) AS col1, COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL >= - col1 - + col0
----
NULL
0

query II rowsort
SELECT ALL col1 AS col0, - 36 AS col0 FROM tab1
----
14
-36
47
-36
5
-36

query I rowsort
SELECT ALL - 32 AS col2 FROM tab1 WHERE NOT - ( + col0 ) + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 5 * + 31 AS col0 FROM tab2 AS cor0
----
155

onlyif mysql # aggregate syntax: 
query I rowsort label-2598
SELECT COUNT( - 5 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2598
SELECT COUNT ( - 5 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT + ( + 90 ) FROM tab1 AS cor0
----
90

query I rowsort
SELECT ALL + col1 * - 44 + + col1 AS col1 FROM tab1 cor0
----
-2021
-215
-602

query II rowsort
SELECT ALL - col0 AS col0, col2 + + col1 FROM tab1 AS cor0
----
-51
110
-85
64
-91
115

query I rowsort
SELECT ALL + - col0 + + 87 FROM tab0 AS cor0
----
-10
0
72

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND col2
----

query I rowsort
SELECT ALL + ( ( + - col2 ) ) + + 8 AS col0 FROM tab0
----
-2
-39
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2605
SELECT DISTINCT COUNT( * ) * - CAST( NULL AS SIGNED ) + MIN( DISTINCT + col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT COUNT ( * ) * - CAST ( NULL AS INTEGER ) + MIN ( DISTINCT + col2 ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + col1 - + 96 + + 65 AS col1 FROM tab1
----
-17
-26
16

query I rowsort
SELECT - col0 * ( + + col0 ) AS col2 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT ( + 28 ) - + col2 FROM tab0
----
-19
-71
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2609
SELECT ALL - 78 + COUNT( * ) AS col0 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-2609
SELECT ALL - 78 + COUNT ( * ) AS col0 FROM tab1
----
-75

query I rowsort
SELECT ( + col0 ) * 82 - - col1 AS col1 FROM tab0
----
1311
7155
7955

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2611
SELECT DISTINCT - 79 * + - 51 * - col1 AS col0 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-2611
SELECT DISTINCT - 79 * + - 51 * - col1 AS col0 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + - ( - ( + col1 ) ) col2 FROM tab2 AS cor0
----
28
37
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 col0 FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2614
SELECT DISTINCT + - MIN( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2614
SELECT DISTINCT + - MIN ( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT - + 76 FROM tab2 AS cor0 WHERE NOT NULL <> col1
----

query II rowsort
SELECT ALL 51 AS col1, - col2 FROM tab2 AS cor0
----
51
-23
51
-40
51
-58

query II rowsort
SELECT DISTINCT - col0, + 40 AS col1 FROM tab2 AS cor0
----
-46
40
-64
40
-75
40

query I rowsort
SELECT DISTINCT 90 + - col1 AS col0 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2619
SELECT + MIN( DISTINCT + 81 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2619
SELECT + MIN ( DISTINCT + 81 ) AS col2 FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT ( + - col0 ) * col2 * + col0 AS col1 FROM tab0 AS cor0
----
-10575
-75690
-931491

onlyif mysql # DIV for integer division: 
query I rowsort label-2621
SELECT DISTINCT col2 DIV + col0 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2621
SELECT DISTINCT col2 / + col0 col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2622
SELECT 1 DIV COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2622
SELECT 1 / COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col0 * - ( col2 ) AS col2 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2624
SELECT DISTINCT COUNT( DISTINCT - - CAST( 32 AS DECIMAL ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2624
SELECT DISTINCT COUNT ( DISTINCT - - CAST ( 32 AS REAL ) ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT - COUNT( * ) + + 4 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2625
SELECT - COUNT ( * ) + + 4 FROM tab0 AS cor0
----
1

query I rowsort
SELECT + 29 + col2 AS col0 FROM tab2 AS cor0
----
52
69
87

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 * + col2 IN ( + - col2, - col1 / - 21 - - col2 )
----

query I rowsort
SELECT DISTINCT - 96 * + + col1 + - col0 FROM tab1 AS cor0
----
-1395
-4603
-565

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 >= NULL
----

query I rowsort
SELECT ALL 42 + - + 87 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT DISTINCT + col2 * + + 6 FROM tab1 WHERE NOT NULL IS NOT NULL
----
354
408
576

onlyif mysql # aggregate syntax: 
query I rowsort label-2632
SELECT ALL + + COUNT( * ) * - 36 AS col1 FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-2632
SELECT ALL + + COUNT ( * ) * - 36 AS col1 FROM tab1 AS cor0
----
-108

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 < + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 3 + - col2 FROM tab2 cor0
----
-26
-43
-61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * + 88 BETWEEN + col0 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT ALL + + COUNT( ALL col1 ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2636
SELECT ALL + + COUNT ( ALL col1 ) FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + 11 + - col2 - 94 + + + col1 FROM tab1
----
-104
-137
-165

query III rowsort
SELECT * FROM tab2 WHERE + - col1 * - - 7 NOT IN ( - + col1, col2, ( + 59 ) * 66 + - 43, + 13 * + 59 / col2 + - col2 * col2, + 90 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT ALL + 83 * + COUNT( * ) + + - MAX( - 13 ) FROM tab0
----
262

skipif mysql # not compatible
query I rowsort label-2639
SELECT ALL + 83 * + COUNT ( * ) + + - MAX ( - 13 ) FROM tab0
----
262

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col1 / - 45 AS col0 FROM tab1 WHERE - col0 / - col2 IS NULL
----

query I rowsort
SELECT ALL + col1 * col0 * - - 58 AS col2 FROM tab1
----
24650
248066
41412

query II rowsort
SELECT + col0 AS col0, - 49 AS col0 FROM tab1
----
51
-49
85
-49
91
-49

query II rowsort
SELECT - ( - + col0 ) AS col0, col1 AS col0 FROM tab2
----
46
51
64
77
75
67

onlyif mysql # aggregate syntax: 
query II rowsort label-2645
SELECT - COUNT( * ), - ( + + 48 ) AS col0 FROM tab1 AS cor0
----
-3
-48

skipif mysql # not compatible
query II rowsort label-2645
SELECT - COUNT ( * ), - ( + + 48 ) AS col0 FROM tab1 AS cor0
----
-3
-48

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - - col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2647
SELECT col2 - + col0 AS col2, col2 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-23
NULL
-26
NULL
45
NULL

skipif mysql # not compatible
query II rowsort label-2647
SELECT col2 - + col0 AS col2, col2 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-23
NULL
-26
NULL
45
NULL

query I rowsort
SELECT - 49 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2650
SELECT 53 DIV - col2 AS col0, col1 FROM tab2
----
-1
77
-2
51
0
67

skipif mysql # not compatible
query II rowsort label-2650
SELECT 53 / - col2 AS col0, col1 FROM tab2
----
-1
77
-2
51
0
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2651
SELECT ( - + ( - CAST( 4 AS SIGNED ) ) ) col1 FROM tab1 AS cor0
----
4
4
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2651
SELECT ( - + ( - CAST ( 4 AS INTEGER ) ) ) col1 FROM tab1 AS cor0
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + col1 ) col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT + 83 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
83
83
83

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 + col2 / - 48 * + ( 51 ) AND - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab0 cor0 WHERE NOT col2 * 47 - - col2 = + col1
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2656
SELECT ALL COUNT( - CAST( - + ( 80 ) AS SIGNED ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2656
SELECT ALL COUNT ( - CAST ( - + ( 80 ) AS INTEGER ) ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT ALL - MAX( col1 ) FROM tab2 WHERE NOT NULL < + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2657
SELECT ALL - MAX ( col1 ) FROM tab2 WHERE NOT NULL < + + col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2658
SELECT + CAST( + ( - COUNT( * ) ) AS SIGNED ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2658
SELECT + CAST ( + ( - COUNT ( * ) ) AS INTEGER ) col0 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2659
SELECT col1 * 57 DIV - 3 FROM tab2
----
-1273
-1463
-969

skipif mysql # not compatible
query I rowsort label-2659
SELECT col1 * 57 / - 3 FROM tab2
----
-1273
-1463
-969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col1 * col0 col0 FROM tab1
----
14
714
47
4277
5
425

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT - COUNT( + col1 ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2661
SELECT - COUNT ( + col1 ) col2 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2662
SELECT col0 DIV col0 * col0 AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2662
SELECT col0 / col0 * col0 AS col2 FROM tab2
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 89 - + ( - + col1 ) > + 7 * + 81 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - + col0 * - col2 AS col1 FROM tab0
----
10575
75690
931491

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col1, + col2 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2666
SELECT + COUNT( ALL - ( - 92 ) ) DIV - MIN( - ( - col0 ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2666
SELECT + COUNT ( ALL - ( - 92 ) ) / - MIN ( - ( - col0 ) ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2667
SELECT ALL - - CAST( - ( + ( + col0 ) ) AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE col0 <= NULL
----

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL - - CAST ( - ( + ( + col0 ) ) AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT + ( - - MAX( DISTINCT + ( - col1 ) ) ) + - 32 * - 96 FROM tab0 AS cor0
----
3071

skipif mysql # not compatible
query I rowsort label-2668
SELECT + ( - - MAX ( DISTINCT + ( - col1 ) ) ) + - 32 * - 96 FROM tab0 AS cor0
----
3071

onlyif mysql # DIV for integer division: 
query I rowsort label-2669
SELECT - col1 + + 11 DIV - 88 AS col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2669
SELECT - col1 + + 11 / - 88 AS col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT col0 + col2 * col2 FROM tab2 WHERE NULL BETWEEN 11 AND col0
----

query I rowsort
SELECT DISTINCT ( - col0 ) - 94 AS col2 FROM tab1
----
-145
-179
-185

query I rowsort
SELECT ALL - col0 + 92 AS col0 FROM tab0
----
-5
5
77

query I rowsort
SELECT DISTINCT - col1 + col0 * 59 AS col1 FROM tab0
----
5112
5722
804

query I rowsort
SELECT + col0 * 99 AS col2 FROM tab1
----
5049
8415
9009

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT 3 * + COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2675
SELECT 3 * + COUNT ( * ) AS col2 FROM tab0
----
9

query I rowsort
SELECT 40 * col2 AS col2 FROM tab1
----
2360
2720
3840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + col0 col2 FROM tab1
----
102
170
182

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2678
SELECT ( col0 ) + CAST( + ( - 85 ) AS SIGNED ) DIV - 3 FROM tab2
----
103
74
92

skipif mysql # not compatible
query I rowsort label-2678
SELECT ( col0 ) + CAST ( + ( - 85 ) AS INTEGER ) / - 3 FROM tab2
----
103
74
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2679
SELECT DISTINCT * FROM tab1 WHERE - CAST( - col2 AS SIGNED ) <> - 77 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2679
SELECT DISTINCT * FROM tab1 WHERE - CAST ( - col2 AS INTEGER ) <> - 77 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( col1 ) + col0 AS col2 FROM tab2 WHERE NOT ( NULL ) IN ( 45 + + col1 )
----

query I rowsort
SELECT 70 - + 10 FROM tab0
----
60
60
60

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2682
SELECT ALL MAX( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2682
SELECT ALL MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT ALL + 97 * COUNT( * ) FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL + 97 * COUNT ( * ) FROM tab1
----
291

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2684
SELECT * FROM tab2 WHERE CAST( 40 AS SIGNED ) - - 85 <> - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2684
SELECT * FROM tab2 WHERE CAST ( 40 AS INTEGER ) - - 85 <> - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT - col1 = col2
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT DISTINCT + SUM( col2 ) FROM tab0 WHERE NOT col1 IS NULL
----
156

skipif mysql # not compatible
query I rowsort label-2686
SELECT DISTINCT + SUM ( col2 ) FROM tab0 WHERE NOT col1 IS NULL
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-2687
SELECT + 61 DIV col2 AS col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2687
SELECT + 61 / col2 AS col0 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2688
SELECT + MAX( - ( col2 ) ) DIV - COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2688
SELECT + MAX ( - ( col2 ) ) / - COUNT ( * ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2689
SELECT - 33 DIV col2 col1 FROM tab0
----
-3
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2689
SELECT - 33 / col2 col1 FROM tab0
----
-3
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2690
SELECT - CAST( NULL AS SIGNED ) + SUM( 79 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2690
SELECT - CAST ( NULL AS INTEGER ) + SUM ( 79 ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - col2 AND ( - ( + 60 ) * + 25 - - 32 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 NOT IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( col0 ) AS col2 FROM tab1 WHERE NOT - 42 NOT IN ( ( + col1 ) )
----

query I rowsort
SELECT ALL + col1 + 30 * col1 AS col1 FROM tab1
----
1457
155
434

onlyif mysql # aggregate syntax: 
query I rowsort label-2695
SELECT ALL - SUM( ALL ( - col2 ) ) * 48 FROM tab0
----
7488

skipif mysql # not compatible
query I rowsort label-2695
SELECT ALL - SUM ( ALL ( - col2 ) ) * 48 FROM tab0
----
7488

onlyif mysql # aggregate syntax: 
query I rowsort label-2696
SELECT ALL COUNT( * ) * 21 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-2696
SELECT ALL COUNT ( * ) * 21 FROM tab0
----
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 42 col1 FROM tab1
----
-1974
-210
-588

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 34 ) = ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE ( + 52 * col1 ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 73 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * 1 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2703
SELECT CAST( + ( + 68 ) AS DECIMAL ) * ( col2 * + col2 ) AS col2 FROM tab2 WHERE NOT col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-2703
SELECT CAST ( + ( + 68 ) AS REAL ) * ( col2 * + col2 ) AS col2 FROM tab2 WHERE NOT col2 > NULL
----

query I rowsort
SELECT 88 + - 8 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT ALL SUM( + col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL SUM ( + col2 ) AS col2 FROM tab0 AS cor0
----
156

query I rowsort
SELECT + + 61 * + col0 FROM tab2 AS cor0
----
2806
3904
4575

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT DISTINCT + 56 + 66 * COUNT( col2 ) col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( - col1 )
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2707
SELECT DISTINCT + 56 + 66 * COUNT ( col2 ) col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( - col1 )
----
56

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 67 ) IS NOT NULL
----

query I rowsort
SELECT + col1 * + 8 FROM tab2 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 22 col0 FROM tab0 AS cor0
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT ALL 71 - MIN( - col2 ) col0 FROM tab0 WHERE NOT ( NULL ) <= + 87 * + col2 + - 14
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2711
SELECT ALL 71 - MIN ( - col2 ) col0 FROM tab0 WHERE NOT ( NULL ) <= + 87 * + col2 + - 14
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT 23 - col1 = + col1 - + 46
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 48 ) * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2714
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( col2 AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-2714
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( col2 AS REAL ) >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 / ( 61 ) + col1 / - col0 ) > ( - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( 31 ) - 59 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2717
SELECT DISTINCT + MIN( DISTINCT CAST( + col0 AS SIGNED ) ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2717
SELECT DISTINCT + MIN ( DISTINCT CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT ALL - MAX( DISTINCT - ( + col1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL - MAX ( DISTINCT - ( + col1 ) ) FROM tab0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2719
SELECT CAST( NULL AS DECIMAL ) + - 44 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2719
SELECT CAST ( NULL AS REAL ) + - 44 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND ( - col0 * - 36 )
----

query I rowsort
SELECT ALL - 70 + - - 58 FROM tab2 AS cor0
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2722
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col2 = col0
----
3

skipif mysql # not compatible
query I rowsort label-2722
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col2 = col0
----
3

query I rowsort
SELECT col2 * - col1 + ( - col1 ) FROM tab2 AS cor0
----
-1224
-3157
-3953

query I rowsort
SELECT DISTINCT 95 + - col2 * + 55 FROM tab1 AS cor0
----
-3150
-3645
-5185

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2725
SELECT * FROM tab1 AS cor0 WHERE + ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2725
SELECT * FROM tab1 AS cor0 WHERE + ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT - - 79 AS col1 FROM tab2 AS cor0
----
79
79
79

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 18 AS col2 FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN - col1 AND NULL )
----

query I rowsort
SELECT ALL - ( col1 ) - + ( col2 ) * col1 AS col0 FROM tab0
----
-100
-231
-3888

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT - ( COUNT( * ) ) + 59 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
50

skipif mysql # not compatible
query I rowsort label-2730
SELECT - ( COUNT ( * ) ) + 59 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2731
SELECT DISTINCT + - 26 * MAX( ALL ( - col2 ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
598

skipif mysql # not compatible
query I rowsort label-2731
SELECT DISTINCT + - 26 * MAX ( ALL ( - col2 ) ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
598

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT DISTINCT ( MIN( DISTINCT + col1 ) ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2732
SELECT DISTINCT ( MIN ( DISTINCT + col1 ) ) AS col2 FROM tab1
----
5

query I rowsort
SELECT DISTINCT - 15 - col1 AS col2 FROM tab2 WHERE - col2 < + col2 + - 20
----
-66
-82
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2734
SELECT col1 + col0 + col1 DIV col0 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-2734
SELECT col1 + col0 + col1 / col0 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2735
SELECT * FROM tab2 AS cor0 WHERE CAST( + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2735
SELECT * FROM tab2 AS cor0 WHERE CAST ( + col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * - + col1 * 2 AS col1 FROM tab1 AS cor0
----
-1428
-850
-8554

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT - - COUNT( * ) + - COUNT( * ) * - 10 AS col2 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-2737
SELECT - - COUNT ( * ) + - COUNT ( * ) * - 10 AS col2 FROM tab2 AS cor0
----
33

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 3 * + col1 * + 90 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 36 + - 40 FROM tab2 AS cor0
----
-76
-76
-76

query I rowsort
SELECT - - col1 + 46 * + col2 FROM tab1 AS cor0
----
2719
3175
4430

onlyif mysql # aggregate syntax: 
query I rowsort label-2741
SELECT - 59 + - - 86 * COUNT( * ) AS col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
-59

skipif mysql # not compatible
query I rowsort label-2741
SELECT - 59 + - - 86 * COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
-59

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( col1 * - - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col1 + col2 - ( - col0 ) + + col0 AS col2 FROM tab1 AS cor0
----
212
234
297

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2744
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT DISTINCT COUNT( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE ( 45 / + col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT COUNT ( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE ( 45 / + col0 ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 28 ) BETWEEN ( + col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT DISTINCT MIN( - - 16 ) AS col2 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-2747
SELECT DISTINCT MIN ( - - 16 ) AS col2 FROM tab0
----
16

query II rowsort
SELECT DISTINCT col2 + + col1 AS col0, col0 + col0 FROM tab2
----
117
128
125
150
74
92

query I rowsort
SELECT ALL + 18 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 61 AS col1 FROM tab2 WHERE ( - - col0 ) NOT BETWEEN + col0 AND col2 + - col1
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2751
SELECT COUNT( DISTINCT - + ( + col0 ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2751
SELECT COUNT ( DISTINCT - + ( + col0 ) ) AS col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT col1 * 31 FROM tab0
----
2511
31
651

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2753
SELECT ALL ( + + col2 ) + CAST( col2 AS SIGNED ) AS col2 FROM tab0 WHERE NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL ( + + col2 ) + CAST ( col2 AS INTEGER ) AS col2 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2754
SELECT DISTINCT col2 DIV ( - col1 ) * - + col1 col1 FROM tab1 AS cor0
----
47
55
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2754
SELECT DISTINCT col2 / ( - col1 ) * - + col1 col1 FROM tab1 AS cor0
----
47
55
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT ALL ( - COUNT( * ) ) * + + 39 + + 74 + + 44 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL ( - COUNT ( * ) ) * + + 39 + + 74 + + 44 FROM tab0
----
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - col1 - + - col0 + + 14 ) NOT IN ( - 22 * col0 )
----

query I rowsort
SELECT - - col2 + + col2 AS col0 FROM tab0 cor0
----
198
20
94

query I rowsort
SELECT DISTINCT + col0 * + col2 - + col0 FROM tab0 AS cor0
----
690
783
9506

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col2 + - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( col1, + col2 + + col2 )
----

query I rowsort
SELECT DISTINCT + - col2 + + 48 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 / col0 - 74 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2763
SELECT ALL + 55 + COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL + 55 + COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
55

query I rowsort
SELECT ALL + + 98 AS col1 FROM tab2 AS cor0
----
98
98
98

query I rowsort
SELECT ALL - col0 + - 5 FROM tab2
----
-51
-69
-80

query II rowsort
SELECT col0, ( - col1 ) * + 84 + col2 + col1 * col1 AS col0 FROM tab1
----
51
-884
85
-336
91
-1671

query I rowsort
SELECT + ( col0 ) * - + col1 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( + 90 ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + col1 + + + col2 AS col2 FROM tab0
----
100
128
31

query I rowsort
SELECT + + col0 FROM tab0 WHERE - - col0 + - 60 IS NOT NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + 89 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= ( + col2 )
----

query I rowsort
SELECT DISTINCT + col0 + - 80 * col0 FROM tab0 AS cor0
----
-1185
-6873
-7663

query I rowsort
SELECT + ( - 98 ) + + col1 FROM tab0 AS cor0
----
-17
-77
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2774
SELECT DISTINCT SUM( + - ( - col0 ) ) col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2774
SELECT DISTINCT SUM ( + - ( - col0 ) ) col0 FROM tab2 AS cor0
----
185

query I rowsort
SELECT - - 55 + col1 AS col0 FROM tab1 AS cor0
----
102
60
69

query I rowsort
SELECT ALL - col1 - 7 FROM tab0
----
-28
-8
-88

query I rowsort
SELECT DISTINCT + + 41 FROM tab1 AS cor0 WHERE NOT + 50 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2778
SELECT DISTINCT - ( + 15 ) AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-15
NULL

skipif mysql # not compatible
query II rowsort label-2778
SELECT DISTINCT - ( + 15 ) AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-15
NULL

query I rowsort
SELECT DISTINCT + col2 + + 43 FROM tab2 AS cor0
----
101
66
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - + - 42 col1 FROM tab2 AS cor0
----
100
65
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2781
SELECT ALL ( - CAST( col2 AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT ( - col1 ) BETWEEN 76 AND ( - 47 + 81 / - col0 + - CAST( col1 AS SIGNED ) )
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2781
SELECT ALL ( - CAST ( col2 AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT ( - col1 ) BETWEEN 76 AND ( - 47 + 81 / - col0 + - CAST ( col1 AS INTEGER ) )
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-2782
SELECT - + SUM( col2 ), 45 AS col1 FROM tab0 AS cor0
----
-156
45

skipif mysql # not compatible
query II rowsort label-2782
SELECT - + SUM ( col2 ), 45 AS col1 FROM tab0 AS cor0
----
-156
45

query I rowsort
SELECT ALL col1 * 82 AS col1 FROM tab1
----
1148
3854
410

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2784
SELECT DISTINCT - 25 DIV + COUNT( * ) col2 FROM tab0
----
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2784
SELECT DISTINCT - 25 / + COUNT ( * ) col2 FROM tab0
----
-8

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + - col2 + - col1 AND ( - col1 / col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2786
SELECT - COUNT( * ) FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) * + + 88 + + col2 * + col1 NOT IN ( ( - col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-2786
SELECT - COUNT ( * ) FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * + + 88 + + col2 * + col1 NOT IN ( ( - col0 ) )
----
0

query II rowsort
SELECT - col2 AS col1, 28 AS col1 FROM tab2
----
-23
28
-40
28
-58
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT DISTINCT COUNT( 85 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2788
SELECT DISTINCT COUNT ( 85 ) FROM tab2
----
3

query I rowsort
SELECT - 34 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT DISTINCT + ( - + 5 ) * - COUNT( DISTINCT + + col1 ) * - 58 + ( + 27 ) FROM tab2
----
-843

skipif mysql # not compatible
query I rowsort label-2790
SELECT DISTINCT + ( - + 5 ) * - COUNT ( DISTINCT + + col1 ) * - 58 + ( + 27 ) FROM tab2
----
-843

query I rowsort
SELECT - - ( - - col1 ) AS col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT + COUNT( ALL + 54 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2792
SELECT + COUNT ( ALL + 54 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2793
SELECT col2 AS col1, - col0 DIV - - col1 AS col0 FROM tab0 AS cor0
----
10
-4
47
0
99
-97

skipif mysql # not compatible
query II rowsort label-2793
SELECT col2 AS col1, - col0 / - - col1 AS col0 FROM tab0 AS cor0
----
10
-4
47
0
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT ALL ( + COUNT( * ) ) * + MAX( ALL 84 ) FROM tab0 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL ( + COUNT ( * ) ) * + MAX ( ALL 84 ) FROM tab0 AS cor0
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-2795
SELECT MIN( - col2 ) col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2795
SELECT MIN ( - col2 ) col0 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT + col0 * + + col0 AS col1 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT DISTINCT SUM( ALL col2 ) * + + 3 FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-2797
SELECT DISTINCT SUM ( ALL col2 ) * + + 3 FROM tab2
----
363

query II rowsort
SELECT + col2 * - col2 AS col0, - ( - col1 ) FROM tab1 cor0
----
-3481
5
-4624
47
-9216
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT - MIN( DISTINCT + - col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2799
SELECT - MIN ( DISTINCT + - col2 ) AS col1 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT DISTINCT + 6 * - COUNT( + col2 ) AS col1 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2800
SELECT DISTINCT + 6 * - COUNT ( + col2 ) AS col1 FROM tab0 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT + col0 * + col1 + + + col0 - + CAST( col0 AS SIGNED ) col0 FROM tab0 AS cor0
----
1215
1827
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2801
SELECT + col0 * + col1 + + + col0 - + CAST ( col0 AS INTEGER ) col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2802
SELECT ALL CAST( NULL AS SIGNED ) + + 15 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2802
SELECT ALL CAST ( NULL AS INTEGER ) + + 15 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + + col0 * + ( - col1 ) AS col2 FROM tab2
----
-2323
-4888
-4967

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 col0 FROM tab1
----
70

query II rowsort
SELECT + col0 * col0 + - col1, col2 + - + 92 AS col1 FROM tab2
----
2065
-69
4019
-52
5558
-34

query I rowsort
SELECT + + 1 * - 68 * - + col0 + + 48 AS col2 FROM tab2 AS cor0
----
3176
4400
5148

query I rowsort
SELECT ALL - 47 + + - 58 + + 54 + col0 * col1 * - col2 FROM tab1 AS cor0
----
-25126
-290887
-68595

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 + + + col0 * + col1 * 52 <> NULL
----

query I rowsort
SELECT DISTINCT + + 5 AS col0 FROM tab1 AS cor0 WHERE NOT ( + + 0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT - - COUNT( * ) AS col2 FROM tab0 WHERE - col0 * - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2810
SELECT - - COUNT ( * ) AS col2 FROM tab0 WHERE - col0 * - col0 IS NULL
----
0

query I rowsort
SELECT ALL 95 - + col0 AS col1 FROM tab1 AS cor0
----
10
4
44

query I rowsort
SELECT col0 + - 89 FROM tab1 AS cor0
----
-38
-4
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2813
SELECT ALL - SUM( + 80 ) AS col2 FROM tab2 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-2813
SELECT ALL - SUM ( + 80 ) AS col2 FROM tab2 AS cor0
----
-240

query I rowsort
SELECT DISTINCT - ( col2 ) * + + 40 - 98 - 74 * - 19 + + col1 * col2 AS col0 FROM tab2 AS cor0
----
1561
2788
2874

query III rowsort
SELECT + col2 AS col2, col2 AS col0, col2 + - - 19 AS col2 FROM tab0 AS cor0
----
9 values hashing to 7329f387a415d4f5776944617dfa2230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2816
SELECT - 82 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL > - col2 + + col1
----

skipif mysql # not compatible
query I rowsort label-2816
SELECT - 82 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL > - col2 + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 87 * - col0 = 7 + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 6 * 80 ) < col1 + + 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + 14 * - 40 AS col0, + 29 AS col1 FROM tab0 AS cor0
----
-560
29
-560
29
-560
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 74 col1, - col2 + - + col1 AS col0 FROM tab1 cor0
----
-74
-110
-74
-115
-74
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT ALL + COUNT( * ) * - + MAX( DISTINCT col2 ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL + COUNT ( * ) * - + MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
-297

query I rowsort
SELECT + 17 AS col2 FROM tab0 WHERE NOT - + 58 IS NOT NULL
----

query I rowsort
SELECT + col1 * - - ( - col0 ) AS col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2824
SELECT + 16 * + CAST( MIN( + + 78 ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + 18
----
NULL

skipif mysql # not compatible
query I rowsort label-2824
SELECT + 16 * + CAST ( MIN ( + + 78 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + 18
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2825
SELECT COUNT( * ) AS col2, + COUNT( * ) * + - ( - ( - 27 ) ) FROM tab2
----
3
-81

skipif mysql # not compatible
query II rowsort label-2825
SELECT COUNT ( * ) AS col2, + COUNT ( * ) * + - ( - ( - 27 ) ) FROM tab2
----
3
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-2826
SELECT 81 DIV + col0 + col1 AS col1, + col2 * + col0 FROM tab2
----
52
1058
68
4350
78
2560

skipif mysql # not compatible
query II rowsort label-2826
SELECT 81 / + col0 + col1 AS col1, + col2 * + col0 FROM tab2
----
52
1058
68
4350
78
2560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2827
SELECT + col0 * + CAST( NULL AS SIGNED ) + + 38 * - 45 + + + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2827
SELECT + col0 * + CAST ( NULL AS INTEGER ) + + 38 * - 45 + + + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2828
SELECT DISTINCT + - 30 * col0 * 54 DIV + - 45 + col2 FROM tab2 AS cor0
----
1679
2344
2758

skipif mysql # not compatible
query I rowsort label-2828
SELECT DISTINCT + - 30 * col0 * 54 / + - 45 + col2 FROM tab2 AS cor0
----
1679
2344
2758

onlyif mysql # DIV for integer division: 
query II rowsort label-2829
SELECT + col0 + + col0 DIV + col0 + col1, col0 AS col2 FROM tab1 AS cor0
----
139
91
66
51
91
85

skipif mysql # not compatible
query II rowsort label-2829
SELECT + col0 + + col0 / + col0 + col1, col0 AS col2 FROM tab1 AS cor0
----
139
91
66
51
91
85

query I rowsort
SELECT DISTINCT - col2 * 29 * col2 AS col1 FROM tab1 cor0
----
-100949
-134096
-267264

query I rowsort
SELECT ALL + + col1 * + + 98 AS col0 FROM tab1 AS cor0
----
1372
4606
490

onlyif mysql # aggregate syntax: 
query I rowsort label-2832
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - col0 + - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2832
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - col0 + - col2 IS NULL
----
0

query I rowsort
SELECT DISTINCT col2 * + ( 4 ) FROM tab2
----
160
232
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2834
SELECT DISTINCT 45 + - 31 * MAX( DISTINCT + + ( col2 ) ) AS col0 FROM tab1
----
-2931

skipif mysql # not compatible
query I rowsort label-2834
SELECT DISTINCT 45 + - 31 * MAX ( DISTINCT + + ( col2 ) ) AS col0 FROM tab1
----
-2931

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2835
SELECT CAST( NULL AS SIGNED ) * - - ( + col2 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT CAST ( NULL AS INTEGER ) * - - ( + col2 ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 76 FROM tab0 WHERE NULL IS NULL
----
-76

query III rowsort
SELECT * FROM tab1 WHERE - - col1 * - 11 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 91 * - + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2839
SELECT ALL - + CAST( col0 AS SIGNED ) AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL - + CAST ( col0 AS INTEGER ) AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT + + COUNT( * ) + - + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2840
SELECT + + COUNT ( * ) + - + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT + 37 FROM tab1 WHERE 3 IS NOT NULL
----
37
37
37

query I rowsort
SELECT 25 AS col2 FROM tab0 WHERE NOT NULL <= - col0 * col1 + col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 * + 32 / + col0 AND + 28 * - - col2
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 > - col2
----
85
5
59
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-2845
SELECT 14 DIV col2 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2845
SELECT 14 / col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - 58 * + + 3 FROM tab0 AS cor0
----
-174
-174
-174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col2 FROM tab1 AS cor0
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2848
SELECT SUM( DISTINCT - 23 ) FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-23

skipif mysql # not compatible
query I rowsort label-2848
SELECT SUM ( DISTINCT - 23 ) FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-23

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - 96 * col1 NOT BETWEEN + 20 * + col1 - + ( + + ( col2 ) ) - - col1 * + col2 + + + 23 AND ( + - col2 * col1 + ( col1 ) - 42 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2850
SELECT ALL COUNT( + 88 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2850
SELECT ALL COUNT ( + 88 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2851
SELECT DISTINCT CAST( + 11 AS SIGNED ) AS col0 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-2851
SELECT DISTINCT CAST ( + 11 AS INTEGER ) AS col0 FROM tab1
----
11

query II rowsort
SELECT + 28 * col2, ( + col1 ) FROM tab1
----
1652
5
1904
47
2688
14

query II rowsort
SELECT - col0, col2 * + 47 AS col0 FROM tab2
----
-46
1081
-64
1880
-75
2726

query II rowsort
SELECT DISTINCT - col0 AS col0, + col2 * 34 FROM tab2
----
-46
782
-64
1360
-75
1972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col1, + col1 col0 FROM tab0 WHERE - 60 IS NULL
----

query II rowsort
SELECT DISTINCT + + col1 AS col1, + 10 FROM tab0 AS cor0
----
1
10
21
10
81
10

query I rowsort
SELECT ALL 72 / + col2 * + - col1 * + col2 * + 65 + + - col1 FROM tab2 AS cor0 WHERE NOT 93 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2858
SELECT + 20 AS col1 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN NULL AND col1
----

skipif mysql # not compatible
query I rowsort label-2858
SELECT + 20 AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT DISTINCT + SUM( DISTINCT + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2859
SELECT DISTINCT + SUM ( DISTINCT + col0 ) FROM tab1 AS cor0
----
227

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 13 * - col2 * + + 77 + col1 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2861
SELECT ALL 62 DIV - ( COUNT( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-6

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL 62 / - ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-6

query I rowsort
SELECT ALL ( - + 78 ) FROM tab1 AS cor0
----
-78
-78
-78

query II rowsort
SELECT DISTINCT col2 + col0 AS col0, col1 AS col0 FROM tab0 AS cor0
----
196
1
62
81
97
21

query I rowsort
SELECT DISTINCT - - col1 * + col1 * col2 * - + col0 - + + 29 + 68 FROM tab0 AS cor0
----
-383631
-4625466
-9564

query I rowsort
SELECT + col1 + col1 + col1 * 75 FROM tab1
----
1078
3619
385

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT DISTINCT + SUM( col2 ) + 97 * - - SUM( - 7 ) FROM tab2 WHERE NOT - + 41 * - - col0 NOT BETWEEN - 86 * - col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT DISTINCT + SUM ( col2 ) + 97 * - - SUM ( - 7 ) FROM tab2 WHERE NOT - + 41 * - - col0 NOT BETWEEN - 86 * - col0 AND NULL
----
NULL

query II rowsort
SELECT DISTINCT 55 * + 93 * - 90, col0 FROM tab1
----
-460350
51
-460350
85
-460350
91

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - 84 )
----

query I rowsort
SELECT 79 * + ( - + 66 ) AS col2 FROM tab1 AS cor0
----
-5214
-5214
-5214

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2872
SELECT + MAX( + + CAST( NULL AS SIGNED ) ) * + COUNT( * ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2872
SELECT + MAX ( + + CAST ( NULL AS INTEGER ) ) * + COUNT ( * ) col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT col1 - col0 + - col0 AS col0, col0 AS col0 FROM tab1 AS cor0
----
-135
91
-165
85
-88
51

query I rowsort
SELECT 62 * + col2 AS col1 FROM tab2 AS cor0
----
1426
2480
3596

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 + - 79 - ( + 78 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2876
SELECT ALL - 24 DIV SUM( + + col0 ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2876
SELECT ALL - 24 / SUM ( + + col0 ) col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - - col0 FROM tab0 AS cor0 WHERE NOT 5 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 58 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2879
SELECT ALL + 54 DIV - - COUNT( * ) FROM tab1 cor0
----
18

skipif mysql # not compatible
query I rowsort label-2879
SELECT ALL + 54 / - - COUNT ( * ) FROM tab1 cor0
----
18

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( NULL NOT BETWEEN + col2 * - col2 AND + + col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 78 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2882
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col2, col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-2882
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col2, col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2883
SELECT + col0 DIV + - 60 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2883
SELECT + col0 / + - 60 FROM tab1
----
-1
-1
0

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT + 80 - - col2 >= - 32
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2885
SELECT ALL + col1 DIV - 25 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL + col1 / - 25 AS col1 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT MAX( + col1 ) col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2886
SELECT MAX ( + col1 ) col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT col0 * 79 * - + 30 + ( 78 ) - + ( + 67 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 48 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
48

query II rowsort
SELECT ALL + col2 + + + col2 AS col2, + col1 AS col0 FROM tab2 AS cor0
----
116
67
46
51
80
77

query I rowsort
SELECT ALL + 61 + col0 AS col0 FROM tab1 AS cor0
----
112
146
152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 21 * + - 11 col2 FROM tab0 AS cor0
----
231
231
231

query I rowsort
SELECT ALL - col1 + - 16 AS col1 FROM tab0
----
-17
-37
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2893
SELECT ALL 16 DIV - col0 + col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2893
SELECT ALL 16 / - col0 + col2 FROM tab2
----
23
40
58

query I rowsort
SELECT + col0 - - + ( ( + 42 ) ) - + - col2 FROM tab0
----
104
139
238

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 - - col2 col0 FROM tab1
----
2697
7284
8349

query I rowsort
SELECT - 64 + + - col2 AS col1 FROM tab1
----
-123
-132
-160

query I rowsort
SELECT ALL - col1 - + 33 AS col1 FROM tab1
----
-38
-47
-80

query I rowsort
SELECT - 76 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-76
-76
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 * col1 * + + col1 AS col0 FROM tab1
----
103823
125
2744

query I rowsort
SELECT col1 * + - col1 AS col0 FROM tab1
----
-196
-2209
-25

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2902
SELECT CAST( NULL AS DECIMAL ) col0 FROM tab2 WHERE NOT col2 * + CAST( 97 AS DECIMAL ) NOT BETWEEN + CAST( + col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2902
SELECT CAST ( NULL AS REAL ) col0 FROM tab2 WHERE NOT col2 * + CAST ( 97 AS REAL ) NOT BETWEEN + CAST ( + col0 AS INTEGER ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 col2, + col1 FROM tab0 cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT col1 + - col2 + - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2905
SELECT - + COUNT( * ), - COUNT( * ) FROM tab0 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-2905
SELECT - + COUNT ( * ), - COUNT ( * ) FROM tab0 AS cor0
----
-3
-3

query II rowsort
SELECT - + col0, + col1 AS col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT ALL - col0 * 43 AS col1 FROM tab1 AS cor0
----
-2193
-3655
-3913

query I rowsort
SELECT - 48 AS col1 FROM tab1 cor0
----
-48
-48
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT COUNT( * ) * + + 70 * + - COUNT( * ) col1 FROM tab1 AS cor0
----
-630

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2909
SELECT COUNT ( * ) * + + 70 * + - COUNT ( * ) col1 FROM tab1 AS cor0
----
-630

onlyif mysql # aggregate syntax: 
query II rowsort label-2910
SELECT DISTINCT + ( + MAX( DISTINCT + col1 ) ) AS col1, + MIN( ALL + + col2 ) col0 FROM tab1 AS cor0
----
47
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2910
SELECT DISTINCT + ( + MAX ( DISTINCT + col1 ) ) AS col1, + MIN ( ALL + + col2 ) col0 FROM tab1 AS cor0
----
47
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT MIN( ALL 91 ) FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-2911
SELECT MIN ( ALL 91 ) FROM tab2
----
91

query I rowsort
SELECT - 23 AS col0 FROM tab0, tab2 AS cor0 WHERE NOT - - 8 >= + + ( + + 33 ) / - + 93
----

query I rowsort
SELECT ALL 89 * - - col1 FROM tab1
----
1246
4183
445

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 42 ) col0 FROM tab2
----
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-2915
SELECT ALL - col0 DIV + col2 AS col1, col1 col2 FROM tab0
----
-8
21
0
1
0
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2915
SELECT ALL - col0 / + col2 AS col1, col1 col2 FROM tab0
----
-8
21
0
1
0
81

query I rowsort
SELECT - 47 * col2 + - col2 + - col0 + - 58 + - col1 AS col0 FROM tab0 AS cor0
----
-2410
-4908
-646

onlyif mysql # aggregate syntax: 
query I rowsort label-2917
SELECT - COUNT( * ) + + 90 AS col1 FROM tab2 cor0
----
87

skipif mysql # not compatible
query I rowsort label-2917
SELECT - COUNT ( * ) + + 90 AS col1 FROM tab2 cor0
----
87

query III rowsort
SELECT * FROM tab2 WHERE col1 - - 15 + + 27 / + - col2 NOT BETWEEN + ( - 42 ) + - col0 AND - + col0 + col1 / + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 0 + - col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT - 14 + + 59 AS col1 FROM tab2 AS cor0
----
45
45
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 8 ) col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
8
8
8

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE ( ( + + 97 ) < + 23 )
----

query I rowsort
SELECT + + 93 + - col1 AS col1 FROM tab2 AS cor0
----
16
26
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2924
SELECT ALL + - CAST( + col1 AS SIGNED ) + + ( + - CAST( - 27 AS SIGNED ) ) FROM tab1 AS cor0
----
-20
13
22

skipif mysql # not compatible
query I rowsort label-2924
SELECT ALL + - CAST ( + col1 AS INTEGER ) + + ( + - CAST ( - 27 AS INTEGER ) ) FROM tab1 AS cor0
----
-20
13
22

query I rowsort
SELECT DISTINCT ( col0 ) + col0 AS col0 FROM tab2
----
128
150
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - + 49 * - 92 col1 FROM tab0
----
4523
4595
4605

query I rowsort
SELECT DISTINCT 80 + col2 AS col1 FROM tab0
----
127
179
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, + col2 col0 FROM tab2
----
-46
23
-64
40
-75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, - col0 col1 FROM tab1
----
-59
-85
-68
-91
-96
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 33 AS col1, 71 col0 FROM tab2
----
33
71
33
71
33
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT DISTINCT - COUNT( * ) * - + MIN( DISTINCT + ( - 6 ) ) AS col1 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT - COUNT ( * ) * - + MIN ( DISTINCT + ( - 6 ) ) AS col1 FROM tab2 AS cor0
----
-18

query II rowsort
SELECT - col1, col0 AS col1 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2933
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2933
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - col0 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT - + MAX( ALL + col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2935
SELECT - + MAX ( ALL + col0 ) FROM tab2 cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT - + ( - MAX( + - ( - col0 ) ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-2936
SELECT - + ( - MAX ( + - ( - col0 ) ) ) FROM tab0 AS cor0
----
97

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 82 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT + ( + col2 ), - 11 * + 61 * - + 25, + + col0 FROM tab2 cor0
----
9 values hashing to 453afa03ec1f7024c5f9f874d02ebff4

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL < + col1 * + 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT DISTINCT COUNT( ALL + + col2 ) + + 83 AS col1 FROM tab0 AS cor0 WHERE 95 <> col0
----
86

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT COUNT ( ALL + + col2 ) + + 83 AS col1 FROM tab0 AS cor0 WHERE 95 <> col0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT DISTINCT SUM( + col1 ) * COUNT( * ) col1 FROM tab2 AS cor0
----
585

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2941
SELECT DISTINCT SUM ( + col1 ) * COUNT ( * ) col1 FROM tab2 AS cor0
----
585

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2942
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + col2 <= + - col0 + + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2942
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + col2 <= + - col0 + + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT col2 * + ( + - col0 ) AS col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT ALL SUM( 7 ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL SUM ( 7 ) FROM tab1
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - + col1 col2 FROM tab1
----
-110
-115
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2946
SELECT - CAST( NULL AS SIGNED ) / + + COUNT( * ) * - + 6 AS col0 FROM tab2 WHERE NOT NULL IN ( + col1 + - col2 * + col1, col0 * + 8, - + 8 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2946
SELECT - CAST ( NULL AS INTEGER ) / + + COUNT ( * ) * - + 6 AS col0 FROM tab2 WHERE NOT NULL IN ( + col1 + - col2 * + col1, col0 * + 8, - + 8 )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + - col2 ) <> NULL
----

query I rowsort
SELECT 63 * ( + 43 ) * - 44 AS col2 FROM tab1
----
-119196
-119196
-119196

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 - + + col1 / - 66 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 45, - col2 AS col0 FROM tab1
----
45
-59
45
-68
45
-96

query II rowsort
SELECT ALL col2 AS col0, col2 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT col2 * - 87 AS col0 FROM tab0
----
-4089
-8613
-870

query I rowsort
SELECT ALL - col0 * + col0 AS col0 FROM tab0 AS cor0 WHERE NOT + 76 + col2 * + col2 IS NOT NULL
----

query I rowsort
SELECT - col2 * + 11 FROM tab1 AS cor0
----
-1056
-649
-748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2955
SELECT ALL - + ( 74 ) + - + CAST( - + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-59
13
23

skipif mysql # not compatible
query I rowsort label-2955
SELECT ALL - + ( 74 ) + - + CAST ( - + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-59
13
23

query I rowsort
SELECT + col1 + 77 FROM tab2 cor0
----
128
144
154

onlyif mysql # aggregate syntax: 
query I rowsort label-2957
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2957
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT + 13 + + MAX( ALL - - ( + 71 ) ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-2958
SELECT + 13 + + MAX ( ALL - - ( + 71 ) ) FROM tab2 AS cor0
----
84

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2959
SELECT ALL - COUNT( * ) DIV 88 + + SUM( - ( col1 ) ) + + + MIN( ALL + 88 ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-2959
SELECT ALL - COUNT ( * ) / 88 + + SUM ( - ( col1 ) ) + + + MIN ( ALL + 88 ) FROM tab1
----
22

query I rowsort
SELECT + col0 + + + col0 * - 58 AS col0 FROM tab0
----
-4959
-5529
-855

query I rowsort
SELECT ALL + col1 * + - col0 * + col2 * - 74 FROM tab1
----
1855550
21521864
5072256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2962
SELECT DISTINCT + - CAST( 25 AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-25

skipif mysql # not compatible
query I rowsort label-2962
SELECT DISTINCT + - CAST ( 25 AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 94 col2 FROM tab0 cor0
----
94

query II rowsort
SELECT - 4, + 32 * + col1 AS col2 FROM tab1 AS cor0 WHERE col2 + + 50 > NULL
----

query I rowsort
SELECT DISTINCT - 2 * col2 * - 82 FROM tab1 AS cor0
----
11152
15744
9676

query I rowsort
SELECT col2 - - + col1 AS col1 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2967
SELECT * FROM tab2 WHERE NOT - CAST( + col0 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2967
SELECT * FROM tab2 WHERE NOT - CAST ( + col0 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2968
SELECT ALL - 93 AS col2, 47 * + COUNT( * ) AS col0 FROM tab0
----
-93
141

skipif mysql # not compatible
query II rowsort label-2968
SELECT ALL - 93 AS col2, 47 * + COUNT ( * ) AS col0 FROM tab0
----
-93
141

query I rowsort
SELECT 41 + 85 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 19b1f1fcc466c23e5267b585248665fc

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT ALL MIN( DISTINCT - - ( - - 20 ) ) AS col2 FROM tab1 cor0
----
20

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL MIN ( DISTINCT - - ( - - 20 ) ) AS col2 FROM tab1 cor0
----
20

query I rowsort
SELECT - - col0 * - - ( + col1 ) FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT ALL - COUNT( DISTINCT 80 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2973
SELECT ALL - COUNT ( DISTINCT 80 ) FROM tab2 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + 37 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2975
SELECT ALL col2 AS col0 FROM tab2 WHERE NOT NULL <> + 87 / + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2975
SELECT ALL col2 AS col0 FROM tab2 WHERE NOT NULL <> + 87 / + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2976
SELECT + 43 AS col2, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
43
-3

skipif mysql # not compatible
query II rowsort label-2976
SELECT + 43 AS col2, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
43
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <> - col0
----

query I rowsort
SELECT DISTINCT + col1 * - 41 FROM tab1 cor0
----
-1927
-205
-574

query I rowsort
SELECT 18 * 11 * + col2 AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
19602
1980
9306

query I rowsort
SELECT ALL + col0 + - - 74 FROM tab1 AS cor0
----
125
159
165

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2981
SELECT MAX( - 59 ) AS col0, 70 DIV - 36 AS col1 FROM tab0 cor0
----
-59
-1

skipif mysql # not compatible
query II rowsort label-2981
SELECT MAX ( - 59 ) AS col0, 70 / - 36 AS col1 FROM tab0 cor0
----
-59
-1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 = + - 23
----

query II rowsort
SELECT ALL + + 60 AS col1, col0 - - 82 FROM tab0 AS cor0
----
60
169
60
179
60
97

query I rowsort
SELECT ALL + 47 + - - 75 AS col1 FROM tab2
----
122
122
122

query I rowsort
SELECT ALL 6 + col2 AS col1 FROM tab1 AS cor0
----
102
65
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT - ( - SUM( DISTINCT - col0 ) ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-2986
SELECT - ( - SUM ( DISTINCT - col0 ) ) AS col1 FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT DISTINCT COUNT( * ) + + 29 FROM tab1 WHERE + col1 IS NOT NULL
----
32

skipif mysql # not compatible
query I rowsort label-2987
SELECT DISTINCT COUNT ( * ) + + 29 FROM tab1 WHERE + col1 IS NOT NULL
----
32

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 54 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT ALL MAX( ALL + - ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2989
SELECT ALL MAX ( ALL + - ( - col2 ) ) AS col1 FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2990
SELECT - 0 * - - 89 + col1 * + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2990
SELECT - 0 * - - 89 + col1 * + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + - 72 ) AS col2 FROM tab1 AS cor0 WHERE NULL <> + col0 * + 63
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= - 24
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2993
SELECT ALL + col1 * + + CAST( col1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-2993
SELECT ALL + col1 * + + CAST ( col1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2994
SELECT ALL + + ( - CAST( col1 AS SIGNED ) ) + - col2 AS col0 FROM tab0 AS cor0
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-2994
SELECT ALL + + ( - CAST ( col1 AS INTEGER ) ) + - col2 AS col0 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT - 51 + - - col2 + - col0 AS col1 FROM tab1 AS cor0
----
-6
-74
-77

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT + ( col1 ) + + + 80 * - col2 FROM tab2 cor0
----
-1789
-3123
-4573

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT ALL + MAX( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2998
SELECT ALL + MAX ( DISTINCT - + col1 ) FROM tab1 AS cor0
----
-5

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = - 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT + SUM( - + ( 69 ) ) * + - COUNT( * ) + - 44 FROM tab0 WHERE NOT 79 IS NULL
----
577

skipif mysql # not compatible
query I rowsort label-3000
SELECT + SUM ( - + ( 69 ) ) * + - COUNT ( * ) + - 44 FROM tab0 WHERE NOT 79 IS NULL
----
577

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3001
SELECT DISTINCT CAST( + 57 AS SIGNED ) DIV - - 96 * col0 + 65 * + col0 FROM tab1
----
3315
5525
5915

skipif mysql # not compatible
query I rowsort label-3001
SELECT DISTINCT CAST ( + 57 AS INTEGER ) / - - 96 * col0 + 65 * + col0 FROM tab1
----
3315
5525
5915

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( - col0 ) + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3003
SELECT CAST( + COUNT( * ) AS SIGNED ) AS col0, SUM( - + col2 ) DIV - 89 + + - 43 FROM tab0
----
3
-42

skipif mysql # not compatible
query II rowsort label-3003
SELECT CAST ( + COUNT ( * ) AS INTEGER ) AS col0, SUM ( - + col2 ) / - 89 + + - 43 FROM tab0
----
3
-42

onlyif mysql # DIV for integer division: 
query II rowsort label-3004
SELECT - 87 DIV - + 1 col0, - col2 * - col0 * + col0 col2 FROM tab1
----
87
249696
87
426275
87
563108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3004
SELECT - 87 / - + 1 col0, - col2 * - col0 * + col0 col2 FROM tab1
----
87
249696
87
426275
87
563108

onlyif mysql # aggregate syntax: 
query I rowsort label-3005
SELECT DISTINCT + + SUM( ALL col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3005
SELECT DISTINCT + + SUM ( ALL col2 ) AS col2 FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3006
SELECT DISTINCT - ( CAST( + MAX( DISTINCT + col2 ) AS SIGNED ) ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3006
SELECT DISTINCT - ( CAST ( + MAX ( DISTINCT + col2 ) AS INTEGER ) ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL + col2 * - col1 + - + 42 FROM tab1 WHERE NOT - ( - - col2 ) * + + 68 BETWEEN col0 AND col2
----
-1386
-3238
-337

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT DISTINCT + SUM( ALL - + col1 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3008
SELECT DISTINCT + SUM ( ALL - + col1 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT ALL + COUNT( ALL - - col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL + COUNT ( ALL - - col2 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, - col0 col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - + 61 / + 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT ALL + + ( - COUNT( * ) ) + - 52 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL + + ( - COUNT ( * ) ) + - 52 FROM tab2 AS cor0
----
-55

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 78 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT ALL MIN( - col0 ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-3013
SELECT ALL MIN ( - col0 ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-94

query I rowsort
SELECT + col0 * 2 FROM tab2
----
128
150
92

query I rowsort
SELECT ALL col2 * 30 + - 25 FROM tab1 WHERE NOT - 52 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT - ( 96 ) * + MIN( DISTINCT - + col2 ) col1 FROM tab0
----
9504

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3016
SELECT - ( 96 ) * + MIN ( DISTINCT - + col2 ) col1 FROM tab0
----
9504

query I rowsort
SELECT DISTINCT ( + col2 ) * + + 73 FROM tab1
----
4307
4964
7008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + - col1 col1 FROM tab2 WHERE - col2 BETWEEN ( col1 ) AND NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL - col0 - col2 AS col2, - 17 * - + col2 * - col1 + col0 AS col2 FROM tab0 AS cor0
----
-196
-1586
-62
-64704
-97
-3483

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3021
SELECT ALL + - MIN( CAST( col1 AS SIGNED ) ) col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3021
SELECT ALL + - MIN ( CAST ( col1 AS INTEGER ) ) col2 FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3022
SELECT - CAST( + 73 AS SIGNED ) * + MAX( col1 ) FROM tab1 AS cor0
----
-3431

skipif mysql # not compatible
query I rowsort label-3022
SELECT - CAST ( + 73 AS INTEGER ) * + MAX ( col1 ) FROM tab1 AS cor0
----
-3431

query I rowsort
SELECT col2 + 79 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
126
178
89

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT ALL + 86 - - COUNT( * ) * - + MAX( ALL + col1 ) FROM tab0 AS cor0
----
-157

skipif mysql # not compatible
query I rowsort label-3024
SELECT ALL + 86 - - COUNT ( * ) * - + MAX ( ALL + col1 ) FROM tab0 AS cor0
----
-157

query I rowsort
SELECT - - col1 * + 6 FROM tab2 AS cor0
----
306
402
462

query I rowsort
SELECT + col0 * + - 44 FROM tab0 AS cor0
----
-3828
-4268
-660

query I rowsort
SELECT + 19 * - 40 - - 63 AS col1 FROM tab2 AS cor0
----
-697
-697
-697

onlyif mysql # DIV for integer division: 
query II rowsort label-3028
SELECT - col0 DIV + - 8 AS col1, col1 FROM tab2 AS cor0
----
5
51
8
77
9
67

skipif mysql # not compatible
query II rowsort label-3028
SELECT - col0 / + - 8 AS col1, col1 FROM tab2 AS cor0
----
5
51
8
77
9
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, 74 AS col2 FROM tab2
----
46
74
64
74
75
74

query II rowsort
SELECT ALL - col2, - col1 AS col2 FROM tab1
----
-59
-5
-68
-47
-96
-14

query II rowsort
SELECT ALL + col0, ( + + col2 ) FROM tab0
----
15
47
87
10
97
99

query II rowsort
SELECT col0 AS col1, col1 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT DISTINCT 63 * - + col0 FROM tab0
----
-5481
-6111
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT DISTINCT - 2 * - 32 * + ( + COUNT( * ) ) FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-3034
SELECT DISTINCT - 2 * - 32 * + ( + COUNT ( * ) ) FROM tab0
----
192

query I rowsort
SELECT 86 FROM tab2 AS cor0 WHERE NOT 79 IS NOT NULL
----

query II rowsort
SELECT - col0 AS col1, col0 AS col1 FROM tab0 cor0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT DISTINCT MAX( + 17 ) AS col0 FROM tab2 AS cor0 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3037
SELECT DISTINCT MAX ( + 17 ) AS col0 FROM tab2 AS cor0 WHERE + col1 IS NULL
----
NULL

query II rowsort
SELECT + - 37, 50 AS col1 FROM tab2 AS cor0
----
-37
50
-37
50
-37
50

query II rowsort
SELECT + - col0, - 95 + - col0 AS col0 FROM tab0 cor0
----
-15
-110
-87
-182
-97
-192

query I rowsort
SELECT col1 * - 70 AS col0 FROM tab0
----
-1470
-5670
-70

query I rowsort
SELECT 57 AS col0 FROM tab1 WHERE col2 + - 76 IS NULL
----

query I rowsort
SELECT ALL col2 * + ( + col2 ) FROM tab0
----
100
2209
9801

onlyif mysql # DIV for integer division: 
query I rowsort label-3043
SELECT DISTINCT - + ( col2 ) DIV - + 52 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3043
SELECT DISTINCT - + ( col2 ) / - + 52 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT - col2 * col0 + ( 33 ) AS col1 FROM tab1 AS cor0
----
-4863
-4982
-6155

query I rowsort
SELECT + 14 * + col1 * col2 FROM tab2 AS cor0
----
16422
43120
54404

query II rowsort
SELECT + 37 AS col0, - col0 FROM tab1 cor0 WHERE NULL IS NULL
----
37
-51
37
-85
37
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3047
SELECT + + MIN( - + col0 ) + + - COUNT( + - col2 ) DIV ( + 89 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3047
SELECT + + MIN ( - + col0 ) + + - COUNT ( + - col2 ) / ( + 89 ) FROM tab1 AS cor0
----
-91

query III rowsort
SELECT ALL * FROM tab0 WHERE - 10 BETWEEN NULL AND - + col0 * - col0 * - col2
----

query I rowsort
SELECT + col2 AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - 69 + - ( + - col1 ) + 16 + - - col1 * col1 + + col2 FROM tab2
----
2622
4561
5993

query I rowsort
SELECT ALL col1 - - + col0 + - col1 AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT col1 * col1 * + + col0 AS col0 FROM tab1
----
201019
2125
9996

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3053
SELECT DISTINCT - CAST( NULL AS SIGNED ) col1, col0 * + 82, - + col0 AS col1 FROM tab1 AS cor0
----
9 values hashing to f5ccf914253aa4b83bcf0cf2b88e5279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3053
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col1, col0 * + 82, - + col0 AS col1 FROM tab1 AS cor0
----
9 values hashing to f5ccf914253aa4b83bcf0cf2b88e5279

query II rowsort
SELECT ALL - col1 * col0 + - col1 AS col0, - col2 * + + col2 FROM tab0 cor0
----
-1296
-2209
-1848
-100
-98
-9801

query I rowsort
SELECT ALL - + ( + - 47 ) FROM tab0 AS cor0
----
47
47
47

query I rowsort
SELECT DISTINCT - 41 + 69 FROM tab0
----
28

query I rowsort
SELECT col1 + col1 * + col1 * - col2 FROM tab0
----
-308286
-4389
-98

query I rowsort
SELECT ALL + col1 * - 58 AS col1 FROM tab0
----
-1218
-4698
-58

query I rowsort
SELECT - + 55 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query I rowsort
SELECT DISTINCT + col2 * + + ( - 88 ) FROM tab2 AS cor0
----
-2024
-3520
-5104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3061
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * - col2 * + 28 + 77 + - col1 col1 FROM tab2 AS cor0
----
-14786
-44800
-94182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3061
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * - col2 * + 28 + 77 + - col1 col1 FROM tab2 AS cor0
----
-14786
-44800
-94182

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT ALL + - COUNT( ALL + 22 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL + - COUNT ( ALL + 22 ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + + ( + + 2 ) AS col2 FROM tab0 AS cor0
----
2
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3064
SELECT - 86 * col1 DIV ( + col0 ) AS col2 FROM tab2 AS cor0
----
-103
-76
-95

skipif mysql # not compatible
query I rowsort label-3064
SELECT - 86 * col1 / ( + col0 ) AS col2 FROM tab2 AS cor0
----
-103
-76
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-3065
SELECT DISTINCT SUM( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-3065
SELECT DISTINCT SUM ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
121

onlyif mysql # DIV for integer division: 
query II rowsort label-3066
SELECT DISTINCT - col1 * - col2 AS col2, col0 DIV col1 * col0 col0 FROM tab1 cor0
----
1344
153
295
1445
3196
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3066
SELECT DISTINCT - col1 * - col2 AS col2, col0 / col1 * col0 col0 FROM tab1 cor0
----
1344
153
295
1445
3196
91

query I rowsort
SELECT DISTINCT + 91 * col1 FROM tab1 cor0
----
1274
4277
455

query I rowsort
SELECT ALL - col1 * - 24 * ( 70 ) FROM tab1
----
23520
78960
8400

query I rowsort
SELECT ALL 94 + + - 48 AS col2 FROM tab1
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3070
SELECT 51 * + col0 * + col2 * - + CAST( - col0 AS SIGNED ) col2 FROM tab0
----
3860190
47506041
539325

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3070
SELECT 51 * + col0 * + col2 * - + CAST ( - col0 AS INTEGER ) col2 FROM tab0
----
3860190
47506041
539325

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT ALL 25 * + SUM( ALL + col1 ) + + COUNT( col0 ) FROM tab1
----
1653

skipif mysql # not compatible
query I rowsort label-3071
SELECT ALL 25 * + SUM ( ALL + col1 ) + + COUNT ( col0 ) FROM tab1
----
1653

query I rowsort
SELECT + - 18 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query I rowsort
SELECT - col1 + ( - 32 ) AS col1 FROM tab0
----
-113
-33
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT ALL SUM( DISTINCT + col1 ) AS col1 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-3074
SELECT ALL SUM ( DISTINCT + col1 ) AS col1 FROM tab2 cor0
----
195

query II rowsort
SELECT DISTINCT + + 88 * - + col1 + - + col0 * - col2 AS col1, - col1 AS col2 FROM tab2 AS cor0
----
-1546
-67
-3430
-51
-4216
-77

query II rowsort
SELECT ALL 77 * - col0 + - col1, - col0 AS col0 FROM tab1 AS cor0
----
-3941
-51
-6550
-85
-7054
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3077
SELECT - + col2 DIV - col2 AS col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3077
SELECT - + col2 / - col2 AS col1 FROM tab2 cor0
----
1
1
1

query II rowsort
SELECT col1, 10 FROM tab2 AS cor0
----
51
10
67
10
77
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3079
SELECT ALL + 35 * - MAX( - col1 ) AS col0 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL + 35 * - MAX ( - col1 ) AS col0 FROM tab0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-3080
SELECT col2 - + col2 DIV + col1 FROM tab1
----
48
67
90

skipif mysql # not compatible
query I rowsort label-3080
SELECT col2 - + col2 / + col1 FROM tab1
----
48
67
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3081
SELECT ALL MIN( ALL - - col1 ) + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL MIN ( ALL - - col1 ) + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3082
SELECT ALL + + col0 - + 66 AS col1, - col1 * CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab1 cor0
----
-15
NULL
19
NULL
25
NULL

skipif mysql # not compatible
query II rowsort label-3082
SELECT ALL + + col0 - + 66 AS col1, - col1 * CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab1 cor0
----
-15
NULL
19
NULL
25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT + COUNT( * ) + + + 46 * + MAX( + col1 ) + - + ( - + 69 ) AS col1 FROM tab2 AS cor0
----
3614

skipif mysql # not compatible
query I rowsort label-3083
SELECT + COUNT ( * ) + + + 46 * + MAX ( + col1 ) + - + ( - + 69 ) AS col1 FROM tab2 AS cor0
----
3614

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 col1 FROM tab1
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT DISTINCT SUM( + 96 ) FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT SUM ( + 96 ) FROM tab2 AS cor0
----
288

onlyif mysql # aggregate syntax: 
query II rowsort label-3086
SELECT - COUNT( * ) AS col2, 13 * - + COUNT( * ) FROM tab1 AS cor0
----
-3
-39

skipif mysql # not compatible
query II rowsort label-3086
SELECT - COUNT ( * ) AS col2, 13 * - + COUNT ( * ) FROM tab1 AS cor0
----
-3
-39

query I rowsort
SELECT col0 - + + 48 FROM tab2 AS cor0 WHERE NOT col2 <= NULL
----

query II rowsort
SELECT ALL + 57 AS col0, 40 AS col0 FROM tab1 AS cor0
----
57
40
57
40
57
40

query I rowsort
SELECT - col0 * 82 * - 5 AS col0 FROM tab2 cor0
----
18860
26240
30750

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 86 BETWEEN - ( + 61 ) AND + 54
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 23 * 10 AS col2 FROM tab0 AS cor0
----
230

query II rowsort
SELECT DISTINCT - 73, - col0 + + 5 AS col1 FROM tab0 AS cor0
----
-73
-10
-73
-82
-73
-92

query I rowsort
SELECT - 65 * 25 AS col1 FROM tab2 AS cor0
----
-1625
-1625
-1625

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3094
SELECT col0, CAST( - - 93 AS SIGNED ) * + col1 - + + col0 + + col1 - - - col2 * col2 + + - 23 AS col2 FROM tab1
----
51
-7974
85
-3119
91
-320

skipif mysql # not compatible
query II rowsort label-3094
SELECT col0, CAST ( - - 93 AS INTEGER ) * + col1 - + + col0 + + col1 - - - col2 * col2 + + - 23 AS col2 FROM tab1
----
51
-7974
85
-3119
91
-320

query II rowsort
SELECT ALL 28, - col1 AS col1 FROM tab2
----
28
-51
28
-67
28
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab0 WHERE NOT - col1 <> - - col1
----

query II rowsort
SELECT col2 AS col1, - 53 FROM tab2
----
23
-53
40
-53
58
-53

query I rowsort
SELECT DISTINCT col1 * - 13 AS col2 FROM tab1
----
-182
-611
-65

query I rowsort
SELECT DISTINCT - 75 * - col0 AS col2 FROM tab1
----
3825
6375
6825

query II rowsort
SELECT DISTINCT col2, + col2 - + 86 FROM tab2
----
23
-63
40
-46
58
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3101
SELECT - + ( - + col0 ), CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
46
46
64
64
75
75

skipif mysql # not compatible
query II rowsort label-3101
SELECT - + ( - + col0 ), CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3102
SELECT * FROM tab0 AS cor0 WHERE NOT - 5 / 75 + + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND - + col0
----

skipif mysql # not compatible
query III rowsort label-3102
SELECT * FROM tab0 AS cor0 WHERE NOT - 5 / 75 + + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, + 99 FROM tab2 AS cor0
----
46
99
64
99
75
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3104
SELECT DISTINCT col2 DIV - col0 col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3104
SELECT DISTINCT col2 / - col0 col0 FROM tab0 AS cor0
----
-1
-3
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 71 + - col2 + + col1 IN ( + col1, + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE col1 + - - col0 * + ( 26 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3107
SELECT DISTINCT CAST( - - col2 AS SIGNED ), col1 AS col0 FROM tab1
----
59
5
68
47
96
14

skipif mysql # not compatible
query II rowsort label-3107
SELECT DISTINCT CAST ( - - col2 AS INTEGER ), col1 AS col0 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT - 22 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

query I rowsort
SELECT DISTINCT + 3 + 57 FROM tab0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT - 34 * COUNT( * ) + 38 + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-3110
SELECT - 34 * COUNT ( * ) + 38 + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3111
SELECT + 66 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3111
SELECT + 66 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + 25 * 91 FROM tab1 AS cor0
----
2334
2343
2371

query I rowsort
SELECT 98 + + - col2 + - - col0 AS col0 FROM tab1 AS cor0
----
121
124
53

query I rowsort
SELECT ALL + + col1 * 37 * col2 - + 34 AS col1 FROM tab2 AS cor0
----
113926
143748
43367

query I rowsort
SELECT ALL 57 + - - col2 AS col0 FROM tab1 cor0
----
116
125
153

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3116
SELECT - 55 * col2 * col2 DIV + + CAST( + + ( - - col0 ) AS SIGNED ) + - col2 AS col1 FROM tab0 cor0
----
-5656
-73
-8146

skipif mysql # not compatible
query I rowsort label-3116
SELECT - 55 * col2 * col2 / + + CAST ( + + ( - - col0 ) AS INTEGER ) + - col2 AS col1 FROM tab0 cor0
----
-5656
-73
-8146

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----

query I rowsort
SELECT 3 AS col2 FROM tab0 cor0 WHERE col1 + - 4 IS NULL
----

query II rowsort
SELECT - 30, col1 * + + 21 AS col0 FROM tab2 WHERE + - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 42 + - - col0 + col2 col1, 96 + - col2 FROM tab0
----
154
-3
20
49
55
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3121
SELECT + CAST( + col0 AS SIGNED ) FROM tab2 WHERE - 42 * - col2 NOT IN ( + col2 )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3121
SELECT + CAST ( + col0 AS INTEGER ) FROM tab2 WHERE - 42 * - col2 NOT IN ( + col2 )
----
46
64
75

query III rowsort
SELECT * FROM tab1 WHERE ( + - col2 / - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3123
SELECT ALL SUM( DISTINCT + - col2 ) - 37 AS col0 FROM tab1
----
-260

skipif mysql # not compatible
query I rowsort label-3123
SELECT ALL SUM ( DISTINCT + - col2 ) - 37 AS col0 FROM tab1
----
-260

query I rowsort
SELECT col1 * - 35 FROM tab0
----
-2835
-35
-735

onlyif mysql # DIV for integer division: 
query I rowsort label-3125
SELECT + - 74 DIV + 77 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3125
SELECT + - 74 / + 77 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 = col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3127
SELECT DISTINCT + COUNT( * ) AS col2, MAX( + - 29 ) AS col0 FROM tab2 cor0
----
3
-29

skipif mysql # not compatible
query II rowsort label-3127
SELECT DISTINCT + COUNT ( * ) AS col2, MAX ( + - 29 ) AS col0 FROM tab2 cor0
----
3
-29

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) < + 1
----

query I rowsort
SELECT DISTINCT - col2 + + 37 AS col1 FROM tab0
----
-10
-62
27

query I rowsort
SELECT ALL ( - col2 ) AS col1 FROM tab2 WHERE NOT col0 + - ( - col2 ) BETWEEN ( - 31 ) * - col0 AND + col0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3131
SELECT ALL - COUNT( - ( - col1 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3131
SELECT ALL - COUNT ( - ( - col1 ) ) FROM tab1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 38 col2 FROM tab2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT ALL + COUNT( * ) + 67 AS col1 FROM tab2 WHERE ( - col0 ) <= col2
----
70

skipif mysql # not compatible
query I rowsort label-3133
SELECT ALL + COUNT ( * ) + 67 AS col1 FROM tab2 WHERE ( - col0 ) <= col2
----
70

query I rowsort
SELECT - 88 + 63 AS col2 FROM tab2 WHERE + 49 + - col2 IS NOT NULL
----
-25
-25
-25

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 + + col1 * - col1 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT DISTINCT - COUNT( * ) + - 51 FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT - COUNT ( * ) + - 51 FROM tab0
----
-54

query I rowsort
SELECT + 60 / - col0 FROM tab2 WHERE NOT NULL NOT IN ( - col0 / - col0 )
----

query I rowsort
SELECT ALL - col2 - + col0 AS col0 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT ALL col1 * + col1 FROM tab2 WHERE - 44 * + 23 NOT IN ( col2 )
----
2601
4489
5929

query I rowsort
SELECT DISTINCT col1 + - ( 75 ) * col0 FROM tab2
----
-3399
-4723
-5558

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + 17 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + ( col1 ) * + col1 ) IN ( + ( + 65 ) + 57 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT COUNT( col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3143
SELECT COUNT ( col2 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT - SUM( ALL + col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3144
SELECT - SUM ( ALL + col0 ) FROM tab0
----
-199

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 13 IS NULL
----

query I rowsort
SELECT ALL + 90 + + 41 * col1 AS col0 FROM tab2
----
2181
2837
3247

query I rowsort
SELECT ALL + 21 + - 63 FROM tab1
----
-42
-42
-42

query I rowsort
SELECT ALL + col0 + 90 * + 58 FROM tab0
----
5235
5307
5317

query I rowsort
SELECT DISTINCT - ( ( col1 ) ) * col0 FROM tab0 WHERE NOT + 93 NOT BETWEEN ( NULL ) AND ( 24 * 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT + MAX( - col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3150
SELECT + MAX ( - col1 ) AS col0 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3151
SELECT 2 DIV - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3151
SELECT 2 / - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col0 FROM tab2 AS cor0 WHERE NULL >= - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 15 IN ( col2 * + 39 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * col0 IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT - COUNT( ALL col1 ) + COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3155
SELECT - COUNT ( ALL col1 ) + COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 21 + col0 FROM tab1
----
106
112
72

query I rowsort
SELECT DISTINCT - col2 + col0 / - 19 FROM tab1 WHERE NOT NULL BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT DISTINCT - MIN( DISTINCT 90 ) + + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2
----
-81

skipif mysql # not compatible
query I rowsort label-3158
SELECT DISTINCT - MIN ( DISTINCT 90 ) + + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * ( 80 ) + - col2 col1 FROM tab2 WHERE NULL > - 83 + col0 / col2
----

query I rowsort
SELECT DISTINCT + ( col1 ) - 99 FROM tab0
----
-18
-78
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-3161
SELECT DISTINCT 62 DIV col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3161
SELECT DISTINCT 62 / col0 FROM tab2 AS cor0
----
0
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 9 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 / - ( - col0 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 83 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN 27 AND ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3165
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( + col2 * + CAST( - ( + col2 ) AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( + col2 * + CAST ( - ( + col2 ) AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3166
SELECT - ( + CAST( NULL AS SIGNED ) ) / AVG ( ALL + col2 + col0 ) FROM tab2 AS cor0 WHERE ( - col1 * 98 - col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3166
SELECT - ( + CAST ( NULL AS INTEGER ) ) / AVG ( ALL + col2 + col0 ) FROM tab2 AS cor0 WHERE ( - col1 * 98 - col0 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3167
SELECT ALL COUNT( * ) * 33 AS col0 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-3167
SELECT ALL COUNT ( * ) * 33 AS col0 FROM tab1 AS cor0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3168
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - COUNT( DISTINCT col0 ) + - 98 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT col0 ) + - 98 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT ALL - 78 + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL - 78 + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-75

query I rowsort
SELECT DISTINCT + 6 * - col2 + 99 FROM tab2 cor0
----
-141
-249
-39

query I rowsort
SELECT col2 - + ( 54 ) FROM tab2 AS cor0
----
-14
-31
4

query III rowsort
SELECT * FROM tab0 WHERE col2 * + 62 + col1 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 + + + col2 * 85 FROM tab1
----
5010
5733
8146

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT DISTINCT + MAX( ALL col2 ) FROM tab1 WHERE NOT + col0 + + col2 NOT IN ( - col2 + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT + MAX ( ALL col2 ) FROM tab1 WHERE NOT + col0 + + col2 NOT IN ( - col2 + - col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3175
SELECT DISTINCT - CAST( + col1 AS SIGNED ) DIV + col1 - 51 FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-3175
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) / + col1 - 51 FROM tab2
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-3176
SELECT 53 + + - 9 + col1 DIV col2 FROM tab1
----
44
44
44

skipif mysql # not compatible
query I rowsort label-3176
SELECT 53 + + - 9 + col1 / col2 FROM tab1
----
44
44
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3177
SELECT COUNT( * ) DIV - - 59 + - ( + ( + 97 ) ) FROM tab2
----
-97

skipif mysql # not compatible
query I rowsort label-3177
SELECT COUNT ( * ) / - - 59 + - ( + ( + 97 ) ) FROM tab2
----
-97

query III rowsort
SELECT * FROM tab0 WHERE col1 * + 7 NOT BETWEEN col1 AND ( - 80 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) < + 89 * - col1
----

query III rowsort
SELECT * FROM tab2 WHERE ( col1 ) < ( + col2 )
----

query I rowsort
SELECT DISTINCT ( + col1 ) * + col2 AS col0 FROM tab1
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query I rowsort label-3182
SELECT DISTINCT 59 DIV - - ( - col2 ) FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-3182
SELECT DISTINCT 59 / - - ( - col2 ) FROM tab0
----
-1
-5
0

query I rowsort
SELECT ( 44 ) AS col2 FROM tab1 AS cor0 WHERE NOT 67 * - ( + col0 * col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3184
SELECT ALL ( + + COUNT( * ) ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3184
SELECT ALL ( + + COUNT ( * ) ) col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT ALL + MAX( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3185
SELECT ALL + MAX ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
-46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * 78 + - ( - col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3187
SELECT + 71 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3187
SELECT + 71 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - col0 ) + 84 FROM tab1 AS cor0 WHERE NOT col1 * 94 IS NULL
----
-1
-7
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT - + SUM( DISTINCT + + 62 ) FROM tab0 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-3189
SELECT - + SUM ( DISTINCT + + 62 ) FROM tab0 AS cor0
----
-62

query I rowsort
SELECT DISTINCT - 1 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 col2 FROM tab2, tab1 cor0
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-3192
SELECT - 92 DIV - - col0 AS col1 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3192
SELECT - 92 / - - col0 AS col1 FROM tab2
----
-1
-1
-2

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 61 * + 16 <> ( NULL )
----

query I rowsort
SELECT 13 * col1 FROM tab0 WHERE NOT ( + col0 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT 79 + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 IN ( ( + col0 ) )
----
79

skipif mysql # not compatible
query I rowsort label-3195
SELECT 79 + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 IN ( ( + col0 ) )
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3196
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

query I rowsort
SELECT ALL + ( col2 ) - 90 * col2 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col2
----

query II rowsort
SELECT - col0 AS col0, - 19 + - col2 FROM tab2 AS cor0
----
-46
-42
-64
-59
-75
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-3199
SELECT + - COUNT( * ) AS col2, - MIN( ALL col2 ) + 59 FROM tab0 AS cor0
----
-3
49

skipif mysql # not compatible
query II rowsort label-3199
SELECT + - COUNT ( * ) AS col2, - MIN ( ALL col2 ) + 59 FROM tab0 AS cor0
----
-3
49

query I rowsort
SELECT ALL - 4 + - - col2 AS col1 FROM tab2 AS cor0
----
19
36
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, - col1 AS col1 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3202
SELECT + 52 AS col2, + CAST( col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
52
15
52
87
52
97

skipif mysql # not compatible
query II rowsort label-3202
SELECT + 52 AS col2, + CAST ( col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
52
15
52
87
52
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT ALL - + MAX( col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL - + MAX ( col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT ALL - - 34 AS col1 FROM tab0 AS cor0
----
34
34
34

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 <> + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + ( - - col2 ) col1 FROM tab1
----
-23
-26
45

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN - col1 + + col1 * col1 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + col2 AND ( col0 ) * + col2 - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3209
SELECT col2 DIV 18 AS col1 FROM tab0 WHERE - CAST( + CAST( col0 AS SIGNED ) AS SIGNED ) <= col0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-3209
SELECT col2 / 18 AS col1 FROM tab0 WHERE - CAST ( + CAST ( col0 AS INTEGER ) AS INTEGER ) <= col0
----
0
2
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT ALL ( - COUNT( DISTINCT col0 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3210
SELECT ALL ( - COUNT ( DISTINCT col0 ) ) AS col1 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3211
SELECT - - col1 + - col0 + - CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3211
SELECT - - col1 + - col0 + - CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3212
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3212
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE ( + 92 < NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3213
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE ( + 92 < NULL )
----
0

query II rowsort
SELECT + 73, + col1 * - col2 AS col2 FROM tab1 WHERE NULL IS NULL
----
73
-1344
73
-295
73
-3196

query III rowsort
SELECT * FROM tab2 WHERE NULL < - col1 * + col0 / col0 * col2 + col2
----

query I rowsort
SELECT 95 + - col1 AS col0 FROM tab2 cor0
----
18
28
44

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3217
SELECT ALL * FROM tab1 cor0 WHERE - + ( + CAST( NULL AS DECIMAL ) ) IS NOT NULL AND col2 * + col1 + - col0 IN ( col2 / + 15 + col0 )
----

skipif mysql # not compatible
query III rowsort label-3217
SELECT ALL * FROM tab1 cor0 WHERE - + ( + CAST ( NULL AS REAL ) ) IS NOT NULL AND col2 * + col1 + - col0 IN ( col2 / + 15 + col0 )
----

query II rowsort
SELECT ALL - 41, + col2 AS col0 FROM tab0 AS cor0
----
-41
10
-41
47
-41
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3219
SELECT * FROM tab2 AS cor0 WHERE - CAST( + 44 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3219
SELECT * FROM tab2 AS cor0 WHERE - CAST ( + 44 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( 43 * - 97 ) AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3221
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3221
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 22 IN ( + col2 * + col2 + - 49 + - col1 * 57 )
----

query I rowsort
SELECT + col1 + 11 AS col0 FROM tab0 AS cor0
----
12
32
92

query I rowsort
SELECT - col0 + - - 57 FROM tab2 AS cor0
----
-18
-7
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3225
SELECT 95 * + - CAST( - COUNT( * ) AS SIGNED ) + - MIN( - col1 ) FROM tab0 AS cor0
----
366

skipif mysql # not compatible
query I rowsort label-3225
SELECT 95 * + - CAST ( - COUNT ( * ) AS INTEGER ) + - MIN ( - col1 ) FROM tab0 AS cor0
----
366

query I rowsort
SELECT + - 27 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT ALL + col2 * - + col2 + - - 30 FROM tab2
----
-1570
-3334
-499

query I rowsort
SELECT DISTINCT + ( + col1 ) * - - col1 * - 38 FROM tab1
----
-7448
-83942
-950

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> ( 17 ) / + - ( + + col0 ) + 95 + + ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3231
SELECT DISTINCT ( MAX( + - col0 ) ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-3231
SELECT DISTINCT ( MAX ( + - col0 ) ) AS col0 FROM tab1
----
-51

query I rowsort
SELECT ALL - col2 * + col2 * - + col1 AS col2 FROM tab0
----
178929
2100
9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3233
SELECT CAST( - MIN( ALL 35 ) AS SIGNED ) AS col0 FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-3233
SELECT CAST ( - MIN ( ALL 35 ) AS INTEGER ) AS col0 FROM tab0
----
-35

query I rowsort
SELECT ALL - - ( + + 41 ) AS col2 FROM tab1 AS cor0
----
41
41
41

query III rowsort
SELECT * FROM tab0 WHERE NOT + 24 * + - col1 / col2 * - col0 > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT COUNT( * ) FROM tab2 WHERE NOT ( - + col0 + + - col1 ) BETWEEN ( 48 ) AND ( 60 )
----
3

skipif mysql # not compatible
query I rowsort label-3236
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( - + col0 + + - col1 ) BETWEEN ( 48 ) AND ( 60 )
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3237
SELECT DISTINCT * FROM tab2 WHERE NULL <= - ( - CAST( NULL AS DECIMAL ) ) + + col1 + - 63
----

skipif mysql # not compatible
query III rowsort label-3237
SELECT DISTINCT * FROM tab2 WHERE NULL <= - ( - CAST ( NULL AS REAL ) ) + + col1 + - 63
----

query I rowsort
SELECT col1 FROM tab1 WHERE NOT NULL <= - - 48
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + - col2 * col0 * 13 NOT IN ( - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 46 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT ALL - 29 * - COUNT( * ) + - + 6 col0 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3241
SELECT ALL - 29 * - COUNT ( * ) + - + 6 col0 FROM tab1 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3242
SELECT + + SUM( DISTINCT - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3242
SELECT + + SUM ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-156

query II rowsort
SELECT 28 AS col1, col0 + - col2 + + - col0 FROM tab2
----
28
-23
28
-40
28
-58

query I rowsort
SELECT DISTINCT col0 + - 12 AS col1 FROM tab2
----
34
52
63

query I rowsort
SELECT DISTINCT 42 * + ( - col2 ) FROM tab1
----
-2478
-2856
-4032

query I rowsort
SELECT 5 * - col0 AS col1 FROM tab0
----
-435
-485
-75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 NOT BETWEEN 45 AND - col1 - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3248
SELECT ALL 60 DIV - col1 FROM tab0
----
-2
-60
0

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL 60 / - col1 FROM tab0
----
-2
-60
0

query I rowsort
SELECT 93 FROM tab0 WHERE + col2 * 48 NOT BETWEEN ( + 80 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3250
SELECT DISTINCT col2 * - - 24 + + col1 - col1 DIV + col2 AS col1 FROM tab1
----
1421
1679
2318

skipif mysql # not compatible
query I rowsort label-3250
SELECT DISTINCT col2 * - - 24 + + col1 - col1 / + col2 AS col1 FROM tab1
----
1421
1679
2318

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3251
SELECT + COUNT( DISTINCT CAST( - - col0 AS SIGNED ) ) AS col1, 93 col0 FROM tab1
----
3
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3251
SELECT + COUNT ( DISTINCT CAST ( - - col0 AS INTEGER ) ) AS col1, 93 col0 FROM tab1
----
3
93

query I rowsort
SELECT col2 * - + 59 AS col2 FROM tab1
----
-3481
-4012
-5664

onlyif mysql # aggregate syntax: 
query II rowsort label-3253
SELECT COUNT( * ) AS col1, SUM( DISTINCT + + col2 ) AS col2 FROM tab0
----
3
156

skipif mysql # not compatible
query II rowsort label-3253
SELECT COUNT ( * ) AS col1, SUM ( DISTINCT + + col2 ) AS col2 FROM tab0
----
3
156

query I rowsort
SELECT ( + 11 ) AS col1 FROM tab1
----
11
11
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3255
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT ( + + CAST( NULL AS DECIMAL ) ) NOT IN ( col1 * + + CAST( + col2 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3255
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT ( + + CAST ( NULL AS REAL ) ) NOT IN ( col1 * + + CAST ( + col2 AS INTEGER ) )
----
0

query II rowsort
SELECT DISTINCT + col1, col0 FROM tab1 WHERE NOT NULL <= col1
----

query II rowsort
SELECT ALL 56, - col0 AS col2 FROM tab1
----
56
-51
56
-85
56
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3258
SELECT - + 50 DIV - col1 col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3258
SELECT - + 50 / - col1 col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3259
SELECT DISTINCT + col2 * + CAST( 44 AS SIGNED ) FROM tab1 AS cor0
----
2596
2992
4224

skipif mysql # not compatible
query I rowsort label-3259
SELECT DISTINCT + col2 * + CAST ( 44 AS INTEGER ) FROM tab1 AS cor0
----
2596
2992
4224

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT ALL + COUNT( * ) * + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-3260
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-3261
SELECT - + COUNT( * ) * - 87 FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-3261
SELECT - + COUNT ( * ) * - 87 FROM tab2 AS cor0
----
261

onlyif mysql # DIV for integer division: 
query I rowsort label-3262
SELECT + col2 DIV - 28 FROM tab1
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-3262
SELECT + col2 / - 28 FROM tab1
----
-2
-2
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT COUNT( ALL - - 38 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3263
SELECT COUNT ( ALL - - 38 ) FROM tab1
----
3

query I rowsort
SELECT - 78 * ( + + ( - 41 ) ) FROM tab1
----
3198
3198
3198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3265
SELECT - AVG ( col0 ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3265
SELECT - AVG ( col0 ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( NULL ) NOT IN ( + col1 / + 32, - 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT DISTINCT + SUM( 20 ) AS col1 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-3267
SELECT DISTINCT + SUM ( 20 ) AS col1 FROM tab1
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col0 col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col1 * + ( 44 ) * - + col1 AS col1 FROM tab1
----
1100
8624
97196

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT - col2 * col0 * - + 27 NOT BETWEEN ( NULL ) AND + 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT COUNT( * ) + - ( MIN( ALL - col2 ) ) AS col0 FROM tab1 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3271
SELECT COUNT ( * ) + - ( MIN ( ALL - col2 ) ) AS col0 FROM tab1 WHERE NOT + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 AS cor0 WHERE NOT ( ( NULL >= ( NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT - SUM( + 66 ) AS col2 FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-3273
SELECT - SUM ( + 66 ) AS col2 FROM tab0 AS cor0
----
-198

query I rowsort
SELECT ALL - 59 * + 79 FROM tab2 AS cor0
----
-4661
-4661
-4661

onlyif mysql # DIV for integer division: 
query I rowsort label-3275
SELECT DISTINCT + + 89 * col2 DIV col1 + - + col1 AS col1 FROM tab2 AS cor0
----
-11
-31
10

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT + + 89 * col2 / col1 + - + col1 AS col1 FROM tab2 AS cor0
----
-11
-31
10

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - - 56, + 63 + + col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3277
SELECT DISTINCT + 65 AS col2, col2 DIV - - col2 AS col1 FROM tab0
----
65
1

skipif mysql # not compatible
query II rowsort label-3277
SELECT DISTINCT + 65 AS col2, col2 / - - col2 AS col1 FROM tab0
----
65
1

query I rowsort
SELECT DISTINCT - 81 * 69 + col2 FROM tab2 WHERE NOT - 43 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + - 95 AS col0, + col0 + - 51 AS col2 FROM tab1 AS cor0
----
-95
0
-95
34
-95
40

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 61 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3281
SELECT ALL COUNT( * ) AS col2, 85 AS col2 FROM tab1 AS cor0
----
3
85

skipif mysql # not compatible
query II rowsort label-3281
SELECT ALL COUNT ( * ) AS col2, 85 AS col2 FROM tab1 AS cor0
----
3
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3282
SELECT - + CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-3282
SELECT - + CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 5 + + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3284
SELECT ALL + CAST( NULL AS SIGNED ) * - 0 * + col2 FROM tab2 AS cor0 WHERE + col1 + col1 * + 89 - + col0 >= - col1 * - - col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3284
SELECT ALL + CAST ( NULL AS INTEGER ) * - 0 * + col2 FROM tab2 AS cor0 WHERE + col1 + col1 * + 89 - + col0 >= - col1 * - - col0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + 77 ) + + + 41 FROM tab2 AS cor0
----
118

query I rowsort
SELECT - - ( - - col0 ) + - col1 AS col2 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3287
SELECT + col2 * - col1 * - col2 + - - col1 + + col1 + - col1 + + col1 * col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3287
SELECT + col2 * - col1 * - col2 + - - col1 + + col1 + - col1 + + col1 * col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 51 + ( col0 ) + col1 FROM tab0
----
147
149
159

query II rowsort
SELECT DISTINCT col1 + 92 AS col1, 65 FROM tab2
----
143
65
159
65
169
65

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT + col2 + + col0 / col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 92 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + ( col1 ) ) NOT IN ( - 77, col0, 37, - col1 + - col2 / - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 36 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # aggregate syntax: 
query I rowsort label-3294
SELECT + ( - MAX( - col2 ) ) col1 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3294
SELECT + ( - MAX ( - col2 ) ) col1 FROM tab1
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3295
SELECT 76 DIV 86 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3295
SELECT 76 / 86 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 77 * ( col0 ) + - 16 FROM tab1 cor0
----
3911
6529
6991

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3297
SELECT col1 / - col0 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3297
SELECT col1 / - col0 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3298
SELECT - col0 col1 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - CAST( NULL AS SIGNED ) / + 61, - col2 + - - 36 + + - 54 * - col2 / + col1 * + CAST( 15 AS DECIMAL ) * + + 2 + col1 + - col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3298
SELECT - col0 col1 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - CAST ( NULL AS INTEGER ) / + 61, - col2 + - - 36 + + - 54 * - col2 / + col1 * + CAST ( 15 AS REAL ) * + + 2 + col1 + - col2 )
----

query I rowsort
SELECT - - ( + - col0 ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT + + ( + + 14 ) FROM tab0 AS cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT ALL 80 * + ( + MIN( + ( + 75 ) ) ) FROM tab1 AS cor0
----
6000

skipif mysql # not compatible
query I rowsort label-3301
SELECT ALL 80 * + ( + MIN ( + ( + 75 ) ) ) FROM tab1 AS cor0
----
6000

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 45 >= NULL
----

query I rowsort
SELECT ALL - 15 FROM tab0 AS cor0 WHERE NOT - col2 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 78 + - col0 col0 FROM tab0 AS cor0 WHERE NOT 92 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3305
SELECT - col1 DIV + + col1 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3305
SELECT - col1 / + + col1 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT + ( + 15 ) AS col1 FROM tab0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT - 63 * 81 * - MIN( ALL + 4 ) AS col2 FROM tab1
----
20412

skipif mysql # not compatible
query I rowsort label-3307
SELECT - 63 * 81 * - MIN ( ALL + 4 ) AS col2 FROM tab1
----
20412

query I rowsort
SELECT + 29 * + col1 FROM tab1
----
1363
145
406

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( col2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 70 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab2 AS cor0 WHERE NOT ( 92 + + col0 + - col1 ) <> col1 * + ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3312
SELECT ALL + COUNT( ALL 88 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3312
SELECT ALL + COUNT ( ALL 88 ) AS col0 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3313
SELECT + ( + COUNT( + - col0 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3313
SELECT + ( + COUNT ( + - col0 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT DISTINCT ( SUM( ALL col1 ) ) * + 3 * + 55 FROM tab1 AS cor0
----
10890

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT ( SUM ( ALL col1 ) ) * + 3 * + 55 FROM tab1 AS cor0
----
10890

query I rowsort
SELECT + col0 + col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + - 34 + - 42 * 63 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6647a69604f233f076af21fcae404f28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3317
SELECT ALL - CAST( col1 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 34 IS NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3317
SELECT ALL - CAST ( col1 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 34 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT ALL MIN( ALL col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3318
SELECT ALL MIN ( ALL col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL + col0 * + + 34 + - 41 FROM tab1 AS cor0
----
1693
2849
3053

query I rowsort
SELECT + 18 - + col2 + + 48 * + + col1 AS col1 FROM tab0 cor0 WHERE NULL = ( + col1 )
----

query I rowsort
SELECT ALL - + 72 FROM tab0 AS cor0 WHERE NULL < col2 * + - 59 * col0
----

query I rowsort
SELECT ALL + 38 + col2 * + col2 FROM tab2 AS cor0
----
1638
3402
567

query I rowsort
SELECT ALL col0 + + - col1 * col0 * - col1 FROM tab1 AS cor0
----
10047
201110
2210

onlyif mysql # DIV for integer division: 
query I rowsort label-3324
SELECT DISTINCT - col0 * - col0 * + col2 + col1 DIV - - 99 FROM tab1 AS cor0
----
249696
426275
563108

skipif mysql # not compatible
query I rowsort label-3324
SELECT DISTINCT - col0 * - col0 * + col2 + col1 / - - 99 FROM tab1 AS cor0
----
249696
426275
563108

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 = + - col0 * ( - - col2 )
----

query II rowsort
SELECT 13 AS col1, - 71 FROM tab2
----
13
-71
13
-71
13
-71

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE - + 7 + 36 + + - 14 + + col0 IS NOT NULL
----
-46
-64
-75

query II rowsort
SELECT DISTINCT - 69 AS col2, - col1 AS col0 FROM tab2
----
-69
-51
-69
-67
-69
-77

query I rowsort
SELECT DISTINCT - col0 + + ( - col2 ) FROM tab2
----
-104
-133
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3330
SELECT COUNT( * ) - - 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-3330
SELECT COUNT ( * ) - - CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 94 - + + col2 * - - 9 + + - 21 * - col2 FROM tab2
----
370
574
790

query I rowsort
SELECT - - col0 AS col0 FROM tab1 WHERE NULL <= 19
----

query I rowsort
SELECT col0 + - 1 * + 43 AS col1 FROM tab0
----
-28
44
54

query I rowsort
SELECT ALL 76 + + 51 * + - 56 FROM tab2 AS cor0
----
-2780
-2780
-2780

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT + SUM( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3335
SELECT + SUM ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT + col2 + + - 22 + - 54 FROM tab1
----
-17
-8
20

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN - col1 * + + col0 AND + 94
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 / col2 col0 FROM tab1 AS cor0 WHERE NOT - 63 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 4 * col0 + + col2 * - col1 col2 FROM tab2 AS cor0
----
13514
3059
7160

onlyif mysql # DIV for integer division: 
query I rowsort label-3340
SELECT + col2 * 79 DIV - col2 + - 99 FROM tab0 cor0
----
-178
-178
-178

skipif mysql # not compatible
query I rowsort label-3340
SELECT + col2 * 79 / - col2 + - 99 FROM tab0 cor0
----
-178
-178
-178

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - col1 ) - + - ( + - col0 ) * - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - col1 AS col2, + col2 * col2 AS col2 FROM tab2
----
-51
529
-67
3364
-77
1600

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3343
SELECT ALL * FROM tab1 WHERE NOT - col0 - + CAST( NULL AS SIGNED ) <= - col0
----

skipif mysql # not compatible
query III rowsort label-3343
SELECT ALL * FROM tab1 WHERE NOT - col0 - + CAST ( NULL AS INTEGER ) <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3344
SELECT DISTINCT COUNT( DISTINCT - 40 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT COUNT ( DISTINCT - 40 ) FROM tab1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3345
SELECT ALL col1 + - - col2 * - + 79 AS col1 FROM tab1 WHERE NOT + col2 IN ( CAST( + 55 AS DECIMAL ) )
----
-4656
-5325
-7570

skipif mysql # not compatible
query I rowsort label-3345
SELECT ALL col1 + - - col2 * - + 79 AS col1 FROM tab1 WHERE NOT + col2 IN ( CAST ( + 55 AS REAL ) )
----
-4656
-5325
-7570

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT ALL SUM( DISTINCT + col2 ) col0 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3346
SELECT ALL SUM ( DISTINCT + col2 ) col0 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-3347
SELECT ALL + + COUNT( * ), ( + 63 ) AS col1 FROM tab2 AS cor0
----
3
63

skipif mysql # not compatible
query II rowsort label-3347
SELECT ALL + + COUNT ( * ), ( + 63 ) AS col1 FROM tab2 AS cor0
----
3
63

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE 2 > col1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3349
SELECT ALL - + CAST( NULL AS DECIMAL ) * + ( COUNT( * ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL - + CAST ( NULL AS REAL ) * + ( COUNT ( * ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - - 74 + 78 - 29 + - col0 * + - 13 AS col0 FROM tab1 AS cor0
----
1228
1306
786

query I rowsort
SELECT + 16 + - col0 + + col0 FROM tab1 AS cor0
----
16
16
16

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT - 25 + + - col1 + - + col0 AS col0 FROM tab2 AS cor0
----
-122
-166
-167

query I rowsort
SELECT DISTINCT - - col2 + + col1 - 66 AS col1 FROM tab0 AS cor0
----
-35
34
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col1 FROM tab2 WHERE + - col2 IS NOT NULL
----
-23
-40
-58

query I rowsort
SELECT ALL ( 46 ) * col0 + - - 81 AS col0 FROM tab1
----
2427
3991
4267

query III rowsort
SELECT * FROM tab1 WHERE + col0 * col2 < - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3358
SELECT ALL CAST( NULL AS SIGNED ) * - col2 * col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3358
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 * col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT + col1, + col0 AS col0 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT - ( + 98 ) * + + COUNT( * ) * + 90 AS col0 FROM tab2
----
-26460

skipif mysql # not compatible
query I rowsort label-3360
SELECT - ( + 98 ) * + + COUNT ( * ) * + 90 AS col0 FROM tab2
----
-26460

query I rowsort
SELECT ALL - + col1 + + ( + col1 ) AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3362
SELECT ALL + CAST( NULL AS SIGNED ) * COUNT( DISTINCT - 90 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3362
SELECT ALL + CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT - 90 ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT + MIN( + - 65 ) * + + 4 AS col0 FROM tab1
----
-260

skipif mysql # not compatible
query I rowsort label-3363
SELECT + MIN ( + - 65 ) * + + 4 AS col0 FROM tab1
----
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT + ( COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3364
SELECT + ( COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query II rowsort
SELECT col1 AS col1, 54 FROM tab0
----
1
54
21
54
81
54

query II rowsort
SELECT 91, - col0 AS col0 FROM tab2
----
91
-46
91
-64
91
-75

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col0 NOT BETWEEN NULL AND - 97
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3368
SELECT ALL + + 33 DIV MAX( 36 ) * + + MIN( col1 ) + + - COUNT( * ) + - 89 col0 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3368
SELECT ALL + + 33 / MAX ( 36 ) * + + MIN ( col1 ) + + - COUNT ( * ) + - 89 col0 FROM tab1 AS cor0
----
-92

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3370
SELECT ALL + col1 DIV - 6 + + + col2 FROM tab1 AS cor0
----
59
61
94

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL + col1 / - 6 + + + col2 FROM tab1 AS cor0
----
59
61
94

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 + - + 31 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 37 * - 82 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - ( + - col0 ) * - 20 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-1280
-1500
-920

query II rowsort
SELECT DISTINCT 24, 13 AS col0 FROM tab0 AS cor0
----
24
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 AS col1, + col1 col1 FROM tab1 cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT 58 IS NULL
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col1 * - ( - col2 ) + - 43 NOT BETWEEN + ( - col2 ) - + col2 + + - col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3378
SELECT 40 DIV col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3378
SELECT 40 / col0 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 * + col1 * - - col1 FROM tab0 WHERE NOT ( NULL ) <> ( NULL )
----

query I rowsort
SELECT DISTINCT + ( - + col1 ) AS col2 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3381
SELECT ALL - COUNT( * ) * MIN( + col0 ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL - COUNT ( * ) * MIN ( + col0 ) FROM tab0
----
-45

query II rowsort
SELECT col1 * - col0 AS col0, - col1 AS col0 FROM tab0
----
-1215
-81
-1827
-21
-97
-1

query I rowsort
SELECT ( + + ( - col1 ) ) * - col1 FROM tab1
----
196
2209
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3384
SELECT ( CAST( NULL AS SIGNED ) ) * - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3384
SELECT ( CAST ( NULL AS INTEGER ) ) * - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE col1 BETWEEN - + col1 AND NULL
----

query I rowsort
SELECT DISTINCT + 76 AS col0 FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN col1 AND NULL
----
76

query I rowsort
SELECT DISTINCT + - 50 * col2 FROM tab2 AS cor0
----
-1150
-2000
-2900

onlyif mysql # aggregate syntax: 
query II rowsort label-3388
SELECT 85 * - 70 + + COUNT( * ), - 60 AS col1 FROM tab0
----
-5947
-60

skipif mysql # not compatible
query II rowsort label-3388
SELECT 85 * - 70 + + COUNT ( * ), - 60 AS col1 FROM tab0
----
-5947
-60

query I rowsort
SELECT col2 + - col0 * 73 FROM tab0
----
-1048
-6341
-6982

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( - col0 ) * - - 4 * + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3391
SELECT DISTINCT + SUM( + col2 ) col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3391
SELECT DISTINCT + SUM ( + col2 ) col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
121

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * - 20 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT DISTINCT 13 * COUNT( * ) AS col0 FROM tab0 cor0
----
39

skipif mysql # not compatible
query I rowsort label-3393
SELECT DISTINCT 13 * COUNT ( * ) AS col0 FROM tab0 cor0
----
39

query I rowsort
SELECT DISTINCT + col0 * 86 + - col1 FROM tab2 AS cor0
----
3905
5427
6383

query I rowsort
SELECT DISTINCT - col0 + + 35 + + 13 FROM tab2 cor0
----
-16
-27
2

query II rowsort
SELECT - col2, col1 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-10
21
-47
81
-99
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 64 > NULL
----

query I rowsort
SELECT DISTINCT col0 + - col2 + col0 * - col2 + + + col0 AS col0 FROM tab0 AS cor0
----
-706
-722
-9508

onlyif mysql # aggregate syntax: 
query I rowsort label-3399
SELECT ALL 74 - + COUNT( 34 ) AS col0 FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL 74 - + COUNT ( 34 ) AS col0 FROM tab2
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3400
SELECT ( + COUNT( * ) ) DIV + 93 + - ( + 75 ) - - COUNT( * ) AS col1 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-3400
SELECT ( + COUNT ( * ) ) / + 93 + - ( + 75 ) - - COUNT ( * ) AS col1 FROM tab2
----
-72

query I rowsort
SELECT ALL col1 + - - col2 + + 64 FROM tab2
----
138
181
189

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col0 IN ( - ( col1 ), 12, + + col0, + col2 )
----

query I rowsort
SELECT + col1 + - + 11 + - + col2 FROM tab0
----
-109
0
23

query I rowsort
SELECT ALL col1 - + ( 11 ) AS col1 FROM tab0
----
-10
10
70

query I rowsort
SELECT + col0 + 74 - col0 * col0 * + 83 FROM tab0
----
-18586
-628066
-780776

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT + - SUM( + col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3406
SELECT + - SUM ( + col1 ) AS col1 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ( + 80 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab1 WHERE - 65 <= NULL
----

query II rowsort
SELECT - - col2, 80 * col0 + col2 + + 56 AS col0 FROM tab1 AS cor0
----
59
6915
68
7404
96
4232

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT DISTINCT + + COUNT( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3410
SELECT DISTINCT + + COUNT ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3411
SELECT 44 AS col0, - COUNT( * ) * - COUNT( * ) * - + SUM( 17 ) FROM tab1 AS cor0
----
44
-459

skipif mysql # not compatible
query II rowsort label-3411
SELECT 44 AS col0, - COUNT ( * ) * - COUNT ( * ) * - + SUM ( 17 ) FROM tab1 AS cor0
----
44
-459

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, + 40 col2 FROM tab1 AS cor0
----
-51
40
-85
40
-91
40

query II rowsort
SELECT col0, 49 * - col0 * - col0 AS col2 FROM tab0 AS cor0
----
15
11025
87
370881
97
461041

onlyif mysql # DIV for integer division: 
query II rowsort label-3414
SELECT + 61, 91 DIV col1 col1 FROM tab1
----
61
1
61
18
61
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3414
SELECT + 61, 91 / col1 col1 FROM tab1
----
61
1
61
18
61
6

query I rowsort
SELECT ALL - col2 * - 75 FROM tab2
----
1725
3000
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3416
SELECT - 93 * - COUNT( * ) AS col2 FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-3416
SELECT - 93 * - COUNT ( * ) AS col2 FROM tab0
----
279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3417
SELECT ALL MAX( ALL + col1 ) DIV COUNT( * ) AS col2 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL MAX ( ALL + col1 ) / COUNT ( * ) AS col2 FROM tab0
----
27

query I rowsort
SELECT DISTINCT + ( - - 81 ) FROM tab2
----
81

query I rowsort
SELECT - col1 + - col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 38 AS col2, - 50 + + - 66 - + col0 + - ( + + 3 ) FROM tab0 AS cor0
----
-38
-134
-38
-206
-38
-216

onlyif mysql # DIV for integer division: 
query I rowsort label-3421
SELECT col2 DIV + col0 AS col2 FROM tab0 cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3421
SELECT col2 / + col0 AS col2 FROM tab0 cor0
----
0
1
3

query II rowsort
SELECT + - col2 AS col2, + 30 * + + 33 AS col1 FROM tab1 AS cor0
----
-59
990
-68
990
-96
990

query II rowsort
SELECT ALL - - col1 AS col0, 55 AS col1 FROM tab0 AS cor0
----
1
55
21
55
81
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, col2 + - col2 FROM tab0 AS cor0
----
15
0
87
0
97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3425
SELECT DISTINCT ( + + 40 ) + - + SUM( 82 ) FROM tab2 AS cor0
----
-206

skipif mysql # not compatible
query I rowsort label-3425
SELECT DISTINCT ( + + 40 ) + - + SUM ( 82 ) FROM tab2 AS cor0
----
-206

query II rowsort
SELECT ALL col2 AS col0, - 75 + + 15 AS col2 FROM tab0 AS cor0
----
10
-60
47
-60
99
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT ( COUNT( * ) ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3427
SELECT ( COUNT ( * ) ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9

query I rowsort
SELECT + ( - ( + + 13 ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT ALL + SUM( 45 ) FROM tab0, tab0 cor0
----
405

skipif mysql # not compatible
query I rowsort label-3429
SELECT ALL + SUM ( 45 ) FROM tab0, tab0 cor0
----
405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 * + + 55 col1 FROM tab2 AS cor0
----
1288
2240
3248

query I rowsort
SELECT + + col0 + - ( - col0 ) FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT col1 * + - 61 + col2 AS col0 FROM tab2 AS cor0
----
-3088
-4029
-4657

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT ALL - MAX( ALL - col1 ) col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3433
SELECT ALL - MAX ( ALL - col1 ) col1 FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3434
SELECT AVG ( DISTINCT 90 ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3434
SELECT AVG ( DISTINCT 90 ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 + - - col1 AS col1 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3436
SELECT - col1 + - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3436
SELECT - col1 + - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col0 * - - col1, - col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - 97 AND NULL
----

query II rowsort
SELECT col1, - col2 AS col2 FROM tab2
----
51
-23
67
-58
77
-40

query I rowsort
SELECT DISTINCT col0 * + ( col1 ) - col1 FROM tab0
----
1134
1806
96

query I rowsort
SELECT ALL - col0 * 0 - - + 7 * - 85 AS col0 FROM tab0
----
-595
-595
-595

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3441
SELECT ALL 71 + - ( + col1 ) DIV - CAST( + col0 AS SIGNED ) - + 79 FROM tab1
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-3441
SELECT ALL 71 + - ( + col1 ) / - CAST ( + col0 AS INTEGER ) - + 79 FROM tab1
----
-8
-8
-8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3442
SELECT DISTINCT MIN( ALL - - col1 ) * 81 DIV - COUNT( * ) FROM tab2
----
-1377

skipif mysql # not compatible
query I rowsort label-3442
SELECT DISTINCT MIN ( ALL - - col1 ) * 81 / - COUNT ( * ) FROM tab2
----
-1377

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT + SUM( - + 44 ) AS col0 FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-3443
SELECT + SUM ( - + 44 ) AS col0 FROM tab0
----
-132

query I rowsort
SELECT - 50 * - 27 FROM tab0 AS cor0
----
1350
1350
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT DISTINCT - MAX( - col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-3445
SELECT DISTINCT - MAX ( - col2 ) FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT ALL COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL OR NULL IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-3447
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NULL OR NULL IS NULL
----
9

query I rowsort
SELECT DISTINCT + + 98 - - 96 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
194

query I rowsort
SELECT + + ( 85 ) AS col1 FROM tab2 AS cor0
----
85
85
85

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 = ( - + col0 + - 23 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 <> + col2
----

query I rowsort
SELECT + col2 + col1 AS col0 FROM tab1 WHERE NOT ( - col2 ) * - + 17 <> 50
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3453
SELECT DISTINCT SUM( ALL + 92 ) DIV + COUNT( * ) AS col1 FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-3453
SELECT DISTINCT SUM ( ALL + 92 ) / + COUNT ( * ) AS col1 FROM tab0
----
92

query II rowsort
SELECT DISTINCT - 21, - 85 AS col2 FROM tab1
----
-21
-85

query II rowsort
SELECT - 77 * + - 42 * col0 AS col1, 70 FROM tab0
----
281358
70
313698
70
48510
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT ALL COUNT( 45 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL COUNT ( 45 ) FROM tab0
----
3

query I rowsort
SELECT + col0 * 51 FROM tab0
----
4437
4947
765

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE col1 <> + + col1 * + 61 * 32 / + - 97
----
-10
-47
-99

query II rowsort
SELECT ALL + 59 + + 98 AS col0, col0 * col1 FROM tab0
----
157
1215
157
1827
157
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3460
SELECT DISTINCT - COUNT( * ) - - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3460
SELECT DISTINCT - COUNT ( * ) - - COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3461
SELECT - COUNT( * ) - + ( + + 97 ) AS col1 FROM tab1 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-3461
SELECT - COUNT ( * ) - + ( + + 97 ) AS col1 FROM tab1 AS cor0
----
-100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3462
SELECT ALL COUNT( * ) DIV - 33 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3462
SELECT ALL COUNT ( * ) / - 33 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3463
SELECT - MIN( col0 ) - - + COUNT( * ) + + COUNT( * ) - + 6 DIV - 55 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3463
SELECT - MIN ( col0 ) - - + COUNT ( * ) + + COUNT ( * ) - + 6 / - 55 FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3464
SELECT DISTINCT col0 AS col0, col1 * - col0 + + 71 - + col1 + - col1 * + CAST( col1 AS SIGNED ) + - col2 + - col1 FROM tab0 AS cor0
----
15
-7914
87
-2249
97
-128

skipif mysql # not compatible
query II rowsort label-3464
SELECT DISTINCT col0 AS col0, col1 * - col0 + + 71 - + col1 + - col1 * + CAST ( col1 AS INTEGER ) + - col2 + - col1 FROM tab0 AS cor0
----
15
-7914
87
-2249
97
-128

query I rowsort
SELECT + col1 - + + 60 FROM tab1 AS cor0
----
-13
-46
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT - SUM( ALL - - ( + + 5 ) ) - + COUNT( * ) AS col1 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-3466
SELECT - SUM ( ALL - - ( + + 5 ) ) - + COUNT ( * ) AS col1 FROM tab2
----
-18

query I rowsort
SELECT DISTINCT - 49 + + + col0 FROM tab2
----
-3
15
26

query I rowsort
SELECT + 14 - - 16 AS col2 FROM tab0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3469
SELECT DISTINCT + + ( COUNT( * ) ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3469
SELECT DISTINCT + + ( COUNT ( * ) ) FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3470
SELECT ( + 37 ) DIV COUNT( * ) AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-3470
SELECT ( + 37 ) / COUNT ( * ) AS col1 FROM tab2
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( col1 ) col2, col1 AS col0 FROM tab1
----
14
14
47
47
5
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 <= + 93
----
97
1
99

query I rowsort
SELECT DISTINCT + col1 * - col2 * 80 AS col0 FROM tab2 AS cor0
----
-246400
-310880
-93840

query I rowsort
SELECT DISTINCT + + 20 * 59 FROM tab2 AS cor0
----
1180

query II rowsort
SELECT ALL ( + ( - col2 ) ), + col0 AS col1 FROM tab1
----
-59
85
-68
91
-96
51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT col2 IS NOT NULL ) OR NULL BETWEEN + - col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 30 <> ( - + col2 ) - - - 71 + - + col1 + - col1 / - col0
----

query I rowsort
SELECT - - 39 * col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - - ( - col2 ) * + 84 AND col2 * + col0 + col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( - col0 ) > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 < 12
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab0 AS cor0 WHERE + ( + col0 ) * - 49 IS NULL
----

query I rowsort
SELECT ALL - - col2 + - - 13 FROM tab2 AS cor0
----
36
53
71

query I rowsort
SELECT DISTINCT col0 + + 74 AS col2 FROM tab1
----
125
159
165

query I rowsort
SELECT ALL 86 + - col0 FROM tab0
----
-1
-11
71

query I rowsort
SELECT + 49 * + - 9 + + + col2 AS col0 FROM tab2
----
-383
-401
-418

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3487
SELECT - CAST( NULL AS DECIMAL ) * + + 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-3487
SELECT - CAST ( NULL AS REAL ) * + + col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - 5 IS NOT NULL )
----

query II rowsort
SELECT ALL + col2 + + + 14 AS col2, col0 * + + 99 AS col0 FROM tab0 AS cor0
----
113
9603
24
8613
61
1485

query I rowsort
SELECT DISTINCT + col2 + - 47 + col0 * - 69 AS col1 FROM tab2
----
-3198
-4423
-5164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 * + + 54 - - col2 col2 FROM tab1
----
-768
-796
-805

onlyif mysql # aggregate syntax: 
query I rowsort label-3492
SELECT DISTINCT + COUNT( * ) + + 83 * + + COUNT( DISTINCT 92 ) FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-3492
SELECT DISTINCT + COUNT ( * ) + + 83 * + + COUNT ( DISTINCT 92 ) FROM tab1
----
86

query I rowsort
SELECT DISTINCT col2 * - - col2 FROM tab2
----
1600
3364
529

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <> + 98 + + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3495
SELECT ALL - MAX( - + col1 ) - 61 DIV 29 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-3495
SELECT ALL - MAX ( - + col1 ) - 61 / 29 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
11

query I rowsort
SELECT - - col0 + + + col0 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT DISTINCT + ( + - 73 ) * 17 AS col2 FROM tab0 AS cor0
----
-1241

query I rowsort
SELECT col0 / + 16 FROM tab1 AS cor0 WHERE 31 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3499
SELECT * FROM tab1 AS cor0 WHERE - CAST( NULL AS DECIMAL ) * - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3499
SELECT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS REAL ) * - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT ALL - - MIN( - + 6 ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL - - MIN ( - + 6 ) FROM tab0 cor0
----
-6

query I rowsort
SELECT - - col0 * col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 38 AS col2, col2 col1 FROM tab0
----
-38
10
-38
47
-38
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3503
SELECT ALL - MAX( DISTINCT - col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3503
SELECT ALL - MAX ( DISTINCT - col1 ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3504
SELECT - MAX( col2 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3504
SELECT - MAX ( col2 ) AS col1 FROM tab1
----
-96

query II rowsort
SELECT 48, - col2 AS col0 FROM tab0
----
48
-10
48
-47
48
-99

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT DISTINCT - ( - MIN( DISTINCT + + col1 ) ) col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3507
SELECT DISTINCT - ( - MIN ( DISTINCT + + col1 ) ) col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3508
SELECT ALL ( + MIN( + - col1 ) ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3508
SELECT ALL ( + MIN ( + - col1 ) ) FROM tab1 AS cor0
----
-47

query II rowsort
SELECT ALL + + col2 AS col2, - 27 FROM tab2 AS cor0
----
23
-27
40
-27
58
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT ALL - MAX( 59 ) FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL - MAX ( 59 ) FROM tab0
----
-59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3511
SELECT + CAST( + col0 AS SIGNED ) AS col0, col2 + + 73 + col0 - col1 * 38 * + - col0 FROM tab1
----
51
27352
85
16367
91
162758

skipif mysql # not compatible
query II rowsort label-3511
SELECT + CAST ( + col0 AS INTEGER ) AS col0, col2 + + 73 + col0 - col1 * 38 * + - col0 FROM tab1
----
51
27352
85
16367
91
162758

query I rowsort
SELECT 65 + col0 + + col0 - - col1 * - - ( + - col2 ) AS col1 FROM tab1
----
-1177
-2949
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-3513
SELECT + - 12 + + + COUNT( - col1 ), COUNT( * ) AS col1 FROM tab2 AS cor0
----
-9
3

skipif mysql # not compatible
query II rowsort label-3513
SELECT + - 12 + + + COUNT ( - col1 ), COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-9
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT + SUM( DISTINCT + 22 ) col1 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3514
SELECT + SUM ( DISTINCT + 22 ) col1 FROM tab0 AS cor0
----
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3515
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) * + AVG ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) * + AVG ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3516
SELECT - + MAX( DISTINCT + col1 ) col2 FROM tab0 cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3516
SELECT - + MAX ( DISTINCT + col1 ) col2 FROM tab0 cor0
----
-81

query I rowsort
SELECT DISTINCT 99 + 15 + - col2 * col2 FROM tab0 AS cor0
----
-2095
-9687
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 93 col2 FROM tab2 WHERE NULL NOT IN ( + 74 * + col0 + - 76, col2, + 70 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3519
SELECT DISTINCT + 60 + + + col0 + + col0 * col2 col2, CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
5007
NULL
5160
NULL
6339
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3519
SELECT DISTINCT + 60 + + + col0 + + col0 * col2 col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
5007
NULL
5160
NULL
6339
NULL

query I rowsort
SELECT DISTINCT + 55 * + col1 FROM tab0
----
1155
4455
55

query I rowsort
SELECT DISTINCT + - col1 * col1 * + col1 * col0 FROM tab2 AS cor0
----
-22557225
-29218112
-6101946

query I rowsort
SELECT ALL - 33 + - - col2 + col0 AS col2 FROM tab1
----
111
114
126

query I rowsort
SELECT + 56 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT ALL ( + 90 ) AS col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 - 22 + col0 IS NOT NULL
----

query II rowsort
SELECT - 91 * - col2, + 28 AS col1 FROM tab1 AS cor0
----
5369
28
6188
28
8736
28

query I rowsort
SELECT DISTINCT - - 95 AS col2 FROM tab0 AS cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT + COUNT( * ) * - 89 FROM tab2
----
-267

skipif mysql # not compatible
query I rowsort label-3528
SELECT + COUNT ( * ) * - 89 FROM tab2
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT ALL - + COUNT( * ) col0 FROM tab1 WHERE NOT NULL = + col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3529
SELECT ALL - + COUNT ( * ) col0 FROM tab1 WHERE NOT NULL = + col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3530
SELECT ALL * FROM tab0 WHERE ( + col2 * col2 + + col2 ) < CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3530
SELECT ALL * FROM tab0 WHERE ( + col2 * col2 + + col2 ) < CAST ( col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3531
SELECT - 1 DIV - + 64 DIV - COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col2 + + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3531
SELECT - 1 / - + 64 / - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col2 + + col2 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + + 94 ) * 96 * - - 92 col1 FROM tab0 cor0
----
-830208
-830208
-830208

query II rowsort
SELECT 39 AS col2, - col0 FROM tab2
----
39
-46
39
-64
39
-75

query II rowsort
SELECT ALL - 52 AS col2, 56 AS col2 FROM tab1 cor0
----
-52
56
-52
56
-52
56

query I rowsort
SELECT col1 + + 50 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
55
64
97

query I rowsort
SELECT ALL - - col0 + - - 45 * - ( 19 ) - - + col2 FROM tab0 AS cor0
----
-659
-758
-793

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3537
SELECT DISTINCT + CAST( NULL AS SIGNED ), + col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-3537
SELECT DISTINCT + CAST ( NULL AS INTEGER ), + col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT DISTINCT - col2 + 76 + - col1 FROM tab2 AS cor0
----
-41
-49
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT ALL + - MIN( + + col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL + - MIN ( + + col2 ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL - 19 * + col2 + - + ( + col1 ) + + - col0 * - + col1 * + 4 AS col2 FROM tab1 AS cor0
----
1018
15769
574

query I rowsort
SELECT 92 FROM tab2 cor0 WHERE - 29 >= NULL
----

query I rowsort
SELECT DISTINCT ( + 93 ) + + 58 AS col0 FROM tab1
----
151

query I rowsort
SELECT 1 + + - 64 FROM tab1
----
-63
-63
-63

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( NOT ( NOT NULL IS NULL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - - col2 col0 FROM tab0
----
-77
2
32

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 BETWEEN ( + col0 ) - col2 AND NULL
----

query II rowsort
SELECT ALL - ( + 32 ) * col0, col2 FROM tab1
----
-1632
96
-2720
59
-2912
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE col2 * - col2 / - 53 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3548
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE col2 * - col2 / - 53 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT COUNT( * ) * - 11 AS col0 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3549
SELECT COUNT ( * ) * - 11 AS col0 FROM tab2 AS cor0
----
-33

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < + col1 * + col0
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT NULL > - col0
----

query I rowsort
SELECT + 8 - - 61 * - + col2 + - 48 FROM tab1 AS cor0
----
-3639
-4188
-5896

query I rowsort
SELECT ALL col1 - - 70 AS col0 FROM tab1
----
117
75
84

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT ALL COUNT( + - 1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3554
SELECT ALL COUNT ( + - 1 ) FROM tab0
----
3

query I rowsort
SELECT ( + 89 ) FROM tab0
----
89
89
89

query II rowsort
SELECT + col2 AS col0, col2 * + col1 AS col0 FROM tab0 AS cor0
----
10
210
47
3807
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3557
SELECT DISTINCT - + col2 DIV col1 * + + 7 AS col1 FROM tab0 AS cor0
----
-693
0

skipif mysql # not compatible
query I rowsort label-3557
SELECT DISTINCT - + col2 / col1 * + + 7 AS col1 FROM tab0 AS cor0
----
-693
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 82 col0 FROM tab2 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT ALL - 1 * MIN( ALL + col2 ) AS col0 FROM tab2 cor0 WHERE NOT + 91 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL - 1 * MIN ( ALL + col2 ) AS col0 FROM tab2 cor0 WHERE NOT + 91 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 70 * + col2 FROM tab1
----
4130
4760
6720

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3561
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 + - col2 NOT BETWEEN + CAST( NULL AS SIGNED ) AND col1
----

skipif mysql # not compatible
query III rowsort label-3561
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 + - col2 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3562
SELECT DISTINCT + col2 DIV + col1, col0 FROM tab0
----
0
15
0
87
99
97

skipif mysql # not compatible
query II rowsort label-3562
SELECT DISTINCT + col2 / + col1, col0 FROM tab0
----
0
15
0
87
99
97

query I rowsort
SELECT - 98 * - col1 AS col1 FROM tab2
----
4998
6566
7546

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT SUM( ALL + - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3564
SELECT SUM ( ALL + - col1 ) FROM tab2
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3565
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - 40 + - 17 + - ( - 45 ) + col2 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3565
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - 40 + - 17 + - ( - 45 ) + col2 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - 58 + + col2 AS col1 FROM tab2
----
-18
-35
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col0 + + col1 col1 FROM tab2
----
-2295
-4851
-4958

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT DISTINCT - MAX( ALL col1 ) AS col2 FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3568
SELECT DISTINCT - MAX ( ALL col1 ) AS col2 FROM tab2 cor0
----
-77

query I rowsort
SELECT ALL + 38 + - - 33 AS col2 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT + + 75 AS col0 FROM tab2 AS cor0
----
75

query I rowsort
SELECT + 29 * - + 57 - - col2 AS col1 FROM tab1
----
-1557
-1585
-1594

query I rowsort
SELECT ALL 4 - col2 * + col2 + - col0 - + - col1 * + col1 * + - col0 * + 70 FROM tab1
----
-14076041
-152312
-708983

query I rowsort
SELECT - col2 - + col1 * + + 89 AS col0 FROM tab2
----
-4562
-6021
-6893

query I rowsort
SELECT col2 - 62 FROM tab2
----
-22
-39
-4

query I rowsort
SELECT ALL col1 + + - col0 + + col1 FROM tab1
----
-23
-75
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3576
SELECT DISTINCT + MIN( DISTINCT + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-3576
SELECT DISTINCT + MIN ( DISTINCT + col1 ) FROM tab2
----
51

query I rowsort
SELECT DISTINCT col2 - + - 53 AS col1 FROM tab0
----
100
152
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT COUNT( * ) + - + COUNT( * ) col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3578
SELECT COUNT ( * ) + - + COUNT ( * ) col1 FROM tab2
----
0

query I rowsort
SELECT - - 45 * ( + + col1 ) AS col1 FROM tab1 AS cor0
----
2115
225
630

onlyif mysql # DIV for integer division: 
query I rowsort label-3580
SELECT col1 DIV col2 * - - 76 FROM tab0 cor0
----
0
152
76

skipif mysql # not compatible
query I rowsort label-3580
SELECT col1 / col2 * - - 76 FROM tab0 cor0
----
0
152
76

query I rowsort
SELECT col1 + + col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + 27 AND + + col2
----

query I rowsort
SELECT 15 * - col2 AS col1 FROM tab2
----
-345
-600
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT - + 40 + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-31

skipif mysql # not compatible
query I rowsort label-3583
SELECT - + 40 + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-31

query I rowsort
SELECT ALL + + col2 * + col2 AS col2 FROM tab1 WHERE NULL IS NULL
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3585
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) + + 80 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) + + 80 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT 1 * - col2 * - col2 FROM tab0 AS cor0
----
100
2209
9801

query I rowsort
SELECT ALL + 40 FROM tab0 AS cor0 WHERE NULL < - 11
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + col2 + + 70 IS NOT NULL
----

query I rowsort
SELECT ALL col2 + + 69 FROM tab0 cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3590
SELECT - COUNT( ALL - CAST( - 0 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3590
SELECT - COUNT ( ALL - CAST ( - 0 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT col0 AS col0, - col2 FROM tab0
----
15
-47
87
-10
97
-99

query II rowsort
SELECT + 89 AS col0, - col1 AS col1 FROM tab0
----
89
-1
89
-21
89
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE - 44 + + col2 - + 19 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3594
SELECT ALL - col2, CAST( NULL AS SIGNED ) * - + 34 AS col0 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-3594
SELECT ALL - col2, CAST ( NULL AS INTEGER ) * - + 34 AS col0 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3595
SELECT - ( - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3595
SELECT - ( - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3596
SELECT ALL + ( + + SUM( DISTINCT 46 ) ) * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3596
SELECT ALL + ( + + SUM ( DISTINCT 46 ) ) * + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3597
SELECT 45 + - SUM( DISTINCT col1 ) DIV 4 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-3597
SELECT 45 + - SUM ( DISTINCT col1 ) / 4 FROM tab0
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3598
SELECT ALL ( - 93 ) FROM tab1 WHERE NOT ( CAST( col0 AS SIGNED ) + - CAST( 83 + + col1 * col0 AS SIGNED ) / col2 ) BETWEEN NULL AND ( + col1 )
----
-93
-93

skipif mysql # not compatible
query I rowsort label-3598
SELECT ALL ( - 93 ) FROM tab1 WHERE NOT ( CAST ( col0 AS INTEGER ) + - CAST ( 83 + + col1 * col0 AS INTEGER ) / col2 ) BETWEEN NULL AND ( + col1 )
----
-93
-93

query I rowsort
SELECT ALL col2 * 35 AS col2 FROM tab1
----
2065
2380
3360

onlyif mysql # DIV for integer division: 
query I rowsort label-3600
SELECT DISTINCT - col0 * ( + col0 DIV 15 ) AS col2 FROM tab1
----
-153
-425
-546

skipif mysql # not compatible
query I rowsort label-3600
SELECT DISTINCT - col0 * ( + col0 / 15 ) AS col2 FROM tab1
----
-153
-425
-546

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 NOT IN ( + col0 + ( col0 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col2 ) IN ( col0 * 53 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT DISTINCT MAX( + col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3603
SELECT DISTINCT MAX ( + col1 ) AS col2 FROM tab2
----
77

query I rowsort
SELECT col1 * - 77 + + 7 AS col0 FROM tab0
----
-1610
-6230
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT DISTINCT - SUM( - col0 ) AS col0 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-3605
SELECT DISTINCT - SUM ( - col0 ) AS col0 FROM tab1
----
227

query I rowsort
SELECT + 75 + + 60 AS col1 FROM tab1
----
135
135
135

query I rowsort
SELECT col2 * + col2 + col2 * col2 AS col2 FROM tab2
----
1058
3200
6728

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( col2 ) * 12 - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 86 + - 81 AS col0 FROM tab1
----
-167

query I rowsort
SELECT DISTINCT 21 - 81 FROM tab1
----
-60

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 60 NOT BETWEEN col2 + 30 AND - col0 * + col2 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 75 FROM tab0 WHERE NULL NOT BETWEEN ( - col2 + - col0 ) AND 34
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( + col2 )
----

query I rowsort
SELECT ( ( + col2 ) ) * - 29 FROM tab0
----
-1363
-2871
-290

query I rowsort
SELECT 92 * col0 FROM tab2
----
4232
5888
6900

query I rowsort
SELECT DISTINCT 29 * + 95 FROM tab1
----
2755

query I rowsort
SELECT DISTINCT ( 43 ) + - ( - col1 ) * col2 AS col1 FROM tab0
----
142
253
3850

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT MIN( 53 ) col0 FROM tab2
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3618
SELECT MIN ( 53 ) col0 FROM tab2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3619
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) + - col1 > col2 / col0 + - col1
----

skipif mysql # not compatible
query III rowsort label-3619
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) + - col1 > col2 / col0 + - col1
----

query I rowsort
SELECT DISTINCT - col1 * 1 FROM tab2
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 - 62 col0 FROM tab2
----
-16
13
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3622
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3622
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3623
SELECT ALL col1 DIV 15 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL col1 / 15 FROM tab0
----
0
1
5

query III rowsort
SELECT * FROM tab0 WHERE ( col1 / 91 ) NOT IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3625
SELECT ALL 3 DIV + 14 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL 3 / + 14 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 - - col1 * 31 AS col1 FROM tab2 AS cor0
----
1632
2144
2464

query I rowsort
SELECT ALL 53 - col1 FROM tab2 AS cor0
----
-14
-24
2

query I rowsort
SELECT - col1 * 64 AS col0 FROM tab0 AS cor0
----
-1344
-5184
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3629
SELECT ALL + CAST( CAST( + col2 AS SIGNED ) AS SIGNED ) AS col2 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3629
SELECT ALL + CAST ( CAST ( + col2 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT DISTINCT + + MAX( col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3630
SELECT DISTINCT + + MAX ( col1 ) AS col1 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT + MIN( 10 ) FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3631
SELECT + MIN ( 10 ) FROM tab1 AS cor0
----
10

query I rowsort
SELECT - 64 + col1 * - 41 FROM tab1 AS cor0 WHERE NOT NULL < col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 94 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT + ( COUNT( ALL col0 ) ) * 18 AS col0 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-3634
SELECT + ( COUNT ( ALL col0 ) ) * 18 AS col0 FROM tab0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3635
SELECT CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT 99 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3635
SELECT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT 99 IS NOT NULL
----

query I rowsort
SELECT ALL 40 FROM tab0 WHERE NOT - col2 * col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 BETWEEN col1 * col2 AND ( - ( ( 43 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 78 * + - 25 FROM tab1
----
-1950

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT 27 + SUM( DISTINCT + col2 ) col0 FROM tab1 AS cor0
----
250

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3641
SELECT 27 + SUM ( DISTINCT + col2 ) col0 FROM tab1 AS cor0
----
250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab2 WHERE + ( - col0 ) + 47 > - 88
----
46
64
75

query I rowsort
SELECT - col2 * - col2 + + col2 FROM tab0
----
110
2256
9900

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT ALL - COUNT( * ) + + 13 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
4

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL - COUNT ( * ) + + 13 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
4

query I rowsort
SELECT - 77 + + + col2 FROM tab1
----
-18
-9
19

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT DISTINCT - - MIN( DISTINCT 17 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
17

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT - - MIN ( DISTINCT 17 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
17

query I rowsort
SELECT ALL - col0 * - 88 FROM tab2 AS cor0
----
4048
5632
6600

query I rowsort
SELECT ALL col0 * col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT ALL + COUNT( DISTINCT col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3649
SELECT ALL + COUNT ( DISTINCT col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( col2 ) AND - ( + 52 )
----

query I rowsort
SELECT ALL + ( 48 ) FROM tab0 AS cor0 WHERE NOT - 98 IN ( col1 )
----
48
48
48

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + col2 )
----

query I rowsort
SELECT - col1 * - + col2 - - + col1 AS col2 FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT + col1 - - 35 AS col1 FROM tab0 AS cor0
----
116
36
56

query I rowsort
SELECT + 0 - 96 AS col1 FROM tab1 AS cor0
----
-96
-96
-96

query II rowsort
SELECT ALL col1 - - 98 AS col1, - col1 + col1 + + ( + col1 - 16 * + col0 ) FROM tab0
----
119
-1371
179
-159
99
-1551

query I rowsort
SELECT + col1 * + 66 + - - col2 * col0 AS col1 FROM tab0
----
2256
6051
9669

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT 93 + - COUNT( * ) AS col1 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-3658
SELECT 93 + - COUNT ( * ) AS col1 FROM tab0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ALL MAX( - - col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL MAX ( - - col1 ) FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3660
SELECT 7 * + - COUNT( * ) col1 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3660
SELECT 7 * + - COUNT ( * ) col1 FROM tab0 AS cor0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-3661
SELECT + + 76 DIV col0 * 81 AS col1 FROM tab0 AS cor0
----
0
0
405

skipif mysql # not compatible
query I rowsort label-3661
SELECT + + 76 / col0 * 81 AS col1 FROM tab0 AS cor0
----
0
0
405

query I rowsort
SELECT 24 FROM tab2 WHERE NOT col1 * + 68 < NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 53 NOT BETWEEN ( NULL ) AND col2 * ( + col2 ) + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3664
SELECT DISTINCT + ( CAST( col2 AS SIGNED ) ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3664
SELECT DISTINCT + ( CAST ( col2 AS INTEGER ) ) FROM tab1 AS cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, col2 col0 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3666
SELECT - MIN( 50 ) AS col1 FROM tab2 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-3666
SELECT - MIN ( 50 ) AS col1 FROM tab2 AS cor0
----
-50

query I rowsort
SELECT + col1 + col0 FROM tab2 cor0 WHERE NOT - 90 NOT BETWEEN ( - 67 + col1 - + col0 * col1 ) AND + 97
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT + + SUM( ALL + col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-3668
SELECT + + SUM ( ALL + col0 ) FROM tab0 cor0
----
199

query I rowsort
SELECT DISTINCT + 27 * col1 AS col1 FROM tab1 AS cor0
----
1269
135
378

query II rowsort
SELECT - + col0 AS col1, col0 - ( + 32 ) + col1 + col1 * col1 * - col2 FROM tab2 AS cor0
----
-46
-59758
-64
-237051
-75
-260252

query I rowsort
SELECT ALL ( col1 ) + + 37 FROM tab1 AS cor0
----
42
51
84

query I rowsort
SELECT col2 + - - col1 AS col2 FROM tab0
----
100
128
31

query I rowsort
SELECT 29 * + 46 + - 43 + - - 52 * 20 - - 9 + - 72 * col1 AS col1 FROM tab2
----
-1332
-2484
-3204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3674
SELECT DISTINCT - col2 * - CAST( + 32 + col1 AS SIGNED ) FROM tab0 WHERE NOT + 44 * + + col0 + - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3674
SELECT DISTINCT - col2 * - CAST ( + 32 + col1 AS INTEGER ) FROM tab0 WHERE NOT + 44 * + + col0 + - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3675
SELECT DISTINCT - ( col0 ) / - 77 + ( CAST( NULL AS SIGNED ) ) + - 0 * 36 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3675
SELECT DISTINCT - ( col0 ) / - 77 + ( CAST ( NULL AS INTEGER ) ) + - 0 * 36 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT ALL MIN( DISTINCT - + ( + + col0 ) ) col2 FROM tab2
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3676
SELECT ALL MIN ( DISTINCT - + ( + + col0 ) ) col2 FROM tab2
----
-75

query II rowsort
SELECT DISTINCT + col0 AS col0, 18 + + col2 FROM tab1
----
51
114
85
77
91
86

query I rowsort
SELECT col1 + + + 12 FROM tab0
----
13
33
93

query I rowsort
SELECT DISTINCT + col1 * - + 80 AS col0 FROM tab0
----
-1680
-6480
-80

query I rowsort
SELECT ALL col0 * ( + + 95 ) FROM tab2
----
4370
6080
7125

query I rowsort
SELECT ALL + col2 * - + col2 AS col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query II rowsort
SELECT + 80 AS col1, + col2 AS col2 FROM tab0 AS cor0
----
80
10
80
47
80
99

query I rowsort
SELECT - 65 AS col1 FROM tab1 cor0
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT ALL 74 - + COUNT( * ) AS col0 FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-3684
SELECT ALL 74 - + COUNT ( * ) AS col0 FROM tab2
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT 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-3685
SELECT COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3686
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST( - - col0 AS DECIMAL ) + + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3686
SELECT ALL * FROM tab1 AS cor0 WHERE - CAST ( - - col0 AS REAL ) + + col1 IS NULL
----

query I rowsort
SELECT ALL - col1 + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 31 - + col2 FROM tab0 cor0
----
-130
-41
-78

query I rowsort
SELECT - 98 + + + 24 * - 53 FROM tab0 cor0
----
-1370
-1370
-1370

query I rowsort
SELECT 91 * - - col2 + col2 AS col0 FROM tab1 AS cor0
----
5428
6256
8832

query I rowsort
SELECT col0 + + + ( - - col1 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - - col1 + + 94 + col1 FROM tab2 AS cor0
----
196
228
248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3693
SELECT ALL MIN( ALL - col2 ) - + COUNT( * ) + + ( + 67 ) * + + SUM( 2 ) / + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3693
SELECT ALL MIN ( ALL - col2 ) - + COUNT ( * ) + + ( + 67 ) * + + SUM ( 2 ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3694
SELECT + + 53 DIV + - 9 + + COUNT( * ) + 40 * 52 * + COUNT( * ) AS col1 FROM tab1 cor0
----
6238

skipif mysql # not compatible
query I rowsort label-3694
SELECT + + 53 / + - 9 + + COUNT ( * ) + 40 * 52 * + COUNT ( * ) AS col1 FROM tab1 cor0
----
6238

query I rowsort
SELECT DISTINCT + + 93 AS col0 FROM tab0 AS cor0
----
93

query I rowsort
SELECT 15 AS col1 FROM tab1 AS cor0 WHERE ( ( NULL ) IS NULL )
----
15
15
15

query I rowsort
SELECT - ( col0 ) FROM tab1 cor0 WHERE ( ( ( NOT - + col1 + col1 >= NULL ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3698
SELECT DISTINCT col1 AS col2, - CAST( NULL AS SIGNED ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-3698
SELECT DISTINCT col1 AS col2, - CAST ( NULL AS INTEGER ) FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT DISTINCT 61 + COUNT( * ) FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-3699
SELECT DISTINCT 61 + COUNT ( * ) FROM tab2
----
64

query I rowsort
SELECT DISTINCT + ( 47 ) AS col1 FROM tab1
----
47

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col0 = col0 * 31
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1, + col0 + + - col0 * - 97 * col0 AS col1 FROM tab2
----
51
205298
67
545700
77
397376

query I rowsort
SELECT ( 27 ) AS col1 FROM tab0
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 18 col0, - col0 AS col1 FROM tab0
----
18
-15
18
-87
18
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3705
SELECT - col1 - CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE NOT + 74 * + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3705
SELECT - col1 - CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE NOT + 74 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT + + COUNT( ALL + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3706
SELECT + + COUNT ( ALL + col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3707
SELECT DISTINCT + - CAST( + 96 AS SIGNED ) AS col0 FROM tab2 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3707
SELECT DISTINCT + - CAST ( + 96 AS INTEGER ) AS col0 FROM tab2 cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT DISTINCT 0 * - SUM( ALL - - 8 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT 0 * - SUM ( ALL - - 8 ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
0

query II rowsort
SELECT DISTINCT 18 * + 76 AS col2, - 58 FROM tab1
----
1368
-58

query I rowsort
SELECT ALL + + 38 AS col2 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
38
38
38

query II rowsort
SELECT + + ( + col2 ) AS col0, - col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query I rowsort
SELECT ALL + 49 AS col1 FROM tab0 cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT ALL + COUNT( * ) + + + 90 AS col2 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-3713
SELECT ALL + COUNT ( * ) + + + 90 AS col2 FROM tab0 AS cor0
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 30 col0 FROM tab0 AS cor0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT ALL - COUNT( ALL - col0 ) + + MIN( DISTINCT col1 ) AS col2 FROM tab1 WHERE ( - ( 61 ) - - ( - + 99 ) / - + col2 ) < - col2 * - col0 + + col0
----
2

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL - COUNT ( ALL - col0 ) + + MIN ( DISTINCT col1 ) AS col2 FROM tab1 WHERE ( - ( 61 ) - - ( - + 99 ) / - + col2 ) < - col2 * - col0 + + col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT DISTINCT COUNT( - + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3716
SELECT DISTINCT COUNT ( - + col0 ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3717
SELECT ALL - col1 + + 62 DIV + + col0 FROM tab0
----
-1
-21
-77

skipif mysql # not compatible
query I rowsort label-3717
SELECT ALL - col1 + + 62 / + + col0 FROM tab0
----
-1
-21
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3718
SELECT DISTINCT - col1 * + col0 * + CAST( + + col0 AS SIGNED ) FROM tab1
----
-36125
-36414
-389207

skipif mysql # not compatible
query I rowsort label-3718
SELECT DISTINCT - col1 * + col0 * + CAST ( + + col0 AS INTEGER ) FROM tab1
----
-36125
-36414
-389207

query I rowsort
SELECT DISTINCT col1 + + + col0 FROM tab1 cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT ALL - + SUM( DISTINCT 33 ) AS col2 FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL - + SUM ( DISTINCT 33 ) AS col2 FROM tab1 AS cor0
----
-33

query II rowsort
SELECT + col0 + col1, + 5 AS col1 FROM tab2
----
141
5
142
5
97
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3722
SELECT - COUNT( * ) DIV 95 + + COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3722
SELECT - COUNT ( * ) / 95 + + COUNT ( * ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE + 58 NOT BETWEEN - col0 AND - col0 + + - 38 / - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 - - col0 + col2 + - col0 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT + 58 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * - - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3727
SELECT ALL - ( + CAST( + col0 AS SIGNED ) ) - + + col0 + col2 AS col1 FROM tab1 AS cor0
----
-111
-114
-6

skipif mysql # not compatible
query I rowsort label-3727
SELECT ALL - ( + CAST ( + col0 AS INTEGER ) ) - + + col0 + col2 AS col1 FROM tab1 AS cor0
----
-111
-114
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-3728
SELECT ALL - COUNT( * ) AS col0, + COUNT( * ) * - COUNT( * ) FROM tab0 cor0
----
-3
-9

skipif mysql # not compatible
query II rowsort label-3728
SELECT ALL - COUNT ( * ) AS col0, + COUNT ( * ) * - COUNT ( * ) FROM tab0 cor0
----
-3
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3729
SELECT DISTINCT - - CAST( NULL AS SIGNED ), col1 AS col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-3729
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), col1 AS col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query II rowsort
SELECT ALL - + col1 AS col2, - col2 + - 57 AS col0 FROM tab0 AS cor0
----
-1
-156
-21
-67
-81
-104

onlyif mysql # aggregate syntax: 
query II rowsort label-3731
SELECT ALL 0, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0
-3

skipif mysql # not compatible
query II rowsort label-3731
SELECT ALL 0, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0
-3

query II rowsort
SELECT ALL 43 AS col1, 65 FROM tab1 AS cor0
----
43
65
43
65
43
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 AS col0, col0 col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN ( - 10 ) AND - + 89
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - - col0 col0 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT col1 + - col2 AS col0 FROM tab2 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3737
SELECT ALL - COUNT( col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL - COUNT ( col0 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3738
SELECT + MIN( 87 ) * - - CAST( SUM( ALL + col1 ) AS SIGNED ) AS col0, MAX( DISTINCT col2 ) FROM tab1 AS cor0
----
5742
96

skipif mysql # not compatible
query II rowsort label-3738
SELECT + MIN ( 87 ) * - - CAST ( SUM ( ALL + col1 ) AS INTEGER ) AS col0, MAX ( DISTINCT col2 ) FROM tab1 AS cor0
----
5742
96

query I rowsort
SELECT ALL - 24 * - + col0 FROM tab2
----
1104
1536
1800

onlyif mysql # DIV for integer division: 
query I rowsort label-3740
SELECT + col1 DIV 79 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3740
SELECT + col1 / 79 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * - col1 * + col0 FROM tab2
----
-119646
-336675
-379456

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - col0, ( + col1 ), - col2, col1 + col1, + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3743
SELECT - + 18, + COUNT( * ) col1 FROM tab0 AS cor0
----
-18
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3743
SELECT - + 18, + COUNT ( * ) col1 FROM tab0 AS cor0
----
-18
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 12 - - + 83 * 63 col0 FROM tab2 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT - 51 + + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3745
SELECT - 51 + + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-48

query I rowsort
SELECT col0 + - col2 + + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-101
-79
67

onlyif mysql # DIV for integer division: 
query I rowsort label-3747
SELECT col0 DIV - ( + - 76 ) + + col1 AS col2 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3747
SELECT col0 / - ( + - 76 ) + + col1 AS col2 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT DISTINCT - 18 * 65 * col0 * + + ( + - col0 ) FROM tab1 AS cor0
----
3043170
8453250
9688770

query I rowsort
SELECT DISTINCT - - 15 + - 77 + - + col0 AS col0 FROM tab2 AS cor0
----
-108
-126
-137

query I rowsort
SELECT DISTINCT - 97 * - col0 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 54 * + 86 + - 46 + + + col1 FROM tab2
----
-4613
-4623
-4639

onlyif mysql # DIV for integer division: 
query I rowsort label-3752
SELECT DISTINCT 76 + - + col1 DIV ( - col0 ) FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-3752
SELECT DISTINCT 76 + - + col1 / ( - col0 ) FROM tab1
----
76

query I rowsort
SELECT DISTINCT + 18 + - - 90 AS col0 FROM tab1
----
108

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 + col2 + col2 + + + 13 IN ( + + 48 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( col0 ) / + + col2 * - - 96 * 56 IS NULL
----

query I rowsort
SELECT + col0 * + + ( 56 ) AS col2 FROM tab0 WHERE + - 80 IS NOT NULL
----
4872
5432
840

onlyif mysql # DIV for integer division: 
query I rowsort label-3757
SELECT + ( + + 23 ) DIV - col1 FROM tab0
----
-1
-23
0

skipif mysql # not compatible
query I rowsort label-3757
SELECT + ( + + 23 ) / - col1 FROM tab0
----
-1
-23
0

query I rowsort
SELECT + + ( - + col0 ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT DISTINCT col2 + - 22, 41 AS col2 FROM tab0 cor0 WHERE NOT + col2 > - col0 - + 70 - + + 23 / + col2 * + 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT - COUNT( - 92 ) col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3760
SELECT - COUNT ( - 92 ) col2 FROM tab2 cor0
----
-3

query I rowsort
SELECT - + 13 * - col0 AS col1 FROM tab2 AS cor0
----
598
832
975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - col0 * 84 + - 73 col1 FROM tab2 AS cor0
----
177671
343991
472427

onlyif mysql # aggregate syntax: 
query I rowsort label-3763
SELECT ALL 12 + + + MAX( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL 12 + + + MAX ( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
7

query I rowsort
SELECT DISTINCT - + col0 + 55 AS col0 FROM tab0 cor0
----
-32
-42
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3765
SELECT ALL + col0 + + CAST( + 67 AS SIGNED ) + + 75 AS col0 FROM tab1
----
193
227
233

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL + col0 + + CAST ( + 67 AS INTEGER ) + + 75 AS col0 FROM tab1
----
193
227
233

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT DISTINCT - 46 * 62 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-25668

skipif mysql # not compatible
query I rowsort label-3766
SELECT DISTINCT - 46 * 62 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-25668

query I rowsort
SELECT - col1 * + - 58 + - 93 + + 18 - col0 - - col2 FROM tab1
----
189
2628
782

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3768
SELECT + + CAST( + - col2 AS SIGNED ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3768
SELECT + + CAST ( + - col2 AS INTEGER ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3769
SELECT DISTINCT + - 8 * CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-112
-376
-40

skipif mysql # not compatible
query I rowsort label-3769
SELECT DISTINCT + - 8 * CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-112
-376
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3770
SELECT MAX( 39 ) AS col1 FROM tab1 cor0
----
39

skipif mysql # not compatible
query I rowsort label-3770
SELECT MAX ( 39 ) AS col1 FROM tab1 cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3771
SELECT ALL + COUNT( - 45 ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3771
SELECT ALL + COUNT ( - 45 ) col0 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + - 24 AS col0 FROM tab0 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3773
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + - - col0 > NULL
----

skipif mysql # not compatible
query III rowsort label-3773
SELECT ALL * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - - col0 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - + col2 AND - 87
----

query I rowsort
SELECT - col1 * ( + + 74 ) FROM tab2
----
-3774
-4958
-5698

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3776
SELECT ALL + 18 * + CAST( NULL AS SIGNED ) * - + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL + 18 * + CAST ( NULL AS INTEGER ) * - + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col1 AS col0, + col2 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT ALL + 85 * + 50 FROM tab0
----
4250
4250
4250

query I rowsort
SELECT + ( - ( + col0 ) ) AS col2 FROM tab0
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, 91 AS col2 FROM tab2
----
23
91
40
91
58
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3781
SELECT - MIN( - - col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3781
SELECT - MIN ( - - col2 ) AS col1 FROM tab2
----
-23

query I rowsort
SELECT - ( - 51 ) FROM tab1
----
51
51
51

query I rowsort
SELECT DISTINCT + 43 FROM tab1 WHERE NULL NOT BETWEEN col2 AND col2
----

query I rowsort
SELECT DISTINCT - 23 * + + col0 AS col1 FROM tab2 AS cor0
----
-1058
-1472
-1725

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, 25 col0 FROM tab0 AS cor0
----
-10
25
-47
25
-99
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3786
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT 21 + 22 * + col0 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - ( + col1 ) * - col1 + + + 76 AS col0 FROM tab1 AS cor0
----
101
2285
272

query II rowsort
SELECT ALL + col1 * + - 64 AS col1, col0 FROM tab1 AS cor0
----
-3008
91
-320
85
-896
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 32 >= NULL
----

query I rowsort
SELECT DISTINCT + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT 43 + + col1 * + 60 + - 67 NOT IN ( + 32, - 0 * - - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3792
SELECT - ( + col2 ) FROM tab0 WHERE NOT ( - 53 + + + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3792
SELECT - ( + col2 ) FROM tab0 WHERE NOT ( - 53 + + + CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3793
SELECT + 59 / CAST( NULL AS DECIMAL ) * col1 + - 9 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3793
SELECT + 59 / CAST ( NULL AS REAL ) * col1 + - 9 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col0 + + col0 + - col2 col0 FROM tab1
----
4300
451
669

onlyif mysql # DIV for integer division: 
query I rowsort label-3795
SELECT - 73 DIV col1 * + col1 DIV + col1 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3795
SELECT - 73 / col1 * + col1 / + col1 AS col0 FROM tab2
----
-1
-1
0

query II rowsort
SELECT 58 * - col1, + 27 + + col1 AS col1 FROM tab1 AS cor0
----
-2726
74
-290
32
-812
41

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 88 - + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 21 * + col1 col0, col2 FROM tab0 AS cor0
----
1701
47
21
99
441
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3799
SELECT ALL + CAST( - + 97 AS SIGNED ) * - col0 FROM tab0 cor0
----
1455
8439
9409

skipif mysql # not compatible
query I rowsort label-3799
SELECT ALL + CAST ( - + 97 AS INTEGER ) * - col0 FROM tab0 cor0
----
1455
8439
9409

query I rowsort
SELECT DISTINCT - 50 * col2 * + col2 AS col1 FROM tab2 AS cor0
----
-168200
-26450
-80000

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3801
SELECT - CAST( - - col2 AS SIGNED ) / + CAST( NULL AS SIGNED ) * CAST( - - col0 AS DECIMAL ) FROM tab0 cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3801
SELECT - CAST ( - - col2 AS INTEGER ) / + CAST ( NULL AS INTEGER ) * CAST ( - - col0 AS REAL ) FROM tab0 cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 + 52 AS col2 FROM tab1
----
111
120
148

onlyif mysql # aggregate syntax: 
query I rowsort label-3803
SELECT ALL 58 - - COUNT( + 86 ) AS col2 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-3803
SELECT ALL 58 - - COUNT ( + 86 ) AS col2 FROM tab2
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3804
SELECT * FROM tab2 WHERE + - CAST( - + 34 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3804
SELECT * FROM tab2 WHERE + - CAST ( - + 34 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * + col0 + - col2 * col2 FROM tab0
----
-9704
-994
1727

onlyif mysql # DIV for integer division: 
query I rowsort label-3806
SELECT 58 DIV - 61 * - col1 * - - col0 - + col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3806
SELECT 58 / - 61 * - col1 * - - col0 - + col1 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3807
SELECT ALL - 52 + col0 + + - col1 AS col1, - CAST( NULL AS SIGNED ) FROM tab2
----
-44
NULL
-57
NULL
-65
NULL

skipif mysql # not compatible
query II rowsort label-3807
SELECT ALL - 52 + col0 + + - col1 AS col1, - CAST ( NULL AS INTEGER ) FROM tab2
----
-44
NULL
-57
NULL
-65
NULL

query I rowsort
SELECT ALL + col2 - + col1 + 29 + - col2 FROM tab2
----
-22
-38
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3809
SELECT COUNT( * ) + - - MAX( ALL - col0 ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-3809
SELECT COUNT ( * ) + - - MAX ( ALL - col0 ) FROM tab0
----
-12

query I rowsort
SELECT DISTINCT + ( ( + 38 ) ) + 25 FROM tab2
----
63

query I rowsort
SELECT ALL 4 + col0 FROM tab1
----
55
89
95

query I rowsort
SELECT ALL col2 * - 16 * + col1 FROM tab0
----
-1584
-3360
-60912

query I rowsort
SELECT ALL + col1 - - - 95 AS col1 FROM tab0
----
-14
-74
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3814
SELECT DISTINCT - + MIN( - col2 ) AS col0 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-3814
SELECT DISTINCT - + MIN ( - col2 ) AS col0 FROM tab1 cor0
----
96

query I rowsort
SELECT DISTINCT + - ( col1 ) + + 56 FROM tab2 AS cor0
----
-11
-21
5

query I rowsort
SELECT ALL + ( col1 ) * - col2 + - 47 + col1 * + + col2 AS col0 FROM tab1 AS cor0
----
-47
-47
-47

query I rowsort
SELECT DISTINCT - col1 * - ( + - col2 ) + - col0 FROM tab1
----
-1395
-3287
-380

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT DISTINCT + ( - - MIN( ALL - 25 ) ) AS col0 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-3818
SELECT DISTINCT + ( - - MIN ( ALL - 25 ) ) AS col0 FROM tab2 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT + MAX( col2 ) AS col2 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-3819
SELECT + MAX ( col2 ) AS col2 FROM tab2 cor0
----
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col2, 97 * + col0, col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + col1, + col2 + + - 45 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT + COUNT( * ) * + 21 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-3822
SELECT + COUNT ( * ) * + 21 FROM tab1
----
63

query II rowsort
SELECT ALL col0, 97 * + col2 FROM tab1
----
51
9312
85
5723
91
6596

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = col1
----

query II rowsort
SELECT DISTINCT col0, - col1 + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= 72
----

query I rowsort
SELECT DISTINCT + 61 FROM tab1 AS cor0 WHERE NULL IS NULL
----
61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3827
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN CAST( - 7 AS SIGNED ) AND - - col2
----

skipif mysql # not compatible
query III rowsort label-3827
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN CAST ( - 7 AS INTEGER ) AND - - col2
----

query I rowsort
SELECT ALL + - 53 + + + col1 FROM tab1 AS cor0
----
-39
-48
-6

query II rowsort
SELECT ALL - col1 AS col0, + 28 FROM tab1
----
-14
28
-47
28
-5
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT - COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3830
SELECT - COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT DISTINCT - + COUNT( * ) - COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3831
SELECT DISTINCT - + COUNT ( * ) - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3832
SELECT ( - CAST( NULL AS SIGNED ) ) * - + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3832
SELECT ( - CAST ( NULL AS INTEGER ) ) * - + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - 46 ) * + col1 FROM tab2 AS cor0
----
-2346
-3082
-3542

query I rowsort
SELECT DISTINCT - + col1 * - + 66 AS col2 FROM tab2 AS cor0
----
3366
4422
5082

query I rowsort
SELECT col1 + + col0 - - + col2 AS col2 FROM tab1 cor0
----
149
161
206

onlyif mysql # DIV for integer division: 
query I rowsort label-3836
SELECT + 50 * - 14 + 78 DIV ( + col2 ) FROM tab0 AS cor0
----
-693
-699
-700

skipif mysql # not compatible
query I rowsort label-3836
SELECT + 50 * - 14 + 78 / ( + col2 ) FROM tab0 AS cor0
----
-693
-699
-700

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT + MIN( 84 ) + COUNT( * ) AS col2 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-3837
SELECT + MIN ( 84 ) + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
87

query I rowsort
SELECT + ( - 23 ) + - 13 AS col2 FROM tab0 cor0
----
-36
-36
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 + + col1 col1 FROM tab2
----
100
116
126

onlyif mysql # DIV for integer division: 
query I rowsort label-3840
SELECT ALL - col1 + col2 DIV 10 AS col1 FROM tab1
----
-41
-5
0

skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL - col1 + col2 / 10 AS col1 FROM tab1
----
-41
-5
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3841
SELECT + ( COUNT( * ) ), COUNT( * ) AS col2 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-3841
SELECT + ( COUNT ( * ) ), COUNT ( * ) AS col2 FROM tab1
----
3
3

query I rowsort
SELECT DISTINCT col1 + + ( + col2 ) * - col1 FROM tab0
----
-189
-3726
-98

query I rowsort
SELECT ALL + - col1 * - 22 + col2 - - col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * - + col2 - col0 FROM tab0 cor0
----
690
783
9506

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = col2 + + - 98 - 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT DISTINCT + - COUNT( * ) * + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT + - COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-3847
SELECT ALL - 69 DIV 83 * - col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL - 69 / 83 * - col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - 95 * + col2 AS col0 FROM tab0 AS cor0
----
-4465
-9405
-950

onlyif mysql # DIV for integer division: 
query I rowsort label-3849
SELECT ALL - 68 DIV 58 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL - 68 / 58 FROM tab1 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN NULL AND - 52 * + + col2
----

query II rowsort
SELECT - col2 AS col1, - col1 FROM tab0 AS cor0
----
-10
-21
-47
-81
-99
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 81 AS col1, col0 * - col1 col1 FROM tab2 cor0
----
81
-2346
81
-4928
81
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 91 AS col0, col0 + + - col2 col2 FROM tab0 AS cor0
----
91
-2
91
-32
91
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 / 11 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col1 ) col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT + 94 * + 31 FROM tab2
----
2914
2914
2914

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - 64 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT ALL - COUNT( * ) + - + 37 AS col1 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-3858
SELECT ALL - COUNT ( * ) + - + 37 AS col1 FROM tab2 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-3859
SELECT DISTINCT - + COUNT( ALL - - 87 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3859
SELECT DISTINCT - + COUNT ( ALL - - 87 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT DISTINCT - col2 + + + col1 FROM tab2 cor0
----
28
37
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - 39 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3862
SELECT DISTINCT ( + col1 ) DIV col1 AS col2, - col2 DIV + - 48 col2 FROM tab2 AS cor0
----
1
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3862
SELECT DISTINCT ( + col1 ) / col1 AS col2, - col2 / + - 48 col2 FROM tab2 AS cor0
----
1
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 69 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 53 * + + ( col1 ) - + + 30 col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1083
23
4263

query I rowsort
SELECT ALL 63 * col1 + - ( + + col1 ) AS col1 FROM tab2
----
3162
4154
4774

query II rowsort
SELECT DISTINCT col2 + - col2, - col0 AS col1 FROM tab0
----
0
-15
0
-87
0
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT ( - - 37 ) + - COUNT( * ) AS col0 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-3867
SELECT ( - - 37 ) + - COUNT ( * ) AS col0 FROM tab1
----
34

query I rowsort
SELECT ALL col2 - - 54 * + col1 + - ( - 2 ) FROM tab1
----
2608
331
854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT DISTINCT - col1 * col2 + - CAST( NULL AS SIGNED ) + - + col2 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT - col1 * col2 + - CAST ( NULL AS INTEGER ) + - + col2 AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT + 32 + + 26 * - COUNT( * ) FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-3870
SELECT + 32 + + 26 * - COUNT ( * ) FROM tab0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT ( + COUNT( * ) ) + - + MIN( - - 12 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3871
SELECT ( + COUNT ( * ) ) + - + MIN ( - - 12 ) FROM tab2
----
-9

query I rowsort
SELECT DISTINCT - 30 - - 90 + + 89 FROM tab0
----
149

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3874
SELECT COUNT( * ) * + SUM( 62 ) DIV COUNT( * ) AS col0 FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-3874
SELECT COUNT ( * ) * + SUM ( 62 ) / COUNT ( * ) AS col0 FROM tab0
----
186

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 * - col1 / - col2 + + 97 ) = NULL
----

query I rowsort
SELECT DISTINCT + col0 * - - col0 AS col2 FROM tab2
----
2116
4096
5625

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3877
SELECT ALL + col0 / col2 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3877
SELECT ALL + col0 / col2 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT ALL + COUNT( ALL + ( - - col2 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3878
SELECT ALL + COUNT ( ALL + ( - - col2 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3879
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN + + 86 AND + ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3879
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN + + 86 AND + ( - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 71 IS NOT NULL
----

query I rowsort
SELECT + 25 * col1 FROM tab0 AS cor0 WHERE NOT - col2 * - 71 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3882
SELECT DISTINCT + - CAST( - 36 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3882
SELECT DISTINCT + - CAST ( - 36 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3883
SELECT + MIN( ALL + 87 ) FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-3883
SELECT + MIN ( ALL + 87 ) FROM tab0 AS cor0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3884
SELECT DISTINCT + 65 * - SUM( ALL + col2 ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT + 65 * - SUM ( ALL + col2 ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3885
SELECT DISTINCT + + COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT + + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 WHERE NOT col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT DISTINCT - MAX( DISTINCT + col1 ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3886
SELECT DISTINCT - MAX ( DISTINCT + col1 ) AS col2 FROM tab0
----
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= - - 75 + + + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3888
SELECT DISTINCT + col0 DIV - 44 FROM tab1
----
-1
-2

skipif mysql # not compatible
query I rowsort label-3888
SELECT DISTINCT + col0 / - 44 FROM tab1
----
-1
-2

query I rowsort
SELECT ALL + 28 + + 60 * - col0 AS col2 FROM tab1 AS cor0
----
-3032
-5072
-5432

query I rowsort
SELECT DISTINCT - ( + 74 ) + - ( + - col2 ) FROM tab1 AS cor0
----
-15
-6
22

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT DISTINCT + + ( + MAX( + ( - + col0 ) ) ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3891
SELECT DISTINCT + + ( + MAX ( + ( - + col0 ) ) ) AS col2 FROM tab1 AS cor0
----
-51

query II rowsort
SELECT - - ( + + ( + col0 ) ) + - - 17, ( col1 ) AS col1 FROM tab0 AS cor0
----
104
21
114
1
32
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3893
SELECT DISTINCT col1 * - + 47 + - col0 FROM tab0 cor0 WHERE NOT ( col0 * col2 ) NOT IN ( col2 / + - CAST( - col2 AS SIGNED ) + CAST( - col2 AS SIGNED ), 76, CAST( col2 AS SIGNED ) / col0 )
----

skipif mysql # not compatible
query I rowsort label-3893
SELECT DISTINCT col1 * - + 47 + - col0 FROM tab0 cor0 WHERE NOT ( col0 * col2 ) NOT IN ( col2 / + - CAST ( - col2 AS INTEGER ) + CAST ( - col2 AS INTEGER ), 76, CAST ( col2 AS INTEGER ) / col0 )
----

query I rowsort
SELECT DISTINCT ( + ( - + 43 ) ) AS col0 FROM tab1 AS cor0
----
-43

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < + col1
----

query I rowsort
SELECT DISTINCT + 90 AS col1 FROM tab2 cor0
----
90

query I rowsort
SELECT - + col0 * + - 30 + + 55 FROM tab0 AS cor0
----
2665
2965
505

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NULL >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT + COUNT( * ) * - MAX( DISTINCT + 52 ) FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-3899
SELECT + COUNT ( * ) * - MAX ( DISTINCT + 52 ) FROM tab1
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3900
SELECT DISTINCT ( + - COUNT( DISTINCT col0 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT ( + - COUNT ( DISTINCT col0 ) ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + + col2 * + + col0 AS col2 FROM tab1 WHERE NOT col1 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 81 * + - col0 * + col0 * col0 FROM tab0
----
-273375
-53338743
-73926513

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3903
SELECT - col0 col1, col0 + + - 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-3903
SELECT - col0 col1, col0 + + - CAST ( NULL AS INTEGER ) FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3904
SELECT ALL MIN( - col0 ) DIV + 49 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL MIN ( - col0 ) / + 49 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3905
SELECT - MAX( col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3905
SELECT - MAX ( col0 ) FROM tab0 cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT + SUM( - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3906
SELECT + SUM ( - col0 ) FROM tab1 AS cor0
----
-227

query II rowsort
SELECT ALL - - col0 AS col1, + col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query II rowsort label-3908
SELECT DISTINCT + 69 AS col2, SUM( ALL + col0 ) FROM tab2 AS cor0
----
69
185

skipif mysql # not compatible
query II rowsort label-3908
SELECT DISTINCT + 69 AS col2, SUM ( ALL + col0 ) FROM tab2 AS cor0
----
69
185

query I rowsort
SELECT DISTINCT - + 17 + + - col2 AS col1 FROM tab1 cor0
----
-113
-76
-85

query I rowsort
SELECT ALL + - 20 * + col2 * + col0 FROM tab1 AS cor0
----
-100300
-123760
-97920

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE - col1 < + col1 + - col0 + col1
----
-1

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - col1 < + col1 + - col0 + col1
----
-1

query I rowsort
SELECT DISTINCT - 11 + - col1 - - 11 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 15 ) BETWEEN + 78 * col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + - 83 FROM tab1
----
-4233
-7055
-7553

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT ALL 21 + 0 * - MIN( - col1 ) * - 18 + 26 + - 25 AS col0 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL 21 + 0 * - MIN ( - col1 ) * - 18 + 26 + - 25 AS col0 FROM tab0
----
22

query I rowsort
SELECT ALL - col1 * - - col1 + - col0 FROM tab2
----
-2647
-4564
-5993

query I rowsort
SELECT ALL col1 + + col1 * + 36 FROM tab1
----
1739
185
518

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3918
SELECT DISTINCT + CAST( - col2 AS SIGNED ) col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3918
SELECT DISTINCT + CAST ( - col2 AS INTEGER ) col2 FROM tab2
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - col2 col0, col2 + + + 4 * - col0 FROM tab2
----
-1173
-161
-3080
-216
-3886
-242

onlyif mysql # DIV for integer division: 
query I rowsort label-3920
SELECT DISTINCT col1 DIV - 15 AS col0 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-3920
SELECT DISTINCT col1 / - 15 AS col0 FROM tab0
----
-1
-5
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 / - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3922
SELECT ( + COUNT( * ) ) DIV - + 58 + COUNT( * ) AS col2 FROM tab1, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3922
SELECT ( + COUNT ( * ) ) / - + 58 + COUNT ( * ) AS col2 FROM tab1, tab0 AS cor0
----
9

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT ( + 56 ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - col0 * - col2 FROM tab1 WHERE NOT col0 * + col1 IS NULL
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3925
SELECT ALL - + CAST( ( + col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3925
SELECT ALL - + CAST ( ( + col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 col0, + 84 FROM tab1 AS cor0
----
-59
84
-68
84
-96
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3927
SELECT + col0 FROM tab1 AS cor0 WHERE - 17 <= + col2 - - col2 + + ( 61 ) + - - col2 + - + CAST( NULL AS SIGNED ) * + + col1
----

skipif mysql # not compatible
query I rowsort label-3927
SELECT + col0 FROM tab1 AS cor0 WHERE - 17 <= + col2 - - col2 + + ( 61 ) + - - col2 + - + CAST ( NULL AS INTEGER ) * + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3928
SELECT 28 - + - COUNT( * ) * + 15 FROM tab2 cor0
----
73

skipif mysql # not compatible
query I rowsort label-3928
SELECT 28 - + - COUNT ( * ) * + 15 FROM tab2 cor0
----
73

query II rowsort
SELECT ALL - + 22 AS col1, col0 FROM tab1 AS cor0
----
-22
51
-22
85
-22
91

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 / + - col1 * col2 >= col2
----

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NULL IN ( 30, col1 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT ALL + SUM( col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3932
SELECT ALL + SUM ( col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + 98 + - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3933
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT + 98 + - col1 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3934
SELECT + col1 DIV - CAST( CAST( - col1 AS SIGNED ) AS SIGNED ) AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3934
SELECT + col1 / - CAST ( CAST ( - col1 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT DISTINCT + col0 * + col0 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3935
SELECT DISTINCT + col0 * + col0 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3936
SELECT CAST( - ( - COUNT( DISTINCT col0 ) ) AS SIGNED ) * COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3936
SELECT CAST ( - ( - COUNT ( DISTINCT col0 ) ) AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT ALL - COUNT( DISTINCT + - 11 ) * 81 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL - COUNT ( DISTINCT + - 11 ) * 81 FROM tab1
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3938
SELECT + 20 DIV - 60 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3938
SELECT + 20 / - 60 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT - col1 + + - 71 * - col2 AS col1 FROM tab2 WHERE NOT ( - col0 ) <> col0 * - + col1 + - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 35 * col0 * col0 * - - col1 * + 44 = 18
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE + col0 <> NULL
----

query I rowsort
SELECT ( + 18 ) AS col1 FROM tab1 AS cor0
----
18
18
18

query I rowsort
SELECT DISTINCT + 13 - - col0 * + col0 + 77 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT col0 IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3945
SELECT - COUNT( * ) DIV 54 * + + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3945
SELECT - COUNT ( * ) / 54 * + + COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT ALL - + col2 FROM tab0 WHERE NOT - + col0 IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT ALL - COUNT( + col0 ) * + COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL - COUNT ( + col0 ) * + COUNT ( * ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT DISTINCT COUNT( ALL col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3948
SELECT DISTINCT COUNT ( ALL col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT + SUM( 70 ) col0 FROM tab2 AS cor0
----
210

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3949
SELECT + SUM ( 70 ) col0 FROM tab2 AS cor0
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT DISTINCT + SUM( ALL - - ( + 88 ) ) FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-3950
SELECT DISTINCT + SUM ( ALL - - ( + 88 ) ) FROM tab1 AS cor0
----
264

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 88 * + ( + col0 ) = + col0
----

query I rowsort
SELECT - 2 + 98 AS col2 FROM tab0 AS cor0
----
96
96
96

query III rowsort
SELECT * FROM tab2 WHERE 0 * - - 8 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 53 * col0 * - col0 + - col1 col1, - col0 FROM tab0
----
-12006
-15
-401178
-87
-498678
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3955
SELECT DISTINCT + MAX( ALL 69 ) * - - 31 + + 55 AS col2 FROM tab0
----
2194

skipif mysql # not compatible
query I rowsort label-3955
SELECT DISTINCT + MAX ( ALL 69 ) * - - 31 + + 55 AS col2 FROM tab0
----
2194

query I rowsort
SELECT DISTINCT + col1 + 5 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
10
19
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 + + 14 col1 FROM tab1 WHERE NOT + + 71 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3958
SELECT ALL col1 * col2 DIV col0 * - + col1 + - col0 + col1 AS col0 FROM tab2 AS cor0
----
-1270
-3425
-3683

skipif mysql # not compatible
query I rowsort label-3958
SELECT ALL col1 * col2 / col0 * - + col1 + - col0 + col1 AS col0 FROM tab2 AS cor0
----
-1270
-3425
-3683

query II rowsort
SELECT col2, + col2 * col1 AS col2 FROM tab1 AS cor0
----
59
295
68
3196
96
1344

query III rowsort
SELECT ALL - - col2 * - + col0 AS col2, - 4 * + col1, + col2 + + 23 AS col0 FROM tab1 AS cor0
----
9 values hashing to ce719109725911735d4631e3ed6fce28

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 > + col0 * - col1 * 98 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3962
SELECT ALL 49 DIV - COUNT( * ) AS col1 FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-3962
SELECT ALL 49 / - COUNT ( * ) AS col1 FROM tab0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT 97 * COUNT( * ) + 10 AS col2 FROM tab2
----
301

skipif mysql # not compatible
query I rowsort label-3963
SELECT 97 * COUNT ( * ) + 10 AS col2 FROM tab2
----
301

query I rowsort
SELECT DISTINCT + - 86 - col1 FROM tab1 AS cor0
----
-100
-133
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT DISTINCT + - 91 * + + MAX( DISTINCT + + col0 ) FROM tab0 AS cor0
----
-8827

skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT + - 91 * + + MAX ( DISTINCT + + col0 ) FROM tab0 AS cor0
----
-8827

onlyif mysql # DIV for integer division: 
query I rowsort label-3966
SELECT ALL + 89 - col2 DIV col2 FROM tab1 AS cor0
----
88
88
88

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL + 89 - col2 / col2 FROM tab1 AS cor0
----
88
88
88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 = col1 * col0 * + col0 + - 67 + - 61
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 1 <= - - col1 * col1 + 4 + - col2
----
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-3969
SELECT COUNT( * ) AS col2, - 67 AS col0 FROM tab1
----
3
-67

skipif mysql # not compatible
query II rowsort label-3969
SELECT COUNT ( * ) AS col2, - 67 AS col0 FROM tab1
----
3
-67

query II rowsort
SELECT DISTINCT 48 AS col2, - col2 FROM tab2 AS cor0
----
48
-23
48
-40
48
-58

query II rowsort
SELECT col2, col2 - + col1 + + + 0 AS col1 FROM tab0 AS cor0
----
10
-11
47
-34
99
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT + MAX( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NOT - col0 * col1 - + col1 IS NULL
----
-15

skipif mysql # not compatible
query I rowsort label-3972
SELECT + MAX ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE NOT - col0 * col1 - + col1 IS NULL
----
-15

query I rowsort
SELECT col2 + - col2 - - + 53 - - col1 AS col0 FROM tab1
----
100
58
67

query I rowsort
SELECT ALL 38 FROM tab2, tab2 AS cor0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3975
SELECT - + COUNT( * ) DIV - SUM( ALL - col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3975
SELECT - + COUNT ( * ) / - SUM ( ALL - col1 ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 52 < col1
----
15
81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3977
SELECT - col2 DIV + 28 AS col1 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3977
SELECT - col2 / + 28 AS col1 FROM tab2 AS cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3978
SELECT DISTINCT + COUNT( * ) * - - 41 FROM tab1 cor0
----
123

skipif mysql # not compatible
query I rowsort label-3978
SELECT DISTINCT + COUNT ( * ) * - - 41 FROM tab1 cor0
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT ALL + + COUNT( * ) AS col1 FROM tab2 cor0 WHERE - ( + col1 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3979
SELECT ALL + + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE - ( + col1 ) <= NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE 53 IN ( ( + + col2 ), + col2, col2 + - + col0, ( - - 97 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3981
SELECT - ( COUNT( * ) ) * - 45 AS col0 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-3981
SELECT - ( COUNT ( * ) ) * - 45 AS col0 FROM tab1
----
135

query III rowsort
SELECT * FROM tab2 WHERE + ( 97 ) IS NULL
----

query I rowsort
SELECT ALL + ( - col0 ) * + col0 + - col1 FROM tab1
----
-2615
-7230
-8328

query I rowsort
SELECT ALL 28 * - 66 AS col2 FROM tab2
----
-1848
-1848
-1848

query I rowsort
SELECT 59 + + - col0 FROM tab0
----
-28
-38
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT - + 25 + + + 44 + - + ( + - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-3986
SELECT - + 25 + + + 44 + - + ( + - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
22

query I rowsort
SELECT ALL col0 - - + col2 AS col0 FROM tab2 cor0
----
104
133
69

query I rowsort
SELECT + 54 + + col1 AS col0 FROM tab1 AS cor0
----
101
59
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT - - COUNT( * ) + + 35 + 7 * - 14 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-3989
SELECT - - COUNT ( * ) + + 35 + 7 * - 14 FROM tab0 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3990
SELECT DISTINCT SUM( + 61 ) + + 72 FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-3990
SELECT DISTINCT SUM ( + 61 ) + + 72 FROM tab1 AS cor0
----
255

onlyif mysql # DIV for integer division: 
query I rowsort label-3991
SELECT 33 DIV + 79 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3991
SELECT 33 / + 79 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col2 * + 21 FROM tab0 WHERE + - 76 NOT IN ( 56 * col0 + + col2, - col0 / col1 / - 24 + - col0 * + 21, - col2 )
----
2079
210
987

query I rowsort
SELECT 81 * ( - col1 ) AS col0 FROM tab1
----
-1134
-3807
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT DISTINCT SUM( ALL col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT SUM ( ALL col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT - 17 + col1 * col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 72 col0 FROM tab2 AS cor0
----
-3672
-4824
-5544

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND + + 8
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3998
SELECT ALL + ( col1 ), 55 * col1 DIV + col2 - + + col0 FROM tab1
----
14
-43
47
-53
5
-81

skipif mysql # not compatible
query II rowsort label-3998
SELECT ALL + ( col1 ), 55 * col1 / + col2 - + + col0 FROM tab1
----
14
-43
47
-53
5
-81

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL <> NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 / col0 + - 15 * + col2 / + 89 + - col1 <= col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 - - col0 + col0 NOT BETWEEN + col1 * col0 + - col0 / + + 73 AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4002
SELECT - + col0 DIV + - col0 + - 10 FROM tab0 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-4002
SELECT - + col0 / + - col0 + - 10 FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4003
SELECT DISTINCT + + ( ( 28 ) ) DIV + 43 + - 68 DIV + 4 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-4003
SELECT DISTINCT + + ( ( 28 ) ) / + 43 + - 68 / + 4 FROM tab0 AS cor0
----
-17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) / - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4005
SELECT DISTINCT + - MAX( ALL - + 94 ) AS col2, 19 col2 FROM tab1 AS cor0
----
94
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4005
SELECT DISTINCT + - MAX ( ALL - + 94 ) AS col2, 19 col2 FROM tab1 AS cor0
----
94
19

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 - + col1 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4007
SELECT - 55 FROM tab0 cor0 WHERE ( + 26 + - CAST( - col2 AS SIGNED ) + - col0 ) IS NOT NULL OR NOT NULL IS NOT NULL
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-4007
SELECT - 55 FROM tab0 cor0 WHERE ( + 26 + - CAST ( - col2 AS INTEGER ) + - col0 ) IS NOT NULL OR NOT NULL IS NOT NULL
----
-55
-55
-55

query I rowsort
SELECT + col0 / + + 93 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4009
SELECT ( - - SUM( DISTINCT - CAST( + - 14 AS SIGNED ) ) ) * + 73 col1 FROM tab0
----
1022

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4009
SELECT ( - - SUM ( DISTINCT - CAST ( + - 14 AS INTEGER ) ) ) * + 73 col1 FROM tab0
----
1022

query I rowsort
SELECT DISTINCT - col0 + + - col0 AS col0 FROM tab2
----
-128
-150
-92

query I rowsort
SELECT + 12 AS col2 FROM tab2 cor0 WHERE ( + - 68 ) + + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 96 col1 FROM tab1 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4013
SELECT col0 + + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4013
SELECT col0 + + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col2 * ( ( + 21 ) ) AS col0 FROM tab1 AS cor0
----
1239
1428
2016

query I rowsort
SELECT ALL col0 * + col1 + + col2 FROM tab0 AS cor0
----
1262
1837
196

onlyif mysql # DIV for integer division: 
query I rowsort label-4016
SELECT col1 DIV - col0 + 49 FROM tab0
----
44
49
49

skipif mysql # not compatible
query I rowsort label-4016
SELECT col1 / - col0 + 49 FROM tab0
----
44
49
49

query III rowsort
SELECT * FROM tab1 WHERE col0 NOT BETWEEN - ( col2 ) / - + col0 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * + 20 - - - col0 FROM tab1
----
-1265
-1451
-1971

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 61 ) + - col1 col1 FROM tab2
----
-112
-128
-138

query I rowsort
SELECT DISTINCT - col1 + - 76 AS col2 FROM tab1
----
-123
-81
-90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4021
SELECT ALL col2 AS col2, CAST( - col0 AS SIGNED ) FROM tab0 WHERE NOT + 56 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4021
SELECT ALL col2 AS col2, CAST ( - col0 AS INTEGER ) FROM tab0 WHERE NOT + 56 IS NOT NULL
----

query I rowsort
SELECT ALL col2 * 89 * - - 21 * 13 * + col1 - col1 FROM tab0
----
2405402
5102349
92498598

query I rowsort
SELECT + 91 * - - 60 AS col2 FROM tab2
----
5460
5460
5460

onlyif mysql # aggregate syntax: 
query II rowsort label-4024
SELECT COUNT( * ) AS col1, ( - - 42 ) * - 57 * + 23 FROM tab1
----
3
-55062

skipif mysql # not compatible
query II rowsort label-4024
SELECT COUNT ( * ) AS col1, ( - - 42 ) * - 57 * + 23 FROM tab1
----
3
-55062

query II rowsort
SELECT ALL - col2 * - ( + col0 ), - col0 AS col0 FROM tab2
----
1058
-46
2560
-64
4350
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT DISTINCT COUNT( * ) * 36 col0 FROM tab1
----
108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4026
SELECT DISTINCT COUNT ( * ) * 36 col0 FROM tab1
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT - 89 * - MAX( DISTINCT + col2 ) AS col0 FROM tab1
----
8544

skipif mysql # not compatible
query I rowsort label-4027
SELECT - 89 * - MAX ( DISTINCT + col2 ) AS col0 FROM tab1
----
8544

onlyif mysql # DIV for integer division: 
query I rowsort label-4028
SELECT ALL + ( - - col1 ) DIV col0 + - col1 FROM tab0 AS cor0
----
-1
-21
-76

skipif mysql # not compatible
query I rowsort label-4028
SELECT ALL + ( - - col1 ) / col0 + - col1 FROM tab0 AS cor0
----
-1
-21
-76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4029
SELECT ALL - MAX( ALL CAST( - col0 AS SIGNED ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL - MAX ( ALL CAST ( - col0 AS INTEGER ) ) FROM tab2 AS cor0
----
46

query II rowsort
SELECT + + col1, - col2 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

query II rowsort
SELECT DISTINCT + 14 AS col0, + 15 FROM tab1
----
14
15

query I rowsort
SELECT ALL 30 * 80 FROM tab2
----
2400
2400
2400

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 BETWEEN NULL AND + col2
----
85
5
59
91
47
68

query I rowsort
SELECT 85 * - - col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4035
SELECT CAST( NULL AS SIGNED ) * + ( + col1 ) * + - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4035
SELECT CAST ( NULL AS INTEGER ) * + ( + col1 ) * + - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col1 ) * - col0 * + + 51 * - col1 + + col2 + + 47 * - col0 + + - 71 - - 73 + - col0 + col1 * + col2 AS col2 FROM tab0
----
1952763
491
5022301

onlyif mysql # DIV for integer division: 
query II rowsort label-4037
SELECT DISTINCT + col0, col1 DIV + col0 FROM tab2
----
46
1
64
1
75
0

skipif mysql # not compatible
query II rowsort label-4037
SELECT DISTINCT + col0, col1 / + col0 FROM tab2
----
46
1
64
1
75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT ALL + MIN( ALL - 81 ) * COUNT( * ) FROM tab2
----
-243

skipif mysql # not compatible
query I rowsort label-4038
SELECT ALL + MIN ( ALL - 81 ) * COUNT ( * ) FROM tab2
----
-243

query I rowsort
SELECT - - 94 AS col1 FROM tab2 AS cor0
----
94
94
94

query II rowsort
SELECT 13 + + 56 AS col2, - col0 FROM tab0 AS cor0
----
69
-15
69
-87
69
-97

query I rowsort
SELECT - 61 + + col0 AS col2 FROM tab0
----
-46
26
36

query I rowsort
SELECT + ( 9 ) FROM tab1 AS cor0
----
9
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4043
SELECT DISTINCT 80 + - CAST( + col2 AS SIGNED ) FROM tab0
----
-19
33
70

skipif mysql # not compatible
query I rowsort label-4043
SELECT DISTINCT 80 + - CAST ( + col2 AS INTEGER ) FROM tab0
----
-19
33
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 + col2 col0 FROM tab0
----
-21
-58
31

query I rowsort
SELECT ( + col2 ) * col0 + + - col1 FROM tab2
----
1007
2483
4283

onlyif mysql # aggregate syntax: 
query I rowsort label-4046
SELECT + SUM( - - col0 ) + COUNT( * ) FROM tab1
----
230

skipif mysql # not compatible
query I rowsort label-4046
SELECT + SUM ( - - col0 ) + COUNT ( * ) FROM tab1
----
230

query I rowsort
SELECT 82 * - col2 * col1 * 67 FROM tab0 WHERE NULL NOT IN ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4048
SELECT DISTINCT CAST( col2 AS SIGNED ) - - - col0 FROM tab1
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-4048
SELECT DISTINCT CAST ( col2 AS INTEGER ) - - - col0 FROM tab1
----
-23
-26
45

query I rowsort
SELECT - 97 * + - col0 - + + 34 FROM tab2 AS cor0
----
4428
6174
7241

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT DISTINCT COUNT( + col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4050
SELECT DISTINCT COUNT ( + col2 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL ( ( 18 ) ) FROM tab2
----
18
18
18

query I rowsort
SELECT DISTINCT - 1 + col1 FROM tab2 WHERE ( + col1 ) NOT IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 + + col0 col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT COUNT( * ) + - 76 col2 FROM tab0
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4054
SELECT COUNT ( * ) + - 76 col2 FROM tab0
----
-73

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 ) NOT BETWEEN ( 12 * - 13 ) AND 17 - 89
----

query I rowsort
SELECT ALL + 38 - col2 FROM tab1
----
-21
-30
-58

query I rowsort
SELECT ALL col2 - col0 * - col1 FROM tab0 WHERE ( + col1 / - col1 + 82 ) IS NOT NULL
----
1262
1837
196

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 - - col1 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4059
SELECT - ( 71 ) - CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-4059
SELECT - ( 71 ) - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4060
SELECT col1 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4060
SELECT col1 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT NULL IN ( - col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 <> ( NULL )
----

query I rowsort
SELECT col2 / col2 AS col0 FROM tab1 WHERE ( - 31 + + 95 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 75 * col1 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 + + 49 col1 FROM tab0
----
127
127
127

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL col0 + col1 AS col1 FROM tab1 WHERE NOT + col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( - 11 ) FROM tab0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT COUNT( DISTINCT col0 ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4069
SELECT COUNT ( DISTINCT col0 ) FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT COUNT( * ) * 95 FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-4070
SELECT COUNT ( * ) * 95 FROM tab1
----
285

query I rowsort
SELECT ALL + col0 * + ( col2 ) + + col1 / + col1 FROM tab1 WHERE col0 / 37 IS NULL
----

query I rowsort
SELECT - 95 * + col2 FROM tab0
----
-4465
-9405
-950

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT COUNT( * ) * - 60 FROM tab2
----
-180

skipif mysql # not compatible
query I rowsort label-4074
SELECT COUNT ( * ) * - 60 FROM tab2
----
-180

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 + - 79 / + 76 ) = - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 97 col1 FROM tab1 AS cor0
----
5723
6596
9312

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT - 72 * + COUNT( * ) col2 FROM tab0
----
-216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4077
SELECT - 72 * + COUNT ( * ) col2 FROM tab0
----
-216

query I rowsort
SELECT + col1 * 70 AS col2 FROM tab0
----
1470
5670
70

query I rowsort
SELECT DISTINCT col2 * col1 + + col2 AS col1 FROM tab2 WHERE NOT ( NULL ) >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col1 + ( col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 + + col1 * - 31 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4082
SELECT - col2 DIV col0 + 42 FROM tab1
----
41
42
42

skipif mysql # not compatible
query I rowsort label-4082
SELECT - col2 / col0 + 42 FROM tab1
----
41
42
42

query I rowsort
SELECT ( col1 ) + - 8 * col2 FROM tab2 AS cor0 WHERE - col1 = col1 * col0
----

query I rowsort
SELECT DISTINCT - col1 * - 30 AS col2 FROM tab0 AS cor0
----
2430
30
630

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 + 30 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT + - 89 + MAX( ALL + col0 ) col1 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4086
SELECT + - 89 + MAX ( ALL + col0 ) col1 FROM tab2 AS cor0
----
-14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 3 BETWEEN ( col0 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 63 * col0 col2 FROM tab1 AS cor0
----
3227
5360
5780

query I rowsort
SELECT ALL + + 87 + 95 FROM tab1 AS cor0
----
182
182
182

onlyif mysql # DIV for integer division: 
query I rowsort label-4090
SELECT DISTINCT + 70 + 93 DIV 7 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-4090
SELECT DISTINCT + 70 + 93 / 7 FROM tab0 AS cor0
----
83

query I rowsort
SELECT + + ( - col0 ) + 51 AS col1 FROM tab2 AS cor0
----
-13
-24
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col2 + + col0 NOT IN ( + col2 * col2 )
----

query I rowsort
SELECT DISTINCT 3 FROM tab2 WHERE ( + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 90 + + 99 + + 42 * + col0 FROM tab2
----
2121
2877
3339

query I rowsort
SELECT ALL + col1 + - - col2 + + col0 FROM tab2
----
120
181
200

query I rowsort
SELECT DISTINCT - ( + col1 ) * + col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN NULL AND 29
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4099
SELECT DISTINCT SUM( ALL + col0 ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4099
SELECT DISTINCT SUM ( ALL + col0 ) AS col0 FROM tab2
----
185

query I rowsort
SELECT ( col1 ) - 81 FROM tab1
----
-34
-67
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4101
SELECT - ( col2 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4101
SELECT - ( col2 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4102
SELECT 62 * - MAX( + 62 ) AS col0 FROM tab0 AS cor0
----
-3844

skipif mysql # not compatible
query I rowsort label-4102
SELECT 62 * - MAX ( + 62 ) AS col0 FROM tab0 AS cor0
----
-3844

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT MIN( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4103
SELECT MIN ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT ALL - ( + - COUNT( - ( col2 ) ) ) * 85 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-4104
SELECT ALL - ( + - COUNT ( - ( col2 ) ) ) * 85 FROM tab0
----
255

query I rowsort
SELECT ALL + + 77 AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4106
SELECT DISTINCT + CAST( + col2 AS SIGNED ) * col0 * - col0 + - 98 AS col2 FROM tab2
----
-163938
-326348
-48766

skipif mysql # not compatible
query I rowsort label-4106
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) * col0 * - col0 + - 98 AS col2 FROM tab2
----
-163938
-326348
-48766

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 73 col2 FROM tab1
----
-73
-73
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 94 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 52 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT ALL 8 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ffc5b4c98b57ae546521175995c49c57

query I rowsort
SELECT + ( - - col1 ) AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT ALL - - COUNT( - 51 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL - - COUNT ( - 51 ) AS col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT - col0 AS col1, + col1 + 39 FROM tab1 AS cor0
----
-51
53
-85
44
-91
86

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 ) NOT BETWEEN ( NULL ) AND + 4 + + 60
----
85
5
59
91
47
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4115
SELECT ALL - 7 * - - col0 DIV + - col0 + col0 * + 13 FROM tab0 cor0
----
1138
1268
202

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL - 7 * - - col0 / + - col0 + col0 * + 13 FROM tab0 cor0
----
1138
1268
202

query I rowsort
SELECT ALL + 59 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 11 col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col2 * - col2 FROM tab2 WHERE NOT + - 15 + col1 + col1 IN ( - col2 )
----
-1600
-3364
-529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4119
SELECT + CAST( + col1 AS SIGNED ) FROM tab1 WHERE NOT NULL IN ( - - col2 )
----

skipif mysql # not compatible
query I rowsort label-4119
SELECT + CAST ( + col1 AS INTEGER ) FROM tab1 WHERE NOT NULL IN ( - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT ALL + ( + SUM( ALL ( - col2 ) ) ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL + ( + SUM ( ALL ( - col2 ) ) ) FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4121
SELECT + 48 * - ( + - COUNT( * ) ) * - COUNT( * ) FROM tab2
----
-432

skipif mysql # not compatible
query I rowsort label-4121
SELECT + 48 * - ( + - COUNT ( * ) ) * - COUNT ( * ) FROM tab2
----
-432

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4123
SELECT ALL COUNT( ALL ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL COUNT ( ALL ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + 16 * col1 AS col2 FROM tab0 AS cor0
----
1296
16
336

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * col2 NOT BETWEEN + col0 * col1 AND NULL
----

query I rowsort
SELECT ALL - col0 - + 2 AS col1 FROM tab1
----
-53
-87
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT DISTINCT 24 + + 53 + ( COUNT( DISTINCT 97 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
78

skipif mysql # not compatible
query I rowsort label-4127
SELECT DISTINCT 24 + + 53 + ( COUNT ( DISTINCT 97 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
78

query I rowsort
SELECT DISTINCT + 61 * + - 49 FROM tab1 AS cor0
----
-2989

query I rowsort
SELECT DISTINCT - + ( + col0 ) * + col0 AS col1 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4130
SELECT ALL - 22 + 4 + + - CAST( + 72 AS SIGNED ) col0 FROM tab0 AS cor0
----
-90
-90
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4130
SELECT ALL - 22 + 4 + + - CAST ( + 72 AS INTEGER ) col0 FROM tab0 AS cor0
----
-90
-90
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4131
SELECT ALL CAST( - - ( + 23 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL CAST ( - - ( + 23 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
23
23
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 WHERE ( + col2 NOT BETWEEN NULL AND - col0 )
----
51
85
91

query I rowsort
SELECT - - 16 AS col0 FROM tab1, tab1 AS cor0 WHERE + 28 IS NOT NULL
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT DISTINCT + COUNT( * ) * + + COUNT( * ) + - + 63 AS col2 FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-4134
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ) + - + 63 AS col2 FROM tab0
----
-54

query I rowsort
SELECT DISTINCT - col1 - + col2 + + 21 AS col2 FROM tab2
----
-104
-53
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4136
SELECT - CAST( NULL AS SIGNED ) + - AVG ( + col1 ) - - 46 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4136
SELECT - CAST ( NULL AS INTEGER ) + - AVG ( + col1 ) - - 46 FROM tab2
----
NULL

query II rowsort
SELECT ALL 73 + - + 99 AS col2, - col0 FROM tab2
----
-26
-46
-26
-64
-26
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT + MIN( + + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-4138
SELECT + MIN ( + + col1 ) FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT DISTINCT - ( + - COUNT( * ) ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4139
SELECT DISTINCT - ( + - COUNT ( * ) ) col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT - SUM( 11 ) FROM tab2, tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4140
SELECT - SUM ( 11 ) FROM tab2, tab1 AS cor0
----
-99

query I rowsort
SELECT 85 AS col1 FROM tab0 WHERE NOT col0 * 36 BETWEEN NULL AND ( - 10 )
----
85
85
85

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4142
SELECT ( + COUNT( * ) ) AS col2 FROM tab1 WHERE NOT NULL >= - col2 + CAST( + + col1 AS DECIMAL ) * - - col1
----
0

skipif mysql # not compatible
query I rowsort label-4142
SELECT ( + COUNT ( * ) ) AS col2 FROM tab1 WHERE NOT NULL >= - col2 + CAST ( + + col1 AS REAL ) * - - col1
----
0

query II rowsort
SELECT ALL - col0 AS col1, + col0 + + - col2 * + + col0 FROM tab1
----
-51
-4845
-85
-4930
-91
-6097

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 57 * + + 85 col1 FROM tab2 AS cor0
----
-4845
-4845
-4845

onlyif mysql # aggregate syntax: 
query II rowsort label-4145
SELECT COUNT( * ) AS col2, - 66 * 36 AS col0 FROM tab2 AS cor0
----
3
-2376

skipif mysql # not compatible
query II rowsort label-4145
SELECT COUNT ( * ) AS col2, - 66 * 36 AS col0 FROM tab2 AS cor0
----
3
-2376

query II rowsort
SELECT ALL col0 AS col2, - col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 col0 FROM tab0 AS cor0
----
-68
-68
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 57 col1, - col2 FROM tab2 AS cor0
----
57
-23
57
-40
57
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4149
SELECT col1 * - - CAST( - + 38 AS SIGNED ) AS col1, 39 FROM tab1
----
-1786
39
-190
39
-532
39

skipif mysql # not compatible
query II rowsort label-4149
SELECT col1 * - - CAST ( - + 38 AS INTEGER ) AS col1, 39 FROM tab1
----
-1786
39
-190
39
-532
39

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT + ( - 17 ) + - - 70 = + 45
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT + COUNT( + col0 ) * COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4151
SELECT + COUNT ( + col0 ) * COUNT ( * ) FROM tab1 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 col0 FROM tab1 AS cor0
----
-8
-8
-8

query II rowsort
SELECT DISTINCT col0, 83 FROM tab2
----
46
83
64
83
75
83

query I rowsort
SELECT ALL + col1 + - 61 FROM tab0
----
-40
-60
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4155
SELECT 9 + 22 + CAST( + - col1 AS SIGNED ) + + col0 AS col2 FROM tab1
----
111
68
75

skipif mysql # not compatible
query I rowsort label-4155
SELECT 9 + 22 + CAST ( + - col1 AS INTEGER ) + + col0 AS col2 FROM tab1
----
111
68
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4156
SELECT DISTINCT + ( + + CAST( - + col1 AS SIGNED ) ) AS col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT + ( + + CAST ( - + col1 AS INTEGER ) ) AS col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - + col1 FROM tab0 WHERE NOT + col1 >= col1
----

query I rowsort
SELECT ALL - col0 + ( - col1 ) AS col0 FROM tab1
----
-138
-65
-90

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 91 NOT BETWEEN NULL AND + col1 OR ( ( + 62 ) / 36 ) IS NULL
----

query II rowsort
SELECT DISTINCT 85 AS col2, col2 + - 56 + - - col2 AS col0 FROM tab0
----
85
-36
85
142
85
38

query I rowsort
SELECT ALL 66 * - + col1 FROM tab0
----
-1386
-5346
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4162
SELECT - 69 AS col2, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE + 10 IS NULL
----

skipif mysql # not compatible
query II rowsort label-4162
SELECT - 69 AS col2, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE + 10 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4163
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) + + 57 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT - + CAST ( NULL AS REAL ) + + 57 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4164
SELECT col1 + - col2 * col2 * col0 * - - CAST( 88 AS SIGNED ) AS col0 FROM tab1
----
-26037875
-37028945
-41361394

skipif mysql # not compatible
query I rowsort label-4164
SELECT col1 + - col2 * col2 * col0 * - - CAST ( 88 AS INTEGER ) AS col0 FROM tab1
----
-26037875
-37028945
-41361394

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT - + 39 + - - MAX( DISTINCT + 77 ) FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-4165
SELECT - + 39 + - - MAX ( DISTINCT + 77 ) FROM tab2 AS cor0
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - col1 col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4167
SELECT ALL + - col0 DIV 23 AS col2 FROM tab2 AS cor0
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL + - col0 / 23 AS col2 FROM tab2 AS cor0
----
-2
-2
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > + + 71
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4169
SELECT ALL - COUNT( * ) DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4169
SELECT ALL - COUNT ( * ) / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT + MAX( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE col1 * ( - 3 ) BETWEEN - col0 AND ( + 63 + + col2 * + col0 )
----
21

skipif mysql # not compatible
query I rowsort label-4170
SELECT + MAX ( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE col1 * ( - 3 ) BETWEEN - col0 AND ( + 63 + + col2 * + col0 )
----
21

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 93 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT + ( + + COUNT( ALL ( + - col2 ) ) ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4172
SELECT + ( + + COUNT ( ALL ( + - col2 ) ) ) AS col2 FROM tab1 cor0
----
3

query II rowsort
SELECT + col0, col1 * - 44 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + + 61 * + 26 * + - col0 * - ( + + col2 ) * + ( + col0 ) AS col0, - col2 * + 2 FROM tab1 AS cor0
----
396017856
-192
676072150
-118
893089288
-136

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT ALL - + COUNT( * ) FROM tab2 WHERE NOT + col2 NOT BETWEEN + col2 + 36 AND 47
----
0

skipif mysql # not compatible
query I rowsort label-4175
SELECT ALL - + COUNT ( * ) FROM tab2 WHERE NOT + col2 NOT BETWEEN + col2 + 36 AND 47
----
0

query II rowsort
SELECT ALL + col2, 72 FROM tab1
----
59
72
68
72
96
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4177
SELECT ALL CAST( NULL AS SIGNED ), + col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-4177
SELECT ALL CAST ( NULL AS INTEGER ), + col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4178
SELECT DISTINCT - - ( + SUM( ALL - col0 ) ) FROM tab0 WHERE + col0 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT - - ( + SUM ( ALL - col0 ) ) FROM tab0 WHERE + col0 = NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 * + 64 col2 FROM tab2
----
256
256
256

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT MAX( + 88 ) AS col2 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-4180
SELECT MAX ( + 88 ) AS col2 FROM tab2
----
88

query I rowsort
SELECT DISTINCT + 87 AS col0 FROM tab2 WHERE - - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4182
SELECT DISTINCT - SUM( + col1 ) col2 FROM tab2
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4182
SELECT DISTINCT - SUM ( + col1 ) col2 FROM tab2
----
-195

query I rowsort
SELECT ALL + col0 * - 19 FROM tab2
----
-1216
-1425
-874

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4184
SELECT ALL + ( + 93 ) * - - CAST( NULL AS SIGNED ) - + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL + ( + 93 ) * - - CAST ( NULL AS INTEGER ) - + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4185
SELECT col1 * - col0 FROM tab2 cor0 WHERE NOT - col2 / - col2 + + col1 + + ( + - 23 ) + - CAST( NULL AS SIGNED ) + + col1 * + + col1 IN ( + + col2 / 76 )
----

skipif mysql # not compatible
query I rowsort label-4185
SELECT col1 * - col0 FROM tab2 cor0 WHERE NOT - col2 / - col2 + + col1 + + ( + - 23 ) + - CAST ( NULL AS INTEGER ) + + col1 * + + col1 IN ( + + col2 / 76 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4186
SELECT - + col2, - col1 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-4186
SELECT - + col2, - col1 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT ALL COUNT( * ) * + + 43 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL COUNT ( * ) * + + 43 FROM tab2
----
129

query I rowsort
SELECT 76 + - col0 AS col0 FROM tab0
----
-11
-21
61

query I rowsort
SELECT + col0 * 8 AS col1 FROM tab2
----
368
512
600

query I rowsort
SELECT - - 94 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

onlyif mysql # DIV for integer division: 
query I rowsort label-4191
SELECT 24 DIV + - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4191
SELECT 24 / + - col0 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2, + col2 col0 FROM tab2 cor0
----
23
23
40
40
58
58

query II rowsort
SELECT DISTINCT - 77, + col0 FROM tab1 cor0
----
-77
51
-77
85
-77
91

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 + + + col2 + - 28 / - 83 + col1 + + 64 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * col2 + - + col0 FROM tab2 AS cor0
----
-1219
-3144
-3961

query I rowsort
SELECT + 90 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - col0 FROM tab1 WHERE NULL NOT BETWEEN - col0 AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 76 + + 5 col2 FROM tab1
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4199
SELECT ALL - CAST( - col1 AS SIGNED ) + col1 * col0 FROM tab0
----
1296
1848
98

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL - CAST ( - col1 AS INTEGER ) + col1 * col0 FROM tab0
----
1296
1848
98

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 * col1 - col1 NOT IN ( - col1 * col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col2 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 9 + - + 5 * + - 71 FROM tab2
----
364
364
364

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 col1 FROM tab0
----
-11

query I rowsort
SELECT + col1 + 30 AS col2 FROM tab1 AS cor0
----
35
44
77

query I rowsort
SELECT DISTINCT - ( + - col1 ) + + + 52 FROM tab1 AS cor0
----
57
66
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT DISTINCT COUNT( * ) - - 64 col0 FROM tab2
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4206
SELECT DISTINCT COUNT ( * ) - - 64 col0 FROM tab2
----
67

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN - col0 * col1 AND + col2
----

query II rowsort
SELECT 84 AS col0, - col0 AS col2 FROM tab0
----
84
-15
84
-87
84
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4209
SELECT + 52 DIV COUNT( * ) FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-4209
SELECT + 52 / COUNT ( * ) FROM tab1 AS cor0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4210
SELECT + CAST( + col0 AS SIGNED ) * + ( 29 ) * - - 54 + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4210
SELECT + CAST ( + col0 AS INTEGER ) * + ( 29 ) * - - 54 + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT DISTINCT + MAX( + col1 ) col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4211
SELECT DISTINCT + MAX ( + col1 ) col0 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT - COUNT( * ) * - 51 AS col1 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4212
SELECT - COUNT ( * ) * - 51 AS col1 FROM tab2 AS cor0
----
153

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4213
SELECT + ( 69 ) DIV col0 * + CAST( + ( + - col1 ) AS SIGNED ) FROM tab2
----
-51
-77
0

skipif mysql # not compatible
query I rowsort label-4213
SELECT + ( 69 ) / col0 * + CAST ( + ( + - col1 ) AS INTEGER ) FROM tab2
----
-51
-77
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4214
SELECT DISTINCT - 71 DIV + 7 AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-4214
SELECT DISTINCT - 71 / + 7 AS col0 FROM tab0
----
-10

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col0 + + col2 <= ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + 49 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * + 19 AS col0 FROM tab0
----
-1539
-19
-399

query II rowsort
SELECT DISTINCT - 36 + - 27 * + - 59 AS col2, 35 AS col1 FROM tab2 WHERE + col1 NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT ALL + MIN( - 41 ) FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-4219
SELECT ALL + MIN ( - 41 ) FROM tab1 AS cor0
----
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4220
SELECT + COUNT( * ) DIV + + 10 AS col1 FROM tab0 WHERE NOT + - CAST( NULL AS SIGNED ) IN ( - col2 DIV + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4220
SELECT + COUNT ( * ) / + + 10 AS col1 FROM tab0 WHERE NOT + - CAST ( NULL AS INTEGER ) IN ( - col2 / + col0 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4221
SELECT ALL - col2 / + col1 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4221
SELECT ALL - col2 / + col1 * + CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4222
SELECT DISTINCT + col1 DIV + - CAST( + - ( - - 5 ) AS SIGNED ) FROM tab2
----
10
13
15

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT + col1 / + - CAST ( + - ( - - 5 ) AS INTEGER ) FROM tab2
----
10
13
15

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <= - 25 / + 8
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4224
SELECT - col2 DIV - + 20 - - ( - - ( + 26 ) ) + col0 * - ( - ( + col0 ) ) * 76 AS col0 FROM tab2 cor0
----
160843
311324
427528

skipif mysql # not compatible
query I rowsort label-4224
SELECT - col2 / - + 20 - - ( - - ( + 26 ) ) + col0 * - ( - ( + col0 ) ) * 76 AS col0 FROM tab2 cor0
----
160843
311324
427528

query I rowsort
SELECT ALL + col0 + - 69 FROM tab0 AS cor0
----
-54
18
28

query I rowsort
SELECT - + 52 * col2 + + + 73 AS col1 FROM tab0 AS cor0
----
-2371
-447
-5075

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4227
SELECT ALL - - MIN( col2 ) + - COUNT( * ) / + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4227
SELECT ALL - - MIN ( col2 ) + - COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4228
SELECT + col0 + - - 78 DIV - + 67 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-4228
SELECT + col0 + - - 78 / - + 67 FROM tab2
----
45
63
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4229
SELECT ALL + col2 * CAST( NULL AS SIGNED ) * - + col1 + - col0 FROM tab1 WHERE NOT + + col1 + + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4229
SELECT ALL + col2 * CAST ( NULL AS INTEGER ) * - + col1 + - col0 FROM tab1 WHERE NOT + + col1 + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4230
SELECT DISTINCT + CAST( - + col1 AS SIGNED ) AS col0, + ( ( - 52 ) ) FROM tab0
----
-1
-52
-21
-52
-81
-52

skipif mysql # not compatible
query II rowsort label-4230
SELECT DISTINCT + CAST ( - + col1 AS INTEGER ) AS col0, + ( ( - 52 ) ) FROM tab0
----
-1
-52
-21
-52
-81
-52

query I rowsort
SELECT DISTINCT col1 + - 19 + col2 AS col2 FROM tab1
----
45
91
96

query III rowsort
SELECT * FROM tab0 WHERE + 79 + + 42 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT DISTINCT + MAX( DISTINCT ( + 96 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4233
SELECT DISTINCT + MAX ( DISTINCT ( + 96 ) ) FROM tab1
----
96

query II rowsort
SELECT + 52, col0 + + col1 AS col0 FROM tab2
----
52
141
52
142
52
97

query I rowsort
SELECT - 84 * - 70 AS col1 FROM tab0 AS cor0
----
5880
5880
5880

query II rowsort
SELECT ALL - - col1, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # DIV for integer division: 
query II rowsort label-4237
SELECT DISTINCT 82, - col2 DIV + + 12 AS col2 FROM tab0 AS cor0
----
82
-3
82
-8
82
0

skipif mysql # not compatible
query II rowsort label-4237
SELECT DISTINCT 82, - col2 / + + 12 AS col2 FROM tab0 AS cor0
----
82
-3
82
-8
82
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4238
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL BETWEEN + CAST( NULL AS SIGNED ) AND - col2 * + col2
----

skipif mysql # not compatible
query III rowsort label-4238
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL BETWEEN + CAST ( NULL AS INTEGER ) AND - col2 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 25 ) col1 FROM tab0
----
-25
-25
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4240
SELECT 73 AS col1, 36 * CAST( NULL AS SIGNED ) * col0 * + 3 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
73
NULL
73
NULL
73
NULL

skipif mysql # not compatible
query II rowsort label-4240
SELECT 73 AS col1, 36 * CAST ( NULL AS INTEGER ) * col0 * + 3 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
73
NULL
73
NULL
73
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) + - 31 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 FROM tab0 cor0 WHERE NOT - col0 IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE 55 * - col1 IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4244
SELECT - + CAST( + col0 AS SIGNED ) AS col1, - col2 FROM tab2 cor0
----
-46
-23
-64
-40
-75
-58

skipif mysql # not compatible
query II rowsort label-4244
SELECT - + CAST ( + col0 AS INTEGER ) AS col1, - col2 FROM tab2 cor0
----
-46
-23
-64
-40
-75
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4245
SELECT DISTINCT + 57 * - CAST( + COUNT( + col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT + 57 * - CAST ( + COUNT ( + col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-171

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 15 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col1 * col0 - + ( + - col0 ) FROM tab1 AS cor0
----
-340
-4186
-663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4248
SELECT DISTINCT + 93 AS col1 FROM tab0 WHERE NOT - + CAST( NULL AS SIGNED ) IS NOT NULL
----
93

skipif mysql # not compatible
query I rowsort label-4248
SELECT DISTINCT + 93 AS col1 FROM tab0 WHERE NOT - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4249
SELECT ALL - col2 - + ( col1 ) + col1 col1, + 72 - + 47 FROM tab1 WHERE - col0 * ( - 2 ) + - col1 + + 80 BETWEEN - 13 AND + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4249
SELECT ALL - col2 - + ( col1 ) + col1 col1, + 72 - + 47 FROM tab1 WHERE - col0 * ( - 2 ) + - col1 + + 80 BETWEEN - 13 AND + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - col0 AS col1, col0 FROM tab1
----
-51
51
-85
85
-91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, col0 + - + 29 * col0 AS col1 FROM tab0
----
-15
-420
-87
-2436
-97
-2716

query II rowsort
SELECT DISTINCT col1 AS col1, + col1 * + 91 * + col1 * - 30 AS col0 FROM tab0 AS cor0
----
1
-2730
21
-1203930
81
-17911530

query I rowsort
SELECT ALL + col2 * - 11 FROM tab0 cor0
----
-1089
-110
-517

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 35 col2 FROM tab1 WHERE NULL IS NULL
----
35
35
35

onlyif mysql # DIV for integer division: 
query I rowsort label-4256
SELECT ALL + col1 * + ( + ( + col1 ) ) + + + col1 DIV + - col2 FROM tab0 AS cor0
----
1
439
6560

skipif mysql # not compatible
query I rowsort label-4256
SELECT ALL + col1 * + ( + ( + col1 ) ) + + + col1 / + - col2 FROM tab0 AS cor0
----
1
439
6560

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 AS cor0 WHERE NOT 38 = col1 * - + col0
----
1
21
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < 57
----

query I rowsort
SELECT DISTINCT + col0 * + 44 + - col1 FROM tab1 cor0
----
2230
3735
3957

query II rowsort
SELECT ALL - col2 + + col2 AS col0, col0 * - 0 * + col1 FROM tab0 AS cor0
----
0
0
0
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 28 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE - col0 * + 34 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 - col0 + - col1 AS col0 FROM tab0
----
-49
-98
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4264
SELECT - 55 * + + AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) * - - 59 * - 62 - 65 - - + 85 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4264
SELECT - 55 * + + AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) * - - 59 * - 62 - 65 - - + 85 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col0 - + col0 AS col0 FROM tab1
----
-102
-170
-182

query I rowsort
SELECT DISTINCT 96 + - - col2 * col1 * + col0 AS col0 FROM tab2
----
197216
291546
54054

query I rowsort
SELECT DISTINCT + col1 + + - 63 FROM tab1
----
-16
-49
-58

query I rowsort
SELECT DISTINCT + 36 * - col1 FROM tab0
----
-2916
-36
-756

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 30 * + + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 - + + col2 * col1 col2 FROM tab1
----
-1395
-3287
-380

query I rowsort
SELECT 60 + - - ( + + 71 ) * 22 FROM tab0
----
1622
1622
1622

query I rowsort
SELECT DISTINCT + 37 AS col1 FROM tab2 cor0
----
37

query II rowsort
SELECT - - col1 * - ( + col2 ) AS col0, col1 FROM tab1 AS cor0
----
-1344
14
-295
5
-3196
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4274
SELECT - + COUNT( * ) * COUNT( * ) - 72 + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-144

skipif mysql # not compatible
query I rowsort label-4274
SELECT - + COUNT ( * ) * COUNT ( * ) - 72 + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-144

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT ( NOT ( + + col0 * + col2 * + col0 + 11 ) <= - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + ( + 34 ) FROM tab2
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT DISTINCT + - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4277
SELECT DISTINCT + - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4278
SELECT DISTINCT + + 12 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4278
SELECT DISTINCT + + 12 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query II rowsort
SELECT DISTINCT - 5 AS col1, 5 * + + 69 + col0 AS col0 FROM tab2
----
-5
391
-5
409
-5
420

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT DISTINCT + - COUNT( 14 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4280
SELECT DISTINCT + - COUNT ( 14 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT DISTINCT - + MIN( + - 58 ) AS col2 FROM tab0 cor0
----
58

skipif mysql # not compatible
query I rowsort label-4281
SELECT DISTINCT - + MIN ( + - 58 ) AS col2 FROM tab0 cor0
----
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 65 <> + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4283
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4283
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4284
SELECT CAST( - - CAST( - - 31 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
31
31
31

skipif mysql # not compatible
query I rowsort label-4284
SELECT CAST ( - - CAST ( - - 31 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
31
31
31

query I rowsort
SELECT - 56 + + 18 FROM tab1 AS cor0 WHERE NOT NULL > col1 * + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4286
SELECT CAST( - col0 AS SIGNED ) AS col2 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4286
SELECT CAST ( - col0 AS INTEGER ) AS col2 FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4287
SELECT DISTINCT - - CAST( NULL AS SIGNED ), + col1 * + + col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
441
NULL
6561

skipif mysql # not compatible
query II rowsort label-4287
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), + col1 * + + col1 AS col0 FROM tab0 AS cor0
----
NULL
1
NULL
441
NULL
6561

query I rowsort
SELECT ALL - 0 * - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT col2 * col2 + - 33 FROM tab2 AS cor0
----
1567
3331
496

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4290
SELECT - CAST( - - col2 AS SIGNED ) AS col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4290
SELECT - CAST ( - - col2 AS INTEGER ) AS col1 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4291
SELECT ( + ( + CAST( NULL AS SIGNED ) ) ) / - + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4291
SELECT ( + ( + CAST ( NULL AS INTEGER ) ) ) / - + col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + 46 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0 * 70, col1 * + + col1 AS col2 FROM tab1
----
3570
196
5950
25
6370
2209

query II rowsort
SELECT DISTINCT - col1 + - col0, col0 FROM tab2 AS cor0
----
-141
64
-142
75
-97
46

query I rowsort
SELECT ALL + col1 * - 2 FROM tab2 AS cor0
----
-102
-134
-154

query II rowsort
SELECT DISTINCT 80 + - ( 68 ), + col0 FROM tab0 AS cor0
----
12
15
12
87
12
97

query I rowsort
SELECT DISTINCT col0 + 27 FROM tab0 AS cor0
----
114
124
42

query I rowsort
SELECT + + col1 * + col1 + + col1 + + + col0 FROM tab2 AS cor0
----
2698
4631
6070

query I rowsort
SELECT + col0 + 28 AS col2 FROM tab2 AS cor0
----
103
74
92

query I rowsort
SELECT ALL + col2 - 27 AS col0 FROM tab0
----
-17
20
72

query I rowsort
SELECT DISTINCT col1 + + 93 + - col0 * 75 - - + 94 * 16 FROM tab1
----
-2214
-4773
-5181

query I rowsort
SELECT + + 66 * - ( col0 ) * - + col1 - + - col1 FROM tab2 WHERE ( - col2 ) < NULL
----

query II rowsort
SELECT ALL - col2 - 72, - col2 AS col2 FROM tab2
----
-112
-40
-130
-58
-95
-23

query I rowsort
SELECT ALL 4 * + ( - + ( - 9 ) ) + + + col1 AS col2 FROM tab0
----
117
37
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT COUNT( ALL - ( + + col2 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4305
SELECT COUNT ( ALL - ( + + col2 ) ) FROM tab2
----
3

query I rowsort
SELECT ALL - col1 - - 39 AS col1 FROM tab1
----
-8
25
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT ALL + - 68 * - COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL + - 68 * - COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0
----
201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4308
SELECT + col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4308
SELECT + col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 - - - col2 + - 82 + + col0 * 26 * - col0 FROM tab0 AS cor0
----
-196799
-244718
-5964

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT - SUM( 22 ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-198

skipif mysql # not compatible
query I rowsort label-4310
SELECT - SUM ( 22 ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT ALL - - SUM( DISTINCT + col1 ) col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4311
SELECT ALL - - SUM ( DISTINCT + col1 ) col2 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT - COUNT( - + col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4312
SELECT - COUNT ( - + col0 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4313
SELECT CAST( NULL AS SIGNED ), + 17 - col1 * col2 * - + 11 AS col0 FROM tab2 AS cor0 WHERE NOT col2 + col1 * - col0 IS NULL
----
NULL
12920
NULL
33897
NULL
42763

skipif mysql # not compatible
query II rowsort label-4313
SELECT CAST ( NULL AS INTEGER ), + 17 - col1 * col2 * - + 11 AS col0 FROM tab2 AS cor0 WHERE NOT col2 + col1 * - col0 IS NULL
----
NULL
12920
NULL
33897
NULL
42763

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 - + ( col2 ) / + 72 - + col2 / - - col2 IS NULL
----

query I rowsort
SELECT - 52 * - col2 FROM tab0
----
2444
5148
520

query I rowsort
SELECT DISTINCT 99 * - - col0 AS col2 FROM tab0
----
1485
8613
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT col1 * + CAST( NULL AS SIGNED ) * - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT col1 * + CAST ( NULL AS INTEGER ) * - col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 53 + - 4 AS col0 FROM tab1 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4319
SELECT - + 23 * - COUNT( * ) + - - COUNT( * ) + 67 DIV + 19 AS col2 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4319
SELECT - + 23 * - COUNT ( * ) + - - COUNT ( * ) + 67 / + 19 AS col2 FROM tab1 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4320
SELECT ALL - COUNT( * ) col1 FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4320
SELECT ALL - COUNT ( * ) col1 FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT 6 * ( - MAX( 56 ) ) FROM tab1
----
-336

skipif mysql # not compatible
query I rowsort label-4321
SELECT 6 * ( - MAX ( 56 ) ) FROM tab1
----
-336

query III rowsort
SELECT * FROM tab2 WHERE + - 51 * 52 * col2 <= NULL
----

query I rowsort
SELECT 41 AS col2 FROM tab0 AS cor0 WHERE col0 / + - 57 IS NOT NULL
----
41
41
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4324
SELECT + CAST( NULL AS SIGNED ) * + 93 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT + CAST ( NULL AS INTEGER ) * + 93 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 - - 12 + + 11 FROM tab1 AS cor0
----
-28
-62
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4326
SELECT - COUNT( * ) - + + CAST( - AVG ( ( - 84 ) ) AS SIGNED ) * - 8 FROM tab0 AS cor0
----
669

skipif mysql # not compatible
query I rowsort label-4326
SELECT - COUNT ( * ) - + + CAST ( - AVG ( ( - 84 ) ) AS INTEGER ) * - 8 FROM tab0 AS cor0
----
669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 45 col1 FROM tab0 AS cor0
----
-2
-54
35

query I rowsort
SELECT ALL col2 - 41 FROM tab1
----
18
27
55

query I rowsort
SELECT ALL - col0 + - + col0 AS col0 FROM tab2
----
-128
-150
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4330
SELECT - COUNT( + ( - - col0 ) ) + MAX( + col0 ) * + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT - COUNT ( + ( - - col0 ) ) + MAX ( + col0 ) * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT - col1 + - 28 FROM tab1
----
-33
-42
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT - 71 + COUNT( * ) FROM tab0
----
-68

skipif mysql # not compatible
query I rowsort label-4332
SELECT - 71 + COUNT ( * ) FROM tab0
----
-68

query I rowsort
SELECT col2 + + col2 * 83 FROM tab0
----
3948
8316
840

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 / + col2 * + col0 col1 FROM tab2 WHERE NULL BETWEEN 46 AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4335
SELECT DISTINCT 45 DIV - - 18 - + col0 col1 FROM tab0
----
-13
-85
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4335
SELECT DISTINCT 45 / - - 18 - + col0 col1 FROM tab0
----
-13
-85
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT DISTINCT - COUNT( * ) + + + 52 col2 FROM tab1
----
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4336
SELECT DISTINCT - COUNT ( * ) + + + 52 col2 FROM tab1
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-4337
SELECT ALL - ( + col2 ) * + - col2 + + - 47 * col0 DIV + col0 + - col0 + + col0 AS col2 FROM tab0
----
2162
53
9754

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL - ( + col2 ) * + - col2 + + - 47 * col0 / + col0 + - col0 + + col0 AS col2 FROM tab0
----
2162
53
9754

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 + - + col0 col2 FROM tab0
----
-142
-152
-70

query I rowsort
SELECT DISTINCT col1 - + + col0 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4340
SELECT MIN( ALL + + ( + 63 ) ) col0 FROM tab0
----
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4340
SELECT MIN ( ALL + + ( + 63 ) ) col0 FROM tab0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-4341
SELECT ALL col1 DIV - col1 col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4341
SELECT ALL col1 / - col1 col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT ALL - - COUNT( + - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4342
SELECT ALL - - COUNT ( + - col0 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - - ( - - col1 ) AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT ( - 85 ) * 39 FROM tab2
----
-3315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4345
SELECT DISTINCT + 9 / col2 * + + col0 * - + CAST( NULL AS SIGNED ) * - 33 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4345
SELECT DISTINCT + 9 / col2 * + + col0 * - + CAST ( NULL AS INTEGER ) * - 33 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 89 FROM tab0 cor0
----
89

query I rowsort
SELECT ALL - - 39 FROM tab2 AS cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT + COUNT( * ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4348
SELECT + COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT - 28 * + COUNT( - col2 ) + + COUNT( ALL - 46 ) + + 69 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-4349
SELECT - 28 * + COUNT ( - col2 ) + + COUNT ( ALL - 46 ) + + 69 FROM tab2 AS cor0
----
-12

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * - col1 / + - col0 IS NULL
----

query I rowsort
SELECT + 38 + col0 FROM tab1 AS cor0
----
123
129
89

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 82 > - col0 + 30
----

query I rowsort
SELECT ALL col1 * col2 FROM tab1 WHERE - - col1 / + col1 + - col0 IS NULL
----

query I rowsort
SELECT - - col1 AS col0 FROM tab1 WHERE NOT + + 33 / + col2 <> - - col0 * col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4356
SELECT + CAST( NULL AS SIGNED ) + COUNT( ALL + ( - col0 ) ) * + - 25 * - + 7 / - ( + 87 ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4356
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( ALL + ( - col0 ) ) * + - 25 * - + 7 / - ( + 87 ) col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab2 WHERE NOT - 96 + - 92 IN ( - - col0, col1 * - col0 + - col2, - 8 + col1 + + 83 )
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 - + col1 + - col0 < NULL
----

query I rowsort
SELECT DISTINCT + 47 FROM tab1 WHERE NOT + 46 - - - col2 <= NULL
----

query I rowsort
SELECT DISTINCT + col0 + 57 FROM tab0 AS cor0
----
144
154
72

query I rowsort
SELECT ALL 88 + 74 AS col0 FROM tab0 AS cor0
----
162
162
162

onlyif mysql # DIV for integer division: 
query I rowsort label-4362
SELECT ALL + col0 DIV + col0 + + - col2 AS col1 FROM tab1
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL + col0 / + col0 + + - col2 AS col1 FROM tab1
----
-58
-67
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4363
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT 83 + + + COUNT( * ) col1 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4364
SELECT 83 + + + COUNT ( * ) col1 FROM tab2 AS cor0
----
86

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col2 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4366
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4367
SELECT COUNT( * ) + + 64 + - + 61 AS col2 FROM tab1 AS cor0 WHERE + 50 IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-4367
SELECT COUNT ( * ) + + 64 + - + 61 AS col2 FROM tab1 AS cor0 WHERE + 50 IS NOT NULL
----
6

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 * + 5 * col2 < NULL
----

query II rowsort
SELECT DISTINCT + - col2 * col2 + - - col0 + + - 72, 1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < + col0
----

query I rowsort
SELECT DISTINCT - 47 + col2 AS col0 FROM tab1 AS cor0
----
12
21
49

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + - 21 * 19 + - col0 AS col1 FROM tab0 AS cor0
----
-414
-486
-496

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4373
SELECT * FROM tab0 WHERE - col2 <= + + CAST( NULL AS SIGNED ) * - col1 + - 49
----

skipif mysql # not compatible
query III rowsort label-4373
SELECT * FROM tab0 WHERE - col2 <= + + CAST ( NULL AS INTEGER ) * - col1 + - 49
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + 66 - col1 + 40 * + col1 + - col0 * + col2 * + col1 AS col1, - col0 FROM tab1
----
-24814
-85
-288937
-91
-67932
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4376
SELECT CAST( COUNT( DISTINCT 4 ) AS SIGNED ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4376
SELECT CAST ( COUNT ( DISTINCT 4 ) AS INTEGER ) AS col1 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT COUNT( DISTINCT - col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4377
SELECT COUNT ( DISTINCT - col1 ) AS col0 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 * + 16 col2 FROM tab1
----
1200
1200
1200

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT col2 >= 73 )
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT DISTINCT - 32 * + - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
288

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT - 32 * + - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
288

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4381
SELECT - CAST( NULL AS SIGNED ), SUM( + - col2 ) AS col0 FROM tab1 cor0
----
NULL
-223

skipif mysql # not compatible
query II rowsort label-4381
SELECT - CAST ( NULL AS INTEGER ), SUM ( + - col2 ) AS col0 FROM tab1 cor0
----
NULL
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 71 * + + col1 - + 86, - col0 col0 FROM tab2 AS cor0
----
3535
-46
4671
-75
5381
-64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4383
SELECT ALL + ( - CAST( NULL AS DECIMAL ) ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL + ( - CAST ( NULL AS REAL ) ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4384
SELECT ALL + COUNT( * ), + COUNT( * ) DIV + ( - - COUNT( * ) ) col1 FROM tab0 AS cor0
----
3
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4384
SELECT ALL + COUNT ( * ), + COUNT ( * ) / + ( - - COUNT ( * ) ) col1 FROM tab0 AS cor0
----
3
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 < - - col0
----
75
67
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4386
SELECT DISTINCT - 13 + - ( + col1 ) DIV + - col0 AS col1 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-4386
SELECT DISTINCT - 13 + - ( + col1 ) / + - col0 AS col1 FROM tab1 AS cor0
----
-13

query I rowsort
SELECT DISTINCT + + ( + 24 ) FROM tab1 cor0
----
24

query I rowsort
SELECT DISTINCT + col0 * + 44 - - + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <> - col1 * - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4390
SELECT ALL - col0 + 22 * CAST( NULL AS SIGNED ) * - col0 / col2 * + col1 * - + col1 + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT ALL - col0 + 22 * CAST ( NULL AS INTEGER ) * - col0 / col2 * + col1 * - + col1 + - col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + 20 col0 FROM tab0
----
-1980
-200
-940

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT + COUNT( * ) * + + SUM( + col2 ) FROM tab0
----
468

skipif mysql # not compatible
query I rowsort label-4392
SELECT + COUNT ( * ) * + + SUM ( + col2 ) FROM tab0
----
468

onlyif mysql # DIV for integer division: 
query II rowsort label-4393
SELECT + col2 DIV - + col2, col0 FROM tab2
----
-1
46
-1
64
-1
75

skipif mysql # not compatible
query II rowsort label-4393
SELECT + col2 / - + col2, col0 FROM tab2
----
-1
46
-1
64
-1
75

query I rowsort
SELECT col1 * - col1 + + col0 FROM tab1
----
-145
-2118
60

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 / col2 + + 82 - 56 + - + col2 / + - col2 * 62 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4396
SELECT ALL + + CAST( ( COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4396
SELECT ALL + + CAST ( ( COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT 19, col2 * col0 AS col2 FROM tab0
----
19
705
19
870
19
9603

query I rowsort
SELECT DISTINCT 72 AS col1 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
72

query I rowsort
SELECT - col2 * 59 * col0 AS col0 FROM tab1
----
-288864
-295885
-365092

query I rowsort
SELECT 88 - + 64 FROM tab1 AS cor0
----
24
24
24

onlyif mysql # aggregate syntax: 
query II rowsort label-4401
SELECT DISTINCT + - 35 AS col1, COUNT( * ) FROM tab2 AS cor0
----
-35
3

skipif mysql # not compatible
query II rowsort label-4401
SELECT DISTINCT + - 35 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
-35
3

query I rowsort
SELECT - + col1 - ( + + col1 ) FROM tab1 cor0
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT - SUM( DISTINCT + col1 ) * + 3 AS col1 FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-4403
SELECT - SUM ( DISTINCT + col1 ) * + 3 AS col1 FROM tab1 AS cor0
----
-198

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= - 53
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 6 NOT BETWEEN - col1 AND + 7 * - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT MAX( 8 ) AS col1 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-4406
SELECT MAX ( 8 ) AS col1 FROM tab0
----
8

query II rowsort
SELECT + col0, + col2 AS col1 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + + 26 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4409
SELECT + 17 / col2 + + - col0 FROM tab2 AS cor0 WHERE NOT + col1 - - + 73 / + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-4409
SELECT + 17 / col2 + + - col0 FROM tab2 AS cor0 WHERE NOT + col1 - - + 73 / + CAST ( NULL AS INTEGER ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 * + col0 col2 FROM tab0 AS cor0
----
4002
4462
690

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 79 * col0, + col0 + 17 col1 FROM tab2
----
3634
63
5056
81
5925
92

query II rowsort
SELECT ALL + col0 * + - col0, col2 * - col2 AS col0 FROM tab2
----
-2116
-529
-4096
-1600
-5625
-3364

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4413
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4414
SELECT DISTINCT + CAST( + + 75 AS SIGNED ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4414
SELECT DISTINCT + CAST ( + + 75 AS INTEGER ) FROM tab1 AS cor0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4415
SELECT + CAST( NULL AS SIGNED ) + + SUM( - + col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4415
SELECT + CAST ( NULL AS INTEGER ) + + SUM ( - + col1 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT - - 6 + + 53 - - - COUNT( * ) * - + 91 + COUNT( - col1 ) FROM tab2 AS cor0
----
335

skipif mysql # not compatible
query I rowsort label-4416
SELECT - - 6 + + 53 - - - COUNT ( * ) * - + 91 + COUNT ( - col1 ) FROM tab2 AS cor0
----
335

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 + + 50 <= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + + ( col1 ) + col2 FROM tab1
----
2277
292
84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4419
SELECT - CAST( NULL AS SIGNED ) AS col1, + 50 FROM tab2 WHERE + col1 IS NULL
----

skipif mysql # not compatible
query II rowsort label-4419
SELECT - CAST ( NULL AS INTEGER ) AS col1, + 50 FROM tab2 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4420
SELECT 66 + 99 - + CAST( + col1 AS SIGNED ) FROM tab2
----
114
88
98

skipif mysql # not compatible
query I rowsort label-4420
SELECT 66 + 99 - + CAST ( + col1 AS INTEGER ) FROM tab2
----
114
88
98

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 NOT BETWEEN NULL AND - + ( - col0 ) * col0
----

query I rowsort
SELECT DISTINCT + 31 * + col0 * - col2 + - col0 AS col2 FROM tab2
----
-134925
-32844
-79424

query I rowsort
SELECT 73 * + - col1 AS col2 FROM tab2
----
-3723
-4891
-5621

query I rowsort
SELECT + 83 * 72 + + 12 * + col0 AS col1 FROM tab0 cor0
----
6156
7020
7140

query I rowsort
SELECT - ( - 19 ) * - ( + + 44 ) + + col0 * + col1 AS col2 FROM tab2 AS cor0
----
1510
4092
4189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4426
SELECT ALL - + col1 + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL - + col1 + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4427
SELECT + CAST( NULL AS SIGNED ), - col1 AS col2 FROM tab2 cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-4427
SELECT + CAST ( NULL AS INTEGER ), - col1 AS col2 FROM tab2 cor0
----
NULL
-51
NULL
-67
NULL
-77

query I rowsort
SELECT DISTINCT col2 + + - col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4429
SELECT + col1 - + 51 * - col0 * + - col2 - - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4429
SELECT + col1 - + 51 * - col0 * + - col2 - - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 56 * - col0 + + 51 + + 21 FROM tab2 AS cor0
----
-2504
-3512
-4128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4431
SELECT - col2 * + col0 * - - 14 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IN ( - - CAST( NULL AS SIGNED ) * col2 / + col1 * - CAST( NULL AS SIGNED ), - 50 )
----

skipif mysql # not compatible
query I rowsort label-4431
SELECT - col2 * + col0 * - - 14 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IN ( - - CAST ( NULL AS INTEGER ) * col2 / + col1 * - CAST ( NULL AS INTEGER ), - 50 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4432
SELECT ALL - + CAST( - + 67 AS SIGNED ) + + + 20 AS col0, 19 * - CAST( NULL AS SIGNED ) * - - AVG ( DISTINCT - 5 ) FROM tab1 AS cor0
----
87
NULL

skipif mysql # not compatible
query II rowsort label-4432
SELECT ALL - + CAST ( - + 67 AS INTEGER ) + + + 20 AS col0, 19 * - CAST ( NULL AS INTEGER ) * - - AVG ( DISTINCT - 5 ) FROM tab1 AS cor0
----
87
NULL

query I rowsort
SELECT DISTINCT + col1 + 21 FROM tab2 AS cor0
----
72
88
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT COUNT( DISTINCT + - 79 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-4434
SELECT COUNT ( DISTINCT + - 79 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
1

query I rowsort
SELECT DISTINCT - 55 * + - col0 - - ( col2 ) FROM tab2
----
2553
3560
4183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4436
SELECT - col1 + + CAST( NULL AS SIGNED ) * - ( + + col0 ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4436
SELECT - col1 + + CAST ( NULL AS INTEGER ) * - ( + + col0 ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + - col2 + - + ( - + col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 61 <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT - MAX( + col2 ) * - 57 + - 39 - + COUNT( * ) col0 FROM tab0 AS cor0
----
5601

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4438
SELECT - MAX ( + col2 ) * - 57 + - 39 - + COUNT ( * ) col0 FROM tab0 AS cor0
----
5601

query II rowsort
SELECT + col0 * 12, - col0 AS col1 FROM tab0 AS cor0
----
1044
-87
1164
-97
180
-15

query I rowsort
SELECT - + 13 * - col1 * 66 FROM tab1 AS cor0
----
12012
40326
4290

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4441
SELECT DISTINCT * FROM tab2 WHERE NOT - 79 >= CAST( - col1 AS SIGNED ) * - col0 + 99 + - + 58
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4441
SELECT DISTINCT * FROM tab2 WHERE NOT - 79 >= CAST ( - col1 AS INTEGER ) * - col0 + 99 + - + 58
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - 54 AS col0, col2 FROM tab0
----
-54
10
-54
47
-54
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab2 WHERE NOT + col0 IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4444
SELECT col1 DIV - - 15 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-4444
SELECT col1 / - - 15 FROM tab0
----
0
1
5

query I rowsort
SELECT ALL - + 44 AS col1 FROM tab1 AS cor0
----
-44
-44
-44

query I rowsort
SELECT ALL + 99 * - col1 AS col1 FROM tab1 AS cor0
----
-1386
-4653
-495

onlyif mysql # aggregate syntax: 
query II rowsort label-4447
SELECT DISTINCT 3 AS col1, + MAX( ALL - 21 ) FROM tab2
----
3
-21

skipif mysql # not compatible
query II rowsort label-4447
SELECT DISTINCT 3 AS col1, + MAX ( ALL - 21 ) FROM tab2
----
3
-21

query II rowsort
SELECT col0 * - + col2 AS col0, 43 * + col1 AS col1 FROM tab0
----
-705
3483
-870
903
-9603
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT + MIN( - ( + - col1 ) ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4449
SELECT + MIN ( - ( + - col1 ) ) FROM tab1 AS cor0
----
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4450
SELECT col2 AS col0, CAST( NULL AS DECIMAL ) + + col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-4450
SELECT col2 AS col0, CAST ( NULL AS REAL ) + + col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0 WHERE - col2 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4453
SELECT - SUM( - - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4453
SELECT - SUM ( - - col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT ALL 71 + - MAX( ALL + col2 ) * - - MAX( ALL - - col1 ) FROM tab2 cor0
----
-4395

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL 71 + - MAX ( ALL + col2 ) * - - MAX ( ALL - - col1 ) FROM tab2 cor0
----
-4395

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE + - col0 <> NULL
----

query I rowsort
SELECT 43 + + + col0 * - col0 + 13 AS col1 FROM tab1
----
-2545
-7169
-8225

query I rowsort
SELECT ALL ( + - 62 ) + col0 FROM tab0
----
-47
25
35

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4458
SELECT DISTINCT CAST( + col2 AS SIGNED ) - 73 - - + 35 + + + col0, col0 + + 51 AS col2 FROM tab2
----
31
97
66
115
95
126

skipif mysql # not compatible
query II rowsort label-4458
SELECT DISTINCT CAST ( + col2 AS INTEGER ) - 73 - - + 35 + + + col0, col0 + + 51 AS col2 FROM tab2
----
31
97
66
115
95
126

query II rowsort
SELECT DISTINCT 27 * 61 AS col1, + 93 + + - ( - col2 ) FROM tab0 AS cor0
----
1647
103
1647
140
1647
192

onlyif mysql # DIV for integer division: 
query I rowsort label-4460
SELECT + + col2 DIV - ( - col1 ) AS col2 FROM tab0 cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-4460
SELECT + + col2 / - ( - col1 ) AS col2 FROM tab0 cor0
----
0
0
99

query I rowsort
SELECT ALL col1 - + - col2 AS col2 FROM tab1
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 52 * col0 - - 47 col0 FROM tab0
----
4571
5091
827

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col1 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col2, + col0 * 76 * 2 AS col1 FROM tab1 AS cor0
----
59
12920
68
13832
96
7752

query I rowsort
SELECT ALL + 41 * - col1 FROM tab2 AS cor0 WHERE NULL < col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + - col0 * col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4467
SELECT + CAST( + ( + 60 ) AS SIGNED ) FROM tab1 cor0
----
60
60
60

skipif mysql # not compatible
query I rowsort label-4467
SELECT + CAST ( + ( + 60 ) AS INTEGER ) FROM tab1 cor0
----
60
60
60

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 52 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4469
SELECT ALL 67 DIV + - col2 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-4469
SELECT ALL 67 / + - col2 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4470
SELECT DISTINCT + SUM( ALL + col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4470
SELECT DISTINCT + SUM ( ALL + col2 ) AS col2 FROM tab2
----
121

query I rowsort
SELECT ALL + ( ( + col0 ) ) AS col1 FROM tab0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4473
SELECT DISTINCT + SUM( - col1 ) DIV + 40 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-4473
SELECT DISTINCT + SUM ( - col1 ) / + 40 FROM tab0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4474
SELECT - - MAX( ALL + - 29 ) FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-4474
SELECT - - MAX ( ALL + - 29 ) FROM tab2 AS cor0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4475
SELECT ALL 74 FROM tab1 WHERE NULL NOT BETWEEN + col2 AND - - CAST( col0 AS SIGNED ) + + + col1 - - + col0
----

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL 74 FROM tab1 WHERE NULL NOT BETWEEN + col2 AND - - CAST ( col0 AS INTEGER ) + + + col1 - - + col0
----

query I rowsort
SELECT DISTINCT + 37 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT - 23 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4478
SELECT + CAST( col0 AS SIGNED ) + col1 FROM tab1 cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-4478
SELECT + CAST ( col0 AS INTEGER ) + col1 FROM tab1 cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4479
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

query I rowsort
SELECT - - col0 * 68 * col1 + - - col1 AS col2 FROM tab1 AS cor0
----
28905
290883
48566

query II rowsort
SELECT DISTINCT 41 AS col0, - col0 + - col0 FROM tab2 AS cor0
----
41
-128
41
-150
41
-92

query I rowsort
SELECT DISTINCT - + 9 + + col2 FROM tab1 AS cor0
----
50
59
87

query I rowsort
SELECT ( - ( + - col0 ) ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 25 * - - col1 FROM tab2 AS cor0
----
1275
1675
1925

query I rowsort
SELECT DISTINCT + 47 + + col1 + ( col1 ) AS col2 FROM tab1 AS cor0
----
141
57
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + + + 26 + col1 col1, ( - + col0 ) * + 63 - 47 AS col0 FROM tab1 AS cor0
----
116
-5402
164
-5780
91
-3260

onlyif mysql # DIV for integer division: 
query I rowsort label-4487
SELECT col0 + col1 DIV + col1 AS col0 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-4487
SELECT col0 + col1 / + col1 AS col0 FROM tab0 AS cor0
----
16
88
98

query I rowsort
SELECT ALL + col2 * 8 + + - col1 + - col2 AS col2 FROM tab0 AS cor0
----
248
49
692

query I rowsort
SELECT ALL 80 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
80
80
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, - 66 * + + col1 AS col2 FROM tab0
----
1
-66
21
-1386
81
-5346

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4491
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 66 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 66 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col2 * + col0 + col1 FROM tab2
----
1109
2637
4417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4493
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE + col1 NOT IN ( 56 / + 24 + - 25 * + - col0 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4493
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE + col1 NOT IN ( 56 / + 24 + - 25 * + - col0 )
----
NULL
NULL
NULL

query I rowsort
SELECT - - ( - col2 ) - + col1 AS col1 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT - - 88 * col2 * col1 - + col0 - - 35 FROM tab1 cor0
----
118256
25910
281192

query I rowsort
SELECT col0 * - + col1 - - col2 AS col2 FROM tab0 AS cor0
----
-1168
-1817
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4497
SELECT DISTINCT + ( - + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4497
SELECT DISTINCT + ( - + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4498
SELECT DISTINCT col1 DIV - - 15 col2 FROM tab1
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4498
SELECT DISTINCT col1 / - - 15 col2 FROM tab1
----
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4499
SELECT ALL col1 AS col0 FROM tab2 WHERE + ( - col1 ) * - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL col1 AS col0 FROM tab2 WHERE + ( - col1 ) * - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - - 9 * col1 * - + col0 FROM tab1 AS cor0 WHERE NOT - 66 * - col0 NOT BETWEEN NULL AND - ( - col2 ) * - col2 * col2 * + col1
----

query I rowsort
SELECT ALL 36 * - col0 FROM tab2 AS cor0
----
-1656
-2304
-2700

query I rowsort
SELECT + 73 * + 73 FROM tab0 AS cor0
----
5329
5329
5329

onlyif mysql # aggregate syntax: 
query II rowsort label-4503
SELECT + COUNT( ALL - ( + + col1 ) ) AS col0, COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4503
SELECT + COUNT ( ALL - ( + + col1 ) ) AS col0, COUNT ( * ) FROM tab1 AS cor0
----
3
3

query II rowsort
SELECT ALL + col1 AS col2, ( + ( + 66 ) ) FROM tab2
----
51
66
67
66
77
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT DISTINCT + - COUNT( * ) FROM tab1 WHERE NOT NULL <> - + col2 * + + 93 + + + 71
----
0

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT + - COUNT ( * ) FROM tab1 WHERE NOT NULL <> - + col2 * + + 93 + + + 71
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4506
SELECT * FROM tab1 WHERE NOT - 14 - - - CAST( NULL AS SIGNED ) > + 17
----

skipif mysql # not compatible
query III rowsort label-4506
SELECT * FROM tab1 WHERE NOT - 14 - - - CAST ( NULL AS INTEGER ) > + 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT + 0 * - + COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4507
SELECT + 0 * - + COUNT ( * ) AS col0 FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 23 > NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 col0 FROM tab1
----
28
28
28

onlyif mysql # DIV for integer division: 
query I rowsort label-4510
SELECT DISTINCT - col1 DIV - 6 FROM tab2
----
11
12
8

skipif mysql # not compatible
query I rowsort label-4510
SELECT DISTINCT - col1 / - 6 FROM tab2
----
11
12
8

query I rowsort
SELECT + - col1 * col2 * - - col2 FROM tab1 AS cor0
----
-129024
-17405
-217328

query I rowsort
SELECT ALL + 83 + + + col2 AS col0 FROM tab0 AS cor0
----
130
182
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT ALL + SUM( ( col0 ) ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4513
SELECT ALL + SUM ( ( col0 ) ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT + + ( - + col2 ) * col1 * 13 + 28 + + col2 FROM tab2 AS cor0
----
-15198
-39972
-50432

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT + - ( MAX( ALL 19 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT - 35 IS NULL
----
-19

skipif mysql # not compatible
query I rowsort label-4515
SELECT + - ( MAX ( ALL 19 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT - 35 IS NULL
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT + + 14 + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-4516
SELECT + + 14 + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
11

query I rowsort
SELECT ALL col2 + - 91 * + col2 AS col2 FROM tab0
----
-4230
-8910
-900

query I rowsort
SELECT ALL + 30 AS col1 FROM tab2
----
30
30
30

query I rowsort
SELECT 80 + 13 AS col2 FROM tab0
----
93
93
93

query I rowsort
SELECT col0 * col1 + + col1 * 79 FROM tab2
----
10318
11011
6375

query I rowsort
SELECT 86 * - col0 FROM tab2
----
-3956
-5504
-6450

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT COUNT( * ) * 27 AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-4522
SELECT COUNT ( * ) * 27 AS col2 FROM tab0
----
81

query I rowsort
SELECT ( col0 ) * + 34 FROM tab1
----
1734
2890
3094

query I rowsort
SELECT DISTINCT - 30 * + col0 + + ( - 85 ) AS col0 FROM tab1
----
-1615
-2635
-2815

query I rowsort
SELECT 33 * - 8 + 17 FROM tab0
----
-247
-247
-247

query I rowsort
SELECT + ( - col0 ) FROM tab2 WHERE NOT NULL NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4527
SELECT + CAST( NULL AS SIGNED ) / - 12 - + 61 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4527
SELECT + CAST ( NULL AS INTEGER ) / - 12 - + 61 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab1 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4529
SELECT + 32 * + col2 + - 88 DIV - col0 AS col0 FROM tab2
----
1281
1857
737

skipif mysql # not compatible
query I rowsort label-4529
SELECT + 32 * + col2 + - 88 / - col0 AS col0 FROM tab2
----
1281
1857
737

query I rowsort
SELECT + col2 * col2 + - col2 FROM tab1
----
3422
4556
9120

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 79 BETWEEN col2 * col1 AND 19 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 - col2 * 47 AS col1 FROM tab2
----
-1030
-1803
-2659

query I rowsort
SELECT + 57 - 46 FROM tab1
----
11
11
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4534
SELECT + 74 DIV + COUNT( * ) AS col1 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-4534
SELECT + 74 / + COUNT ( * ) AS col1 FROM tab1
----
24

query I rowsort
SELECT + col1 * col0 FROM tab0 WHERE - col1 / col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 66 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * 73 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE col2 BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE col2 BETWEEN NULL AND col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT 25 * COUNT( * ) AS col0 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-4539
SELECT 25 * COUNT ( * ) AS col0 FROM tab1
----
75

query I rowsort
SELECT ALL + 60 + 73 AS col2 FROM tab1
----
133
133
133

query I rowsort
SELECT DISTINCT 69 / - col0 + - ( + col1 ) FROM tab1 WHERE NOT NULL NOT IN ( col0 )
----

query I rowsort
SELECT 52 + col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
111
120
148

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT ALL SUM( - col2 ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL SUM ( - col2 ) FROM tab2 cor0
----
-121

query I rowsort
SELECT ALL - 32 AS col0 FROM tab0 cor0
----
-32
-32
-32

query I rowsort
SELECT ( 2 ) FROM tab2 cor0 WHERE NOT NULL > ( - 34 )
----

query I rowsort
SELECT 70 * + 54 AS col1 FROM tab2
----
3780
3780
3780

query I rowsort
SELECT ALL - col2 * + 57 FROM tab1
----
-3363
-3876
-5472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT ALL + 42 * + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4548
SELECT ALL + 42 * + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 - + col0 ) NOT IN ( + col0 )
----

query I rowsort
SELECT ALL - col2 * - 93 + - col2 FROM tab1 WHERE NOT + 5 + 79 IS NULL
----
5428
6256
8832

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4551
SELECT ALL - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4551
SELECT ALL - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 7 - 22 AS col2 FROM tab1 AS cor0 WHERE + 21 + + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 5 col2 FROM tab0 cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT ALL MAX( + 99 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL MAX ( + 99 ) AS col2 FROM tab0 AS cor0
----
99

query I rowsort
SELECT DISTINCT + ( col2 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 6 * + col0 col2 FROM tab1 cor0
----
-306
-510
-546

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 99 = - 33
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 6 col1 FROM tab2 AS cor0
----
-306
-402
-462

query I rowsort
SELECT 94 * - col2 FROM tab0 cor0
----
-4418
-9306
-940

query I rowsort
SELECT - 0 * - col1 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT - ( COUNT( * ) ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4561
SELECT - ( COUNT ( * ) ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT col1 / 73 AS col0 FROM tab2 WHERE NOT 9 < + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 BETWEEN ( col1 - col0 ) AND NULL
----
15
81
47

query I rowsort
SELECT DISTINCT col2 * + col2 * + col0 FROM tab2
----
102400
24334
252300

query I rowsort
SELECT DISTINCT - 48 * + + col2 FROM tab0
----
-2256
-4752
-480

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 2 ) NOT BETWEEN NULL AND - col0 * col0 - + 15
----

query I rowsort
SELECT + 49 FROM tab0 WHERE NOT NULL NOT BETWEEN - col0 * - 87 AND ( col0 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT ALL + COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col2 col0 FROM tab1 WHERE NOT 86 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT + ( - + COUNT( * ) ) + - 89 AS col0 FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-4570
SELECT + ( - + COUNT ( * ) ) + - 89 AS col0 FROM tab1
----
-92

query III rowsort
SELECT * FROM tab2 WHERE NOT 72 BETWEEN ( col1 ) AND + 25 * col0
----
64
77
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4572
SELECT CAST( - 9 AS SIGNED ) AS col1 FROM tab1
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-4572
SELECT CAST ( - 9 AS INTEGER ) AS col1 FROM tab1
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT ALL ( + COUNT( * ) ) + - COUNT( * ) * 50 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-147

skipif mysql # not compatible
query I rowsort label-4573
SELECT ALL ( + COUNT ( * ) ) + - COUNT ( * ) * 50 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-147

query I rowsort
SELECT 16 AS col0 FROM tab0 WHERE NOT - 79 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + + col2 AS col1 FROM tab2 WHERE + col2 * col2 <> + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4576
SELECT - SUM( col0 ) * + COUNT( * ) FROM tab2 AS cor0
----
-555

skipif mysql # not compatible
query I rowsort label-4576
SELECT - SUM ( col0 ) * + COUNT ( * ) FROM tab2 AS cor0
----
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-4577
SELECT DISTINCT - COUNT( * ) + + - MAX( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-4577
SELECT DISTINCT - COUNT ( * ) + + - MAX ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-100

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * 46 + 88 BETWEEN col1 AND - 30
----

query I rowsort
SELECT ALL + col0 + - col2 + - col1 * + col0 AS col1 FROM tab2 AS cor0
----
-2323
-4904
-5008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4580
SELECT ALL + CAST( + - 89 AS SIGNED ) + + COUNT( col0 + - col2 ) FROM tab2 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-4580
SELECT ALL + CAST ( + - 89 AS INTEGER ) + + COUNT ( col0 + - col2 ) FROM tab2 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT + 1 + + MIN( - col0 ) AS col1 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4581
SELECT + 1 + + MIN ( - col0 ) AS col1 FROM tab0 AS cor0
----
-96

query II rowsort
SELECT DISTINCT 50 AS col1, col2 FROM tab0 AS cor0
----
50
10
50
47
50
99

query I rowsort
SELECT DISTINCT + col0 + + + col2 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT + col2 / + col1 + + col1 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT - SUM( DISTINCT - col0 ) col0 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4585
SELECT - SUM ( DISTINCT - col0 ) col0 FROM tab1 AS cor0
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4586
SELECT + col1 FROM tab0 cor0 WHERE - col2 * - CAST( NULL AS SIGNED ) + ( + col2 ) * col1 <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4586
SELECT + col1 FROM tab0 cor0 WHERE - col2 * - CAST ( NULL AS INTEGER ) + ( + col2 ) * col1 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4587
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 79 - - - col1 * - 51 NOT IN ( - CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4587
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 79 - - - col1 * - 51 NOT IN ( - CAST ( col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4588
SELECT + - COUNT( * ) DIV - 45 AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4588
SELECT + - COUNT ( * ) / - 45 AS col2 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT COUNT( ALL + + ( col2 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4589
SELECT COUNT ( ALL + + ( col2 ) ) FROM tab0
----
3

query I rowsort
SELECT ALL + 22 AS col1 FROM tab2 WHERE ( + + 51 ) NOT BETWEEN + 57 + + 82 AND ( + 77 )
----
22
22
22

query I rowsort
SELECT ALL + col2 + + 23 AS col0 FROM tab2
----
46
63
81

query III rowsort
SELECT * FROM tab1 WHERE - 22 BETWEEN ( col2 ) AND 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT - COUNT( * ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4593
SELECT - COUNT ( * ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT ALL - col2 + - 34 AS col1 FROM tab0
----
-133
-44
-81

query I rowsort
SELECT + 89 * + + col1 FROM tab1
----
1246
4183
445

query I rowsort
SELECT ALL - col0 * - col1 FROM tab2 WHERE ( NULL ) >= col2 * + - col0 / - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4597
SELECT + 32 * + - COUNT( * ) * 36 DIV ( - 9 ) AS col1 FROM tab2 AS cor0
----
384

skipif mysql # not compatible
query I rowsort label-4597
SELECT + 32 * + - COUNT ( * ) * 36 / ( - 9 ) AS col1 FROM tab2 AS cor0
----
384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 - - col0 col2 FROM tab1 AS cor0 WHERE NOT 29 * - col2 IN ( - - 67 / col0 )
----
113
147
153

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 <> ( col2 )
----

query I rowsort
SELECT + col2 * + col0 AS col0 FROM tab0 WHERE NOT 53 IS NULL
----
705
870
9603

query I rowsort
SELECT ( + 11 ) AS col1 FROM tab2
----
11
11
11

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4602
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 - col0 / - 59 <> ( CAST( col1 AS SIGNED ) - 3 * - 53 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4602
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 - col0 / - 59 <> ( CAST ( col1 AS INTEGER ) - 3 * - 53 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT ALL MAX( ALL - + col1 ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL MAX ( ALL - + col1 ) AS col0 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT ALL - col2 * col1 + + - col2 - + ( col0 ) + - col2 * col2 AS col2 FROM tab0 AS cor0
----
-10096
-407
-6078

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4605
SELECT ALL - CAST( NULL AS SIGNED ) / - 57 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4605
SELECT ALL - CAST ( NULL AS INTEGER ) / - 57 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT - SUM( - col2 ) * - COUNT( + col2 ) AS col1 FROM tab0 AS cor0
----
-468

skipif mysql # not compatible
query I rowsort label-4606
SELECT - SUM ( - col2 ) * - COUNT ( + col2 ) AS col1 FROM tab0 AS cor0
----
-468

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 )
----

query I rowsort
SELECT - col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( 51 ) <> NULL )
----

query II rowsort
SELECT DISTINCT col2 AS col1, 94 * - 9 + + ( + + ( col0 ) ) FROM tab2
----
23
-800
40
-782
58
-771

query I rowsort
SELECT + 43 AS col0 FROM tab2, tab2 AS cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4612
SELECT 77 DIV - - col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-4612
SELECT 77 / - - col0 FROM tab0
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT ALL MAX( - 4 ) AS col1 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-4613
SELECT ALL MAX ( - 4 ) AS col1 FROM tab1
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 61 ) col1 FROM tab1
----
61
61
61

onlyif mysql # DIV for integer division: 
query I rowsort label-4615
SELECT ( + 92 ) DIV - - col2 FROM tab0
----
0
1
9

skipif mysql # not compatible
query I rowsort label-4615
SELECT ( + 92 ) / - - col2 FROM tab0
----
0
1
9

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-4616
SELECT ALL * FROM tab1 WHERE + col0 + + - CAST( NULL AS SIGNED ) + - 15 IN ( CAST( - - ( - col1 ) AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4616
SELECT ALL * FROM tab1 WHERE + col0 + + - CAST ( NULL AS INTEGER ) + - 15 IN ( CAST ( - - ( - col1 ) AS REAL ) )
----

query I rowsort
SELECT + ( - ( + col2 ) ) * - - 10 AS col0 FROM tab0
----
-100
-470
-990

query I rowsort
SELECT DISTINCT - ( + + 46 ) FROM tab1 AS cor0 WHERE NOT 47 + 99 * + - col2 IS NULL
----
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4619
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 + ( 30 ) * 26 AND + + col0 * - - col1 * CAST( - col0 * - col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4619
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 + ( 30 ) * 26 AND + + col0 * - - col1 * CAST ( - col0 * - col1 AS REAL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 51 * - ( - - col0 ) IS NOT NULL
----

query I rowsort
SELECT + + 95 * - - col0 + col1 AS col2 FROM tab0 cor0
----
1506
8286
9216

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + - col2 + + + col2 / + 83 + + + 48 <> NULL
----

query I rowsort
SELECT + col2 + + 31 AS col2 FROM tab2
----
54
71
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 4 * 57 * - - col2 - - 77, 24 col2 FROM tab2
----
13301
24
5321
24
9197
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT MAX( 65 ) + - 15 FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-4625
SELECT MAX ( 65 ) + - 15 FROM tab2
----
50

query I rowsort
SELECT + 99 + col1 FROM tab1
----
104
113
146

query II rowsort
SELECT - 93, + col1 FROM tab1
----
-93
14
-93
47
-93
5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4628
SELECT DISTINCT * FROM tab1 WHERE ( + + col1 + CAST( NULL AS DECIMAL ) ) <= 69 * - ( 81 ) * + col1 * 97
----

skipif mysql # not compatible
query III rowsort label-4628
SELECT DISTINCT * FROM tab1 WHERE ( + + col1 + CAST ( NULL AS REAL ) ) <= 69 * - ( 81 ) * + col1 * 97
----

query II rowsort
SELECT - col0, col2 * + 76 AS col0 FROM tab2
----
-46
1748
-64
3040
-75
4408

query I rowsort
SELECT ALL + - 54 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-54
-54
-54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4631
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4631
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( - + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4632
SELECT ALL ( - + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL ( - + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + 92 ) AS col1 FROM tab1
----
92
92
92

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( - + col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 67 * 33 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-2211

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4637
SELECT ALL - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4637
SELECT ALL - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab2, tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4638
SELECT + CAST( - SUM( - col0 ) AS SIGNED ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4638
SELECT + CAST ( - SUM ( - col0 ) AS INTEGER ) FROM tab2 AS cor0
----
185

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN + col0 / col1 * + col2 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4640
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( - - ( - col0 ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4640
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( - - ( - col0 ) AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col2 + + 27 AS col0 FROM tab1 AS cor0
----
123
86
95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN + col1 AND - - 76 + - 46 OR col0 / col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col0 + - - col0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4644
SELECT + COUNT( * ) + - - COUNT( * ) + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4644
SELECT + COUNT ( * ) + - - COUNT ( * ) + + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col0 + col1 - + 36 FROM tab0 AS cor0
----
-102
-132
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4647
SELECT SUM( ALL - 88 ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4647
SELECT SUM ( ALL - 88 ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 11 FROM tab1 WHERE NOT NULL NOT IN ( - col2 )
----

query I rowsort
SELECT DISTINCT col0 * - ( + 91 ) AS col2 FROM tab0
----
-1365
-7917
-8827

query I rowsort
SELECT ALL + 23 * - 39 AS col0 FROM tab2
----
-897
-897
-897

query III rowsort
SELECT * FROM tab0 WHERE 28 / - col0 - col0 > + col1
----

query III rowsort
SELECT * FROM tab2 WHERE - col2 NOT BETWEEN NULL AND + + col2
----

query III rowsort
SELECT * FROM tab0 WHERE + + col1 + + col0 < + col1 * col0 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT ALL + MAX( DISTINCT 64 ) AS col1 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL + MAX ( DISTINCT 64 ) AS col1 FROM tab2
----
64

query I rowsort
SELECT - 95 * + col2 FROM tab0 AS cor0
----
-4465
-9405
-950

onlyif mysql # DIV for integer division: 
query I rowsort label-4656
SELECT - 5 DIV + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4656
SELECT - 5 / + col2 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 47 - + col0 FROM tab0 AS cor0
----
-134
-144
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4658
SELECT col2 + + - CAST( - col1 AS SIGNED ) + - col0 * - + col0 * + CAST( NULL AS SIGNED ) / 60 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4658
SELECT col2 + + - CAST ( - col1 AS INTEGER ) + - col0 * - + col0 * + CAST ( NULL AS INTEGER ) / 60 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 / + - col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----

query II rowsort
SELECT 12, + col1 FROM tab0 AS cor0
----
12
1
12
21
12
81

query I rowsort
SELECT DISTINCT 50 - 70 AS col0 FROM tab1 AS cor0
----
-20

query I rowsort
SELECT col0 * + + col2 + col2 FROM tab2 AS cor0
----
1081
2600
4408

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2 + col2 + - 49, - col0 * - col1 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT ALL COUNT( * ) AS col0 FROM tab0, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4664
SELECT ALL COUNT ( * ) AS col0 FROM tab0, tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 WHERE NOT + 40 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4665
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT + 40 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 + + + col2 IN ( - - 39 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 - 30 <= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 63 * col2 FROM tab2
----
1449
2520
3654

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4669
SELECT DISTINCT CAST( SUM( ALL - ( col1 ) ) AS SIGNED ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT CAST ( SUM ( ALL - ( col1 ) ) AS INTEGER ) FROM tab2 AS cor0
----
-195

query I rowsort
SELECT DISTINCT 62 * col0 * 22 FROM tab1
----
115940
124124
69564

query I rowsort
SELECT - 32 * 49 AS col0 FROM tab2 AS cor0
----
-1568
-1568
-1568

query I rowsort
SELECT + + 86 AS col2 FROM tab0 cor0
----
86
86
86

query II rowsort
SELECT + col1 AS col1, col0 * 91 AS col1 FROM tab0 AS cor0
----
1
8827
21
7917
81
1365

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col0 - 77 * col0 col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 40 + + 19 - + + col2 FROM tab1 AS cor0
----
-117
-80
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + - col2 col0 FROM tab2
----
-1600
-3364
-529

query III rowsort
SELECT * FROM tab2 WHERE 86 / 12 <> + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 14 + - + 83 FROM tab2
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-4679
SELECT DISTINCT MAX( + col2 ) AS col2, 72 AS col2 FROM tab1
----
96
72

skipif mysql # not compatible
query II rowsort label-4679
SELECT DISTINCT MAX ( + col2 ) AS col2, 72 AS col2 FROM tab1
----
96
72

query I rowsort
SELECT 82 * - - col0 + col2 AS col1 FROM tab1
----
4278
7029
7530

query I rowsort
SELECT + 15 + + - 90 * + + col0 AS col0 FROM tab0 AS cor0
----
-1335
-7815
-8715

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4682
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * + 68 col2 FROM tab2 AS cor0
----
-3468
-4556
-5236

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4682
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * + 68 col2 FROM tab2 AS cor0
----
-3468
-4556
-5236

query I rowsort
SELECT - 54 * - - 76 FROM tab2
----
-4104
-4104
-4104

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 93 * - 39 - - ( - + col2 ) col2 FROM tab1
----
-3648
-3681
-3709

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4685
SELECT - CAST( - ( ( - 96 ) ) AS SIGNED ) col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4685
SELECT - CAST ( - ( ( - 96 ) ) AS INTEGER ) col1 FROM tab2, tab2 AS cor0
----
9 values hashing to c89b545346f99713888a7934e4caa539

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT 63 - COUNT( * ) FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-4686
SELECT 63 - COUNT ( * ) FROM tab2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4687
SELECT - col0 * - - col1 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4687
SELECT - col0 * - - col1 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - ( + ( col2 ) ) - - + col2 + col2 * col2 * - + 15 AS col0 FROM tab1 cor0
----
-138240
-52215
-69360

query I rowsort
SELECT + 70 AS col2 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 75 * - - col2 * col0 + + + col1 * ( - col0 ) + - + col1 AS col0 FROM tab0 AS cor0
----
-54171
-67098
-720323

onlyif mysql # aggregate syntax: 
query I rowsort label-4691
SELECT ALL - SUM( DISTINCT + 36 ) FROM tab2 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4691
SELECT ALL - SUM ( DISTINCT + 36 ) FROM tab2 cor0
----
-36

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 AS cor0 WHERE NOT col2 * + col1 + + 98 * + 85 * + col0 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4693
SELECT ALL - + 80 * + col1 * - ( - - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL - + 80 * + col1 * - ( - - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 31 AS col1 FROM tab2 cor0
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT ALL MAX( - col2 ) col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4695
SELECT ALL MAX ( - col2 ) col1 FROM tab1 AS cor0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-4696
SELECT - ( - - ( + + col1 ) ) DIV + 40 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-4696
SELECT - ( - - ( + + col1 ) ) / + 40 FROM tab0 AS cor0
----
-2
0
0

query I rowsort
SELECT DISTINCT + 35 AS col0 FROM tab0 AS cor0 WHERE NOT 50 IS NULL
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - ( col1 ) col0 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4699
SELECT + - col1 * + - col2 * - 1 AS col0, CAST( NULL AS SIGNED ) FROM tab1 cor0
----
-1344
NULL
-295
NULL
-3196
NULL

skipif mysql # not compatible
query II rowsort label-4699
SELECT + - col1 * + - col2 * - 1 AS col0, CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
-1344
NULL
-295
NULL
-3196
NULL

query I rowsort
SELECT DISTINCT 86 * - + col2 * col1 FROM tab2
----
-100878
-264880
-334196

query II rowsort
SELECT ALL col2 AS col2, 72 FROM tab2
----
23
72
40
72
58
72

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4702
SELECT - CAST( col1 AS SIGNED ) * - col0 + + + 45 - + 45 DIV col0 AS col1 FROM tab2
----
2391
4973
5070

skipif mysql # not compatible
query I rowsort label-4702
SELECT - CAST ( col1 AS INTEGER ) * - col0 + + + 45 - + 45 / col0 AS col1 FROM tab2
----
2391
4973
5070

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 33 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 * col2 col1 FROM tab1
----
129024
17405
217328

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = + 8
----

query II rowsort
SELECT col0, + ( + + col1 ) * + col2 * + + 50 FROM tab0
----
15
190350
87
10500
97
4950

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 99 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 WHERE col1 <> + - col1
----
3

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 WHERE col1 <> + - col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4709
SELECT DISTINCT col2 DIV - 25 FROM tab1
----
-2
-3

skipif mysql # not compatible
query I rowsort label-4709
SELECT DISTINCT col2 / - 25 FROM tab1
----
-2
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4710
SELECT DISTINCT - MIN( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT - MIN ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT - ( + - 49 ) + + COUNT( col2 ) AS col0 FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-4711
SELECT - ( + - 49 ) + + COUNT ( col2 ) AS col0 FROM tab1 AS cor0
----
52

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 < + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4713
SELECT - - 2 * + 32 + + COUNT( * ) + + MIN( 11 ) DIV + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4713
SELECT - - 2 * + 32 + + COUNT ( * ) + + MIN ( 11 ) / + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
70

query I rowsort
SELECT col0 * 81 + - 2 * + - ( + 73 ) * - - 37 FROM tab0 AS cor0
----
12449
13259
6617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4715
SELECT ALL - COUNT( CAST( - 76 AS SIGNED ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4715
SELECT ALL - COUNT ( CAST ( - 76 AS INTEGER ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4716
SELECT - 43 DIV - 37 + col2 FROM tab0 cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-4716
SELECT - 43 / - 37 + col2 FROM tab0 cor0
----
100
11
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT - 95 * + 13 + - COUNT( * ) FROM tab2 AS cor0
----
-1238

skipif mysql # not compatible
query I rowsort label-4717
SELECT - 95 * + 13 + - COUNT ( * ) FROM tab2 AS cor0
----
-1238

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + ( - col2 ) col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + - 89 + col1 + - ( - col0 ) FROM tab2 AS cor0
----
52
53
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4720
SELECT DISTINCT 30 DIV - col1 + - 58 * + + col1 AS col1 FROM tab2
----
-2958
-3886
-4466

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT 30 / - col1 + - 58 * + + col1 AS col1 FROM tab2
----
-2958
-3886
-4466

query I rowsort
SELECT DISTINCT + 94 * + col1 + ( ( - col0 ) ) + - col2 FROM tab1
----
1169
326
4259

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4722
SELECT DISTINCT ( - MIN( - 65 ) ) - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT ( - MIN ( - 65 ) ) - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4723
SELECT DISTINCT + COUNT( * ), + 35 + - COUNT( * ) AS col1 FROM tab1
----
3
32

skipif mysql # not compatible
query II rowsort label-4723
SELECT DISTINCT + COUNT ( * ), + 35 + - COUNT ( * ) AS col1 FROM tab1
----
3
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4724
SELECT + COUNT( DISTINCT ( + CAST( NULL AS SIGNED ) ) ), - COUNT( * ) * + + 43 AS col2 FROM tab2
----
0
-129

skipif mysql # not compatible
query II rowsort label-4724
SELECT + COUNT ( DISTINCT ( + CAST ( NULL AS INTEGER ) ) ), - COUNT ( * ) * + + 43 AS col2 FROM tab2
----
0
-129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 44 col1 FROM tab2 cor0 WHERE NULL <= - col2 + col1
----

query I rowsort
SELECT ALL + + 12 - 91 AS col0 FROM tab2 AS cor0
----
-79
-79
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 0 col1 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 55 col2 FROM tab0 cor0
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT - MAX( ALL 23 ) FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4729
SELECT - MAX ( ALL 23 ) FROM tab0 AS cor0
----
-23

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * - col0 * + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT DISTINCT + COUNT( * ) * - 34 AS col1 FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT + COUNT ( * ) * - 34 AS col1 FROM tab1 AS cor0
----
-102

onlyif mysql # aggregate syntax: 
query II rowsort label-4732
SELECT ALL - 28 AS col1, COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = + ( col0 )
----
-28
0

skipif mysql # not compatible
query II rowsort label-4732
SELECT ALL - 28 AS col1, COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = + ( col0 )
----
-28
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 IN ( + + col2, col0 )
----

query I rowsort
SELECT + col2 / + 64 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT DISTINCT + 0 * + COUNT( * ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT + 0 * + COUNT ( * ) AS col0 FROM tab2
----
0

query I rowsort
SELECT DISTINCT ( + 58 ) FROM tab1
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-4738
SELECT ( - - COUNT( col0 ) ) AS col0, + COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-4738
SELECT ( - - COUNT ( col0 ) ) AS col0, + COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4739
SELECT col0 / - col2 * - 38 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4739
SELECT col0 / - col2 * - 38 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4740
SELECT - CAST( - + col0 AS SIGNED ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4740
SELECT - CAST ( - + col0 AS INTEGER ) FROM tab2
----
46
64
75

query I rowsort
SELECT ALL ( 27 ) FROM tab0
----
27
27
27

query III rowsort
SELECT ALL * FROM tab2 WHERE 50 * col0 + + - 53 - + 24 * + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT - - MIN( DISTINCT + 35 ) AS col1 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-4743
SELECT - - MIN ( DISTINCT + 35 ) AS col1 FROM tab2 AS cor0
----
35

query I rowsort
SELECT DISTINCT 54 * - + col2 AS col2 FROM tab1 AS cor0 WHERE ( + col1 ) <> ( NULL )
----

query I rowsort
SELECT col0 + - + col0 AS col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT - - 34 + 67 + MAX( ALL - 11 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
90

skipif mysql # not compatible
query I rowsort label-4746
SELECT - - 34 + 67 + MAX ( ALL - 11 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
90

query I rowsort
SELECT DISTINCT - 78 + + 12 * - 38 AS col2 FROM tab1
----
-534

onlyif mysql # aggregate syntax: 
query II rowsort label-4748
SELECT ALL 91, + 51 * - COUNT( * ) AS col1 FROM tab0
----
91
-153

skipif mysql # not compatible
query II rowsort label-4748
SELECT ALL 91, + 51 * - COUNT ( * ) AS col1 FROM tab0
----
91
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT DISTINCT + ( + COUNT( * ) ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4749
SELECT DISTINCT + ( + COUNT ( * ) ) AS col2 FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 6 * + - col2 col2 FROM tab0 AS cor0
----
-282
-594
-60

query I rowsort
SELECT DISTINCT + col2 / + 55 FROM tab0 AS cor0 WHERE NULL >= - 0 * + - col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 4 + - + col0 * 28 = - + col0 * 68 + - - col1 + + col0
----

query I rowsort
SELECT DISTINCT 88 + col0 AS col0 FROM tab2
----
134
152
163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 95 - - 21 col1 FROM tab1
----
-5584
-6439
-9099

query I rowsort
SELECT - col0 * + 47 * + - 24 + + col1 AS col1 FROM tab1
----
102695
57542
95885

onlyif mysql # DIV for integer division: 
query I rowsort label-4756
SELECT ALL - col0 + + ( 1 ) DIV col0 DIV + col2 AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL - col0 + + ( 1 ) / col0 / + col2 AS col0 FROM tab2
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-4757
SELECT - 75 + - 89 DIV - + 21 - - 6 AS col0 FROM tab0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-4757
SELECT - 75 + - 89 / - + 21 - - 6 AS col0 FROM tab0
----
-65
-65
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4758
SELECT - CAST( - COUNT( * ) AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4758
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT - col2 * - col2 * + col2 + + col2 FROM tab0
----
1010
103870
970398

query I rowsort
SELECT 84 FROM tab2 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4761
SELECT DISTINCT col2 + col1 + col2 AS col1, 99 + 50 / col2 * - 15 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
123
NULL
183
NULL
206
NULL

skipif mysql # not compatible
query II rowsort label-4761
SELECT DISTINCT col2 + col1 + col2 AS col1, 99 + 50 / col2 * - 15 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
123
NULL
183
NULL
206
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4762
SELECT ALL + col2 - + CAST( NULL AS SIGNED ) + - col1 + - col0 * 78 * + + 22 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4762
SELECT ALL + col2 - + CAST ( NULL AS INTEGER ) + - col1 + - col0 * 78 * + + 22 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 40 - col0 + - col1 + - col1 * col0 col0 FROM tab2
----
-2483
-5109
-5207

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 BETWEEN + 81 AND + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, col0 AS col1 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT ALL MAX( col2 ) * - - 66 * + MIN( DISTINCT + 90 ) FROM tab0
----
588060

skipif mysql # not compatible
query I rowsort label-4766
SELECT ALL MAX ( col2 ) * - - 66 * + MIN ( DISTINCT + 90 ) FROM tab0
----
588060

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 < + + col0 - - col2 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT COUNT( ALL + ( + + col1 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4768
SELECT COUNT ( ALL + ( + + col1 ) ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * + col1 * - col1 <> - col0
----

query I rowsort
SELECT ( + 83 ) AS col0 FROM tab2 AS cor0
----
83
83
83

query II rowsort
SELECT DISTINCT - 91, col2 FROM tab0 cor0
----
-91
10
-91
47
-91
99

query II rowsort
SELECT col0, + 34 AS col1 FROM tab1 AS cor0
----
51
34
85
34
91
34

query II rowsort
SELECT ALL - + 63, + col2 FROM tab0 cor0
----
-63
10
-63
47
-63
99

query II rowsort
SELECT DISTINCT - - 68, col1 FROM tab0 AS cor0
----
68
1
68
21
68
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT + COUNT( * ) * + 15 AS col1 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-4775
SELECT + COUNT ( * ) * + 15 AS col1 FROM tab1
----
45

onlyif mysql # DIV for integer division: 
query I rowsort label-4776
SELECT + 14 DIV - col1 FROM tab0
----
-14
0
0

skipif mysql # not compatible
query I rowsort label-4776
SELECT + 14 / - col1 FROM tab0
----
-14
0
0

query I rowsort
SELECT + col0 * + + col0 AS col2 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT - 94 * + col0 * - + col0 AS col2 FROM tab2
----
198904
385024
528750

query I rowsort
SELECT DISTINCT - 62 + + - col1 * + col1 + 19 - - - col0 FROM tab0 WHERE NOT ( - 47 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 51 * 19 FROM tab1
----
969
969
969

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT COUNT( - ( col2 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4781
SELECT COUNT ( - ( col2 ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT MIN( DISTINCT col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4782
SELECT MIN ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----
NULL

query I rowsort
SELECT + ( 57 ) AS col0 FROM tab1 AS cor0
----
57
57
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 col0 FROM tab0 cor0 WHERE NOT + col0 + - col1 >= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4785
SELECT ALL - 98 + + + 18 + + CAST( NULL AS SIGNED ) / - col1 col2, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4785
SELECT ALL - 98 + + + 18 + + CAST ( NULL AS INTEGER ) / - col1 col2, col0 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4786
SELECT 3 DIV - col0 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4786
SELECT 3 / - col0 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4787
SELECT + COUNT( * ) * - + 65 + COUNT( * ) AS col1, + 11 DIV + 15 * - + 21 + - + 26 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0
-26

skipif mysql # not compatible
query II rowsort label-4787
SELECT + COUNT ( * ) * - + 65 + COUNT ( * ) AS col1, + 11 / + 15 * - + 21 + - + 26 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT + + COUNT( * ) * - 64 + - 10 + COUNT( * ) * - ( - COUNT( * ) ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-505

skipif mysql # not compatible
query I rowsort label-4788
SELECT + + COUNT ( * ) * - 64 + - 10 + COUNT ( * ) * - ( - COUNT ( * ) ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-505

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 + + 86 col1 FROM tab0 AS cor0
----
86
86
86

query I rowsort
SELECT ALL - - col2 * - + 76 FROM tab1 AS cor0
----
-4484
-5168
-7296

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4791
SELECT - 56 + CAST( col2 AS SIGNED ) * - 7 FROM tab1 AS cor0
----
-469
-532
-728

skipif mysql # not compatible
query I rowsort label-4791
SELECT - 56 + CAST ( col2 AS INTEGER ) * - 7 FROM tab1 AS cor0
----
-469
-532
-728

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT DISTINCT COUNT( * ) * - COUNT( * ) + + 18 AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4792
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) + + 18 AS col2 FROM tab1 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-48
-48
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4794
SELECT DISTINCT - col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4794
SELECT DISTINCT - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * - col2 * - col1 + + col2 * - col2 + + + col2 + + 42 * + col1 * - + col0 FROM tab1
----
-168132
-38677
-401518

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4796
SELECT ALL - COUNT( * ) - - 49 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4796
SELECT ALL - COUNT ( * ) - - 49 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4797
SELECT ALL CAST( - + col1 AS SIGNED ) + + - col2 + + - col2 AS col0, col2 - - + col1 FROM tab1
----
-123
64
-183
115
-206
110

skipif mysql # not compatible
query II rowsort label-4797
SELECT ALL CAST ( - + col1 AS INTEGER ) + + - col2 + + - col2 AS col0, col2 - - + col1 FROM tab1
----
-123
64
-183
115
-206
110

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT DISTINCT 70 - - - COUNT( * ) AS col1 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT 70 - - - COUNT ( * ) AS col1 FROM tab1
----
67

query I rowsort
SELECT + 25 - + col2 AS col1 FROM tab2 AS cor0
----
-15
-33
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4800
SELECT DISTINCT + - ( CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4800
SELECT DISTINCT + - ( CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + 71 AS col2, + col1 FROM tab2 AS cor0
----
71
51
71
67
71
77

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT ( NULL > NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4803
SELECT ALL + col0 DIV 65 * + - col2 AS col2, + col2 + - + col1 AS col2 FROM tab2
----
-58
-9
0
-28
0
-37

skipif mysql # not compatible
query II rowsort label-4803
SELECT ALL + col0 / 65 * + - col2 AS col2, + col2 + - + col1 AS col2 FROM tab2
----
-58
-9
0
-28
0
-37

query I rowsort
SELECT ALL 56 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT ALL + 46 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT + ( - - 31 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

query I rowsort
SELECT 60 * - col2 + - + ( + + col2 ) + 41 * + - 59 FROM tab1 AS cor0
----
-6018
-6567
-8275

onlyif mysql # DIV for integer division: 
query I rowsort label-4808
SELECT ALL - - 97 DIV col2 + + col2 AS col1 FROM tab0 AS cor0
----
19
49
99

skipif mysql # not compatible
query I rowsort label-4808
SELECT ALL - - 97 / col2 + + col2 AS col1 FROM tab0 AS cor0
----
19
49
99

query I rowsort
SELECT ALL - 62 AS col2 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 * - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 66 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 WHERE NOT - - 54 * - col1 NOT IN ( - ( ( + col2 ) ), col0, - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 WHERE NOT - - 54 * - col1 NOT IN ( - ( ( + col2 ) ), col0, - col2 )
----
0

query II rowsort
SELECT ALL + col2 AS col0, 76 FROM tab0
----
10
76
47
76
99
76

query II rowsort
SELECT + ( col2 ) * col1 * + col2 AS col1, col2 AS col2 FROM tab2
----
123200
40
225388
58
26979
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT ALL SUM( 75 ) * - 46 + - SUM( - col2 ) + - COUNT( ALL - - col2 ) FROM tab1 AS cor0
----
-10130

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL SUM ( 75 ) * - 46 + - SUM ( - col2 ) + - COUNT ( ALL - - col2 ) FROM tab1 AS cor0
----
-10130

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( ( NULL IS NULL ) )
----

query I rowsort
SELECT DISTINCT col0 + 1 * - col0 * - col2 * col0 FROM tab1
----
249747
426360
563199

query I rowsort
SELECT DISTINCT + 16 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT DISTINCT - 95 * - COUNT( * ) AS col1 FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT - 95 * - COUNT ( * ) AS col1 FROM tab1
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT COUNT( * ) FROM tab0 WHERE NULL NOT IN ( col2, col0, - - col2, - 26, col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4820
SELECT COUNT ( * ) FROM tab0 WHERE NULL NOT IN ( col2, col0, - - col2, - 26, col1 )
----
0

query II rowsort
SELECT ALL ( + 30 ) AS col2, + col1 AS col1 FROM tab0 AS cor0
----
30
1
30
21
30
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4822
SELECT DISTINCT SUM( - 34 ) AS col0 FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-4822
SELECT DISTINCT SUM ( - 34 ) AS col0 FROM tab2 AS cor0
----
-102

query I rowsort
SELECT DISTINCT - 66 * + + 51 FROM tab1 AS cor0
----
-3366

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT ALL MIN( ALL + 47 ) * COUNT( * ) FROM tab1 cor0
----
141

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL MIN ( ALL + 47 ) * COUNT ( * ) FROM tab1 cor0
----
141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 + - + col1 col0 FROM tab2
----
-18
-34
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-4826
SELECT col1 DIV + + col2 + - 49 FROM tab1
----
-49
-49
-49

skipif mysql # not compatible
query I rowsort label-4826
SELECT col1 / + + col2 + - 49 FROM tab1
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT SUM( DISTINCT 78 ) + - 73 FROM tab2, tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4827
SELECT SUM ( DISTINCT 78 ) + - 73 FROM tab2, tab0 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-4828
SELECT + col1 * col2 DIV + 65 + - col0 FROM tab2
----
-16
-17
-28

skipif mysql # not compatible
query I rowsort label-4828
SELECT + col1 * col2 / + 65 + - col0 FROM tab2
----
-16
-17
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-4829
SELECT ALL 80 DIV + - col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4829
SELECT ALL 80 / + - col0 FROM tab1
----
-1
0
0

query I rowsort
SELECT - + 13 * col0 FROM tab1 cor0
----
-1105
-1183
-663

onlyif mysql # DIV for integer division: 
query I rowsort label-4831
SELECT 30 DIV + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4831
SELECT 30 / + col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4832
SELECT 97 DIV + COUNT( * ) AS col2 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-4832
SELECT 97 / + COUNT ( * ) AS col2 FROM tab2
----
32

query III rowsort
SELECT - 66 AS col0, - col1, - 61 + + col2 AS col0 FROM tab1
----
9 values hashing to ec270af9ac5950b467efed8391b0d87e

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 >= - col2 * + + 46
----

query I rowsort
SELECT ALL + col2 * + col2 * + ( ( + + col1 ) ) FROM tab0
----
178929
2100
9801

query II rowsort
SELECT + - col1 AS col0, 56 AS col0 FROM tab1 AS cor0
----
-14
56
-47
56
-5
56

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: SIGNED type: 
query I rowsort label-4838
SELECT ALL col2 * - - col2 AS col2 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-4838
SELECT ALL col2 * - - col2 AS col2 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-4839
SELECT ALL + MAX( ALL + col2 ) + 0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL + MAX ( ALL + col2 ) + 0 FROM tab2 AS cor0
----
58

query II rowsort
SELECT DISTINCT - col0 AS col0, 22 FROM tab1 AS cor0
----
-51
22
-85
22
-91
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4841
SELECT + ( + 76 ) + + CAST( col0 AS SIGNED ) AS col0 FROM tab2
----
122
140
151

skipif mysql # not compatible
query I rowsort label-4841
SELECT + ( + 76 ) + + CAST ( col0 AS INTEGER ) AS col0 FROM tab2
----
122
140
151

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT COUNT( * ) + - 74 AS col0 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-4842
SELECT COUNT ( * ) + - 74 AS col0 FROM tab1
----
-71

query I rowsort
SELECT ALL ( - col2 ) * - 88 * col1 AS col0 FROM tab2
----
103224
271040
341968

onlyif mysql # DIV for integer division: 
query I rowsort label-4844
SELECT DISTINCT - 82 DIV col2 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4844
SELECT DISTINCT - 82 / col2 FROM tab2
----
-1
-2
-3

query II rowsort
SELECT DISTINCT - 71 * - col2 AS col1, ( + - col2 ) FROM tab0
----
3337
-47
7029
-99
710
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT ALL + ( - SUM( - - 34 ) ) FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-4846
SELECT ALL + ( - SUM ( - - 34 ) ) FROM tab2
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT ALL - + COUNT( * ) AS col0 FROM tab2 WHERE NOT + - col0 <> + 17
----
0

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL - + COUNT ( * ) AS col0 FROM tab2 WHERE NOT + - col0 <> + 17
----
0

query I rowsort
SELECT ALL + 63 + col0 AS col0 FROM tab1 AS cor0
----
114
148
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4849
SELECT + ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4849
SELECT + ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4850
SELECT DISTINCT + - 86 * + COUNT( * ) + 33 FROM tab0 cor0 WHERE NOT + col0 / 91 - + + col1 + + 18 / - col2 IS NOT NULL
----
33

skipif mysql # not compatible
query I rowsort label-4850
SELECT DISTINCT + - 86 * + COUNT ( * ) + 33 FROM tab0 cor0 WHERE NOT + col0 / 91 - + + col1 + + 18 / - col2 IS NOT NULL
----
33

query I rowsort
SELECT DISTINCT - col2 * + + 75 AS col1 FROM tab2
----
-1725
-3000
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-4852
SELECT ALL SUM( DISTINCT col2 ) + + COUNT( * ) AS col1 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-4852
SELECT ALL SUM ( DISTINCT col2 ) + + COUNT ( * ) AS col1 FROM tab0
----
159

query I rowsort
SELECT + col2 * 81 + + col0 + + - ( + + col2 ) AS col1 FROM tab2 AS cor0
----
1886
3264
4715

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + col2 - + + 23 )
----

query II rowsort
SELECT - ( + 72 ) * - col1 + + col1 AS col2, 57 AS col0 FROM tab1 AS cor0
----
1022
57
3431
57
365
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT DISTINCT + SUM( DISTINCT - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4856
SELECT DISTINCT + SUM ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT DISTINCT 99 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 90 + + - col2 AS col2 FROM tab2 AS cor0
----
32
50
67

query I rowsort
SELECT DISTINCT + ( + - 91 ) FROM tab1 WHERE NULL IS NULL
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4860
SELECT ALL col2 DIV col2 + - col2 * + col2 * + 25 * - col1 + - - col1 AS col2 FROM tab2 AS cor0
----
3080078
5634768
674527

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL col2 / col2 + - col2 * + col2 * + 25 * - col1 + - - col1 AS col2 FROM tab2 AS cor0
----
3080078
5634768
674527

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4861
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
3

query I rowsort
SELECT + + 39 * - 97 + - 95 FROM tab1 cor0
----
-3878
-3878
-3878

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 42 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 + - col0 > + col0 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT ( + 25 ) * - + 86 + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL AND NULL IS NOT NULL
----
-2150

skipif mysql # not compatible
query I rowsort label-4865
SELECT ( + 25 ) * - + 86 + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL AND NULL IS NOT NULL
----
-2150

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col2, 74 / + 49 * - col0 * + ( + + col0 ), - col2, + col1 + - col0, col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4867
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST( + - col2 AS SIGNED ) + + - col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4867
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( + - col2 AS INTEGER ) + + - col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT ALL - 36 + - COUNT( * ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4869
SELECT ALL - 36 + - COUNT ( * ) FROM tab0 AS cor0
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 97 col2, + 72 col2 FROM tab2 cor0
----
-97
72
-97
72
-97
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT ALL - 61 + + - COUNT( * ) FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL - 61 + + - COUNT ( * ) FROM tab1
----
-64

query I rowsort
SELECT col2 * + - col2 AS col0 FROM tab1
----
-3481
-4624
-9216

query III rowsort
SELECT * FROM tab1 WHERE col2 * - + col0 IS NULL
----

query I rowsort
SELECT + col1 + + - col2 + - col1 AS col0 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT - col2 + - 45 - + - col0 * 66 * + col1 FROM tab2
----
154768
325163
331547

query II rowsort
SELECT DISTINCT - 1, col0 AS col0 FROM tab1
----
-1
51
-1
85
-1
91

query I rowsort
SELECT - - col1 + + + col0 AS col0 FROM tab2 cor0
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4878
SELECT * FROM tab1 WHERE + - CAST( NULL AS SIGNED ) NOT IN ( ( - col2 ), + ( + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-4878
SELECT * FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) NOT IN ( ( - col2 ), + ( + col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 29 col2 FROM tab2 AS cor0
----
29
29
29

onlyif mysql # DIV for integer division: 
query I rowsort label-4880
SELECT + col1 DIV - 49 col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4880
SELECT + col1 / - 49 col2 FROM tab0
----
-1
0
0

query II rowsort
SELECT col1, 59 FROM tab2
----
51
59
67
59
77
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT - MAX( ALL + 52 ) AS col2 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-4882
SELECT - MAX ( ALL + 52 ) AS col2 FROM tab1
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT DISTINCT + 95 * + COUNT( * ) AS col2 FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT + 95 * + COUNT ( * ) AS col2 FROM tab0
----
285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4884
SELECT COUNT( * ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4884
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, - col2 + - col2 col1 FROM tab2
----
51
-46
67
-116
77
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-4886
SELECT DISTINCT - 69, SUM( DISTINCT + - 19 ) col2 FROM tab2 AS cor0
----
-69
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4886
SELECT DISTINCT - 69, SUM ( DISTINCT + - 19 ) col2 FROM tab2 AS cor0
----
-69
-19

query I rowsort
SELECT DISTINCT - - 63 FROM tab2 cor0
----
63

query I rowsort
SELECT + col0 * - - col1 AS col2 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4889
SELECT * FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) + + - 57 >= - ( + 10 ) )
----

skipif mysql # not compatible
query III rowsort label-4889
SELECT * FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) + + - 57 >= - ( + 10 ) )
----

query I rowsort
SELECT col0 + - col0 * + - 1 + + + col1 + col2 FROM tab0 AS cor0
----
158
205
294

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT + SUM( ALL - col1 ) + - 23 col2 FROM tab2 AS cor0
----
-218

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4891
SELECT + SUM ( ALL - col1 ) + - 23 col2 FROM tab2 AS cor0
----
-218

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 / + col0 BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT DISTINCT - COUNT( * ) + - 44 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT - COUNT ( * ) + - 44 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4894
SELECT - + 49 + + MAX( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-4894
SELECT - + 49 + + MAX ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
50

query I rowsort
SELECT col1 * + col1 AS col2 FROM tab1 WHERE - + col2 IS NULL
----

query II rowsort
SELECT ALL col1 AS col0, + col2 FROM tab2
----
51
23
67
58
77
40

query III rowsort
SELECT * FROM tab2 WHERE + col0 * 19 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( col2 ) + + ( + col0 ) AS col1 FROM tab2
----
104
133
69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 80 * + - 23 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 32 FROM tab1 WHERE NOT - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT DISTINCT 94 - + + COUNT( * ) FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-4901
SELECT DISTINCT 94 - + + COUNT ( * ) FROM tab0
----
91

query I rowsort
SELECT ALL - 25 FROM tab2 AS cor0 WHERE ( NOT col0 NOT BETWEEN + ( - col0 ) AND + 24 * - 36 + - col0 )
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 AS cor0 WHERE ( ( NOT NULL IS NULL ) )
----

query I rowsort
SELECT 18 + + 23 * - 81 FROM tab2
----
-1845
-1845
-1845

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 AND + 38 + - 64 + - 45
----

query I rowsort
SELECT col0 * 49 FROM tab0 AS cor0
----
4263
4753
735

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4907
SELECT + COUNT( * ) DIV + 11 - - MAX( ALL - 41 ) * + SUM( - 40 ) - 84 + - + 90 + + 37 DIV + - 61 FROM tab0 AS cor0
----
4746

skipif mysql # not compatible
query I rowsort label-4907
SELECT + COUNT ( * ) / + 11 - - MAX ( ALL - 41 ) * + SUM ( - 40 ) - 84 + - + 90 + + 37 / + - 61 FROM tab0 AS cor0
----
4746

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT SUM( + col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4908
SELECT SUM ( + col2 ) AS col0 FROM tab0 AS cor0
----
156

query I rowsort
SELECT - 90 * 65 FROM tab2 cor0
----
-5850
-5850
-5850

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL <> 92 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 / + + col2 IS NOT NULL )
----

query I rowsort
SELECT ALL - col1 * - 2 / + + col2 FROM tab1 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4913
SELECT ALL MIN( - 78 ) FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL MIN ( - 78 ) FROM tab2
----
-78

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4915
SELECT DISTINCT - + 83 AS col2, COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-83
9

skipif mysql # not compatible
query II rowsort label-4915
SELECT DISTINCT - + 83 AS col2, COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-83
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT DISTINCT ( COUNT( * ) ) * 62 FROM tab0
----
186

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT ( COUNT ( * ) ) * 62 FROM tab0
----
186

query I rowsort
SELECT + col0 * - 53 * + 81 FROM tab2
----
-197478
-274752
-321975

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + - col0 * - - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4919
SELECT ALL + 0 + - + MAX( CAST( - col2 AS SIGNED ) ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL + 0 + - + MAX ( CAST ( - col2 AS INTEGER ) ) FROM tab1 cor0
----
59

query II rowsort
SELECT - 33 AS col2, + col2 + + + 44 * - col1 + + 55 FROM tab2 AS cor0
----
-33
-2166
-33
-2835
-33
-3293

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + + col0 * + 11 * col1 <= + + 34
----

query I rowsort
SELECT - ( - - 63 ) FROM tab2 AS cor0
----
-63
-63
-63

query I rowsort
SELECT ALL + 43 * - + col0 * - col1 + 58 AS col0 FROM tab1 AS cor0
----
18333
183969
30760

query I rowsort
SELECT ALL + 33 + - col0 FROM tab0
----
-54
-64
18

query I rowsort
SELECT col1 + 71 + + + 92 AS col0 FROM tab0
----
164
184
244

query I rowsort
SELECT 42 + - + col1 AS col2 FROM tab1
----
-5
28
37

query I rowsort
SELECT ( + col0 ) + + col2 + + 19 * col2 FROM tab1 AS cor0
----
1265
1451
1971

query I rowsort
SELECT - 26 + - col0 AS col1 FROM tab1 AS cor0
----
-111
-117
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT COUNT( ALL 37 ) AS col1 FROM tab0 cor0 WHERE 9 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4929
SELECT COUNT ( ALL 37 ) AS col1 FROM tab0 cor0 WHERE 9 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4930
SELECT - MIN( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4930
SELECT - MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4931
SELECT 87 DIV 13 AS col0 FROM tab0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-4931
SELECT 87 / 13 AS col0 FROM tab0
----
6
6
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4932
SELECT COUNT( * ) DIV - 38 * 40 AS col2, + 62 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
0
62

skipif mysql # not compatible
query II rowsort label-4932
SELECT COUNT ( * ) / - 38 * 40 AS col2, + 62 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
0
62

query I rowsort
SELECT DISTINCT - + 36 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT + COUNT( ALL col0 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4934
SELECT + COUNT ( ALL col0 ) AS col0 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4935
SELECT ALL - 72 DIV - 50 AS col1 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4935
SELECT ALL - 72 / - 50 AS col1 FROM tab0 cor0
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4936
SELECT DISTINCT COUNT( * ) DIV 13 * - - ( - 54 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4936
SELECT DISTINCT COUNT ( * ) / 13 * - - ( - 54 ) FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4937
SELECT DISTINCT SUM( DISTINCT + + col0 ) col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4937
SELECT DISTINCT SUM ( DISTINCT + + col0 ) col2 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4938
SELECT DISTINCT SUM( ALL - col1 ) FROM tab2 AS cor0 WHERE - 89 * - - 58 * + + col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4938
SELECT DISTINCT SUM ( ALL - col1 ) FROM tab2 AS cor0 WHERE - 89 * - - 58 * + + col2 < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT + MAX( - 10 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4939
SELECT + MAX ( - 10 ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT + + 26 AS col2 FROM tab1 AS cor0
----
26
26
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4941
SELECT 84 DIV + + COUNT( * ) AS col1 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-4941
SELECT 84 / + + COUNT ( * ) AS col1 FROM tab0
----
28

query II rowsort
SELECT - ( + - 75 ), + ( 81 ) AS col0 FROM tab0
----
75
81
75
81
75
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4943
SELECT col1 DIV 18 AS col1 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-4943
SELECT col1 / 18 AS col1 FROM tab0
----
0
1
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4944
SELECT COUNT( * ) / - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4944
SELECT COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col1 / - 3 + - + 74 <= NULL
----

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab2 WHERE + col1 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + + 76 BETWEEN NULL AND NULL )
----

query I rowsort
SELECT - + ( 27 ) AS col0 FROM tab1 AS cor0
----
-27
-27
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4949
SELECT COUNT( * ) * - SUM( ALL - 22 ) FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-4949
SELECT COUNT ( * ) * - SUM ( ALL - 22 ) FROM tab0
----
198

query I rowsort
SELECT + 58 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # aggregate syntax: 
query II rowsort label-4951
SELECT - COUNT( * ) + COUNT( * ), + COUNT( * ) AS col1 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-4951
SELECT - COUNT ( * ) + COUNT ( * ), + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0
3

query II rowsort
SELECT ALL col1 + 91 AS col0, - 92 AS col2 FROM tab1 AS cor0
----
105
-92
138
-92
96
-92

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 48 - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4954
SELECT ALL col2 * + - CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL col2 * + - CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT + + ( col0 ) * col0 + + + 8 + col1 AS col0 FROM tab2 AS cor0
----
2175
4181
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-4956
SELECT ALL - + COUNT( - col0 ) + + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL - + COUNT ( - col0 ) + + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + ( + + col0 ) FROM tab2 WHERE - col1 IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT DISTINCT COUNT( DISTINCT ( - col2 ) ) - + - COUNT( * ) * - 74 AS col0 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-4958
SELECT DISTINCT COUNT ( DISTINCT ( - col2 ) ) - + - COUNT ( * ) * - 74 AS col0 FROM tab1
----
-219

query I rowsort
SELECT DISTINCT 67 * + - col1 FROM tab2
----
-3417
-4489
-5159

query I rowsort
SELECT ALL + col2 - - 80 FROM tab0
----
127
179
90

query I rowsort
SELECT col0 - - 41 FROM tab0
----
128
138
56

query I rowsort
SELECT DISTINCT col1 + - col2 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT ( COUNT( * ) ) + - 20 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-4963
SELECT ( COUNT ( * ) ) + - 20 FROM tab0
----
-17

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - col0 ) * - col0 + + col1 AS col0 FROM tab2
----
-2065
-4019
-5558

query III rowsort
SELECT * FROM tab1 WHERE NOT 25 IN ( 24 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 63 - col0 AS col1 FROM tab2 WHERE NOT NULL <> 48 * + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4968
SELECT - MIN( - CAST( col2 AS SIGNED ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4968
SELECT - MIN ( - CAST ( col2 AS INTEGER ) ) FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT DISTINCT COUNT( col2 ) * - COUNT( * ) AS col0 FROM tab2 WHERE NOT ( - col1 * - col0 ) NOT BETWEEN NULL AND + col1 * col2 - - col2 / - col0
----
0

skipif mysql # not compatible
query I rowsort label-4969
SELECT DISTINCT COUNT ( col2 ) * - COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( - col1 * - col0 ) NOT BETWEEN NULL AND + col1 * col2 - - col2 / - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT + 97 + COUNT( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN ( + col2 * 54 ) AND col2
----
97

skipif mysql # not compatible
query I rowsort label-4970
SELECT + 97 + COUNT ( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN ( + col2 * 54 ) AND col2
----
97

query I rowsort
SELECT DISTINCT col0 + col0 * + col2 FROM tab2
----
1104
2624
4425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 53 col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND ( - col1 + col0 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4973
SELECT DISTINCT 81 + COUNT( * ) FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-4973
SELECT DISTINCT 81 + COUNT ( * ) FROM tab2
----
84

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 BETWEEN ( - col2 * 19 ) AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT MIN( ALL + col2 ) - COUNT( * ) AS col1 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-4975
SELECT MIN ( ALL + col2 ) - COUNT ( * ) AS col1 FROM tab0
----
7

query III rowsort
SELECT * FROM tab1 WHERE col2 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT 23 IN ( + 12 * + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 86 < - col0
----

query I rowsort
SELECT col0 + col0 AS col1 FROM tab1 WHERE NOT ( - col0 + + col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 WHERE col1 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT - ( + 34 ) AS col2 FROM tab1
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4982
SELECT DISTINCT - MIN( ALL ( + col0 ) ) + 67 AS col1 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-4982
SELECT DISTINCT - MIN ( ALL ( + col0 ) ) + 67 AS col1 FROM tab2
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4983
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <= - CAST( + ( 60 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4983
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) <= - CAST ( + ( 60 ) AS INTEGER )
----

query I rowsort
SELECT + col2 * 33 + col1 FROM tab0
----
1632
3268
351

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT COUNT( + 4 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4985
SELECT COUNT ( + 4 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4986
SELECT + col1 + - CAST( 89 + col2 AS SIGNED ) * col0 AS col2 FROM tab1
----
-12575
-14240
-9421

skipif mysql # not compatible
query I rowsort label-4986
SELECT + col1 + - CAST ( 89 + col2 AS INTEGER ) * col0 AS col2 FROM tab1
----
-12575
-14240
-9421

query I rowsort
SELECT DISTINCT 24 + - col0 FROM tab0
----
-63
-73
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - col0 col0 FROM tab2 WHERE NOT ( col1 ) <> 85
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 4 + + 16 >= ( NULL )
----

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE col2 + - col1 <= - col2
----
87

query I rowsort
SELECT 8 * col0 + col2 AS col0 FROM tab1 AS cor0
----
504
739
796

query I rowsort
SELECT - col0 FROM tab0 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT 98 * 13 + - col1 AS col0 FROM tab0
----
1193
1253
1273

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 * - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 81 FROM tab2 cor0 WHERE NOT ( col0 * col1 ) < ( col0 )
----
81

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4999
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT + col1 FROM tab0 cor0 WHERE NOT ( col2 ) IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5001
SELECT 75 DIV + 68 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5001
SELECT 75 / + 68 AS col2 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT ALL - MIN( ( - col0 ) ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-5002
SELECT ALL - MIN ( ( - col0 ) ) FROM tab0 cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT DISTINCT 22 + SUM( col2 + - col0 * - 95 ) col1 FROM tab2 cor0
----
17718

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5003
SELECT DISTINCT 22 + SUM ( col2 + - col0 * - 95 ) col1 FROM tab2 cor0
----
17718

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 + - 52 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 41 = ( - 78 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5006
SELECT ALL + 50 DIV + col2 + + col1 AS col1 FROM tab0 cor0
----
1
26
82

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL + 50 / + col2 + + col1 AS col1 FROM tab0 cor0
----
1
26
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + - 92 * 43 col2 FROM tab1
----
-3909
-3942
-3951

query I rowsort
SELECT col2 FROM tab2 WHERE 67 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5009
SELECT DISTINCT 21 + + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( + col2 ) <= - 22
----
NULL

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT 21 + + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( + col2 ) <= - 22
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5010
SELECT ALL - col2 - 23 - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5010
SELECT ALL - col2 - 23 - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - col0 * 57 AS col0 FROM tab0
----
-4949
-5430
-808

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE - 74 - col2 / - col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 32 * - 68 + + col1 NOT BETWEEN - col1 AND + col0 - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE col2 NOT IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5015
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + col1 + - col1 AND ( - CAST( 51 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-5015
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + col1 + - col1 AND ( - CAST ( 51 AS REAL ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5016
SELECT DISTINCT + CAST( - 31 AS SIGNED ) - + COUNT( * ) AS col0 FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-5016
SELECT DISTINCT + CAST ( - 31 AS INTEGER ) - + COUNT ( * ) AS col0 FROM tab1
----
-34

query I rowsort
SELECT - col2 + - 44 + - 46 * col1 * + 11 FROM tab0
----
-10680
-41077
-649

query I rowsort
SELECT DISTINCT col1 - - 4 AS col2 FROM tab1
----
18
51
9

query I rowsort
SELECT ALL 82 - col0 + col1 FROM tab0
----
-14
148
16

query I rowsort
SELECT 23 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IN ( - col0 * 32 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5021
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 1 > - CAST( NULL AS SIGNED ) + 69
----
0

skipif mysql # not compatible
query I rowsort label-5021
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 1 > - CAST ( NULL AS INTEGER ) + 69
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5022
SELECT DISTINCT - MAX( col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5022
SELECT DISTINCT - MAX ( col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT 47 FROM tab1 WHERE NOT ( NOT - 97 * 60 BETWEEN ( col1 ) AND NULL )
----

query I rowsort
SELECT ALL col0 + + col0 FROM tab2 WHERE NOT + - col2 * - col1 NOT IN ( 38 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT ALL + - MIN( ALL + 65 ) AS col0 FROM tab0 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL + - MIN ( ALL + 65 ) AS col0 FROM tab0 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT COUNT( * ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5026
SELECT COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
9

query I rowsort
SELECT 2 * - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NULL
----
-102
-134
-154

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5028
SELECT * FROM tab0 cor0 WHERE NOT NULL <> - CAST( NULL AS SIGNED ) * 69
----

skipif mysql # not compatible
query III rowsort label-5028
SELECT * FROM tab0 cor0 WHERE NOT NULL <> - CAST ( NULL AS INTEGER ) * 69
----

query I rowsort
SELECT 16 AS col0 FROM tab2 AS cor0 WHERE NOT ( + 53 * - col0 ) NOT BETWEEN ( col2 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT DISTINCT + 14 * 79 + - - COUNT( * ) AS col1 FROM tab0 cor0
----
1109

skipif mysql # not compatible
query I rowsort label-5030
SELECT DISTINCT + 14 * 79 + - - COUNT ( * ) AS col1 FROM tab0 cor0
----
1109

query I rowsort
SELECT DISTINCT col2 + col1 * + col0 AS col0 FROM tab0 cor0 WHERE NOT col2 * + col1 + - col0 * + col2 BETWEEN ( + 90 * 20 + 18 ) AND col1 * col0 - 60
----
1262
1837
196

query I rowsort
SELECT - col0 * - - 24 FROM tab2 cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT col2 + + ( + 88 ) AS col1 FROM tab0 AS cor0
----
135
187
98

query I rowsort
SELECT DISTINCT - col2 + - col1 * + - 71 FROM tab0
----
-28
1481
5704

onlyif mysql # DIV for integer division: 
query I rowsort label-5035
SELECT col2 + ( + 89 ) DIV - 11 AS col1 FROM tab1
----
51
60
88

skipif mysql # not compatible
query I rowsort label-5035
SELECT col2 + ( + 89 ) / - 11 AS col1 FROM tab1
----
51
60
88

query I rowsort
SELECT ALL + ( ( - col1 ) ) FROM tab0 WHERE NOT NULL BETWEEN ( 42 ) AND NULL
----

query I rowsort
SELECT 84 + + 2 AS col2 FROM tab1
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT AVG ( - col1 ) col1 FROM tab2 WHERE NOT - col0 IS NOT NULL
----
NULL

query II rowsort
SELECT + col0 + + + col0 AS col1, - col2 FROM tab2
----
128
-40
150
-58
92
-23

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 / + 30 + - ( col1 ) + - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5041
SELECT - 67 DIV - col2 AS col1 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-5041
SELECT - 67 / - col2 AS col1 FROM tab0
----
0
1
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5042
SELECT ALL 20 FROM tab2 WHERE NULL IN ( + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5042
SELECT ALL 20 FROM tab2 WHERE NULL IN ( + - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 62 / + col2 + ( - col2 ) ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= - 60
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 * + col0 * col0 + col0 * 81 ) NOT IN ( - 74 )
----

query I rowsort
SELECT - col1 + + col0 * col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) = - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5047
SELECT ALL - - 32 + CAST( NULL AS SIGNED ) * - col2 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-5047
SELECT ALL - - 32 + CAST ( NULL AS INTEGER ) * - col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + 57 ) + 18 * 3 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT + 7 + - - 96 AS col2 FROM tab2
----
103
103
103

query I rowsort
SELECT ALL + 18 * - 59 + + col0 AS col1 FROM tab0
----
-1047
-965
-975

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT ALL - COUNT( * ) AS col0 FROM tab2 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 WHERE ( NULL ) IS NULL
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE 14 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 55 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( col0 ) col1 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT + + col0 + + col0 + col1 AS col1 FROM tab1 AS cor0
----
116
175
229

query I rowsort
SELECT - 83 AS col2 FROM tab1 AS cor0 WHERE - 60 IS NOT NULL
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-5057
SELECT DISTINCT - - MIN( col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT - - MIN ( col0 ) FROM tab2 AS cor0
----
46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 53 * + 28 = + - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + ( 79 ) ) NOT BETWEEN - col0 * + + 3 - col1 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 - + 41 AND - + col1
----

query I rowsort
SELECT col1 * + 55 AS col0 FROM tab2
----
2805
3685
4235

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT DISTINCT - MIN( ALL 17 ) FROM tab0, tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT - MIN ( ALL 17 ) FROM tab0, tab0 AS cor0
----
-17

query I rowsort
SELECT + 65 AS col2 FROM tab2 WHERE NULL IS NULL
----
65
65
65

query II rowsort
SELECT DISTINCT col2 AS col1, col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5065
SELECT MAX( + CAST( NULL AS SIGNED ) ) * - AVG ( col0 ) FROM tab1 WHERE NOT + col2 * + 61 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5065
SELECT MAX ( + CAST ( NULL AS INTEGER ) ) * - AVG ( col0 ) FROM tab1 WHERE NOT + col2 * + 61 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT + col0 * col0 * + col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5067
SELECT DISTINCT MAX( - 36 ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-5067
SELECT DISTINCT MAX ( - 36 ) FROM tab2 AS cor0
----
-36

query II rowsort
SELECT + col0 AS col2, col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

query I rowsort
SELECT ALL 16 * + - 47 AS col1 FROM tab0 AS cor0
----
-752
-752
-752

query I rowsort
SELECT + 22 AS col0 FROM tab1 WHERE + col2 + + col2 IS NULL AND - col0 * - ( - col1 ) * col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 + col1 / + col2 + - 42 IS NULL
----

query I rowsort
SELECT ALL ( ( + ( + 94 ) ) ) AS col2 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT DISTINCT col1 + + col1 FROM tab0 AS cor0 WHERE ( ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT ALL - col1 + - + col0 - - + col0 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( NOT + col2 + - - ( - 96 ) IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5075
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( NOT + col2 + - - ( - 96 ) IS NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5076
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 90 * + CAST( NULL AS SIGNED ) > col0
----

skipif mysql # not compatible
query III rowsort label-5076
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 90 * + CAST ( NULL AS INTEGER ) > col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5077
SELECT DISTINCT + col0 + 32 AS col0, + CAST( - col2 AS SIGNED ) col0 FROM tab2 AS cor0
----
107
-58
78
-23
96
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5077
SELECT DISTINCT + col0 + 32 AS col0, + CAST ( - col2 AS INTEGER ) col0 FROM tab2 AS cor0
----
107
-58
78
-23
96
-40

query I rowsort
SELECT DISTINCT + + col1 * + col0 * col0 FROM tab0 cor0
----
158949
18225
9409

query II rowsort
SELECT DISTINCT + 2, col2 AS col2 FROM tab0
----
2
10
2
47
2
99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 23 >= ( + 45 + 59 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT + - MAX( ALL - col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5081
SELECT + - MAX ( ALL - col1 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT DISTINCT COUNT( col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5082
SELECT DISTINCT COUNT ( col1 ) AS col2 FROM tab0
----
3

query II rowsort
SELECT ALL - 43, col2 * col2 * col1 AS col2 FROM tab2
----
-43
123200
-43
225388
-43
26979

query I rowsort
SELECT DISTINCT + col1 * + 85 * + 90 + - col0 AS col1 FROM tab2
----
390104
512475
588986

query III rowsort
SELECT * FROM tab1 WHERE + 26 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 - - + col1 / - col2 - - 69 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5087
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <= ( - + CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5087
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) <= ( - + CAST ( col2 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5088
SELECT + + col0 / + col1 + + - CAST( NULL AS SIGNED ) + + 84 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5088
SELECT + + col0 / + col1 + + - CAST ( NULL AS INTEGER ) + + 84 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 19 * - - col0 FROM tab2 AS cor0
----
1216
1425
874

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - 47 AND NULL
----

query I rowsort
SELECT - + 90 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT DISTINCT col1 * 41 + - + 16 FROM tab2
----
2075
2731
3141

onlyif mysql # aggregate syntax: 
query II rowsort label-5093
SELECT DISTINCT + COUNT( - 31 ), + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-5093
SELECT DISTINCT + COUNT ( - 31 ), + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9
9

query I rowsort
SELECT DISTINCT - col0 - - + col0 FROM tab0
----
0

query I rowsort
SELECT - 23 * - col1 AS col0 FROM tab1
----
1081
115
322

query I rowsort
SELECT DISTINCT - col0 - + ( + - col1 ) AS col0 FROM tab2
----
-8
13
5

query I rowsort
SELECT + + 98 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT COUNT( * ) - - - 42 * + 97 FROM tab2 AS cor0
----
-4071

skipif mysql # not compatible
query I rowsort label-5098
SELECT COUNT ( * ) - - - 42 * + 97 FROM tab2 AS cor0
----
-4071

onlyif mysql # aggregate syntax: 
query I rowsort label-5099
SELECT ALL COUNT( * ) - + + 70 AS col1 FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL COUNT ( * ) - + + 70 AS col1 FROM tab1 AS cor0
----
-67

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + + col1 IS NOT NULL OR NOT NULL IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5101
SELECT + 24 * - COUNT( * ) col1 FROM tab1 cor0 WHERE ( - col0 ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5101
SELECT + 24 * - COUNT ( * ) col1 FROM tab1 cor0 WHERE ( - col0 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT DISTINCT COUNT( * ) + - 41 FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-5102
SELECT DISTINCT COUNT ( * ) + - 41 FROM tab0 AS cor0
----
-38

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5103
SELECT * FROM tab0 WHERE - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5103
SELECT * FROM tab0 WHERE - CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5104
SELECT - ( + COUNT( * ) ) * - 17 AS col1 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-5104
SELECT - ( + COUNT ( * ) ) * - 17 AS col1 FROM tab0
----
51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - - col2 + - col1 ) IN ( - col0 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT - MIN( - col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5106
SELECT - MIN ( - col2 ) AS col0 FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5107
SELECT 3 * col2 + col0 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5107
SELECT 3 * col2 + col0 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5108
SELECT - 9 AS col2, + MAX( DISTINCT 68 ) AS col2 FROM tab1
----
-9
68

skipif mysql # not compatible
query II rowsort label-5108
SELECT - 9 AS col2, + MAX ( DISTINCT 68 ) AS col2 FROM tab1
----
-9
68

query I rowsort
SELECT DISTINCT + ( 81 ) AS col2 FROM tab1
----
81

query III rowsort
SELECT ALL * FROM tab0 WHERE 89 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5111
SELECT 15 + + 4 / + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT - - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5111
SELECT 15 + + 4 / + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT - - col2 IS NOT NULL
----

query I rowsort
SELECT + ( - + 87 ) FROM tab2
----
-87
-87
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5113
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE ( - 70 + + + 26 ) <> - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE ( - 70 + + + 26 ) <> - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT ALL COUNT( * ) - + + 99 FROM tab2 cor0 WHERE ( col1 ) IS NULL
----
-99

skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL COUNT ( * ) - + + 99 FROM tab2 cor0 WHERE ( col1 ) IS NULL
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT DISTINCT MAX( + 31 ) FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-5115
SELECT DISTINCT MAX ( + 31 ) FROM tab0 AS cor0
----
31

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + 50 NOT IN ( + - col2 * + 88 * 31 * 68 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5117
SELECT - col0 * CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5117
SELECT - col0 * CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 21 * + col2 AS col0 FROM tab0 AS cor0
----
2079
210
987

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 99 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT DISTINCT - MIN( DISTINCT 61 ) FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT - MIN ( DISTINCT 61 ) FROM tab2
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5121
SELECT DISTINCT + 21 DIV - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-2

skipif mysql # not compatible
query I rowsort label-5121
SELECT DISTINCT + 21 / - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-2

query III rowsort
SELECT ALL * FROM tab1 WHERE + - ( + col2 ) * - col1 + + col0 IS NULL
----

query I rowsort
SELECT col0 + + col0 * + 61 FROM tab0 AS cor0
----
5394
6014
930

onlyif mysql # DIV for integer division: 
query I rowsort label-5124
SELECT DISTINCT - - col2 * ( - 10 ) * + - col0 * + - 10 + + 11 - ( col2 ) + - col2 + - - 19 * + col0 DIV - col0 FROM tab0 AS cor0
----
-70602
-87028
-960506

skipif mysql # not compatible
query I rowsort label-5124
SELECT DISTINCT - - col2 * ( - 10 ) * + - col0 * + - 10 + + 11 - ( col2 ) + - col2 + - - 19 * + col0 / - col0 FROM tab0 AS cor0
----
-70602
-87028
-960506

query I rowsort
SELECT ALL + 20 + - col0 - + + col0 * - 23 * - col2 FROM tab0 AS cor0
----
-16210
-20077
-220946

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + - col2 + + + 68 col0 FROM tab2 AS cor0
----
68

query I rowsort
SELECT + col1 + - 54 FROM tab0
----
-33
-53
27

query I rowsort
SELECT DISTINCT - 26 AS col0 FROM tab0, tab0 AS cor0
----
-26

query I rowsort
SELECT + - 25 FROM tab1 WHERE ( NOT NULL <> - 81 + - + col1 / + col2 * - + col0 )
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE NOT + 65 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT + col1 + + + ( - - 76 ) FROM tab0
----
157
77
97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 - 40 + - col0 - 57 - + 95 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - ( + ( - ( 29 ) ) ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - 25 + + col0 * - 75 col0 FROM tab0 AS cor0
----
-1053
-6490
-7151

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT ALL - + COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5135
SELECT ALL - + COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT DISTINCT - + col0 - + col2 AS col2 FROM tab2 cor0
----
-104
-133
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-5137
SELECT DISTINCT + + ( col1 ) DIV - + col2 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5137
SELECT DISTINCT + + ( col1 ) / - + col2 AS col2 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT ALL col2 + + ( 64 ) FROM tab0 AS cor0
----
111
163
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT + - MAX( DISTINCT - + col2 ) * + 67 col2 FROM tab0 cor0
----
670

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5139
SELECT + - MAX ( DISTINCT - + col2 ) * + 67 col2 FROM tab0 cor0
----
670

onlyif mysql # DIV for integer division: 
query I rowsort label-5140
SELECT DISTINCT - col0 DIV col1 * - 62 + col2 AS col2 FROM tab0 AS cor0
----
258
47
6113

skipif mysql # not compatible
query I rowsort label-5140
SELECT DISTINCT - col0 / col1 * - 62 + col2 AS col2 FROM tab0 AS cor0
----
258
47
6113

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT COUNT( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5141
SELECT COUNT ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5142
SELECT + col2 DIV - 22 FROM tab0 AS cor0
----
-2
-4
0

skipif mysql # not compatible
query I rowsort label-5142
SELECT + col2 / - 22 FROM tab0 AS cor0
----
-2
-4
0

query I rowsort
SELECT - - 3 AS col2 FROM tab1 AS cor0 WHERE NOT + col1 / + col0 IS NULL
----
3
3
3

query I rowsort
SELECT - + col0 AS col0 FROM tab0 WHERE NOT + 84 - - col0 IS NULL
----
-15
-87
-97

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT + ( - col2 ) >= col0
----
-10
-47
-99

query I rowsort
SELECT - col2 * + 10 FROM tab2
----
-230
-400
-580

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT ALL 54 * - - MIN( ALL - col0 ) col2 FROM tab2
----
-4050

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5147
SELECT ALL 54 * - - MIN ( ALL - col0 ) col2 FROM tab2
----
-4050

query I rowsort
SELECT DISTINCT - ( - 79 ) AS col2 FROM tab0
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5149
SELECT CAST( + col0 AS SIGNED ), ( + col1 ) + 39 AS col1 FROM tab2
----
46
90
64
116
75
106

skipif mysql # not compatible
query II rowsort label-5149
SELECT CAST ( + col0 AS INTEGER ), ( + col1 ) + 39 AS col1 FROM tab2
----
46
90
64
116
75
106

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 79 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + 1 AS col2 FROM tab1 AS cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( + 50 ) IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab0 AS cor1 ON NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 78 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + 92 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5156
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT DISTINCT - 2 * + COUNT( * ) AS col1 FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5157
SELECT DISTINCT - 2 * + COUNT ( * ) AS col1 FROM tab2 cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE - 83 NOT IN ( - + 87 )
----
3

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE - 83 NOT IN ( - + 87 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT + COUNT( ALL + - col1 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5159
SELECT + COUNT ( ALL + - col1 ) FROM tab1 cor0
----
3

query I rowsort
SELECT ALL 63 * + - col2 + + + 23 FROM tab2
----
-1426
-2497
-3631

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT DISTINCT - MIN( + col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT - MIN ( + col0 ) FROM tab1
----
-51

query I rowsort
SELECT DISTINCT + col0 * + ( 30 ) + - - col2 FROM tab2
----
1403
1960
2308

query I rowsort
SELECT - col1 + + - 52 FROM tab2
----
-103
-119
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5164
SELECT col0 + - col1 * CAST( NULL AS SIGNED ) * + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5164
SELECT col0 + - col1 * CAST ( NULL AS INTEGER ) * + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * + 63 * + col2 + + col1 FROM tab1
----
219308
291359
580622

query I rowsort
SELECT DISTINCT 57 * - + col2 AS col2 FROM tab2
----
-1311
-2280
-3306

query I rowsort
SELECT + col0 + + + col2 FROM tab2
----
104
133
69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 13 <= - + 42 * col0 / col0
----

query I rowsort
SELECT ALL col0 * + + 30 AS col1 FROM tab0
----
2610
2910
450

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT ALL MIN( DISTINCT - 80 ) * - - COUNT( * ) AS col1 FROM tab2
----
-240

skipif mysql # not compatible
query I rowsort label-5170
SELECT ALL MIN ( DISTINCT - 80 ) * - - COUNT ( * ) AS col1 FROM tab2
----
-240

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 <> + - 61 - + - col2 * - 36
----

query I rowsort
SELECT - 22 AS col2 FROM tab0 AS cor0 WHERE - 64 / col0 IS NOT NULL
----
-22
-22
-22

query I rowsort
SELECT ALL - col0 * + + 38 + + col2 + col2 AS col1 FROM tab1 AS cor0
----
-1746
-3112
-3322

query I rowsort
SELECT col2 * - col0 + - - col0 FROM tab2 AS cor0
----
-1012
-2496
-4275

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 53 AND NULL
----

query I rowsort
SELECT ALL + ( + - 83 ) AS col1 FROM tab1 cor0
----
-83
-83
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-5178
SELECT + col0 DIV + + col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-5178
SELECT + col0 / + + col1 FROM tab0 AS cor0
----
0
4
97

query I rowsort
SELECT ALL + 9 * + 93 FROM tab0 AS cor0
----
837
837
837

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 >= - col0 + - + 14
----

query I rowsort
SELECT 8 * col2 FROM tab0
----
376
792
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT SUM( ALL - col2 ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-5182
SELECT SUM ( ALL - col2 ) AS col1 FROM tab2
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * + col1 * 47 col0, + col2 AS col2 FROM tab1
----
13865
59
150212
68
63168
96

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT ( NULL ) BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5185
SELECT col0, - 49 * + - CAST( NULL AS SIGNED ) + - + 99 + + + CAST( + 48 AS DECIMAL ) + - 33 + + 46 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-5185
SELECT col0, - 49 * + - CAST ( NULL AS INTEGER ) + - + 99 + + + CAST ( + 48 AS REAL ) + - 33 + + 46 FROM tab1
----
51
NULL
85
NULL
91
NULL

query II rowsort
SELECT ALL + 90, - col2 AS col1 FROM tab1
----
90
-59
90
-68
90
-96

query I rowsort
SELECT - - 68 AS col2 FROM tab0 cor0
----
68
68
68

query I rowsort
SELECT ALL + + col0 + + 46 FROM tab1 AS cor0
----
131
137
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT DISTINCT ( - SUM( - col2 ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-5189
SELECT DISTINCT ( - SUM ( - col2 ) ) FROM tab0
----
156

query I rowsort
SELECT + col2 + - - 16 AS col1 FROM tab0 AS cor0
----
115
26
63

query I rowsort
SELECT + col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5192
SELECT col2 DIV + col1 + + col2 + - 48 FROM tab0 cor0
----
-1
-38
150

skipif mysql # not compatible
query I rowsort label-5192
SELECT col2 / + col1 + + col2 + - 48 FROM tab0 cor0
----
-1
-38
150

query I rowsort
SELECT + - col1 + col2 - + col2 FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT - COUNT( * ) FROM tab2 WHERE - col2 <= col1 - + + 10
----
-3

skipif mysql # not compatible
query I rowsort label-5194
SELECT - COUNT ( * ) FROM tab2 WHERE - col2 <= col1 - + + 10
----
-3

query I rowsort
SELECT DISTINCT 19 * col1 - + + 83 FROM tab1
----
12
183
810

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT ALL - + MIN( DISTINCT col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL AND NOT 87 BETWEEN - + 83 AND - 28
----
NULL

skipif mysql # not compatible
query I rowsort label-5196
SELECT ALL - + MIN ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL AND NOT 87 BETWEEN - + 83 AND - 28
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col1 * + col2 * col2 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5198
SELECT DISTINCT - - CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5198
SELECT DISTINCT - - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query II rowsort
SELECT - col1 AS col0, col1 FROM tab1
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5200
SELECT - ( - - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5200
SELECT - ( - - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5201
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, - col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-5201
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, - col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

query II rowsort
SELECT - - 99 AS col1, 1 FROM tab1 AS cor0
----
99
1
99
1
99
1

query I rowsort
SELECT - - 0 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5204
SELECT - COUNT( 39 ) AS col0, + 84 AS col1 FROM tab2 AS cor0
----
-3
84

skipif mysql # not compatible
query II rowsort label-5204
SELECT - COUNT ( 39 ) AS col0, + 84 AS col1 FROM tab2 AS cor0
----
-3
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5205
SELECT - - COUNT( * ) AS col0, 41 * + - CAST( ( + 11 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
3
-451

skipif mysql # not compatible
query II rowsort label-5205
SELECT - - COUNT ( * ) AS col0, 41 * + - CAST ( ( + 11 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
3
-451

query II rowsort
SELECT ALL - col0 AS col1, - col2 FROM tab0 AS cor0
----
-15
-47
-87
-10
-97
-99

query I rowsort
SELECT ALL col0 * - 59 - + + col0 * - ( - - col0 ) AS col2 FROM tab1 AS cor0
----
-408
2210
2912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 * + - col2 col2 FROM tab1 AS cor0
----
5369
6188
8736

query II rowsort
SELECT DISTINCT col1 AS col0, + col2 AS col0 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT DISTINCT col0 * + col0 FROM tab1 AS cor0 WHERE NOT + 33 IS NULL
----
2601
7225
8281

query II rowsort
SELECT ALL - + 67 AS col0, - col1 AS col0 FROM tab1 AS cor0
----
-67
-14
-67
-47
-67
-5

query I rowsort
SELECT - - col2 FROM tab1 cor0 WHERE NOT NULL <= + 7
----

query II rowsort
SELECT col2 * col0 AS col1, - col0 FROM tab0
----
705
-15
870
-87
9603
-97

query I rowsort
SELECT ALL + 58 * - ( + col1 ) FROM tab2
----
-2958
-3886
-4466

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 90 BETWEEN - + 45 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5216
SELECT DISTINCT - col1 DIV - 88 * col0 DIV - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT - col1 / - 88 * col0 / - col2 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5217
SELECT ALL - 31 DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5217
SELECT ALL - 31 / + col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT ALL SUM( - ( - col0 ) ) AS col0 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-5218
SELECT ALL SUM ( - ( - col0 ) ) AS col0 FROM tab2
----
185

query I rowsort
SELECT 26 * col1 AS col0 FROM tab2
----
1326
1742
2002

query II rowsort
SELECT ALL - 11 * 50 + - col0 * - + 41 AS col1, - ( + col1 ) FROM tab1
----
1541
-14
2935
-5
3181
-47

query I rowsort
SELECT DISTINCT + col1 * 96 + 95 FROM tab0
----
191
2111
7871

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT + col1 * + col2 IS NOT NULL
----

query I rowsort
SELECT - col1 * + + col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT + ( + + col2 ) AS col1 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT col1 + + - ( col0 ) AS col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT DISTINCT + col0 + + - ( col1 ) FROM tab1
----
37
44
80

query II rowsort
SELECT ALL - col0 + - col1 AS col0, col0 FROM tab0
----
-108
87
-96
15
-98
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5228
SELECT + 14 * - COUNT( * ) * COUNT( DISTINCT + col0 ) * - 78 + 96 AS col1 FROM tab2
----
9924

skipif mysql # not compatible
query I rowsort label-5228
SELECT + 14 * - COUNT ( * ) * COUNT ( DISTINCT + col0 ) * - 78 + 96 AS col1 FROM tab2
----
9924

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 62 - + + col0, - col2 col0 FROM tab2
----
-13
-58
-2
-40
16
-23

query I rowsort
SELECT ALL - 92 - + + col2 * - 13 AS col2 FROM tab1 AS cor0
----
1156
675
792

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 49 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 3
----

query I rowsort
SELECT ( + - col2 ) * - col2 - + col1 FROM tab1 AS cor0
----
3476
4577
9202

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 / + col2 NOT IN ( - col2, + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5235
SELECT DISTINCT - col0 * + col2 + + - col1 DIV + 65 AS col1 FROM tab2 AS cor0
----
-1058
-2561
-4351

skipif mysql # not compatible
query I rowsort label-5235
SELECT DISTINCT - col0 * + col2 + + - col1 / + 65 AS col1 FROM tab2 AS cor0
----
-1058
-2561
-4351

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT ALL + - MIN( + - col0 ) * 47 col0 FROM tab1 AS cor0
----
4277

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5236
SELECT ALL + - MIN ( + - col0 ) * 47 col0 FROM tab1 AS cor0
----
4277

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IS NOT NULL OR NOT col1 / col0 < + col2
----

query I rowsort
SELECT DISTINCT - 97 * + - 19 AS col1 FROM tab2
----
1843

query I rowsort
SELECT - ( + 44 ) * col2 FROM tab0
----
-2068
-4356
-440

query I rowsort
SELECT ALL col1 * - - ( col0 ) AS col1 FROM tab1
----
425
4277
714

query II rowsort
SELECT DISTINCT ( + col2 ), + ( - col0 ) FROM tab2
----
23
-46
40
-64
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5242
SELECT DISTINCT + + COUNT( * ) col2 FROM tab2 WHERE - 10 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5242
SELECT DISTINCT + + COUNT ( * ) col2 FROM tab2 WHERE - 10 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 31 col1 FROM tab1
----
1457
155
434

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5244
SELECT 98 DIV MIN( ALL CAST( - col0 AS SIGNED ) ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5244
SELECT 98 / MIN ( ALL CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5245
SELECT + MIN( col0 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5245
SELECT + MIN ( col0 ) AS col2 FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5246
SELECT ALL - CAST( + 38 AS SIGNED ) AS col0 FROM tab2
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL - CAST ( + 38 AS INTEGER ) AS col0 FROM tab2
----
-38
-38
-38

query I rowsort
SELECT - col0 * + + 56 * + col1 AS col2 FROM tab1
----
-23800
-239512
-39984

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col1, 15 + - - ( ( - 50 ) ) col2 FROM tab0 AS cor0
----
10
-35
47
-35
99
-35

query II rowsort
SELECT ALL - col1 * - col0, col1 FROM tab2 AS cor0
----
2346
51
4928
77
5025
67

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 > NULL
----

query I rowsort
SELECT DISTINCT 14 + + col2 * 28 FROM tab0 AS cor0
----
1330
2786
294

query I rowsort
SELECT DISTINCT + + col0 + col2 + - col2 FROM tab2 AS cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col0, 11 + - ( - - col1 ) AS col0 FROM tab1 AS cor0
----
14
-3
47
-36
5
6

query I rowsort
SELECT ALL + 86 * 34 AS col1 FROM tab2
----
2924
2924
2924

query I rowsort
SELECT ALL + 44 AS col1 FROM tab1 cor0
----
44
44
44

query II rowsort
SELECT - col0 + - 59 AS col2, - 92 * - col2 AS col0 FROM tab0 AS cor0
----
-146
920
-156
9108
-74
4324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5257
SELECT DISTINCT + + CAST( + + 83 AS SIGNED ) FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-5257
SELECT DISTINCT + + CAST ( + + 83 AS INTEGER ) FROM tab1 AS cor0
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5258
SELECT DISTINCT - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) + + - 79 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5258
SELECT DISTINCT - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) + + - 79 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 63 AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
63
63
63

onlyif mysql # DIV for integer division: 
query I rowsort label-5260
SELECT ALL + 7 DIV col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL + 7 / col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - 64 + - + col2 AS col2 FROM tab1
----
-123
-132
-160

query III rowsort
SELECT * FROM tab2 WHERE 52 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 95 / + col1 * col0 + + col0 col1 FROM tab1 WHERE NOT col0 IS NOT NULL AND + 42 + + col2 NOT BETWEEN col2 AND + col2
----

query I rowsort
SELECT DISTINCT col1 + + col1 + col2 FROM tab2
----
125
192
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + col2 col1 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT + 29 - - col2 * col2 AS col0 FROM tab2
----
1629
3393
558

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IS NOT NULL AND ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT ALL - MAX( ALL + 58 ) AS col0 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL - MAX ( ALL + 58 ) AS col0 FROM tab2 cor0
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5269
SELECT - - col0 DIV + 51 - - col1 FROM tab2 AS cor0
----
51
68
78

skipif mysql # not compatible
query I rowsort label-5269
SELECT - - col0 / + 51 - - col1 FROM tab2 AS cor0
----
51
68
78

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 44 <= + 36
----

query II rowsort
SELECT ( + + col1 ), col2 AS col2 FROM tab2 cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT DISTINCT + MAX( 54 ) AS col0 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-5272
SELECT DISTINCT + MAX ( 54 ) AS col0 FROM tab0 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query II rowsort label-5273
SELECT ALL COUNT( - 71 ) AS col1, COUNT( * ) FROM tab1 AS cor0 WHERE - col1 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-5273
SELECT ALL COUNT ( - 71 ) AS col1, COUNT ( * ) FROM tab1 AS cor0 WHERE - col1 IS NULL
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5274
SELECT DISTINCT + + col2 * + 14 + 10 DIV ( - ( 34 ) ) FROM tab0 AS cor0
----
1386
140
658

skipif mysql # not compatible
query I rowsort label-5274
SELECT DISTINCT + + col2 * + 14 + 10 / ( - ( 34 ) ) FROM tab0 AS cor0
----
1386
140
658

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < ( 16 / - 76 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( 48 ) col1 FROM tab0
----
-48

query I rowsort
SELECT + 18 * col1 AS col0 FROM tab1
----
252
846
90

onlyif mysql # DIV for integer division: 
query I rowsort label-5278
SELECT col1 DIV + - 94 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5278
SELECT col1 / + - 94 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IN ( col0, 72, + col0 + + col1 + + + ( + col0 ) + ( col0 ) + 11 )
----
0

skipif mysql # not compatible
query I rowsort label-5279
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IN ( col0, 72, + col0 + + col1 + + + ( + col0 ) + ( col0 ) + 11 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5280
SELECT - CAST( + 79 AS SIGNED ) + - 38 * col1 FROM tab2
----
-2017
-2625
-3005

skipif mysql # not compatible
query I rowsort label-5280
SELECT - CAST ( + 79 AS INTEGER ) + - 38 * col1 FROM tab2
----
-2017
-2625
-3005

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5281
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT - col2 + col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT + COUNT( + 48 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5283
SELECT + COUNT ( + 48 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT 61 * - + col0 FROM tab1
----
-3111
-5185
-5551

query I rowsort
SELECT - - 37 * - col2 * + col2 FROM tab2 AS cor0
----
-124468
-19573
-59200

query I rowsort
SELECT - 38 - col2 FROM tab2 AS cor0
----
-61
-78
-96

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + - col0 * 83 FROM tab1 cor0
----
-4233
-7055
-7553

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5289
SELECT ALL + + COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5289
SELECT ALL + + COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( col1 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5291
SELECT DISTINCT - col1 DIV + 10 AS col0 FROM tab2 AS cor0
----
-5
-6
-7

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT - col1 / + 10 AS col0 FROM tab2 AS cor0
----
-5
-6
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT ALL + 62 + + 65 * COUNT( * ) AS col1 FROM tab1
----
257

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL + 62 + + 65 * COUNT ( * ) AS col1 FROM tab1
----
257

query I rowsort
SELECT - col2 * - col2 + 32 AS col0 FROM tab2
----
1632
3396
561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - + col0 * - col1 col1 FROM tab1
----
4368
510
765

query I rowsort
SELECT DISTINCT 26 + - col2 * + + col2 AS col2 FROM tab0
----
-2183
-74
-9775

query I rowsort
SELECT DISTINCT + 80 - - col2 AS col2 FROM tab0
----
127
179
90

query I rowsort
SELECT + 5 + - col0 - - + col0 AS col0 FROM tab2
----
5
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5298
SELECT ALL * FROM tab1 WHERE 50 * + col2 + + col0 + 64 * + col2 + - CAST( NULL AS SIGNED ) + + col0 + - 33 + + 52 * 21 + + - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5298
SELECT ALL * FROM tab1 WHERE 50 * + col2 + + col0 + 64 * + col2 + - CAST ( NULL AS INTEGER ) + + col0 + - 33 + + 52 * 21 + + - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 - - col1 NOT BETWEEN NULL AND + col0 * - + 21
----

query I rowsort
SELECT ALL ( 0 ) AS col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5301
SELECT ALL + ( - + CAST( NULL AS SIGNED ) ) + - - col1 AS col1, + CAST( - + col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( + + 72 ) * + + col2 IS NULL
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
query II rowsort label-5301
SELECT ALL + ( - + CAST ( NULL AS INTEGER ) ) + - - col1 AS col1, + CAST ( - + col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( + + 72 ) * + + col2 IS NULL
----
NULL
-51
NULL
-85
NULL
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT DISTINCT + COUNT( - - 30 ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5302
SELECT DISTINCT + COUNT ( - - 30 ) col0 FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 < NULL
----

query I rowsort
SELECT 45 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query II rowsort
SELECT DISTINCT + - col2, + col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 15 + + col0 col0 FROM tab1 AS cor0
----
36
70
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5307
SELECT + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5307
SELECT + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT DISTINCT MAX( + col1 ) * MAX( DISTINCT - + col1 ) FROM tab2 AS cor0
----
-3927

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT MAX ( + col1 ) * MAX ( DISTINCT - + col1 ) FROM tab2 AS cor0
----
-3927

query I rowsort
SELECT 63 + - 44 FROM tab2 AS cor0
----
19
19
19

query I rowsort
SELECT - col1 + + col2 + + - 61 + + + 32 AS col2 FROM tab2
----
-38
-57
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT 57 + - COUNT( DISTINCT - 98 ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-5311
SELECT 57 + - COUNT ( DISTINCT - 98 ) FROM tab1
----
56

query I rowsort
SELECT + 10 * - col0 AS col1 FROM tab0
----
-150
-870
-970

query III rowsort
SELECT * FROM tab0 WHERE + + col0 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5314
SELECT - 76 * - COUNT( * ) AS col1 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-5314
SELECT - 76 * - COUNT ( * ) AS col1 FROM tab0
----
228

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 13 col1 FROM tab1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-5316
SELECT ALL - - SUM( DISTINCT 19 ) AS col1 FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL - - SUM ( DISTINCT 19 ) AS col1 FROM tab2 AS cor0
----
19

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 47 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + + col0 * - 36 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT ALL MIN( + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL MIN ( + col2 ) FROM tab1 AS cor0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT SUM( 34 ) + + - 8 AS col0 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-5321
SELECT SUM ( 34 ) + + - 8 AS col0 FROM tab1
----
94

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 IN ( - - col0 + ( - col0 ) + - 43 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col1 * + + col0 AS col0 FROM tab1 AS cor0
----
425
4277
714

query II rowsort
SELECT - 7 * + col1 + - col0 AS col1, col2 AS col2 FROM tab0 AS cor0
----
-104
99
-234
10
-582
47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 58 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT ALL MIN( ALL + col1 ) + 62 AS col0 FROM tab1 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL MIN ( ALL + col1 ) + 62 AS col0 FROM tab1 AS cor0
----
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5327
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT - CAST ( NULL AS REAL ) + - + COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT DISTINCT SUM( 17 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5328
SELECT DISTINCT SUM ( 17 ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT - + SUM( + col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5329
SELECT - + SUM ( + col1 ) FROM tab0 AS cor0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5330
SELECT DISTINCT + + 23 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5330
SELECT DISTINCT + + 23 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 22 col0 FROM tab2
----
22
22
22

query III rowsort
SELECT * FROM tab0 WHERE NOT - 87 >= NULL
----

query I rowsort
SELECT + 11 AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 NOT IN ( - 15, col1, col1 * - col1, - 86 )
----

query II rowsort
SELECT col2 AS col0, col2 * + 73 - - ( + col1 ) AS col2 FROM tab1
----
59
4312
68
5011
96
7022

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 - + + col2 * - 46 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5337
SELECT - + CAST( NULL AS SIGNED ) * + 74 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5337
SELECT - + CAST ( NULL AS INTEGER ) * + 74 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT - SUM( - - 8 ) FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5338
SELECT - SUM ( - - 8 ) FROM tab0 AS cor0
----
-24

query I rowsort
SELECT DISTINCT col0 + - + col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5340
SELECT DISTINCT col2 DIV - + col1 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT col2 / - + col1 FROM tab1 AS cor0
----
-1
-11
-6

query I rowsort
SELECT + - 47 * + ( col2 ) FROM tab1 AS cor0
----
-2773
-3196
-4512

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT + 47 * + ( + 31 ) * - 15 - - 78 + - COUNT( * ) FROM tab0 AS cor0
----
-21780

skipif mysql # not compatible
query I rowsort label-5343
SELECT + 47 * + ( + 31 ) * - 15 - - 78 + - COUNT ( * ) FROM tab0 AS cor0
----
-21780

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5344
SELECT DISTINCT * FROM tab0 WHERE - CAST( - + ( - col1 ) AS SIGNED ) = + 32 * - 25 + - - 92 + + col0
----

skipif mysql # not compatible
query III rowsort label-5344
SELECT DISTINCT * FROM tab0 WHERE - CAST ( - + ( - col1 ) AS INTEGER ) = + 32 * - 25 + - - 92 + + col0
----

query I rowsort
SELECT col1 * - col2 * - + 38 FROM tab1
----
11210
121448
51072

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 / + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT DISTINCT MIN( ALL + - col0 ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-5347
SELECT DISTINCT MIN ( ALL + - col0 ) FROM tab1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5348
SELECT * FROM tab1 WHERE - 83 * - 45 * - - col0 + col1 * - col1 - + + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND - - 67
----

skipif mysql # not compatible
query III rowsort label-5348
SELECT * FROM tab1 WHERE - 83 * - 45 * - - col0 + col1 * - col1 - + + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND - - 67
----

query I rowsort
SELECT - 27 + 60 * + col0 FROM tab0
----
5193
5793
873

query I rowsort
SELECT - col2 + - 73 AS col0 FROM tab0
----
-120
-172
-83

query I rowsort
SELECT col2 + ( + - 95 ) FROM tab2
----
-37
-55
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-5352
SELECT DISTINCT col2 DIV - - 58 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5352
SELECT DISTINCT col2 / - - 58 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + col2 + - col1, - 88 col0 FROM tab1
----
-26
-88
49
-88
68
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT + 26 + SUM( - col1 ) col2 FROM tab1
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5354
SELECT + 26 + SUM ( - col1 ) col2 FROM tab1
----
-40

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 55 * 6 + + - 70 IS NULL
----

query I rowsort
SELECT DISTINCT - 3 + - col1 + + 20 AS col0 FROM tab2 AS cor0
----
-34
-50
-60

query I rowsort
SELECT ALL 86 AS col1 FROM tab0 WHERE - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL = col1 * + col2 + + ( - ( col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 - 91 * - + col0 + 69, col0 * - 14 col1 FROM tab2
----
4306
-644
5970
-896
6961
-1050

query I rowsort
SELECT + + col1 * col2 - - 20 FROM tab1 AS cor0
----
1364
315
3216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - 79 col1, col1 - - - 32 FROM tab2 cor0
----
4029
19
5293
35
6083
45

query I rowsort
SELECT DISTINCT - 53 * - col2 AS col2 FROM tab0
----
2491
5247
530

query I rowsort
SELECT DISTINCT + ( + col0 ) * col2 AS col2 FROM tab0
----
705
870
9603

query II rowsort
SELECT DISTINCT col2, - col0 AS col0 FROM tab2
----
23
-46
40
-64
58
-75

query I rowsort
SELECT ALL - col1 * - 75 * + col0 AS col0 FROM tab2
----
175950
369600
376875

query I rowsort
SELECT - col2 * + 90 AS col0 FROM tab0
----
-4230
-8910
-900

query III rowsort
SELECT + col2 AS col2, - col2 + - col2, + 46 AS col1 FROM tab2
----
9 values hashing to 1f942b5d59421a39867ac6277163d951

query I rowsort
SELECT DISTINCT + col2 * + - col1 AS col1 FROM tab1
----
-1344
-295
-3196

query II rowsort
SELECT DISTINCT - col2, - col2 - - 95 AS col2 FROM tab1 WHERE NULL IS NULL
----
-59
36
-68
27
-96
-1

query I rowsort
SELECT + col0 * - - 64 AS col0 FROM tab1 cor0
----
3264
5440
5824

onlyif mysql # aggregate syntax: 
query I rowsort label-5371
SELECT + + MIN( 94 ) AS col0 FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-5371
SELECT + + MIN ( 94 ) AS col0 FROM tab0 AS cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5372
SELECT ALL - col2 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5372
SELECT ALL - col2 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 17 * - col2 AS col1 FROM tab2 AS cor0
----
-391
-680
-986

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col2 - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5375
SELECT ALL + COUNT( * ) DIV - - COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL + COUNT ( * ) / - - COUNT ( * ) FROM tab0
----
1

query II rowsort
SELECT DISTINCT - col0 AS col2, col0 * + col0 AS col1 FROM tab1
----
-51
2601
-85
7225
-91
8281

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5377
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 * + 59 / + CAST( NULL AS SIGNED ) AND - col1
----

skipif mysql # not compatible
query III rowsort label-5377
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 * + 59 / + CAST ( NULL AS INTEGER ) AND - col1
----

query I rowsort
SELECT ALL - col1 + - col2 * col0 * - col1 AS col1 FROM tab1 AS cor0
----
25070
290789
68530

query I rowsort
SELECT - + 76 + - col1 AS col2 FROM tab2 AS cor0
----
-127
-143
-153

onlyif mysql # DIV for integer division: 
query I rowsort label-5380
SELECT + col2 + col0 + - col2 DIV + - 74 + + 50 AS col2 FROM tab0 AS cor0
----
112
147
247

skipif mysql # not compatible
query I rowsort label-5380
SELECT + col2 + col0 + - col2 / + - 74 + + 50 AS col2 FROM tab0 AS cor0
----
112
147
247

query I rowsort
SELECT DISTINCT - col2 + + 11 AS col2 FROM tab0 AS cor0
----
-36
-88
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT ALL ( - COUNT( * ) ) + - COUNT( * ) col1 FROM tab1
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5382
SELECT ALL ( - COUNT ( * ) ) + - COUNT ( * ) col1 FROM tab1
----
-6

query III rowsort
SELECT * FROM tab1 WHERE col0 * + - 99 IS NULL
----

query I rowsort
SELECT - 8 + - 82 * + col2 FROM tab0 AS cor0
----
-3862
-8126
-828

query I rowsort
SELECT + + col2 + - ( + col0 ) FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5386
SELECT ALL - 22 + + + SUM( CAST( - col0 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-5386
SELECT ALL - 22 + + + SUM ( CAST ( - col0 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-249

query I rowsort
SELECT + 44 FROM tab2 WHERE + col0 IS NULL
----

query I rowsort
SELECT - + col2 * - 85 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1 * + + col0 * - 74 - - col1 AS col0, 35 AS col2 FROM tab2
----
-173553
35
-364595
35
-371783
35

query I rowsort
SELECT DISTINCT + + 13 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
13

query I rowsort
SELECT ALL + 43 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 199105619049271147956de52e7f5ed4

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 74 >= - + 35 * + - col2 + + 79
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT ALL COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5393
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----
0

query I rowsort
SELECT ALL col2 * - 53 AS col2 FROM tab2 AS cor0
----
-1219
-2120
-3074

query I rowsort
SELECT - 53 * - col0 FROM tab0 cor0
----
4611
5141
795

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT COUNT( ALL + col2 ) * - MAX( ALL 12 ) AS col0 FROM tab1 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-5396
SELECT COUNT ( ALL + col2 ) * - MAX ( ALL 12 ) AS col0 FROM tab1 cor0
----
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-5397
SELECT COUNT( * ), COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT + col2 <> NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-5397
SELECT COUNT ( * ), COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT + col2 <> NULL
----
0
0

query II rowsort
SELECT DISTINCT col1, - 70 + col2 * + - 1 FROM tab0 AS cor0
----
1
-169
21
-80
81
-117

query I rowsort
SELECT DISTINCT + col2 * + - 45 AS col2 FROM tab2 cor0
----
-1035
-1800
-2610

query I rowsort
SELECT ALL - + 39 AS col1 FROM tab1 AS cor0
----
-39
-39
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5401
SELECT ALL + CAST( NULL AS SIGNED ) * col1 / + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 / + col0 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5402
SELECT col1 DIV - + col0 AS col1, + col1 * - 1 AS col0 FROM tab0
----
-5
-81
0
-1
0
-21

skipif mysql # not compatible
query II rowsort label-5402
SELECT col1 / - + col0 AS col1, + col1 * - 1 AS col0 FROM tab0
----
-5
-81
0
-1
0
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5403
SELECT ALL col1 * + + 8 - - col2 + + + col0 AS col0, col2 + - + col0 * - + 97 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
477
NULL
669
NULL
720
NULL

skipif mysql # not compatible
query II rowsort label-5403
SELECT ALL col1 * + + 8 - - col2 + + + col0 AS col0, col2 + - + col0 * - + 97 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
477
NULL
669
NULL
720
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT + 82 + + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-5404
SELECT + 82 + + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT ALL + COUNT( * ) + 88 AS col0 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-5405
SELECT ALL + COUNT ( * ) + 88 AS col0 FROM tab2
----
91

query II rowsort
SELECT ALL - 95, - 3 AS col2 FROM tab0
----
-95
-3
-95
-3
-95
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5407
SELECT - + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5407
SELECT - + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 3 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 99 AND + col0 * - col1 + - + col2 + + 43
----

query I rowsort
SELECT ALL + col0 + 50 AS col1 FROM tab0 AS cor0
----
137
147
65

query I rowsort
SELECT - 52 * - col2 FROM tab2 AS cor0
----
1196
2080
3016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5411
SELECT DISTINCT col2 + + col2 + CAST( - - 41 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
121
157
87

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT col2 + + col2 + CAST ( - - 41 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
121
157
87

query I rowsort
SELECT ALL + 39 * col2 * + col0 FROM tab0 AS cor0
----
27495
33930
374517

query I rowsort
SELECT DISTINCT - - col0 + - + 76 AS col0 FROM tab2 cor0
----
-1
-12
-30

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN - col0 * - 14 AND - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT ALL - 0 + + MAX( - + 90 ) AS col0 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-5415
SELECT ALL - 0 + + MAX ( - + 90 ) AS col0 FROM tab2 AS cor0
----
-90

query I rowsort
SELECT ALL - col2 + 58 FROM tab1
----
-1
-10
-38

query III rowsort
SELECT * FROM tab1 WHERE - 70 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + + - col1 AS col0 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5419
SELECT DISTINCT CAST( - 98 AS SIGNED ) * + col1 FROM tab1
----
-1372
-4606
-490

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT CAST ( - 98 AS INTEGER ) * + col1 FROM tab1
----
-1372
-4606
-490

query I rowsort
SELECT DISTINCT col1 + col2 * col1 * col0 AS col2 FROM tab2
----
197197
291517
54009

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5421
SELECT - 89 * + - CAST( NULL AS SIGNED ) + - MAX( + - col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5421
SELECT - 89 * + - CAST ( NULL AS INTEGER ) + - MAX ( + - col2 ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + col2 AS col0, - 25 AS col0 FROM tab2 AS cor0
----
23
-25
40
-25
58
-25

query II rowsort
SELECT ALL - + 87 + - ( col0 ) AS col0, - 33 + + col0 + - 77 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN + col2 AND NULL
----

query I rowsort
SELECT 36 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5425
SELECT DISTINCT + col1 + - - CAST( col1 AS SIGNED ) FROM tab0 AS cor0 WHERE ( + col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT + col1 + - - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0 WHERE ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5426
SELECT DISTINCT - COUNT( + 67 ), + 47 AS col2 FROM tab0 cor0
----
-3
47

skipif mysql # not compatible
query II rowsort label-5426
SELECT DISTINCT - COUNT ( + 67 ), + 47 AS col2 FROM tab0 cor0
----
-3
47

query I rowsort
SELECT 53 * + 51 FROM tab1 AS cor0
----
2703
2703
2703

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5428
SELECT CAST( + - 23 AS SIGNED ) * + col0 FROM tab1 cor0
----
-1173
-1955
-2093

skipif mysql # not compatible
query I rowsort label-5428
SELECT CAST ( + - 23 AS INTEGER ) * + col0 FROM tab1 cor0
----
-1173
-1955
-2093

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5429
SELECT - 53 DIV + + COUNT( * ) AS col2 FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-5429
SELECT - 53 / + + COUNT ( * ) AS col2 FROM tab1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT + MAX( + col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5430
SELECT + MAX ( + col2 ) FROM tab1
----
96

query II rowsort
SELECT DISTINCT col2, - col2 + col2 - - col1 FROM tab0
----
10
21
47
81
99
1

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + - 50 col0 FROM tab1 AS cor0
----
2350
250
700

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT DISTINCT + 58 * - - COUNT( * ) FROM tab0 AS cor0 WHERE NULL <> 35
----
0

skipif mysql # not compatible
query I rowsort label-5434
SELECT DISTINCT + 58 * - - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <> 35
----
0

query I rowsort
SELECT + 56 * 54 AS col2 FROM tab1 cor0
----
3024
3024
3024

query I rowsort
SELECT col2 FROM tab0 WHERE NOT - col0 - col2 IN ( - 7 )
----
10
47
99

query I rowsort
SELECT col1 - + 64 AS col2 FROM tab1
----
-17
-50
-59

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 / - ( col0 ) < ( - 83 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5439
SELECT + SUM( col0 ) - + COUNT( * ) FROM tab1
----
224

skipif mysql # not compatible
query I rowsort label-5439
SELECT + SUM ( col0 ) - + COUNT ( * ) FROM tab1
----
224

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) <> ( + 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT - COUNT( * ) * 39 AS col0 FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-5441
SELECT - COUNT ( * ) * 39 AS col0 FROM tab2
----
-117

query I rowsort
SELECT + col1 * + 97 AS col2 FROM tab2
----
4947
6499
7469

onlyif mysql # DIV for integer division: 
query I rowsort label-5443
SELECT ALL - col0 DIV col0 + + 35 * ( col2 ) AS col2 FROM tab0
----
1644
3464
349

skipif mysql # not compatible
query I rowsort label-5443
SELECT ALL - col0 / col0 + + 35 * ( col2 ) AS col2 FROM tab0
----
1644
3464
349

query I rowsort
SELECT ( ( col1 ) ) * + col2 FROM tab0
----
210
3807
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5445
SELECT DISTINCT SUM( col2 ) * COUNT( * ) AS col2 FROM tab2 WHERE ( NULL ) >= CAST( NULL AS SIGNED ) / + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5445
SELECT DISTINCT SUM ( col2 ) * COUNT ( * ) AS col2 FROM tab2 WHERE ( NULL ) >= CAST ( NULL AS INTEGER ) / + col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5446
SELECT ALL col1 * + CAST( NULL AS SIGNED ) + + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL col1 * + CAST ( NULL AS INTEGER ) + + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT COUNT( * ) * 87 FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-5447
SELECT COUNT ( * ) * 87 FROM tab2
----
261

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 98 + + col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) <> 91 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> ( col0 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) * + col1 col1 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + col1 BETWEEN 49 * + col2 AND ( 22 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5453
SELECT - MAX( col0 ) - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5453
SELECT - MAX ( col0 ) - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 90 * 15 AS col1 FROM tab2
----
-1350

query I rowsort
SELECT ( + 64 ) AS col2 FROM tab2
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5456
SELECT DISTINCT CAST( - 7 AS SIGNED ) * - col2 FROM tab1
----
413
476
672

skipif mysql # not compatible
query I rowsort label-5456
SELECT DISTINCT CAST ( - 7 AS INTEGER ) * - col2 FROM tab1
----
413
476
672

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT MAX( - 17 ) AS col2 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-5457
SELECT MAX ( - 17 ) AS col2 FROM tab2
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5458
SELECT + col1 AS col1 FROM tab2 WHERE - ( + col0 ) NOT BETWEEN 87 AND - col1 + + CAST( NULL AS SIGNED )
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5458
SELECT + col1 AS col1 FROM tab2 WHERE - ( + col0 ) NOT BETWEEN 87 AND - col1 + + CAST ( NULL AS INTEGER )
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 <= 84
----

query I rowsort
SELECT DISTINCT + ( col1 ) FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 33 FROM tab0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5462
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5462
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( CAST ( - col2 AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5463
SELECT COUNT( * ) / 94 - + CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5463
SELECT COUNT ( * ) / 94 - + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL >= ( NULL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5464
SELECT COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5464
SELECT COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5465
SELECT 97 DIV - col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5465
SELECT 97 / - col1 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5466
SELECT ALL + 2 + - 90 DIV - COUNT( * ) FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL + 2 + - 90 / - COUNT ( * ) FROM tab2
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5467
SELECT ALL CAST( + 46 AS SIGNED ) AS col0 FROM tab1
----
46
46
46

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL CAST ( + 46 AS INTEGER ) AS col0 FROM tab1
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT 9 - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5468
SELECT 9 - COUNT ( * ) FROM tab2
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-5469
SELECT ALL col2 DIV - 82 + 59 FROM tab1
----
58
59
59

skipif mysql # not compatible
query I rowsort label-5469
SELECT ALL col2 / - 82 + 59 FROM tab1
----
58
59
59

query I rowsort
SELECT - col1 - - 91 FROM tab0 AS cor0
----
10
70
90

query I rowsort
SELECT ALL col2 + col1 / col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5472
SELECT DISTINCT COUNT( ALL col0 ) AS col1 FROM tab2 cor0 WHERE NOT col0 + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5472
SELECT DISTINCT COUNT ( ALL col0 ) AS col1 FROM tab2 cor0 WHERE NOT col0 + col0 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5473
SELECT col0 DIV - 73 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5473
SELECT col0 / - 73 FROM tab0 AS cor0
----
-1
-1
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 30 < + ( 74 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 66 <= 47 * col1
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5477
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5477
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) FROM tab2 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( - col2 ) AND NULL
----

query I rowsort
SELECT ALL + + ( + col2 ) FROM tab1 cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5480
SELECT col2 DIV - 54 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 * col2 + 84 IS NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5480
SELECT col2 / - 54 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 * col2 + 84 IS NULL
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT ALL COUNT( ALL 60 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5481
SELECT ALL COUNT ( ALL 60 ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 9 * - col1 < col2 - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5483
SELECT ALL SUM( ALL 41 ) * - COUNT( * ) FROM tab1 AS cor0
----
-369

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL SUM ( ALL 41 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-369

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 WHERE NOT + col2 IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE NOT 29 * - 36 - - 0 <= col2
----

query I rowsort
SELECT ( + ( col2 ) ) AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT col2 * col2 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND 87
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col0 * - col2 + 77 ) > 59 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT MIN( DISTINCT + - ( + col1 ) ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-5490
SELECT MIN ( DISTINCT + - ( + col1 ) ) AS col0 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT ALL - SUM( - - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-5491
SELECT ALL - SUM ( - - col2 ) FROM tab2
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-5492
SELECT - ( + 0 ) DIV 26 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5492
SELECT - ( + 0 ) / 26 AS col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - - col1 ) + col2 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT col1 + 52 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
103
119
129

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5496
SELECT ALL + CAST( NULL AS DECIMAL ) + + 68 / col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL + CAST ( NULL AS REAL ) + + 68 / col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5497
SELECT DISTINCT 1 DIV 76 + col2 FROM tab1 WHERE col1 IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-5497
SELECT DISTINCT 1 / 76 + col2 FROM tab1 WHERE col1 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT ALL - MAX( ALL - 80 ) FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-5498
SELECT ALL - MAX ( ALL - 80 ) FROM tab2
----
80

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - 23 col2 FROM tab0
----
1081
2277
230

onlyif mysql # DIV for integer division: 
query I rowsort label-5501
SELECT + - 9 DIV col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5501
SELECT + - 9 / col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5502
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5502
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + CAST ( + col2 AS INTEGER ) )
----

query I rowsort
SELECT - 84 - - 29 FROM tab1 AS cor0
----
-55
-55
-55

query I rowsort
SELECT ALL 23 * - + ( + col2 ) + - col0 AS col2 FROM tab2 AS cor0
----
-1409
-575
-984

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT DISTINCT - SUM( - - col1 ) AS col2 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5505
SELECT DISTINCT - SUM ( - - col1 ) AS col2 FROM tab2 cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT MIN( ALL + ( col1 ) ) FROM tab0 WHERE - col2 > - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5506
SELECT MIN ( ALL + ( col1 ) ) FROM tab0 WHERE - col2 > - col2
----
NULL

query I rowsort
SELECT DISTINCT col2 - - 83 AS col1 FROM tab1
----
142
151
179

query I rowsort
SELECT ALL - col0 + - 11 * col2 * - col0 * col1 + 46 AS col2 FROM tab2
----
2168302
3205921
593538

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE + 46 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5510
SELECT 41 + - 56 DIV + MIN( ALL + - col1 ) AS col1 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-5510
SELECT 41 + - 56 / + MIN ( ALL + - col1 ) AS col1 FROM tab2
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT MIN( ALL - + col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-5511
SELECT MIN ( ALL - + col1 ) FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT MIN( + 74 ) FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-5512
SELECT MIN ( + 74 ) FROM tab2
----
74

query I rowsort
SELECT + col0 * + col1 * 14 AS col2 FROM tab1
----
5950
59878
9996

query I rowsort
SELECT - col2 * - - 20 AS col2 FROM tab1
----
-1180
-1360
-1920

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT DISTINCT 30 * ( + COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE ( - col2 ) = + ( - 29 )
----
0

skipif mysql # not compatible
query I rowsort label-5515
SELECT DISTINCT 30 * ( + COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE ( - col2 ) = + ( - 29 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT DISTINCT 60 + - MAX( DISTINCT 66 ) * COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 * 79 * + col1 IS NULL
----
-138

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT 60 + - MAX ( DISTINCT 66 ) * COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + col1 * 79 * + col1 IS NULL
----
-138

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 74 >= 75 - + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5518
SELECT - col2 DIV col0 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5518
SELECT - col2 / col0 / + col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT 23 BETWEEN NULL AND ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 5 * - + col2 * 68 AS col1 FROM tab2
----
-13600
-19720
-7820

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( - 23 * + - 96 ) BETWEEN NULL AND - 92
----
54 values hashing to 375f372843089b03f23b00160007527a

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0 * + + 16 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 > + 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( - 75 ) AS col0 FROM tab1 AS cor0
----
-75
-75
-75

query I rowsort
SELECT - 67 + - - 98 FROM tab1 AS cor0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT DISTINCT COUNT( * ) - - COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5526
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5527
SELECT ALL COUNT( ALL 4 ) AS col1 FROM tab2 WHERE NOT ( NOT - 61 * - col0 < ( - + col2 / col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL COUNT ( ALL 4 ) AS col1 FROM tab2 WHERE NOT ( NOT - 61 * - col0 < ( - + col2 / col0 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5528
SELECT 32 * 4 * - SUM( ALL ( + 81 ) ) DIV + COUNT( * ) + 66 FROM tab2
----
-10302

skipif mysql # not compatible
query I rowsort label-5528
SELECT 32 * 4 * - SUM ( ALL ( + 81 ) ) / + COUNT ( * ) + 66 FROM tab2
----
-10302

onlyif mysql # DIV for integer division: 
query I rowsort label-5529
SELECT DISTINCT - col0 + - 72 + - 89 + - - col1 * - - ( + 26 ) + col0 DIV - col1 AS col0 FROM tab2
----
1119
1505
1777

skipif mysql # not compatible
query I rowsort label-5529
SELECT DISTINCT - col0 + - 72 + - 89 + - - col1 * - - ( + 26 ) + col0 / - col1 AS col0 FROM tab2
----
1119
1505
1777

query I rowsort
SELECT ALL - ( + col1 ) FROM tab0 WHERE NOT ( ( col0 / col0 ) BETWEEN ( NULL ) AND col1 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5531
SELECT COUNT( - 17 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5531
SELECT COUNT ( - 17 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT DISTINCT SUM( ALL + col1 ) col0 FROM tab2
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5532
SELECT DISTINCT SUM ( ALL + col1 ) col0 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT ALL - - COUNT( DISTINCT - + 81 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5533
SELECT ALL - - COUNT ( DISTINCT - + 81 ) FROM tab0 AS cor0
----
1

query II rowsort
SELECT - 22 AS col2, 10 FROM tab0 AS cor0
----
-22
10
-22
10
-22
10

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 8 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> NULL OR NOT - col2 BETWEEN + 34 + col0 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 41 col0 FROM tab1 AS cor0
----
41
41
41

query I rowsort
SELECT - col1 + - - col1 * - col0 AS col2 FROM tab1 AS cor0
----
-430
-4324
-728

query I rowsort
SELECT + col1 + - col2 FROM tab0 WHERE - 28 * + + col1 + - 32 - - col0 BETWEEN - col0 AND col0 + col0
----
-98

query I rowsort
SELECT DISTINCT 38 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 77 col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT + AVG ( col2 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5544
SELECT - - MIN( ALL + col2 ) AS col2, COUNT( * ) AS col0 FROM tab2 cor0
----
23
3

skipif mysql # not compatible
query II rowsort label-5544
SELECT - - MIN ( ALL + col2 ) AS col2, COUNT ( * ) AS col0 FROM tab2 cor0
----
23
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5545
SELECT + + 9 DIV col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5545
SELECT + + 9 / col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 93 * - col1 * + - col2 - - - 75 AS col2 FROM tab0
----
19455
353976
9132

query I rowsort
SELECT DISTINCT + - 17 + + col0 AS col0 FROM tab0 WHERE + + 10 IS NOT NULL
----
-2
70
80

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( + - col1 ) * + col0 * - col0 NOT IN ( + col1 )
----

query II rowsort
SELECT DISTINCT - col0 AS col0, 1 FROM tab1
----
-51
1
-85
1
-91
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5550
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND CAST( + + 42 AS SIGNED ) + - + col1
----

skipif mysql # not compatible
query III rowsort label-5550
SELECT ALL * FROM tab1 WHERE NULL BETWEEN NULL AND CAST ( + + 42 AS INTEGER ) + - + col1
----

query I rowsort
SELECT col2 * - - col0 * + - 64 AS col2 FROM tab2
----
-163840
-278400
-67712

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 0 ) * + 54 + - 17 col2 FROM tab1
----
-17
-17
-17

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL IN ( - col1, + col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5554
SELECT DISTINCT col0, + 66 DIV - 32 AS col0 FROM tab2 AS cor0
----
46
-2
64
-2
75
-2

skipif mysql # not compatible
query II rowsort label-5554
SELECT DISTINCT col0, + 66 / - 32 AS col0 FROM tab2 AS cor0
----
46
-2
64
-2
75
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5555
SELECT - 37 * COUNT( * ) / ( + 41 ) + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT + - col0 NOT BETWEEN - 55 - - 61 AND + - 32
----
NULL

skipif mysql # not compatible
query I rowsort label-5555
SELECT - 37 * COUNT ( * ) / ( + 41 ) + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT + - col0 NOT BETWEEN - 55 - - 61 AND + - 32
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5556
SELECT + col2 DIV + ( 48 ) FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5556
SELECT + col2 / + ( 48 ) FROM tab2
----
0
0
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 ) IN ( + 3, - col2 * - ( col1 ), + 31 )
----
97
1
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 79 * - col2 + - ( col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 14 * col1 * + + 99 FROM tab2 AS cor0
----
-106722
-70686
-92862

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + col2 col1 FROM tab2 AS cor0 WHERE ( NULL ) < - col0 / 73 + - 51 * col2 + + 22
----

query I rowsort
SELECT - - col2 * 0 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col0 + - + col2 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5563
SELECT ALL CAST( + + col0 AS SIGNED ) DIV - ( + 54 ) AS col2, col1 FROM tab0 cor0
----
-1
1
-1
21
0
81

skipif mysql # not compatible
query II rowsort label-5563
SELECT ALL CAST ( + + col0 AS INTEGER ) / - ( + 54 ) AS col2, col1 FROM tab0 cor0
----
-1
1
-1
21
0
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT ALL 94 * COUNT( * ) FROM tab1 AS cor0 WHERE 56 * col0 * + col1 IN ( + + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL 94 * COUNT ( * ) FROM tab1 AS cor0 WHERE 56 * col0 * + col1 IN ( + + col2 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 10 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 9 - + ( - col1 ) * 72 AS col1, 85 AS col2 FROM tab0 WHERE NOT - 49 - - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( + col1 ) * - 35 >= NULL
----

query I rowsort
SELECT DISTINCT 41 + - - 52 FROM tab0
----
93

query III rowsort
SELECT * FROM tab0 WHERE 21 * + col0 - + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5570
SELECT ALL + 75, + 75 - - - col1 + - CAST( NULL AS SIGNED ) + - 46 AS col0 FROM tab0
----
75
NULL
75
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-5570
SELECT ALL + 75, + 75 - - - col1 + - CAST ( NULL AS INTEGER ) + - 46 AS col0 FROM tab0
----
75
NULL
75
NULL
75
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5571
SELECT col1 DIV + col2 + - col0 + - col1 + col1 + + 53 DIV col1 * + col0 AS col0 FROM tab0
----
-14
5044
89

skipif mysql # not compatible
query I rowsort label-5571
SELECT col1 / + col2 + - col0 + - col1 + col1 + + 53 / col1 * + col0 AS col0 FROM tab0
----
-14
5044
89

onlyif mysql # aggregate syntax: 
query I rowsort label-5572
SELECT SUM( + + col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5572
SELECT SUM ( + + col1 ) AS col0 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT + COUNT( * ) - + SUM( + col0 ) AS col2 FROM tab2
----
-182

skipif mysql # not compatible
query I rowsort label-5573
SELECT + COUNT ( * ) - + SUM ( + col0 ) AS col2 FROM tab2
----
-182

query I rowsort
SELECT + + col2 * + - col1 * col2 * - col0 - - col2 * 12 AS col0 FROM tab0 AS cor0
----
182820
2684499
951885

query I rowsort
SELECT + + 69 - + col1 FROM tab2 AS cor0
----
-8
18
2

query I rowsort
SELECT ALL + col1 + - col1 * - col2 AS col2 FROM tab0 AS cor0
----
100
231
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT ( - - ( + 82 ) ) + - ( + - MIN( ALL 78 ) ) FROM tab1 AS cor0
----
160

skipif mysql # not compatible
query I rowsort label-5577
SELECT ( - - ( + 82 ) ) + - ( + - MIN ( ALL 78 ) ) FROM tab1 AS cor0
----
160

query II rowsort
SELECT ALL - 97, col1 FROM tab0 AS cor0
----
-97
1
-97
21
-97
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5579
SELECT + col2 DIV 44 * + - 18 * ( col2 ) AS col1 FROM tab0
----
-3564
-846
0

skipif mysql # not compatible
query I rowsort label-5579
SELECT + col2 / 44 * + - 18 * ( col2 ) AS col1 FROM tab0
----
-3564
-846
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 77 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col0 * - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT + SUM( - - 53 ) FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-5582
SELECT + SUM ( - - 53 ) FROM tab0
----
159

query II rowsort
SELECT DISTINCT - ( - col2 ) AS col0, col0 * + - 24 AS col2 FROM tab1
----
59
-2040
68
-2184
96
-1224

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT ALL + - COUNT( * ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5584
SELECT ALL + - COUNT ( * ) AS col0 FROM tab0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT DISTINCT + 35 * + - col2 AS col1 FROM tab0 AS cor0
----
-1645
-3465
-350

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - ( - ( col0 ) ) < NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col1 BETWEEN NULL AND - + 9
----

query I rowsort
SELECT - col0 + + col2 FROM tab1 AS cor0 WHERE NOT 74 = - col0
----
-23
-26
45

query I rowsort
SELECT ALL + 26 FROM tab2 cor0
----
26
26
26

query I rowsort
SELECT ALL col2 + + col2 + + col1 FROM tab0 AS cor0
----
175
199
41

query I rowsort
SELECT - col1 + - col1 + - col1 AS col1 FROM tab2 AS cor0
----
-153
-201
-231

query I rowsort
SELECT DISTINCT - - col0 * 24 + + - col2 + + col0 * 70 FROM tab2 AS cor0
----
4301
5976
6992

query I rowsort
SELECT + + col2 + + + col1 AS col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5595
SELECT - COUNT( * ) * - + 11 AS col2 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5595
SELECT - COUNT ( * ) * - + 11 AS col2 FROM tab1 AS cor0
----
33

query I rowsort
SELECT ALL + col0 + 82 AS col0 FROM tab1
----
133
167
173

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT ALL - SUM( + ( - 36 ) ) FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-5597
SELECT ALL - SUM ( + ( - 36 ) ) FROM tab2
----
108

query I rowsort
SELECT + col2 + - - 70 AS col2 FROM tab1 AS cor0
----
129
138
166

onlyif mysql # DIV for integer division: 
query I rowsort label-5599
SELECT + col2 + - ( - - 38 ) DIV - + 66 * + + col0 + - - col2 AS col1 FROM tab1 AS cor0
----
118
136
192

skipif mysql # not compatible
query I rowsort label-5599
SELECT + col2 + - ( - - 38 ) / - + 66 * + + col0 + - - col2 AS col1 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT DISTINCT 39 + + + 29 * col1 AS col2 FROM tab2
----
1518
1982
2272

query I rowsort
SELECT ALL - 88 + - 95 FROM tab1
----
-183
-183
-183

query I rowsort
SELECT 51 * col2 - - - 97 + - col2 FROM tab2 AS cor0
----
1053
1903
2803

onlyif mysql # DIV for integer division: 
query I rowsort label-5603
SELECT DISTINCT + + col2 DIV - - col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5603
SELECT DISTINCT + + col2 / - - col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT 82 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( + ( col0 ) * - 33 + - col2 ) AND - col2
----

query II rowsort
SELECT ALL + - 18 AS col1, - col0 * col2 FROM tab0 AS cor0
----
-18
-705
-18
-870
-18
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT COUNT( DISTINCT + 65 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5606
SELECT COUNT ( DISTINCT + 65 ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5607
SELECT DISTINCT - MAX( + col1 ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5607
SELECT DISTINCT - MAX ( + col1 ) FROM tab0 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5608
SELECT - col2 DIV + col1 * + 19 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5608
SELECT - col2 / + col1 * + 19 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5609
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-5609
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT + 7 * ( - col1 ) FROM tab0 cor0
----
-147
-567
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5611
SELECT DISTINCT 76 DIV COUNT( * ) AS col2 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-5611
SELECT DISTINCT 76 / COUNT ( * ) AS col2 FROM tab1
----
25

query II rowsort
SELECT DISTINCT col2 AS col2, 36 FROM tab0
----
10
36
47
36
99
36

query I rowsort
SELECT ALL - col0 * + - col0 FROM tab2
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-5614
SELECT - COUNT( - + 28 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5614
SELECT - COUNT ( - + 28 ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 3 NOT BETWEEN + - col1 AND NULL
----

query II rowsort
SELECT ALL - col2 AS col1, 78 AS col0 FROM tab1
----
-59
78
-68
78
-96
78

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = + 1 + + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5618
SELECT ALL ( + + COUNT( * ) ), - COUNT( * ) AS col1 FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-5618
SELECT ALL ( + + COUNT ( * ) ), - COUNT ( * ) AS col1 FROM tab2
----
3
-3

query II rowsort
SELECT col0, + col1 AS col2 FROM tab0
----
15
81
87
21
97
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 55 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5621
SELECT DISTINCT + COUNT( * ), + 88 AS col0 FROM tab0
----
3
88

skipif mysql # not compatible
query II rowsort label-5621
SELECT DISTINCT + COUNT ( * ), + 88 AS col0 FROM tab0
----
3
88

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( NOT NULL = ( NULL ) ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 24 NOT BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5624
SELECT DISTINCT CAST( + + col1 AS SIGNED ) * - col2 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT CAST ( + + col1 AS INTEGER ) * - col2 AS col0 FROM tab2 AS cor0
----
-1173
-3080
-3886

query II rowsort
SELECT ALL col1, 43 FROM tab0 AS cor0
----
1
43
21
43
81
43

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT DISTINCT - ( - ( - - COUNT( * ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5627
SELECT DISTINCT - ( - ( - - COUNT ( * ) ) ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( + 30 ) col0, + col0 + + + ( - - col1 ) + + 96 AS col1 FROM tab0 AS cor0
----
30
192
30
194
30
204

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 / - col2 NOT BETWEEN + + col0 AND + 59
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5630
SELECT ALL - - CAST( - + ( col1 ) AS SIGNED ) + col0 FROM tab2 AS cor0
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL - - CAST ( - + ( col1 ) AS INTEGER ) + col0 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT DISTINCT 94 + - col0 * + col0 FROM tab1 AS cor0
----
-2507
-7131
-8187

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5632
SELECT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) * + col0 + col2 NOT IN ( + col0, - 37 )
----

skipif mysql # not compatible
query III rowsort label-5632
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * + col0 + col2 NOT IN ( + col0, - 37 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col2 FROM tab1 WHERE NOT 78 + - col2 = NULL
----

query I rowsort
SELECT DISTINCT 49 * - col2 FROM tab0
----
-2303
-4851
-490

onlyif mysql # DIV for integer division: 
query I rowsort label-5635
SELECT DISTINCT 44 DIV - ( + 72 ) - col0 * + col0 + + ( - + col0 ) AS col1 FROM tab0
----
-240
-7656
-9506

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT 44 / - ( + 72 ) - col0 * + col0 + + ( - + col0 ) AS col1 FROM tab0
----
-240
-7656
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT DISTINCT - 83 * + + COUNT( * ) AS col1 FROM tab0
----
-249

skipif mysql # not compatible
query I rowsort label-5636
SELECT DISTINCT - 83 * + + COUNT ( * ) AS col1 FROM tab0
----
-249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5637
SELECT col0 + - - col0 + - + 91 * - CAST( NULL AS SIGNED ) / - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5637
SELECT col0 + - - col0 + - + 91 * - CAST ( NULL AS INTEGER ) / - col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col0 < + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND ( + - 13 )
----

query I rowsort
SELECT 75 * - + col0 - + 37 AS col2 FROM tab1
----
-3862
-6412
-6862

query I rowsort
SELECT ALL 68 + + 61 AS col0 FROM tab2
----
129
129
129

onlyif mysql # aggregate syntax: 
query I rowsort label-5642
SELECT COUNT( * ) - - 13 AS col1 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-5642
SELECT COUNT ( * ) - - 13 AS col1 FROM tab1
----
16

query I rowsort
SELECT DISTINCT + + col0 * col2 AS col1 FROM tab0 AS cor0
----
705
870
9603

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 BETWEEN - 73 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5645
SELECT + col1 * + col1 DIV col1 DIV + col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5645
SELECT + col1 * + col1 / col1 / + col2 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT 92 * - 44 AS col1 FROM tab1
----
-4048
-4048
-4048

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - ( col0 ) + - col2 >= + 33
----
87
21
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5648
SELECT ALL + 49 * + COUNT( - col1 ) AS col1, COUNT( + + CAST( NULL AS SIGNED ) ) + ( + + 48 ) FROM tab1
----
147
48

skipif mysql # not compatible
query II rowsort label-5648
SELECT ALL + 49 * + COUNT ( - col1 ) AS col1, COUNT ( + + CAST ( NULL AS INTEGER ) ) + ( + + 48 ) FROM tab1
----
147
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5649
SELECT ALL - 43 DIV + col0 AS col1 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5649
SELECT ALL - 43 / + col0 AS col1 FROM tab0
----
-2
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 * 19 col0 FROM tab2
----
-1007
-1007
-1007

query I rowsort
SELECT 40 * - col1 AS col1 FROM tab2
----
-2040
-2680
-3080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 col0, + col0 AS col2 FROM tab2 cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5653
SELECT ALL + 81 DIV - - MIN( DISTINCT - - col0 ) + COUNT( * ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL + 81 / - - MIN ( DISTINCT - - col0 ) + COUNT ( * ) FROM tab0 AS cor0
----
8

query II rowsort
SELECT col0 / - col2, - col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT + ( ( + col0 ) ) + 2 * ( - col0 ) - + col1 AS col0 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-5656
SELECT ALL col1 DIV - + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5656
SELECT ALL col1 / - + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5657
SELECT DISTINCT - COUNT( * ) + + MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5657
SELECT DISTINCT - COUNT ( * ) + + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 80 - - + ( col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - col1 + col2 + - col0 + + 61 FROM tab2 AS cor0
----
-13
-23
-40

query II rowsort
SELECT + 70 AS col1, - ( + + 87 ) FROM tab1 AS cor0
----
70
-87
70
-87
70
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5661
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5661
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL 79 - - ( col2 ) AS col0 FROM tab1
----
138
147
175

query I rowsort
SELECT ALL + 17 * - ( - 84 ) FROM tab1
----
1428
1428
1428

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT + 99 - + COUNT( * ) AS col0 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-5664
SELECT + 99 - + COUNT ( * ) AS col0 FROM tab0
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5665
SELECT - CAST( NULL AS SIGNED ) - + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5665
SELECT - CAST ( NULL AS INTEGER ) - + COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5666
SELECT + SUM( ALL + col0 ) DIV - COUNT( * ) + - - 89 - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-5666
SELECT + SUM ( ALL + col0 ) / - COUNT ( * ) + - - 89 - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-5667
SELECT col2 DIV - 84 + col0 AS col0 FROM tab1 AS cor0
----
50
85
91

skipif mysql # not compatible
query I rowsort label-5667
SELECT col2 / - 84 + col0 AS col0 FROM tab1 AS cor0
----
50
85
91

query II rowsort
SELECT DISTINCT + 64 + + - col2, col1 AS col0 FROM tab2 AS cor0
----
24
77
41
51
6
67

query I rowsort
SELECT ALL - 87 FROM tab2 AS cor0 WHERE NOT - col1 < + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5670
SELECT + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) * + 88 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5670
SELECT + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) * + 88 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 24 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT DISTINCT - - col0 * - col1 AS col1 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT - - MAX( + 47 ) FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5673
SELECT - - MAX ( + 47 ) FROM tab2 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5674
SELECT DISTINCT 55, + COUNT( * ) col0 FROM tab2 AS cor0
----
55
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5674
SELECT DISTINCT 55, + COUNT ( * ) col0 FROM tab2 AS cor0
----
55
3

query I rowsort
SELECT + + 74 * - 14 AS col1 FROM tab2 AS cor0
----
-1036
-1036
-1036

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT ( ( 17 ) ) IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT ( + col2 ) * col0 * - + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + + col1 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT + 54 * + col0 AS col1 FROM tab0 WHERE NOT + + 54 - - + col2 IS NULL
----
4698
5238
810

query I rowsort
SELECT DISTINCT col1 * + + col1 AS col2 FROM tab0
----
1
441
6561

query I rowsort
SELECT + col0 * + - 63 FROM tab0
----
-5481
-6111
-945

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5682
SELECT 59 / + 27 + + 61 * + + COUNT( * ) + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5682
SELECT 59 / + 27 + + 61 * + + COUNT ( * ) + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL 23 * + + col2 AS col0 FROM tab0
----
1081
2277
230

query I rowsort
SELECT ALL col0 * - col0 AS col1 FROM tab2 WHERE NOT - 34 / + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5685
SELECT - 69 * + CAST( NULL AS SIGNED ) * 36 / + - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5685
SELECT - 69 * + CAST ( NULL AS INTEGER ) * 36 / + - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5686
SELECT col0 / - 47 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5686
SELECT col0 / - 47 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5687
SELECT DISTINCT - 69 AS col0, + col2 DIV - - col1 FROM tab2 AS cor0
----
-69
0

skipif mysql # not compatible
query II rowsort label-5687
SELECT DISTINCT - 69 AS col0, + col2 / - - col1 FROM tab2 AS cor0
----
-69
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT MIN( 79 ) * + 81 FROM tab0 AS cor0
----
6399

skipif mysql # not compatible
query I rowsort label-5688
SELECT MIN ( 79 ) * + 81 FROM tab0 AS cor0
----
6399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5689
SELECT DISTINCT CAST( - col2 AS SIGNED ) * - 0 + - 94 AS col1 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-5689
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * - 0 + - 94 AS col1 FROM tab1
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5690
SELECT + MIN( DISTINCT + col1 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5690
SELECT + MIN ( DISTINCT + col1 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT col2 * - 81 + col0 * + + 3, - 46 * + col2 + + - 63 AS col2 FROM tab2
----
-1725
-1121
-3048
-1903
-4473
-2731

query I rowsort
SELECT 75 + 74 * col2 - - col1 AS col2 FROM tab2
----
1828
3112
4434

onlyif mysql # DIV for integer division: 
query I rowsort label-5693
SELECT ALL 55 * + col2 + 87 - + - col2 DIV col1 * - col0 DIV col0 * + + col1 FROM tab2
----
1352
2287
3277

skipif mysql # not compatible
query I rowsort label-5693
SELECT ALL 55 * + col2 + 87 - + - col2 / col1 * - col0 / col0 * + + col1 FROM tab2
----
1352
2287
3277

query I rowsort
SELECT DISTINCT col2 * - col1 + + ( col2 ) FROM tab1 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 42 col0 FROM tab1
----
-42

query I rowsort
SELECT ALL + 54 - - col1 + + col0 + + 62 * + 84 FROM tab1
----
5327
5352
5400

onlyif mysql # aggregate syntax: 
query I rowsort label-5697
SELECT DISTINCT - - MAX( ALL - 75 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5697
SELECT DISTINCT - - MAX ( ALL - 75 ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-5698
SELECT ALL - SUM( - + col1 ), - 39 AS col0 FROM tab2 AS cor0
----
195
-39

skipif mysql # not compatible
query II rowsort label-5698
SELECT ALL - SUM ( - + col1 ), - 39 AS col0 FROM tab2 AS cor0
----
195
-39

query I rowsort
SELECT DISTINCT - + 15 FROM tab1 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5700
SELECT DISTINCT - col0 AS col2, + col2 + - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-15
32
-87
-77
-97
2

skipif mysql # not compatible
query II rowsort label-5700
SELECT DISTINCT - col0 AS col2, + col2 + - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-15
32
-87
-77
-97
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT ALL MIN( - 60 ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-5701
SELECT ALL MIN ( - 60 ) FROM tab1
----
-60

query I rowsort
SELECT ALL - 82 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT - ( - MAX( DISTINCT col1 ) ) FROM tab1 WHERE NOT NULL IN ( - + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5703
SELECT - ( - MAX ( DISTINCT col1 ) ) FROM tab1 WHERE NOT NULL IN ( - + col0 )
----
NULL

query I rowsort
SELECT ALL ( + 81 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT DISTINCT - COUNT( col0 ) col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5705
SELECT DISTINCT - COUNT ( col0 ) col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 29 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT ( col1 ), + col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - 64 + - col0 * - col0 / - - col0 * 95 = - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 33 AS col0 FROM tab0 cor0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT + MAX( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5710
SELECT + MAX ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT DISTINCT - - 29 * - SUM( DISTINCT + ( - + 15 ) ) AS col0 FROM tab2 AS cor0
----
435

skipif mysql # not compatible
query I rowsort label-5711
SELECT DISTINCT - - 29 * - SUM ( DISTINCT + ( - + 15 ) ) AS col0 FROM tab2 AS cor0
----
435

onlyif mysql # DIV for integer division: 
query II rowsort label-5712
SELECT + 95 * + - col0 * col0 AS col2, + 54 DIV + col2 * col0 col1 FROM tab1
----
-247095
0
-686375
0
-786695
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5712
SELECT + 95 * + - col0 * col0 AS col2, + 54 / + col2 * col0 col1 FROM tab1
----
-247095
0
-686375
0
-786695
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5713
SELECT MIN( ALL 66 ) * + CAST( + COUNT( * ) AS SIGNED ) col0 FROM tab2
----
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5713
SELECT MIN ( ALL 66 ) * + CAST ( + COUNT ( * ) AS INTEGER ) col0 FROM tab2
----
198

onlyif mysql # DIV for integer division: 
query I rowsort label-5714
SELECT + 13 DIV - 79 * + col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5714
SELECT + 13 / - 79 * + col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5715
SELECT - 80 DIV - COUNT( * ) AS col1 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-5715
SELECT - 80 / - COUNT ( * ) AS col1 FROM tab0
----
26

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 + - 47 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - + 12 col1 FROM tab2
----
-612
-804
-924

query I rowsort
SELECT DISTINCT ( - 83 ) AS col0 FROM tab2 WHERE NOT col2 * + col0 IS NULL
----
-83

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 17 * + col2 / col1 IS NULL
----

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT - 2 * 10 + - + col2 / + col1 > - col2 * - + col1
----
-10
-47
-99

query I rowsort
SELECT ALL + + 22 * + 56 FROM tab1 cor0
----
1232
1232
1232

query II rowsort
SELECT ALL + - col2 + + col2 + - col2, - 51 + - col1 AS col1 FROM tab0 AS cor0
----
-10
-72
-47
-132
-99
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5723
SELECT DISTINCT 15 * - 33 / + CAST( NULL AS SIGNED ) + + SUM( ALL + - col2 ) - 16 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5723
SELECT DISTINCT 15 * - 33 / + CAST ( NULL AS INTEGER ) + + SUM ( ALL + - col2 ) - 16 col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 65 + + - col2 + 64 * 91 col0 FROM tab0
----
5790
5842
5879

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * - col1 - - col0 col0 FROM tab0 AS cor0
----
-123
-2
-3792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5726
SELECT ALL - + CAST( NULL AS SIGNED ) * + + 92 + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5726
SELECT ALL - + CAST ( NULL AS INTEGER ) * + + 92 + - col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5727
SELECT - 28 * - + MAX( col1 ) FROM tab2 AS cor0
----
2156

skipif mysql # not compatible
query I rowsort label-5727
SELECT - 28 * - + MAX ( col1 ) FROM tab2 AS cor0
----
2156

onlyif mysql # DIV for integer division: 
query I rowsort label-5728
SELECT ALL 4 + col0 DIV + - col2 AS col2 FROM tab0 AS cor0
----
-4
4
4

skipif mysql # not compatible
query I rowsort label-5728
SELECT ALL 4 + col0 / + - col2 AS col2 FROM tab0 AS cor0
----
-4
4
4

query III rowsort
SELECT * FROM tab0 WHERE col1 / + + 24 IS NULL
----

query I rowsort
SELECT ALL - 48 - - 76 FROM tab2
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5731
SELECT ALL - col2 - - CAST( NULL AS SIGNED ) + + 98 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5731
SELECT ALL - col2 - - CAST ( NULL AS INTEGER ) + + 98 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT DISTINCT - 75 * - COUNT( * ) + - 21 * COUNT( * ) * 90 FROM tab1, tab0 cor0
----
-16335

skipif mysql # not compatible
query I rowsort label-5732
SELECT DISTINCT - 75 * - COUNT ( * ) + - 21 * COUNT ( * ) * 90 FROM tab1, tab0 cor0
----
-16335

query I rowsort
SELECT ALL col1 - + + col0 AS col0 FROM tab0
----
-66
-96
66

query I rowsort
SELECT + 25 AS col2 FROM tab0 cor0
----
25
25
25

onlyif mysql # DIV for integer division: 
query I rowsort label-5735
SELECT ALL - + 35 DIV 60 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5735
SELECT ALL - + 35 / 60 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT ALL + SUM( ALL - 73 ) FROM tab0 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-5736
SELECT ALL + SUM ( ALL - 73 ) FROM tab0 AS cor0
----
-219

query II rowsort
SELECT ALL col0, 75 FROM tab1
----
51
75
85
75
91
75

query II rowsort
SELECT col0 AS col1, 9 AS col1 FROM tab1 AS cor0
----
51
9
85
9
91
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 63 col1, col0 * + col1 * + col0 * + col2 * col1 AS col1 FROM tab1 AS cor0
----
63
10656875
63
1243905572
63
48940416

query I rowsort
SELECT DISTINCT - 75 * col0 + 89 FROM tab1 cor0
----
-3736
-6286
-6736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col0 FROM tab0 AS cor0 WHERE NOT NULL >= - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN + 25 AND + - col0 * 30 + - 76
----

query II rowsort
SELECT col2 AS col2, 91 FROM tab1 cor0
----
59
91
68
91
96
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5744
SELECT ALL - COUNT( * ) + + - 16 AS col1 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-5744
SELECT ALL - COUNT ( * ) + + - 16 AS col1 FROM tab0 AS cor0
----
-19

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( - 57 + - - col1 * - 28 * - - ( - col0 ) * + col0 * + col1 )
----

query I rowsort
SELECT DISTINCT - col1 * + col0 - - - col2 + - 94 - - - col2 + + col1 FROM tab2 cor0
----
-2435
-5025
-5168

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT + 8 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5748
SELECT DISTINCT ( MIN( - + col1 ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-5748
SELECT DISTINCT ( MIN ( - + col1 ) ) FROM tab0
----
-81

query I rowsort
SELECT 35 * - - ( + + 4 ) FROM tab2
----
140
140
140

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - col0 ) = + col1
----

query I rowsort
SELECT ALL - + col2 * col2 + col2 AS col1 FROM tab2 AS cor0
----
-1560
-3306
-506

query I rowsort
SELECT ALL col2 + + + col2 AS col2 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT DISTINCT 11 * + col1 FROM tab1 cor0
----
154
517
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5754
SELECT - ( CAST( NULL AS DECIMAL ) ) - 54 + + - col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5754
SELECT - ( CAST ( NULL AS REAL ) ) - 54 + + - col2 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5755
SELECT ALL + col1 DIV col0 + + 44 AS col1 FROM tab1 AS cor0
----
44
44
44

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL + col1 / col0 + + 44 AS col1 FROM tab1 AS cor0
----
44
44
44

query I rowsort
SELECT ALL + col0 + + 55 FROM tab0 AS cor0
----
142
152
70

query II rowsort
SELECT DISTINCT col1 + - 85 + - - 42 * - 50 + - 71 * - + col1 AS col1, + col2 FROM tab1 AS cor0
----
-1177
96
-1825
59
1199
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 67 + + col0 - - 67 + col2 * - + col0 col2 FROM tab2 AS cor0
----
-2362
-4141
-878

query III rowsort
SELECT * FROM tab1 WHERE col2 + + 59 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT COUNT( * ) * - ( - 90 ) + + 17 AS col0 FROM tab0
----
287

skipif mysql # not compatible
query I rowsort label-5760
SELECT COUNT ( * ) * - ( - 90 ) + + 17 AS col0 FROM tab0
----
287

query I rowsort
SELECT ALL - col1 * - ( + col1 ) AS col1 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT DISTINCT - ( - - col0 ) AS col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + 44 FROM tab1 WHERE + 71 + - + ( 8 ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NOT + + 30 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * 35 FROM tab2 AS cor0
----
1400
2030
805

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5766
SELECT DISTINCT ( SUM( DISTINCT - CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5766
SELECT DISTINCT ( SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-5767
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 > NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 44 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT ALL - + MIN( ALL - col1 ) AS col0 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-5769
SELECT ALL - + MIN ( ALL - col1 ) AS col0 FROM tab1 cor0
----
47

query I rowsort
SELECT + + 24 FROM tab0 AS cor0 WHERE NOT + col1 + - col2 < NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN 68 * 88 AND NULL
----

query II rowsort
SELECT DISTINCT - - col0 AS col1, col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5773
SELECT 26 + + col2 + CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
136
141
90

skipif mysql # not compatible
query I rowsort label-5773
SELECT 26 + + col2 + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
136
141
90

query I rowsort
SELECT DISTINCT col0 + + 11 AS col2 FROM tab1 AS cor0
----
102
62
96

query I rowsort
SELECT ( + col1 ) * 64 + - col0 + - col2 * + + col0 + - col1 FROM tab2 cor0
----
-204
2109
2227

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5776
SELECT - col2 AS col0, - col1 * CAST( NULL AS SIGNED ) col1 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5776
SELECT - col2 AS col0, - col1 * CAST ( NULL AS INTEGER ) col1 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

query II rowsort
SELECT ALL col1, - 9 * + + col2 FROM tab1
----
14
-864
47
-612
5
-531

onlyif mysql # DIV for integer division: 
query I rowsort label-5778
SELECT + + 98 DIV - ( - - col1 ) AS col1 FROM tab1 cor0
----
-19
-2
-7

skipif mysql # not compatible
query I rowsort label-5778
SELECT + + 98 / - ( - - col1 ) AS col1 FROM tab1 cor0
----
-19
-2
-7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 10 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5780
SELECT DISTINCT COUNT( * ) + 32 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-5780
SELECT DISTINCT COUNT ( * ) + 32 FROM tab0 AS cor0
----
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + col1 ) - col1, col1 col0 FROM tab2
----
0
51
0
67
0
77

query I rowsort
SELECT - col2 * - + 91 * - - col0 * + ( - col2 ) FROM tab0 AS cor0
----
-3015285
-791700
-86513427

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT ( col0 NOT BETWEEN + col0 AND ( - + 0 * col2 * - col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 23 * - - ( + 67 ) - col0 col2 FROM tab0 AS cor0
----
1444
1454
1526

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5785
SELECT ALL + CAST( - + 37 AS SIGNED ) * col1 AS col1 FROM tab2 AS cor0
----
-1887
-2479
-2849

skipif mysql # not compatible
query I rowsort label-5785
SELECT ALL + CAST ( - + 37 AS INTEGER ) * col1 AS col1 FROM tab2 AS cor0
----
-1887
-2479
-2849

query I rowsort
SELECT ALL + + col1 + col2 / + col1 FROM tab1 AS cor0 WHERE NOT col1 < + + 50 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT - MAX( DISTINCT col0 ) AS col0 FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5787
SELECT - MAX ( DISTINCT col0 ) AS col0 FROM tab1 cor0
----
-91

query I rowsort
SELECT ALL + ( + 95 ) AS col2 FROM tab0 AS cor0
----
95
95
95

query II rowsort
SELECT DISTINCT 10 AS col2, - ( col0 ) - col0 FROM tab2
----
10
-128
10
-150
10
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5790
SELECT - SUM( - - 32 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-5790
SELECT - SUM ( - - 32 ) FROM tab1
----
-96

query I rowsort
SELECT DISTINCT - ( - ( - 79 ) ) * - 75 AS col2 FROM tab0
----
5925

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT ALL + COUNT( DISTINCT - - 48 ) * + 43 + - + 73 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-5792
SELECT ALL + COUNT ( DISTINCT - - 48 ) * + 43 + - + 73 FROM tab1
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5793
SELECT MAX( DISTINCT 67 ) FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-5793
SELECT MAX ( DISTINCT 67 ) FROM tab2
----
67

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + - 48 / 30 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT ALL - - MAX( DISTINCT - 76 ) col2 FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5796
SELECT ALL - - MAX ( DISTINCT - 76 ) col2 FROM tab1 AS cor0
----
-76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5797
SELECT ALL + col2 / - col2 * + CAST( NULL AS DECIMAL ) * - 28 * CAST( + col2 AS DECIMAL ) * - - 78 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5797
SELECT ALL + col2 / - col2 * + CAST ( NULL AS REAL ) * - 28 * CAST ( + col2 AS REAL ) * - - 78 col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + + 25 ) AS col1 FROM tab1 AS cor0
----
25
25
25

query I rowsort
SELECT DISTINCT - - col1 + + 16 + + col2 FROM tab2 AS cor0
----
133
141
90

query II rowsort
SELECT ALL - 31 + + col1 AS col1, + col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * - + col1 + - col0 FROM tab1
----
-60
145
2118

query I rowsort
SELECT ALL 97 + - col0 FROM tab1
----
12
46
6

query II rowsort
SELECT ALL col1, - col2 * col2 FROM tab0
----
1
-9801
21
-100
81
-2209

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5804
SELECT * FROM tab1 WHERE 61 NOT BETWEEN - + CAST( NULL AS SIGNED ) + + col1 AND 86
----

skipif mysql # not compatible
query III rowsort label-5804
SELECT * FROM tab1 WHERE 61 NOT BETWEEN - + CAST ( NULL AS INTEGER ) + + col1 AND 86
----

query I rowsort
SELECT ALL col0 * - - col0 * + col2 + - - col2 FROM tab0
----
10622
75700
931590

query I rowsort
SELECT ALL - 43 * + col0 * + col1 FROM tab2
----
-100878
-211904
-216075

onlyif mysql # aggregate syntax: 
query I rowsort label-5807
SELECT + 16 + - COUNT( * ) col2 FROM tab2
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5807
SELECT + 16 + - COUNT ( * ) col2 FROM tab2
----
13

query III rowsort
SELECT * FROM tab2 WHERE + col1 * 91 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5809
SELECT ALL col1 col0, ( - col0 ) DIV - col1 FROM tab1
----
14
3
47
1
5
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5809
SELECT ALL col1 col0, ( - col0 ) / - col1 FROM tab1
----
14
3
47
1
5
17

query II rowsort
SELECT - col1 AS col0, 37 FROM tab1 WHERE + - 31 + - col0 NOT IN ( + + col1 )
----
-14
37
-47
37
-5
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT ALL + MIN( - ( - col0 ) ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL + MIN ( - ( - col0 ) ) AS col1 FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5812
SELECT + CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5812
SELECT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5813
SELECT DISTINCT MAX( DISTINCT + col2 ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-5813
SELECT DISTINCT MAX ( DISTINCT + col2 ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5814
SELECT CAST( NULL AS SIGNED ) - + - CAST( NULL AS SIGNED ) - + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5814
SELECT CAST ( NULL AS INTEGER ) - + - CAST ( NULL AS INTEGER ) - + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT COUNT( * ) * - 72 AS col0 FROM tab1 cor0
----
-216

skipif mysql # not compatible
query I rowsort label-5815
SELECT COUNT ( * ) * - 72 AS col0 FROM tab1 cor0
----
-216

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5817
SELECT - COUNT( * ), 93 AS col1 FROM tab0 AS cor0
----
-3
93

skipif mysql # not compatible
query II rowsort label-5817
SELECT - COUNT ( * ), 93 AS col1 FROM tab0 AS cor0
----
-3
93

onlyif mysql # aggregate syntax: 
query II rowsort label-5818
SELECT MAX( - + ( + - 10 ) ) * - 41 AS col2, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-410
3

skipif mysql # not compatible
query II rowsort label-5818
SELECT MAX ( - + ( + - 10 ) ) * - 41 AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-410
3

query I rowsort
SELECT - + col1 AS col0 FROM tab1 WHERE NOT ( NOT col1 IS NULL )
----

query I rowsort
SELECT ALL + col0 * - - 44 FROM tab0
----
3828
4268
660

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5821
SELECT + COUNT( * ) DIV - 56 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5821
SELECT + COUNT ( * ) / - 56 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5822
SELECT - MIN( ALL + + 39 ) FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-5822
SELECT - MIN ( ALL + + 39 ) FROM tab1
----
-39

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * + col0 + col0 < - 53
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + + ( + + col1 ) FROM tab1
----
425
4277
714

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 + + + col1 * - - ( + - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - col2 AS col2 FROM tab0 WHERE NOT 4 IS NOT NULL
----

query I rowsort
SELECT ALL + 93 * + col1 AS col1 FROM tab1
----
1302
4371
465

query I rowsort
SELECT + 48 + ( + col2 ) * - - col1 FROM tab0 AS cor0
----
147
258
3855

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN - col1 AND col0
----

query I rowsort
SELECT DISTINCT 68 * + col0 + - - 64 + - - 58 * - col0 AS col2 FROM tab1 AS cor0
----
574
914
974

onlyif mysql # aggregate syntax: 
query I rowsort label-5831
SELECT DISTINCT - COUNT( * ) * 59 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-177

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT - COUNT ( * ) * 59 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT COUNT( - 55 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5832
SELECT COUNT ( - 55 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - 80 + - - 10 AS col2 FROM tab0 AS cor0
----
-70
-70
-70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5834
SELECT SUM( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5834
SELECT SUM ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5835
SELECT DISTINCT COUNT( + 28 ) + - + CAST( NULL AS SIGNED ) * + + 13 + - COUNT( * ), + ( - 59 ) col0 FROM tab2
----
NULL
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5835
SELECT DISTINCT COUNT ( + 28 ) + - + CAST ( NULL AS INTEGER ) * + + 13 + - COUNT ( * ), + ( - 59 ) col0 FROM tab2
----
NULL
-59

query I rowsort
SELECT ALL 80 - - - col2 + + col0 FROM tab2
----
103
104
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 <= + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5838
SELECT - 62 * - + CAST( NULL AS SIGNED ) + - + ( COUNT( * ) ) - COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5838
SELECT - 62 * - + CAST ( NULL AS INTEGER ) + - + ( COUNT ( * ) ) - COUNT ( * ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT col2 - + - col2 AS col2 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5840
SELECT + ( - col1 ) - + - CAST( col1 AS SIGNED ) - - + col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5840
SELECT + ( - col1 ) - + - CAST ( col1 AS INTEGER ) - - + col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT DISTINCT ( - - COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5841
SELECT DISTINCT ( - - COUNT ( * ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 78 + + 64 FROM tab1 AS cor0
----
-14
-14
-14

query II rowsort
SELECT DISTINCT col2 AS col0, + 17 * col0 FROM tab0
----
10
1479
47
255
99
1649

onlyif mysql # aggregate syntax: 
query I rowsort label-5844
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 * - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5844
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 * - col2 IS NULL
----
-3

query III rowsort
SELECT ALL col1, - 8 * col1, - col1 AS col2 FROM tab2 AS cor0
----
9 values hashing to 5d2964e46c4f8c33d09c5d2b9399d3a4

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 4 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 58 col1, + 70 FROM tab1 AS cor0
----
-58
70
-58
70
-58
70

query I rowsort
SELECT ALL 42 * col0 FROM tab1 AS cor0
----
2142
3570
3822

query II rowsort
SELECT ALL + col2, + col2 + + col1 FROM tab1
----
59
64
68
115
96
110

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 29, col2 * 33 + - + ( - col1 ) col1 FROM tab0
----
-29
1632
-29
3268
-29
351

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col0 col1 FROM tab1 WHERE NOT col2 * + - col0 + col2 > + + col1 * + col1
----
2601
7225
8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT ALL MAX( - - col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-5853
SELECT ALL MAX ( - - col2 ) FROM tab2
----
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 + + col1 + + ( + 78 ) * - - ( + col0 ) BETWEEN - col2 AND - col2 * + col0 + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5855
SELECT 24 AS col0, + 35 DIV - + COUNT( * ) FROM tab0 AS cor0
----
24
-11

skipif mysql # not compatible
query II rowsort label-5855
SELECT 24 AS col0, + 35 / - + COUNT ( * ) FROM tab0 AS cor0
----
24
-11

query II rowsort
SELECT + ( 35 ) AS col0, + col1 + 14 + - 23 * - 10 * col1 AS col2 FROM tab1 AS cor0
----
35
10871
35
1169
35
3248

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT + MAX( ALL col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5857
SELECT + MAX ( ALL col0 ) FROM tab2 AS cor0
----
75

query II rowsort
SELECT 82 * col2 AS col0, col2 FROM tab2
----
1886
23
3280
40
4756
58

query II rowsort
SELECT 72 * 22 AS col2, col1 * col1 AS col2 FROM tab2
----
1584
2601
1584
4489
1584
5929

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 >= + col1
----

query II rowsort
SELECT DISTINCT ( - 27 ) AS col0, + 6 AS col0 FROM tab1 AS cor0
----
-27
6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5863
SELECT - + col1 / + - CAST( NULL AS SIGNED ) * + + 40 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5863
SELECT - + col1 / + - CAST ( NULL AS INTEGER ) * + + 40 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5864
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5864
SELECT DISTINCT - CAST ( NULL AS REAL ) * - col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + - col1 + + 4 * 49 AS col0 FROM tab1 AS cor0
----
149
182
191

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5866
SELECT ALL + COUNT( * ) * - 12 + - + COUNT( DISTINCT + - 88 ) + - - COUNT( * ) DIV - 7 AS col2 FROM tab0 cor0
----
-37

skipif mysql # not compatible
query I rowsort label-5866
SELECT ALL + COUNT ( * ) * - 12 + - + COUNT ( DISTINCT + - 88 ) + - - COUNT ( * ) / - 7 AS col2 FROM tab0 cor0
----
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5867
SELECT DISTINCT COUNT( * ) * CAST( - - 23 AS SIGNED ) * + SUM( DISTINCT - + 17 ) + - - MAX( ALL + - col0 ) + + 40 AS col2 FROM tab2
----
-1179

skipif mysql # not compatible
query I rowsort label-5867
SELECT DISTINCT COUNT ( * ) * CAST ( - - 23 AS INTEGER ) * + SUM ( DISTINCT - + 17 ) + - - MAX ( ALL + - col0 ) + + 40 AS col2 FROM tab2
----
-1179

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5868
SELECT * FROM tab1 WHERE + ( + ( CAST( - col0 AS SIGNED ) ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5868
SELECT * FROM tab1 WHERE + ( + ( CAST ( - col0 AS INTEGER ) ) ) IS NULL
----

query I rowsort
SELECT 58 + + 73 FROM tab2
----
131
131
131

query I rowsort
SELECT ALL - col0 * + + col1 FROM tab1
----
-425
-4277
-714

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 + - ( + + 50 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-5872
SELECT + ( - col2 ) DIV - col1 + - + col1 + + col1 + 61 AS col1, - ( col1 ) FROM tab1
----
62
-47
67
-14
72
-5

skipif mysql # not compatible
query II rowsort label-5872
SELECT + ( - col2 ) / - col1 + - + col1 + + col1 + 61 AS col1, - ( col1 ) FROM tab1
----
62
-47
67
-14
72
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5873
SELECT ALL 71 - + CAST( NULL AS SIGNED ) + - col1 * col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5873
SELECT ALL 71 - + CAST ( NULL AS INTEGER ) + - col1 * col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 99 + + 67 AS col2 FROM tab2
----
166
166
166

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5875
SELECT ALL + - col1 * + - 13 + + CAST( col1 AS SIGNED ) + col1 FROM tab2 AS cor0
----
1005
1155
765

skipif mysql # not compatible
query I rowsort label-5875
SELECT ALL + - col1 * + - 13 + + CAST ( col1 AS INTEGER ) + col1 FROM tab2 AS cor0
----
1005
1155
765

query I rowsort
SELECT DISTINCT - 45 - + col2 FROM tab1
----
-104
-113
-141

query III rowsort
SELECT ALL * FROM tab1 WHERE + 64 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 95 col1 FROM tab0
----
110
182
192

query I rowsort
SELECT - col0 FROM tab1 WHERE NULL BETWEEN ( + 46 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + + col2 IN ( ( ( col0 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 / - col1 ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT 11 - + 62 FROM tab0
----
-51
-51
-51

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT + col2 * col2 IN ( col1 + - 20 )
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE - 78 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 + - 21 AS col1 FROM tab1 WHERE NOT ( - col2 + - col2 * 82 ) IN ( 60 )
----
-16
-7
26

onlyif mysql # aggregate syntax: 
query I rowsort label-5886
SELECT ALL COUNT( * ) FROM tab0 WHERE NOT col0 NOT IN ( + col1 * + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5886
SELECT ALL COUNT ( * ) FROM tab0 WHERE NOT col0 NOT IN ( + col1 * + col2 )
----
0

query I rowsort
SELECT 6 / - col1 AS col1 FROM tab0 WHERE NOT NULL IN ( + col0 )
----

query I rowsort
SELECT - 41 FROM tab0 WHERE ( ( - col2 ) ) + 32 IS NOT NULL
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT ALL 76 * COUNT( * ) - - COUNT( * ) AS col0 FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL 76 * COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab0
----
231

query I rowsort
SELECT DISTINCT - 45 - + col2 FROM tab1 WHERE col1 BETWEEN - col0 AND + 54
----
-104
-113
-141

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5891
SELECT ALL ( COUNT( * ) ) - 41 DIV + 24 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL ( COUNT ( * ) ) - 41 / + 24 FROM tab0
----
2

query I rowsort
SELECT DISTINCT col0 + - 50 FROM tab0 WHERE col0 IN ( 7 / 89 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 + col0 col0 FROM tab0
----
159
169
87

query I rowsort
SELECT ALL 89 * - 79 + col1 AS col0 FROM tab1
----
-6984
-7017
-7026

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT + ( + MAX( col2 ) ) FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5896
SELECT + ( + MAX ( col2 ) ) FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 51 + - 35 FROM tab0
----
16
16
16

query III rowsort
SELECT * FROM tab1 WHERE ( col2 ) <= NULL
----

query I rowsort
SELECT ALL 85 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query I rowsort
SELECT - 63 + + ( + col0 + - col0 ) FROM tab2
----
-63
-63
-63

query I rowsort
SELECT DISTINCT 23 - + 0 FROM tab1 WHERE - col2 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT + col2 + 68 AS col2 FROM tab2
----
108
126
91

query I rowsort
SELECT DISTINCT - 2 + + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
21
38
56

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( col1 - col1 * + 74 ) NOT IN ( - ( + 71 ) * 45 )
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5905
SELECT + + COUNT( * ) + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5905
SELECT + + COUNT ( * ) + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 ) BETWEEN - 5 + + 90 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 14 * ( + col2 + col0 ) FROM tab2 AS cor0
----
1456
1862
966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5908
SELECT ALL + 34 + + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
102
130
93

skipif mysql # not compatible
query I rowsort label-5908
SELECT ALL + 34 + + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
102
130
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5909
SELECT - - ( col1 ) / CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5909
SELECT - - ( col1 ) / CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5910
SELECT DISTINCT + AVG ( + CAST( NULL AS SIGNED ) ) * 27 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5910
SELECT DISTINCT + AVG ( + CAST ( NULL AS INTEGER ) ) * 27 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 84 * 65 FROM tab1 AS cor0
----
5460

query I rowsort
SELECT - - 12 AS col1 FROM tab0 cor0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT + MIN( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5913
SELECT + MIN ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0 WHERE + col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5914
SELECT - ( 78 ) DIV ( ( + COUNT( * ) ) ) col0 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5914
SELECT - ( 78 ) / ( ( + COUNT ( * ) ) ) col0 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT ALL - - col2 * - 29 + 83 AS col1 FROM tab2 AS cor0
----
-1077
-1599
-584

query I rowsort
SELECT - ( + - col2 ) AS col2 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL ( + + 90 ) - + 39 FROM tab0
----
51
51
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - 30 col2 FROM tab1 WHERE NOT col1 IN ( + col0 ) OR NOT + col2 >= - 28 / - col2 + col0
----
-16
-25
17

query I rowsort
SELECT ALL col0 FROM tab0 WHERE col0 <= col2
----
15
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5920
SELECT ALL + col1 - - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5920
SELECT ALL + col1 - - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 53 * - - col1 FROM tab2
----
2703
3551
4081

onlyif mysql # DIV for integer division: 
query I rowsort label-5922
SELECT ALL col2 DIV 12 * col1 FROM tab1
----
112
20
235

skipif mysql # not compatible
query I rowsort label-5922
SELECT ALL col2 / 12 * col1 FROM tab1
----
112
20
235

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN col1 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE col1 < + 86
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( col1 ) * + col1 AS col0 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5926
SELECT DISTINCT col2 * + CAST( ( col0 ) AS SIGNED ) FROM tab0 AS cor0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-5926
SELECT DISTINCT col2 * + CAST ( ( col0 ) AS INTEGER ) FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5927
SELECT DISTINCT + + 66 - COUNT( * ) AS col2 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-5927
SELECT DISTINCT + + 66 - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT COUNT( * ) + - + 15 AS col0 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-5928
SELECT COUNT ( * ) + - + 15 AS col0 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT + col0 * + - 27 FROM tab1 AS cor0
----
-1377
-2295
-2457

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5931
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, + ( col0 ) FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-5931
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, + ( col0 ) FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT - + MIN( - - 0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5932
SELECT - + MIN ( - - 0 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT + - MIN( + - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5933
SELECT + - MIN ( + - col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5934
SELECT - ( + CAST( - col0 AS SIGNED ) ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5934
SELECT - ( + CAST ( - col0 AS INTEGER ) ) FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 98 BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - - 81 col2 FROM tab1 AS cor0
----
1134
3807
405

query II rowsort
SELECT ALL - + col0 AS col2, - col0 AS col0 FROM tab1 AS cor0
----
-51
-51
-85
-85
-91
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5938
SELECT DISTINCT col2 DIV - 33 FROM tab0 AS cor0 WHERE NOT + ( col2 ) * col1 IS NULL
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-5938
SELECT DISTINCT col2 / - 33 FROM tab0 AS cor0 WHERE NOT + ( col2 ) * col1 IS NULL
----
-1
-3
0

query I rowsort
SELECT ALL - - 79 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT ALL COUNT( DISTINCT + 33 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL COUNT ( DISTINCT + 33 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT col1 * + + 95 + 83 BETWEEN col0 * 34 AND + col1
----
-51
-67
-77

query I rowsort
SELECT ALL - col1 * + ( + 40 ) FROM tab1
----
-1880
-200
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-5943
SELECT 94 + COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL NOT IN ( + col1 * - 9 + 74 )
----
94

skipif mysql # not compatible
query I rowsort label-5943
SELECT 94 + COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL NOT IN ( + col1 * - 9 + 74 )
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5944
SELECT DISTINCT - col0 DIV 1 AS col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5944
SELECT DISTINCT - col0 / 1 AS col1 FROM tab0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5945
SELECT col2 + col0 DIV + - col1 AS col2 FROM tab1
----
42
67
93

skipif mysql # not compatible
query I rowsort label-5945
SELECT col2 + col0 / + - col1 AS col2 FROM tab1
----
42
67
93

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 NOT IN ( 54 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT COUNT( * ) + - + 34 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-5948
SELECT COUNT ( * ) + - + 34 FROM tab0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT + COUNT( * ) + + ( - 0 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5949
SELECT + COUNT ( * ) + + ( - 0 ) col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE col2 * col2 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col0 * col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - col2 * col2 >= ( col2 * 26 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5953
SELECT 76 DIV SUM( ALL - - col1 ) + + 93 AS col1 FROM tab0 cor0
----
93

skipif mysql # not compatible
query I rowsort label-5953
SELECT 76 / SUM ( ALL - - col1 ) + + 93 AS col1 FROM tab0 cor0
----
93

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 * col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5955
SELECT ALL + col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL + col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 93 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * col1 AS col2 FROM tab2 WHERE ( + ( col0 ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5958
SELECT col0 - + + ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5958
SELECT col0 - + + ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * col0 - + 62 FROM tab2
----
2498
4288
996

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NULL = ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5961
SELECT ALL col1 + + 88 * + + CAST( - col0 AS SIGNED ) FROM tab2
----
-3997
-5555
-6533

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL col1 + + 88 * + + CAST ( - col0 AS INTEGER ) FROM tab2
----
-3997
-5555
-6533

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 13 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1 AS col2, - 70 FROM tab0
----
1
-70
21
-70
81
-70

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 44 + - col2 * - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5965
SELECT DISTINCT + MIN( col1 ) + 7 - + 70, - COUNT( * ) AS col0 FROM tab0
----
-62
-3

skipif mysql # not compatible
query II rowsort label-5965
SELECT DISTINCT + MIN ( col1 ) + 7 - + 70, - COUNT ( * ) AS col0 FROM tab0
----
-62
-3

query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( NULL ) IN ( 87 - ( col0 ) * - col2 )
----

query I rowsort
SELECT DISTINCT col2 * 39 FROM tab2
----
1560
2262
897

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE - col0 > - + col1
----
23
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5969
SELECT - SUM( ALL + - col0 ) * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5969
SELECT - SUM ( ALL + - col0 ) * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 col1 FROM tab1 cor0
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, + ( - col1 ) AS col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * - col1 FROM tab0 WHERE + 36 = col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 13 * - col1 * 76 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT ( - MIN( + col0 ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-5975
SELECT ( - MIN ( + col0 ) ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query II rowsort label-5976
SELECT 26, + COUNT( * ) + + + COUNT( * ) AS col1 FROM tab2
----
26
6

skipif mysql # not compatible
query II rowsort label-5976
SELECT 26, + COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab2
----
26
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT MIN( ALL + 15 ) AS col0 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-5977
SELECT MIN ( ALL + 15 ) AS col0 FROM tab2
----
15

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * - + col2 BETWEEN col2 AND - + col1 / - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - ( + 40 ) FROM tab0 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5981
SELECT - MAX( ALL - - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5981
SELECT - MAX ( ALL - - col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5982
SELECT - + col2 DIV 94 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5982
SELECT - + col2 / 94 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5983
SELECT DISTINCT - + 49 * - col0 + + + 52 + + CAST( NULL AS SIGNED ), col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-5983
SELECT DISTINCT - + 49 * - col0 + + + 52 + + CAST ( NULL AS INTEGER ), col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5985
SELECT ALL - CAST( NULL AS DECIMAL ) + - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5985
SELECT ALL - CAST ( NULL AS REAL ) + - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT - - col0 + + - 58 FROM tab1 WHERE - - col1 + + + col1 IS NOT NULL
----
-7
27
33

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL NOT BETWEEN col1 + - col0 AND + col2 )
----

query II rowsort
SELECT DISTINCT - col2 - + col0 AS col1, 19 AS col1 FROM tab2 AS cor0
----
-104
19
-133
19
-69
19

query I rowsort
SELECT + - ( + + col0 ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * + 99 * - + ( + - 68 ) / + 56 IS NULL
----

query I rowsort
SELECT - col0 * + + 4 + col1 AS col1 FROM tab1 AS cor0
----
-190
-317
-335

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT - + MAX( ALL col1 ) col2 FROM tab2 cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5992
SELECT - + MAX ( ALL col1 ) col2 FROM tab2 cor0
----
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5993
SELECT - 29 DIV COUNT( + col2 ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5993
SELECT - 29 / COUNT ( + col2 ) AS col2 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT - 38 - + col2 FROM tab2 cor0
----
-61
-78
-96

query I rowsort
SELECT DISTINCT - col0 + + ( - 8 ) FROM tab1 AS cor0
----
-59
-93
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE - col0 / col1 BETWEEN + col1 - - - col2 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5996
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE - col0 / col1 BETWEEN + col1 - - - col2 AND ( NULL )
----
0

query I rowsort
SELECT + + col2 + + col1 FROM tab1 WHERE NOT + - col2 IN ( 29, 7 )
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT ALL MAX( + - 0 ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5998
SELECT ALL MAX ( + - 0 ) col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + col0 * ( - - col0 ) AS col1 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6001
SELECT - 23 col2, - COUNT( * ) DIV + 45 AS col1 FROM tab2
----
-23
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6001
SELECT - 23 col2, - COUNT ( * ) / + 45 AS col1 FROM tab2
----
-23
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6002
SELECT ALL ( - MIN( 63 ) ) col2 FROM tab0 AS cor0
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6002
SELECT ALL ( - MIN ( 63 ) ) col2 FROM tab0 AS cor0
----
-63

query I rowsort
SELECT + - 95 * + col0 FROM tab0 AS cor0
----
-1425
-8265
-9215

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6004
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> + CAST( NULL AS SIGNED ) + + - 92 - + 25
----

skipif mysql # not compatible
query III rowsort label-6004
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> + CAST ( NULL AS INTEGER ) + + - 92 - + 25
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col0 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT DISTINCT - MAX( DISTINCT + - col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6006
SELECT DISTINCT - MAX ( DISTINCT + - col1 ) AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ( + - col0 ) AS col0 FROM tab0 cor0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 35 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE 46 / + col1 + + 93 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6010
SELECT COUNT( * ) / - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6010
SELECT COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT col2 * + 43 + col0 FROM tab0 AS cor0
----
2036
4354
517

query II rowsort
SELECT + 47 AS col0, - col1 * col0 AS col2 FROM tab0 cor0
----
47
-1215
47
-1827
47
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6013
SELECT CAST( + AVG ( DISTINCT - 10 ) AS SIGNED ) FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6013
SELECT CAST ( + AVG ( DISTINCT - 10 ) AS INTEGER ) FROM tab2 AS cor0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( col1 ) = NULL
----

query II rowsort
SELECT ALL - 31 AS col0, - col2 AS col2 FROM tab2 AS cor0
----
-31
-23
-31
-40
-31
-58

query I rowsort
SELECT DISTINCT col1 + - + 89 + - col1 FROM tab2 AS cor0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT - MAX( col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-6017
SELECT - MAX ( col0 ) AS col1 FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6018
SELECT DISTINCT + col2 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6018
SELECT DISTINCT + col2 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( + + 50 - + col1, 62 / col2 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - + col2 + + 95 * - 70 >= - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 + - - ( col2 ) * col1 AS col1 FROM tab0 AS cor0
----
123
2
3792

onlyif mysql # aggregate syntax: 
query I rowsort label-6022
SELECT ALL COUNT( - col2 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6022
SELECT ALL COUNT ( - col2 ) AS col1 FROM tab1
----
3

query II rowsort
SELECT DISTINCT col2 * - 60, col0 AS col1 FROM tab2
----
-1380
46
-2400
64
-3480
75

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE NOT + col0 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT col1 FROM tab2 WHERE ( NOT - col0 + - col1 IS NULL )
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6026
SELECT - COUNT( * ) DIV ( - COUNT( * ) ) + 94 AS col0 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-6026
SELECT - COUNT ( * ) / ( - COUNT ( * ) ) + 94 AS col0 FROM tab1
----
95

query II rowsort
SELECT - 71 * + col1 + col2 + + - col0 * + - 60 AS col1, - col2 * + col0 * col1 FROM tab1 AS cor0
----
2162
-68544
2191
-290836
4804
-25075

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT ALL COUNT( col1 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL COUNT ( col1 ) FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT - col2 * + 99 FROM tab0 AS cor0
----
-4653
-9801
-990

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + - col1 > - ( + ( - + col2 ) ) * + 74 / + 45 OR NOT + - col1 NOT IN ( col2 * - - 26 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 47, + col0 col2 FROM tab1
----
47
51
47
85
47
91

onlyif mysql # DIV for integer division: 
query I rowsort label-6032
SELECT col0 DIV + - col2 - + col2 FROM tab0
----
-18
-47
-99

skipif mysql # not compatible
query I rowsort label-6032
SELECT col0 / + - col2 - + col2 FROM tab0
----
-18
-47
-99

query I rowsort
SELECT DISTINCT - col0 * + + 59 FROM tab0
----
-5133
-5723
-885

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT ALL COUNT( * ) - + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6034
SELECT ALL COUNT ( * ) - + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT + col0 - 93 FROM tab0 AS cor0
----
-6
-78
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT DISTINCT + SUM( ALL ( + + ( 23 ) ) ) AS col2 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-6036
SELECT DISTINCT + SUM ( ALL ( + + ( 23 ) ) ) AS col2 FROM tab2 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT DISTINCT MIN( - - 92 ) AS col2 FROM tab1 cor0
----
92

skipif mysql # not compatible
query I rowsort label-6037
SELECT DISTINCT MIN ( - - 92 ) AS col2 FROM tab1 cor0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-6038
SELECT - - col1 DIV + + col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6038
SELECT - - col1 / + + col1 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6039
SELECT DISTINCT - ( col2 ) DIV - ( + - col1 ) AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6039
SELECT DISTINCT - ( col2 ) / - ( + - col1 ) AS col2 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT - MAX( DISTINCT + + col1 ) AS col0 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-6040
SELECT - MAX ( DISTINCT + + col1 ) AS col0 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT - 39 * - + MAX( ALL 33 ) FROM tab0
----
1287

skipif mysql # not compatible
query I rowsort label-6041
SELECT - 39 * - + MAX ( ALL 33 ) FROM tab0
----
1287

query I rowsort
SELECT - 57 * 32 AS col2 FROM tab0
----
-1824
-1824
-1824

onlyif mysql # aggregate syntax: 
query I rowsort label-6043
SELECT - SUM( DISTINCT - col0 ) col2 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6043
SELECT - SUM ( DISTINCT - col0 ) col2 FROM tab2
----
185

query I rowsort
SELECT - AVG ( DISTINCT + - 67 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6045
SELECT DISTINCT + - MAX( DISTINCT ( 0 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6045
SELECT DISTINCT + - MAX ( DISTINCT ( 0 ) ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = + - 40 AND 89 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT ALL + COUNT( DISTINCT - - col1 ) FROM tab2 WHERE NULL BETWEEN col0 + + 20 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL + COUNT ( DISTINCT - - col1 ) FROM tab2 WHERE NULL BETWEEN col0 + + 20 AND NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN 43 AND NULL
----
87
21
10

query II rowsort
SELECT ALL + 4, col0 AS col0 FROM tab1 AS cor0
----
4
51
4
85
4
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT DISTINCT - - 3 * MAX( col2 ) col2 FROM tab0 AS cor0
----
297

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6050
SELECT DISTINCT - - 3 * MAX ( col2 ) col2 FROM tab0 AS cor0
----
297

query I rowsort
SELECT ALL 93 + - + 52 FROM tab2 cor0
----
41
41
41

query I rowsort
SELECT ALL + 55 + - 8 FROM tab0 AS cor0
----
47
47
47

query I rowsort
SELECT ALL - 40 + + - col2 + + - col1 * - 82 + col2 FROM tab2 AS cor0
----
4142
5454
6274

query I rowsort
SELECT DISTINCT + - col1 + - 42 + - col0 FROM tab2 AS cor0
----
-139
-183
-184

query I rowsort
SELECT DISTINCT col1 + - col2 + - col1 * + + 77 FROM tab1 WHERE NOT col0 = - 66
----
-1160
-3640
-439

query I rowsort
SELECT DISTINCT 30 * - ( + + 89 ) FROM tab0 WHERE NOT + + 17 IS NULL
----
-2670

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 4 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 42 * - col1 col0 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 35 FROM tab1 cor0 WHERE ( NULL IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 53 NOT BETWEEN 19 / 99 + col2 + 9 / + 21 AND - 55 * + col1 - + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + - ( - 10 ) IS NULL
----

query II rowsort
SELECT DISTINCT col2 + + + 72, + col0 AS col2 FROM tab1
----
131
85
140
91
168
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 col1 FROM tab1 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query II rowsort label-6065
SELECT + MAX( + 15 ), + 49 AS col1 FROM tab2 AS cor0
----
15
49

skipif mysql # not compatible
query II rowsort label-6065
SELECT + MAX ( + 15 ), + 49 AS col1 FROM tab2 AS cor0
----
15
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6066
SELECT + col0 * - + CAST( + col1 AS SIGNED ) col1 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6066
SELECT + col0 * - + CAST ( + col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 15 * - col0 col0 FROM tab2 AS cor0
----
-1125
-690
-960

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6068
SELECT DISTINCT - CAST( + col0 AS SIGNED ) DIV + 92 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6068
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) / + 92 AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND col0 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6070
SELECT ALL col0 * + CAST( + 13 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
598
832
975

skipif mysql # not compatible
query I rowsort label-6070
SELECT ALL col0 * + CAST ( + 13 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
598
832
975

onlyif mysql # DIV for integer division: 
query I rowsort label-6071
SELECT DISTINCT + 27 DIV - 24 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6071
SELECT DISTINCT + 27 / - 24 FROM tab1 cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6072
SELECT - CAST( + 68 AS SIGNED ) * - col0 + 31 + + 33 col2 FROM tab2
----
3192
4416
5164

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6072
SELECT - CAST ( + 68 AS INTEGER ) * - col0 + 31 + + 33 col2 FROM tab2
----
3192
4416
5164

query I rowsort
SELECT ALL + ( - 90 ) AS col2 FROM tab1
----
-90
-90
-90

query II rowsort
SELECT DISTINCT 40 AS col2, col0 AS col1 FROM tab0
----
40
15
40
87
40
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 > - 76 * - ( + - col1 ) + + col1
----

query I rowsort
SELECT DISTINCT col2 + + ( col2 ) FROM tab0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6077
SELECT + SUM( ALL col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6077
SELECT + SUM ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT ALL + COUNT( * ) * - 89 + + 96 FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-6078
SELECT ALL + COUNT ( * ) * - 89 + + 96 FROM tab0 AS cor0
----
-171

query I rowsort
SELECT + - col1 * - 19 AS col0 FROM tab0 cor0
----
1539
19
399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6080
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6080
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 + - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 94 * + - col2 * col1 * col2 + col1, 65 AS col1 FROM tab2
----
-11580723
65
-21186405
65
-2535975
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT ALL 40 * - ( COUNT( * ) ) AS col0 FROM tab0
----
-120

skipif mysql # not compatible
query I rowsort label-6084
SELECT ALL 40 * - ( COUNT ( * ) ) AS col0 FROM tab0
----
-120

onlyif mysql # DIV for integer division: 
query I rowsort label-6085
SELECT DISTINCT col2 + - 72 DIV + + col1 FROM tab1
----
45
67
91

skipif mysql # not compatible
query I rowsort label-6085
SELECT DISTINCT col2 + - 72 / + + col1 FROM tab1
----
45
67
91

query I rowsort
SELECT col2 * - col1 + + ( + + 27 ) FROM tab2
----
-1146
-3053
-3859

query I rowsort
SELECT - 60 + 50 AS col2 FROM tab2
----
-10
-10
-10

query I rowsort
SELECT - col0 FROM tab1 WHERE - + col2 <> NULL
----

query I rowsort
SELECT ALL 87 - + - col2 AS col0 FROM tab2
----
110
127
145

query I rowsort
SELECT col2 + + + col0 AS col1 FROM tab1
----
144
147
159

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6092
SELECT ALL - + ( COUNT( * ) ) DIV - 38, - COUNT( * ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
0
-9

skipif mysql # not compatible
query II rowsort label-6092
SELECT ALL - + ( COUNT ( * ) ) / - 38, - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6093
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col1 + + col1 + 43 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6093
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col1 + + col1 + 43 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + col1 col0 FROM tab2
----
-13
-5
8

query III rowsort
SELECT * FROM tab1 WHERE ( - 55 * + col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE - ( - 96 ) >= 49 * + 76 * - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 * + + col1 * - 78 FROM tab1
----
104832
23010
249288

query I rowsort
SELECT ALL - 63 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) = NULL
----

query III rowsort
SELECT DISTINCT 4 AS col2, + col1, - 40 AS col2 FROM tab2 AS cor0
----
9 values hashing to d946802e539f308971d8ae14aef92b4e

query I rowsort
SELECT ALL 25 FROM tab1 cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT DISTINCT - MAX( + col1 ) * MIN( - 2 ) col2 FROM tab1 cor0
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6101
SELECT DISTINCT - MAX ( + col1 ) * MIN ( - 2 ) col2 FROM tab1 cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT COUNT( * ) * - 65 AS col2 FROM tab1 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-6102
SELECT COUNT ( * ) * - 65 AS col2 FROM tab1 AS cor0
----
-195

query I rowsort
SELECT ALL + - col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
-51
-67
-77

query II rowsort
SELECT ALL + 65 AS col2, ( + col2 ) - + + col0 AS col0 FROM tab2 cor0
----
65
-17
65
-23
65
-24

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 49 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6106
SELECT + COUNT( * ) * SUM( DISTINCT - - col1 ) AS col1 FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-6106
SELECT + COUNT ( * ) * SUM ( DISTINCT - - col1 ) AS col1 FROM tab2 AS cor0
----
585

query I rowsort
SELECT ALL - - ( + col1 ) * + + 57 * - 40 FROM tab1 AS cor0
----
-107160
-11400
-31920

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT DISTINCT - MIN( - - col0 ) col1 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6108
SELECT DISTINCT - MIN ( - - col0 ) col1 FROM tab1
----
-51

query I rowsort
SELECT 40 * + col1 AS col0 FROM tab1
----
1880
200
560

onlyif mysql # aggregate syntax: 
query I rowsort label-6110
SELECT COUNT( + 87 ) * + 64 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-6110
SELECT COUNT ( + 87 ) * + 64 FROM tab2
----
192

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + ( - - col0 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 48 - + col2 * + col0 - 56 * - 58 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6113
SELECT DISTINCT col1 DIV + 26 AS col2 FROM tab0
----
0
3

skipif mysql # not compatible
query I rowsort label-6113
SELECT DISTINCT col1 / + 26 AS col2 FROM tab0
----
0
3

query I rowsort
SELECT DISTINCT - - 10 + - 72 AS col0 FROM tab2 AS cor0
----
-62

onlyif mysql # aggregate syntax: 
query II rowsort label-6115
SELECT COUNT( * ) AS col1, ( - - 64 ) AS col1 FROM tab2
----
3
64

skipif mysql # not compatible
query II rowsort label-6115
SELECT COUNT ( * ) AS col1, ( - - 64 ) AS col1 FROM tab2
----
3
64

query II rowsort
SELECT ALL - col2 AS col0, + 26 * + 92 * - col1 AS col2 FROM tab2
----
-23
-121992
-40
-184184
-58
-160264

onlyif mysql # aggregate syntax: 
query I rowsort label-6117
SELECT DISTINCT COUNT( * ) + + + 36 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-6117
SELECT DISTINCT COUNT ( * ) + + + 36 FROM tab1
----
39

query I rowsort
SELECT - col2 + + 18 + - col1 * + + col1 AS col2 FROM tab0
----
-433
-6590
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6119
SELECT ALL - CAST( - 85 AS SIGNED ) FROM tab1 AS cor0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL - CAST ( - 85 AS INTEGER ) FROM tab1 AS cor0
----
85
85
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6120
SELECT DISTINCT - - CAST( - 5 AS SIGNED ) + col2 AS col2 FROM tab0 AS cor0
----
42
5
94

skipif mysql # not compatible
query I rowsort label-6120
SELECT DISTINCT - - CAST ( - 5 AS INTEGER ) + col2 AS col2 FROM tab0 AS cor0
----
42
5
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 21 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT - - COUNT( ALL + 32 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6122
SELECT - - COUNT ( ALL + 32 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6123
SELECT ALL col1 col2 FROM tab1 AS cor0 WHERE 27 + - CAST( + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6123
SELECT ALL col1 col2 FROM tab1 AS cor0 WHERE 27 + - CAST ( + col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + 86 + + ( + - col2 ) - + + col0 AS col1 FROM tab1 AS cor0
----
-58
-61
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-6125
SELECT + SUM( 76 ) FROM tab0 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-6125
SELECT + SUM ( 76 ) FROM tab0 AS cor0
----
228

query II rowsort
SELECT + + col0, col0 - - 75 FROM tab2 cor0
----
46
121
64
139
75
150

query I rowsort
SELECT DISTINCT col2 * col1 * + - 17 AS col0 FROM tab1 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT - col1 FROM tab1 WHERE ( 6 - - + 34 + + col0 ) BETWEEN ( col1 ) AND NULL
----

query I rowsort
SELECT ALL + col0 + - - 93 FROM tab0
----
108
180
190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6130
SELECT COUNT( * ) - - + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6130
SELECT COUNT ( * ) - - + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6131
SELECT DISTINCT + 45 * + - COUNT( * ) FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-6131
SELECT DISTINCT + 45 * + - COUNT ( * ) FROM tab2 AS cor0
----
-135

query I rowsort
SELECT DISTINCT - + 79 * + + 50 AS col0 FROM tab1 AS cor0 WHERE NOT + 62 IS NULL
----
-3950

query I rowsort
SELECT DISTINCT + 40 AS col2 FROM tab1
----
40

query I rowsort
SELECT DISTINCT - col0 * col1 * + 92 FROM tab2
----
-215832
-453376
-462300

query I rowsort
SELECT - + ( + + col1 ) FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6137
SELECT - + COUNT( + 74 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6137
SELECT - + COUNT ( + 74 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 73 * - col1 FROM tab0 AS cor0
----
-1533
-5913
-73

query I rowsort
SELECT - col0 * + - col0 * col0 AS col0 FROM tab2 AS cor0
----
262144
421875
97336

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 * + col0 >= - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6141
SELECT DISTINCT 60 DIV 25 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-6141
SELECT DISTINCT 60 / 25 FROM tab0
----
2

query I rowsort
SELECT ALL + col2 * 97 FROM tab0
----
4559
9603
970

onlyif mysql # DIV for integer division: 
query I rowsort label-6143
SELECT DISTINCT + 46 DIV + col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6143
SELECT DISTINCT + 46 / + col2 FROM tab2
----
0
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 25 + + - col2 col1 FROM tab2 cor0
----
-15
-33
2

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN - col0 AND col1
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-6146
SELECT ALL + - SUM( col1 ) AS col2, - ( + - 64 ) AS col0 FROM tab2 AS cor0 WHERE col2 * + 7 <> - + col2
----
-195
64

skipif mysql # not compatible
query II rowsort label-6146
SELECT ALL + - SUM ( col1 ) AS col2, - ( + - 64 ) AS col0 FROM tab2 AS cor0 WHERE col2 * + 7 <> - + col2
----
-195
64

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE col0 <> + col2 - + 16
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 80 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

query III rowsort
SELECT * FROM tab1 WHERE - 78 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT + COUNT( * ) * + 16 AS col0 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6151
SELECT + COUNT ( * ) * + 16 AS col0 FROM tab0 AS cor0
----
48

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 10 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 12 * - - col1 + - 88 - + col2 AS col0 FROM tab0 AS cor0
----
-1107
-199
-350

query I rowsort
SELECT DISTINCT - 72 + ( + 65 ) FROM tab1
----
-7

query I rowsort
SELECT col1 + - 96 + + 6 * + col2 FROM tab1
----
263
359
494

query I rowsort
SELECT DISTINCT 33 - + col0 + col1 AS col1 FROM tab2
----
25
38
46

query II rowsort
SELECT ALL col0, col0 AS col1 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT DISTINCT + 45 - - + col2 FROM tab2
----
103
68
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6159
SELECT COUNT( * ), CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-6159
SELECT COUNT ( * ), CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
3
-3

query I rowsort
SELECT ALL - 12 - - col2 FROM tab1
----
47
56
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6161
SELECT * FROM tab2 WHERE - col1 * CAST( + - 64 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6161
SELECT * FROM tab2 WHERE - col1 * CAST ( + - 64 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + 86 * + 64 + + 5 AS col0 FROM tab2 AS cor0
----
5509
5509
5509

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= col0 + + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 8 * + 53 + + col2 * col1 ) <> NULL
----

query I rowsort
SELECT ALL + + 52 FROM tab0 cor0
----
52
52
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 77 col2 FROM tab0 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6167
SELECT - col2 FROM tab0 AS cor0 WHERE NOT col2 >= 92 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6167
SELECT - col2 FROM tab0 AS cor0 WHERE NOT col2 >= 92 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6168
SELECT + CAST( NULL AS DECIMAL ) * 55 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6168
SELECT + CAST ( NULL AS REAL ) * 55 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT ALL + 12 + + + COUNT( * ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-6169
SELECT ALL + 12 + + + COUNT ( * ) AS col0 FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6170
SELECT - 85 * + 11 / - CAST( NULL AS SIGNED ) / - + 17 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6170
SELECT - 85 * + 11 / - CAST ( NULL AS INTEGER ) / - + 17 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( - 28 ) AS col2 FROM tab1
----
-28
-28
-28

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT MAX( + 38 ) * + + ( 8 ) AS col0 FROM tab2
----
304

skipif mysql # not compatible
query I rowsort label-6173
SELECT MAX ( + 38 ) * + + ( 8 ) AS col0 FROM tab2
----
304

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6174
SELECT DISTINCT CAST( + - 62 AS SIGNED ) AS col0 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-6174
SELECT DISTINCT CAST ( + - 62 AS INTEGER ) AS col0 FROM tab1
----
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-6175
SELECT DISTINCT col1 DIV + + col0 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT col1 / + + col0 AS col1 FROM tab1
----
0

query I rowsort
SELECT 36 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 * - - col1 * + 35 + + 10 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT + - 37 + - COUNT( * ) AS col0 FROM tab0 cor0
----
-40

skipif mysql # not compatible
query I rowsort label-6177
SELECT + - 37 + - COUNT ( * ) AS col0 FROM tab0 cor0
----
-40

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6178
SELECT ALL CAST( NULL AS DECIMAL ), 3 * - col2 AS col0 FROM tab1
----
NULL
-177
NULL
-204
NULL
-288

skipif mysql # not compatible
query II rowsort label-6178
SELECT ALL CAST ( NULL AS REAL ), 3 * - col2 AS col0 FROM tab1
----
NULL
-177
NULL
-204
NULL
-288

onlyif mysql # aggregate syntax: 
query II rowsort label-6179
SELECT DISTINCT + ( + - COUNT( * ) ), - MAX( + 75 ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9
-75

skipif mysql # not compatible
query II rowsort label-6179
SELECT DISTINCT + ( + - COUNT ( * ) ), - MAX ( + 75 ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9
-75

query I rowsort
SELECT ALL col0 * + col1 / - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL - col0 * col2 AS col1, col2 AS col2 FROM tab0 AS cor0
----
-705
47
-870
10
-9603
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * ( - ( - - col1 ) ) col1 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6183
SELECT ALL - MIN( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6183
SELECT ALL - MIN ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT MIN( DISTINCT ( - + 86 ) ) AS col1 FROM tab1 cor0
----
-86

skipif mysql # not compatible
query I rowsort label-6184
SELECT MIN ( DISTINCT ( - + 86 ) ) AS col1 FROM tab1 cor0
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-6185
SELECT + col1 DIV - + ( + - col2 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6185
SELECT + col1 / - + ( + - col2 ) FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * + 84 FROM tab1 AS cor0
----
4284
7140
7644

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - col0 AS col0, col1, + + col1 col0 FROM tab0 AS cor0
----
9 values hashing to 275e874388b7a482bcf971dfb91ff45a

query I rowsort
SELECT ALL - - col0 + + col2 + col0 AS col1 FROM tab0 AS cor0
----
184
293
77

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= ( - - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 79 + - - col2 col0 FROM tab2
----
102
119
137

query I rowsort
SELECT col2 FROM tab2 WHERE - 47 + - + col2 * + + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 * - col0 + 71 + + col2 * + col0 col1 FROM tab2
----
-1785
-2045
-754

query I rowsort
SELECT + col0 - col2 + col2 AS col1 FROM tab0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6194
SELECT DISTINCT + col0 DIV ( - 96 ) + - col0 + - - col0 DIV - 77 FROM tab1
----
-51
-86
-92

skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT + col0 / ( - 96 ) + - col0 + - - col0 / - 77 FROM tab1
----
-51
-86
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 * col1 + + 93 - - 43 col0 FROM tab1
----
-1166
-329
-4235

query I rowsort
SELECT - ( - + 41 ) AS col0 FROM tab1
----
41
41
41

query I rowsort
SELECT + - col1 FROM tab1 AS cor0 WHERE NOT + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
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-6198
SELECT DISTINCT ( + COUNT ( * ) ) col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN + col2 - + 87 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6200
SELECT ALL COUNT( * ), 76 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
76

skipif mysql # not compatible
query II rowsort label-6200
SELECT ALL COUNT ( * ), 76 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
76

onlyif mysql # aggregate syntax: 
query II rowsort label-6201
SELECT ALL - COUNT( * ) AS col0, 70 * + + 95 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
6650

skipif mysql # not compatible
query II rowsort label-6201
SELECT ALL - COUNT ( * ) AS col0, 70 * + + 95 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
6650

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) >= + 92
----

query I rowsort
SELECT DISTINCT col0 * - 45 AS col2 FROM tab1 AS cor0
----
-2295
-3825
-4095

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + + 23 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6205
SELECT col1 AS col1, CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6205
SELECT col1 AS col1, CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - 84 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 26 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 + + 73 FROM tab1
----
26
59
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT 31 * + COUNT( * ) + + COUNT( * ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-6209
SELECT 31 * + COUNT ( * ) + + COUNT ( * ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6210
SELECT 24 + ( + 73 ) + + 18 + COUNT( * ) FROM tab0
----
118

skipif mysql # not compatible
query I rowsort label-6210
SELECT 24 + ( + 73 ) + + 18 + COUNT ( * ) FROM tab0
----
118

query I rowsort
SELECT + 52 FROM tab2 AS cor0 WHERE NULL IS NULL
----
52
52
52

query I rowsort
SELECT DISTINCT + 74 * - ( + 72 ) + - col2 - + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-2200
-4080
-5092

query III rowsort
SELECT * FROM tab1 WHERE NULL < - + 44 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT - MIN( + 32 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-32

skipif mysql # not compatible
query I rowsort label-6214
SELECT - MIN ( + 32 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-32

query I rowsort
SELECT + - 68 + + - 90 AS col0 FROM tab0 AS cor0
----
-158
-158
-158

query I rowsort
SELECT DISTINCT col0 * - - col0 AS col1 FROM tab0 cor0
----
225
7569
9409

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 33 * ( - + 19 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 73 + 9 FROM tab0 AS cor0
----
-64
-64
-64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 - - 38 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 61 + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6221
SELECT col0 col0, + CAST( + col1 AS SIGNED ) * 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-6221
SELECT col0 col0, + CAST ( + col1 AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6222
SELECT DISTINCT + 61 * + COUNT( * ) FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-6222
SELECT DISTINCT + 61 * + COUNT ( * ) FROM tab1
----
183

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT + SUM( - + col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-6223
SELECT + SUM ( - + col2 ) FROM tab2
----
-121

query II rowsort
SELECT col1 AS col1, 31 FROM tab0
----
1
31
21
31
81
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6225
SELECT - SUM( - 16 ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6225
SELECT - SUM ( - 16 ) FROM tab1 AS cor0
----
48

query I rowsort
SELECT DISTINCT - 14 FROM tab1 AS cor0 WHERE NOT - 73 IS NULL
----
-14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 / + - col1 * + - col0 + col2 / + - ( - 82 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( + - ( col2 ) ) AS col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT - COUNT( * ) FROM tab2 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6229
SELECT - COUNT ( * ) FROM tab2 WHERE NOT NULL >= NULL
----
0

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE ( - col0 * + 70 IS NULL )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6232
SELECT DISTINCT - 85 + - 25 + - 3 DIV + COUNT( * ) FROM tab2 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-6232
SELECT DISTINCT - 85 + - 25 + - 3 / + COUNT ( * ) FROM tab2 AS cor0
----
-111

query I rowsort
SELECT - - col0 + - 26 FROM tab2 AS cor0
----
20
38
49

query I rowsort
SELECT + + 66 + col0 * + + 78 AS col2 FROM tab0 AS cor0
----
1236
6852
7632

onlyif mysql # DIV for integer division: 
query II rowsort label-6235
SELECT ALL col2 + - - col1 DIV + col0, + col1 * - - col0 AS col0 FROM tab1 AS cor0
----
59
425
68
4277
96
714

skipif mysql # not compatible
query II rowsort label-6235
SELECT ALL col2 + - - col1 / + col0, + col1 * - - col0 AS col0 FROM tab1 AS cor0
----
59
425
68
4277
96
714

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6236
SELECT - col1 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6236
SELECT - col1 + - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6237
SELECT + MIN( ALL - 13 ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-6237
SELECT + MIN ( ALL - 13 ) FROM tab0
----
-13

query I rowsort
SELECT + 11 * 3 FROM tab1
----
33
33
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, + 16 FROM tab2
----
-51
16
-67
16
-77
16

query I rowsort
SELECT DISTINCT 65 + 78 AS col1 FROM tab1
----
143

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT ALL - MIN( ALL 80 ) * + 41 FROM tab0 WHERE NOT - 26 + - - col2 <> + col1 - + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-6241
SELECT ALL - MIN ( ALL 80 ) * + 41 FROM tab0 WHERE NOT - 26 + - - col2 <> + col1 - + + col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6242
SELECT 9 AS col0, COUNT( * ) FROM tab1 WHERE NULL >= NULL
----
9
0

skipif mysql # not compatible
query II rowsort label-6242
SELECT 9 AS col0, COUNT ( * ) FROM tab1 WHERE NULL >= NULL
----
9
0

query I rowsort
SELECT 55 * - - col0 FROM tab1
----
2805
4675
5005

onlyif mysql # aggregate syntax: 
query I rowsort label-6244
SELECT ALL + 55 + + SUM( ALL - col2 ) col1 FROM tab0 AS cor0
----
-101

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6244
SELECT ALL + 55 + + SUM ( ALL - col2 ) col1 FROM tab0 AS cor0
----
-101

query I rowsort
SELECT ALL - col1 * + col0 + - 17 AS col0 FROM tab2 AS cor0
----
-2363
-4945
-5042

query I rowsort
SELECT - col2 * - 56 + - 56 + + 85 + col0 * + col1 AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
3663
7197
8302

query I rowsort
SELECT ALL - 12 + - 44 + + - 39 FROM tab0
----
-95
-95
-95

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( NULL ) NOT BETWEEN + col2 + + col1 + + 12 * + col1 + col1 AND - 17 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6249
SELECT ALL + col1 DIV - + col0 + + ( 60 ) - - - col0 DIV ( - - col0 ) + + CAST( + ( + col2 ) AS SIGNED ) - + col1 * - 12 AS col2 FROM tab0 AS cor0
----
1073
170
321

skipif mysql # not compatible
query I rowsort label-6249
SELECT ALL + col1 / - + col0 + + ( 60 ) - - - col0 / ( - - col0 ) + + CAST ( + ( + col2 ) AS INTEGER ) - + col1 * - 12 AS col2 FROM tab0 AS cor0
----
1073
170
321

query I rowsort
SELECT - + col1 * 35 FROM tab0 AS cor0
----
-2835
-35
-735

query I rowsort
SELECT ALL - ( - col2 ) * - col2 AS col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( - col2 ) * - 7 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 2 * + col0 - + - col1 FROM tab2 AS cor0
----
143
205
217

query I rowsort
SELECT - col0 * + 98 AS col0 FROM tab0 cor0
----
-1470
-8526
-9506

query I rowsort
SELECT DISTINCT col2 * - - 41 FROM tab1
----
2419
2788
3936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) col2 FROM tab2
----
-51
-67
-77

query II rowsort
SELECT col1 AS col2, col2 AS col0 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT DISTINCT 50 * 80 FROM tab2
----
4000

onlyif mysql # DIV for integer division: 
query I rowsort label-6259
SELECT DISTINCT + col0 DIV + col1 AS col0 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT + col0 / + col1 AS col0 FROM tab1
----
1
17
3

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col2 * - 19 * + + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 3 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6262
SELECT ALL - - 46 DIV + 87 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6262
SELECT ALL - - 46 / + 87 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT + 20 AS col1, - col1 * + - col2 AS col2 FROM tab2 AS cor0
----
20
1173
20
3080
20
3886

query I rowsort
SELECT + 55 FROM tab2 WHERE NOT NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6265
SELECT ALL col2 * - 0 DIV + ( 71 ) FROM tab2 WHERE NOT + - col1 IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6265
SELECT ALL col2 * - 0 / + ( 71 ) FROM tab2 WHERE NOT + - col1 IS NULL
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6266
SELECT DISTINCT - col1 DIV + + col2 + + 46 + + 67 - - ( 81 ) col1 FROM tab0 AS cor0
----
192
193
194

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6266
SELECT DISTINCT - col1 / + + col2 + + 46 + + 67 - - ( 81 ) col1 FROM tab0 AS cor0
----
192
193
194

query II rowsort
SELECT + 9 AS col1, col0 FROM tab2 AS cor0
----
9
46
9
64
9
75

query II rowsort
SELECT DISTINCT + 55 AS col0, + 16 FROM tab0 AS cor0
----
55
16

query I rowsort
SELECT ALL - - col2 * + + 34 * + 97 + - col2 + col2 FROM tab2 AS cor0
----
131920
191284
75854

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col1 + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT DISTINCT - COUNT( * ) + - - ( - - SUM( col2 ) ) FROM tab1 cor0
----
220

skipif mysql # not compatible
query I rowsort label-6271
SELECT DISTINCT - COUNT ( * ) + - - ( - - SUM ( col2 ) ) FROM tab1 cor0
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-6272
SELECT ALL - SUM( ALL - ( - - col0 ) ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-6272
SELECT ALL - SUM ( ALL - ( - - col0 ) ) AS col2 FROM tab0 AS cor0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 16 col2 FROM tab1
----
35
69
75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6274
SELECT ALL * FROM tab0 WHERE NOT ( NOT ( NULL ) NOT BETWEEN - - col1 * 25 + - + ( col1 ) * + - col2 / + col0 AND CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-6274
SELECT ALL * FROM tab0 WHERE NOT ( NOT ( NULL ) NOT BETWEEN - - col1 * 25 + - + ( col1 ) * + - col2 / + col0 AND CAST ( NULL AS REAL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6275
SELECT ALL col0 * - col1 * - + 2 + + CAST( - - col2 AS SIGNED ) AS col2 FROM tab0
----
2477
293
3664

skipif mysql # not compatible
query I rowsort label-6275
SELECT ALL col0 * - col1 * - + 2 + + CAST ( - - col2 AS INTEGER ) AS col2 FROM tab0
----
2477
293
3664

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT ALL + COUNT( * ) FROM tab0, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6276
SELECT ALL + COUNT ( * ) FROM tab0, tab1 cor0
----
9

query III rowsort
SELECT * FROM tab2 WHERE + col2 <> - 50
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 + - - col0 - - col0 FROM tab2
----
41
51
83

query I rowsort
SELECT - col2 + col0 + + ( col0 ) * + - col0 FROM tab0
----
-257
-7492
-9411

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT ( - 42 + - - 52 + + ( + - 36 ) IS NULL ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + + 38 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6282
SELECT DISTINCT - col0 * + - col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT - col0 * + - col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 46 * col0 + col2 FROM tab2 AS cor0
----
2139
2984
3508

query I rowsort
SELECT + col1 + + col2 AS col1 FROM tab1 WHERE NULL < col0
----

query I rowsort
SELECT - 62 - + + 13 FROM tab1
----
-75
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6286
SELECT ALL + 95 / - - CAST( NULL AS SIGNED ) - + col1 * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6286
SELECT ALL + 95 / - - CAST ( NULL AS INTEGER ) - + col1 * col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 - - + col0 AS col1 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query II rowsort label-6288
SELECT + + 20 col1, COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
20
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6288
SELECT + + 20 col1, COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
20
9

query I rowsort
SELECT + 34 * - col0 * + 63 + - col2 AS col2 FROM tab0
----
-186364
-207873
-32177

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 WHERE NOT ( - + col2 ) <> ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 < - - col0
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 29 * col0 * - + ( - - col1 ) col1 FROM tab1 AS cor0
----
12325
124033
20706

query I rowsort
SELECT col2 * + + 98 * + + ( 74 ) AS col2 FROM tab2 AS cor0
----
166796
290080
420616

query I rowsort
SELECT - 36 FROM tab2 AS cor0 WHERE NOT ( - - 40 <> NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6295
SELECT ALL - + 28 AS col2, COUNT( * ) + 45 / CAST( NULL AS SIGNED ) * - ( 12 ) FROM tab1 AS cor0
----
-28
NULL

skipif mysql # not compatible
query II rowsort label-6295
SELECT ALL - + 28 AS col2, COUNT ( * ) + 45 / CAST ( NULL AS INTEGER ) * - ( 12 ) FROM tab1 AS cor0
----
-28
NULL

query II rowsort
SELECT ALL - 19 AS col0, col2 FROM tab1 AS cor0
----
-19
59
-19
68
-19
96

query I rowsort
SELECT + 99 * + col1 * + + col0 AS col1 FROM tab2
----
232254
487872
497475

query I rowsort
SELECT - col2 * + + 51 FROM tab0
----
-2397
-5049
-510

query I rowsort
SELECT ALL 32 * + 22 FROM tab0
----
704
704
704

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 IS NULL OR NOT NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( + 43 ) * - col0 AS col0 FROM tab0
----
-3741
-4171
-645

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE NOT + 72 - - col1 >= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1 + + - col2, - col2 col2 FROM tab2 AS cor0
----
28
-23
37
-40
9
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT DISTINCT - MIN( 60 ) * - 21 AS col2 FROM tab1 AS cor0
----
1260

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT - MIN ( 60 ) * - 21 AS col2 FROM tab1 AS cor0
----
1260

query I rowsort
SELECT ALL - col2 * ( - + col1 ) AS col1 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT ALL MIN( 73 ) AS col2 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL MIN ( 73 ) AS col2 FROM tab2
----
73

query I rowsort
SELECT DISTINCT - - 19 FROM tab2 cor0
----
19

query I rowsort
SELECT - ( 0 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6309
SELECT DISTINCT * FROM tab2 cor0 WHERE + 30 + - col0 * - col1 IN ( - 63 + + col0 + - + col2 - - - 94 + + - col1 + - + 23 - - + col1 * - - col1 * + ( CAST( - 57 AS SIGNED ) ) * + - 80, col2 )
----

skipif mysql # not compatible
query III rowsort label-6309
SELECT DISTINCT * FROM tab2 cor0 WHERE + 30 + - col0 * - col1 IN ( - 63 + + col0 + - + col2 - - - 94 + + - col1 + - + 23 - - + col1 * - - col1 * + ( CAST ( - 57 AS INTEGER ) ) * + - 80, col2 )
----

query I rowsort
SELECT ALL + ( - 7 ) * + col2 + - + col2 AS col1 FROM tab1
----
-472
-544
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6311
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE + col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6312
SELECT 65 DIV - COUNT( * ) AS col0 FROM tab2 WHERE + col2 + - - col2 IS NOT NULL
----
-21

skipif mysql # not compatible
query I rowsort label-6312
SELECT 65 / - COUNT ( * ) AS col0 FROM tab2 WHERE + col2 + - - col2 IS NOT NULL
----
-21

query I rowsort
SELECT ALL ( 3 ) * - - col0 + - + ( - 67 ) + + + col0 + - col1 * 89 * - col2 FROM tab0
----
19105
338950
9266

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT 21 - - ( + SUM( - + 17 ) ) AS col0 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-6314
SELECT 21 - - ( + SUM ( - + 17 ) ) AS col0 FROM tab1
----
-30

query I rowsort
SELECT ALL + 66 * - - col2 * col0 AS col2 FROM tab0 AS cor0
----
46530
57420
633798

onlyif mysql # aggregate syntax: 
query I rowsort label-6316
SELECT - COUNT( * ) + - - 27 AS col1 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-6316
SELECT - COUNT ( * ) + - - 27 AS col1 FROM tab0 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-6317
SELECT ALL COUNT( * ) + + ( - 52 ) * - 47, + COUNT( ALL col1 ) col0 FROM tab1 AS cor0
----
2447
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6317
SELECT ALL COUNT ( * ) + + ( - 52 ) * - 47, + COUNT ( ALL col1 ) col0 FROM tab1 AS cor0
----
2447
3

query I rowsort
SELECT DISTINCT ( + 89 ) + + + col2 + ( + col1 ) * + col1 FROM tab0
----
189
540
6697

query I rowsort
SELECT ALL + 57 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6320
SELECT DISTINCT col1 * - - col0 + CAST( ( - 10 ) AS SIGNED ) col1, + col2 FROM tab2
----
2336
23
4918
40
5015
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6320
SELECT DISTINCT col1 * - - col0 + CAST ( ( - 10 ) AS INTEGER ) col1, + col2 FROM tab2
----
2336
23
4918
40
5015
58

query I rowsort
SELECT DISTINCT col0 + 22 AS col2 FROM tab1 WHERE + col1 IS NOT NULL
----
107
113
73

query I rowsort
SELECT DISTINCT - 18 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-18

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 99 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT 90 * + + COUNT( * ) * + + COUNT( * ) AS col1 FROM tab2
----
810

skipif mysql # not compatible
query I rowsort label-6324
SELECT 90 * + + COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab2
----
810

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 / col1 IS NULL
----

query I rowsort
SELECT ALL - 73 AS col1 FROM tab2 cor0
----
-73
-73
-73

query I rowsort
SELECT col1 * + 57 AS col1 FROM tab2 AS cor0
----
2907
3819
4389

query I rowsort
SELECT - 54 AS col2 FROM tab1 cor0
----
-54
-54
-54

query II rowsort
SELECT - - 52 * col1 * col0, - col1 + - col2 AS col0 FROM tab2 cor0
----
121992
-74
256256
-117
261300
-125

query I rowsort
SELECT - 25 * col2 * - col2 FROM tab0 AS cor0
----
245025
2500
55225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6331
SELECT ALL - CAST( NULL AS SIGNED ) * - - 7 AS col0, + 21 AS col1 FROM tab2 AS cor0
----
NULL
21
NULL
21
NULL
21

skipif mysql # not compatible
query II rowsort label-6331
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 7 AS col0, + 21 AS col1 FROM tab2 AS cor0
----
NULL
21
NULL
21
NULL
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT DISTINCT - 91 * COUNT( * ) col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6332
SELECT DISTINCT - 91 * COUNT ( * ) col2 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - col0 ) col2 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + - - col2 * - 45 NOT BETWEEN NULL AND - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6335
SELECT ALL col0, - CAST( - col1 AS SIGNED ) FROM tab1
----
51
14
85
5
91
47

skipif mysql # not compatible
query II rowsort label-6335
SELECT ALL col0, - CAST ( - col1 AS INTEGER ) FROM tab1
----
51
14
85
5
91
47

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( + + col2 ) + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( NOT ( col2 NOT BETWEEN + - ( + col2 ) - col0 AND + - col2 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 5 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * ( 71 ) + - 36 * col2 FROM tab1 WHERE NULL NOT IN ( 12 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - ( ( + 54 ) ) * col1 ) <= ( NULL )
----

query I rowsort
SELECT ALL - col0 + col2 * + 83 FROM tab0
----
3886
743
8120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 69 col2 FROM tab2 WHERE NOT - 82 <> ( NULL )
----

query I rowsort
SELECT + 48 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col1 ) * + col1 col0 FROM tab0
----
1
441
6561

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT NULL >= col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( 27 ) + col0 > - 83 * 85
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 11 * ( - col2 ) AS col2 FROM tab2
----
-253
-440
-638

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 76 * + col2 col1 FROM tab1
----
4484
5168
7296

query I rowsort
SELECT DISTINCT col0 * - col0 + 76 FROM tab1
----
-2525
-7149
-8205

query I rowsort
SELECT DISTINCT col2 - col2 * - col1 FROM tab0
----
198
220
3854

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + - 28 >= NULL
----

query I rowsort
SELECT - 12 * - col1 FROM tab0
----
12
252
972

query I rowsort
SELECT - col1 - - ( - col1 ) * - col1 AS col1 FROM tab1
----
182
20
2162

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT ALL 22 * MIN( + col2 ) + - 52 AS col0 FROM tab2
----
454

skipif mysql # not compatible
query I rowsort label-6354
SELECT ALL 22 * MIN ( + col2 ) + - 52 AS col0 FROM tab2
----
454

onlyif mysql # aggregate syntax: 
query I rowsort label-6355
SELECT 8 - COUNT( * ) FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-6355
SELECT 8 - COUNT ( * ) FROM tab0
----
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 66 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6357
SELECT 71 - + col0 * + ( 11 * - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6357
SELECT 71 - + col0 * + ( 11 * - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 WHERE NOT ( NULL ) NOT IN ( - CAST ( col1 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6358
SELECT DISTINCT CAST( NULL AS SIGNED ) / AVG ( ALL col2 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6358
SELECT DISTINCT CAST ( NULL AS INTEGER ) / AVG ( ALL col2 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6359
SELECT ALL + MIN( + col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6359
SELECT ALL + MIN ( + col0 ) AS col1 FROM tab1
----
51

query I rowsort
SELECT + 87 - - col0 * col2 AS col2 FROM tab0 AS cor0
----
792
957
9690

onlyif mysql # DIV for integer division: 
query I rowsort label-6361
SELECT - col0 DIV col0 AS col0 FROM tab2 cor0 WHERE NOT 17 + - col2 IS NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6361
SELECT - col0 / col0 AS col0 FROM tab2 cor0 WHERE NOT 17 + - col2 IS NULL
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-6362
SELECT 3 DIV 82 col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6362
SELECT 3 / 82 col2 FROM tab1 AS cor0
----
0
0
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE 66 IS NULL
----

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT ( 15 + - col1 ) <= ( NULL )
----

query I rowsort
SELECT DISTINCT col1 * 99 FROM tab2 AS cor0
----
5049
6633
7623

onlyif mysql # DIV for integer division: 
query I rowsort label-6366
SELECT ALL + - col2 DIV - 43 FROM tab1 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL + - col2 / - 43 FROM tab1 cor0
----
1
1
2

query I rowsort
SELECT DISTINCT 42 AS col2 FROM tab1 AS cor0 WHERE NOT col2 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6368
SELECT DISTINCT + MIN( - col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6368
SELECT DISTINCT + MIN ( - col2 ) FROM tab1 cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6369
SELECT + 94 * - MAX( - col0 + ( - 39 ) ) FROM tab1 AS cor0
----
8460

skipif mysql # not compatible
query I rowsort label-6369
SELECT + 94 * - MAX ( - col0 + ( - 39 ) ) FROM tab1 AS cor0
----
8460

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT + ( COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN 73 AND - 79 - + col0
----
0

skipif mysql # not compatible
query I rowsort label-6371
SELECT + ( COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN 73 AND - 79 - + col0
----
0

query I rowsort
SELECT + col1 * - 70 FROM tab2 cor0
----
-3570
-4690
-5390

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( + col1 ) AND - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 col0 FROM tab2
----
68
68
68

query III rowsort
SELECT * FROM tab1 WHERE NOT 90 IS NOT NULL
----

query I rowsort
SELECT ALL col0 * + - col0 AS col1 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # DIV for integer division: 
query I rowsort label-6378
SELECT - 1 * - - col1 DIV + 35 col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6378
SELECT - 1 * - - col1 / + 35 col0 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT ALL + ( + + 11 ) AS col1 FROM tab0
----
11
11
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6380
SELECT DISTINCT + 10 + + COUNT( * ) FROM tab0 WHERE NOT NULL = CAST( NULL AS SIGNED )
----
10

skipif mysql # not compatible
query I rowsort label-6380
SELECT DISTINCT + 10 + + COUNT ( * ) FROM tab0 WHERE NOT NULL = CAST ( NULL AS INTEGER )
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6381
SELECT DISTINCT CAST( + 94 AS SIGNED ) FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-6381
SELECT DISTINCT CAST ( + 94 AS INTEGER ) FROM tab2
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6382
SELECT + CAST( 34 AS SIGNED ) AS col0 FROM tab0 WHERE NOT + col2 * - col2 <> 76
----

skipif mysql # not compatible
query I rowsort label-6382
SELECT + CAST ( 34 AS INTEGER ) AS col0 FROM tab0 WHERE NOT + col2 * - col2 <> 76
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 - col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6384
SELECT + col1 DIV 26 AS col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-6384
SELECT + col1 / 26 AS col2 FROM tab0
----
0
0
3

query I rowsort
SELECT col1 + 22 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) <> ( + 41 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6386
SELECT DISTINCT - 67 + 56 DIV + col0 FROM tab2 AS cor0
----
-66
-67

skipif mysql # not compatible
query I rowsort label-6386
SELECT DISTINCT - 67 + 56 / + col0 FROM tab2 AS cor0
----
-66
-67

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6387
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 36 AND + 99 * + col1 + CAST( NULL AS DECIMAL ) * 83
----

skipif mysql # not compatible
query III rowsort label-6387
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 36 AND + 99 * + col1 + CAST ( NULL AS REAL ) * 83
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 30 IN ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col0 * - col0 * 6 col2 FROM tab1
----
-15620
-43355
-49733

query I rowsort
SELECT col0 * - col1 + - 3 FROM tab0
----
-100
-1218
-1830

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6391
SELECT DISTINCT 35 * + CAST( + 79 AS SIGNED ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
2765

skipif mysql # not compatible
query I rowsort label-6391
SELECT DISTINCT 35 * + CAST ( + 79 AS INTEGER ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
2765

query I rowsort
SELECT ALL + + 45 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

query I rowsort
SELECT DISTINCT + + 18 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6394
SELECT + COUNT( * ) DIV + 74 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6394
SELECT + COUNT ( * ) / + 74 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6395
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6395
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL NOT IN ( - 81 + 23 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 col1 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT ALL 66 * - 92 AS col1 FROM tab0 AS cor0
----
-6072
-6072
-6072

onlyif mysql # DIV for integer division: 
query II rowsort label-6399
SELECT col1 DIV - + col1 AS col2, - 93 * + col2 AS col2 FROM tab0
----
-1
-4371
-1
-9207
-1
-930

skipif mysql # not compatible
query II rowsort label-6399
SELECT col1 / - + col1 AS col2, - 93 * + col2 AS col2 FROM tab0
----
-1
-4371
-1
-9207
-1
-930

onlyif mysql # aggregate syntax: 
query I rowsort label-6400
SELECT ALL MAX( DISTINCT - 80 ) + + COUNT( * ) AS col0 FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-6400
SELECT ALL MAX ( DISTINCT - 80 ) + + COUNT ( * ) AS col0 FROM tab0
----
-77

query I rowsort
SELECT ALL - ( + col0 ) FROM tab0 WHERE NOT + col1 IS NOT NULL AND NOT ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL AND NOT - - col2 BETWEEN 30 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6403
SELECT DISTINCT - col1 * - col2 - - - CAST( - col0 AS SIGNED ) - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6403
SELECT DISTINCT - col1 * - col2 - - - CAST ( - col0 AS INTEGER ) - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6404
SELECT * FROM tab1 WHERE ( - CAST( NULL AS SIGNED ) ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-6404
SELECT * FROM tab1 WHERE ( - CAST ( NULL AS INTEGER ) ) <> NULL
----

query I rowsort
SELECT ALL col1 * 39 * - + 81 FROM tab0
----
-255879
-3159
-66339

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6406
SELECT COUNT( * ) / ( CAST( NULL AS SIGNED ) ) * + CAST( NULL AS SIGNED ) * MAX( ALL + 38 * - col0 ) + - 31 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6406
SELECT COUNT ( * ) / ( CAST ( NULL AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) * MAX ( ALL + 38 * - col0 ) + - 31 FROM tab2 cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 38 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # DIV for integer division: 
query I rowsort label-6408
SELECT 41 DIV - col1 AS col0 FROM tab0
----
-1
-41
0

skipif mysql # not compatible
query I rowsort label-6408
SELECT 41 / - col1 AS col0 FROM tab0
----
-1
-41
0

query I rowsort
SELECT DISTINCT - ( - 3 ) FROM tab0
----
3

query II rowsort
SELECT DISTINCT col0, 14 AS col2 FROM tab0
----
15
14
87
14
97
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6411
SELECT 30 / - col1 + - 27 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6411
SELECT 30 / - col1 + - 27 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - CAST ( + col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT - MAX( 25 ) AS col2 FROM tab0 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-6412
SELECT - MAX ( 25 ) AS col2 FROM tab0 cor0
----
-25

query I rowsort
SELECT + ( ( - + col1 ) ) * col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-6414
SELECT ALL + col2 DIV + - col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL + col2 / + - col1 FROM tab0 AS cor0
----
-99
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * - + 48 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 NOT IN ( 53 * - - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - col1 col0 FROM tab0 cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6418
SELECT ALL COUNT( * ) * + COUNT( * ) FROM tab2, tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL COUNT ( * ) * + COUNT ( * ) FROM tab2, tab1 AS cor0
----
81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - ( col1 ) * - - col2 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6420
SELECT + 3 + + COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-6420
SELECT + 3 + + COUNT ( * ) AS col0 FROM tab1
----
6

query II rowsort
SELECT ALL - col0 AS col2, - 69 FROM tab0
----
-15
-69
-87
-69
-97
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6422
SELECT 15 + - - SUM( DISTINCT + col0 ) FROM tab1
----
242

skipif mysql # not compatible
query I rowsort label-6422
SELECT 15 + - - SUM ( DISTINCT + col0 ) FROM tab1
----
242

onlyif mysql # aggregate syntax: 
query I rowsort label-6423
SELECT - COUNT( * ) + + + COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6423
SELECT - COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab0
----
0

query I rowsort
SELECT - col1 - + - 47 + - col0 / + + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6425
SELECT DISTINCT + + SUM( ALL - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT + + SUM ( ALL - col0 ) FROM tab2 AS cor0
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + - col0 + + col0 col1 FROM tab1
----
4368
510
765

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 76 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6428
SELECT ALL + - CAST( NULL AS DECIMAL ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL + - CAST ( NULL AS REAL ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL col2 * + + ( + col0 ) AS col2 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6430
SELECT ALL - CAST( NULL AS SIGNED ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6430
SELECT ALL - CAST ( NULL AS INTEGER ) col0 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < col1 * + - 72
----

query II rowsort
SELECT + col0 + col0 AS col0, + col0 + + 68 AS col2 FROM tab1 AS cor0
----
102
119
170
153
182
159

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT + 7 * - + COUNT( * ) + - - COUNT( * ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-6433
SELECT + 7 * - + COUNT ( * ) + - - COUNT ( * ) FROM tab0 AS cor0
----
-18

query I rowsort
SELECT + + col2 * + + col2 + 53 + + + col2 + - - col2 * + - col2 FROM tab1 AS cor0
----
112
121
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6435
SELECT ALL + + CAST( - - 11 AS SIGNED ) + - 96 AS col1 FROM tab1 cor0
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL + + CAST ( - - 11 AS INTEGER ) + - 96 AS col1 FROM tab1 cor0
----
-85
-85
-85

query I rowsort
SELECT 78 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6437
SELECT ALL COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6437
SELECT ALL COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL col1 + - - col0 + - col0 AS col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6439
SELECT + 9 + COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-6439
SELECT + 9 + COUNT ( * ) FROM tab1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-6440
SELECT DISTINCT col2 - - 42 DIV 56 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-6440
SELECT DISTINCT col2 - - 42 / 56 FROM tab1
----
59
68
96

query II rowsort
SELECT 43 AS col0, col2 + - col1 AS col2 FROM tab1
----
43
21
43
54
43
82

query I rowsort
SELECT ALL 55 - + col2 FROM tab0
----
-44
45
8

query I rowsort
SELECT DISTINCT col1 * + 32 * - + col1 FROM tab2
----
-143648
-189728
-83232

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT ALL - 44 * + ( - COUNT( - col1 ) ) AS col1 FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL - 44 * + ( - COUNT ( - col1 ) ) AS col1 FROM tab1 AS cor0
----
132

query II rowsort
SELECT DISTINCT col2, - col1 FROM tab2 cor0
----
23
-51
40
-77
58
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 99 ) col2 FROM tab0 AS cor0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT COUNT( * ) + + ( COUNT( * ) ) FROM tab0 cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-6447
SELECT COUNT ( * ) + + ( COUNT ( * ) ) FROM tab0 cor0 WHERE NOT NULL > NULL
----
0

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6449
SELECT 10 DIV 6 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6449
SELECT 10 / 6 AS col2 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6450
SELECT - col1 * CAST( NULL AS SIGNED ) AS col1, 86 col2 FROM tab0
----
NULL
86
NULL
86
NULL
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6450
SELECT - col1 * CAST ( NULL AS INTEGER ) AS col1, 86 col2 FROM tab0
----
NULL
86
NULL
86
NULL
86

query I rowsort
SELECT + col0 * - + col1 AS col2 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6452
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) + 0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6452
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) + 0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL - 1 AS col2 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT ALL + + 24 + COUNT( * ) AS col1 FROM tab0 cor0
----
27

skipif mysql # not compatible
query I rowsort label-6454
SELECT ALL + + 24 + COUNT ( * ) AS col1 FROM tab0 cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT DISTINCT MAX( ALL col2 ) col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6455
SELECT DISTINCT MAX ( ALL col2 ) col1 FROM tab2 AS cor0
----
58

query I rowsort
SELECT ALL + + col0 + 53 FROM tab2 AS cor0
----
117
128
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 * col1 + col0 col0 FROM tab2 AS cor0
----
-4748
-6223
-7174

query I rowsort
SELECT + 13 * - - col0 * + - col1 FROM tab1
----
-5525
-55601
-9282

query I rowsort
SELECT DISTINCT col1 * + - 93 FROM tab0
----
-1953
-7533
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-6460
SELECT ALL + col0 DIV + 67 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6460
SELECT ALL + col0 / + 67 AS col2 FROM tab2
----
0
0
1

query I rowsort
SELECT DISTINCT - col0 * + 13 AS col1 FROM tab0
----
-1131
-1261
-195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6462
SELECT 35 DIV - + COUNT( * ) FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-6462
SELECT 35 / - + COUNT ( * ) FROM tab0
----
-11

query III rowsort
SELECT * FROM tab0 WHERE - - col0 + - + 19 + col1 * 32 - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 + + - 35 FROM tab0 AS cor0 WHERE NOT 23 IS NULL
----
-25
12
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 col2 FROM tab2 AS cor0
----
62

query I rowsort
SELECT + ( + col0 ) + + - col0 + - col2 + + ( - - 78 ) * - + ( - col0 ) AS col0 FROM tab2 AS cor0
----
3565
4952
5792

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT 8 + + + MIN( ALL ( col1 ) ) AS col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6467
SELECT 8 + + + MIN ( ALL ( col1 ) ) AS col0 FROM tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 col1, 79 FROM tab0 AS cor0
----
1
79
21
79
81
79

onlyif mysql # aggregate syntax: 
query II rowsort label-6469
SELECT ALL + + MIN( DISTINCT - - 14 ) AS col1, - SUM( DISTINCT 74 ) col0 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6469
SELECT ALL + + MIN ( DISTINCT - - 14 ) AS col1, - SUM ( DISTINCT 74 ) col0 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----
NULL
NULL

query I rowsort
SELECT col1 * - ( - 54 ) - + 39 AS col1 FROM tab0 AS cor0
----
1095
15
4335

onlyif mysql # aggregate syntax: 
query I rowsort label-6471
SELECT DISTINCT + + 90 + COUNT( * ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-6471
SELECT DISTINCT + + 90 + COUNT ( * ) FROM tab2 AS cor0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-6472
SELECT + - 23 DIV + 24 - + - 57 + - col1 * - col0 AS col0 FROM tab0 AS cor0
----
1272
154
1884

skipif mysql # not compatible
query I rowsort label-6472
SELECT + - 23 / + 24 - + - 57 + - col1 * - col0 AS col0 FROM tab0 AS cor0
----
1272
154
1884

onlyif mysql # aggregate syntax: 
query II rowsort label-6473
SELECT ALL - + 10, COUNT( ALL - col0 ) col2 FROM tab1 AS cor0
----
-10
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6473
SELECT ALL - + 10, COUNT ( ALL - col0 ) col2 FROM tab1 AS cor0
----
-10
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( NOT NULL NOT BETWEEN NULL AND - - col0 * + col2 * + 0 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6475
SELECT ALL + 8 * - 82, - 53 + + - COUNT( * ) AS col1 FROM tab2
----
-656
-56

skipif mysql # not compatible
query II rowsort label-6475
SELECT ALL + 8 * - 82, - 53 + + - COUNT ( * ) AS col1 FROM tab2
----
-656
-56

query III rowsort
SELECT ALL * FROM tab0 WHERE + 71 NOT IN ( - 76 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 26 * + 45, - 58 + + 80 AS col0 FROM tab1
----
1170
22
1170
22
1170
22

query I rowsort
SELECT col2 * - - col2 AS col1 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-6479
SELECT - 76 * - COUNT( DISTINCT 89 ) * SUM( ALL + col0 ) FROM tab0 AS cor0
----
15124

skipif mysql # not compatible
query I rowsort label-6479
SELECT - 76 * - COUNT ( DISTINCT 89 ) * SUM ( ALL + col0 ) FROM tab0 AS cor0
----
15124

onlyif mysql # DIV for integer division: 
query I rowsort label-6480
SELECT DISTINCT + 65 DIV + col0 FROM tab0
----
0
4

skipif mysql # not compatible
query I rowsort label-6480
SELECT DISTINCT + 65 / + col0 FROM tab0
----
0
4

query I rowsort
SELECT DISTINCT 71 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
71

query I rowsort
SELECT ALL col0 + + - col1 * - 38 FROM tab0 AS cor0
----
135
3093
885

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 col0 FROM tab2 cor0
----
16
16
16

query I rowsort
SELECT + 55 AS col0 FROM tab1 cor0
----
55
55
55

query II rowsort
SELECT ALL + - col0 + - 9 * + + 51 AS col0, col2 * 30 AS col0 FROM tab1 AS cor0
----
-510
2880
-544
1770
-550
2040

query II rowsort
SELECT ALL col1 + + col0 AS col2, - col1 AS col2 FROM tab2
----
141
-77
142
-67
97
-51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6487
SELECT DISTINCT CAST( - ( - col2 ) AS SIGNED ) + - col0 * col0 AS col1, - col0 FROM tab1
----
-2505
-51
-7166
-85
-8213
-91

skipif mysql # not compatible
query II rowsort label-6487
SELECT DISTINCT CAST ( - ( - col2 ) AS INTEGER ) + - col0 * col0 AS col1, - col0 FROM tab1
----
-2505
-51
-7166
-85
-8213
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * 70 col0 FROM tab1 WHERE + col1 IS NULL
----

query I rowsort
SELECT 48 * - col2 + - col2 FROM tab2
----
-1127
-1960
-2842

onlyif mysql # DIV for integer division: 
query I rowsort label-6490
SELECT - col1 DIV - 71 + + - col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6490
SELECT - col1 / - 71 + + - col0 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 44 + + 45 / - - 40 IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * - col1 + ( + - 53 ) FROM tab2 WHERE NOT ( + + col2 ) IS NULL
----
2548
4436
5876

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT + 23 + COUNT( DISTINCT col2 ) * - 8 AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-6493
SELECT + 23 + COUNT ( DISTINCT col2 ) * - 8 AS col2 FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6494
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( CAST( + + ( + ( - col2 ) ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6494
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( CAST ( + + ( + ( - col2 ) ) AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL = col0 * - col0
----

query I rowsort
SELECT ALL + 71 + + col2 FROM tab1 AS cor0
----
130
139
167

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE + 61 < 36
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6498
SELECT DISTINCT + COUNT( * ) DIV - 88 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-6498
SELECT DISTINCT + COUNT ( * ) / - 88 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6499
SELECT + COUNT( * ) col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6499
SELECT + COUNT ( * ) col0 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT ALL 87 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT DISTINCT MAX( + - 86 ) AS col1 FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-6501
SELECT DISTINCT MAX ( + - 86 ) AS col1 FROM tab0
----
-86

query I rowsort
SELECT ALL - 13 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN - col1 + + 99 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6504
SELECT SUM( - col0 ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE + col2 + - 13 * - col1 >= - - 37 + + col2 / + ( + ( - col2 ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6504
SELECT SUM ( - col0 ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE + col2 + - 13 * - col1 >= - - 37 + + col2 / + ( + ( - col2 ) )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6505
SELECT ALL CAST( - ( + COUNT( * ) ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6505
SELECT ALL CAST ( - ( + COUNT ( * ) ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col0 col2, + 28 * - + ( - - 16 ) FROM tab0 cor0
----
15
-448
87
-448
97
-448

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6507
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / - col1 * + + CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-6507
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / - col1 * + + CAST ( NULL AS INTEGER ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6508
SELECT DISTINCT - MAX( DISTINCT - col0 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-6508
SELECT DISTINCT - MAX ( DISTINCT - col0 ) FROM tab2 cor0
----
46

query I rowsort
SELECT DISTINCT + ( + + 14 ) AS col1 FROM tab0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6510
SELECT + col2, - CAST( NULL AS SIGNED ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-6510
SELECT + col2, - CAST ( NULL AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 90 col1, col1 FROM tab1
----
90
14
90
47
90
5

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 NOT IN ( - 77 * + col2 + + - 70, 79 )
----

query I rowsort
SELECT 62 + col2 * + col0 AS col2 FROM tab0 WHERE NOT - 84 + + + col2 * ( col1 ) IS NULL
----
767
932
9665

onlyif mysql # aggregate syntax: 
query I rowsort label-6514
SELECT + COUNT( DISTINCT - 41 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6514
SELECT + COUNT ( DISTINCT - 41 ) FROM tab0
----
1

query II rowsort
SELECT ALL + col1 AS col0, + col1 AS col1 FROM tab1
----
14
14
47
47
5
5

query II rowsort
SELECT DISTINCT + 31 AS col0, - 24 + - - col0 FROM tab0
----
31
-9
31
63
31
73

query II rowsort
SELECT + col0 AS col0, col2 FROM tab1
----
51
96
85
59
91
68

query I rowsort
SELECT ALL + + col1 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
51
67
77

query II rowsort
SELECT DISTINCT 29 AS col1, + col1 * - col1 AS col2 FROM tab2 AS cor0
----
29
-2601
29
-4489
29
-5929

query II rowsort
SELECT 1, col2 AS col2 FROM tab0 cor0 WHERE NOT col0 NOT BETWEEN - 55 AND + ( + col0 )
----
1
10
1
47
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT - SUM( ALL - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 * - 79 - - col2 < - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6521
SELECT - SUM ( ALL - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 * - 79 - - col2 < - col2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + col1 <> NULL
----

query I rowsort
SELECT 68 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 63 + - col0 AND + col1
----

query I rowsort
SELECT DISTINCT + 37 * - 36 * - col2 * - col1 FROM tab0
----
-131868
-279720
-5070924

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6525
SELECT + 1 DIV + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6525
SELECT + 1 / + COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 19 * - 68 + col1 FROM tab0 cor0
----
1293
1313
1373

query I rowsort
SELECT - + 11 + 50 FROM tab1 AS cor0 WHERE NULL <> + ( col0 ) * - col0 - - col0
----

query I rowsort
SELECT DISTINCT + col2 * - col0 * col1 * 87 AS col2 FROM tab1 AS cor0
----
-2181525
-25302732
-5963328

query I rowsort
SELECT DISTINCT + - col1 FROM tab0 AS cor0 WHERE + 54 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6530
SELECT 99 FROM tab2 AS cor0 WHERE 80 NOT BETWEEN + CAST( NULL AS SIGNED ) AND + + CAST( + 23 AS SIGNED )
----
99
99
99

skipif mysql # not compatible
query I rowsort label-6530
SELECT 99 FROM tab2 AS cor0 WHERE 80 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND + + CAST ( + 23 AS INTEGER )
----
99
99
99

query I rowsort
SELECT ALL - col1 * - + 70 + + col0 FROM tab0
----
1557
167
5685

query II rowsort
SELECT + col0, - 74 + + + col0 FROM tab0
----
15
-59
87
13
97
23

query II rowsort
SELECT DISTINCT + col2, - 65 FROM tab1
----
59
-65
68
-65
96
-65

query II rowsort
SELECT + 8, 26 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT 27 AS col2, + col1 * 1 AS col1 FROM tab0
----
27
1
27
21
27
81

query I rowsort
SELECT ALL 21 * + col0 - col1 AS col0 FROM tab0
----
1806
2036
234

onlyif mysql # aggregate syntax: 
query I rowsort label-6537
SELECT ALL - 12 + COUNT( * ) AS col1 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6537
SELECT ALL - 12 + COUNT ( * ) AS col1 FROM tab1 cor0
----
-9

query I rowsort
SELECT + 39 + 12 * col1 * col2 FROM tab0 cor0
----
1227
2559
45723

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 45 * - 44 IS NULL
----

query I rowsort
SELECT DISTINCT + 3 - + col2 FROM tab0
----
-44
-7
-96

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT 72 * - col0 NOT BETWEEN NULL AND + 26
----

query I rowsort
SELECT DISTINCT col1 * ( - - col0 ) FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = - col2 * col2
----

query II rowsort
SELECT - + col0 * - col0 + - col1 - + col2 AS col0, + col2 + + 31 FROM tab2 AS cor0
----
2042
54
3979
71
5500
89

query I rowsort
SELECT - col0 * - 95 + - col1 FROM tab1 AS cor0
----
4831
8070
8598

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT 92 IS NULL
----
23
40
58

query I rowsort
SELECT - 74 * - 37 FROM tab1 AS cor0
----
2738
2738
2738

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6548
SELECT col2 * + 31 / - + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6548
SELECT col2 * + 31 / - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT + + COUNT( * ) col1 FROM tab0 WHERE NOT + col1 + + col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6549
SELECT + + COUNT ( * ) col1 FROM tab0 WHERE NOT + col1 + + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT DISTINCT SUM( + 11 ) AS col2 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-6550
SELECT DISTINCT SUM ( + 11 ) AS col2 FROM tab1
----
33

query I rowsort
SELECT DISTINCT + ( 10 ) AS col0 FROM tab0 WHERE 79 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT DISTINCT - MAX( - + 72 ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-6552
SELECT DISTINCT - MAX ( - + 72 ) FROM tab2
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, + 79 FROM tab1 AS cor0
----
14
79
47
79
5
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6554
SELECT + SUM( + col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-6554
SELECT + SUM ( + col2 ) FROM tab2 cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT + SUM( + 48 ) FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-6555
SELECT + SUM ( + 48 ) FROM tab1 AS cor0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT ALL MIN( ALL + 16 ) FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-6556
SELECT ALL MIN ( ALL + 16 ) FROM tab0 AS cor0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6557
SELECT * FROM tab1 AS cor0 WHERE NOT - 89 <= + col0 AND col0 * col1 = - - col0 + CAST( + 58 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6557
SELECT * FROM tab1 AS cor0 WHERE NOT - 89 <= + col0 AND col0 * col1 = - - col0 + CAST ( + 58 AS INTEGER )
----

query I rowsort
SELECT col1 * - col0 * + col2 AS col2 FROM tab0
----
-18270
-57105
-9603

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN + col0 AND + + col2
----

query I rowsort
SELECT ALL + col0 * + 28 FROM tab0
----
2436
2716
420

onlyif mysql # aggregate syntax: 
query I rowsort label-6561
SELECT + MAX( DISTINCT + 59 ) * - + 59 FROM tab0 cor0
----
-3481

skipif mysql # not compatible
query I rowsort label-6561
SELECT + MAX ( DISTINCT + 59 ) * - + 59 FROM tab0 cor0
----
-3481

query II rowsort
SELECT + 28, - 83 AS col1 FROM tab0 AS cor0
----
28
-83
28
-83
28
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-6563
SELECT - col2 DIV - col1 + col1 FROM tab0 AS cor0
----
100
21
81

skipif mysql # not compatible
query I rowsort label-6563
SELECT - col2 / - col1 + col1 FROM tab0 AS cor0
----
100
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT + MAX( DISTINCT col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-6564
SELECT + MAX ( DISTINCT col1 ) FROM tab1 cor0
----
47

query II rowsort
SELECT ALL + col0 AS col1, 22 + 44 + 60 FROM tab1 AS cor0
----
51
126
85
126
91
126

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = - 86
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6567
SELECT - + 70 + - col1 DIV + - CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-6567
SELECT - + 70 + - col1 / + - CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-69
-69
-69

query I rowsort
SELECT + - col0 + - - col0 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6569
SELECT * FROM tab0 AS cor0 WHERE + CAST( 36 AS SIGNED ) * col2 + - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6569
SELECT * FROM tab0 AS cor0 WHERE + CAST ( 36 AS INTEGER ) * col2 + - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 IN ( - ( col2 ) )
----

query I rowsort
SELECT DISTINCT - col2 + col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6572
SELECT DISTINCT MAX( + - col0 ) + - COUNT( * ) + + ( COUNT( * ) ) / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6572
SELECT DISTINCT MAX ( + - col0 ) + - COUNT ( * ) + + ( COUNT ( * ) ) / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - 50 + + 98 - - col0 + col0 * + col0 AS col0 FROM tab0
----
288
7704
9554

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + - col1 + - col1 col0, col0 FROM tab1
----
-14
51
-47
91
-5
85

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 ) <> - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6576
SELECT - ( + col2 ) + - - CAST( - col1 AS SIGNED ) * - 56 * - CAST( NULL AS SIGNED ) * 25 * + col0 * + - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6576
SELECT - ( + col2 ) + - - CAST ( - col1 AS INTEGER ) * - 56 * - CAST ( NULL AS INTEGER ) * 25 * + col0 * + - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col2 * col2, - 30 AS col0 FROM tab1
----
-3481
-30
-4624
-30
-9216
-30

onlyif mysql # aggregate syntax: 
query II rowsort label-6578
SELECT + MAX( DISTINCT + col1 ) AS col2, 69 + + COUNT( * ) * + + 15 + - COUNT( * ) AS col2 FROM tab1
----
47
111

skipif mysql # not compatible
query II rowsort label-6578
SELECT + MAX ( DISTINCT + col1 ) AS col2, 69 + + COUNT ( * ) * + + 15 + - COUNT ( * ) AS col2 FROM tab1
----
47
111

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT ALL 22 - - MIN( ALL 3 ) AS col0 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-6579
SELECT ALL 22 - - MIN ( ALL 3 ) AS col0 FROM tab1 AS cor0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6580
SELECT DISTINCT - CAST( - col2 AS SIGNED ) + 17 FROM tab2 AS cor0
----
40
57
75

skipif mysql # not compatible
query I rowsort label-6580
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + 17 FROM tab2 AS cor0
----
40
57
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * col1 * + col0 col2 FROM tab2 AS cor0 WHERE ( NOT 46 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6582
SELECT ALL col1 + 43 + col0 * + CAST( NULL AS SIGNED ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6582
SELECT ALL col1 + 43 + col0 * + CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 30 col0 FROM tab1 AS cor0
----
30
30
30

query II rowsort
SELECT DISTINCT + 62 + - - 82, 95 * - - col0 * - - 75 AS col2 FROM tab0 cor0
----
144
106875
144
619875
144
691125

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query II rowsort
SELECT 24 AS col1, col2 FROM tab2
----
24
23
24
40
24
58

query II rowsort
SELECT col1 AS col1, + col2 + 74 + + col1 AS col2 FROM tab1
----
14
184
47
189
5
138

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6588
SELECT ALL + COUNT( DISTINCT CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) ) * 13 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6588
SELECT ALL + COUNT ( DISTINCT CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) ) * 13 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + col2 IS NULL
----

query I rowsort
SELECT ALL col0 * + 63 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2898
4032
4725

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * - 89 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6592
SELECT - col2 * - - CAST( 39 AS SIGNED ) AS col2, - col1 AS col2, - col0 FROM tab0 AS cor0
----
9 values hashing to 39cdc3c6203477a018c455449a219085

skipif mysql # not compatible
query III rowsort label-6592
SELECT - col2 * - - CAST ( 39 AS INTEGER ) AS col2, - col1 AS col2, - col0 FROM tab0 AS cor0
----
9 values hashing to 39cdc3c6203477a018c455449a219085

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6593
SELECT ALL + col2 AS col2, col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-6593
SELECT ALL + col2 AS col2, col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT SUM( ALL + + col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-6594
SELECT SUM ( ALL + + col2 ) FROM tab0
----
156

query I rowsort
SELECT DISTINCT col2 * + 42 FROM tab0
----
1974
4158
420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6596
SELECT - 55 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6596
SELECT - 55 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * ( - + 50 ) FROM tab2
----
-1150
-2000
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT MAX( ALL col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-6598
SELECT MAX ( ALL col2 ) AS col0 FROM tab0
----
99

query I rowsort
SELECT + 46 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6600
SELECT ALL col1 / + - col0 * CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6600
SELECT ALL col1 / + - col0 * CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 / col2 IS NULL
----

query I rowsort
SELECT + ( - - 97 ) FROM tab2 AS cor0
----
97
97
97

query II rowsort
SELECT DISTINCT 7 + + + col1 / 18 AS col1, col0 + + - col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6604
SELECT DISTINCT + + 25, COUNT( * ) AS col0 FROM tab2 cor0
----
25
3

skipif mysql # not compatible
query II rowsort label-6604
SELECT DISTINCT + + 25, COUNT ( * ) AS col0 FROM tab2 cor0
----
25
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6605
SELECT ALL + - col2 + - CAST( - + 94 AS SIGNED ) FROM tab1 AS cor0
----
-2
26
35

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL + - col2 + - CAST ( - + 94 AS INTEGER ) FROM tab1 AS cor0
----
-2
26
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6606
SELECT DISTINCT - 9 + - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
-4
38
5

skipif mysql # not compatible
query I rowsort label-6606
SELECT DISTINCT - 9 + - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
-4
38
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6607
SELECT ALL * FROM tab0 AS cor0 WHERE ( CAST( - col1 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6607
SELECT ALL * FROM tab0 AS cor0 WHERE ( CAST ( - col1 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6608
SELECT - MIN( - - col0 ) AS col2 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6608
SELECT - MIN ( - - col0 ) AS col2 FROM tab1 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6609
SELECT MAX( + - 4 ) FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-6609
SELECT MAX ( + - 4 ) FROM tab2 AS cor0
----
-4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6610
SELECT ALL + 52 * - - CAST( NULL AS SIGNED ) * + COUNT( - col1 ) + - + 5 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6610
SELECT ALL + 52 * - - CAST ( NULL AS INTEGER ) * + COUNT ( - col1 ) + - + 5 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 63 + + col0 FROM tab2
----
109
127
138

query I rowsort
SELECT - + ( - col1 ) AS col2 FROM tab0 WHERE - 74 BETWEEN 52 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6613
SELECT DISTINCT - 31 * + COUNT( * ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-6613
SELECT DISTINCT - 31 * + COUNT ( * ) FROM tab0
----
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-6614
SELECT ALL COUNT( * ) - + COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6614
SELECT ALL COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab0
----
0

query I rowsort
SELECT - col0 + 96 AS col2 FROM tab2 AS cor0
----
21
32
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT + COUNT( * ) + - 29 AS col0 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-6616
SELECT + COUNT ( * ) + - 29 AS col0 FROM tab0 AS cor0
----
-26

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 33 NOT BETWEEN ( col2 ) AND NULL
----

query I rowsort
SELECT DISTINCT 79 * + 82 FROM tab0
----
6478

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 / + ( col0 ) * + col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + col1 FROM tab1 WHERE - + 84 > - 18 * - col1 * col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 19 + - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL = - 60
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6623
SELECT - - 35 DIV - COUNT( * ) FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-6623
SELECT - - 35 / - COUNT ( * ) FROM tab1 AS cor0
----
-11

query I rowsort
SELECT ALL - + ( 42 ) * + col0 AS col1 FROM tab0 AS cor0
----
-3654
-4074
-630

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col0, col2, - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6626
SELECT + SUM( DISTINCT + CAST( 64 AS SIGNED ) ) FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-6626
SELECT + SUM ( DISTINCT + CAST ( 64 AS INTEGER ) ) FROM tab2 AS cor0
----
64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 20 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= - col0 + - 79
----

query I rowsort
SELECT ( - 75 ) FROM tab0 WHERE NOT col1 + - 45 BETWEEN col2 AND + - col1
----
-75
-75
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6630
SELECT DISTINCT - 4 DIV col1 FROM tab0
----
-4
0

skipif mysql # not compatible
query I rowsort label-6630
SELECT DISTINCT - 4 / col1 FROM tab0
----
-4
0

query II rowsort
SELECT DISTINCT + col2 AS col2, 89 AS col1 FROM tab1 WHERE + 98 <= - - col1 * + col0
----
59
89
68
89
96
89

query I rowsort
SELECT + col0 + + + 46 FROM tab0
----
133
143
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6633
SELECT DISTINCT + + MIN( + - col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6633
SELECT DISTINCT + + MIN ( + - col2 ) AS col0 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6634
SELECT - 92 + - SUM( - col0 ) FROM tab1 AS cor0
----
135

skipif mysql # not compatible
query I rowsort label-6634
SELECT - 92 + - SUM ( - col0 ) FROM tab1 AS cor0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT DISTINCT - SUM( DISTINCT + - 29 ) AS col2 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT - SUM ( DISTINCT + - 29 ) AS col2 FROM tab2 AS cor0
----
29

query II rowsort
SELECT ALL ( - 6 ) + - col0 AS col1, + col0 - + 40 * - col1 + + col0 AS col2 FROM tab1 cor0
----
-57
662
-91
370
-97
2062

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6637
SELECT - 37 * + - CAST( - 46 AS SIGNED ) FROM tab2
----
-1702
-1702
-1702

skipif mysql # not compatible
query I rowsort label-6637
SELECT - 37 * + - CAST ( - 46 AS INTEGER ) FROM tab2
----
-1702
-1702
-1702

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 21 IS NOT NULL
----

query I rowsort
SELECT + col0 * + col1 * 3 FROM tab0
----
291
3645
5481

query I rowsort
SELECT + 22 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # aggregate syntax: 
query II rowsort label-6641
SELECT MIN( ALL - col2 ) AS col2, COUNT( * ) AS col1 FROM tab1
----
-96
3

skipif mysql # not compatible
query II rowsort label-6641
SELECT MIN ( ALL - col2 ) AS col2, COUNT ( * ) AS col1 FROM tab1
----
-96
3

query I rowsort
SELECT + + col0 + 46 FROM tab0 AS cor0
----
133
143
61

query I rowsort
SELECT ALL + col1 + - col0 * - col1 + - col2 + 25 FROM tab0 cor0
----
1274
1863
24

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE - 0 NOT BETWEEN - 45 + + 54 AND col1 * + 42 - + col2
----
-10
-47
-99

query I rowsort
SELECT 91 + col0 FROM tab0
----
106
178
188

query I rowsort
SELECT 90 AS col2 FROM tab2 WHERE NULL BETWEEN - - col0 AND NULL
----

query I rowsort
SELECT DISTINCT ( - col1 ) + - 46 AS col1 FROM tab0
----
-127
-47
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6648
SELECT DISTINCT - col2 - ( - CAST( col1 AS SIGNED ) ) - + col1 * + - ( col0 ) AS col2 FROM tab2
----
2374
4965
5034

skipif mysql # not compatible
query I rowsort label-6648
SELECT DISTINCT - col2 - ( - CAST ( col1 AS INTEGER ) ) - + col1 * + - ( col0 ) AS col2 FROM tab2
----
2374
4965
5034

query I rowsort
SELECT 7 * - - col0 FROM tab0
----
105
609
679

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 >= + 41 + + col0 * + 83
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 60 + col2 * - col1 AS col1 FROM tab2 WHERE ( + col1 / col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT 3 - 62 * col0 AS col0 FROM tab1
----
-3159
-5267
-5639

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6653
SELECT CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * + MAX( DISTINCT + 69 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6653
SELECT CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT + 69 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 63 FROM tab2 AS cor0 WHERE NOT + 1 = NULL
----

query I rowsort
SELECT ALL ( - 19 ) FROM tab2 cor0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-6656
SELECT ALL COUNT( - - col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL COUNT ( - - col2 ) AS col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 28, col0 col1 FROM tab2 AS cor0
----
-28
46
-28
64
-28
75

query II rowsort
SELECT ALL col0 AS col1, - col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

query II rowsort
SELECT DISTINCT - 41, col1 AS col0 FROM tab0 cor0
----
-41
1
-41
21
-41
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 7 * - - 72 col1 FROM tab2 AS cor0
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT - - ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + - col0
----
0

skipif mysql # not compatible
query I rowsort label-6661
SELECT - - ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + - col0
----
0

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6663
SELECT + - col2 DIV + + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6663
SELECT + - col2 / + + col1 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL - - col0 + - col0, - 36 AS col1 FROM tab1 AS cor0
----
0
-36
0
-36
0
-36

query I rowsort
SELECT ALL 78 * - + ( - col0 ) + - - 79 FROM tab2 cor0
----
3667
5071
5929

query I rowsort
SELECT 90 * - col2 * - 0 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col1 * 22 FROM tab0
----
1782
22
462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6668
SELECT 37 * + COUNT( * ) * + ( - CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6668
SELECT 37 * + COUNT ( * ) * + ( - CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6669
SELECT DISTINCT 49 DIV MIN( DISTINCT + col1 ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT 49 / MIN ( DISTINCT + col1 ) FROM tab1
----
9

query I rowsort
SELECT DISTINCT - 76 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 * + ( 13 ) AS col0 FROM tab0
----
1131
1261
195

onlyif mysql # aggregate syntax: 
query I rowsort label-6672
SELECT DISTINCT - MAX( 56 ) FROM tab2
----
-56

skipif mysql # not compatible
query I rowsort label-6672
SELECT DISTINCT - MAX ( 56 ) FROM tab2
----
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-6673
SELECT ALL + MAX( ALL 43 ) AS col1, 46 + + MIN( col0 ) * + 83 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
43
3861

skipif mysql # not compatible
query II rowsort label-6673
SELECT ALL + MAX ( ALL 43 ) AS col1, 46 + + MIN ( col0 ) * + 83 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
43
3861

query I rowsort
SELECT 19 * 29 FROM tab2 AS cor0 WHERE col0 > col0
----

query II rowsort
SELECT 28 + + + col2, + ( - col0 ) AS col1 FROM tab1 AS cor0
----
124
-51
87
-85
96
-91

query I rowsort
SELECT DISTINCT ( + - 83 ) FROM tab2, tab1 AS cor0
----
-83

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 22 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - 21 ) * + col0 * - 38 + + col1 FROM tab1
----
40712
67835
72665

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6679
SELECT * FROM tab1 WHERE - + CAST( NULL AS SIGNED ) IN ( - 99, - 32, + - col2 )
----

skipif mysql # not compatible
query III rowsort label-6679
SELECT * FROM tab1 WHERE - + CAST ( NULL AS INTEGER ) IN ( - 99, - 32, + - col2 )
----

query I rowsort
SELECT + 61 + col0 * - col0 FROM tab2
----
-2055
-4035
-5564

query I rowsort
SELECT + - 28 * - 1 - + 60 AS col2 FROM tab1 AS cor0
----
-32
-32
-32

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( + col1 ) = - col1 + + 27
----

query I rowsort
SELECT ALL + + col2 * + 23 FROM tab1 AS cor0
----
1357
1564
2208

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <> + + 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6685
SELECT - col2 DIV + col1 + + + col0 * col2 FROM tab1 AS cor0
----
4890
5004
6187

skipif mysql # not compatible
query I rowsort label-6685
SELECT - col2 / + col1 + + + col0 * col2 FROM tab1 AS cor0
----
4890
5004
6187

query I rowsort
SELECT DISTINCT + col0 * - 30 FROM tab0 AS cor0
----
-2610
-2910
-450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 - - + 60 col2 FROM tab1 AS cor0
----
111
111
111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6688
SELECT - CAST( NULL AS SIGNED ) - + 26 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6688
SELECT - CAST ( NULL AS INTEGER ) - + 26 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6689
SELECT - ( - + 69 ) * + COUNT( * ) * - MAX( - + 36 ) AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) - - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6689
SELECT - ( - + 69 ) * + COUNT ( * ) * - MAX ( - + 36 ) AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) - - col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT COUNT( * ) - - ( COUNT( * ) ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-6690
SELECT COUNT ( * ) - - ( COUNT ( * ) ) AS col0 FROM tab1
----
6

query I rowsort
SELECT DISTINCT col0 * col2 + + 81 FROM tab2
----
1139
2641
4431

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 IS NOT NULL AND NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 28 + col1 + col0 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + ( + col0 ) AS col0, col1 AS col2 FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT 70 BETWEEN - + 44 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * 29 col1, 47 FROM tab2 AS cor0
----
-1160
47
-1682
47
-667
47

query II rowsort
SELECT col2 * 92, + col2 * + - 83 * + 91 AS col0 FROM tab1 AS cor0
----
5428
-445627
6256
-513604
8832
-725088

query I rowsort
SELECT + ( + col0 ) * + col0 - + + 37 AS col0 FROM tab0 AS cor0
----
188
7532
9372

query II rowsort
SELECT - 25 * + + col0 AS col0, col2 FROM tab1 cor0
----
-1275
96
-2125
59
-2275
68

query II rowsort
SELECT DISTINCT + col1, + 70 * - 76 * - + 29 FROM tab0
----
1
154280
21
154280
81
154280

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT + SUM( DISTINCT - 24 ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-6701
SELECT + SUM ( DISTINCT - 24 ) FROM tab1
----
-24

query I rowsort
SELECT 90 * + 19 FROM tab1 AS cor0
----
1710
1710
1710

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - + 80
----

query I rowsort
SELECT ALL - - 58 * - - col1 + + col0 FROM tab0 cor0
----
1305
155
4713

query II rowsort
SELECT col2, - col0 + + col2 AS col2 FROM tab1 cor0
----
59
-26
68
-23
96
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6706
SELECT - 66 * COUNT( * ) * - ( - - 62 ) FROM tab2 AS cor0
----
12276

skipif mysql # not compatible
query I rowsort label-6706
SELECT - 66 * COUNT ( * ) * - ( - - 62 ) FROM tab2 AS cor0
----
12276

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT ALL MIN( + + col2 ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL MIN ( + + col2 ) FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
NULL

query I rowsort
SELECT DISTINCT + - ( - + col1 ) + + col1 FROM tab2 cor0
----
102
134
154

query III rowsort
SELECT * FROM tab2 WHERE NOT + 42 + 19 * + ( col0 ) * - + 58 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT SUM( col2 ) + - + 85 * SUM( + col0 ) FROM tab0
----
-16759

skipif mysql # not compatible
query I rowsort label-6710
SELECT SUM ( col2 ) + - + 85 * SUM ( + col0 ) FROM tab0
----
-16759

onlyif mysql # aggregate syntax: 
query II rowsort label-6711
SELECT ALL + COUNT( * ) AS col1, - COUNT( * ) FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-6711
SELECT ALL + COUNT ( * ) AS col1, - COUNT ( * ) FROM tab0
----
3
-3

query I rowsort
SELECT 20 * col0 + - 70 FROM tab1
----
1630
1750
950

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT + COUNT( * ) + COUNT( * ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-6713
SELECT + COUNT ( * ) + COUNT ( * ) FROM tab0 cor0
----
6

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT DISTINCT MAX( + 22 ) * - 69 + COUNT( - 28 ) FROM tab0 cor0
----
-1515

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT MAX ( + 22 ) * - 69 + COUNT ( - 28 ) FROM tab0 cor0
----
-1515

query I rowsort
SELECT ALL + 71 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * col0 - 51 - col2 >= NULL
----

query I rowsort
SELECT - col0 * + 51 - - 57 + 84 * - col2 AS col1 FROM tab0
----
-13206
-4656
-5220

query II rowsort
SELECT ALL 31 - - + col2, + col0 - - col1 AS col0 FROM tab2
----
54
97
71
141
89
142

onlyif mysql # aggregate syntax: 
query I rowsort label-6720
SELECT 84 - - MIN( + col1 ) AS col1 FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-6720
SELECT 84 - - MIN ( + col1 ) AS col1 FROM tab1
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-6721
SELECT ALL + col1 DIV + + 50 - + - col1 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL + col1 / + + 50 - + - col1 AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT ALL + 19 * + COUNT( * ) FROM tab1 cor0 WHERE - 62 = - 50
----
0

skipif mysql # not compatible
query I rowsort label-6722
SELECT ALL + 19 * + COUNT ( * ) FROM tab1 cor0 WHERE - 62 = - 50
----
0

query I rowsort
SELECT ALL 83 * + + col2 + + ( - + col1 ) FROM tab0 cor0
----
3820
809
8216

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL >= - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6725
SELECT ALL - ( col0 ) DIV - col0 + - + 57 FROM tab2 AS cor0
----
-56
-56
-56

skipif mysql # not compatible
query I rowsort label-6725
SELECT ALL - ( col0 ) / - col0 + - + 57 FROM tab2 AS cor0
----
-56
-56
-56

query I rowsort
SELECT ALL - ( - ( - col2 ) ) FROM tab0 AS cor0 WHERE - 56 + 85 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6727
SELECT ALL + MAX( DISTINCT 19 ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL + MAX ( DISTINCT 19 ) FROM tab2
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6728
SELECT - MAX( ALL + - 91 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6728
SELECT - MAX ( ALL + - 91 ) AS col1 FROM tab1
----
91

query I rowsort
SELECT DISTINCT + + 95 FROM tab2 WHERE NOT - - col1 NOT BETWEEN NULL AND - - ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT + + COUNT( * ) AS col1 FROM tab2 WHERE NOT - 10 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6730
SELECT + + COUNT ( * ) AS col1 FROM tab2 WHERE NOT - 10 <= NULL
----
0

query II rowsort
SELECT + col0, - 60 - + + col1 FROM tab2
----
46
-111
64
-137
75
-127

onlyif mysql # aggregate syntax: 
query II rowsort label-6732
SELECT COUNT( * ), 98 AS col2 FROM tab1
----
3
98

skipif mysql # not compatible
query II rowsort label-6732
SELECT COUNT ( * ), 98 AS col2 FROM tab1
----
3
98

query III rowsort
SELECT ALL * FROM tab0 WHERE 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6734
SELECT 61 AS col0, COUNT( * ) AS col2 FROM tab1
----
61
3

skipif mysql # not compatible
query II rowsort label-6734
SELECT 61 AS col0, COUNT ( * ) AS col2 FROM tab1
----
61
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6735
SELECT ALL - CAST( 48 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-6735
SELECT ALL - CAST ( 48 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-48
-48
-48

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - 86 * - col0 * + col0 + col0 AND NULL
----

query II rowsort
SELECT ALL - col0, - 78 * - + col1 * - col0 AS col2 FROM tab1 AS cor0
----
-51
-55692
-85
-33150
-91
-333606

onlyif mysql # aggregate syntax: 
query I rowsort label-6738
SELECT + - COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6738
SELECT + - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT ALL + ( + - 67 ), + 7 + col1 AS col1 FROM tab0
----
-67
28
-67
8
-67
88

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 95 ) > 46
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT 9 FROM tab2 cor0
----
9
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT DISTINCT COUNT( * ) + - MAX( 8 ) + COUNT( * ) * + + COUNT( * ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-6742
SELECT DISTINCT COUNT ( * ) + - MAX ( 8 ) + COUNT ( * ) * + + COUNT ( * ) FROM tab0 AS cor0
----
4

query I rowsort
SELECT ALL - col2 + 38 AS col1 FROM tab0 AS cor0
----
-61
-9
28

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + - 50 BETWEEN + 52 AND NULL OR NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT + 44 * - MIN( DISTINCT + col0 ) col1 FROM tab1 AS cor0
----
-2244

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6745
SELECT + 44 * - MIN ( DISTINCT + col0 ) col1 FROM tab1 AS cor0
----
-2244

onlyif mysql # aggregate syntax: 
query I rowsort label-6746
SELECT - SUM( ALL - + col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-6746
SELECT - SUM ( ALL - + col2 ) FROM tab2
----
121

query I rowsort
SELECT + col2 * - 1 + + + 58 + - ( - + col2 ) + - col0 / - 26 AS col1 FROM tab1 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT - col1 + + 99 FROM tab2 AS cor0
----
22
32
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6749
SELECT ALL ( + 54 ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-6749
SELECT ALL ( + 54 ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6750
SELECT ALL - CAST( + col2 AS SIGNED ) + - col1 col0 FROM tab1 AS cor0
----
-110
-115
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6750
SELECT ALL - CAST ( + col2 AS INTEGER ) + - col1 col0 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT ALL 2 - - ( 15 ) FROM tab2
----
17
17
17

query I rowsort
SELECT 53 * col1 * - + col1 FROM tab1
----
-10388
-117077
-1325

onlyif mysql # DIV for integer division: 
query II rowsort label-6753
SELECT ALL + col0 - - col0 - - col1 DIV 38, + col1 AS col0 FROM tab1 cor0
----
102
14
170
5
183
47

skipif mysql # not compatible
query II rowsort label-6753
SELECT ALL + col0 - - col0 - - col1 / 38, + col1 AS col0 FROM tab1 cor0
----
102
14
170
5
183
47

query I rowsort
SELECT DISTINCT - 54 + - 7 AS col0 FROM tab0 AS cor0
----
-61

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6756
SELECT DISTINCT + - col0 DIV - 43 FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT + - col0 / - 43 FROM tab1 AS cor0
----
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 43 * 62 col0 FROM tab1 cor0
----
135966
226610
242606

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6758
SELECT - - CAST( 22 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
22
22
22

skipif mysql # not compatible
query I rowsort label-6758
SELECT - - CAST ( 22 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
22
22
22

query II rowsort
SELECT DISTINCT - 44 AS col2, col0 AS col2 FROM tab2 AS cor0
----
-44
46
-44
64
-44
75

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT - 46 * col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT ALL - SUM( col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6761
SELECT ALL - SUM ( col1 ) AS col2 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6762
SELECT DISTINCT + MAX( ALL - col1 ) AS col2 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-6762
SELECT DISTINCT + MAX ( ALL - col1 ) AS col2 FROM tab1
----
-5

query III rowsort
SELECT * FROM tab0 WHERE NOT 89 * col0 > + + 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT ALL MAX( ALL + - ( + + 23 ) ) * 47 FROM tab2
----
-1081

skipif mysql # not compatible
query I rowsort label-6764
SELECT ALL MAX ( ALL + - ( + + 23 ) ) * 47 FROM tab2
----
-1081

query I rowsort
SELECT ( - 19 ) AS col2 FROM tab0
----
-19
-19
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 46 col1 FROM tab0 cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT DISTINCT MIN( + + 70 ) FROM tab1
----
70

skipif mysql # not compatible
query I rowsort label-6767
SELECT DISTINCT MIN ( + + 70 ) FROM tab1
----
70

query I rowsort
SELECT ALL - + 71 + - col1 AS col2 FROM tab0 AS cor0
----
-152
-72
-92

query I rowsort
SELECT + ( - col0 ) * 4 * col0 * - - 51 + + col0 FROM tab1 AS cor0
----
-1473815
-1689233
-530553

query II rowsort
SELECT - 32 AS col0, + 17 + + - col2 AS col1 FROM tab2 AS cor0
----
-32
-23
-32
-41
-32
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT - 49 * - + COUNT( * ) FROM tab0 cor0 WHERE NULL NOT IN ( - ( + + col2 ) + + - 99 * + 51, 32 / - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6771
SELECT - 49 * - + COUNT ( * ) FROM tab0 cor0 WHERE NULL NOT IN ( - ( + + col2 ) + + - 99 * + 51, 32 / - col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6772
SELECT DISTINCT - 2 + 54 DIV col0 + 33 + - col1 DIV + 82 AS col2 FROM tab1 cor0
----
31
32

skipif mysql # not compatible
query I rowsort label-6772
SELECT DISTINCT - 2 + 54 / col0 + 33 + - col1 / + 82 AS col2 FROM tab1 cor0
----
31
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT ALL COUNT( * ) FROM tab0 WHERE + 76 NOT BETWEEN NULL AND + 38 * - + col1
----
3

skipif mysql # not compatible
query I rowsort label-6773
SELECT ALL COUNT ( * ) FROM tab0 WHERE + 76 NOT BETWEEN NULL AND + 38 * - + col1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6774
SELECT DISTINCT COUNT( - 68 ) + - - 5 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-6774
SELECT DISTINCT COUNT ( - 68 ) + - - 5 FROM tab0
----
8

query I rowsort
SELECT ALL - col1 + - - col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT + COUNT( * ) + + 81 col1 FROM tab0
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6776
SELECT + COUNT ( * ) + + 81 col1 FROM tab0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6777
SELECT DISTINCT col2 * - + CAST( + col2 AS SIGNED ) AS col1 FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-6777
SELECT DISTINCT col2 * - + CAST ( + col2 AS INTEGER ) AS col1 FROM tab0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-6778
SELECT MIN( - col2 ) + - 69 FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-6778
SELECT MIN ( - col2 ) + - 69 FROM tab1
----
-165

query II rowsort
SELECT ALL + col1 - col1 AS col0, ( - col0 ) AS col0 FROM tab1
----
0
-51
0
-85
0
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 65 * + 71 col2, - 80 FROM tab0
----
-4615
-80
-4615
-80
-4615
-80

query I rowsort
SELECT ALL + col1 - - + col1 AS col0 FROM tab0 WHERE NOT + - col0 IS NULL
----
162
2
42

query I rowsort
SELECT ALL - col2 + - col0 + + 29 * - 49 * - ( - - col1 ) * 3 FROM tab2
----
217344
285488
328147

query I rowsort
SELECT ALL + + 93 AS col2 FROM tab2 AS cor0
----
93
93
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6784
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) = - + col0
----

skipif mysql # not compatible
query III rowsort label-6784
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) = - + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6785
SELECT DISTINCT - - SUM( col0 ) DIV - 67 + + 99 AS col1 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-6785
SELECT DISTINCT - - SUM ( col0 ) / - 67 + + 99 AS col1 FROM tab2 AS cor0
----
97

query I rowsort
SELECT DISTINCT + 68 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
68

query I rowsort
SELECT + 43 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 199105619049271147956de52e7f5ed4

query I rowsort
SELECT DISTINCT - 31 FROM tab0, tab0 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT + COUNT( * ) * - 18 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-6789
SELECT + COUNT ( * ) * - 18 FROM tab0 AS cor0
----
-54

query I rowsort
SELECT ( - - col0 ) FROM tab0 AS cor0 WHERE NOT - 29 IS NULL
----
15
87
97

query I rowsort
SELECT - col1 * + 77 AS col0 FROM tab1 AS cor0
----
-1078
-3619
-385

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 / col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 25 col0, - 32 AS col0 FROM tab0
----
-25
-32
-25
-32
-25
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 56 col0 FROM tab2
----
2856
3752
4312

onlyif mysql # aggregate syntax: 
query I rowsort label-6795
SELECT ALL 57 * - MIN( ALL + 58 ) AS col0 FROM tab1
----
-3306

skipif mysql # not compatible
query I rowsort label-6795
SELECT ALL 57 * - MIN ( ALL + 58 ) AS col0 FROM tab1
----
-3306

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT COUNT( - + col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6796
SELECT COUNT ( - + col1 ) AS col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 42 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-6798
SELECT DISTINCT + col1 DIV + + col2 AS col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-6798
SELECT DISTINCT + col1 / + + col2 AS col2 FROM tab0
----
0
1
2

query I rowsort
SELECT ( + - 82 ) AS col1 FROM tab0
----
-82
-82
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-6800
SELECT ALL + 55 DIV col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL + 55 / col1 FROM tab2
----
0
0
1

query III rowsort
SELECT * FROM tab2 WHERE NOT 74 - - + 23 NOT IN ( - - col0, 84 * - col1, - - col2 + + 65 * + 12, - col1 ) AND NOT col2 / + ( + + ( + col1 ) ) * col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT - col0 + - + col2 AS col0 FROM tab0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT - + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6804
SELECT - + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 39 col0 FROM tab2 AS cor0
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT DISTINCT + ( MAX( col1 ) ) + - 40 * 72 AS col1 FROM tab0 AS cor0
----
-2799

skipif mysql # not compatible
query I rowsort label-6806
SELECT DISTINCT + ( MAX ( col1 ) ) + - 40 * 72 AS col1 FROM tab0 AS cor0
----
-2799

query I rowsort
SELECT DISTINCT + - col1 + + 77 + - - col1 + - + 48 * + - 72 * - col2 FROM tab2 AS cor0
----
-138163
-200371
-79411

query II rowsort
SELECT + ( col2 ), - col0 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

query II rowsort
SELECT + 52, 0 AS col1 FROM tab2
----
52
0
52
0
52
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col1 col0 FROM tab2
----
46
51
64
77
75
67

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 NOT BETWEEN NULL AND 17 )
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6812
SELECT ALL COUNT( * ) - - COUNT( * ) * + + 76 FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-6812
SELECT ALL COUNT ( * ) - - COUNT ( * ) * + + 76 FROM tab0
----
231

onlyif mysql # DIV for integer division: 
query II rowsort label-6813
SELECT DISTINCT col0 AS col0, 85 DIV - - col1 - + 95 + col2 AS col2 FROM tab2
----
46
-71
64
-54
75
-36

skipif mysql # not compatible
query II rowsort label-6813
SELECT DISTINCT col0 AS col0, 85 / - - col1 - + 95 + col2 AS col2 FROM tab2
----
46
-71
64
-54
75
-36

query I rowsort
SELECT DISTINCT 63 + + + ( + ( + col0 ) ) * + - ( ( + col1 ) ) AS col1 FROM tab0
----
-1152
-1764
-34

query I rowsort
SELECT + col0 - - 62 AS col0 FROM tab1
----
113
147
153

query I rowsort
SELECT col0 - 24 FROM tab2
----
22
40
51

query II rowsort
SELECT DISTINCT col2 * + 85, col0 AS col1 FROM tab0 WHERE NOT col2 BETWEEN - 2 AND NULL
----

query I rowsort
SELECT ALL 82 FROM tab1 WHERE ( NOT ( NOT ( NOT col0 + - 35 IS NOT NULL ) ) )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT ALL + + 69 + - SUM( - + col1 ) * - 81 AS col0 FROM tab0 AS cor0
----
-8274

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL + + 69 + - SUM ( - + col1 ) * - 81 AS col0 FROM tab0 AS cor0
----
-8274

query I rowsort
SELECT - col1 * col1 + - col1 AS col0 FROM tab0
----
-2
-462
-6642

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6822
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6823
SELECT col1 DIV col0 + - 40 * ( + 53 * - 57 ) AS col1 FROM tab0
----
120840
120840
120845

skipif mysql # not compatible
query I rowsort label-6823
SELECT col1 / col0 + - 40 * ( + 53 * - 57 ) AS col1 FROM tab0
----
120840
120840
120845

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 * 68 FROM tab1 WHERE NOT 92 + + col1 * - 1 > 72
----
4624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6826
SELECT CAST( - col0 AS SIGNED ) FROM tab1 WHERE NULL < col1
----

skipif mysql # not compatible
query I rowsort label-6826
SELECT CAST ( - col0 AS INTEGER ) FROM tab1 WHERE NULL < col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6827
SELECT - COUNT( - col0 ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6827
SELECT - COUNT ( - col0 ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 55 + + col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6829
SELECT - col0 + - col1 DIV 47 FROM tab1
----
-51
-85
-92

skipif mysql # not compatible
query I rowsort label-6829
SELECT - col0 + - col1 / 47 FROM tab1
----
-51
-85
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT ALL ( - COUNT( * ) ) + COUNT( * ) FROM tab0 WHERE NULL > col2
----
0

skipif mysql # not compatible
query I rowsort label-6830
SELECT ALL ( - COUNT ( * ) ) + COUNT ( * ) FROM tab0 WHERE NULL > col2
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( 20 ) NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + 14 ) AS col0 FROM tab1 WHERE + col0 BETWEEN ( + ( + col0 ) ) AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6833
SELECT CAST( CAST( NULL AS DECIMAL ) AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6833
SELECT CAST ( CAST ( NULL AS REAL ) AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT DISTINCT - COUNT( * ) + 4 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT - COUNT ( * ) + 4 FROM tab1
----
1

query I rowsort
SELECT DISTINCT ( + 53 ) FROM tab1 WHERE NOT col2 IS NULL
----
53

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NOT ( + col0 ) * col1 <= - col1 * + col2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6837
SELECT + col2 - + CAST( - col0 AS SIGNED ) * + col2 AS col0 FROM tab0
----
752
880
9702

skipif mysql # not compatible
query I rowsort label-6837
SELECT + col2 - + CAST ( - col0 AS INTEGER ) * + col2 AS col0 FROM tab0
----
752
880
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT COUNT( * ) - + 2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6838
SELECT COUNT ( * ) - + 2 FROM tab0
----
1

query I rowsort
SELECT ( ( col2 ) ) AS col0 FROM tab2 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 + - ( 42 ) * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6842
SELECT COUNT( * ) + - AVG ( 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-6842
SELECT COUNT ( * ) + - AVG ( CAST ( NULL AS INTEGER ) ) col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 51 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT ALL MIN( DISTINCT 97 ) + - COUNT( * ) FROM tab0 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL MIN ( DISTINCT 97 ) + - COUNT ( * ) FROM tab0 AS cor0
----
94

onlyif mysql # DIV for integer division: 
query I rowsort label-6845
SELECT + 21 DIV + col1 FROM tab1
----
0
1
4

skipif mysql # not compatible
query I rowsort label-6845
SELECT + 21 / + col1 FROM tab1
----
0
1
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6846
SELECT MIN( + col2 ) + - COUNT( * ) col1 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6846
SELECT MIN ( + col2 ) + - COUNT ( * ) col1 FROM tab0 AS cor0
----
7

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 cor0 WHERE NULL < - col1 * col1
----

query I rowsort
SELECT ALL 95 - 63 FROM tab1 AS cor0 WHERE NULL IS NULL
----
32
32
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 94 ) + 99 col0 FROM tab1 AS cor0
----
5
5
5

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 BETWEEN + ( 9 ) AND ( 20 + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6851
SELECT - - col1 + - col2 DIV 49 AS col1 FROM tab0 AS cor0
----
-1
21
81

skipif mysql # not compatible
query I rowsort label-6851
SELECT - - col1 + - col2 / 49 AS col1 FROM tab0 AS cor0
----
-1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6852
SELECT + 83 - 1 FROM tab0 cor0 WHERE NULL NOT BETWEEN - 98 AND CAST( 7 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6852
SELECT + 83 - 1 FROM tab0 cor0 WHERE NULL NOT BETWEEN - 98 AND CAST ( 7 AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 NOT BETWEEN col2 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 + 85 < col2
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6855
SELECT * FROM tab2 WHERE 1 NOT BETWEEN col1 + - col0 AND + CAST( NULL AS SIGNED ) + 29
----
46
51
23
64
77
40

skipif mysql # not compatible
query III rowsort label-6855
SELECT * FROM tab2 WHERE 1 NOT BETWEEN col1 + - col0 AND + CAST ( NULL AS INTEGER ) + 29
----
46
51
23
64
77
40

query I rowsort
SELECT col0 * - + 32 FROM tab2
----
-1472
-2048
-2400

onlyif mysql # DIV for integer division: 
query I rowsort label-6857
SELECT DISTINCT - col2 DIV ( col1 ) * col2 - - col1 * 70 FROM tab0
----
-9731
1470
5670

skipif mysql # not compatible
query I rowsort label-6857
SELECT DISTINCT - col2 / ( col1 ) * col2 - - col1 * 70 FROM tab0
----
-9731
1470
5670

query I rowsort
SELECT + 92 * - + col2 FROM tab2
----
-2116
-3680
-5336

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT MIN( + col0 ) * - MIN( + 13 + - 22 ) FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-6859
SELECT MIN ( + col0 ) * - MIN ( + 13 + - 22 ) FROM tab0
----
135

query I rowsort
SELECT ALL col2 * 66 * - 75 AS col0 FROM tab1
----
-292050
-336600
-475200

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE ( 73 ) <> col2
----
1
21
81

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6863
SELECT ALL + MIN( 93 ) DIV - 95 AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL + MIN ( 93 ) / - 95 AS col0 FROM tab1 cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 3 <= - col0 - 30 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 96 AS col0 FROM tab0 cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6866
SELECT COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 4 + col0 NOT BETWEEN NULL AND + col2 * + col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 12 * col0 / 16 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT + 63 NOT IN ( col2 * 78 )
----

query I rowsort
SELECT ALL 32 * - 30 * + col0 - + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6871
SELECT + col2 * ( - - CAST( NULL AS SIGNED ) ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6871
SELECT + col2 * ( - - CAST ( NULL AS INTEGER ) ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + - 65, 38 * - col2 AS col2 FROM tab0 AS cor0
----
-65
-1786
-65
-3762
-65
-380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6873
SELECT ALL 73 * + CAST( + + 10 AS SIGNED ) + col2 col2 FROM tab2 AS cor0
----
753
770
788

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6873
SELECT ALL 73 * + CAST ( + + 10 AS INTEGER ) + col2 col2 FROM tab2 AS cor0
----
753
770
788

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6874
SELECT ALL CAST( col1 AS SIGNED ) * - col0 FROM tab2 AS cor0 WHERE NOT + 72 IN ( col2 )
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL CAST ( col1 AS INTEGER ) * - col0 FROM tab2 AS cor0 WHERE NOT + 72 IN ( col2 )
----
-2346
-4928
-5025

query I rowsort
SELECT ( + + 61 ) AS col2 FROM tab1 AS cor0
----
61
61
61

query I rowsort
SELECT + col2 * - col0 * col2 * - - 92 FROM tab1
----
-27221420
-38712128
-43241472

query I rowsort
SELECT ALL + col0 + - 85 * col0 AS col0 FROM tab2 WHERE col1 + col2 + col2 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT DISTINCT MAX( - - col2 ) * - ( ( 75 ) ) FROM tab1
----
-7200

skipif mysql # not compatible
query I rowsort label-6878
SELECT DISTINCT MAX ( - - col2 ) * - ( ( 75 ) ) FROM tab1
----
-7200

query III rowsort
SELECT ALL * FROM tab1 WHERE - 88 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - - col1 NOT IN ( - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6881
SELECT DISTINCT MIN( - 88 ) * 11 AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-968

skipif mysql # not compatible
query I rowsort label-6881
SELECT DISTINCT MIN ( - 88 ) * 11 AS col1 FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-968

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( ( NULL ) > - 78 )
----

query I rowsort
SELECT DISTINCT + col1 + - - col0 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6884
SELECT + - COUNT( * ) AS col2, + MAX( ALL + 90 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
90

skipif mysql # not compatible
query II rowsort label-6884
SELECT + - COUNT ( * ) AS col2, + MAX ( ALL + 90 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9
90

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( 81 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 - + col2 < NULL
----

query I rowsort
SELECT ( + col2 ) AS col2 FROM tab1 AS cor0 WHERE 77 * 64 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6888
SELECT + SUM( col0 ) DIV 15 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6888
SELECT + SUM ( col0 ) / 15 FROM tab1 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-6889
SELECT COUNT( * ), + 34 AS col1 FROM tab0 AS cor0
----
3
34

skipif mysql # not compatible
query II rowsort label-6889
SELECT COUNT ( * ), + 34 AS col1 FROM tab0 AS cor0
----
3
34

onlyif mysql # DIV for integer division: 
query I rowsort label-6890
SELECT 36 DIV + + 32 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6890
SELECT 36 / + + 32 AS col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6891
SELECT ALL - COUNT( * ) + COUNT( DISTINCT + - 86 ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL - COUNT ( * ) + COUNT ( DISTINCT + - 86 ) FROM tab1 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-6892
SELECT ALL + MAX( - col1 ) + + 54 FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-6892
SELECT ALL + MAX ( - col1 ) + + 54 FROM tab1 AS cor0
----
49

query I rowsort
SELECT col2 FROM tab0 WHERE ( col0 * - col0 + + col1 ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT 46 * col0 * col1 + + + 9 AS col1 FROM tab0
----
4471
55899
84051

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6895
SELECT DISTINCT 83 - CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
36
69
78

skipif mysql # not compatible
query I rowsort label-6895
SELECT DISTINCT 83 - CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
36
69
78

onlyif mysql # DIV for integer division: 
query I rowsort label-6896
SELECT DISTINCT 71 DIV + + col2 AS col2 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-6896
SELECT DISTINCT 71 / + + col2 AS col2 FROM tab0
----
0
1
7

query I rowsort
SELECT DISTINCT col1 * + 26 * 32 AS col0 FROM tab2
----
42432
55744
64064

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + + col2 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT COUNT( - 75 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6899
SELECT COUNT ( - 75 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6900
SELECT - + 32 DIV + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-6900
SELECT - + 32 / + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-10

onlyif mysql # DIV for integer division: 
query II rowsort label-6901
SELECT ALL - col1 DIV + 2, + col2 * + - col2 col1 FROM tab2 AS cor0
----
-25
-529
-33
-3364
-38
-1600

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6901
SELECT ALL - col1 / + 2, + col2 * + - col2 col1 FROM tab2 AS cor0
----
-25
-529
-33
-3364
-38
-1600

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col2 * - 53 + - col1 + - - col0 NOT BETWEEN col1 / 43 AND + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 <= - + ( + col2 ) + - 82 + col0
----

query II rowsort
SELECT col2 * + col1 AS col2, + col2 AS col2 FROM tab0
----
210
10
3807
47
99
99

query I rowsort
SELECT col1 * + 43 AS col1 FROM tab0
----
3483
43
903

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6906
SELECT ALL + CAST( + - col1 AS SIGNED ) FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-6906
SELECT ALL + CAST ( + - col1 AS INTEGER ) FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT + ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT ALL MAX( ALL - col2 ) + + 51 - - + 54 + - + ( + + 89 ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-221

skipif mysql # not compatible
query I rowsort label-6908
SELECT ALL MAX ( ALL - col2 ) + + 51 - - + 54 + - + ( + + 89 ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6909
SELECT 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-6909
SELECT col1 * - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT DISTINCT + 13 + + - COUNT( * ) - + SUM( ALL + 85 ) + - MIN( + col1 ) * + 73 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 * + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6910
SELECT DISTINCT + 13 + + - COUNT ( * ) - + SUM ( ALL + 85 ) + - MIN ( + col1 ) * + 73 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 * + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT + - ( - 60 ) AS col0 FROM tab0 AS cor0
----
60
60
60

onlyif mysql # DIV for integer division: 
query I rowsort label-6912
SELECT DISTINCT - 85 DIV + col1 + - 91 + col0 AS col1 FROM tab0 AS cor0
----
-77
-79
-8

skipif mysql # not compatible
query I rowsort label-6912
SELECT DISTINCT - 85 / + col1 + - 91 + col0 AS col1 FROM tab0 AS cor0
----
-77
-79
-8

query I rowsort
SELECT col0 * 11 + - col2 AS col2 FROM tab0
----
118
947
968

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT DISTINCT + MIN( DISTINCT + col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT + MIN ( DISTINCT + col0 ) AS col1 FROM tab1
----
51

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 75 > col0 * + + 24 * - + col1 + + col1 / + col2 - + col1
----

query II rowsort
SELECT ALL col1, - col2 * + 75 AS col2 FROM tab1
----
14
-7200
47
-5100
5
-4425

onlyif mysql # aggregate syntax: 
query I rowsort label-6917
SELECT 91 + - COUNT( * ) + + - ( + SUM( 90 ) ) FROM tab1
----
-182

skipif mysql # not compatible
query I rowsort label-6917
SELECT 91 + - COUNT ( * ) + + - ( + SUM ( 90 ) ) FROM tab1
----
-182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 45 AS col2, col2 + + col0 col2 FROM tab0
----
45
196
45
62
45
97

query I rowsort
SELECT DISTINCT 28 * + - 36 FROM tab2
----
-1008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - + col1 + col1 + + col2 col1 FROM tab0
----
196
62
97

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 34 IS NULL
----

query II rowsort
SELECT - 73 AS col0, col2 FROM tab1 AS cor0
----
-73
59
-73
68
-73
96

query I rowsort
SELECT - + 73 * + col0 FROM tab2 cor0
----
-3358
-4672
-5475

query I rowsort
SELECT - + 61 + + 81 FROM tab1 WHERE + - col0 + - col1 + + col1 <= + - 96 + - - col1
----
20

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + - 33 * + + 89 / - + col0 + + - col2 * col1 + + col2 ) IN ( 55 )
----

query I rowsort
SELECT - 54 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 4ecdb0f1b85f0d4fdc3a826efd9f2342

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6927
SELECT - CAST( + + col0 AS SIGNED ) AS col2 FROM tab2 WHERE NULL >= ( + - col0 / - col0 + - ( - + col0 ) + + 60 )
----

skipif mysql # not compatible
query I rowsort label-6927
SELECT - CAST ( + + col0 AS INTEGER ) AS col2 FROM tab2 WHERE NULL >= ( + - col0 / - col0 + - ( - + col0 ) + + 60 )
----

query I rowsort
SELECT 70 FROM tab1 WHERE - 50 NOT IN ( + - col2 )
----
70
70
70

query I rowsort
SELECT + col2 + + 64 AS col2 FROM tab0 AS cor0
----
111
163
74

query I rowsort
SELECT - + col2 + + - 12 + 8 AS col1 FROM tab1 AS cor0
----
-100
-63
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab2 AS cor0 WHERE NOT - col0 + + col2 * - col0 NOT IN ( - col1 )
----

query I rowsort
SELECT + 33 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - 32 * + 35 + + col0 FROM tab0 cor0
----
-1023
-1033
-1105

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6934
SELECT DISTINCT - 28 DIV 19 * SUM( col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6934
SELECT DISTINCT - 28 / 19 * SUM ( col1 ) AS col2 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6935
SELECT DISTINCT + col1 + - 9 * - - 78 + - + 21 * + CAST( NULL AS DECIMAL ) * + 94 - + 82 * + + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6935
SELECT DISTINCT + col1 + - 9 * - - 78 + - + 21 * + CAST ( NULL AS REAL ) * + 94 - + 82 * + + col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 69
----

query I rowsort
SELECT ALL - + col1 + + - col2 FROM tab0 AS cor0
----
-100
-128
-31

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 - 7 + - ( + col0 ) AND NULL
----

query II rowsort
SELECT DISTINCT col2 - + ( - - 5 ), 77 AS col0 FROM tab1
----
54
77
63
77
91
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6940
SELECT ALL 44 * - + 18 + - + COUNT( DISTINCT - col1 ) AS col0 FROM tab1
----
-795

skipif mysql # not compatible
query I rowsort label-6940
SELECT ALL 44 * - + 18 + - + COUNT ( DISTINCT - col1 ) AS col0 FROM tab1
----
-795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6941
SELECT ALL - CAST( + 11 AS SIGNED ) - + col0 AS col2 FROM tab0
----
-108
-26
-98

skipif mysql # not compatible
query I rowsort label-6941
SELECT ALL - CAST ( + 11 AS INTEGER ) - + col0 AS col2 FROM tab0
----
-108
-26
-98

query I rowsort
SELECT ALL - 94 * - - col0 FROM tab2
----
-4324
-6016
-7050

query I rowsort
SELECT ( + 54 ) AS col2 FROM tab0
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6944
SELECT ALL + col2 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT ALL + col2 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6945
SELECT ALL ( - + CAST( - COUNT( * ) AS SIGNED ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6945
SELECT ALL ( - + CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab0
----
3

query I rowsort
SELECT ALL - col1 * + col2 - - - col1 AS col2 FROM tab0 AS cor0
----
-100
-231
-3888

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 / - col0 * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 65 * - col0 AS col1 FROM tab2
----
-2990
-4160
-4875

onlyif mysql # DIV for integer division: 
query I rowsort label-6949
SELECT - col1 DIV 91 * - col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6949
SELECT - col1 / 91 * - col0 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 30 FROM tab2 WHERE NOT + 0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 63 AS col2 FROM tab1 WHERE NOT ( + col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6952
SELECT ALL - col2 / - col2 / - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6952
SELECT ALL - col2 / - col2 / - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 43 FROM tab2 AS cor0
----
43
43
43

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 - - + 39 + + col1 + - col0 * + 56 + + col0 >= ( - + 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT - + ( - COUNT( DISTINCT + col0 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6955
SELECT - + ( - COUNT ( DISTINCT + col0 ) ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * + ( - 51 ) IS NULL
----

query I rowsort
SELECT + col0 * + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( - 60 * - col0 / - - col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + - - col2 + 83 AS col1 FROM tab1
----
83
83
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + 42 * col0 * + 45 col2 FROM tab0
----
-14305410
-17783010
-425250

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT - MIN( - - col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-6961
SELECT - MIN ( - - col1 ) AS col0 FROM tab1
----
-5

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NOT + + col2 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT DISTINCT MIN( DISTINCT - + col2 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-6963
SELECT DISTINCT MIN ( DISTINCT - + col2 ) AS col1 FROM tab1
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * 3 AS col1, - col1 col2 FROM tab1
----
153
-14
255
-5
273
-47

query I rowsort
SELECT ALL + + 98 * - col1 + col1 AS col2 FROM tab2 AS cor0
----
-4947
-6499
-7469

query I rowsort
SELECT DISTINCT + col2 + - 99 FROM tab2
----
-41
-59
-76

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT 69 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 19 + col1 * + + col0 + - col1 FROM tab2 WHERE NOT + 13 IS NULL
----
2314
4870
4977

query II rowsort
SELECT + + 23, + col2 * + col1 AS col2 FROM tab2 AS cor0
----
23
1173
23
3080
23
3886

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6970
SELECT + 89 AS col2 FROM tab2 AS cor0 WHERE - CAST( - + 41 AS SIGNED ) * - CAST( NULL AS DECIMAL ) IS NULL
----
89
89
89

skipif mysql # not compatible
query I rowsort label-6970
SELECT + 89 AS col2 FROM tab2 AS cor0 WHERE - CAST ( - + 41 AS INTEGER ) * - CAST ( NULL AS REAL ) IS NULL
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT DISTINCT + + SUM( + ( - - col2 ) ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-6971
SELECT DISTINCT + + SUM ( + ( - - col2 ) ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT DISTINCT SUM( - + col1 ) FROM tab2 AS cor0 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6972
SELECT DISTINCT SUM ( - + col1 ) FROM tab2 AS cor0 WHERE NOT NULL < NULL
----
NULL

query I rowsort
SELECT - 0 - - 46 FROM tab0 cor0
----
46
46
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6974
SELECT col0 DIV + + col2 - - ( + col0 ) + + col1 AS col2 FROM tab1 AS cor0
----
139
65
91

skipif mysql # not compatible
query I rowsort label-6974
SELECT col0 / + + col2 - - ( + col0 ) + + col1 AS col2 FROM tab1 AS cor0
----
139
65
91

query I rowsort
SELECT - - col0 - - + col1 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT - COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) <> + col2
----
0

skipif mysql # not compatible
query I rowsort label-6976
SELECT - COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) <> + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT - ( 96 ) * + + MIN( ALL 47 ) col2 FROM tab0
----
-4512

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6977
SELECT - ( 96 ) * + + MIN ( ALL 47 ) col2 FROM tab0
----
-4512

query II rowsort
SELECT ALL + col1 * col2, - col1 AS col2 FROM tab1
----
1344
-14
295
-5
3196
-47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6979
SELECT * FROM tab2 WHERE NOT - col1 - col1 * - ( + 48 ) NOT BETWEEN - col0 + 16 * CAST( - - 16 AS SIGNED ) AND 98
----

skipif mysql # not compatible
query III rowsort label-6979
SELECT * FROM tab2 WHERE NOT - col1 - col1 * - ( + 48 ) NOT BETWEEN - col0 + 16 * CAST ( - - 16 AS INTEGER ) AND 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT + SUM( - 39 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6980
SELECT + SUM ( - 39 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - + 81 FROM tab1 cor0
----
-81
-81
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 3 * - col1 col0 FROM tab2 AS cor0
----
14784
15075
7038

onlyif mysql # aggregate syntax: 
query I rowsort label-6983
SELECT ALL MIN( - col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-6983
SELECT ALL MIN ( - col2 ) AS col2 FROM tab0 AS cor0
----
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 68 + col2 < NULL
----

query I rowsort
SELECT 80 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # aggregate syntax: 
query I rowsort label-6986
SELECT ALL + 23 - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
14

skipif mysql # not compatible
query I rowsort label-6986
SELECT ALL + 23 - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6987
SELECT DISTINCT * FROM tab0 WHERE ( - col2 ) * + col1 * - CAST( - col2 AS SIGNED ) * + + col1 - - + CAST( col0 AS SIGNED ) + - - col1 NOT IN ( + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6987
SELECT DISTINCT * FROM tab0 WHERE ( - col2 ) * + col1 * - CAST ( - col2 AS INTEGER ) * + + col1 - - + CAST ( col0 AS INTEGER ) + - - col1 NOT IN ( + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * 59 + + 67 FROM tab0 AS cor0
----
126
1306
4846

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 92 + - + col0 BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT + col2 AS col1, - col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 IN ( 10, - col1, - col0, + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6992
SELECT + 79 col2, COUNT( * ) * + COUNT( + 18 ) FROM tab2 cor0
----
79
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6992
SELECT + 79 col2, COUNT ( * ) * + COUNT ( + 18 ) FROM tab2 cor0
----
79
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6993
SELECT + SUM( ALL - 49 ) * - COUNT( * ) FROM tab1 AS cor0
----
441

skipif mysql # not compatible
query I rowsort label-6993
SELECT + SUM ( ALL - 49 ) * - COUNT ( * ) FROM tab1 AS cor0
----
441

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT + 6 + SUM( - - col2 ) FROM tab2 AS cor0
----
127

skipif mysql # not compatible
query I rowsort label-6994
SELECT + 6 + SUM ( - - col2 ) FROM tab2 AS cor0
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT DISTINCT + 6 * + - 84 + + COUNT( * ) AS col0 FROM tab2
----
-501

skipif mysql # not compatible
query I rowsort label-6995
SELECT DISTINCT + 6 * + - 84 + + COUNT ( * ) AS col0 FROM tab2
----
-501

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 42 * + 40 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6997
SELECT ALL + 63 DIV ( + + col0 ) + - col2 AS col0 FROM tab1
----
-59
-68
-95

skipif mysql # not compatible
query I rowsort label-6997
SELECT ALL + 63 / ( + + col0 ) + - col2 AS col0 FROM tab1
----
-59
-68
-95

query I rowsort
SELECT - 84 * + col2 + col0 + 67 AS col0 FROM tab2
----
-1819
-3229
-4730

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6999
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, + col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-6999
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, + col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT - col0 FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7001
SELECT ALL - col0 DIV - - 89 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7001
SELECT ALL - col0 / - - 89 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7002
SELECT + 33 + - COUNT( * ) AS col1, CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
30
NULL

skipif mysql # not compatible
query II rowsort label-7002
SELECT + 33 + - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
30
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 * + col0 col2 FROM tab0
----
1095
6351
7081

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7004
SELECT - SUM( + + col1 ) DIV 89 * - - 60 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7004
SELECT - SUM ( + + col1 ) / 89 * - - 60 FROM tab1
----
0

query II rowsort
SELECT - + col1 AS col0, + 39 * + col2 * + col2 * - col0 FROM tab2 AS cor0
----
-51
-949026
-67
-9839700
-77
-3993600

onlyif mysql # aggregate syntax: 
query I rowsort label-7006
SELECT ALL + SUM( ALL - 42 ) + + COUNT( * ) * COUNT( * ) + + SUM( 94 ) AS col2 FROM tab0 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-7006
SELECT ALL + SUM ( ALL - 42 ) + + COUNT ( * ) * COUNT ( * ) + + SUM ( 94 ) AS col2 FROM tab0 AS cor0
----
165

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7007
SELECT ALL + + CAST( NULL AS DECIMAL ) * col2 * - 2 col0 FROM tab1 AS cor0 WHERE NOT + ( + 8 ) NOT IN ( - - 46 * - + col0, col2, col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7007
SELECT ALL + + CAST ( NULL AS REAL ) * col2 * - 2 col0 FROM tab1 AS cor0 WHERE NOT + ( + 8 ) NOT IN ( - - 46 * - + col0, col2, col0 )
----

query I rowsort
SELECT 42 * + 77 AS col2 FROM tab0 cor0
----
3234
3234
3234

query II rowsort
SELECT ALL - - col0, 27 AS col1 FROM tab0 AS cor0
----
15
27
87
27
97
27

query I rowsort
SELECT ALL - 29 - + - col1 AS col1 FROM tab2 AS cor0
----
22
38
48

query III rowsort
SELECT ALL * FROM tab1 WHERE - 70 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7012
SELECT - 52 DIV + - MAX( ALL - 60 ) + + - 97 FROM tab1
----
-97

skipif mysql # not compatible
query I rowsort label-7012
SELECT - 52 / + - MAX ( ALL - 60 ) + + - 97 FROM tab1
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT ALL SUM( col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL SUM ( col2 ) AS col1 FROM tab1 AS cor0
----
223

query I rowsort
SELECT 63 + + - col2 AS col2 FROM tab0 AS cor0
----
-36
16
53

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 23 IS NOT NULL
----

query I rowsort
SELECT ALL - + 89 AS col2 FROM tab0 cor0
----
-89
-89
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 col0 FROM tab0 AS cor0
----
34

query I rowsort
SELECT + + col2 * + ( col1 ) AS col2 FROM tab2 AS cor0
----
1173
3080
3886

query III rowsort
SELECT * FROM tab2 WHERE NOT 27 + + 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7020
SELECT - COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab2, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7020
SELECT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab2, tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7021
SELECT - COUNT( * ) * + - 52 AS col2 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-7021
SELECT - COUNT ( * ) * + - 52 AS col2 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-7022
SELECT - COUNT( + - 62 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7022
SELECT - COUNT ( + - 62 ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - 65 ) + + 52 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 7 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, + 63 AS col0 FROM tab1
----
14
63
47
63
5
63

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE NOT + col0 + col1 IS NULL
----
15
87
97

query I rowsort
SELECT ALL - ( col2 ) * + col2 AS col2 FROM tab0 WHERE NULL BETWEEN - col1 + - ( + + col0 ) AND col1
----

query I rowsort
SELECT DISTINCT + ( + 51 ) AS col1 FROM tab2 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7029
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT + col0 * + col1 * + col2 * - ( + ( col0 ) ) AS col2 FROM tab2
----
-12615680
-21858750
-2482068

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 36 col2 FROM tab0
----
-15
-35
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7032
SELECT - MIN( - 5 ) DIV - + 95 + - + 51 AS col0 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-7032
SELECT - MIN ( - 5 ) / - + 95 + - + 51 AS col0 FROM tab0
----
-51

query II rowsort
SELECT + ( - + col0 ), col1 * col1 + - - 16 AS col2 FROM tab2 AS cor0
----
-46
2617
-64
5945
-75
4505

query I rowsort
SELECT ALL - - col2 + + 38 * + col2 AS col1 FROM tab1 cor0
----
2301
2652
3744

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7035
SELECT ALL + - CAST( - 0 AS SIGNED ) * 15 col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7035
SELECT ALL + - CAST ( - 0 AS INTEGER ) * 15 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT - COUNT( * ) * 55 FROM tab2 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-7036
SELECT - COUNT ( * ) * 55 FROM tab2 AS cor0
----
-165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - + 69 col1 FROM tab0 AS cor0
----
-156
-166
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7038
SELECT DISTINCT - 15 - - COUNT( + 16 ) / + 95 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7038
SELECT DISTINCT - 15 - - COUNT ( + 16 ) / + 95 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + - col2 * col0 * col2 + - 62 AS col2 FROM tab0 WHERE NOT + col0 IS NULL
----
-33197
-8762
-950759

query I rowsort
SELECT col1 + + 93 FROM tab1 cor0
----
107
140
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7041
SELECT DISTINCT 25 * + 59 + - + COUNT( * ) FROM tab2 AS cor0
----
1472

skipif mysql # not compatible
query I rowsort label-7041
SELECT DISTINCT 25 * + 59 + - + COUNT ( * ) FROM tab2 AS cor0
----
1472

query I rowsort
SELECT - - col0 + + col0 * + + ( 28 ) * + - col0 - col0 + + - 15 + 88 FROM tab1 AS cor0
----
-202227
-231795
-72755

onlyif mysql # aggregate syntax: 
query I rowsort label-7043
SELECT COUNT( + + 15 ) AS col2 FROM tab2 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7043
SELECT COUNT ( + + 15 ) AS col2 FROM tab2 WHERE - col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7044
SELECT ALL - col1 AS col1, - 76 * CAST( NULL AS SIGNED ) FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-7044
SELECT ALL - col1 AS col1, - 76 * CAST ( NULL AS INTEGER ) FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

query II rowsort
SELECT - 68, + col0 FROM tab2 cor0
----
-68
46
-68
64
-68
75

query I rowsort
SELECT ALL + col0 * + ( + - 49 ) AS col0 FROM tab2 AS cor0
----
-2254
-3136
-3675

query I rowsort
SELECT + 65 * 41 + 81 + + 42 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

query II rowsort
SELECT col0, 35 FROM tab2 AS cor0
----
46
35
64
35
75
35

query II rowsort
SELECT 67, + ( + + 23 ) AS col1 FROM tab0 AS cor0
----
67
23
67
23
67
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 col1 FROM tab2 cor0
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7051
SELECT + COUNT( * ) * COUNT( * ) AS col0 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-7051
SELECT + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7052
SELECT DISTINCT CAST( col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7052
SELECT DISTINCT CAST ( col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT + + 97 * + COUNT( - - col0 ) AS col2 FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-7053
SELECT + + 97 * + COUNT ( - - col0 ) AS col2 FROM tab1 AS cor0
----
291

query I rowsort
SELECT - col1 + + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + + col2 + + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7056
SELECT - CAST( col1 AS SIGNED ) * col2 AS col0 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-7056
SELECT - CAST ( col1 AS INTEGER ) * col2 AS col0 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT - 11 AS col1 FROM tab1 WHERE NOT + 40 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 WHERE + col1 + + col0 - + + col2 * + 69 + 95 IS NULL
----

query I rowsort
SELECT DISTINCT + ( + col0 ) * + 50 AS col1 FROM tab0 AS cor0
----
4350
4850
750

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7061
SELECT CAST( NULL AS SIGNED ) AS col0, - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL
-9

skipif mysql # not compatible
query II rowsort label-7061
SELECT CAST ( NULL AS INTEGER ) AS col0, - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
NULL
-9

query I rowsort
SELECT + + 16 * col2 AS col1 FROM tab0 AS cor0
----
1584
160
752

query I rowsort
SELECT + - 47 + - 88 + + - col1 FROM tab0 AS cor0
----
-136
-156
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT - ( - COUNT( * ) ) + + - 32 col2 FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7064
SELECT - ( - COUNT ( * ) ) + + - 32 col2 FROM tab1 AS cor0
----
-29

query I rowsort
SELECT - + col2 + + + col1 + - + col1 - + col2 + - + col2 * + - col0 * + - col2 * - - col2 + - - col0 AS col0 FROM tab1 AS cor0
----
-17457248
-28613357
-45121677

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT ALL - 38 + - MAX( ALL + - col2 ) FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7066
SELECT ALL - 38 + - MAX ( ALL + - col2 ) FROM tab2 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT ALL - 55 + + COUNT( * ) AS col1 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL - 55 + + COUNT ( * ) AS col1 FROM tab1
----
-52

query I rowsort
SELECT 16 + col1 * + 58 AS col0 FROM tab2
----
2974
3902
4482

query I rowsort
SELECT + col1 * 76 + + col1 * col0 FROM tab2
----
10117
10780
6222

onlyif mysql # DIV for integer division: 
query I rowsort label-7070
SELECT - 55 * col0 DIV + col0 AS col2 FROM tab2
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-7070
SELECT - 55 * col0 / + col0 AS col2 FROM tab2
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-7071
SELECT ALL + 22 * COUNT( * ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7071
SELECT ALL + 22 * COUNT ( * ) FROM tab1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7072
SELECT DISTINCT 42 * + col0 * + CAST( NULL AS SIGNED ) * - - col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7072
SELECT DISTINCT 42 * + col0 * + CAST ( NULL AS INTEGER ) * - - col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col2 * col2 * + + col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7074
SELECT DISTINCT col2 DIV - 4 AS col0 FROM tab2
----
-10
-14
-5

skipif mysql # not compatible
query I rowsort label-7074
SELECT DISTINCT col2 / - 4 AS col0 FROM tab2
----
-10
-14
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 IN ( + col0, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 * + 64 AS col0 FROM tab1
----
3776
4352
6144

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 NOT 13 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7079
SELECT ALL MIN( col0 ) AS col0 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-7079
SELECT ALL MIN ( col0 ) AS col0 FROM tab1 cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7080
SELECT 21 DIV + - col1 AS col2 FROM tab1 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-7080
SELECT 21 / + - col1 AS col2 FROM tab1 AS cor0
----
-1
-4
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7081
SELECT ALL COUNT( + col0 ) DIV 28 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7081
SELECT ALL COUNT ( + col0 ) / 28 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT ALL - 49 * + - COUNT( * ) * - 5 FROM tab2
----
-735

skipif mysql # not compatible
query I rowsort label-7082
SELECT ALL - 49 * + - COUNT ( * ) * - 5 FROM tab2
----
-735

onlyif mysql # DIV for integer division: 
query I rowsort label-7083
SELECT col2 DIV - 26 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7083
SELECT col2 / - 26 FROM tab2
----
-1
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7084
SELECT + col2, CAST( - col2 AS SIGNED ) + - col1 + + col2 FROM tab2
----
23
-51
40
-77
58
-67

skipif mysql # not compatible
query II rowsort label-7084
SELECT + col2, CAST ( - col2 AS INTEGER ) + - col1 + + col2 FROM tab2
----
23
-51
40
-77
58
-67

query I rowsort
SELECT 94 * col2 * + 84 FROM tab1
----
465864
536928
758016

query I rowsort
SELECT 56 * + col0 FROM tab0
----
4872
5432
840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7087
SELECT ( + 49 ) * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7087
SELECT ( + 49 ) * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7088
SELECT - COUNT( + col1 ) AS col0, 36 DIV COUNT( DISTINCT + col1 ) AS col1 FROM tab0
----
-3
12

skipif mysql # not compatible
query II rowsort label-7088
SELECT - COUNT ( + col1 ) AS col0, 36 / COUNT ( DISTINCT + col1 ) AS col1 FROM tab0
----
-3
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7089
SELECT DISTINCT CAST( - col1 AS SIGNED ), col0 AS col2 FROM tab0
----
-1
97
-21
87
-81
15

skipif mysql # not compatible
query II rowsort label-7089
SELECT DISTINCT CAST ( - col1 AS INTEGER ), col0 AS col2 FROM tab0
----
-1
97
-21
87
-81
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 41, + col0 col2 FROM tab2
----
41
46
41
64
41
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT ALL + + SUM( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-7091
SELECT ALL + + SUM ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
121

query I rowsort
SELECT DISTINCT + 14 * + col0 + + - 81 AS col2 FROM tab2 AS cor0
----
563
815
969

query I rowsort
SELECT - 65 + - col0 + + col0 * - col2 FROM tab2
----
-1169
-2689
-4490

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7094
SELECT 32 + + + col0 + - col1 * + + CAST( NULL AS DECIMAL ) / + 10 * + col1 * + col1 + + col1 / col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7094
SELECT 32 + + + col0 + - col1 * + + CAST ( NULL AS REAL ) / + 10 * + col1 * + col1 + + col1 / col1 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7095
SELECT * FROM tab0 WHERE ( NOT CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL )
----

skipif mysql # not compatible
query III rowsort label-7095
SELECT * FROM tab0 WHERE ( NOT CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 + - ( - - col2 ) < - ( - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT + 50 * - 57 * COUNT( * ) FROM tab1 AS cor0
----
-8550

skipif mysql # not compatible
query I rowsort label-7097
SELECT + 50 * - 57 * COUNT ( * ) FROM tab1 AS cor0
----
-8550

onlyif mysql # aggregate syntax: 
query I rowsort label-7098
SELECT ALL - COUNT( + 4 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7098
SELECT ALL - COUNT ( + 4 ) FROM tab2 cor0
----
-3

query I rowsort
SELECT DISTINCT + 21 + + - 24 + 56 FROM tab1 AS cor0
----
53

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 8 * - ( + col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT 7 - - col1 AS col0 FROM tab2 AS cor0
----
58
74
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7102
SELECT + COUNT( - 30 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7102
SELECT + COUNT ( - 30 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT - col0 + + + col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 95 + + - 53 col2 FROM tab1
----
42
42
42

query I rowsort
SELECT - col0 * 27 - - - col2 * - + col0 * + col2 FROM tab2
----
100672
23092
250275

query II rowsort
SELECT ALL 85 * + 53 - - - col0, col2 + + - col2 AS col0 FROM tab0
----
4408
0
4418
0
4490
0

query III rowsort
SELECT * FROM tab1 WHERE NULL >= + + ( + 66 ) / + 7 * col2 - 62 * - + col0 + + col0
----

query I rowsort
SELECT ALL - col2 - col2 AS col1 FROM tab2
----
-116
-46
-80

query II rowsort
SELECT ALL + 93 - + 66 + + col2, col1 AS col0 FROM tab2
----
50
51
67
77
85
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + - col1 col0 FROM tab0 cor0
----
-100
-128
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col2 FROM tab1 AS cor0 WHERE 88 IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7112
SELECT - - CAST( NULL AS SIGNED ) * - - col2 / col2 + + 33 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7112
SELECT - - CAST ( NULL AS INTEGER ) * - - col2 / col2 + + 33 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7113
SELECT DISTINCT + - CAST( ( - - 6 ) AS SIGNED ) + + col2 AS col0 FROM tab2 cor0
----
17
34
52

skipif mysql # not compatible
query I rowsort label-7113
SELECT DISTINCT + - CAST ( ( - - 6 ) AS INTEGER ) + + col2 AS col0 FROM tab2 cor0
----
17
34
52

query I rowsort
SELECT DISTINCT - col1 * + 68 FROM tab0 AS cor0
----
-1428
-5508
-68

query II rowsort
SELECT + col1 AS col1, col1 * col0 * col1 FROM tab0 AS cor0
----
1
97
21
38367
81
98415

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT ALL MAX( DISTINCT - ( col1 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7116
SELECT ALL MAX ( DISTINCT - ( col1 ) ) FROM tab0
----
-1

query I rowsort
SELECT + col2 * + - col2 AS col0 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT DISTINCT - - MIN( + + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7118
SELECT DISTINCT - - MIN ( + + col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7119
SELECT ALL + COUNT( * ) * - - CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL + COUNT ( * ) * - - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT + + ( + 46 ) AS col1 FROM tab1 cor0
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7121
SELECT ALL - col2 * - - 31 + - - 39 * + - CAST( NULL AS SIGNED ), + 62 AS col0 FROM tab2 AS cor0
----
NULL
62
NULL
62
NULL
62

skipif mysql # not compatible
query II rowsort label-7121
SELECT ALL - col2 * - - 31 + - - 39 * + - CAST ( NULL AS INTEGER ), + 62 AS col0 FROM tab2 AS cor0
----
NULL
62
NULL
62
NULL
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7122
SELECT ALL 71 DIV - + COUNT( * ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL 71 / - + COUNT ( * ) AS col0 FROM tab2
----
-23

query III rowsort
SELECT * FROM tab0 WHERE NOT + 5 NOT IN ( 11, + col2 )
----

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT - + col0 / - col2 <> 13
----

query I rowsort
SELECT + + 67 * - col1 FROM tab1 WHERE NOT col1 + - 94 NOT IN ( - + 57, + 64 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT ALL MIN( DISTINCT - + 19 ) FROM tab2
----
-19

skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL MIN ( DISTINCT - + 19 ) FROM tab2
----
-19

query III rowsort
SELECT * FROM tab1 WHERE NOT - 3 NOT BETWEEN - 4 - - + col2 * - + col0 + - - col2 AND NULL
----

query I rowsort
SELECT - 43 + + - col2 AS col1 FROM tab0
----
-142
-53
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7129
SELECT DISTINCT + 60 * COUNT( * ) FROM tab1
----
180

skipif mysql # not compatible
query I rowsort label-7129
SELECT DISTINCT + 60 * COUNT ( * ) FROM tab1
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-7130
SELECT DISTINCT + MAX( DISTINCT - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7130
SELECT DISTINCT + MAX ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL + col0 * + + col2 - - - col2 + - - 82 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT + 81 + + + COUNT( * ) AS col0 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-7132
SELECT + 81 + + + COUNT ( * ) AS col0 FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT + COUNT( DISTINCT col0 ) + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7133
SELECT + COUNT ( DISTINCT col0 ) + + COUNT ( * ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT DISTINCT - col0 * + col0 + 97 FROM tab1 AS cor0
----
-2504
-7128
-8184

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7136
SELECT DISTINCT - ( + CAST( - col1 AS SIGNED ) ) + + - col0 FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-7136
SELECT DISTINCT - ( + CAST ( - col1 AS INTEGER ) ) + + - col0 FROM tab2 AS cor0
----
-8
13
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> - ( col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + 52 + 97 col0 FROM tab2 AS cor0
----
200
216
226

query I rowsort
SELECT - - 66 * - 64 + - 75 * + + 3 * col1 FROM tab1 AS cor0
----
-14799
-5349
-7374

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7140
SELECT ALL - - 69 * - + CAST( + 89 AS SIGNED ) + + 64 + COUNT( * ) FROM tab0 AS cor0
----
-6074

skipif mysql # not compatible
query I rowsort label-7140
SELECT ALL - - 69 * - + CAST ( + 89 AS INTEGER ) + + 64 + COUNT ( * ) FROM tab0 AS cor0
----
-6074

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 <= ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT ALL - MIN( DISTINCT + col2 ) + ( + 55 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-7142
SELECT ALL - MIN ( DISTINCT + col2 ) + ( + 55 ) FROM tab0
----
45

query I rowsort
SELECT ( 79 ) FROM tab2
----
79
79
79

query I rowsort
SELECT DISTINCT + col2 - ( - col2 ) AS col1 FROM tab1
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7145
SELECT DISTINCT - col2 + + + CAST( col1 AS SIGNED ) AS col0 FROM tab2
----
28
37
9

skipif mysql # not compatible
query I rowsort label-7145
SELECT DISTINCT - col2 + + + CAST ( col1 AS INTEGER ) AS col0 FROM tab2
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7146
SELECT ALL col2 + - 97 * + CAST( NULL AS SIGNED ) / ( ( - - col0 ) ) + - col1 * - - col0 * - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL col2 + - 97 * + CAST ( NULL AS INTEGER ) / ( ( - - col0 ) ) + - col1 * - - col0 * - col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7147
SELECT ALL ( - col1 ) * 11 * + ( + col1 ) - + CAST( 96 AS SIGNED ) * + 77 col2, col0 FROM tab1
----
-31691
91
-7667
85
-9548
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7147
SELECT ALL ( - col1 ) * 11 * + ( + col1 ) - + CAST ( 96 AS INTEGER ) * + 77 col2, col0 FROM tab1
----
-31691
91
-7667
85
-9548
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7148
SELECT DISTINCT + col0 - + CAST( col1 AS SIGNED ) AS col1 FROM tab0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-7148
SELECT DISTINCT + col0 - + CAST ( col1 AS INTEGER ) AS col1 FROM tab0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7149
SELECT DISTINCT - ( + - COUNT( * ) ), MIN( + col0 ) col1 FROM tab2
----
3
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7149
SELECT DISTINCT - ( + - COUNT ( * ) ), MIN ( + col0 ) col1 FROM tab2
----
3
46

query I rowsort
SELECT ALL - - col0 * ( col2 ) FROM tab2 cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7151
SELECT DISTINCT + 82 - + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
82

skipif mysql # not compatible
query I rowsort label-7151
SELECT DISTINCT + 82 - + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col1 ) col0 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + 1 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( + - 29 >= NULL )
----

query II rowsort
SELECT DISTINCT - - 55 * + col1, - col1 * + ( + - 28 ) AS col1 FROM tab0 WHERE NOT - col0 / - col1 IS NULL
----
1155
588
4455
2268
55
28

query I rowsort
SELECT + 96 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 76 IS NULL
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # DIV for integer division: 
query I rowsort label-7156
SELECT - 80 DIV col1 FROM tab1
----
-1
-16
-5

skipif mysql # not compatible
query I rowsort label-7156
SELECT - 80 / col1 FROM tab1
----
-1
-16
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 86 col2, 72 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 29f7460c61aa493ef660ce00addbee35

query I rowsort
SELECT ALL + 31 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # aggregate syntax: 
query I rowsort label-7159
SELECT ALL - COUNT( * ) AS col2 FROM tab0 cor0 WHERE col1 * + col1 * - + col2 >= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7159
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE col1 * + col1 * - + col2 >= ( NULL )
----
0

query I rowsort
SELECT ALL - 52 * + + col2 AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-2444
-5148
-520

query II rowsort
SELECT - col1, col0 AS col1 FROM tab0 cor0 WHERE NOT + 79 IS NULL
----
-1
97
-21
87
-81
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, col2 + - - col0 col1 FROM tab2 AS cor0
----
23
69
40
104
58
133

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 col0 FROM tab0 cor0
----
79
79
79

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT IN ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col1 + + col0 ) <= col1
----
59
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT ALL MIN( DISTINCT 30 ) FROM tab2 cor0
----
30

skipif mysql # not compatible
query I rowsort label-7166
SELECT ALL MIN ( DISTINCT 30 ) FROM tab2 cor0
----
30

query I rowsort
SELECT + + col2 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT 76 * col0 + - - col0 FROM tab0 AS cor0
----
1155
6699
7469

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + ( + col1 ) / - + 32 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7170
SELECT - 53 * SUM( + - col0 ) AS col2 FROM tab2
----
9805

skipif mysql # not compatible
query I rowsort label-7170
SELECT - 53 * SUM ( + - col0 ) AS col2 FROM tab2
----
9805

onlyif mysql # aggregate syntax: 
query I rowsort label-7171
SELECT DISTINCT ( + COUNT( * ) ) + 89 FROM tab0
----
92

skipif mysql # not compatible
query I rowsort label-7171
SELECT DISTINCT ( + COUNT ( * ) ) + 89 FROM tab0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT DISTINCT MAX( col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-7172
SELECT DISTINCT MAX ( col0 ) AS col0 FROM tab0
----
97

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7173
SELECT CAST( + - 43 AS SIGNED ) DIV 30 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7173
SELECT CAST ( + - 43 AS INTEGER ) / 30 AS col1 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 / + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - + ( col0 ) col2 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * + + ( - col1 ) FROM tab0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-7177
SELECT DISTINCT + MAX( - 14 ) AS col2 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT + MAX ( - 14 ) AS col2 FROM tab1
----
-14

query I rowsort
SELECT 57 + + 47 FROM tab0 AS cor0
----
104
104
104

query I rowsort
SELECT ALL - 26 + + ( - - col0 ) * - - ( + col0 ) FROM tab2 AS cor0
----
2090
4070
5599

query I rowsort
SELECT ALL 96 + + 20 + - - 77 FROM tab1 AS cor0
----
193
193
193

query I rowsort
SELECT + col1 + - + col0 * - - col2 FROM tab1
----
-4882
-5010
-6141

query II rowsort
SELECT DISTINCT - col1 AS col0, - col0 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-51
-47
-91
-5
-85

query I rowsort
SELECT DISTINCT + 1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 33 = col0
----

query I rowsort
SELECT ALL - + 30 * - col2 * - col1 FROM tab2 cor0
----
-116580
-35190
-92400

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7186
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col2 + - + col2 AS col2, + col1 + + col1 + + col1 col0 FROM tab1 AS cor0
----
NULL
141
NULL
15
NULL
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7186
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col2 + - + col2 AS col2, + col1 + + col1 + + col1 col0 FROM tab1 AS cor0
----
NULL
141
NULL
15
NULL
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT MIN( + col2 ) * + - MAX( - col2 ) AS col0 FROM tab1 cor0
----
3481

skipif mysql # not compatible
query I rowsort label-7187
SELECT MIN ( + col2 ) * + - MAX ( - col2 ) AS col0 FROM tab1 cor0
----
3481

query I rowsort
SELECT - col1 * + - col1 AS col0 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT - 62 - col1 * 86 * 19 AS col0 FROM tab2 AS cor0
----
-109540
-125880
-83396

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT - + MIN( + + 54 ) - - + 26 FROM tab1 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-7190
SELECT - + MIN ( + + 54 ) - - + 26 FROM tab1 AS cor0
----
-28

query I rowsort
SELECT DISTINCT - col2 + + 27 AS col1 FROM tab2 AS cor0
----
-13
-31
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT + ( 55 ) - COUNT( * ) FROM tab2 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-7192
SELECT + ( 55 ) - COUNT ( * ) FROM tab2 AS cor0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7193
SELECT col2 - 39 + col1 + + CAST( NULL AS SIGNED ) * - ( 43 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7193
SELECT col2 - 39 + col1 + + CAST ( NULL AS INTEGER ) * - ( 43 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + - 88 / - 54 / - col0 AS col0 FROM tab1 AS cor0 WHERE - col2 = - + col0
----

query I rowsort
SELECT ALL - 78 * + ( - 5 ) - + + col2 AS col1 FROM tab1 AS cor0
----
294
322
331

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7196
SELECT DISTINCT - CAST( NULL AS DECIMAL ) - col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7196
SELECT DISTINCT - CAST ( NULL AS REAL ) - col1 FROM tab0
----
NULL

query I rowsort
SELECT - 6 - - col0 FROM tab1
----
45
79
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7198
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE ( CAST( NULL AS SIGNED ) + col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7198
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE ( CAST ( NULL AS INTEGER ) + col1 ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 45 + + + 58 * 32 AS col1 FROM tab0
----
1901

query I rowsort
SELECT DISTINCT 77 * + 41 FROM tab0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT DISTINCT - ( - + col0 ) AS col0 FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT - - col2 / - - col2 FROM tab1 WHERE 11 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7203
SELECT + CAST( + + 69 AS SIGNED ) AS col2 FROM tab1
----
69
69
69

skipif mysql # not compatible
query I rowsort label-7203
SELECT + CAST ( + + 69 AS INTEGER ) AS col2 FROM tab1
----
69
69
69

query I rowsort
SELECT - - 66 FROM tab2 cor0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7205
SELECT ALL - + MIN( - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7205
SELECT ALL - + MIN ( - col1 ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT + col1 * + 76 FROM tab0 cor0
----
1596
6156
76

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE 83 + - ( 63 ) IS NULL
----

query I rowsort
SELECT ( - + ( - + col2 ) ) AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7209
SELECT + 57 * + CAST( NULL AS SIGNED ) * 99 AS col0 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) * 16 BETWEEN + 45 * + 79 + - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-7209
SELECT + 57 * + CAST ( NULL AS INTEGER ) * 99 AS col0 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) * 16 BETWEEN + 45 * + 79 + - col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + + col0 * col2 NOT IN ( col2 ) )
----

query I rowsort
SELECT 95 AS col2 FROM tab0 cor0 WHERE NOT + col0 + + 95 BETWEEN - 82 AND 48
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7212
SELECT + - COUNT( * ) AS col0 FROM tab2 WHERE col0 * + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7212
SELECT + - COUNT ( * ) AS col0 FROM tab2 WHERE col0 * + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT + - COUNT( ALL + col0 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7213
SELECT + - COUNT ( ALL + col0 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7214
SELECT - 62 * - COUNT( * ) + + 73 FROM tab1
----
259

skipif mysql # not compatible
query I rowsort label-7214
SELECT - 62 * - COUNT ( * ) + + 73 FROM tab1
----
259

onlyif mysql # aggregate syntax: 
query I rowsort label-7215
SELECT + 69 + + MIN( DISTINCT col1 ) AS col2 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-7215
SELECT + 69 + + MIN ( DISTINCT col1 ) AS col2 FROM tab1
----
74

query I rowsort
SELECT 56 + - 77 AS col0 FROM tab1
----
-21
-21
-21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7217
SELECT + COUNT( * ) + - COUNT( * ) DIV - MAX( - col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7217
SELECT + COUNT ( * ) + - COUNT ( * ) / - MAX ( - col0 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT ALL MIN( - col2 ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-7218
SELECT ALL MIN ( - col2 ) AS col2 FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7219
SELECT ALL + CAST( NULL AS SIGNED ) * - - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL + CAST ( NULL AS INTEGER ) * - - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT + COUNT( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7220
SELECT + COUNT ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT ALL + COUNT( col2 ) * 23 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL + COUNT ( col2 ) * 23 FROM tab2 AS cor0
----
69

query I rowsort
SELECT + ( - 78 ) FROM tab0 AS cor0
----
-78
-78
-78

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * - - col2 * + col1 + 98 + ( 9 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL AVG ( - - col2 ) col0 FROM tab2 AS cor0 WHERE NULL IN ( col2 / + - col0 )
----
NULL

query I rowsort
SELECT + 23 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT DISTINCT + ( COUNT( * ) ) + 30 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-7226
SELECT DISTINCT + ( COUNT ( * ) ) + 30 FROM tab1
----
33

query I rowsort
SELECT DISTINCT - 46 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT ALL + + SUM( DISTINCT + 95 ) + + + 13 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
108

skipif mysql # not compatible
query I rowsort label-7228
SELECT ALL + + SUM ( DISTINCT + 95 ) + + + 13 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7229
SELECT DISTINCT COUNT( * ) - - - ( + + ( + - COUNT( * ) ) ) * - COUNT( * ) DIV + - 40 AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7229
SELECT DISTINCT COUNT ( * ) - - - ( + + ( + - COUNT ( * ) ) ) * - COUNT ( * ) / + - 40 AS col1 FROM tab0
----
3

query I rowsort
SELECT ALL - col0 - - col2 - + + col1 FROM tab2
----
-101
-74
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7231
SELECT ALL - 61 - - COUNT( * ) FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-7231
SELECT ALL - 61 - - COUNT ( * ) FROM tab1
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7232
SELECT + col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 57 * + - col1 * + CAST( NULL AS SIGNED ) AND + - col2
----

skipif mysql # not compatible
query I rowsort label-7232
SELECT + col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 57 * + - col1 * + CAST ( NULL AS INTEGER ) AND + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT DISTINCT + - ( + - 98 ) + COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT - col2 * col2 IS NOT NULL
----
98

skipif mysql # not compatible
query I rowsort label-7233
SELECT DISTINCT + - ( + - 98 ) + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT - col2 * col2 IS NOT NULL
----
98

query I rowsort
SELECT DISTINCT col2 * + - 39 AS col0 FROM tab0 AS cor0
----
-1833
-3861
-390

query I rowsort
SELECT - + col1 + 46 FROM tab0 AS cor0
----
-35
25
45

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col2 * + + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( 23 ) col0, col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
23
59
23
68
23
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 17 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ( - 90 ) AS col2, + col1 AS col0 FROM tab0 AS cor0
----
-90
1
-90
21
-90
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7240
SELECT ALL col1 DIV - 50 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7240
SELECT ALL col1 / - 50 FROM tab0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7241
SELECT * FROM tab0 WHERE NOT + CAST( + col2 AS SIGNED ) - - 13 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7241
SELECT * FROM tab0 WHERE NOT + CAST ( + col2 AS INTEGER ) - - 13 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7242
SELECT ALL COUNT( DISTINCT + col1 ) DIV - + ( COUNT( * ) ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7242
SELECT ALL COUNT ( DISTINCT + col1 ) / - + ( COUNT ( * ) ) AS col0 FROM tab2
----
-1

query I rowsort
SELECT - ( + - 70 ) FROM tab1
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7244
SELECT - COUNT( - col0 ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7244
SELECT - COUNT ( - col0 ) col0 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - ( 89 ) AS col0 FROM tab0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7246
SELECT - ( + MAX( 79 ) ) AS col1 FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-7246
SELECT - ( + MAX ( 79 ) ) AS col1 FROM tab1
----
-79

query I rowsort
SELECT - ( - - 86 ) AS col1 FROM tab2
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7248
SELECT SUM( col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-7248
SELECT SUM ( col2 ) AS col1 FROM tab1
----
223

query I rowsort
SELECT DISTINCT ( ( + col2 ) ) FROM tab1
----
59
68
96

query I rowsort
SELECT - 3 * + col2 AS col1 FROM tab2 cor0
----
-120
-174
-69

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-59
-68
-96

query II rowsort
SELECT DISTINCT + col1 AS col2, 59 AS col0 FROM tab2 AS cor0
----
51
59
67
59
77
59

query II rowsort
SELECT ALL col0, + col2 + 76 AS col1 FROM tab2
----
46
99
64
116
75
134

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7254
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( + CAST( NULL AS SIGNED ) ) IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

skipif mysql # not compatible
query IIIIII rowsort label-7254
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT ALL - - 24 * + col1 + + - col2 AS col0 FROM tab1 AS cor0
----
1060
240
61

query I rowsort
SELECT ALL - col2 + 97 FROM tab0 AS cor0
----
-2
50
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 29 col1 FROM tab2 cor0
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT DISTINCT MIN( ALL - + col2 ) + 74 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-7258
SELECT DISTINCT MIN ( ALL - + col2 ) + 74 FROM tab2
----
16

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 73 > + - 82 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE - 44 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * - - 15 AS col2 FROM tab0
----
1485
150
705

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT ALL + MIN( - 18 ) + 63 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-7262
SELECT ALL + MIN ( - 18 ) + 63 FROM tab1
----
45

query I rowsort
SELECT DISTINCT 60 + + col1 + - - 90 * + + 57 AS col1 FROM tab0
----
5191
5211
5271

query I rowsort
SELECT ( + + col1 ) + col1 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT - - ( + 32 ) * + 8 + MAX( + 78 ) + COUNT( ALL col2 ) FROM tab0 cor0
----
337

skipif mysql # not compatible
query I rowsort label-7265
SELECT - - ( + 32 ) * + 8 + MAX ( + 78 ) + COUNT ( ALL col2 ) FROM tab0 cor0
----
337

query I rowsort
SELECT DISTINCT - + 57 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7267
SELECT DISTINCT - COUNT( + 95 ) - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7267
SELECT DISTINCT - COUNT ( + 95 ) - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT ALL COUNT( * ) - MAX( ALL + 3 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7268
SELECT ALL COUNT ( * ) - MAX ( ALL + 3 ) AS col0 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT - col0 * + col0 - + + 20 AS col0, col2 * + 51 AS col0 FROM tab1 cor0
----
-2621
4896
-7245
3009
-8301
3468

onlyif mysql # DIV for integer division: 
query I rowsort label-7270
SELECT ALL - - 84 DIV - + col2 AS col0 FROM tab0 AS cor0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-7270
SELECT ALL - - 84 / - + col2 AS col0 FROM tab0 AS cor0
----
-1
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT - 99 * - COUNT( * ) FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-7271
SELECT - 99 * - COUNT ( * ) FROM tab0 AS cor0
----
297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7272
SELECT + CAST( NULL AS SIGNED ) * + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7272
SELECT + CAST ( NULL AS INTEGER ) * + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7273
SELECT ( + col0 ) DIV - - col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7273
SELECT ( + col0 ) / - - col0 FROM tab1
----
1
1
1

query I rowsort
SELECT DISTINCT 51 * - - 89 FROM tab2
----
4539

query I rowsort
SELECT DISTINCT - ( - 42 ) FROM tab1
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT - + MAX( col0 ) FROM tab0 WHERE NOT + 73 * 51 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7276
SELECT - + MAX ( col0 ) FROM tab0 WHERE NOT + 73 * 51 = NULL
----
NULL

query I rowsort
SELECT ALL - 54 FROM tab2 WHERE + + 8 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7278
SELECT DISTINCT col2 * - 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-7278
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7279
SELECT + col0 * - + CAST( NULL AS SIGNED ) * + - 71 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7279
SELECT + col0 * - + CAST ( NULL AS INTEGER ) * + - 71 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT + col1 * col0, 11 AS col2 FROM tab2 cor0
----
2346
11
4928
11
5025
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7281
SELECT + MAX( DISTINCT - 89 ) FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-7281
SELECT + MAX ( DISTINCT - 89 ) FROM tab0 AS cor0
----
-89

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( NOT - col2 * 87 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 + + col0 * - + col1 FROM tab0
----
-1230
-1914
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-7284
SELECT - SUM( 95 ) FROM tab0 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-7284
SELECT - SUM ( 95 ) FROM tab0 AS cor0
----
-285

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 * - + 36 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7286
SELECT ALL + 10 * 29 * - 72 + ( - 78 ) * - - MIN( + + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7286
SELECT ALL + 10 * 29 * - 72 + ( - 78 ) * - - MIN ( + + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT 23 * + col1 * - + col0 AS col1, 92 * - col1 FROM tab2 AS cor0
----
-113344
-7084
-115575
-6164
-53958
-4692

query I rowsort
SELECT - + 99 + - col1 - - ( + 78 ) FROM tab1 AS cor0
----
-26
-35
-68

query I rowsort
SELECT DISTINCT - ( - col0 ) + - col1 AS col0 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7290
SELECT DISTINCT + MIN( ALL + col2 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-7290
SELECT DISTINCT + MIN ( ALL + col2 ) FROM tab2 cor0
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7291
SELECT CAST( AVG ( ALL - col2 ) AS SIGNED ) + MIN( DISTINCT col1 ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-7291
SELECT CAST ( AVG ( ALL - col2 ) AS INTEGER ) + MIN ( DISTINCT col1 ) FROM tab1
----
-69

query II rowsort
SELECT DISTINCT col2 * + col2 AS col2, - col1 AS col2 FROM tab0
----
100
-21
2209
-81
9801
-1

query II rowsort
SELECT col1 AS col2, 36 FROM tab0
----
1
36
21
36
81
36

query II rowsort
SELECT col0, col2 * - - col1 AS col0 FROM tab0
----
15
3807
87
210
97
99

onlyif mysql # DIV for integer division: 
query II rowsort label-7295
SELECT ALL col1, ( col1 ) DIV - col0 AS col0 FROM tab2
----
51
-1
67
0
77
-1

skipif mysql # not compatible
query II rowsort label-7295
SELECT ALL col1, ( col1 ) / - col0 AS col0 FROM tab2
----
51
-1
67
0
77
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7296
SELECT 38 + col2 + 96 DIV - col0 FROM tab1 WHERE 58 + col2 * + - col2 * - - col1 DIV + + col0 * - ( + 89 ) IS NOT NULL
----
105
133
96

skipif mysql # not compatible
query I rowsort label-7296
SELECT 38 + col2 + 96 / - col0 FROM tab1 WHERE 58 + col2 * + - col2 * - - col1 / + + col0 * - ( + 89 ) IS NOT NULL
----
105
133
96

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7297
SELECT + CAST( col1 AS SIGNED ) DIV - col1 + - col2 AS col1 FROM tab1 cor0
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-7297
SELECT + CAST ( col1 AS INTEGER ) / - col1 + - col2 AS col1 FROM tab1 cor0
----
-60
-69
-97

query I rowsort
SELECT - 36 * + - 30 FROM tab0 cor0 WHERE ( NOT col2 = NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7299
SELECT ALL + - col0 + - CAST( + ( + col2 ) AS SIGNED ) + - col2 * col1 / + - CAST( NULL AS SIGNED ) * + + col1 + ( - col0 ) + + col0 * col1 / - col0 - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7299
SELECT ALL + - col0 + - CAST ( + ( + col2 ) AS INTEGER ) + - col2 * col1 / + - CAST ( NULL AS INTEGER ) * + + col1 + ( - col0 ) + + col0 * col1 / - col0 - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col0 + 67 AS col1 FROM tab1 AS cor0
----
-18
-24
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7301
SELECT - 43 - CAST( + - col2 AS SIGNED ) + - 57 + - 4 * 17 + col0 * col0 col1 FROM tab2
----
1971
3968
5515

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7301
SELECT - 43 - CAST ( + - col2 AS INTEGER ) + - 57 + - 4 * 17 + col0 * col0 col1 FROM tab2
----
1971
3968
5515

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + col2 + + col2 + - col2 AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 14 * col1 col2 FROM tab2 AS cor0
----
-1078
-714
-938

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT ALL + - ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL + - ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL 5 * + - col1 FROM tab2 AS cor0
----
-255
-335
-385

onlyif mysql # aggregate syntax: 
query I rowsort label-7306
SELECT DISTINCT - MIN( + 9 ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7306
SELECT DISTINCT - MIN ( + 9 ) AS col0 FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-7307
SELECT ALL + ( + 23 ) * + + 48 AS col1, + COUNT( * ) + 62 FROM tab2
----
1104
65

skipif mysql # not compatible
query II rowsort label-7307
SELECT ALL + ( + 23 ) * + + 48 AS col1, + COUNT ( * ) + 62 FROM tab2
----
1104
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * + col0 * + - col0 col0 FROM tab1
----
-36125
-36414
-389207

query I rowsort
SELECT ALL 97 FROM tab0 WHERE ( + col2 + - 56 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7310
SELECT ALL 60 DIV + - CAST( - col0 AS SIGNED ) FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL 60 / + - CAST ( - col0 AS INTEGER ) FROM tab2
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7311
SELECT - SUM( + ( - CAST( NULL AS DECIMAL ) ) ) * - 12 col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7311
SELECT - SUM ( + ( - CAST ( NULL AS REAL ) ) ) * - 12 col2 FROM tab1
----
NULL

query II rowsort
SELECT + 57, 34 AS col1 FROM tab2
----
57
34
57
34
57
34

query II rowsort
SELECT - col0 AS col1, col2 + - 11 FROM tab2
----
-46
12
-64
29
-75
47

query I rowsort
SELECT ALL 49 * 88 FROM tab1
----
4312
4312
4312

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT DISTINCT SUM( ALL - 30 ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-7315
SELECT DISTINCT SUM ( ALL - 30 ) FROM tab1
----
-90

query I rowsort
SELECT + 15 AS col2 FROM tab2 WHERE NOT col1 IS NULL
----
15
15
15

query II rowsort
SELECT DISTINCT - col2, ( - col2 ) FROM tab0 AS cor0
----
-10
-10
-47
-47
-99
-99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 * - - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT ALL + MAX( - + 93 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col0 AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7319
SELECT ALL + MAX ( - + 93 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col0 AND - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT DISTINCT SUM( - ( col1 ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-7320
SELECT DISTINCT SUM ( - ( col1 ) ) FROM tab0
----
-103

query I rowsort
SELECT DISTINCT + col0 * col1 - col2 AS col2 FROM tab2
----
2323
4888
4967

onlyif mysql # aggregate syntax: 
query I rowsort label-7322
SELECT COUNT( * ) * 89 FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-7322
SELECT COUNT ( * ) * 89 FROM tab0
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT ( 11 ) + 54 * COUNT( ALL col2 ) AS col2 FROM tab0
----
173

skipif mysql # not compatible
query I rowsort label-7323
SELECT ( 11 ) + 54 * COUNT ( ALL col2 ) AS col2 FROM tab0
----
173

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT ALL COUNT( ( col2 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL COUNT ( ( col2 ) ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT DISTINCT ( + SUM( DISTINCT - col2 ) ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-7325
SELECT DISTINCT ( + SUM ( DISTINCT - col2 ) ) FROM tab1
----
-223

query I rowsort
SELECT col2 + col1 * + 83 FROM tab0
----
1753
182
6770

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - 4 * col2 col1 FROM tab2
----
115
200
290

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7328
SELECT ALL col2 * - CAST( NULL AS SIGNED ) + 51 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL col2 * - CAST ( NULL AS INTEGER ) + 51 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 26 * + col1 - col0 FROM tab1
----
-1313
-215
-415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7330
SELECT + col1 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7330
SELECT + col1 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + col0 - col1 AS col2 FROM tab1
----
-4910
-5020
-6235

query I rowsort
SELECT ( + 2 ) AS col2 FROM tab0
----
2
2
2

query I rowsort
SELECT ALL col1 + + ( col1 ) AS col2 FROM tab1
----
10
28
94

query I rowsort
SELECT ALL - col2 + col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT MAX( + 79 ) AS col1 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-7335
SELECT MAX ( + 79 ) AS col1 FROM tab0
----
79

query I rowsort
SELECT DISTINCT + col0 * 16 AS col2 FROM tab0
----
1392
1552
240

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 80 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7338
SELECT ALL 40 DIV col1 FROM tab0
----
0
1
40

skipif mysql # not compatible
query I rowsort label-7338
SELECT ALL 40 / col1 FROM tab0
----
0
1
40

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7339
SELECT + CAST( + col1 AS SIGNED ) DIV 2 FROM tab1
----
2
23
7

skipif mysql # not compatible
query I rowsort label-7339
SELECT + CAST ( + col1 AS INTEGER ) / 2 FROM tab1
----
2
23
7

onlyif mysql # DIV for integer division: 
query I rowsort label-7340
SELECT - 20 DIV 37 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7340
SELECT - 20 / 37 AS col2 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7341
SELECT 86 DIV - ( - col1 ) FROM tab0
----
1
4
86

skipif mysql # not compatible
query I rowsort label-7341
SELECT 86 / - ( - col1 ) FROM tab0
----
1
4
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7342
SELECT ALL + CAST( NULL AS SIGNED ) - col1 / - 46 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL + CAST ( NULL AS INTEGER ) - col1 / - 46 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 92 * col0 AS col1 FROM tab2
----
4232
5888
6900

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 WHERE col2 * col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab2 WHERE ( NULL ) IS NULL
----
23
40
58

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( 44 ) - - col0 >= + col0 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + ( col1 ) * + 85 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + col2 ) * 90 AS col2 FROM tab0
----
4230
8910
900

onlyif mysql # aggregate syntax: 
query I rowsort label-7349
SELECT DISTINCT - MIN( - 77 ) AS col2 FROM tab1 cor0
----
77

skipif mysql # not compatible
query I rowsort label-7349
SELECT DISTINCT - MIN ( - 77 ) AS col2 FROM tab1 cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT ALL + MIN( - col1 ) col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7350
SELECT ALL + MIN ( - col1 ) col1 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT + MAX( DISTINCT 48 ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-7351
SELECT + MAX ( DISTINCT 48 ) FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT 65 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7352
SELECT 65 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab2 AS cor0 WHERE + col0 * col2 - + 73 / col2 NOT IN ( col1 )
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7354
SELECT - col2 DIV 93 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7354
SELECT - col2 / 93 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * 53 AS col0 FROM tab0 AS cor0
----
2491
5247
530

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN NULL AND ( col2 + col2 / + ( - col0 ) )
----

query I rowsort
SELECT ALL - col0 FROM tab1 cor0 WHERE NOT NULL < col0 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7358
SELECT ALL + + 94 * + MIN( ALL col2 ) FROM tab1 AS cor0
----
5546

skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL + + 94 * + MIN ( ALL col2 ) FROM tab1 AS cor0
----
5546

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7360
SELECT MAX( + + 37 ) col2 FROM tab0
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7360
SELECT MAX ( + + 37 ) col2 FROM tab0
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7361
SELECT col2 * 61 AS col0 FROM tab2 WHERE NOT + CAST( col0 AS SIGNED ) - 51 NOT IN ( col1 + + col1 * + col2 )
----

skipif mysql # not compatible
query I rowsort label-7361
SELECT col2 * 61 AS col0 FROM tab2 WHERE NOT + CAST ( col0 AS INTEGER ) - 51 NOT IN ( col1 + + col1 * + col2 )
----

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT - col0 * - col2 IS NULL
----
51
67
77

query I rowsort
SELECT col0 + - col1 / + col1 FROM tab1 WHERE NOT - col1 NOT IN ( + col0 * col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 38 + col2 = col0 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT + COUNT( * ) + - + 87 col0 FROM tab0
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7365
SELECT + COUNT ( * ) + - + 87 col0 FROM tab0
----
-84

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 18 + 66 ) IN ( - 9 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + 29 * 5 + + 60 * + col0 FROM tab0
----
17835
19885
3075

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NULL BETWEEN NULL AND ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7369
SELECT + col2 * CAST( NULL AS SIGNED ) + 5 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7369
SELECT + col2 * CAST ( NULL AS INTEGER ) + 5 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 87 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - col1 + + 23 AS col0 FROM tab2 AS cor0
----
-28
-44
-54

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 66 * 14 < + col0 * col1
----
91
47
68

query I rowsort
SELECT + 26 * col0 + + 54 * col2 AS col1 FROM tab1 AS cor0
----
5396
6038
6510

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NULL <= ( + col2 + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 38 >= - 76
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 IN ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + 59 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * 8 + - 82 + col0 AS col2 FROM tab1 AS cor0
----
385
43
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT COUNT( * ) + 59 AS col2 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-7379
SELECT COUNT ( * ) + 59 AS col2 FROM tab0 AS cor0
----
62

query I rowsort
SELECT + col2 + - col2 + + - ( + ( + 53 ) ) FROM tab1 AS cor0
----
-53
-53
-53

query I rowsort
SELECT DISTINCT + col2 * - - 94 FROM tab2 AS cor0
----
2162
3760
5452

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT - - 30 + - ( COUNT( * ) ) FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-7382
SELECT - - 30 + - ( COUNT ( * ) ) FROM tab0 AS cor0
----
27

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IS NULL OR NOT NULL NOT BETWEEN 26 + col2 AND 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + col1 ) + + + 61 FROM tab2 AS cor0
----
-16
-6
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7385
SELECT 71 + - col2 * - CAST( col0 AS SIGNED ) FROM tab1 AS cor0 WHERE - col1 + - - 43 + 47 * - col0 IN ( + col2 / col2 + - 97 )
----

skipif mysql # not compatible
query I rowsort label-7385
SELECT 71 + - col2 * - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0 WHERE - col1 + - - 43 + 47 * - col0 IN ( + col2 / col2 + - 97 )
----

query I rowsort
SELECT DISTINCT + col2 + col2 * + 83 AS col2 FROM tab1
----
4956
5712
8064

query I rowsort
SELECT ALL - col2 + - ( - col1 ) AS col0 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT DISTINCT - 12 * col2 AS col1 FROM tab0 WHERE NULL IS NULL
----
-1188
-120
-564

query I rowsort
SELECT 13 AS col1 FROM tab1 WHERE - col2 IN ( + - 61 * - col2 )
----

query I rowsort
SELECT DISTINCT - col0 - + - 56 AS col1 FROM tab2
----
-19
-8
10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 = ( + - col0 * - - ( - 11 ) * + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7392
SELECT DISTINCT col2 * + col0 FROM tab1 AS cor0 WHERE ( - ( - 61 ) / - CAST( NULL AS DECIMAL ) ) NOT BETWEEN + 71 AND ( col1 )
----

skipif mysql # not compatible
query I rowsort label-7392
SELECT DISTINCT col2 * + col0 FROM tab1 AS cor0 WHERE ( - ( - 61 ) / - CAST ( NULL AS REAL ) ) NOT BETWEEN + 71 AND ( col1 )
----

query I rowsort
SELECT - + col1 * + col1 * - + ( col2 ) FROM tab1 AS cor0
----
1475
150212
18816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab2 AS cor0 WHERE NOT NULL >= ( - ( ( 69 ) ) )
----

query I rowsort
SELECT DISTINCT + 82 * col1 AS col2 FROM tab2 AS cor0
----
4182
5494
6314

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 88 NOT IN ( - col2, 2 * - + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7396
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 88 NOT IN ( - col2, 2 * - + col2 )
----
0

query III rowsort
SELECT - 62 AS col2, 49 AS col0, col1 * - + col2 + 35 FROM tab0
----
9 values hashing to 25de649c9d5f913d5d2aece2551c46da

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT ( + col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * col2 IN ( - 75 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7400
SELECT + col0 DIV - ( 78 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7400
SELECT + col0 / - ( 78 ) AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7401
SELECT + COUNT( * ) AS col1, 76 AS col0 FROM tab1
----
3
76

skipif mysql # not compatible
query II rowsort label-7401
SELECT + COUNT ( * ) AS col1, 76 AS col0 FROM tab1
----
3
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT DISTINCT + MAX( + + col2 ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7402
SELECT DISTINCT + MAX ( + + col2 ) AS col2 FROM tab1
----
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 72 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7404
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, - 41 FROM tab2 cor0
----
NULL
-41

skipif mysql # not compatible
query II rowsort label-7404
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, - 41 FROM tab2 cor0
----
NULL
-41

query I rowsort
SELECT DISTINCT - col1 + 72 AS col0 FROM tab0 AS cor0
----
-9
51
71

onlyif mysql # DIV for integer division: 
query II rowsort label-7406
SELECT ALL 71 AS col2, - 33 DIV col1 * - 16 FROM tab2 AS cor0
----
71
0
71
0
71
0

skipif mysql # not compatible
query II rowsort label-7406
SELECT ALL 71 AS col2, - 33 / col1 * - 16 FROM tab2 AS cor0
----
71
0
71
0
71
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7407
SELECT + col1 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7407
SELECT + col1 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7408
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7408
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 col2 FROM tab2 cor0 WHERE ( NOT - col0 IN ( + col0 * - - col2 ) )
----
78
78
78

query I rowsort
SELECT + col1 * + col1 FROM tab2 AS cor0 WHERE - 63 IS NOT NULL
----
2601
4489
5929

onlyif mysql # DIV for integer division: 
query I rowsort label-7411
SELECT - - 88 DIV + col2 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7411
SELECT - - 88 / + col2 FROM tab2 AS cor0
----
1
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT DISTINCT + COUNT( * ) * - + 80 FROM tab2 cor0
----
-240

skipif mysql # not compatible
query I rowsort label-7412
SELECT DISTINCT + COUNT ( * ) * - + 80 FROM tab2 cor0
----
-240

query I rowsort
SELECT - + 25 * - col2 - + 18 FROM tab0 AS cor0
----
1157
232
2457

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT MIN( DISTINCT + 46 ) col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7414
SELECT MIN ( DISTINCT + 46 ) col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
46

query I rowsort
SELECT + col2 - + ( 74 ) AS col0 FROM tab0 cor0
----
-27
-64
25

query I rowsort
SELECT DISTINCT - 54 + - 74 AS col0 FROM tab0 AS cor0
----
-128

query I rowsort
SELECT ALL + 51 * + col0 + + col0 FROM tab0
----
4524
5044
780

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT ALL 19 * + SUM( DISTINCT + col2 ) - - COUNT( * ) AS col2 FROM tab1
----
4240

skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL 19 * + SUM ( DISTINCT + col2 ) - - COUNT ( * ) AS col2 FROM tab1
----
4240

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT + ( 39 ) + + MAX( + col1 ) FROM tab0
----
120

skipif mysql # not compatible
query I rowsort label-7419
SELECT + ( 39 ) + + MAX ( + col1 ) FROM tab0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-7420
SELECT ALL + 18 - COUNT( * ) AS col0 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-7420
SELECT ALL + 18 - COUNT ( * ) AS col0 FROM tab1
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - + col1 col1 FROM tab0
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7422
SELECT * FROM tab1 WHERE ( + - col1 + - CAST( NULL AS SIGNED ) + - + ( + ( + 79 ) ) - - col1 * ( + col2 ) / 82 ) BETWEEN CAST( col2 AS SIGNED ) AND 55
----

skipif mysql # not compatible
query III rowsort label-7422
SELECT * FROM tab1 WHERE ( + - col1 + - CAST ( NULL AS INTEGER ) + - + ( + ( + 79 ) ) - - col1 * ( + col2 ) / 82 ) BETWEEN CAST ( col2 AS INTEGER ) AND 55
----

query I rowsort
SELECT ALL col0 - - + 79 AS col2 FROM tab0
----
166
176
94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < + 25 + - 53
----

query II rowsort
SELECT DISTINCT col2 AS col2, + 67 FROM tab0
----
10
67
47
67
99
67

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT + 32 * - + COUNT( * ) FROM tab2 WHERE NOT 91 < + col1 - + col2
----
-96

skipif mysql # not compatible
query I rowsort label-7426
SELECT + 32 * - + COUNT ( * ) FROM tab2 WHERE NOT 91 < + col1 - + col2
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT + COUNT( * ) * - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7427
SELECT + COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-7428
SELECT + + 63 * col0 * + col0 DIV + col0, - col1 AS col1 FROM tab0 AS cor0
----
5481
-21
6111
-1
945
-81

skipif mysql # not compatible
query II rowsort label-7428
SELECT + + 63 * col0 * + col0 / + col0, - col1 AS col1 FROM tab0 AS cor0
----
5481
-21
6111
-1
945
-81

query I rowsort
SELECT - + 9 * - - 91 FROM tab1 AS cor0
----
-819
-819
-819

query I rowsort
SELECT DISTINCT - - 10 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT - ( + + COUNT( * ) ) * - 36 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( ( NOT NULL < ( - 5 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-7431
SELECT - ( + + COUNT ( * ) ) * - 36 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( ( NOT NULL < ( - 5 ) ) )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col1, - col0 + col0 - - 46, - 46 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IS NULL OR NOT col1 < + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7434
SELECT - ( + CAST( NULL AS SIGNED ) ), + COUNT( * ) AS col0 FROM tab2 cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7434
SELECT - ( + CAST ( NULL AS INTEGER ) ), + COUNT ( * ) AS col0 FROM tab2 cor0
----
NULL
3

query I rowsort
SELECT DISTINCT + col1 * + 3 AS col0 FROM tab1 AS cor0
----
141
15
42

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 38 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 + + 16 FROM tab2
----
39
56
74

onlyif mysql # aggregate syntax: 
query II rowsort label-7438
SELECT ALL - - SUM( ALL - col2 ) AS col0, COUNT( + col2 ) + COUNT( * ) FROM tab1 WHERE NOT - 35 IN ( col1, + col2 + + + col2 )
----
-223
6

skipif mysql # not compatible
query II rowsort label-7438
SELECT ALL - - SUM ( ALL - col2 ) AS col0, COUNT ( + col2 ) + COUNT ( * ) FROM tab1 WHERE NOT - 35 IN ( col1, + col2 + + + col2 )
----
-223
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7439
SELECT ALL * FROM tab0 WHERE NOT + col0 + - + 87 IN ( col0 + + CAST( + col1 AS SIGNED ) / - - 71, 85 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7439
SELECT ALL * FROM tab0 WHERE NOT + col0 + - + 87 IN ( col0 + + CAST ( + col1 AS INTEGER ) / - - 71, 85 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 69 + - col1 * col1 * + 56 * + col2 AS col0 FROM tab1
----
-1053765
-82669
-8411941

query II rowsort
SELECT 71 AS col1, col0 AS col2 FROM tab0 cor0
----
71
15
71
87
71
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, col2 AS col0 FROM tab0 AS cor0
----
15
47
87
10
97
99

query II rowsort
SELECT DISTINCT + + 74, col2 AS col0 FROM tab0 AS cor0
----
74
10
74
47
74
99

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 12 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + col0 + - col1 - - ( - 98 ) FROM tab1 AS cor0
----
-163
-188
-236

query I rowsort
SELECT DISTINCT 84 * 30 AS col2 FROM tab0
----
2520

onlyif mysql # DIV for integer division: 
query I rowsort label-7447
SELECT DISTINCT + col0 DIV + + 77 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT + col0 / + + 77 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT ( - col0 ) + col2 AS col2 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT ALL + col2 + - - ( + + col0 ) AS col1 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7450
SELECT + CAST( + - col1 AS SIGNED ) * + col1 + - - col0 + - + col2 FROM tab1 cor0
----
-2186
-241
1

skipif mysql # not compatible
query I rowsort label-7450
SELECT + CAST ( + - col1 AS INTEGER ) * + col1 + - - col0 + - + col2 FROM tab1 cor0
----
-2186
-241
1

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( col0, + col0, col0 )
----

query II rowsort
SELECT DISTINCT + + ( + + ( + - 59 ) ) + + col2 AS col2, - col2 FROM tab2 AS cor0
----
-1
-58
-19
-40
-36
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7453
SELECT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----
0

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * - col0 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7456
SELECT CAST( NULL AS SIGNED ) * + COUNT( + ( + + 14 ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7456
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( + ( + + 14 ) ) AS col1 FROM tab2
----
NULL

query II rowsort
SELECT ALL col1 * + - 17, + 59 AS col0 FROM tab0
----
-1377
59
-17
59
-357
59

query I rowsort
SELECT DISTINCT col1 * + + col0 * col2 FROM tab2
----
197120
291450
53958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - ( - col1 ) col0 FROM tab1
----
1344
295
3196

query II rowsort
SELECT ALL col1 * - 44 AS col0, col1 FROM tab1
----
-2068
47
-220
5
-616
14

query I rowsort
SELECT DISTINCT - col1 * 17 FROM tab0 AS cor0
----
-1377
-17
-357

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 col1 FROM tab2 AS cor0
----
10
10
10

onlyif mysql # DIV for integer division: 
query I rowsort label-7463
SELECT ALL + - col1 DIV - ( col0 ) FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL + - col1 / - ( col0 ) FROM tab2 cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7464
SELECT ALL COUNT( DISTINCT - col2 ), + COUNT( col0 ) AS col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7464
SELECT ALL COUNT ( DISTINCT - col2 ), + COUNT ( col0 ) AS col2 FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT ALL - + col2 FROM tab2 WHERE NOT + 12 * 68 IS NULL
----
-23
-40
-58

query I rowsort
SELECT + 24 * ( col2 ) * - col0 * - 78 FROM tab2
----
1980576
4792320
8143200

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= - col0 + col1 * - - 58 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7468
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 + - col1 / - CAST( NULL AS SIGNED ) ) <> col1 + - col2
----

skipif mysql # not compatible
query III rowsort label-7468
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 + - col1 / - CAST ( NULL AS INTEGER ) ) <> col1 + - col2
----

query I rowsort
SELECT ALL col2 * - + 1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 20 + - + col2 / + + col2 - - col0 IS NOT NULL
----

query I rowsort
SELECT ALL col2 + 29 FROM tab2 cor0
----
52
69
87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 > ( + col1 )
----

query I rowsort
SELECT ALL col2 + 39 FROM tab0
----
138
49
86

query III rowsort
SELECT * FROM tab2 WHERE - + col2 < - col1
----

query I rowsort
SELECT DISTINCT ( - 97 ) AS col1 FROM tab1
----
-97

query I rowsort
SELECT col0 * - 26 + + + col0 AS col2 FROM tab2 cor0
----
-1150
-1600
-1875

query II rowsort
SELECT DISTINCT - col0 * col2, - 62 AS col0 FROM tab1 AS cor0
----
-4896
-62
-5015
-62
-6188
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT + + ( + COUNT( * ) ) + 21 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7478
SELECT + + ( + COUNT ( * ) ) + 21 FROM tab0 AS cor0
----
24

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE col0 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7480
SELECT ALL + col0 + - - col2 DIV col0 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL + col0 + - - col2 / col0 FROM tab2 cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT COUNT( * ) * - 90 + 39 FROM tab0 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-7481
SELECT COUNT ( * ) * - 90 + 39 FROM tab0 AS cor0
----
-231

query I rowsort
SELECT ALL + 23 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7483
SELECT DISTINCT * FROM tab0 WHERE NOT ( - - col1 * - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7483
SELECT DISTINCT * FROM tab0 WHERE NOT ( - - col1 * - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT - ( - 89 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col2 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7486
SELECT ALL - col2 * CAST( NULL AS SIGNED ) * - 17 * + 64 * + - col0 * + + col0 FROM tab0 WHERE NOT ( NULL = ( NULL ) )
----

skipif mysql # not compatible
query I rowsort label-7486
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) * - 17 * + 64 * + - col0 * + + col0 FROM tab0 WHERE NOT ( NULL = ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT DISTINCT - - MIN( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7487
SELECT DISTINCT - - MIN ( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
15

query I rowsort
SELECT DISTINCT - - col2 - + - col1 FROM tab0 cor0
----
100
128
31

query I rowsort
SELECT DISTINCT - - 72 + - col2 * col1 * - col1 AS col2 FROM tab1 AS cor0
----
150284
1547
18888

query II rowsort
SELECT + 25 * + col1 - - + col1, + col0 FROM tab2 AS cor0
----
1326
46
1742
75
2002
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 40 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7491
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 40 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 col2 FROM tab0 AS cor0
----
-46
-46
-46

query I rowsort
SELECT - - 53 FROM tab2 cor0
----
53
53
53

query I rowsort
SELECT ALL + 8 / + col1 + - 32 * - 2 AS col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col0, + col2 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7496
SELECT ALL ( - - COUNT( * ) ) * + + 37 FROM tab1
----
111

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL ( - - COUNT ( * ) ) * + + 37 FROM tab1
----
111

query II rowsort
SELECT ALL 37 AS col2, + col1 AS col2 FROM tab1
----
37
14
37
47
37
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT DISTINCT 21 * - COUNT( * ) * + + 5 FROM tab2
----
-315

skipif mysql # not compatible
query I rowsort label-7498
SELECT DISTINCT 21 * - COUNT ( * ) * + + 5 FROM tab2
----
-315

query I rowsort
SELECT DISTINCT + 77 - + 19 FROM tab0 cor0 WHERE NOT - col1 >= + col1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7500
SELECT col2 * + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7500
SELECT col2 * + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT IN ( - col0 + - col2, - 49 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7502
SELECT - - 64 / ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7502
SELECT - - 64 / ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col2 FROM tab2 cor0 WHERE NULL IS NULL AND NOT col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7504
SELECT ALL + 16 + COUNT( * ) col2, CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
19
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7504
SELECT ALL + 16 + COUNT ( * ) col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
19
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7505
SELECT + 77 + - 80 DIV - 33 AS col0 FROM tab1 AS cor0
----
79
79
79

skipif mysql # not compatible
query I rowsort label-7505
SELECT + 77 + - 80 / - 33 AS col0 FROM tab1 AS cor0
----
79
79
79

query I rowsort
SELECT ALL - + 54 FROM tab1 WHERE NOT ( NULL = + col2 )
----

query II rowsort
SELECT DISTINCT 45 * + col2 + - + col2 AS col0, col2 FROM tab1
----
2596
59
2992
68
4224
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7508
SELECT DISTINCT - 90 / CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7508
SELECT DISTINCT - 90 / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT - 3 * - col0 + + - col0 AS col1 FROM tab2
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT + 5 * COUNT( * ) * COUNT( * ) AS col0 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-7510
SELECT + 5 * COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) < - + col2
----
0

skipif mysql # not compatible
query I rowsort label-7511
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) < - + col2
----
0

query I rowsort
SELECT ALL - col1 - 13 AS col0 FROM tab1
----
-18
-27
-60

query I rowsort
SELECT ALL + 53 - 59 AS col0 FROM tab0
----
-6
-6
-6

query I rowsort
SELECT + col2 + 36 FROM tab0
----
135
46
83

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * - 93 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7516
SELECT DISTINCT SUM( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT - col2 * + col2 + 38 * col0 + col0 + 31 IS NOT NULL )
----
185

skipif mysql # not compatible
query I rowsort label-7516
SELECT DISTINCT SUM ( DISTINCT + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT - col2 * + col2 + 38 * col0 + col0 + 31 IS NOT NULL )
----
185

query I rowsort
SELECT DISTINCT + ( + + 52 ) AS col2 FROM tab0 AS cor0
----
52

query I rowsort
SELECT DISTINCT 4 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 * + col1 col1 FROM tab2 cor0
----
3162
4154
4774

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 BETWEEN NULL AND + col1 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, ( + col2 ) col2 FROM tab2
----
-46
23
-64
40
-75
58

query III rowsort
SELECT * FROM tab2 WHERE NOT 86 BETWEEN - col1 * - col0 + - 70 * - col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + + col1 ) AS col1 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT + SUM( DISTINCT col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7524
SELECT + SUM ( DISTINCT col1 ) AS col0 FROM tab2
----
195

query I rowsort
SELECT ALL + 80 * - ( - col1 ) FROM tab1
----
1120
3760
400

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT DISTINCT COUNT( + - col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7526
SELECT DISTINCT COUNT ( + - col1 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - 76 AS col2 FROM tab0 WHERE + 85 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7528
SELECT + + COUNT( - 62 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7528
SELECT + + COUNT ( - 62 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - ( - + col0 ) FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT DISTINCT - ( col0 ) * + col0, col2 AS col0 FROM tab1 AS cor0
----
-2601
96
-7225
59
-8281
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7531
SELECT ( - CAST( NULL AS SIGNED ) ) + - - SUM( DISTINCT + col1 ) * 15 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7531
SELECT ( - CAST ( NULL AS INTEGER ) ) + - - SUM ( DISTINCT + col1 ) * 15 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - + col1 + ( - 48 ) FROM tab2 AS cor0
----
-115
-125
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, 87 + 20 + + - col2 AS col0 FROM tab2 AS cor0
----
23
84
40
67
58
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7534
SELECT - - col0 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) * 67 * - col2 < + - col1 + 91
----

skipif mysql # not compatible
query I rowsort label-7534
SELECT - - col0 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * 67 * - col2 < + - col1 + 91
----

query I rowsort
SELECT ALL + col2 * - - 20 FROM tab1 cor0
----
1180
1360
1920

query II rowsort
SELECT col1 AS col1, + ( + 57 ) AS col1 FROM tab1 AS cor0
----
14
57
47
57
5
57

query III rowsort
SELECT ALL * FROM tab2 WHERE 81 IS NULL
----

query II rowsort
SELECT DISTINCT + 73 + - - col2 AS col1, + col1 * col2 AS col1 FROM tab2
----
113
3080
131
3886
96
1173

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7539
SELECT CAST( + + col2 AS SIGNED ) AS col2, 45 FROM tab1
----
59
45
68
45
96
45

skipif mysql # not compatible
query II rowsort label-7539
SELECT CAST ( + + col2 AS INTEGER ) AS col2, 45 FROM tab1
----
59
45
68
45
96
45

query I rowsort
SELECT + col0 - - col0 * 72 + - col1 AS col2 FROM tab1
----
3709
6200
6596

onlyif mysql # DIV for integer division: 
query I rowsort label-7541
SELECT ALL + col2 + col0 DIV - - ( - col2 ) FROM tab1
----
58
67
96

skipif mysql # not compatible
query I rowsort label-7541
SELECT ALL + col2 + col0 / - - ( - col2 ) FROM tab1
----
58
67
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7542
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

query I rowsort
SELECT + 13 + col2 FROM tab1 AS cor0
----
109
72
81

query I rowsort
SELECT 88 / + - col1 * - + col0 AS col0 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT - col0 + - + col2 + - + ( - - col2 ) FROM tab2 AS cor0
----
-144
-191
-92

query II rowsort
SELECT DISTINCT + col0 * col1 + + col1, - 64 AS col1 FROM tab1 AS cor0
----
430
-64
4324
-64
728
-64

query I rowsort
SELECT ALL col1 * + 8 FROM tab2 WHERE - col1 >= - col1
----
408
536
616

query II rowsort
SELECT DISTINCT 87, col1 AS col2 FROM tab1
----
87
14
87
47
87
5

query I rowsort
SELECT 61 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT + + col2 * - col2 AS col2 FROM tab2 cor0
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT SUM( DISTINCT + - col2 ) AS col1 FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-7551
SELECT SUM ( DISTINCT + - col2 ) AS col1 FROM tab1 cor0
----
-223

query I rowsort
SELECT DISTINCT + - 91 * - col0 AS col1 FROM tab1 cor0 WHERE NOT - 36 IS NULL
----
4641
7735
8281

query I rowsort
SELECT - col0 * - - 57 FROM tab1 AS cor0
----
-2907
-4845
-5187

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT + SUM( - ( + 38 ) ) FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-7554
SELECT + SUM ( - ( + 38 ) ) FROM tab2
----
-114

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE ( NOT ( NOT NULL IS NOT NULL ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 65 + + col2 - - - col0, col1 )
----

query I rowsort
SELECT ( - 0 ) AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7558
SELECT DISTINCT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

query I rowsort
SELECT DISTINCT + - AVG ( - 42 ) FROM tab1 WHERE NOT - col1 NOT IN ( + + ( + col1 ), ( - 87 ) )
----
NULL

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT - 69 / + 24 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT ALL + COUNT( * ) * + + ( + - COUNT( ALL col0 ) ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7561
SELECT ALL + COUNT ( * ) * + + ( + - COUNT ( ALL col0 ) ) FROM tab1 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 49 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7563
SELECT + col1 + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7563
SELECT + col1 + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT + COUNT( * ) + + 72 AS col1 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-7565
SELECT + COUNT ( * ) + + 72 AS col1 FROM tab1 AS cor0
----
75

query I rowsort
SELECT - col0 * 78 * - col2 * - col0 + + ( - 38 ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-5903858
-72656336
-824888

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT COUNT( * ) * - ( - 57 ) FROM tab0
----
171

skipif mysql # not compatible
query I rowsort label-7567
SELECT COUNT ( * ) * - ( - 57 ) FROM tab0
----
171

query III rowsort
SELECT * FROM tab1 WHERE col0 > + + col2
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT - MAX( ALL 48 ) FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-7569
SELECT - MAX ( ALL 48 ) FROM tab1
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-7570
SELECT - COUNT( * ) - + COUNT( DISTINCT - col0 ) * SUM( + col1 ) FROM tab2 cor0
----
-588

skipif mysql # not compatible
query I rowsort label-7570
SELECT - COUNT ( * ) - + COUNT ( DISTINCT - col0 ) * SUM ( + col1 ) FROM tab2 cor0
----
-588

query I rowsort
SELECT - + 79 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7572
SELECT MAX( ALL col1 ) * - + COUNT( * ) DIV COUNT( * ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7572
SELECT MAX ( ALL col1 ) * - + COUNT ( * ) / COUNT ( * ) FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT ALL - COUNT( + 49 ) col2 FROM tab2 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-7573
SELECT ALL - COUNT ( + 49 ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT DISTINCT - + 40 AS col1 FROM tab0 AS cor0
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7575
SELECT * FROM tab1 cor0 WHERE NOT + col0 / col1 NOT BETWEEN - col0 * CAST( NULL AS SIGNED ) / + col0 + + - 90 AND ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-7575
SELECT * FROM tab1 cor0 WHERE NOT + col0 / col1 NOT BETWEEN - col0 * CAST ( NULL AS INTEGER ) / + col0 + + - 90 AND ( + col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7576
SELECT ALL - + COUNT( ( + - 91 ) ) DIV - 14 col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7576
SELECT ALL - + COUNT ( ( + - 91 ) ) / - 14 col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab0 AS cor0 WHERE NOT ( col2 - - col2 ) IS NOT NULL
----

query I rowsort
SELECT - - 53 * - col0 + + col1 AS col1 FROM tab0 cor0
----
-4590
-5140
-714

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7580
SELECT - AVG ( ALL CAST( NULL AS SIGNED ) ) * + - MIN( ALL + col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7580
SELECT - AVG ( ALL CAST ( NULL AS INTEGER ) ) * + - MIN ( ALL + col2 ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT - COUNT( ALL - + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7581
SELECT - COUNT ( ALL - + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT + COUNT( ALL + ( - col1 ) ) * - - MAX( DISTINCT col2 ) AS col1 FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-7582
SELECT + COUNT ( ALL + ( - col1 ) ) * - - MAX ( DISTINCT col2 ) AS col1 FROM tab1
----
288

query I rowsort
SELECT col1 * - ( col2 ) AS col0 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col2, + 43 * 94 * - + ( 85 ) col2 FROM tab2
----
46
-343570
64
-343570
75
-343570

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT - MAX( DISTINCT + - col2 ) * MIN( + - col2 ) col2 FROM tab1
----
-5664

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7585
SELECT - MAX ( DISTINCT + - col2 ) * MIN ( + - col2 ) col2 FROM tab1
----
-5664

query II rowsort
SELECT - col0, col2 AS col1 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7587
SELECT - col2 DIV 18 col2 FROM tab1
----
-3
-3
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7587
SELECT - col2 / 18 col2 FROM tab1
----
-3
-3
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT DISTINCT MIN( - - 34 ) AS col1 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-7588
SELECT DISTINCT MIN ( - - 34 ) AS col1 FROM tab0
----
34

query II rowsort
SELECT + col1, col2 + - col2 AS col2 FROM tab1
----
14
0
47
0
5
0

query I rowsort
SELECT ( + - 84 ) FROM tab2
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-7591
SELECT ALL - SUM( DISTINCT + 63 ) AS col1 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-7591
SELECT ALL - SUM ( DISTINCT + 63 ) AS col1 FROM tab0
----
-63

query II rowsort
SELECT col2 AS col0, - col2 + - 43 * - + col2 AS col2 FROM tab1
----
59
2478
68
2856
96
4032

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7593
SELECT * FROM tab1 WHERE NOT - - CAST( + - col0 AS SIGNED ) BETWEEN + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7593
SELECT * FROM tab1 WHERE NOT - - CAST ( + - col0 AS INTEGER ) BETWEEN + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 = NULL
----

query I rowsort
SELECT DISTINCT col0 + - col2 + 21 AS col1 FROM tab1 AS cor0
----
-24
44
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT - COUNT( DISTINCT col0 ) * - + 94 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
282

skipif mysql # not compatible
query I rowsort label-7596
SELECT - COUNT ( DISTINCT col0 ) * - + 94 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
282

query I rowsort
SELECT ALL + 28 FROM tab0 AS cor0 WHERE NULL IS NULL
----
28
28
28

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 / + 83 <= - 22 * + col2 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7599
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7599
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT DISTINCT + 52 * + col1 AS col2 FROM tab2 AS cor0
----
2652
3484
4004

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN 83 AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - + 12 ) AS col2 FROM tab0 AS cor0
----
-12
-12
-12

query I rowsort
SELECT ALL - ( 80 ) + + col0 FROM tab1 AS cor0
----
-29
11
5

query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-7605
SELECT - ( 27 ) - - - ( 11 ) AS col1, MIN( ALL - col2 ) FROM tab2 AS cor0
----
-38
-58

skipif mysql # not compatible
query II rowsort label-7605
SELECT - ( 27 ) - - - ( 11 ) AS col1, MIN ( ALL - col2 ) FROM tab2 AS cor0
----
-38
-58

query I rowsort
SELECT ALL col0 + - 71 * + 8 + - col1 AS col0 FROM tab2 AS cor0
----
-560
-573
-581

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7607
SELECT ( - COUNT( * ) ) - + - COUNT( * ) + - CAST( NULL AS SIGNED ) - + ( ( - COUNT( * ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7607
SELECT ( - COUNT ( * ) ) - + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) - + ( ( - COUNT ( * ) ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT - 6 + - + COUNT( * ) + 11 FROM tab2, tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7608
SELECT - 6 + - + COUNT ( * ) + 11 FROM tab2, tab1 AS cor0
----
-4

query I rowsort
SELECT - col2 + + 65 AS col2 FROM tab0
----
-34
18
55

query I rowsort
SELECT DISTINCT + col1 * + + 68 FROM tab0 AS cor0
----
1428
5508
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT SUM( DISTINCT + 20 ) + - 47 * 62 AS col2 FROM tab1 AS cor0
----
-2894

skipif mysql # not compatible
query I rowsort label-7611
SELECT SUM ( DISTINCT + 20 ) + - 47 * 62 AS col2 FROM tab1 AS cor0
----
-2894

onlyif mysql # aggregate syntax: 
query I rowsort label-7612
SELECT + 31 + - + COUNT( * ) * + 70 + + - 80 + + ( - 8 ) + - 63 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
-120

skipif mysql # not compatible
query I rowsort label-7612
SELECT + 31 + - + COUNT ( * ) * + 70 + + - 80 + + ( - 8 ) + - 63 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----
-120

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - ( + + 35 ) ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT DISTINCT SUM( DISTINCT 9 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7614
SELECT DISTINCT SUM ( DISTINCT 9 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7615
SELECT DISTINCT - col2 * - - CAST( NULL AS SIGNED ) * - 69 FROM tab1 WHERE NOT - col2 / 53 + - ( - col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7615
SELECT DISTINCT - col2 * - - CAST ( NULL AS INTEGER ) * - 69 FROM tab1 WHERE NOT - col2 / 53 + - ( - col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7616
SELECT ALL 81 DIV - col2 AS col2 FROM tab0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-7616
SELECT ALL 81 / - col2 AS col2 FROM tab0
----
-1
-8
0

query III rowsort
SELECT * FROM tab2 WHERE 6 NOT BETWEEN NULL AND NULL AND - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT + 0 / + col2 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7619
SELECT DISTINCT COUNT( + col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7619
SELECT DISTINCT COUNT ( + col0 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query III rowsort label-7620
SELECT 89 AS col1, MIN( 15 ) DIV - COUNT( * ) AS col2, - - 86 - - - 66 AS col1 FROM tab2 AS cor0
----
89
-5
20

skipif mysql # not compatible
query III rowsort label-7620
SELECT 89 AS col1, MIN ( 15 ) / - COUNT ( * ) AS col2, - - 86 - - - 66 AS col1 FROM tab2 AS cor0
----
89
-5
20

onlyif mysql # aggregate syntax: 
query II rowsort label-7621
SELECT ALL 47 AS col2, 74 + COUNT( * ) AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
47
74

skipif mysql # not compatible
query II rowsort label-7621
SELECT ALL 47 AS col2, 74 + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
47
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT DISTINCT + - COUNT( * ) * + + 79 AS col1 FROM tab1 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-7622
SELECT DISTINCT + - COUNT ( * ) * + + 79 AS col1 FROM tab1 AS cor0
----
-237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7623
SELECT ALL + - CAST( NULL AS SIGNED ) AS col2, - CAST( NULL AS SIGNED ) * - COUNT( * ) - COUNT( ALL ( - - col2 ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7623
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, - CAST ( NULL AS INTEGER ) * - COUNT ( * ) - COUNT ( ALL ( - - col2 ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL

query I rowsort
SELECT DISTINCT + + 35 * ( - col2 ) AS col0 FROM tab0 AS cor0
----
-1645
-3465
-350

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE NOT - ( 41 ) - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT ALL + - COUNT( * ) FROM tab2 WHERE NOT NULL IN ( - col2, col2, + + 90 )
----
0

skipif mysql # not compatible
query I rowsort label-7626
SELECT ALL + - COUNT ( * ) FROM tab2 WHERE NOT NULL IN ( - col2, col2, + + 90 )
----
0

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT + col1 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - + 33 AND - col2 + + col0
----

query I rowsort
SELECT DISTINCT + col1 * - col1 * - + 85 * col2 AS col0 FROM tab2
----
20158600
22130770
5084955

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT ALL + 18 * + - COUNT( + + col2 ) AS col1 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL + 18 * + - COUNT ( + + col2 ) AS col1 FROM tab1
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7631
SELECT CAST( col0 AS SIGNED ) + + 85 AS col1 FROM tab1
----
136
170
176

skipif mysql # not compatible
query I rowsort label-7631
SELECT CAST ( col0 AS INTEGER ) + + 85 AS col1 FROM tab1
----
136
170
176

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - col0 * - - col0 * col2 + - col2, col1 )
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( - 32 = NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7634
SELECT - CAST( 50 AS SIGNED ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

skipif mysql # not compatible
query I rowsort label-7634
SELECT - CAST ( 50 AS INTEGER ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( NULL ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 16 * ( col1 ) + - 7 col1 FROM tab0 cor0
----
1289
329
9

query I rowsort
SELECT + 79 * + + 6 + - col0 + - col2 AS col0 FROM tab2 AS cor0
----
341
370
405

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT DISTINCT + COUNT( * ) * 33 * - + SUM( DISTINCT + 2 ) + + 80 AS col2 FROM tab2 AS cor0
----
-118

skipif mysql # not compatible
query I rowsort label-7638
SELECT DISTINCT + COUNT ( * ) * 33 * - + SUM ( DISTINCT + 2 ) + + 80 AS col2 FROM tab2 AS cor0
----
-118

onlyif mysql # aggregate syntax: 
query II rowsort label-7639
SELECT + - COUNT( ALL - 83 ) + + 60 col1, - 99 FROM tab2 AS cor0
----
57
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7639
SELECT + - COUNT ( ALL - 83 ) + + 60 col1, - 99 FROM tab2 AS cor0
----
57
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7640
SELECT DISTINCT COUNT( * ) + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7640
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
6

query I rowsort
SELECT DISTINCT + - 80 + 4 + + col2 FROM tab0 AS cor0 WHERE col1 * - - col0 BETWEEN + 43 AND + + 70
----

query I rowsort
SELECT - col1 * - 26 AS col2 FROM tab1 cor0 WHERE NULL < + col2 * + 53
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL OR NOT 44 IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col0 + + 17 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7645
SELECT ALL col2 + CAST( NULL AS SIGNED ) * - ( 24 ) + - - 93 * col0 * 60 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7645
SELECT ALL col2 + CAST ( NULL AS INTEGER ) * - ( 24 ) + - - 93 * col0 * 60 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7646
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE + col2 >= - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7646
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE + col2 >= - + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT DISTINCT + COUNT( * ) - - ( 99 ) FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-7647
SELECT DISTINCT + COUNT ( * ) - - ( 99 ) FROM tab1
----
102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * - col0 col1, 69 AS col1 FROM tab0
----
-1215
69
-1827
69
-97
69

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT ALL COUNT( + - 63 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7650
SELECT ALL COUNT ( + - 63 ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 col2 FROM tab1
----
-13
-13
-13

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 39 + + col2 < + 84 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7653
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) * col2 <= 52
----

skipif mysql # not compatible
query III rowsort label-7653
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) * col2 <= 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT DISTINCT + ( + COUNT( * ) ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT + ( + COUNT ( * ) ) AS col1 FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * - 13 + + col0 + - + 43, + col2 col0 FROM tab1 AS cor0
----
1147
59
1231
68
671
96

query I rowsort
SELECT - 32 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT + COUNT( + - col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7657
SELECT + COUNT ( + - col2 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT + ( 94 ) AS col0 FROM tab1
----
94
94
94

query I rowsort
SELECT ALL - ( + col1 ) * + 9 FROM tab1 AS cor0
----
-126
-423
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-7660
SELECT DISTINCT MIN( + 50 ) col2 FROM tab1 cor0
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7660
SELECT DISTINCT MIN ( + 50 ) col2 FROM tab1 cor0
----
50

query I rowsort
SELECT - 72 * + + col2 FROM tab2 AS cor0
----
-1656
-2880
-4176

query I rowsort
SELECT DISTINCT + col2 * + - 43 AS col0 FROM tab2 AS cor0
----
-1720
-2494
-989

query I rowsort
SELECT + col0 * - 61 FROM tab1 AS cor0
----
-3111
-5185
-5551

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE NOT ( 51 ) IS NOT NULL
----

query I rowsort
SELECT col2 * - - 19 FROM tab1
----
1121
1292
1824

query I rowsort
SELECT DISTINCT - ( + + col0 ) FROM tab1 WHERE NOT + + 24 IS NULL
----
-51
-85
-91

query I rowsort
SELECT ALL - ( 80 ) FROM tab1 AS cor0
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT DISTINCT COUNT( - + col1 ) + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7668
SELECT DISTINCT COUNT ( - + col1 ) + - COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT 42 / 48 + - 86 AS col0 FROM tab0 AS cor0 WHERE NULL = ( NULL )
----

query I rowsort
SELECT ALL - - col0 + - col0 + - col0 + + - 79 + - col1 FROM tab2 AS cor0
----
-176
-220
-221

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 cor0 WHERE ( col0 ) <> NULL
----

query I rowsort
SELECT DISTINCT - 34 + - - ( + col2 ) AS col2 FROM tab1 AS cor0
----
25
34
62

onlyif mysql # DIV for integer division: 
query I rowsort label-7673
SELECT ALL - - col1 * ( 40 ) + + col1 DIV - 85 - + col2 AS col2 FROM tab0 AS cor0
----
-59
3193
830

skipif mysql # not compatible
query I rowsort label-7673
SELECT ALL - - col1 * ( 40 ) + + col1 / - 85 - + col2 AS col2 FROM tab0 AS cor0
----
-59
3193
830

query I rowsort
SELECT col0 + + 58 FROM tab2
----
104
122
133

query I rowsort
SELECT DISTINCT - - 10 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7676
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ), 96 * + COUNT( * ) col0 FROM tab2 AS cor0
----
NULL
288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7676
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ), 96 * + COUNT ( * ) col0 FROM tab2 AS cor0
----
NULL
288

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT + col1 * + - col1 + + col0 FROM tab0 AS cor0
----
-354
-6546
96

query I rowsort
SELECT DISTINCT - ( + + col1 ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - col1 + + + 18 FROM tab1 AS cor0
----
-29
13
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT ALL MAX( - ( - 8 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7681
SELECT ALL MAX ( - ( - 8 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

query I rowsort
SELECT DISTINCT - col2 * col1 + + col2 + - col2 * 77 FROM tab1
----
-4779
-8364
-8640

onlyif mysql # aggregate syntax: 
query I rowsort label-7683
SELECT ( COUNT( * ) ) + - COUNT( * ) col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7683
SELECT ( COUNT ( * ) ) + - COUNT ( * ) col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7684
SELECT col1 AS col1, 98 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-7684
SELECT col1 AS col1, 98 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
14
NULL
47
NULL
5
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL IS NULL OR NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> - - col2
----

query II rowsort
SELECT DISTINCT 31 AS col0, + ( col0 ) * - - col1 FROM tab2
----
31
2346
31
4928
31
5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7688
SELECT ALL CAST( - COUNT( + col1 ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7688
SELECT ALL CAST ( - COUNT ( + col1 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7689
SELECT + - col2 * CAST( + col0 AS SIGNED ) FROM tab2 cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-7689
SELECT + - col2 * CAST ( + col0 AS INTEGER ) FROM tab2 cor0
----
-1058
-2560
-4350

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( - 21, 46, + 31 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7691
SELECT col1 + + - 93 DIV col2 AS col0 FROM tab2 AS cor0
----
47
66
75

skipif mysql # not compatible
query I rowsort label-7691
SELECT col1 + + - 93 / col2 AS col0 FROM tab2 AS cor0
----
47
66
75

query I rowsort
SELECT + + 87 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 86
----

query I rowsort
SELECT ALL + col2 * col0 + + 29 AS col0 FROM tab0
----
734
899
9632

onlyif mysql # DIV for integer division: 
query I rowsort label-7694
SELECT DISTINCT ( + + col2 ) + + col2 - + + col2 DIV + col0 * + - 85 FROM tab2
----
116
46
80

skipif mysql # not compatible
query I rowsort label-7694
SELECT DISTINCT ( + + col2 ) + + col2 - + + col2 / + col0 * + - 85 FROM tab2
----
116
46
80

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col1 > NULL
----

query I rowsort
SELECT col2 + + 24 FROM tab2
----
47
64
82

query II rowsort
SELECT + col0, + col2 AS col2 FROM tab0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7698
SELECT CAST( + - col2 AS SIGNED ) * + col2 FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-7698
SELECT CAST ( + - col2 AS INTEGER ) * + col2 FROM tab0
----
-100
-2209
-9801

query II rowsort
SELECT - col1 AS col0, + col2 AS col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query I rowsort
SELECT - 3 * - 29 AS col1 FROM tab1 cor0
----
87
87
87

query I rowsort
SELECT ( + - col0 ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT ALL - COUNT( * ) + - - ( + 64 ) FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL - COUNT ( * ) + - - ( + 64 ) FROM tab2 AS cor0
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-7703
SELECT + 11 DIV + 47 + - - col1 AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7703
SELECT + 11 / + 47 + - - col1 AS col1 FROM tab2
----
51
67
77

query I rowsort
SELECT + ( col1 ) + + 15 FROM tab2 AS cor0
----
66
82
92

query II rowsort
SELECT ALL col2, - col2 AS col0 FROM tab2 AS cor0
----
23
-23
40
-40
58
-58

query II rowsort
SELECT - col0 * + 42 + + - 80 - - col2 AS col0, + 50 * + col1 FROM tab1 AS cor0
----
-2126
700
-3591
250
-3834
2350

query II rowsort
SELECT ALL + col2 AS col2, - col1 AS col2 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7708
SELECT ALL ( + 64 ) DIV + COUNT( * ) AS col2 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-7708
SELECT ALL ( + 64 ) / + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7709
SELECT DISTINCT - 34 DIV + ( 37 ) * + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7709
SELECT DISTINCT - 34 / + ( 37 ) * + - COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7710
SELECT + COUNT( ALL + 50 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7710
SELECT + COUNT ( ALL + 50 ) AS col2 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7711
SELECT ALL + COUNT( CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL + COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

query I rowsort
SELECT + + col1 FROM tab2 WHERE NOT - col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT + MAX( ALL + - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7713
SELECT + MAX ( ALL + - col1 ) FROM tab0
----
-1

query I rowsort
SELECT + ( 55 ) FROM tab2
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT DISTINCT ( + COUNT( * ) ) * COUNT( DISTINCT - col0 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7715
SELECT DISTINCT ( + COUNT ( * ) ) * COUNT ( DISTINCT - col0 ) FROM tab2
----
9

query I rowsort
SELECT + + col0 * - 66 AS col0 FROM tab0 AS cor0
----
-5742
-6402
-990

query II rowsort
SELECT + 27, 49 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
18 values hashing to c654259f6c3e795f6779a187185d26c0

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT COUNT( * ) + 25 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-7718
SELECT COUNT ( * ) + 25 FROM tab1
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-7719
SELECT ALL col2 DIV - - ( + col2 ) + ( - col0 ) + col0 * + + col2 FROM tab1 AS cor0
----
4846
4931
6098

skipif mysql # not compatible
query I rowsort label-7719
SELECT ALL col2 / - - ( + col2 ) + ( - col0 ) + col0 * + + col2 FROM tab1 AS cor0
----
4846
4931
6098

onlyif mysql # aggregate syntax: 
query II rowsort label-7720
SELECT DISTINCT COUNT( * ) AS col2, + COUNT( ALL - + col2 ) FROM tab2 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7720
SELECT DISTINCT COUNT ( * ) AS col2, + COUNT ( ALL - + col2 ) FROM tab2 cor0
----
3
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - + col2 - - 32 / - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col0 * + - 12 + + col0 AS col1 FROM tab0 cor0
----
-1067
-165
-957

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT DISTINCT MAX( + + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT MAX ( + + col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT + 12 * - - 8 * + - 9 AS col1 FROM tab0 AS cor0
----
-864
-864
-864

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + + col0 >= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7726
SELECT - CAST( - - col1 AS SIGNED ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-7726
SELECT - CAST ( - - col1 AS INTEGER ) FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT col0 * + col0 + + 40 FROM tab1
----
2641
7265
8321

query I rowsort
SELECT + ( + 96 ) * - col0 AS col2 FROM tab2
----
-4416
-6144
-7200

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT DISTINCT 70 + - COUNT( * ) AS col1 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-7729
SELECT DISTINCT 70 + - COUNT ( * ) AS col1 FROM tab0
----
67

query III rowsort
SELECT * FROM tab1 WHERE - col1 * + + 24 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7731
SELECT DISTINCT - COUNT( - col0 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT - COUNT ( - col0 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7732
SELECT + CAST( NULL AS SIGNED ) - - + SUM( - ( - ( col0 ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7732
SELECT + CAST ( NULL AS INTEGER ) - - + SUM ( - ( - ( col0 ) ) ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL = + col2 * + 45
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - col0 / col1 AND NULL
----

query II rowsort
SELECT ALL - + 44 * + - col1 AS col0, col0 * - 36 * - ( - - col2 ) + + col0 + + col2 - + col1 * - col0 FROM tab2 AS cor0
----
2244
40503
2948
161758
3388
97192

query I rowsort
SELECT col2 + - + col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 44 * 47 AS col1 FROM tab2, tab2 AS cor0
----
9 values hashing to de7cdd8cc0cf96625eced7e8f95d9911

onlyif mysql # aggregate syntax: 
query II rowsort label-7738
SELECT DISTINCT 2, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
2
3

skipif mysql # not compatible
query II rowsort label-7738
SELECT DISTINCT 2, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
2
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7739
SELECT ALL + COUNT( ALL CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7739
SELECT ALL + COUNT ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - 42 AS col0 FROM tab0 AS cor0 WHERE NOT col2 + + col1 IS NOT NULL
----

query I rowsort
SELECT 96 * + - col2 FROM tab1 AS cor0
----
-5664
-6528
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT DISTINCT COUNT( + - 59 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7742
SELECT DISTINCT COUNT ( + - 59 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - 4 * - - col1 AS col2 FROM tab1 AS cor0
----
-188
-20
-56

query I rowsort
SELECT + + 6 AS col2 FROM tab1 cor0 WHERE NOT - col2 / + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7745
SELECT - 55 DIV - COUNT( * ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-7745
SELECT - 55 / - COUNT ( * ) FROM tab2
----
18

query I rowsort
SELECT - ( 59 ) AS col2 FROM tab2
----
-59
-59
-59

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7748
SELECT DISTINCT * FROM tab0 WHERE + col0 / CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-7748
SELECT DISTINCT * FROM tab0 WHERE + col0 / CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7749
SELECT DISTINCT col1 * + ( + CAST( NULL AS SIGNED ) ) * col0 AS col0, - col0 AS col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-7749
SELECT DISTINCT col1 * + ( + CAST ( NULL AS INTEGER ) ) * col0 AS col0, - col0 AS col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7750
SELECT ALL CAST( + 53 AS SIGNED ) * - - col1 AS col1 FROM tab0
----
1113
4293
53

skipif mysql # not compatible
query I rowsort label-7750
SELECT ALL CAST ( + 53 AS INTEGER ) * - - col1 AS col1 FROM tab0
----
1113
4293
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT - + MAX( + col2 ) AS col1 FROM tab0 WHERE NOT - ( - - col2 ) + - col2 - + 54 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7751
SELECT - + MAX ( + col2 ) AS col1 FROM tab0 WHERE NOT - ( - - col2 ) + - col2 - + 54 >= NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7752
SELECT DISTINCT - SUM( DISTINCT - col2 ) DIV - 93 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7752
SELECT DISTINCT - SUM ( DISTINCT - col2 ) / - 93 AS col0 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7753
SELECT ALL + COUNT( * ) * + 74 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
222

skipif mysql # not compatible
query I rowsort label-7753
SELECT ALL + COUNT ( * ) * + 74 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
222

query I rowsort
SELECT + 49 * col1 + - - col2 AS col0 FROM tab2 AS cor0
----
2522
3341
3813

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 - 27 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0 AS col2, - col1 * - col2 FROM tab2 AS cor0
----
46
1173
64
3080
75
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-7757
SELECT - 33 DIV - + 45 * 63 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7757
SELECT - 33 / - + 45 * 63 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 82 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7758
SELECT + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 82 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * 41 + - - col0 col0 FROM tab1 AS cor0
----
2504
2879
3987

query II rowsort
SELECT DISTINCT - 45 + - 42 + - - 25 AS col2, - col1 AS col0 FROM tab2 AS cor0
----
-62
-51
-62
-67
-62
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7761
SELECT DISTINCT + + AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7761
SELECT DISTINCT + + AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 15 + - ( - col2 ) * - col1 FROM tab1 AS cor0
----
-1359
-310
-3211

query I rowsort
SELECT ALL col1 + + col0 * + col1 AS col1 FROM tab1 AS cor0
----
430
4324
728

query I rowsort
SELECT DISTINCT + + 82 + - col2 + - 84 * - col0 AS col0 FROM tab0 AS cor0
----
1295
7380
8131

onlyif mysql # DIV for integer division: 
query II rowsort label-7765
SELECT ALL - col0 + 24 AS col0, + 15 DIV - col2 AS col1 FROM tab2 AS cor0
----
-22
0
-40
0
-51
0

skipif mysql # not compatible
query II rowsort label-7765
SELECT ALL - col0 + 24 AS col0, + 15 / - col2 AS col1 FROM tab2 AS cor0
----
-22
0
-40
0
-51
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT COUNT( * ) + MIN( + 22 ) - 30 * - 54 AS col1 FROM tab0 WHERE + + ( + - col2 ) > - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7766
SELECT COUNT ( * ) + MIN ( + 22 ) - 30 * - 54 AS col1 FROM tab0 WHERE + + ( + - col2 ) > - col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7767
SELECT DISTINCT CAST( 56 AS SIGNED ) FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-7767
SELECT DISTINCT CAST ( 56 AS INTEGER ) FROM tab0
----
56

query I rowsort
SELECT DISTINCT col2 * ( - col0 ) - - 69 AS col1 FROM tab2
----
-2491
-4281
-989

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7769
SELECT ALL + MAX( + CAST( + 44 AS SIGNED ) ) FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-7769
SELECT ALL + MAX ( + CAST ( + 44 AS INTEGER ) ) FROM tab2
----
44

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 70 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7771
SELECT col0 DIV - + col0 - + col1 + + col1 - ( - col2 ) * - col1 FROM tab0 AS cor0
----
-100
-211
-3808

skipif mysql # not compatible
query I rowsort label-7771
SELECT col0 / - + col0 - + col1 + + col1 - ( - col2 ) * - col1 FROM tab0 AS cor0
----
-100
-211
-3808

query I rowsort
SELECT ALL + col1 + 37 AS col2 FROM tab2
----
104
114
88

query I rowsort
SELECT + col1 / col0 FROM tab2 WHERE ( col1 + + col0 ) = + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7774
SELECT ALL col2 DIV + 37 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7774
SELECT ALL col2 / + 37 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT COUNT( * ) + 8 * + 38 AS col0 FROM tab1
----
307

skipif mysql # not compatible
query I rowsort label-7775
SELECT COUNT ( * ) + 8 * + 38 AS col0 FROM tab1
----
307

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT DISTINCT - COUNT( * ) * COUNT( ALL 34 ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7776
SELECT DISTINCT - COUNT ( * ) * COUNT ( ALL 34 ) AS col1 FROM tab2
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7777
SELECT + 89 + 35 DIV 85 col2 FROM tab0
----
89
89
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7777
SELECT + 89 + 35 / 85 col2 FROM tab0
----
89
89
89

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT DISTINCT 78 + + SUM( 47 ) FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT 78 + + SUM ( 47 ) FROM tab1
----
219

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7779
SELECT COUNT( * ) + - 5 DIV ( 56 * 52 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7779
SELECT COUNT ( * ) + - 5 / ( 56 * 52 ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7780
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-7780
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE NOT NULL BETWEEN - 89 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT 46 + + 70 * + COUNT( * ) AS col2 FROM tab1 WHERE + col2 * 14 IN ( - col1 * col2 + col0 )
----
46

skipif mysql # not compatible
query I rowsort label-7782
SELECT 46 + + 70 * + COUNT ( * ) AS col2 FROM tab1 WHERE + col2 * 14 IN ( - col1 * col2 + col0 )
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT - MAX( ALL - col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-7783
SELECT - MAX ( ALL - col1 ) AS col1 FROM tab1
----
5

query I rowsort
SELECT ALL + col0 * col0 AS col1 FROM tab1 WHERE NOT col1 IS NULL
----
2601
7225
8281

query I rowsort
SELECT - col2 + 1 FROM tab0
----
-46
-9
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-7786
SELECT DISTINCT COUNT( + ( col2 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7786
SELECT DISTINCT COUNT ( + ( col2 ) ) FROM tab1
----
3

query I rowsort
SELECT ALL + col1 / col1 AS col2 FROM tab1 WHERE NOT + 91 * 20 > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7788
SELECT SUM( ALL col0 ) AS col1 FROM tab0 WHERE NOT col2 * - 8 IS NULL
----
199

skipif mysql # not compatible
query I rowsort label-7788
SELECT SUM ( ALL col0 ) AS col1 FROM tab0 WHERE NOT col2 * - 8 IS NULL
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col0 ) col2 FROM tab1 WHERE NOT - ( 71 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7790
SELECT - CAST( NULL AS SIGNED ) - + COUNT( + col1 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7790
SELECT - CAST ( NULL AS INTEGER ) - + COUNT ( + col1 ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7791
SELECT - SUM( DISTINCT - CAST( 79 AS SIGNED ) ) AS col1 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-7791
SELECT - SUM ( DISTINCT - CAST ( 79 AS INTEGER ) ) AS col1 FROM tab0
----
79

query I rowsort
SELECT ALL + 72 - - 9 * col2 FROM tab2
----
279
432
594

onlyif mysql # DIV for integer division: 
query I rowsort label-7793
SELECT - 99 * col2 + col2 DIV - 42 FROM tab2
----
-2277
-3960
-5743

skipif mysql # not compatible
query I rowsort label-7793
SELECT - 99 * col2 + col2 / - 42 FROM tab2
----
-2277
-3960
-5743

query I rowsort
SELECT 50 * - 91 FROM tab1 WHERE NOT + col1 + ( col2 ) <> 9 + + 45
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 65 col0 FROM tab0
----
-34
18
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT COUNT( DISTINCT - col0 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7796
SELECT COUNT ( DISTINCT - col0 ) col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT ALL MAX( ALL - 19 ) col0 FROM tab1
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7797
SELECT ALL MAX ( ALL - 19 ) col0 FROM tab1
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT COUNT( ALL + col0 ) + 14 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-7798
SELECT COUNT ( ALL + col0 ) + 14 FROM tab0
----
17

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( 27 ) * ( + col0 - 31 * - col2 ) ) BETWEEN col0 AND 25 + - 74
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 3 FROM tab1 WHERE NOT - ( - col0 ) + col0 * col0 BETWEEN + ( + 61 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 12 NOT BETWEEN - col2 * - 87 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 34 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7803
SELECT ALL COUNT( - col2 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7803
SELECT ALL COUNT ( - col2 ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT + col0 + - col2 * - col1 AS col2 FROM tab0
----
196
297
3822

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 NOT BETWEEN - col0 AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7806
SELECT - CAST( + col2 AS SIGNED ) + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7806
SELECT - CAST ( + col2 AS INTEGER ) + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - 86 + col2 FROM tab1
----
-18
-27
10

query I rowsort
SELECT + 22 FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NOT + 27 IS NULL
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # DIV for integer division: 
query I rowsort label-7809
SELECT DISTINCT col0 + col0 DIV + col2 FROM tab0 cor0
----
15
95
97

skipif mysql # not compatible
query I rowsort label-7809
SELECT DISTINCT col0 + col0 / + col2 FROM tab0 cor0
----
15
95
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT ALL - MIN( 49 ) AS col2 FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-7810
SELECT ALL - MIN ( 49 ) AS col2 FROM tab1 AS cor0
----
-49

query I rowsort
SELECT ALL - ( col2 ) * 74 + - 9 FROM tab0 AS cor0
----
-3487
-7335
-749

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT - + COUNT( ALL 58 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7812
SELECT - + COUNT ( ALL 58 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7813
SELECT ALL + 4 + - col1 DIV 47 FROM tab0 AS cor0
----
3
4
4

skipif mysql # not compatible
query I rowsort label-7813
SELECT ALL + 4 + - col1 / 47 FROM tab0 AS cor0
----
3
4
4

onlyif mysql # DIV for integer division: 
query I rowsort label-7814
SELECT - - col0 DIV 29 FROM tab1 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7814
SELECT - - col0 / 29 FROM tab1 AS cor0
----
1
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT - + MAX( ALL - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7815
SELECT - + MAX ( ALL - col2 ) FROM tab0 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 7 - col2 col2 FROM tab0 AS cor0
----
-106
-17
-54

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL > 27
----

query I rowsort
SELECT + 49 - + col0 AS col2 FROM tab1 AS cor0
----
-2
-36
-42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7819
SELECT * FROM tab0 WHERE 12 NOT BETWEEN ( NULL ) AND CAST( NULL AS SIGNED ) * 60
----

skipif mysql # not compatible
query III rowsort label-7819
SELECT * FROM tab0 WHERE 12 NOT BETWEEN ( NULL ) AND CAST ( NULL AS INTEGER ) * 60
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7820
SELECT CAST( - + 89 AS SIGNED ) - - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7820
SELECT CAST ( - + 89 AS INTEGER ) - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT DISTINCT + 10 * - 31 + COUNT( * ) * + 23 AS col2 FROM tab0
----
-241

skipif mysql # not compatible
query I rowsort label-7821
SELECT DISTINCT + 10 * - 31 + COUNT ( * ) * + 23 AS col2 FROM tab0
----
-241

query I rowsort
SELECT 68 - - col1 - col1 * + ( + col2 ) FROM tab1
----
-1262
-222
-3081

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7823
SELECT * FROM tab2 WHERE NULL >= 98 - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7823
SELECT * FROM tab2 WHERE NULL >= 98 - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7824
SELECT DISTINCT CAST( NULL AS DECIMAL ) - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7824
SELECT DISTINCT CAST ( NULL AS REAL ) - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 + + col0 * + col2 AS col0 FROM tab0
----
786
891
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT + ( COUNT( * ) ) + COUNT( DISTINCT 34 ) * COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7826
SELECT + ( COUNT ( * ) ) + COUNT ( DISTINCT 34 ) * COUNT ( * ) FROM tab0
----
6

query I rowsort
SELECT ALL 90 - col2 AS col2 FROM tab1
----
-6
22
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7828
SELECT ALL CAST( col2 AS SIGNED ) + - col0 col0 FROM tab1 WHERE - col2 NOT IN ( - 76 + col1 )
----
-23
-26
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7828
SELECT ALL CAST ( col2 AS INTEGER ) + - col0 col0 FROM tab1 WHERE - col2 NOT IN ( - 76 + col1 )
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT 16 + COUNT( * ) AS col1 FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-7829
SELECT 16 + COUNT ( * ) AS col1 FROM tab2
----
19

query I rowsort
SELECT ( col1 ) FROM tab1 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7831
SELECT DISTINCT * FROM tab0 WHERE NOT col0 - + col2 BETWEEN CAST( NULL AS SIGNED ) AND col1
----
87
21
10

skipif mysql # not compatible
query III rowsort label-7831
SELECT DISTINCT * FROM tab0 WHERE NOT col0 - + col2 BETWEEN CAST ( NULL AS INTEGER ) AND col1
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT ALL SUM( DISTINCT + - 77 ) + 53 AS col0 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL SUM ( DISTINCT + - 77 ) + 53 AS col0 FROM tab1 AS cor0
----
-24

query I rowsort
SELECT - 57 AS col1 FROM tab1 cor0
----
-57
-57
-57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7834
SELECT + COUNT( * ) + - ( - SUM( 99 ) ) + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0
----
909

skipif mysql # not compatible
query I rowsort label-7834
SELECT + COUNT ( * ) + - ( - SUM ( 99 ) ) + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0
----
909

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7835
SELECT ALL - 42 * - + ( - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7835
SELECT ALL - 42 * - + ( - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7836
SELECT DISTINCT + CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7836
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT - 94 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT + - 23 * COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-207

skipif mysql # not compatible
query I rowsort label-7838
SELECT + - 23 * COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-207

query II rowsort
SELECT ALL + 95, + col1 + 26 AS col2 FROM tab0
----
95
107
95
27
95
47

query I rowsort
SELECT ALL - ( - - col0 ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col1 + + + col1 + col0 / col0 <= 78
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 7 + + 97 NOT BETWEEN col2 AND NULL OR - 20 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT DISTINCT - COUNT( * ) * + - SUM( - - col1 ) FROM tab0 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-7844
SELECT DISTINCT - COUNT ( * ) * + - SUM ( - - col1 ) FROM tab0 AS cor0
----
309

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 < ( - 64 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7846
SELECT ALL - 62 * + col0 + + + 56 + col2 DIV CAST( + 29 * - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-5338
-5961
-874

skipif mysql # not compatible
query I rowsort label-7846
SELECT ALL - 62 * + col0 + + + 56 + col2 / CAST ( + 29 * - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-5338
-5961
-874

query I rowsort
SELECT + 40 * + + col1 + + col2 + + col0 * ( col1 - + 33 ) AS col2 FROM tab2 AS cor0
----
2891
5288
5936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 80, 13 col2 FROM tab1 AS cor0
----
-80
13
-80
13
-80
13

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT - + col2 IS NULL
----
-23
-40
-58

query I rowsort
SELECT ALL - col0 - - 63 + col2 * - col0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-4884
-5037
-6216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7851
SELECT col0 + CAST( NULL AS SIGNED ) + - + col0 + - + 74 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7851
SELECT col0 + CAST ( NULL AS INTEGER ) + - + col0 + - + 74 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 56 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 <> 44 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7854
SELECT ALL - col0 DIV - - col0 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7854
SELECT ALL - col0 / - - col0 AS col2 FROM tab0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7855
SELECT col2 * ( - - col2 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7855
SELECT col2 * ( - - col2 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT + MIN( + - col1 ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7856
SELECT + MIN ( + - col1 ) AS col1 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT COUNT( ALL + 50 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7857
SELECT COUNT ( ALL + 50 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL col0 + - col1 + - - 21 * 67 FROM tab2 AS cor0
----
1394
1402
1415

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 col1 FROM tab0 AS cor0
----
80
80
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7860
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - + 20 + col1 * + col2 FROM tab2 AS cor0
----
1153
3060
3866

query I rowsort
SELECT DISTINCT - 27 + 96 + - - 50 FROM tab1 AS cor0
----
119

query I rowsort
SELECT ALL + col2 + ( - col0 ) FROM tab0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7864
SELECT - COUNT( * ) * 20 AS col2 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-7864
SELECT - COUNT ( * ) * 20 AS col2 FROM tab2
----
-60

query I rowsort
SELECT - + col0 * - col0 FROM tab2 AS cor0 WHERE col1 > - 7 - - + col1
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT DISTINCT + - 13 + - - COUNT( * ) - COUNT( DISTINCT - + col0 ) + - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-7866
SELECT DISTINCT + - 13 + - - COUNT ( * ) - COUNT ( DISTINCT - + col0 ) + - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-7867
SELECT ALL + + col2 * col0 DIV + col0 FROM tab0 AS cor0 WHERE ( col2 ) >= - 71
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7867
SELECT ALL + + col2 * col0 / + col0 FROM tab0 AS cor0 WHERE ( col2 ) >= - 71
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7868
SELECT col1 DIV + col0 + 27 + - col2 + 32 * - 67 DIV 65 AS col2 FROM tab1 cor0
----
-101
-64
-73

skipif mysql # not compatible
query I rowsort label-7868
SELECT col1 / + col0 + 27 + - col2 + 32 * - 67 / 65 AS col2 FROM tab1 cor0
----
-101
-64
-73

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col0 )
----

query I rowsort
SELECT ALL + + col2 + + - 5 FROM tab2 AS cor0
----
18
35
53

query I rowsort
SELECT - - 95 - - - ( col2 ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT DISTINCT 51 * - col2 + + 28 / - col1 FROM tab1 AS cor0 WHERE 96 > - col0 - - - col1 * - col2
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) IN ( ( + col0 ) )
----

query I rowsort
SELECT DISTINCT + - col2 + - col1 * - 55 AS col2 FROM tab2 WHERE ( NOT ( col1 ) BETWEEN col0 AND NULL )
----
3627

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7875
SELECT DISTINCT col1 / CAST( NULL AS SIGNED ) + - col1 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7875
SELECT DISTINCT col1 / CAST ( NULL AS INTEGER ) + - col1 AS col1 FROM tab0
----
NULL

query II rowsort
SELECT - col2 AS col1, + 7 + 23 FROM tab1
----
-59
30
-68
30
-96
30

query II rowsort
SELECT + col1 AS col0, col0 AS col1 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT + COUNT( * ) - - - MIN( ALL 7 ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-7878
SELECT + COUNT ( * ) - - - MIN ( ALL 7 ) FROM tab0
----
-4

query I rowsort
SELECT ALL + + col2 * col1 * + col0 FROM tab2 AS cor0
----
197120
291450
53958

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col2 AND ( - - col0 )
----

query I rowsort
SELECT col1 * col2 * + + col0 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT ALL 89 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
89
89
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7883
SELECT ALL - 87 AS col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
-87
NULL
-87
NULL
-87
NULL

skipif mysql # not compatible
query II rowsort label-7883
SELECT ALL - 87 AS col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
-87
NULL
-87
NULL
-87
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7884
SELECT DISTINCT - - col0 FROM tab1 AS cor0 WHERE NOT ( CAST( + 36 AS SIGNED ) + + - col1 ) > 81
----
51
85
91

skipif mysql # not compatible
query I rowsort label-7884
SELECT DISTINCT - - col0 FROM tab1 AS cor0 WHERE NOT ( CAST ( + 36 AS INTEGER ) + + - col1 ) > 81
----
51
85
91

query III rowsort
SELECT DISTINCT + - col0 AS col2, col1 AS col2, col1 AS col1 FROM tab2 AS cor0
----
9 values hashing to a4582f1938c80f3ab6a1caeea6785b3b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7886
SELECT + 94 DIV - MAX( + + 22 ) AS col2 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-7886
SELECT + 94 / - MAX ( + + 22 ) AS col2 FROM tab2
----
-4

onlyif mysql # aggregate syntax: 
query II rowsort label-7887
SELECT ALL - MAX( DISTINCT - + col2 ) col2, + COUNT( * ) + + + 91 AS col0 FROM tab1
----
59
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7887
SELECT ALL - MAX ( DISTINCT - + col2 ) col2, + COUNT ( * ) + + + 91 AS col0 FROM tab1
----
59
94

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 / - 62 BETWEEN + - col2 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7889
SELECT + COUNT( * ) * + 15 AS col1 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-7889
SELECT + COUNT ( * ) * + 15 AS col1 FROM tab0 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7890
SELECT + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col1 + - + col2 * - - col1 NOT BETWEEN NULL AND ( col2 - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7890
SELECT + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col1 + - + col2 * - - col1 NOT BETWEEN NULL AND ( col2 - col2 )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > ( - col0 / + + col2 )
----

query I rowsort
SELECT ALL + col0 * col2 * col2 AS col2 FROM tab0
----
33135
8700
950697

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 24 col0 FROM tab1
----
1224
2040
2184

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7894
SELECT DISTINCT 93 * 94 DIV COUNT( * ) AS col0 FROM tab2
----
2914

skipif mysql # not compatible
query I rowsort label-7894
SELECT DISTINCT 93 * 94 / COUNT ( * ) AS col0 FROM tab2
----
2914

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col1, col0 + col2 col2 FROM tab1
----
-59
144
-68
159
-96
147

query II rowsort
SELECT + col1 AS col1, col1 AS col1 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7897
SELECT - SUM( DISTINCT 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-7897
SELECT - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 65 * + + col2 AS col0 FROM tab0
----
3055
6435
650

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT DISTINCT SUM( - - col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT SUM ( - - col0 ) FROM tab0
----
199

query I rowsort
SELECT DISTINCT 79 + + col1 AS col0 FROM tab2
----
130
146
156

query II rowsort
SELECT 57, ( + col1 ) AS col2 FROM tab2
----
57
51
57
67
57
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT ALL COUNT( ALL + ( col0 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7902
SELECT ALL COUNT ( ALL + ( col0 ) ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * 94 * - + 76 BETWEEN - 29 AND + + col1
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + ( 15 ) + - col0 NOT BETWEEN + + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7905
SELECT + CAST( NULL AS SIGNED ) FROM tab1 WHERE ( NOT + col0 * - col0 * + - 81 BETWEEN ( - - col0 ) AND NULL )
----

skipif mysql # not compatible
query I rowsort label-7905
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE ( NOT + col0 * - col0 * + - 81 BETWEEN ( - - col0 ) AND NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 / 60 > NULL
----

query I rowsort
SELECT DISTINCT + 50 + - col2 * + - col1 AS col0 FROM tab2 AS cor0
----
1223
3130
3936

query I rowsort
SELECT - 28 - - col0 * 40 FROM tab1 AS cor0
----
2012
3372
3612

query I rowsort
SELECT DISTINCT + - col1 AS col2 FROM tab2 AS cor0 WHERE NOT col0 / + - col2 - - col2 + col2 IS NULL
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - - col0 col0 FROM tab0 cor0
----
-66
-96
66

query II rowsort
SELECT DISTINCT - col1 + col0 + + - col0 * + - col2 AS col0, + 48 FROM tab0 AS cor0
----
639
48
936
48
9699
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7912
SELECT + SUM( - + 13 ) - + + 5 DIV - COUNT( * ) FROM tab1 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-7912
SELECT + SUM ( - + 13 ) - + + 5 / - COUNT ( * ) FROM tab1 AS cor0
----
-38

query I rowsort
SELECT - + col0 * - 25 + + - ( 34 ) - col1 AS col2 FROM tab0 AS cor0
----
2120
2390
260

query I rowsort
SELECT ALL - col1 - col0 * 20 * + col2 * + + 22 * + - col2 FROM tab2
----
10706909
111011933
45055923

onlyif mysql # aggregate syntax: 
query I rowsort label-7915
SELECT - - SUM( DISTINCT + ( + col2 ) ) AS col0 FROM tab1 WHERE - + col0 * - 50 - - col0 - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7915
SELECT - - SUM ( DISTINCT + ( + col2 ) ) AS col0 FROM tab1 WHERE - + col0 * - 50 - - col0 - col2 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7916
SELECT ALL 84 + - col0 * col1 * col2 DIV + col1 FROM tab2
----
-2476
-4266
-974

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL 84 + - col0 * col1 * col2 / + col1 FROM tab2
----
-2476
-4266
-974

query III rowsort
SELECT * FROM tab2 WHERE + col2 + col0 IS NULL
----

query I rowsort
SELECT 92 * 0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 NOT IN ( + - col0 * + col2 * - - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 49 / + + col2 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - 58 * + col2 + - 95, - col2 AS col0 FROM tab2 AS cor0
----
-1429
-23
-2415
-40
-3459
-58

query I rowsort
SELECT - + 8 FROM tab2 cor0 WHERE NOT col2 + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 IN ( + + 53 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 41 AS col1, - col0 + + + col0 FROM tab0
----
41
0
41
0
41
0

query II rowsort
SELECT ALL col1 AS col0, + ( - 23 ) * 65 + - + col1 AS col2 FROM tab1
----
14
-1509
47
-1542
5
-1500

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-7927
SELECT DISTINCT - 95 AS col2, - MIN( + col2 ) FROM tab2
----
-95
-23

skipif mysql # not compatible
query II rowsort label-7927
SELECT DISTINCT - 95 AS col2, - MIN ( + col2 ) FROM tab2
----
-95
-23

query II rowsort
SELECT ALL + 34, + 20 AS col2 FROM tab2 AS cor0
----
34
20
34
20
34
20

query I rowsort
SELECT ALL - 81 * - 99 FROM tab2 AS cor0
----
8019
8019
8019

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 50 col1, - col1 AS col2 FROM tab1 AS cor0
----
50
-14
50
-47
50
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 * - + 63 + 31 col2 FROM tab1 AS cor0
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 88 ) col2 FROM tab0 AS cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT ALL + SUM( + 89 ) FROM tab2 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL + SUM ( + 89 ) FROM tab2 AS cor0
----
267

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 + + 98 * + 31 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7935
SELECT DISTINCT + - col2 + + col0 DIV ( + col1 ) AS col1 FROM tab0 AS cor0
----
-2
-47
-6

skipif mysql # not compatible
query I rowsort label-7935
SELECT DISTINCT + - col2 + + col0 / ( + col1 ) AS col1 FROM tab0 AS cor0
----
-2
-47
-6

query I rowsort
SELECT ALL - col1 + 42 * 43 FROM tab2 AS cor0
----
1729
1739
1755

query I rowsort
SELECT DISTINCT 60 FROM tab1 WHERE NOT NULL NOT IN ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7938
SELECT - 38 DIV + col0 + + ( + col2 ) AS col1 FROM tab0
----
10
45
99

skipif mysql # not compatible
query I rowsort label-7938
SELECT - 38 / + col0 + + ( + col2 ) AS col1 FROM tab0
----
10
45
99

query I rowsort
SELECT + + 80 * col2 + + col2 FROM tab1 WHERE NULL NOT BETWEEN col2 AND - + ( + 92 )
----

query I rowsort
SELECT - 75 * - col1 * - ( col0 ) FROM tab2
----
-175950
-369600
-376875

query I rowsort
SELECT 42 FROM tab0 AS cor0 WHERE + col1 BETWEEN ( + - ( - col2 ) ) AND NULL
----

query I rowsort
SELECT DISTINCT + + col1 * 26 + 44 * - 68 FROM tab0 AS cor0
----
-2446
-2966
-886

onlyif mysql # DIV for integer division: 
query I rowsort label-7943
SELECT DISTINCT col0 DIV - - 56 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-7943
SELECT DISTINCT col0 / - - 56 FROM tab1
----
0
1

query I rowsort
SELECT col1 + + + ( + 29 ) AS col1 FROM tab2 AS cor0
----
106
80
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7945
SELECT - - col1 * col1 + col0 AS col1 FROM tab2 AS cor0 WHERE + CAST( - col2 AS SIGNED ) * + 32 > CAST( - + 92 AS SIGNED ) * + + col0
----
2647
4564
5993

skipif mysql # not compatible
query I rowsort label-7945
SELECT - - col1 * col1 + col0 AS col1 FROM tab2 AS cor0 WHERE + CAST ( - col2 AS INTEGER ) * + 32 > CAST ( - + 92 AS INTEGER ) * + + col0
----
2647
4564
5993

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT ALL + - 18 + - COUNT( * ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL + - 18 + - COUNT ( * ) FROM tab0 AS cor0
----
-21

query I rowsort
SELECT ALL + ( + col2 ) * - col1 FROM tab2 cor0
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( NOT + col0 <= - + col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7950
SELECT ALL col2 + + CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL col2 + + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-11
-34
98

query III rowsort
SELECT * FROM tab2 WHERE NOT - 5 <> + + 7
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7952
SELECT DISTINCT CAST( NULL AS SIGNED ) * ( - 22 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7952
SELECT DISTINCT CAST ( NULL AS INTEGER ) * ( - 22 ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7953
SELECT CAST( - + 2 AS SIGNED ) AS col2 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-7953
SELECT CAST ( - + 2 AS INTEGER ) AS col2 FROM tab1
----
-2
-2
-2

query II rowsort
SELECT + col2 * col2 AS col1, - col0 AS col0 FROM tab2
----
1600
-64
3364
-75
529
-46

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7955
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( col0, 9 + - 46, + CAST( NULL AS DECIMAL ) * 41 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-7955
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( col0, 9 + - 46, + CAST ( NULL AS REAL ) * 41 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT + SUM( - + col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-7956
SELECT + SUM ( - + col0 ) FROM tab2
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 19 * - col0 col1 FROM tab1
----
-137275
-157339
-49419

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7958
SELECT DISTINCT + SUM( DISTINCT - col0 ) DIV COUNT( + - 47 ) FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7958
SELECT DISTINCT + SUM ( DISTINCT - col0 ) / COUNT ( + - 47 ) FROM tab0 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7959
SELECT DISTINCT - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NULL >= 16 + 78
----

skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL >= 16 + 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT ALL + MAX( - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7960
SELECT ALL + MAX ( - col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # DIV for integer division: 
query II rowsort label-7961
SELECT DISTINCT + col2 + - + 2 DIV - 12, col2 FROM tab2 cor0
----
23
23
40
40
58
58

skipif mysql # not compatible
query II rowsort label-7961
SELECT DISTINCT + col2 + - + 2 / - 12, col2 FROM tab2 cor0
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT ALL + 96 + COUNT( DISTINCT - 90 ) + + 71 AS col0 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL + 96 + COUNT ( DISTINCT - 90 ) + + 71 AS col0 FROM tab1 AS cor0
----
168

onlyif mysql # aggregate syntax: 
query II rowsort label-7963
SELECT DISTINCT - - COUNT( * ), + 91 AS col1 FROM tab2 cor0
----
3
91

skipif mysql # not compatible
query II rowsort label-7963
SELECT DISTINCT - - COUNT ( * ), + 91 AS col1 FROM tab2 cor0
----
3
91

query II rowsort
SELECT col0 * - col1 AS col1, - ( + col2 ) FROM tab0
----
-1215
-47
-1827
-10
-97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT SUM( ALL col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-7965
SELECT SUM ( ALL col0 ) FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT ALL 86 + COUNT( * ) FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-7966
SELECT ALL 86 + COUNT ( * ) FROM tab2
----
89

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col1 + + col1 IS NULL
----

query II rowsort
SELECT - col2 + + 42 + - - 81 + + col1, 18 AS col1 FROM tab0
----
134
18
157
18
25
18

query I rowsort
SELECT 16 * + col2 AS col2 FROM tab1 WHERE + - col1 - - col1 IS NOT NULL
----
1088
1536
944

query II rowsort
SELECT DISTINCT 90 AS col2, col2 FROM tab2 cor0
----
90
23
90
40
90
58

query I rowsort
SELECT ALL col0 * + - 46 + 81 FROM tab1 AS cor0
----
-2265
-3829
-4105

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7972
SELECT ALL + - col1 - + CAST( - ( - ( + col2 ) ) AS SIGNED ) + - col2 col2, col0 AS col1 FROM tab1 AS cor0
----
-123
85
-183
91
-206
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7972
SELECT ALL + - col1 - + CAST ( - ( - ( + col2 ) ) AS INTEGER ) + - col2 col2, col0 AS col1 FROM tab1 AS cor0
----
-123
85
-183
91
-206
51

query I rowsort
SELECT - 99 + + + col2 AS col1 FROM tab0 AS cor0
----
-52
-89
0

query I rowsort
SELECT + + 82 FROM tab0 WHERE + ( + 78 ) NOT BETWEEN col1 AND - 53 * + col2
----
82
82
82

query III rowsort
SELECT * FROM tab2 WHERE col0 * - + col2 + 67 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * - col2 col1 FROM tab0 cor0
----
210
3807
99

query I rowsort
SELECT ALL + col0 + - + 53 + + + ( + col2 ) AS col1 FROM tab2 AS cor0
----
16
51
80

query I rowsort
SELECT col0 * - col0 * + col0 + col2 - - + col2 FROM tab2 cor0
----
-262064
-421759
-97290

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT - - MIN( - - 8 ) * + COUNT( - 95 ) AS col0 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7979
SELECT - - MIN ( - - 8 ) * + COUNT ( - 95 ) AS col0 FROM tab2 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT ALL + MAX( ALL 26 ) FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL + MAX ( ALL 26 ) FROM tab1 AS cor0
----
26

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 28 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT - 68 * COUNT( * ) + - 78 FROM tab2 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-7982
SELECT - 68 * COUNT ( * ) + - 78 FROM tab2 AS cor0
----
-282

query I rowsort
SELECT DISTINCT + ( - + 34 ) + - - col0 AS col2 FROM tab2 cor0 WHERE NOT 2 + col1 BETWEEN col0 * + 1 AND col1
----
12
30
41

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE ( NULL > NULL )
----

query I rowsort
SELECT ALL - 92 * - col0 * - - col1 AS col2 FROM tab0
----
111780
168084
8924

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col0 * + - 58 * - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7987
SELECT DISTINCT - 98 * - COUNT( * ) AS col2 FROM tab2
----
294

skipif mysql # not compatible
query I rowsort label-7987
SELECT DISTINCT - 98 * - COUNT ( * ) AS col2 FROM tab2
----
294

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7988
SELECT CAST( NULL AS SIGNED ) * + + col2, col0 * - + ( ( + + col0 ) ) * + - col2 - col1 + + col2 FROM tab1 WHERE NOT - 59 NOT BETWEEN col2 AND NULL
----

skipif mysql # not compatible
query II rowsort label-7988
SELECT CAST ( NULL AS INTEGER ) * + + col2, col0 * - + ( ( + + col0 ) ) * + - col2 - col1 + + col2 FROM tab1 WHERE NOT - 59 NOT BETWEEN col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7989
SELECT ALL - col0 DIV col0 * - + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7989
SELECT ALL - col0 / col0 * - + col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT DISTINCT - + ( + COUNT( * ) ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7990
SELECT DISTINCT - + ( + COUNT ( * ) ) AS col1 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7991
SELECT + 6 * + SUM( + col0 ), COUNT( * ) DIV - 63 * + COUNT( * ) * - + 98 + - 10 AS col1 FROM tab1 AS cor0
----
1362
-10

skipif mysql # not compatible
query II rowsort label-7991
SELECT + 6 * + SUM ( + col0 ), COUNT ( * ) / - 63 * + COUNT ( * ) * - + 98 + - 10 AS col1 FROM tab1 AS cor0
----
1362
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7992
SELECT DISTINCT - CAST( - 15 AS SIGNED ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7992
SELECT DISTINCT - CAST ( - 15 AS INTEGER ) FROM tab2 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7993
SELECT - - MIN( 27 ) FROM tab0 cor0
----
27

skipif mysql # not compatible
query I rowsort label-7993
SELECT - - MIN ( 27 ) FROM tab0 cor0
----
27

query II rowsort
SELECT + 58 AS col1, 54 AS col0 FROM tab1 AS cor0
----
58
54
58
54
58
54

query I rowsort
SELECT - + 87 * col1 AS col0 FROM tab0 AS cor0
----
-1827
-7047
-87

query I rowsort
SELECT DISTINCT - col0 + - ( - 90 ) AS col0 FROM tab1 AS cor0
----
-1
39
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT + COUNT( * ) + - 28 FROM tab1 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-7997
SELECT + COUNT ( * ) + - 28 FROM tab1 cor0
----
-25

query I rowsort
SELECT 17 * - 0 + col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7999
SELECT ALL COUNT( * ) DIV - + 13 + + 94 FROM tab0 cor0 WHERE NULL <> - 32
----
94

skipif mysql # not compatible
query I rowsort label-7999
SELECT ALL COUNT ( * ) / - + 13 + + 94 FROM tab0 cor0 WHERE NULL <> - 32
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8000
SELECT - - COUNT( * ) + + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8000
SELECT - - COUNT ( * ) + + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + col0 + + 69 AS col1 FROM tab0 AS cor0
----
156
166
84

query I rowsort
SELECT ALL + col2 * - + 2 * + - col0 AS col0 FROM tab1 cor0
----
10030
12376
9792

onlyif mysql # aggregate syntax: 
query I rowsort label-8003
SELECT ALL COUNT( * ) * + 31 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-8003
SELECT ALL COUNT ( * ) * + 31 FROM tab0 AS cor0
----
93

query I rowsort
SELECT ALL + + col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL - - 63 * + - col1 / col0 + + - col2 FROM tab1 WHERE NOT - - col2 BETWEEN - 76 AND - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT ALL MAX( ALL + col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL MAX ( ALL + col1 ) AS col1 FROM tab2
----
77

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 WHERE NOT 36 + - + 72 + col1 / + + 27 > NULL
----

query II rowsort
SELECT DISTINCT 22, + col0 * - col1 AS col1 FROM tab0
----
22
-1215
22
-1827
22
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - + col0 * col0 col1 FROM tab0 AS cor0
----
-158949
-18225
-9409

query I rowsort
SELECT + 0 * 38 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT col1 * 49 FROM tab1 AS cor0
----
2303
245
686

query I rowsort
SELECT ALL + - col1 + + 86 + - col2 FROM tab1 AS cor0
----
-24
-29
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8013
SELECT ALL col1 - - CAST( - col1 AS SIGNED ) + - ( - + col0 ) + - 10 FROM tab0
----
5
77
87

skipif mysql # not compatible
query I rowsort label-8013
SELECT ALL col1 - - CAST ( - col1 AS INTEGER ) + - ( - + col0 ) + - 10 FROM tab0
----
5
77
87

query I rowsort
SELECT DISTINCT 68 - + + 32 * col2 FROM tab2
----
-1212
-1788
-668

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT ALL + COUNT( * ) col2 FROM tab1 WHERE NOT - + col1 + + col0 NOT BETWEEN + col1 AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8015
SELECT ALL + COUNT ( * ) col2 FROM tab1 WHERE NOT - + col1 + + col0 NOT BETWEEN + col1 AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, + col2 col1 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8017
SELECT DISTINCT + + COUNT( * ) col1, - COUNT( * ) FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8017
SELECT DISTINCT + + COUNT ( * ) col1, - COUNT ( * ) FROM tab0 AS cor0
----
3
-3

query II rowsort
SELECT DISTINCT - ( col0 ) AS col0, col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query I rowsort
SELECT DISTINCT - 47 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-8020
SELECT + + ( + col2 ) DIV - col2 col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8020
SELECT + + ( + col2 ) / - col2 col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-8021
SELECT ALL + + 60 AS col2, + COUNT( * ) FROM tab2 AS cor0
----
60
3

skipif mysql # not compatible
query II rowsort label-8021
SELECT ALL + + 60 AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
60
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT - + MAX( + 21 ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-8022
SELECT - + MAX ( + 21 ) FROM tab0 AS cor0
----
-21

query I rowsort
SELECT ALL - ( 90 ) AS col2 FROM tab2 AS cor0
----
-90
-90
-90

query I rowsort
SELECT ALL - 54 * + + 73 FROM tab1 AS cor0
----
-3942
-3942
-3942

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( + - col0 ) > - ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * col0 * + 82 FROM tab2
----
209920
356700
86756

query I rowsort
SELECT ALL - 38 * + col2 FROM tab1
----
-2242
-2584
-3648

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT - ( - MIN( + - col0 ) ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-8028
SELECT - ( - MIN ( + - col0 ) ) FROM tab0
----
-97

query I rowsort
SELECT + col1 - + - 96 * col1 + + - 75 FROM tab1 WHERE NOT - 15 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8030
SELECT + + ( - 13 ) FROM tab2 AS cor0 WHERE NOT NULL > + CAST( + + col1 AS SIGNED ) / - - 42
----

skipif mysql # not compatible
query I rowsort label-8030
SELECT + + ( - 13 ) FROM tab2 AS cor0 WHERE NOT NULL > + CAST ( + + col1 AS INTEGER ) / - - 42
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT - 64 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8032
SELECT + + COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8032
SELECT + + COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT + 8 * + - ( col0 ) FROM tab0
----
-120
-696
-776

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8035
SELECT col1 * + + CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-8035
SELECT col1 * + + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
2601
4489
5929

query II rowsort
SELECT ALL + + col0 AS col0, col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8037
SELECT ALL CAST( - 92 AS SIGNED ) * - 14 + + ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
1288

skipif mysql # not compatible
query I rowsort label-8037
SELECT ALL CAST ( - 92 AS INTEGER ) * - 14 + + ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
1288

query II rowsort
SELECT 77 AS col1, 60 AS col2 FROM tab1 AS cor0
----
77
60
77
60
77
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT DISTINCT - 98 - + COUNT( * ) FROM tab1
----
-101

skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT - 98 - + COUNT ( * ) FROM tab1
----
-101

query I rowsort
SELECT - col0 - - + col0 * + col0 AS col1 FROM tab0
----
210
7482
9312

query I rowsort
SELECT 2 - + 13 * + col2 FROM tab1
----
-1246
-765
-882

query I rowsort
SELECT 9 + + 87 + + 31 * 42 FROM tab0
----
1398
1398
1398

query III rowsort
SELECT * FROM tab0 WHERE col0 * - + 17 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 27 + col0, - col0 AS col1 FROM tab1
----
112
-85
118
-91
78
-51

query I rowsort
SELECT + col1 * - - col2 + col0 AS col0 FROM tab0
----
196
297
3822

onlyif mysql # DIV for integer division: 
query I rowsort label-8046
SELECT DISTINCT col1 DIV col1 - - col2 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-8046
SELECT DISTINCT col1 / col1 - - col2 FROM tab0
----
100
11
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8047
SELECT ALL + 17 * - COUNT( * ) AS col1 FROM tab2, tab1 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-8047
SELECT ALL + 17 * - COUNT ( * ) AS col1 FROM tab2, tab1 cor0
----
-153

query II rowsort
SELECT DISTINCT ( + 0 ) + col2 * col1, 29 * + col2 FROM tab0 WHERE NOT NULL NOT IN ( + 88, 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT + MAX( + ( 72 ) ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-8049
SELECT + MAX ( + ( 72 ) ) FROM tab0
----
72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + + 41 ) * - col2 + + col2 <= - col0
----

query I rowsort
SELECT - 53 * 33 AS col1 FROM tab1 AS cor0
----
-1749
-1749
-1749

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT + ( + - SUM( DISTINCT - + col1 ) ) FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-8052
SELECT + ( + - SUM ( DISTINCT - + col1 ) ) FROM tab1 cor0
----
66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT ( + 35 ) * - - COUNT( * ) FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-8054
SELECT ( + 35 ) * - - COUNT ( * ) FROM tab2 AS cor0
----
105

onlyif mysql # DIV for integer division: 
query II rowsort label-8055
SELECT col0 * + col0 * + col0 - + col0 + + 17 AS col1, 6 DIV - 6 AS col0 FROM tab1 AS cor0
----
132617
-1
614057
-1
753497
-1

skipif mysql # not compatible
query II rowsort label-8055
SELECT col0 * + col0 * + col0 - + col0 + + 17 AS col1, 6 / - 6 AS col0 FROM tab1 AS cor0
----
132617
-1
614057
-1
753497
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8056
SELECT DISTINCT - col1 AS col0, ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-8056
SELECT DISTINCT - col1 AS col0, ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT ALL - + MAX( DISTINCT - 62 ) FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL - + MAX ( DISTINCT - 62 ) FROM tab2 AS cor0
----
62

query II rowsort
SELECT DISTINCT col2 AS col0, col1 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT ALL 65 * ( + - col1 ) AS col0 FROM tab0
----
-1365
-5265
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + col2 AS col2, - 18, - ( - + col1 ) * - col1 col0 FROM tab2
----
9 values hashing to aff8b26308e6eda3a9fe613ad580858d

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8061
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, - col0 DIV col1 * - col1 * 81 DIV col2 * + col1 * - 61 AS col1 FROM tab2
----
NULL
-380091
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-8061
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, - col0 / col1 * - col1 * 81 / col2 * + col1 * - 61 AS col1 FROM tab2
----
NULL
-380091
NULL
0
NULL
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8063
SELECT DISTINCT COUNT( * ) AS col0, 28 FROM tab1
----
3
28

skipif mysql # not compatible
query II rowsort label-8063
SELECT DISTINCT COUNT ( * ) AS col0, 28 FROM tab1
----
3
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT COUNT( DISTINCT + 65 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8064
SELECT COUNT ( DISTINCT + 65 ) FROM tab0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 60 * col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT DISTINCT + 73 * - SUM( ALL + col1 ) FROM tab0 AS cor0
----
-7519

skipif mysql # not compatible
query I rowsort label-8066
SELECT DISTINCT + 73 * - SUM ( ALL + col1 ) FROM tab0 AS cor0
----
-7519

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT DISTINCT - COUNT( * ) + + 72 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-8067
SELECT DISTINCT - COUNT ( * ) + + 72 FROM tab2 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT ALL - SUM( ALL - 39 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
351

skipif mysql # not compatible
query I rowsort label-8068
SELECT ALL - SUM ( ALL - 39 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
351

onlyif mysql # aggregate syntax: 
query I rowsort label-8069
SELECT ALL - MAX( ALL - + 64 ) * COUNT( * ) AS col1 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL - MAX ( ALL - + 64 ) * COUNT ( * ) AS col1 FROM tab1
----
192

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT DISTINCT - 32 * + COUNT( * ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8071
SELECT DISTINCT - 32 * + COUNT ( * ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ALL 55 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 66 + - + 31 AS col2 FROM tab1 AS cor0
----
35
35
35

query I rowsort
SELECT col0 + - - 48 AS col0 FROM tab2 AS cor0
----
112
123
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - + col0 - + col2 IS NULL
----

query I rowsort
SELECT ALL 56 + ( + + col0 ) + - - 82 - - col0 + - 10 AS col1 FROM tab2
----
220
256
278

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 IN ( + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8078
SELECT ALL + COUNT( * ), COUNT( * ) DIV - SUM( - + col0 ) AS col2 FROM tab0
----
3
0

skipif mysql # not compatible
query II rowsort label-8078
SELECT ALL + COUNT ( * ), COUNT ( * ) / - SUM ( - + col0 ) AS col2 FROM tab0
----
3
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8079
SELECT ALL * FROM tab0 WHERE NOT col2 BETWEEN ( - - col0 ) AND 26 + - + CAST( NULL AS SIGNED )
----
87
21
10

skipif mysql # not compatible
query III rowsort label-8079
SELECT ALL * FROM tab0 WHERE NOT col2 BETWEEN ( - - col0 ) AND 26 + - + CAST ( NULL AS INTEGER )
----
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 37 * - col2 col0 FROM tab0
----
1739
3663
370

query I rowsort
SELECT ALL 42 * + col1 AS col1 FROM tab2
----
2142
2814
3234

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + - col1 / 93 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8083
SELECT + + 71 col2 FROM tab1 AS cor0 WHERE ( col1 * CAST( NULL AS SIGNED ) + - col0 IS NOT NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8083
SELECT + + 71 col2 FROM tab1 AS cor0 WHERE ( col1 * CAST ( NULL AS INTEGER ) + - col0 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 44 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + + col0 * + 94 + + + ( col1 ) AS col2, col2 AS col1 FROM tab0 AS cor0
----
1491
47
8199
10
9119
99

query I rowsort
SELECT ALL 79 + + 83 AS col1 FROM tab0 AS cor0
----
162
162
162

onlyif mysql # aggregate syntax: 
query II rowsort label-8087
SELECT DISTINCT + - 28 col1, MAX( + col0 ) FROM tab1 cor0
----
-28
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8087
SELECT DISTINCT + - 28 col1, MAX ( + col0 ) FROM tab1 cor0
----
-28
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT ALL MIN( DISTINCT - ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL MIN ( DISTINCT - ( col2 ) ) AS col2 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT - ( - 4 ) * - col1 * col0 * 58 AS col1 FROM tab1
----
-165648
-98600
-992264

query III rowsort
SELECT * FROM tab0 WHERE NOT - 62 NOT BETWEEN + - col1 AND NULL
----

query I rowsort
SELECT col0 * + - col0 AS col0 FROM tab0
----
-225
-7569
-9409

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN col1 + - 47 * + - col2 AND - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - col0 - + col1 * + col2 * + + 88 / - col2 <= NULL
----

query I rowsort
SELECT + + col0 * col2 + + ( + + col0 ) FROM tab2 cor0
----
1104
2624
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT DISTINCT - 39 * - MAX( DISTINCT col2 ) + - - 47 FROM tab2 WHERE col2 + - col2 NOT BETWEEN + col2 AND NULL
----
2309

skipif mysql # not compatible
query I rowsort label-8095
SELECT DISTINCT - 39 * - MAX ( DISTINCT col2 ) + - - 47 FROM tab2 WHERE col2 + - col2 NOT BETWEEN + col2 AND NULL
----
2309

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8096
SELECT ALL * FROM tab1 AS cor0 WHERE col1 BETWEEN col2 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8096
SELECT ALL * FROM tab1 AS cor0 WHERE col1 BETWEEN col2 AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + + 30 + + col0 AS col1 FROM tab0 cor0
----
117
127
45

onlyif mysql # aggregate syntax: 
query II rowsort label-8098
SELECT + + COUNT( * ) col0, - COUNT( * ) * + + 7 col0 FROM tab1 AS cor0
----
3
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8098
SELECT + + COUNT ( * ) col0, - COUNT ( * ) * + + 7 col0 FROM tab1 AS cor0
----
3
-21

query I rowsort
SELECT DISTINCT + 2 + + 39 AS col1 FROM tab2 AS cor0
----
41

query II rowsort
SELECT ALL 87 + - + ( - + col1 ) * + 68 AS col1, col2 * col1 AS col1 FROM tab2 AS cor0 WHERE + 48 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8101
SELECT CAST( 50 AS SIGNED ) * 43 - - COUNT( * ) + - 19 AS col2 FROM tab1
----
2134

skipif mysql # not compatible
query I rowsort label-8101
SELECT CAST ( 50 AS INTEGER ) * 43 - - COUNT ( * ) + - 19 AS col2 FROM tab1
----
2134

query I rowsort
SELECT DISTINCT - 9 + + + col1 FROM tab0
----
-8
12
72

query II rowsort
SELECT - 61 - col0, + ( + 68 ) AS col2 FROM tab0 WHERE NULL <= ( + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE col1 + - col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 * - + col2 * - col2 AS col1 FROM tab0
----
1000
103823
970299

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 53 * - 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8107
SELECT 31 * + MIN( DISTINCT + + col0 ) AS col2 FROM tab1 AS cor0
----
1581

skipif mysql # not compatible
query I rowsort label-8107
SELECT 31 * + MIN ( DISTINCT + + col0 ) AS col2 FROM tab1 AS cor0
----
1581

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT ALL ( COUNT( * ) ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL ( COUNT ( * ) ) AS col1 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL + 11 AS col1 FROM tab0 cor0 WHERE + ( - ( + + col1 ) ) IS NOT NULL
----
11
11
11

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 61 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT DISTINCT MAX( ALL - 20 ) FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-8111
SELECT DISTINCT MAX ( ALL - 20 ) FROM tab0 AS cor0
----
-20

query I rowsort
SELECT DISTINCT + col1 * + - 35 FROM tab1
----
-1645
-175
-490

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 46 <> + ( + - 3 )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query I rowsort label-8114
SELECT ALL + 4 * + COUNT( * ) AS col2 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-8114
SELECT ALL + 4 * + COUNT ( * ) AS col2 FROM tab2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8115
SELECT + - COUNT( - - col0 ) * - 88 AS col2 FROM tab0 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-8115
SELECT + - COUNT ( - - col0 ) * - 88 AS col2 FROM tab0 AS cor0
----
264

query I rowsort
SELECT DISTINCT - ( - 95 ) FROM tab0 AS cor0
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-8117
SELECT ALL 61 DIV - 51 - - + col0 AS col0 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-8117
SELECT ALL 61 / - 51 - - + col0 AS col0 FROM tab0 AS cor0
----
14
86
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT DISTINCT - SUM( - 57 ) FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-8118
SELECT DISTINCT - SUM ( - 57 ) FROM tab2 AS cor0
----
171

query II rowsort
SELECT ALL + col0, + col0 * - + col1 AS col2 FROM tab1 AS cor0
----
51
-714
85
-425
91
-4277

query I rowsort
SELECT - ( + ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 < + col2
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8122
SELECT - CAST( NULL AS SIGNED ) AS col1, MIN( + col0 ) FROM tab2 cor0
----
NULL
46

skipif mysql # not compatible
query II rowsort label-8122
SELECT - CAST ( NULL AS INTEGER ) AS col1, MIN ( + col0 ) FROM tab2 cor0
----
NULL
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT ALL COUNT( DISTINCT 53 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8123
SELECT ALL COUNT ( DISTINCT 53 ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8124
SELECT DISTINCT + COUNT( * ) * + + CAST( - + ( - COUNT( * ) ) AS SIGNED ) * 71 AS col1 FROM tab0
----
639

skipif mysql # not compatible
query I rowsort label-8124
SELECT DISTINCT + COUNT ( * ) * + + CAST ( - + ( - COUNT ( * ) ) AS INTEGER ) * 71 AS col1 FROM tab0
----
639

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT NULL > - - col2 * 93 + + 96
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 8 <> + + col0 + 69
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8127
SELECT ALL col2 DIV + + col1 + - col2 AS col1 FROM tab1 AS cor0
----
-48
-67
-90

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL col2 / + + col1 + - col2 AS col1 FROM tab1 AS cor0
----
-48
-67
-90

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8128
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN + 21 * - + col0 * - col1 / - CAST( - col0 AS SIGNED ) * - - CAST( NULL AS DECIMAL ) AND - col2 * + col1 - col2 + - col0
----

skipif mysql # not compatible
query III rowsort label-8128
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN + 21 * - + col0 * - col1 / - CAST ( - col0 AS INTEGER ) * - - CAST ( NULL AS REAL ) AND - col2 * + col1 - col2 + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( - col0 ) + - 84 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8131
SELECT ALL MAX( + 34 ) FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL MAX ( + 34 ) FROM tab1
----
34

query I rowsort
SELECT - col2 + + 49 FROM tab0
----
-50
2
39

query I rowsort
SELECT - - col1 + + col1 * - - col1 FROM tab0 AS cor0
----
2
462
6642

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT ALL MAX( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL MAX ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT 81 + - - col0 * ( - col0 ) * + 44 AS col2 FROM tab2 AS cor0
----
-180143
-247419
-93023

query I rowsort
SELECT col2 * - col0 + - - col0 FROM tab0 AS cor0
----
-690
-783
-9506

onlyif mysql # aggregate syntax: 
query I rowsort label-8137
SELECT DISTINCT - COUNT( * ) + - ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8137
SELECT DISTINCT - COUNT ( * ) + - ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 + - col1 * 89 AS col2 FROM tab0 cor0
----
-1890
-7290
-90

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 47 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8140
SELECT DISTINCT + CAST( - + 67 AS SIGNED ) + + 51 + - col1 FROM tab0 AS cor0
----
-17
-37
-97

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT + CAST ( - + 67 AS INTEGER ) + + 51 + - col1 FROM tab0 AS cor0
----
-17
-37
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8141
SELECT ALL + - col0 - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8141
SELECT ALL + - col0 - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 61 * + 15 col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 877860248f367ee3951afb10c8e92a9e

query I rowsort
SELECT DISTINCT col0 / - - col2 FROM tab2 WHERE + col1 BETWEEN 36 AND NULL
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE ( NOT col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col2 * - + 55 + - col0 AS col1 FROM tab1
----
-3330
-3831
-5331

onlyif mysql # aggregate syntax: 
query I rowsort label-8146
SELECT + 97 - + + COUNT( * ) AS col2 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-8146
SELECT + 97 - + + COUNT ( * ) AS col2 FROM tab0
----
94

query I rowsort
SELECT DISTINCT 76 * - col1 AS col0 FROM tab0
----
-1596
-6156
-76

query II rowsort
SELECT DISTINCT col2 AS col2, 16 FROM tab2
----
23
16
40
16
58
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8149
SELECT + 61 AS col1, COUNT( * ) DIV - + MAX( DISTINCT + - col1 ) FROM tab2
----
61
0

skipif mysql # not compatible
query II rowsort label-8149
SELECT + 61 AS col1, COUNT ( * ) / - + MAX ( DISTINCT + - col1 ) FROM tab2
----
61
0

query II rowsort
SELECT DISTINCT + col2 AS col2, 42 AS col0 FROM tab1 AS cor0
----
59
42
68
42
96
42

query I rowsort
SELECT 35 * col2 FROM tab0 AS cor0
----
1645
3465
350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8152
SELECT ALL + CAST( - col1 AS SIGNED ) * + 70 AS col2, 20 FROM tab2
----
-3570
20
-4690
20
-5390
20

skipif mysql # not compatible
query II rowsort label-8152
SELECT ALL + CAST ( - col1 AS INTEGER ) * + 70 AS col2, 20 FROM tab2
----
-3570
20
-4690
20
-5390
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8153
SELECT - 81 DIV col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8153
SELECT - 81 / col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL - + 5 AS col1 FROM tab1 WHERE + 80 IS NOT NULL
----
-5
-5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT - COUNT( + + 9 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8155
SELECT - COUNT ( + + 9 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT DISTINCT COUNT( * ) * - + 89 AS col2 FROM tab1 AS cor0 WHERE NULL > col2 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-8156
SELECT DISTINCT COUNT ( * ) * - + 89 AS col2 FROM tab1 AS cor0 WHERE NULL > col2 * + col1
----
0

query I rowsort
SELECT DISTINCT - - 24 + col2 AS col1 FROM tab0 cor0
----
123
34
71

onlyif mysql # DIV for integer division: 
query I rowsort label-8158
SELECT + col0 * 39 DIV + ( + 7 ) AS col1 FROM tab2
----
256
356
417

skipif mysql # not compatible
query I rowsort label-8158
SELECT + col0 * 39 / + ( + 7 ) AS col1 FROM tab2
----
256
356
417

query I rowsort
SELECT - col2 * + + ( - col0 ) AS col2 FROM tab2
----
1058
2560
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-8160
SELECT 70 DIV + + 75 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8160
SELECT 70 / + + 75 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8161
SELECT DISTINCT MAX( - - col2 ) DIV - COUNT( * ) col0 FROM tab0
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8161
SELECT DISTINCT MAX ( - - col2 ) / - COUNT ( * ) col0 FROM tab0
----
-33

query I rowsort
SELECT - ( - - ( - - col2 ) ) * + 27 AS col1 FROM tab0
----
-1269
-2673
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT + COUNT( * ) * COUNT( * ) col1 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8163
SELECT + COUNT ( * ) * COUNT ( * ) col1 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT ALL COUNT( ALL + col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8164
SELECT ALL COUNT ( ALL + col0 ) AS col2 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - + ( - col1 ) ) = + 98 / col1 * + - col2 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8166
SELECT * FROM tab1 AS cor0 WHERE col0 * - CAST( + col1 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-8166
SELECT * FROM tab1 AS cor0 WHERE col0 * - CAST ( + col1 AS INTEGER ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8167
SELECT DISTINCT COUNT( ALL - 32 ) + - 42 AS col1 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-8167
SELECT DISTINCT COUNT ( ALL - 32 ) + - 42 AS col1 FROM tab1 AS cor0
----
-39

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 > + - 79
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 + 56 FROM tab1 AS cor0
----
107
141
147

query I rowsort
SELECT + col2 + col1 * + col0 * col0 AS col1 FROM tab2 cor0
----
107939
315432
376933

query I rowsort
SELECT ALL col1 * col2 + - col0 AS col1 FROM tab2
----
1127
3016
3811

query II rowsort
SELECT ALL + ( + 63 ) AS col0, col2 AS col0 FROM tab1
----
63
59
63
68
63
96

query I rowsort
SELECT + - 82 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f800b0aad28b82b2deb67f7045c9a45c

query I rowsort
SELECT + - 69 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT + col0 - + ( - col2 ) AS col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8177
SELECT DISTINCT - CAST( - 38 AS SIGNED ) FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-8177
SELECT DISTINCT - CAST ( - 38 AS INTEGER ) FROM tab0 AS cor0
----
38

query I rowsort
SELECT + col2 * - - col2 - + col0 + + col0 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # DIV for integer division: 
query I rowsort label-8179
SELECT - 30 - + col2 DIV - col1 + - - 69 * + col0 FROM tab0 AS cor0
----
1005
5973
6762

skipif mysql # not compatible
query I rowsort label-8179
SELECT - 30 - + col2 / - col1 + - - 69 * + col0 FROM tab0 AS cor0
----
1005
5973
6762

query I rowsort
SELECT ALL + 83 AS col2 FROM tab2 AS cor0 WHERE NOT - 86 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + - - 78 FROM tab1 AS cor0
----
-18
10
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8182
SELECT + + COUNT( * ) + 7 AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8182
SELECT + + COUNT ( * ) + 7 AS col0 FROM tab0 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 73, 5 col2 FROM tab0
----
73
5

query II rowsort
SELECT 95, col1 AS col1 FROM tab0
----
95
1
95
21
95
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8185
SELECT DISTINCT + MIN( - CAST( + col1 AS SIGNED ) ) AS col0, + ( - - ( + 18 ) ) AS col1 FROM tab2
----
-77
18

skipif mysql # not compatible
query II rowsort label-8185
SELECT DISTINCT + MIN ( - CAST ( + col1 AS INTEGER ) ) AS col0, + ( - - ( + 18 ) ) AS col1 FROM tab2
----
-77
18

query I rowsort
SELECT DISTINCT - col2 * + - 48 FROM tab2
----
1104
1920
2784

query II rowsort
SELECT DISTINCT col0, 73 FROM tab1
----
51
73
85
73
91
73

query I rowsort
SELECT ALL + col1 * + 18 AS col1 FROM tab1
----
252
846
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8189
SELECT ALL - CAST( - 35 AS SIGNED ) FROM tab0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-8189
SELECT ALL - CAST ( - 35 AS INTEGER ) FROM tab0
----
35
35
35

query II rowsort
SELECT ALL 71, - 61 AS col0 FROM tab0
----
71
-61
71
-61
71
-61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8191
SELECT col2 * + - ( - - 2 ) + + col1 DIV + CAST( 70 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
-174
-199
-41

skipif mysql # not compatible
query I rowsort label-8191
SELECT col2 * + - ( - - 2 ) + + col1 / + CAST ( 70 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
-174
-199
-41

query I rowsort
SELECT - col0 * col1 * + 65 AS col2 FROM tab0 AS cor0
----
-118755
-6305
-78975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 70 AS col1, + col0 col1 FROM tab1 AS cor0
----
70
51
70
85
70
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT ALL + MIN( + ( + col0 ) ) * - 32 FROM tab2 AS cor0
----
-1472

skipif mysql # not compatible
query I rowsort label-8194
SELECT ALL + MIN ( + ( + col0 ) ) * - 32 FROM tab2 AS cor0
----
-1472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8195
SELECT DISTINCT CAST( - 82 AS SIGNED ) * - 14 AS col2 FROM tab1 AS cor0
----
1148

skipif mysql # not compatible
query I rowsort label-8195
SELECT DISTINCT CAST ( - 82 AS INTEGER ) * - 14 AS col2 FROM tab1 AS cor0
----
1148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # aggregate syntax: 
query II rowsort label-8197
SELECT DISTINCT 30 AS col1, - COUNT( * ) + + 2 FROM tab0 cor0
----
30
-1

skipif mysql # not compatible
query II rowsort label-8197
SELECT DISTINCT 30 AS col1, - COUNT ( * ) + + 2 FROM tab0 cor0
----
30
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + col2 col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8199
SELECT ALL CAST( + 41 AS SIGNED ) * - col0 FROM tab0 AS cor0
----
-3567
-3977
-615

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL CAST ( + 41 AS INTEGER ) * - col0 FROM tab0 AS cor0
----
-3567
-3977
-615

query II rowsort
SELECT col2 + - - 70 * - - col2 + + - col1, col0 FROM tab0 cor0
----
3256
15
689
87
7028
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT COUNT( * ) + 40 col1 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8201
SELECT COUNT ( * ) + 40 col1 FROM tab1 AS cor0
----
43

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT ( col0 / col1 * + + 43 <> - + 44 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8203
SELECT ALL ( MAX( ALL + CAST( + col2 AS SIGNED ) ) ) * - 89 + - COUNT( * ) + 39 FROM tab2
----
-5126

skipif mysql # not compatible
query I rowsort label-8203
SELECT ALL ( MAX ( ALL + CAST ( + col2 AS INTEGER ) ) ) * - 89 + - COUNT ( * ) + 39 FROM tab2
----
-5126

query III rowsort
SELECT * FROM tab1 WHERE - ( + col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 >= + 16 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) >= + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8207
SELECT DISTINCT + col0 - + - col2 * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8207
SELECT DISTINCT + col0 - + - col2 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col2 - - col1 * col0 AS col2 FROM tab1
----
4345
484
810

query I rowsort
SELECT ALL - col1 - + col2 AS col1 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT - col1 + + - col1 AS col1 FROM tab2 AS cor0
----
-102
-134
-154

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8211
SELECT col0 + - col0 AS col0 FROM tab2 AS cor0 WHERE ( - + CAST( + + col1 AS DECIMAL ) ) + col1 * col0 + + col0 >= NULL
----

skipif mysql # not compatible
query I rowsort label-8211
SELECT col0 + - col0 AS col0 FROM tab2 AS cor0 WHERE ( - + CAST ( + + col1 AS REAL ) ) + col1 * col0 + + col0 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( NOT NULL = - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8213
SELECT col0, - CAST( + col2 AS SIGNED ) * - - 90 FROM tab1 AS cor0
----
51
-8640
85
-5310
91
-6120

skipif mysql # not compatible
query II rowsort label-8213
SELECT col0, - CAST ( + col2 AS INTEGER ) * - - 90 FROM tab1 AS cor0
----
51
-8640
85
-5310
91
-6120

query I rowsort
SELECT ALL - col0 * col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT + + col2 * col1 * + - 63 IS NULL )
----

query II rowsort
SELECT DISTINCT + + 68 * - col1 AS col0, 36 * - col2 FROM tab0 AS cor0 WHERE NOT col2 - col1 NOT BETWEEN - 48 + col2 AND - - col0
----
-1428
-360

onlyif mysql # aggregate syntax: 
query II rowsort label-8216
SELECT DISTINCT + 23 AS col0, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
23
-3

skipif mysql # not compatible
query II rowsort label-8216
SELECT DISTINCT + 23 AS col0, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
23
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8217
SELECT DISTINCT CAST( - - 31 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-8217
SELECT DISTINCT CAST ( - - 31 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
31

query I rowsort
SELECT - + 69 AS col2 FROM tab0 AS cor0 WHERE NOT - 7 + col0 NOT BETWEEN + 70 AND + 18
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 * + col2 > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT DISTINCT - MIN( DISTINCT - col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-8220
SELECT DISTINCT - MIN ( DISTINCT - col2 ) AS col0 FROM tab2
----
58

query I rowsort
SELECT - ( - - 88 ) * + col1 FROM tab2 AS cor0
----
-4488
-5896
-6776

onlyif mysql # aggregate syntax: 
query I rowsort label-8222
SELECT ALL + - SUM( - col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8222
SELECT ALL + - SUM ( - col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT col0 * - + 13 * - - col1 + col2 AS col1 FROM tab2
----
-30475
-64024
-65267

query I rowsort
SELECT col2 FROM tab2 WHERE NOT NULL = col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8225
SELECT + + col2 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN - CAST( NULL AS DECIMAL ) AND - col2 + col2
----

skipif mysql # not compatible
query I rowsort label-8225
SELECT + + col2 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN - CAST ( NULL AS REAL ) AND - col2 + col2
----

query I rowsort
SELECT ALL - + 14 AS col2 FROM tab2 AS cor0
----
-14
-14
-14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND col2
----
87
21
10

query I rowsort
SELECT DISTINCT col0 * - 71 + + col1 + - col1 AS col2 FROM tab0 AS cor0
----
-1065
-6177
-6887

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT DISTINCT ( + COUNT( * ) ) + 23 FROM tab2 cor0
----
26

skipif mysql # not compatible
query I rowsort label-8229
SELECT DISTINCT ( + COUNT ( * ) ) + 23 FROM tab2 cor0
----
26

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 56 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8231
SELECT DISTINCT - + 28 + - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8231
SELECT DISTINCT - + 28 + - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 FROM tab0 WHERE - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - col0 col0 FROM tab0
----
225
7569
9409

onlyif mysql # DIV for integer division: 
query I rowsort label-8234
SELECT DISTINCT + col2 DIV col1 + + 41 AS col1 FROM tab0
----
140
41

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT + col2 / col1 + + 41 AS col1 FROM tab0
----
140
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 94 ) col1 FROM tab2
----
94
94
94

query I rowsort
SELECT 37 * + col2 AS col1 FROM tab2 WHERE 79 + - - 65 + + - 13 IS NULL
----

query I rowsort
SELECT 92 - - + col0 FROM tab0
----
107
179
189

onlyif mysql # aggregate syntax: 
query I rowsort label-8238
SELECT DISTINCT ( + - COUNT( * ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8238
SELECT DISTINCT ( + - COUNT ( * ) ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT ALL + MAX( - + col1 ) AS col1 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-8239
SELECT ALL + MAX ( - + col1 ) AS col1 FROM tab1
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8240
SELECT + CAST( - 30 AS SIGNED ) + - 40 AS col1 FROM tab2
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-8240
SELECT + CAST ( - 30 AS INTEGER ) + - 40 AS col1 FROM tab2
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT - 74 + - COUNT( * ) * - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-8241
SELECT - 74 + - COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-8242
SELECT ALL COUNT( ( + ( + 27 ) ) ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL COUNT ( ( + ( + 27 ) ) ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL + - ( - col1 ) + col1 AS col0 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT ALL + 24 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # DIV for integer division: 
query I rowsort label-8245
SELECT + col0 - + col2 + + + col1 + col2 + col0 DIV - col0 FROM tab2
----
140
141
96

skipif mysql # not compatible
query I rowsort label-8245
SELECT + col0 - + col2 + + + col1 + col2 + col0 / - col0 FROM tab2
----
140
141
96

query II rowsort
SELECT 25, + ( - + col0 ) FROM tab2 AS cor0 WHERE NOT NULL >= col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8247
SELECT ALL 85 * col2 DIV - 86 + - - 34 FROM tab0 cor0
----
-12
-63
25

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL 85 * col2 / - 86 + - - 34 FROM tab0 cor0
----
-12
-63
25

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 36 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + + col0 + col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
138
192
225

onlyif mysql # DIV for integer division: 
query I rowsort label-8250
SELECT + 45 DIV - + col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8250
SELECT + 45 / - + col2 AS col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8251
SELECT - CAST( CAST( ( COUNT( * ) ) AS DECIMAL ) AS SIGNED ) FROM tab0 WHERE NOT ( - 3 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8251
SELECT - CAST ( CAST ( ( COUNT ( * ) ) AS REAL ) AS INTEGER ) FROM tab0 WHERE NOT ( - 3 IS NOT NULL )
----
0

query I rowsort
SELECT DISTINCT 38 AS col1 FROM tab0 WHERE - 24 NOT IN ( col0, + col0 * col0 * - col2, 84 + - col2, + col0, + + col0, + 82 * + + ( - col0 ) )
----
38

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE + + col2 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8254
SELECT DISTINCT - MAX( col2 ) + - + 75 col0 FROM tab2 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8254
SELECT DISTINCT - MAX ( col2 ) + - + 75 col0 FROM tab2 WHERE NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8255
SELECT + - 29 * + COUNT( * ) FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-8255
SELECT + - 29 * + COUNT ( * ) FROM tab1 AS cor0
----
-87

query I rowsort
SELECT + - col1 * 0 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT ( col1 / col2 ) NOT BETWEEN + col1 * 70 AND ( - col2 * col1 )
----

query I rowsort
SELECT 37 * - 84 - col1 FROM tab1
----
-3113
-3122
-3155

query I rowsort
SELECT col1 * 18 + col1 FROM tab2
----
1273
1463
969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8260
SELECT ALL - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 42 FROM tab1 WHERE NOT col1 / + col0 < col2
----

query I rowsort
SELECT DISTINCT 58 * col2 + col2 FROM tab0 WHERE NOT col0 * 44 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT 12 * - COUNT( * ) AS col0 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-8263
SELECT 12 * - COUNT ( * ) AS col0 FROM tab2
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT 80 * COUNT( * ) FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-8264
SELECT 80 * COUNT ( * ) FROM tab0
----
240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col0 col0 FROM tab2 WHERE ( - col1 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT 90 * col2 AS col1 FROM tab1
----
5310
6120
8640

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT IN ( + 94 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN - 13 * col1 AND 7
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * 23 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT - MIN( col0 ) + - 19 FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-8270
SELECT - MIN ( col0 ) + - 19 FROM tab1
----
-70

query I rowsort
SELECT ALL col1 * - ( 39 ) FROM tab1
----
-1833
-195
-546

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( col0 + - 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT AVG ( + col2 ) / ( - COUNT( * ) ) FROM tab2 WHERE NOT col2 + + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8273
SELECT AVG ( + col2 ) / ( - COUNT ( * ) ) FROM tab2 WHERE NOT col2 + + col2 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8274
SELECT DISTINCT 94 DIV - col2 FROM tab0
----
-2
-9
0

skipif mysql # not compatible
query I rowsort label-8274
SELECT DISTINCT 94 / - col2 FROM tab0
----
-2
-9
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8275
SELECT DISTINCT + MAX( - col2 ) DIV 8 AS col2 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-8275
SELECT DISTINCT + MAX ( - col2 ) / 8 AS col2 FROM tab2
----
-2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col2 * + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 71 * + 26 AS col1 FROM tab0 AS cor0
----
1846

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = + 18
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8279
SELECT col2 - CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8279
SELECT col2 - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 + 94 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8281
SELECT DISTINCT + col0 + col2 DIV 32 FROM tab0 cor0
----
100
16
87

skipif mysql # not compatible
query I rowsort label-8281
SELECT DISTINCT + col0 + col2 / 32 FROM tab0 cor0
----
100
16
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8282
SELECT ALL + ( CAST( MIN( ALL + col0 ) AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-8282
SELECT ALL + ( CAST ( MIN ( ALL + col0 ) AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8283
SELECT - CAST( NULL AS DECIMAL ) col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8283
SELECT - CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT + 65 * COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
585

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8285
SELECT + 65 * COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab0
----
585

query I rowsort
SELECT 66 * + ( - 99 + ( 93 ) ) FROM tab2 AS cor0
----
-396
-396
-396

query I rowsort
SELECT DISTINCT + ( - AVG ( ALL col2 ) ) - 48 * - 2 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8288
SELECT DISTINCT 54 DIV + col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8288
SELECT DISTINCT 54 / + col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 2 IN ( ( + col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8290
SELECT ALL + col2 DIV 86 AS col0 FROM tab0 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8290
SELECT ALL + col2 / 86 AS col0 FROM tab0 cor0
----
0
0
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 5 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 28 ) col0 FROM tab1 cor0
----
-28
-28
-28

query I rowsort
SELECT DISTINCT - col1 * - 54 AS col2 FROM tab1 AS cor0 WHERE NOT - 9 * 67 IS NULL
----
2538
270
756

query I rowsort
SELECT DISTINCT - 63 AS col0 FROM tab0
----
-63

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND 31
----

query I rowsort
SELECT ALL + col2 * + col0 * + col0 FROM tab0
----
10575
75690
931491

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT - MIN( ALL + + 54 ) * COUNT( * ) col2 FROM tab2
----
-162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8297
SELECT - MIN ( ALL + + 54 ) * COUNT ( * ) col2 FROM tab2
----
-162

onlyif mysql # DIV for integer division: 
query I rowsort label-8298
SELECT + col0 DIV + 91 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8298
SELECT + col0 / + 91 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT SUM( 24 ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-8299
SELECT SUM ( 24 ) FROM tab1
----
72

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 BETWEEN col1 / col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8301
SELECT ALL 8 * - + col1 * - CAST( 85 AS SIGNED ) AS col2 FROM tab2
----
34680
45560
52360

skipif mysql # not compatible
query I rowsort label-8301
SELECT ALL 8 * - + col1 * - CAST ( 85 AS INTEGER ) AS col2 FROM tab2
----
34680
45560
52360

onlyif mysql # DIV for integer division: 
query I rowsort label-8302
SELECT col0 DIV - + col0 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8302
SELECT col0 / - + col0 AS col0 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8303
SELECT 75 AS col1 FROM tab0 WHERE NOT CAST( + col2 AS SIGNED ) * 50 IS NULL
----
75
75
75

skipif mysql # not compatible
query I rowsort label-8303
SELECT 75 AS col1 FROM tab0 WHERE NOT CAST ( + col2 AS INTEGER ) * 50 IS NULL
----
75
75
75

query I rowsort
SELECT + 10 * - col2 FROM tab1
----
-590
-680
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-8305
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col0 IN ( + 40 )
----
0

skipif mysql # not compatible
query I rowsort label-8305
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col0 IN ( + 40 )
----
0

query I rowsort
SELECT DISTINCT + 42 * + col2 + - col1 AS col2 FROM tab0 cor0
----
1893
399
4157

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 81 ) NOT BETWEEN ( + 10 * + 97 ) AND col2 * 60
----

query I rowsort
SELECT ALL + 22 + - 13 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
9
9
9

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL BETWEEN NULL AND ( col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT DISTINCT + COUNT( * ) + 34 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
43

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT + COUNT ( * ) + 34 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
43

query I rowsort
SELECT - - 75 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 37 NOT BETWEEN 5 * col0 AND - 14
----

query I rowsort
SELECT DISTINCT ( + 14 ) AS col1 FROM tab1 AS cor0
----
14

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 = ( - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT DISTINCT - COUNT( DISTINCT - ( col0 ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8316
SELECT DISTINCT - COUNT ( DISTINCT - ( col0 ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT ALL - + col1 + - col2 + - col0 FROM tab0 AS cor0
----
-118
-143
-197

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 30 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8320
SELECT + + 29 col1, + COUNT( * ) FROM tab1 AS cor0
----
29
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8320
SELECT + + 29 col1, + COUNT ( * ) FROM tab1 AS cor0
----
29
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( 80 ) BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8322
SELECT - COUNT( * ) + - 59 FROM tab0 AS cor0 WHERE - col1 IS NULL
----
-59

skipif mysql # not compatible
query I rowsort label-8322
SELECT - COUNT ( * ) + - 59 FROM tab0 AS cor0 WHERE - col1 IS NULL
----
-59

query I rowsort
SELECT ALL + + 93 * + - col0 + + col1 FROM tab1 AS cor0
----
-4729
-7900
-8416

query I rowsort
SELECT + col0 - - - 58 FROM tab1 AS cor0
----
-7
27
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8325
SELECT DISTINCT CAST( NULL AS SIGNED ) + col0 * + col2 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8325
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col0 * + col2 AS col2 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT ( col0 ) AS col2, - 22 * col0 FROM tab2
----
46
-1012
64
-1408
75
-1650

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT COUNT( * ) + + 36 col2 FROM tab1
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8327
SELECT COUNT ( * ) + + 36 col2 FROM tab1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT - COUNT( * ) * + + ( + - ( - MIN( - 38 ) ) ) + 2 AS col2 FROM tab2
----
116

skipif mysql # not compatible
query I rowsort label-8328
SELECT - COUNT ( * ) * + + ( + - ( - MIN ( - 38 ) ) ) + 2 AS col2 FROM tab2
----
116

query III rowsort
SELECT * FROM tab1 WHERE + - 39 BETWEEN 53 - col2 AND + col1 * col0
----
51
14
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8330
SELECT + col0 + + 25 + + col2 + 80 - - col0 DIV - col2 FROM tab2
----
172
208
237

skipif mysql # not compatible
query I rowsort label-8330
SELECT + col0 + + 25 + + col2 + 80 - - col0 / - col2 FROM tab2
----
172
208
237

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 62 <= NULL AND col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8332
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 55 * - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8332
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 55 * - col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL 24 AS col0 FROM tab2 cor0
----
24
24
24

query I rowsort
SELECT DISTINCT - - 99 AS col2 FROM tab1 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8335
SELECT DISTINCT CAST( NULL AS DECIMAL ) * CAST( + col1 * 38 AS SIGNED ) FROM tab2 AS cor0 WHERE ( NOT 84 * + col1 NOT BETWEEN NULL AND + ( col0 ) )
----

skipif mysql # not compatible
query I rowsort label-8335
SELECT DISTINCT CAST ( NULL AS REAL ) * CAST ( + col1 * 38 AS INTEGER ) FROM tab2 AS cor0 WHERE ( NOT 84 * + col1 NOT BETWEEN NULL AND + ( col0 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 = ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 58 FROM tab2 AS cor0 WHERE NOT + 37 IS NULL
----
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8338
SELECT DISTINCT + COUNT( * ) * CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8338
SELECT DISTINCT + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8340
SELECT col1 DIV + 56 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8340
SELECT col1 / + 56 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 * col0 ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8342
SELECT ALL + 7 DIV col1 AS col0 FROM tab0 AS cor0 WHERE + ( col2 ) <= col1
----
0
0

skipif mysql # not compatible
query I rowsort label-8342
SELECT ALL + 7 / col1 AS col0 FROM tab0 AS cor0 WHERE + ( col2 ) <= col1
----
0
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8343
SELECT ALL col0 * CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) * + ( - - col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8343
SELECT ALL col0 * CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) * + ( - - col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - - 21 + col0 + + col1 + ( + 15 ) FROM tab0 AS cor0
----
134
1812
564

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 NOT IN ( + col1 - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * + - 55 FROM tab2 cor0
----
-2805
-3685
-4235

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT + + COUNT( - 41 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8347
SELECT + + COUNT ( - 41 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ( + 82 ) * 26 FROM tab1 AS cor0
----
2132
2132
2132

onlyif mysql # aggregate syntax: 
query I rowsort label-8350
SELECT ALL - COUNT( * ) * + - ( + - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8350
SELECT ALL - COUNT ( * ) * + - ( + - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL - 94 * + 18 * + 89 * - - col1 AS col0 FROM tab2
----
-10089396
-11595276
-7679988

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT ( NOT ( - col0 ) NOT BETWEEN col2 * - 65 AND + 22 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8353
SELECT * FROM tab0 WHERE NOT 82 * + CAST( + + ( col0 ) AS SIGNED ) NOT BETWEEN ( - col0 + + col2 ) AND ( 22 * + col1 )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-8353
SELECT * FROM tab0 WHERE NOT 82 * + CAST ( + + ( col0 ) AS INTEGER ) NOT BETWEEN ( - col0 + + col2 ) AND ( 22 * + col1 )
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 18 col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - col2 * ( 9 ) - col2 AS col2 FROM tab2 WHERE col1 IS NOT NULL
----
-230
-400
-580

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - + 51 * - col2 * col0 - - col0 + 43 + + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8357
SELECT - 27 DIV - ( + - col2 ) FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-8357
SELECT - 27 / - ( + - col2 ) FROM tab0
----
-2
0
0

query I rowsort
SELECT 55 * - 69 AS col2 FROM tab2
----
-3795
-3795
-3795

onlyif mysql # DIV for integer division: 
query II rowsort label-8359
SELECT - col0, - col2 DIV col2 * + - ( + col2 ) col1 FROM tab1
----
-51
96
-85
59
-91
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8359
SELECT - col0, - col2 / col2 * + - ( + col2 ) col1 FROM tab1
----
-51
96
-85
59
-91
68

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 85 * 88 NOT IN ( - col1, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8361
SELECT DISTINCT - col0 + col0 DIV col0 - + col2 AS col2 FROM tab1 AS cor0
----
-143
-146
-158

skipif mysql # not compatible
query I rowsort label-8361
SELECT DISTINCT - col0 + col0 / col0 - + col2 AS col2 FROM tab1 AS cor0
----
-143
-146
-158

query I rowsort
SELECT - col2 * + col1 * ( - col2 ) AS col0 FROM tab1 AS cor0
----
129024
17405
217328

query II rowsort
SELECT ALL 67 + col0, col2 AS col0 FROM tab0 AS cor0
----
154
10
164
99
82
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 2 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 * + 8 + col1 FROM tab2
----
235
397
531

query I rowsort
SELECT DISTINCT 44 * + 79 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
3476

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8367
SELECT - col0 * + 59 + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8367
SELECT - col0 * + 59 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT ( - + 5 ) + - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-8369
SELECT ( - + 5 ) + - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-8

query I rowsort
SELECT ALL - - 17 * + 56 + 77 AS col0 FROM tab2 AS cor0
----
1029
1029
1029

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8371
SELECT + COUNT( * ) DIV 93 + 4 col1 FROM tab1 cor0
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8371
SELECT + COUNT ( * ) / 93 + 4 col1 FROM tab1 cor0
----
4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT DISTINCT - - 46 + - - COUNT( * ) FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-8373
SELECT DISTINCT - - 46 + - - COUNT ( * ) FROM tab0 AS cor0
----
49

query I rowsort
SELECT DISTINCT + col2 + + + 41 AS col1 FROM tab0
----
140
51
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8375
SELECT + + col1 * CAST( NULL AS SIGNED ) col0 FROM tab0 WHERE col2 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8375
SELECT + + col1 * CAST ( NULL AS INTEGER ) col0 FROM tab0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT ALL COUNT( * ) - + - COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8376
SELECT ALL COUNT ( * ) - + - COUNT ( * ) AS col0 FROM tab2
----
6

query I rowsort
SELECT 61 - 48 AS col1 FROM tab1
----
13
13
13

query I rowsort
SELECT + + 8 FROM tab2 AS cor0 WHERE NOT + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT - ( COUNT( * ) ) - + 15 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----
-15

skipif mysql # not compatible
query I rowsort label-8379
SELECT - ( COUNT ( * ) ) - + 15 FROM tab1 AS cor0 WHERE NOT NULL <= ( NULL )
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 67 AS col0, - 26 * + col1 * - + col0 col1 FROM tab0 AS cor0
----
67
2522
67
31590
67
47502

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 > ( + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8382
SELECT DISTINCT * FROM tab0 WHERE CAST( - col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8382
SELECT DISTINCT * FROM tab0 WHERE CAST ( - col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8383
SELECT ALL col0 * col1 AS col1 FROM tab2 WHERE - CAST( NULL AS SIGNED ) + + col1 IS NULL
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL col0 * col1 AS col1 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) + + col1 IS NULL
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8384
SELECT ALL + 12 / + ( - + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8384
SELECT ALL + 12 / + ( - + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 * - + col1 IS NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT - col2 * - col0 + - col2 + + col0 * + + col1 AS col2 FROM tab1 AS cor0
----
10397
5381
5514

onlyif mysql # aggregate syntax: 
query I rowsort label-8388
SELECT ALL MAX( col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8388
SELECT ALL MAX ( col0 ) AS col0 FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT ( MAX( DISTINCT - col0 ) ) * 17 AS col1 FROM tab2
----
-782

skipif mysql # not compatible
query I rowsort label-8389
SELECT ( MAX ( DISTINCT - col0 ) ) * 17 AS col1 FROM tab2
----
-782

onlyif mysql # DIV for integer division: 
query I rowsort label-8390
SELECT ALL + col1 DIV - - col1 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL + col1 / - - col1 AS col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8391
SELECT 27 DIV - + SUM( + col0 ) * + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8391
SELECT 27 / - + SUM ( + col0 ) * + COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT DISTINCT SUM( - - 23 ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-8392
SELECT DISTINCT SUM ( - - 23 ) FROM tab1
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8393
SELECT col1 * CAST( NULL AS SIGNED ) * col0 * + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8393
SELECT col1 * CAST ( NULL AS INTEGER ) * col0 * + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 17 col2 FROM tab1
----
17
17
17

query I rowsort
SELECT ALL 83 * + - 22 AS col1 FROM tab1
----
-1826
-1826
-1826

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col2 + + - 8 * col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8397
SELECT + 36 DIV col2 AS col0 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8397
SELECT + 36 / col2 AS col0 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT ALL ( + COUNT( DISTINCT - 49 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8398
SELECT ALL ( + COUNT ( DISTINCT - 49 ) ) FROM tab0
----
1

query I rowsort
SELECT col2 * + ( + - col0 ) FROM tab1
----
-4896
-5015
-6188

query II rowsort
SELECT ALL + + col0, 59 * 79 AS col1 FROM tab2 cor0
----
46
4661
64
4661
75
4661

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 62 + 78 col2 FROM tab0 AS cor0
----
140

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8402
SELECT DISTINCT 74 * col1 * col0 DIV - CAST( + col0 AS SIGNED ) FROM tab1 cor0
----
-1036
-3478
-370

skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT 74 * col1 * col0 / - CAST ( + col0 AS INTEGER ) FROM tab1 cor0
----
-1036
-3478
-370

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT - - 58 + + MAX( ALL + col0 ) FROM tab0 cor0 WHERE ( NULL IS NULL )
----
155

skipif mysql # not compatible
query I rowsort label-8403
SELECT - - 58 + + MAX ( ALL + col0 ) FROM tab0 cor0 WHERE ( NULL IS NULL )
----
155

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 39 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8405
SELECT + 67 + - + col0 * - - CAST( + + col0 AS SIGNED ) AS col1 FROM tab0 cor0
----
-158
-7502
-9342

skipif mysql # not compatible
query I rowsort label-8405
SELECT + 67 + - + col0 * - - CAST ( + + col0 AS INTEGER ) AS col1 FROM tab0 cor0
----
-158
-7502
-9342

query I rowsort
SELECT col0 * - col1 * + 91 FROM tab2
----
-213486
-448448
-457275

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + + col1 * - - 72 col1 FROM tab1
----
14112
159048
1800

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT ALL - COUNT( * ) + + ( + ( + + COUNT( * ) ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL - COUNT ( * ) + + ( + ( + + COUNT ( * ) ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 44 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8410
SELECT DISTINCT - + 17 * + col1 * 60 DIV 6 AS col2, 93 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-11390
93
-13090
93
-8670
93

skipif mysql # not compatible
query II rowsort label-8410
SELECT DISTINCT - + 17 * + col1 * 60 / 6 AS col2, 93 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-11390
93
-13090
93
-8670
93

query I rowsort
SELECT + 91 - 29 * + col1 FROM tab2 AS cor0
----
-1388
-1852
-2142

query I rowsort
SELECT + - 8 - + 93 - - col1 + + col0 * col0 + - col1 FROM tab0 AS cor0
----
124
7468
9308

query I rowsort
SELECT ALL + 57 * + col2 + + + col1 - - + col1 * + ( - + col1 ) AS col0 FROM tab0 AS cor0
----
-3801
150
5643

query II rowsort
SELECT - - 68 - - - col0 AS col0, 62 AS col0 FROM tab2 AS cor0
----
-7
62
22
62
4
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8415
SELECT + COUNT( * ) + + - 56 AS col2 FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-8415
SELECT + COUNT ( * ) + + - 56 AS col2 FROM tab2 AS cor0
----
-53

query I rowsort
SELECT ALL - col2 + - + 51 FROM tab0 AS cor0
----
-150
-61
-98

query I rowsort
SELECT 84 + - col0 AS col2 FROM tab2 AS cor0
----
20
38
9

query I rowsort
SELECT + col2 * + 75 + + + 69 + - col2 * - + col0 AS col0 FROM tab1
----
11357
12165
9509

query I rowsort
SELECT ALL col2 * - + 98 * - col1 - - col2 AS col0 FROM tab1
----
131808
28969
313276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - col1 * col2 col0 FROM tab0
----
-189
-3726
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT 67 * COUNT( * ) FROM tab0
----
201

skipif mysql # not compatible
query I rowsort label-8421
SELECT 67 * COUNT ( * ) FROM tab0
----
201

query I rowsort
SELECT ALL ( + + ( - col1 ) ) FROM tab2 WHERE col1 / + - 27 IS NOT NULL
----
-51
-67
-77

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE - 46 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 - + col2 * + 62 NOT BETWEEN + - col1 - col2 AND + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT ALL - MAX( + col0 ) AS col0 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL - MAX ( + col0 ) AS col0 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8426
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT col1 / + col1 + - col1 * - col1 * col0 * col1 + + CAST( NULL AS SIGNED ) BETWEEN + + col2 / col0 + - - CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT col1 / + col1 + - col1 * - col1 * col0 * col1 + + CAST ( NULL AS INTEGER ) BETWEEN + + col2 / col0 + - - CAST ( NULL AS INTEGER ) AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col0, 22, - col2 + col1 + + + col0 * + col0 * + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 75 * + - ( - col0 ) col0, - col1 FROM tab1
----
-3825
-14
-6375
-5
-6825
-47

query I rowsort
SELECT - - col0 * + 71 AS col2 FROM tab0 cor0
----
1065
6177
6887

query I rowsort
SELECT ALL 77 FROM tab0 AS cor0 WHERE ( NOT ( + 74 ) <> col2 )
----

query II rowsort
SELECT 79, - 9 AS col0 FROM tab0 AS cor0
----
79
-9
79
-9
79
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8433
SELECT ALL - + 53 * COUNT( * ) + - - ( 61 ) col1 FROM tab0 AS cor0
----
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8433
SELECT ALL - + 53 * COUNT ( * ) + - - ( 61 ) col1 FROM tab0 AS cor0
----
-98

query I rowsort
SELECT DISTINCT + ( - + 72 ) AS col2 FROM tab2 AS cor0
----
-72

query I rowsort
SELECT ALL - - 0 * col1 * col2 + - + ( col2 ) + - - ( - col2 ) * - col2 + - ( col1 ) FROM tab2 AS cor0
----
1483
3239
455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 82 col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - 78
----

query I rowsort
SELECT ALL 34 + + - ( - + col0 ) AS col0 FROM tab1
----
119
125
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8438
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + - 29 AND - 62 + - - CAST( col0 AS SIGNED ) - col1
----

skipif mysql # not compatible
query III rowsort label-8438
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + - 29 AND - 62 + - - CAST ( col0 AS INTEGER ) - col1
----

query I rowsort
SELECT 96 + - + col0 + - col0 AS col0 FROM tab2
----
-32
-54
4

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE - 9 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT ALL - ( + + MIN( - - 34 ) ) FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-8441
SELECT ALL - ( + + MIN ( - - 34 ) ) FROM tab0
----
-34

query I rowsort
SELECT ALL col2 * - 26 AS col1 FROM tab0 cor0
----
-1222
-2574
-260

query I rowsort
SELECT col2 * + - col2 AS col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

query II rowsort
SELECT col0 AS col2, col1 - + 4 FROM tab2 AS cor0 WHERE + 88 + + col1 <= - 64
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8445
SELECT DISTINCT + ( - col1 ) DIV + 70 + + col0 AS col1, 15 col2 FROM tab0 cor0
----
14
15
87
15
97
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8445
SELECT DISTINCT + ( - col1 ) / + 70 + + col0 AS col1, 15 col2 FROM tab0 cor0
----
14
15
87
15
97
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8446
SELECT ALL col1 - - ( + - col0 ) + - - CAST( NULL AS SIGNED ) / + + 74 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL col1 - - ( + - col0 ) + - - CAST ( NULL AS INTEGER ) / + + 74 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-8447
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) / - + 28 * CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8447
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) / - + 28 * CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8448
SELECT col2 * - 62 / - 17 + - col2 + + CAST( NULL AS SIGNED ) + + col0 / - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8448
SELECT col2 * - 62 / - 17 + - col2 + + CAST ( NULL AS INTEGER ) + + col0 / - - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 78 * - col0 AS col0 FROM tab1 AS cor0
----
3978
6630
7098

query I rowsort
SELECT - - 60 + - + col0 FROM tab1 AS cor0
----
-25
-31
9

query I rowsort
SELECT DISTINCT - col1 * - - col1 AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-8452
SELECT DISTINCT - + col2 DIV - col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8452
SELECT DISTINCT - + col2 / - col1 FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 col0 FROM tab2
----
-93
-93
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT DISTINCT - MAX( - + col1 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-8454
SELECT DISTINCT - MAX ( - + col1 ) FROM tab2
----
51

query I rowsort
SELECT ALL col0 * ( + 74 ) FROM tab0
----
1110
6438
7178

query II rowsort
SELECT col0, + col1 AS col2 FROM tab1
----
51
14
85
5
91
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - + col2 - - col2, - col1 )
----

query I rowsort
SELECT DISTINCT 57 * col2 AS col0 FROM tab1
----
3363
3876
5472

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT DISTINCT + MAX( DISTINCT + - col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-8460
SELECT DISTINCT + MAX ( DISTINCT + - col1 ) FROM tab1
----
-5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = 55
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN 13 / - col2 * + col0 AND + - ( - 36 ) * + + ( + ( + 90 ) )
----

query I rowsort
SELECT ( col2 ) * - - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1600
3364
529

query I rowsort
SELECT ALL - ( - + col2 ) + + ( + 3 ) FROM tab2 AS cor0
----
26
43
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8465
SELECT DISTINCT - - CAST( + - col1 AS SIGNED ) + + col1 AS col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8465
SELECT DISTINCT - - CAST ( + - col1 AS INTEGER ) + + col1 AS col0 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8466
SELECT ALL - MAX( + - 30 ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL - MAX ( + - 30 ) FROM tab2 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8467
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8467
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT DISTINCT COUNT( * ) + 47 AS col1 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-8468
SELECT DISTINCT COUNT ( * ) + 47 AS col1 FROM tab1 AS cor0
----
50

query II rowsort
SELECT col0 AS col0, + 58 / + + col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 * + col2 + + + col2 + - 65 AS col1 FROM tab2 AS cor0
----
1575
3357
487

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 29 col0, col2 AS col2 FROM tab0
----
29
10
29
47
29
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT DISTINCT 78 + 38 + + + COUNT( * ) FROM tab2
----
119

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT 78 + 38 + + + COUNT ( * ) FROM tab2
----
119

query I rowsort
SELECT + col1 * + + 19 FROM tab0
----
1539
19
399

query IIIIII rowsort
SELECT * FROM tab2, tab1 cor0 WHERE NOT + + 28 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( ( - + 91 ) ) IS NULL
----

query II rowsort
SELECT ALL 19 AS col0, col0 AS col1 FROM tab0 cor0
----
19
15
19
87
19
97

query I rowsort
SELECT col0 * - 2 + - col1 AS col0 FROM tab1 AS cor0
----
-116
-175
-229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 40 col1 FROM tab0 AS cor0
----
-40
-40
-40

query I rowsort
SELECT ALL - 94 + - col2 AS col1 FROM tab1 AS cor0
----
-153
-162
-190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8480
SELECT CAST( + COUNT( * ) AS SIGNED ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8480
SELECT CAST ( + COUNT ( * ) AS INTEGER ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT - - 64 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT DISTINCT - - 6 - + + col1 AS col1 FROM tab2 AS cor0
----
-45
-61
-71

query I rowsort
SELECT + 27 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT - MIN( ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8484
SELECT - MIN ( ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - ( - + ( 5 ) ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT - 74 - + MIN( + - col1 ) FROM tab1 WHERE NOT col0 + - + col0 * col1 IS NOT NULL OR NOT ( + col0 + - 60 ) = + col0
----
-27

skipif mysql # not compatible
query I rowsort label-8486
SELECT - 74 - + MIN ( + - col1 ) FROM tab1 WHERE NOT col0 + - + col0 * col1 IS NOT NULL OR NOT ( + col0 + - 60 ) = + col0
----
-27

query I rowsort
SELECT + - col2 * - + col2 + ( - col0 ) AS col0 FROM tab1 WHERE NOT col2 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 * + - col0 col1 FROM tab0
----
-1440
-8352
-9312

query I rowsort
SELECT DISTINCT - col1 * + col1 * 65 AS col2 FROM tab2
----
-169065
-291785
-385385

query I rowsort
SELECT DISTINCT 80 * - + 98 FROM tab2
----
-7840

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 ) BETWEEN NULL AND col1
----

query II rowsort
SELECT ALL + col2, - col2 AS col1 FROM tab0
----
10
-10
47
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT MAX( + 67 ) AS col1 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-8493
SELECT MAX ( + 67 ) AS col1 FROM tab2
----
67

query I rowsort
SELECT + 6 * + 30 FROM tab0 AS cor0
----
180
180
180

query I rowsort
SELECT + ( - 34 ) FROM tab0 AS cor0
----
-34
-34
-34

query I rowsort
SELECT + - 99 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN - 22 * + 90 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8498
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8498
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8499
SELECT DISTINCT SUM( 47 ) AS col0 FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-8499
SELECT DISTINCT SUM ( 47 ) AS col0 FROM tab2
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NULL < ( - 8 * - 59 )
----
0

skipif mysql # not compatible
query I rowsort label-8500
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL < ( - 8 * - 59 )
----
0

query I rowsort
SELECT - col2 + + col0 + + 32 FROM tab2 cor0
----
49
55
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8502
SELECT * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) + - ( - ( col0 ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8502
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) + - ( - ( col0 ) ) IS NOT NULL
----

query I rowsort
SELECT ALL + - 76 * - 77 + + + 27 AS col2 FROM tab2 cor0
----
5879
5879
5879

onlyif mysql # DIV for integer division: 
query I rowsort label-8504
SELECT 26 DIV col2 + + 24 AS col0 FROM tab1 AS cor0
----
24
24
24

skipif mysql # not compatible
query I rowsort label-8504
SELECT 26 / col2 + + 24 AS col0 FROM tab1 AS cor0
----
24
24
24

onlyif mysql # DIV for integer division: 
query I rowsort label-8505
SELECT DISTINCT - + col0 + + col1 DIV + ( - ( + 38 ) ) FROM tab2 AS cor0
----
-47
-66
-76

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT - + col0 + + col1 / + ( - ( + 38 ) ) FROM tab2 AS cor0
----
-47
-66
-76

query I rowsort
SELECT + col1 + - - col0 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ALL col1 * + - col0 * - col0 * + col0 + 82 AS col0 FROM tab1 AS cor0
----
1857196
3070707
35417919

onlyif mysql # aggregate syntax: 
query I rowsort label-8508
SELECT - 72 * COUNT( * ) + - 33 AS col1 FROM tab2
----
-249

skipif mysql # not compatible
query I rowsort label-8508
SELECT - 72 * COUNT ( * ) + - 33 AS col1 FROM tab2
----
-249

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT ALL COUNT( col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL COUNT ( col1 ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8510
SELECT DISTINCT MAX( + ( - CAST( - - 39 AS SIGNED ) ) ) AS col2 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-8510
SELECT DISTINCT MAX ( + ( - CAST ( - - 39 AS INTEGER ) ) ) AS col2 FROM tab0
----
-39

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - ( - col0 ) < 8
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8512
SELECT ALL ( - ( + + 94 ) ) / + ( - col1 ) + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL ( - ( + + 94 ) ) / + ( - col1 ) + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT ALL + 89 + + COUNT( * ) FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-8513
SELECT ALL + 89 + + COUNT ( * ) FROM tab2
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8514
SELECT + + ( - + col1 ) DIV + + 73 - col2 - - col1 - - 92 + + 29 * + col0 + - col1 * col0 col0 FROM tab0 AS cor0
----
-655
2710
799

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8514
SELECT + + ( - + col1 ) / + + 73 - col2 - - col1 - - 92 + + 29 * + col0 + - col1 * col0 col0 FROM tab0 AS cor0
----
-655
2710
799

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 + + col2 col1 FROM tab0 AS cor0
----
-49
-86
3

query I rowsort
SELECT ALL + - 38 + + ( + - 35 ) AS col0 FROM tab0 AS cor0
----
-73
-73
-73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 40 col2 FROM tab1 WHERE NOT - + col1 BETWEEN + 88 AND NULL
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8518
SELECT DISTINCT - MIN( DISTINCT + - 48 ) col0 FROM tab0
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8518
SELECT DISTINCT - MIN ( DISTINCT + - 48 ) col0 FROM tab0
----
48

query I rowsort
SELECT + ( - 87 ) AS col0 FROM tab1
----
-87
-87
-87

query I rowsort
SELECT + 62 + - - 28 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT + + COUNT( + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8521
SELECT + + COUNT ( + col2 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL col1 AS col2, - 54 FROM tab1 AS cor0
----
14
-54
47
-54
5
-54

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * - 88 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 62 * col1 FROM tab0 AS cor0 WHERE NOT - 1 NOT IN ( - col0 * + - 66, - 61, - 88 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8525
SELECT DISTINCT MIN( - col2 ) * - COUNT( * ) FROM tab2 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-8525
SELECT DISTINCT MIN ( - col2 ) * - COUNT ( * ) FROM tab2 AS cor0
----
174

query I rowsort
SELECT col0 * 95 * 21 AS col0 FROM tab1
----
101745
169575
181545

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8528
SELECT + CAST( MIN( ALL 90 ) AS SIGNED ) col2 FROM tab1
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8528
SELECT + CAST ( MIN ( ALL 90 ) AS INTEGER ) col2 FROM tab1
----
90

query I rowsort
SELECT col0 * + col2 AS col2 FROM tab1 WHERE NOT 97 + + - 65 + - col0 NOT IN ( + col2 )
----

query I rowsort
SELECT 53 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
53
53
53

query I rowsort
SELECT col0 + + + 19 FROM tab2
----
65
83
94

query I rowsort
SELECT 81 + - col2 AS col0 FROM tab2
----
23
41
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8533
SELECT DISTINCT - 40 DIV + 2 AS col2 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-8533
SELECT DISTINCT - 40 / + 2 AS col2 FROM tab2
----
-20

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 98 * - - col2 >= - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 57 col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 81 - 84 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + + col0 * - col2 + - - col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE + col0 + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8539
SELECT ALL SUM( DISTINCT col2 ) + + - 5 col2 FROM tab2 AS cor0
----
116

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8539
SELECT ALL SUM ( DISTINCT col2 ) + + - 5 col2 FROM tab2 AS cor0
----
116

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8540
SELECT ALL ( + + COUNT( * ) ) DIV COUNT( * ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL ( + + COUNT ( * ) ) / COUNT ( * ) AS col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT col1 - + - col1 AS col0 FROM tab1 AS cor0
----
10
28
94

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > + 36 + - col1
----

query I rowsort
SELECT ALL col1 * - col0 * ( - 17 ) * + + col0 + - col0 + - 29 * + - 50 FROM tab1
----
615490
620437
6617878

onlyif mysql # DIV for integer division: 
query II rowsort label-8544
SELECT ALL col0, - col0 DIV + 79 AS col1 FROM tab0
----
15
0
87
-1
97
-1

skipif mysql # not compatible
query II rowsort label-8544
SELECT ALL col0, - col0 / + 79 AS col1 FROM tab0
----
15
0
87
-1
97
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8545
SELECT DISTINCT + col2 + - + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8545
SELECT DISTINCT + col2 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col2 - - + ( - col1 ) AS col2 FROM tab0
----
-100
-128
-31

query II rowsort
SELECT DISTINCT col0, + col1 AS col0 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8548
SELECT - CAST( - 31 AS SIGNED ) + 55 FROM tab2
----
86
86
86

skipif mysql # not compatible
query I rowsort label-8548
SELECT - CAST ( - 31 AS INTEGER ) + 55 FROM tab2
----
86
86
86

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( - col2 ) * + + col1 + - 39 + 11 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8550
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + 79 AND col2 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8550
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + 79 AND col2 + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - ( col0 ) FROM tab0 WHERE NOT + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 45 * 88 - col0 AS col1 FROM tab1 AS cor0
----
3869
3875
3909

query I rowsort
SELECT - + col2 * ( 29 ) AS col2 FROM tab2 AS cor0
----
-1160
-1682
-667

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT DISTINCT 60 + ( SUM( - - 16 ) ) AS col2 FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT 60 + ( SUM ( - - 16 ) ) AS col2 FROM tab1 AS cor0
----
108

query I rowsort
SELECT DISTINCT + - 50 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 74 col1 FROM tab2 cor0
----
74
74
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8557
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col0 + - 68 / col1 FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN + col0 AND + col2 + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8557
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col0 + - 68 / col1 FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN + col0 AND + col2 + + col2
----
NULL

query II rowsort
SELECT + - 99 * + - 2 AS col0, + 15 AS col1 FROM tab2 AS cor0
----
198
15
198
15
198
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT ALL MAX( - + ( - + 8 ) ) AS col2 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL MAX ( - + ( - + 8 ) ) AS col2 FROM tab0 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8560
SELECT + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN CAST( NULL AS SIGNED ) AND + col2
----

skipif mysql # not compatible
query I rowsort label-8560
SELECT + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN CAST ( NULL AS INTEGER ) AND + col2
----

query I rowsort
SELECT + 9 * + - col1 FROM tab0 AS cor0
----
-189
-729
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8562
SELECT CAST( NULL AS DECIMAL ) / + + col1 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8562
SELECT CAST ( NULL AS REAL ) / + + col1 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * col2 * + col2 AS col2 FROM tab1 AS cor0
----
-295885
-420784
-470016

query I rowsort
SELECT ( - + 84 ) * + - col1 FROM tab2 cor0
----
4284
5628
6468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 48 col1 FROM tab1
----
2256
240
672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, + 90 AS col2 FROM tab2
----
51
90
67
90
77
90

onlyif mysql # aggregate syntax: 
query I rowsort label-8567
SELECT ALL - MAX( + - 79 ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-8567
SELECT ALL - MAX ( + - 79 ) FROM tab1
----
79

query II rowsort
SELECT + 91, + 22 FROM tab1 AS cor0 WHERE NOT - col1 + - col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8569
SELECT + MIN( + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8569
SELECT + MIN ( + col1 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT - col2 * ( + col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT - 42 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 41 + - col2 * - 59 AS col2, 75 col1 FROM tab0 cor0
----
2732
75
549
75
5800
75

query I rowsort
SELECT ALL - + ( + 32 ) FROM tab0 cor0
----
-32
-32
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8573
SELECT CAST( NULL AS SIGNED ) + - + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8573
SELECT CAST ( NULL AS INTEGER ) + - + col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 21 + - - 92 FROM tab1 AS cor0
----
71
71
71

query II rowsort
SELECT ALL - col1 * - col2 AS col0, 84 FROM tab0 AS cor0
----
210
84
3807
84
99
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8576
SELECT ALL + + ( - CAST( NULL AS SIGNED ) ) * + CAST( 72 AS SIGNED ) - - + col2 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8576
SELECT ALL + + ( - CAST ( NULL AS INTEGER ) ) * + CAST ( 72 AS INTEGER ) - - + col2 + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col0 ) + - col1 * 77 + - + col0 FROM tab1 cor0
----
-1180
-3801
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-8578
SELECT ALL 1 + - - COUNT( * ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-8578
SELECT ALL 1 + - - COUNT ( * ) FROM tab1 AS cor0
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8580
SELECT col1 * + - CAST( NULL AS SIGNED ) + - + 99 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT col1 * + - CAST ( NULL AS INTEGER ) + - + 99 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + - - col1 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT ALL + + 86 + 3 + + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-8582
SELECT ALL + + 86 + 3 + + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
92

query I rowsort
SELECT ALL 48 + + 81 AS col0 FROM tab0
----
129
129
129

query III rowsort
SELECT * FROM tab0 WHERE 31 NOT IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 WHERE NULL IS NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8586
SELECT ALL - COUNT( * ) - + + CAST( - COUNT( * ) AS SIGNED ) AS col1, + MAX( DISTINCT + - col0 ) * + 57 FROM tab1
----
0
-2907

skipif mysql # not compatible
query II rowsort label-8586
SELECT ALL - COUNT ( * ) - + + CAST ( - COUNT ( * ) AS INTEGER ) AS col1, + MAX ( DISTINCT + - col0 ) * + 57 FROM tab1
----
0
-2907

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8587
SELECT CAST( NULL AS SIGNED ) * + - 44 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8587
SELECT CAST ( NULL AS INTEGER ) * + - 44 col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col1 ) - col0 col2 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT col0 - + 65 + col0 + + col2 * + col0 + 45 + + col1 * col1 AS col0 FROM tab0 AS cor0
----
1465
7276
9778

query I rowsort
SELECT 2 - + 52 FROM tab1 AS cor0
----
-50
-50
-50

query I rowsort
SELECT - - col2 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT + SUM( ALL + col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-8592
SELECT + SUM ( ALL + col2 ) FROM tab2
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 col2 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - col2, - col0 AS col0 FROM tab0
----
-10
-87
-47
-15
-99
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, col2 + - col0 col1 FROM tab1
----
-51
45
-85
-26
-91
-23

query II rowsort
SELECT - 34, - col1 + - 3 AS col1 FROM tab0
----
-34
-24
-34
-4
-34
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-8597
SELECT ALL - col1 DIV - col0 col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8597
SELECT ALL - col1 / - col0 col2 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE col1 * + col1 IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE - col2 - - 53 <= NULL
----

query I rowsort
SELECT + ( - - 82 ) AS col2 FROM tab0 AS cor0
----
82
82
82

query II rowsort
SELECT DISTINCT + + 42 AS col1, - col1 AS col0 FROM tab0 AS cor0 WHERE NOT 90 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT DISTINCT + ( - COUNT( DISTINCT + col2 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8602
SELECT DISTINCT + ( - COUNT ( DISTINCT + col2 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT col2 + - - ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT + ( + col2 ) * col0 AS col1 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT - col1 * 60 * - col1 AS col0 FROM tab2
----
156060
269340
355740

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT - 72 * ( COUNT( col1 ) ) AS col0 FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-8606
SELECT - 72 * ( COUNT ( col1 ) ) AS col0 FROM tab1
----
-216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + col2 col0 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT MAX( ALL + 44 ) AS col1 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-8608
SELECT MAX ( ALL + 44 ) AS col1 FROM tab1
----
44

query I rowsort
SELECT 1 + + 81 AS col2 FROM tab2 AS cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT DISTINCT 57 * - COUNT( * ) FROM tab1
----
-171

skipif mysql # not compatible
query I rowsort label-8610
SELECT DISTINCT 57 * - COUNT ( * ) FROM tab1
----
-171

query I rowsort
SELECT ALL + col0 - + - 19 FROM tab0
----
106
116
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT + SUM( + - 47 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-423

skipif mysql # not compatible
query I rowsort label-8612
SELECT + SUM ( + - 47 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-423

query I rowsort
SELECT DISTINCT - 56 + - col2 FROM tab1
----
-115
-124
-152

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 <> - col0 + ( - - 38 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 * - - col0 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 * + - col1 FROM tab1 cor0
----
-196
-2209
-25

query I rowsort
SELECT ALL + 64 * + col0 FROM tab0 AS cor0
----
5568
6208
960

query I rowsort
SELECT - - col1 * - col0 * + + col2 + - - 53 - - + 95 FROM tab2 AS cor0
----
-196972
-291302
-53810

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 >= + + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - 64 )
----

query I rowsort
SELECT 69 - ( - col0 ) AS col2 FROM tab2 AS cor0
----
115
133
144

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 13 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 + + 36 * - col2 AS col0 FROM tab1 AS cor0
----
-2119
-2401
-3442

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8625
SELECT col0 * + col1 + - col1 + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8625
SELECT col0 * + col1 + - col1 + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 < - col0 - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT - MAX( DISTINCT + + col1 ) * - + 60 FROM tab0 AS cor0
----
4860

skipif mysql # not compatible
query I rowsort label-8628
SELECT - MAX ( DISTINCT + + col1 ) * - + 60 FROM tab0 AS cor0
----
4860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8629
SELECT DISTINCT CAST( - col2 AS SIGNED ) AS col0 FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT CAST ( - col2 AS INTEGER ) AS col0 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-8630
SELECT DISTINCT + AVG ( DISTINCT + col2 ), COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-8630
SELECT DISTINCT + AVG ( DISTINCT + col2 ), COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= ( NULL )
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT - MIN( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8631
SELECT - MIN ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
-15

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 64 * + + 72 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8633
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * + ( CAST( + 53 AS SIGNED ) ) < col1 * - - ( + col2 ) + + 26
----

skipif mysql # not compatible
query III rowsort label-8633
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * + ( CAST ( + 53 AS INTEGER ) ) < col1 * - - ( + col2 ) + + 26
----

skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 0 * col0 AND + ( 66 ) / + 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT + MAX( ALL - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8635
SELECT + MAX ( ALL - col2 ) FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8636
SELECT DISTINCT + + col1 * - col1 / - + CAST( + + 0 AS SIGNED ) - col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8636
SELECT DISTINCT + + col1 * - col1 / - + CAST ( + + 0 AS INTEGER ) - col0 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8637
SELECT 90 * - col1 + + col0 col1, CAST( - col1 AS SIGNED ) + + + col1 FROM tab1 AS cor0 WHERE NOT + col2 IN ( CAST( - 29 AS SIGNED ) / - col1, ( - - col2 ), + 60, col0 + - + 71 * - col2 * + 16 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8637
SELECT 90 * - col1 + + col0 col1, CAST ( - col1 AS INTEGER ) + + + col1 FROM tab1 AS cor0 WHERE NOT + col2 IN ( CAST ( - 29 AS INTEGER ) / - col1, ( - - col2 ), + 60, col0 + - + 71 * - col2 * + 16 )
----

query II rowsort
SELECT ALL - col1, - col0 AS col0 FROM tab1 AS cor0
----
-14
-51
-47
-91
-5
-85

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE + col2 + + - col1 IS NOT NULL
----
14
47
5

query I rowsort
SELECT col2 * ( - col0 ) + - col0 AS col1 FROM tab2 AS cor0
----
-1104
-2624
-4425

query I rowsort
SELECT 30 + + - col0 FROM tab0
----
-57
-67
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT DISTINCT - ( - MAX( ALL col1 ) ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8642
SELECT DISTINCT - ( - MAX ( ALL col1 ) ) AS col1 FROM tab1
----
47

query I rowsort
SELECT DISTINCT + 32 FROM tab2, tab0 cor0
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col2 FROM tab1 WHERE NOT NULL = + 7 + - + col1
----

query I rowsort
SELECT ALL + ( - 49 ) AS col2 FROM tab0
----
-49
-49
-49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT 94 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + + 79 * col1 * + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - 64 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8649
SELECT ALL + + col1 * CAST( NULL AS SIGNED ) + + 86 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8649
SELECT ALL + + col1 * CAST ( NULL AS INTEGER ) + + 86 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT + + MAX( ALL + + 76 ) FROM tab2 cor0
----
76

skipif mysql # not compatible
query I rowsort label-8650
SELECT + + MAX ( ALL + + 76 ) FROM tab2 cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT + - MIN( DISTINCT - 11 ) FROM tab0 cor0
----
11

skipif mysql # not compatible
query I rowsort label-8651
SELECT + - MIN ( DISTINCT - 11 ) FROM tab0 cor0
----
11

query I rowsort
SELECT - - 6 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT ALL - 45 * - + 63 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0218402243b3a4acd538d67bad14f4e0

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT DISTINCT - COUNT( * ) * - 34 FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-8654
SELECT DISTINCT - COUNT ( * ) * - 34 FROM tab0 AS cor0
----
102

query I rowsort
SELECT - + col1 + + + 25 AS col0 FROM tab0 AS cor0
----
-56
24
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8656
SELECT + col2 DIV - 73 * - col2 + + - col0 FROM tab2 cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8656
SELECT + col2 / - 73 * - col2 + + - col0 FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT - 55 / - + 9 + + col1 + - col0 IS NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8658
SELECT ALL - CAST( + + col2 AS SIGNED ) * col0 + col2 FROM tab0 AS cor0
----
-658
-860
-9504

skipif mysql # not compatible
query I rowsort label-8658
SELECT ALL - CAST ( + + col2 AS INTEGER ) * col0 + col2 FROM tab0 AS cor0
----
-658
-860
-9504

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2 )
----

query I rowsort
SELECT DISTINCT 41 + - 56 AS col1 FROM tab2
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8662
SELECT CAST( COUNT( ALL - - 96 ) AS SIGNED ) - - 66 AS col1 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-8662
SELECT CAST ( COUNT ( ALL - - 96 ) AS INTEGER ) - - 66 AS col1 FROM tab1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8663
SELECT + MAX( - 23 ) * - 53 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-8663
SELECT + MAX ( - 23 ) * - 53 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + - 90
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8664
SELECT + 52 * - COUNT( * ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8664
SELECT + 52 * - COUNT ( * ) FROM tab0
----
-156

query II rowsort
SELECT col1 AS col0, col0 + + + 98 FROM tab2
----
51
144
67
173
77
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 col2 FROM tab0 AS cor0
----
-60

query I rowsort
SELECT 75 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8668
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST( - 83 AS SIGNED ) + + 73, col1, + col2 * - 39, + 83 )
----

skipif mysql # not compatible
query III rowsort label-8668
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST ( - 83 AS INTEGER ) + + 73, col1, + col2 * - 39, + 83 )
----

query II rowsort
SELECT DISTINCT - - 11, + col1 FROM tab0 AS cor0
----
11
1
11
21
11
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8670
SELECT DISTINCT CAST( 63 AS SIGNED ) * - col1 AS col1 FROM tab1
----
-2961
-315
-882

skipif mysql # not compatible
query I rowsort label-8670
SELECT DISTINCT CAST ( 63 AS INTEGER ) * - col1 AS col1 FROM tab1
----
-2961
-315
-882

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8672
SELECT - AVG ( + - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8672
SELECT - AVG ( + - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 54 = + - 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT + ( + + COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8674
SELECT + ( + + COUNT ( * ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT 33 * - - 33 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1089
1089
1089

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8676
SELECT DISTINCT + 79 + - + 14 + 31 DIV - + COUNT( * ) FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-8676
SELECT DISTINCT + 79 + - + 14 + 31 / - + COUNT ( * ) FROM tab2 AS cor0
----
55

onlyif mysql # DIV for integer division: 
query I rowsort label-8677
SELECT ALL + 29 + - 68 DIV - 79 AS col1 FROM tab1 AS cor0 WHERE NOT col1 = - col1 * - col0 + - 62 + + col1 DIV - 52
----
29
29
29

skipif mysql # not compatible
query I rowsort label-8677
SELECT ALL + 29 + - 68 / - 79 AS col1 FROM tab1 AS cor0 WHERE NOT col1 = - col1 * - col0 + - 62 + + col1 / - 52
----
29
29
29

query I rowsort
SELECT DISTINCT + 50 + - 81 + + col1 AS col1 FROM tab1 AS cor0
----
-17
-26
16

onlyif mysql # aggregate syntax: 
query II rowsort label-8679
SELECT COUNT( * ) col2, + ( - - ( 39 ) ) FROM tab2
----
3
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8679
SELECT COUNT ( * ) col2, + ( - - ( 39 ) ) FROM tab2
----
3
39

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( - 92 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8681
SELECT COUNT( ALL 85 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8681
SELECT COUNT ( ALL 85 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 NOT BETWEEN NULL AND 22 * col1 + col2
----

query I rowsort
SELECT + 40 + - + 96 FROM tab1
----
-56
-56
-56

query I rowsort
SELECT - col1 + + col1 + + col1 + + col2 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT - COUNT( * ) * + COUNT( * ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8685
SELECT - COUNT ( * ) * + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col1 * col1 * - col0 > col1 * + col0
----
15
81
47
87
21
10

query I rowsort
SELECT 7 * + - 7 * + - col2 AS col1 FROM tab1
----
2891
3332
4704

query II rowsort
SELECT DISTINCT + 42, + col0 FROM tab1 AS cor0
----
42
51
42
85
42
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8689
SELECT DISTINCT + - 40 + + SUM( - 25 ) - - COUNT( * ) * - COUNT( * ) * + - COUNT( * ) DIV - + COUNT( * ) AS col0 FROM tab0 cor0
----
-124

skipif mysql # not compatible
query I rowsort label-8689
SELECT DISTINCT + - 40 + + SUM ( - 25 ) - - COUNT ( * ) * - COUNT ( * ) * + - COUNT ( * ) / - + COUNT ( * ) AS col0 FROM tab0 cor0
----
-124

query II rowsort
SELECT ALL - - col2 AS col1, - col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8691
SELECT 8 DIV - COUNT( DISTINCT - 9 ) FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-8691
SELECT 8 / - COUNT ( DISTINCT - 9 ) FROM tab2
----
-8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8692
SELECT ALL 55 AS col1 FROM tab2 WHERE ( ( - 37 * + 15 IN ( + col1 * - col0 - col0 + + - CAST( NULL AS DECIMAL ), - 0, - col0, + col0, + - col2 ) ) )
----

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL 55 AS col1 FROM tab2 WHERE ( ( - 37 * + 15 IN ( + col1 * - col0 - col0 + + - CAST ( NULL AS REAL ), - 0, - col0, + col0, + - col2 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8693
SELECT ALL - CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8693
SELECT ALL - CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT ALL MAX( col1 ) * COUNT( * ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL MAX ( col1 ) * COUNT ( * ) FROM tab1
----
141

query I rowsort
SELECT DISTINCT + col2 * - 71 AS col2 FROM tab2
----
-1633
-2840
-4118

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT SUM( ALL - col2 ) AS col1 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-8696
SELECT SUM ( ALL - col2 ) AS col1 FROM tab1
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8697
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8697
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < col1 + - 30
----

query II rowsort
SELECT - - ( - 16 ), + 60 AS col2 FROM tab0 cor0
----
-16
60
-16
60
-16
60

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = col2 / + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8701
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab0 AS cor0 WHERE NOT 81 + + 21 * - 30 + + 51 + - ( + col2 ) + 16 <> ( NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8704
SELECT + 54 AS col0, COUNT( * ) + - - 8 * 45 FROM tab2 AS cor0
----
54
363

skipif mysql # not compatible
query II rowsort label-8704
SELECT + 54 AS col0, COUNT ( * ) + - - 8 * 45 FROM tab2 AS cor0
----
54
363

query II rowsort
SELECT ALL col0 + col0 * - col2, col0 FROM tab2 AS cor0
----
-1012
46
-2496
64
-4275
75

query II rowsort
SELECT - + 86 + + 80 + + 64 AS col2, col2 AS col0 FROM tab2 AS cor0
----
58
23
58
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8707
SELECT - - 69 * + + COUNT( DISTINCT col0 ) + - MIN( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-8707
SELECT - - 69 * + + COUNT ( DISTINCT col0 ) + - MIN ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
192

query I rowsort
SELECT ALL col0 + + 46 AS col2 FROM tab0 AS cor0
----
133
143
61

onlyif mysql # DIV for integer division: 
query I rowsort label-8709
SELECT DISTINCT + col1 DIV + 81 + + - 34 * + - 15 * + col0 FROM tab2 AS cor0
----
23460
32640
38250

skipif mysql # not compatible
query I rowsort label-8709
SELECT DISTINCT + col1 / + 81 + + - 34 * + - 15 * + col0 FROM tab2 AS cor0
----
23460
32640
38250

query I rowsort
SELECT - col0 + + 2 + + col0 + + - col1 AS col2 FROM tab0
----
-19
-79
1

query III rowsort
SELECT * FROM tab2 WHERE + col2 / + 64 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8712
SELECT ALL ( CAST( NULL AS DECIMAL ) ), - COUNT( * ) AS col1 FROM tab1
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-8712
SELECT ALL ( CAST ( NULL AS REAL ) ), - COUNT ( * ) AS col1 FROM tab1
----
NULL
-3

query I rowsort
SELECT ALL 87 + - col2 + + - col1 * + col2 AS col1 FROM tab0
----
-111
-133
-3767

onlyif mysql # aggregate syntax: 
query I rowsort label-8714
SELECT + MAX( + 7 ) col0 FROM tab1
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8714
SELECT + MAX ( + 7 ) col0 FROM tab1
----
7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 * - - 74 IS NOT NULL
----

query I rowsort
SELECT + col2 - + + col0 AS col2 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-8717
SELECT ALL - COUNT( * ) + - SUM( ALL col2 ) FROM tab0 cor0
----
-159

skipif mysql # not compatible
query I rowsort label-8717
SELECT ALL - COUNT ( * ) + - SUM ( ALL col2 ) FROM tab0 cor0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT 24 + - + COUNT( * ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-8718
SELECT 24 + - + COUNT ( * ) FROM tab0
----
21

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT + SUM( DISTINCT + 20 ) FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-8720
SELECT + SUM ( DISTINCT + 20 ) FROM tab2 AS cor0
----
20

query I rowsort
SELECT col0 * - + col2 + + col2 FROM tab1 AS cor0
----
-4800
-4956
-6120

query II rowsort
SELECT - 97 * + col2 * + - col2 AS col0, col2 + - col1 AS col1 FROM tab2 AS cor0
----
155200
-37
326308
-9
51313
-28

query I rowsort
SELECT + 61 FROM tab1 AS cor0 WHERE NOT + col1 / + - col2 <= + + col2
----

query I rowsort
SELECT ALL + 71 AS col2 FROM tab1 cor0
----
71
71
71

query II rowsort
SELECT + + col0 * col2, - col0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
4896
-51
5015
-85
6188
-91

query II rowsort
SELECT DISTINCT col1 AS col1, + col0 AS col1 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT DISTINCT COUNT( - + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8727
SELECT DISTINCT COUNT ( - + col2 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE 33 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8729
SELECT + CAST( - - col0 AS SIGNED ) AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-8729
SELECT + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8730
SELECT ALL + CAST( NULL AS DECIMAL ), COUNT( * ) AS col0 FROM tab1
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8730
SELECT ALL + CAST ( NULL AS REAL ), COUNT ( * ) AS col0 FROM tab1
----
NULL
3

query I rowsort
SELECT ALL col2 * col1 * + col0 FROM tab2 AS cor0
----
197120
291450
53958

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 98 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > + 18
----

query I rowsort
SELECT ALL ( 64 ) + 23 + 79 - + col2 * + + ( 65 ) AS col1 FROM tab1
----
-3669
-4254
-6074

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 >= + 57
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8736
SELECT col0 DIV + + col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8736
SELECT col0 / + + col2 FROM tab2 AS cor0
----
1
1
2

query I rowsort
SELECT DISTINCT - + 88 * - + 2 FROM tab0 cor0
----
176

onlyif mysql # aggregate syntax: 
query II rowsort label-8738
SELECT + + 55 * MAX( ALL + 87 ) AS col0, - 60 AS col0 FROM tab0 AS cor0
----
4785
-60

skipif mysql # not compatible
query II rowsort label-8738
SELECT + + 55 * MAX ( ALL + 87 ) AS col0, - 60 AS col0 FROM tab0 AS cor0
----
4785
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-8739
SELECT ALL col0 DIV col2 + 44 + + col1 AS col2 FROM tab0
----
125
45
73

skipif mysql # not compatible
query I rowsort label-8739
SELECT ALL col0 / col2 + 44 + + col1 AS col2 FROM tab0
----
125
45
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8740
SELECT - 85 * + 48 * + CAST( NULL AS SIGNED ) * - col1 + ( - + col0 ), - ( + 61 ) * - col0 * col2 AS col0 FROM tab0
----
NULL
43005
NULL
53070
NULL
585783

skipif mysql # not compatible
query II rowsort label-8740
SELECT - 85 * + 48 * + CAST ( NULL AS INTEGER ) * - col1 + ( - + col0 ), - ( + 61 ) * - col0 * col2 AS col0 FROM tab0
----
NULL
43005
NULL
53070
NULL
585783

query I rowsort
SELECT - 66 + - col1 AS col1 FROM tab2
----
-117
-133
-143

query I rowsort
SELECT - ( - 17 ) * - col1 + + col2 FROM tab2
----
-1081
-1269
-844

query II rowsort
SELECT ALL col1 - + + col2 + 43 * col1 AS col1, - col0 AS col0 FROM tab1
----
161
-85
2000
-91
520
-51

query I rowsort
SELECT + 99 / + 16 FROM tab2 WHERE NULL = - col2 + + - ( - - col0 ) / col2 + col2 * - col0
----

query I rowsort
SELECT + col0 + + + 61 AS col2 FROM tab0
----
148
158
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8746
SELECT DISTINCT - 24 / + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8746
SELECT DISTINCT - 24 / + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col1 * ( - 64 ) FROM tab1 AS cor0
----
3008
320
896

query I rowsort
SELECT - - col2 AS col2 FROM tab2 cor0 WHERE - col1 IN ( + col2, - col1, - 50, - 86 )
----
23
40
58

query I rowsort
SELECT ALL - col0 * 26 FROM tab0 AS cor0
----
-2262
-2522
-390

query I rowsort
SELECT DISTINCT - col1 * + col2 + + col2 + + + col2 AS col2 FROM tab2 AS cor0
----
-1127
-3000
-3770

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + - col0 NOT BETWEEN ( NULL ) AND col0 * col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8752
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE NOT - 51 / CAST( col0 * + col2 AS SIGNED ) IN ( ( + 11 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-8752
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT - 51 / CAST ( col0 * + col2 AS INTEGER ) IN ( ( + 11 ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NULL > + 42
----
0

skipif mysql # not compatible
query I rowsort label-8753
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NULL > + 42
----
0

query I rowsort
SELECT + col1 FROM tab2 WHERE ( + 64 + col1 * + col2 ) >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8755
SELECT ALL 18 DIV col2 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8755
SELECT ALL 18 / col2 col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8756
SELECT DISTINCT ( - COUNT( * ) ) FROM tab1 WHERE - 26 + + col1 * + 24 <> + CAST( NULL AS SIGNED ) * col1
----
0

skipif mysql # not compatible
query I rowsort label-8756
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab1 WHERE - 26 + + col1 * + 24 <> + CAST ( NULL AS INTEGER ) * col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT ALL COUNT( col2 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8757
SELECT ALL COUNT ( col2 ) col0 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE + 37 + - col1 * col0 IN ( + 90 + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8759
SELECT ( CAST( 73 AS SIGNED ) ) AS col0 FROM tab2
----
73
73
73

skipif mysql # not compatible
query I rowsort label-8759
SELECT ( CAST ( 73 AS INTEGER ) ) AS col0 FROM tab2
----
73
73
73

query I rowsort
SELECT - col0 + 33 FROM tab0
----
-54
-64
18

query III rowsort
SELECT * FROM tab1 WHERE + col1 IN ( 58 / col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT MAX( col0 ) + + 7 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-8762
SELECT MAX ( col0 ) + + 7 FROM tab2
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8763
SELECT ALL + col0 + - col1 DIV 15 AS col1 FROM tab1 WHERE NOT ( - 63 + - col2 DIV 63 ) = col0 - col0 * + 72
----
51
85
88

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL + col0 + - col1 / 15 AS col1 FROM tab1 WHERE NOT ( - 63 + - col2 / 63 ) = col0 - col0 * + 72
----
51
85
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 69 col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
69
69
69

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT ( col2 - + col0 ) NOT BETWEEN - col2 - - 55 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 BETWEEN + col0 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT 51 - + COUNT( * ) col2 FROM tab1
----
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8767
SELECT 51 - + COUNT ( * ) col2 FROM tab1
----
48

query I rowsort
SELECT ALL col0 * - 97 + + col2 AS col1 FROM tab0 cor0
----
-1408
-8429
-9310

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab0 AS cor0 WHERE ( - 74 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8770
SELECT COUNT( * ) + ( 54 ) * - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-159

skipif mysql # not compatible
query I rowsort label-8770
SELECT COUNT ( * ) + ( 54 ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-159

query I rowsort
SELECT DISTINCT ( col1 ) + - col0 AS col0 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT ALL 91 + 87 FROM tab1 AS cor0
----
178
178
178

query I rowsort
SELECT ALL 7 * col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
322
448
525

query I rowsort
SELECT + 96 + + 42 FROM tab2
----
138
138
138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8775
SELECT DISTINCT - COUNT( * ) DIV 73 AS col1 FROM tab2 WHERE 47 + + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8775
SELECT DISTINCT - COUNT ( * ) / 73 AS col1 FROM tab2 WHERE 47 + + col2 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) <= col0 * col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( col2 + - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + ( col0 + + ( - col1 ) ) * - 63 FROM tab2 AS cor0
----
-446
338
859

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 = + 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT COUNT( * ) FROM tab2 cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8780
SELECT COUNT ( * ) FROM tab2 cor0 WHERE + col2 IS NULL
----
0

query I rowsort
SELECT col0 + 4 AS col0 FROM tab2 AS cor0
----
50
68
79

query I rowsort
SELECT + + 46 + col2 AS col1 FROM tab0 cor0
----
145
56
93

query I rowsort
SELECT col1 + - col1 AS col0 FROM tab1 AS cor0 WHERE col2 * - 36 IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8784
SELECT - + col1 * - CAST( NULL AS SIGNED ) + 84 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8784
SELECT - + col1 * - CAST ( NULL AS INTEGER ) + 84 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT - 69 * + 5 + COUNT( col2 ) AS col2 FROM tab2 AS cor0
----
-342

skipif mysql # not compatible
query I rowsort label-8786
SELECT - 69 * + 5 + COUNT ( col2 ) AS col2 FROM tab2 AS cor0
----
-342

query I rowsort
SELECT DISTINCT col0 + 26 * col2 AS col2 FROM tab2 AS cor0
----
1104
1583
644

query I rowsort
SELECT DISTINCT col2 - 54 AS col2 FROM tab1 AS cor0
----
14
42
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8789
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + 70 BETWEEN NULL AND col0
----

skipif mysql # not compatible
query III rowsort label-8789
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + 70 BETWEEN NULL AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 16 col1 FROM tab2 AS cor0
----
16
16
16

query I rowsort
SELECT DISTINCT + col1 + - + col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col0 + + col0 + col2 AS col2 FROM tab1
----
198
229
250

query III rowsort
SELECT * FROM tab2 WHERE NULL <= ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8794
SELECT col1 * - + CAST( col1 AS SIGNED ) col0 FROM tab2
----
-2601
-4489
-5929

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8794
SELECT col1 * - + CAST ( col1 AS INTEGER ) col0 FROM tab2
----
-2601
-4489
-5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - ( + 11 ) col2 FROM tab0
----
-1067
-165
-957

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8796
SELECT DISTINCT MAX( ALL + 51 ) DIV COUNT( CAST( - col1 AS SIGNED ) ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-8796
SELECT DISTINCT MAX ( ALL + 51 ) / COUNT ( CAST ( - col1 AS INTEGER ) ) FROM tab0
----
17

query I rowsort
SELECT ALL col1 + 67 FROM tab1 WHERE NOT col2 IN ( - col1 )
----
114
72
81

query I rowsort
SELECT 52 - - + col0 + + col1 AS col2 FROM tab2 cor0
----
149
193
194

query I rowsort
SELECT - col0 * - 4 - col1 FROM tab0 AS cor0
----
-21
327
387

query I rowsort
SELECT ALL - col2 * + 57 AS col2 FROM tab2 AS cor0
----
-1311
-2280
-3306

query I rowsort
SELECT DISTINCT + ( + 27 ) AS col0 FROM tab1 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-8802
SELECT DISTINCT - 93 + 13 * + COUNT( * ) FROM tab0 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-8802
SELECT DISTINCT - 93 + 13 * + COUNT ( * ) FROM tab0 cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT ALL 36 * + COUNT( * ) FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-8803
SELECT ALL 36 * + COUNT ( * ) FROM tab1
----
108

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 ) NOT IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8805
SELECT - + COUNT( * ) * - + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8805
SELECT - + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8806
SELECT DISTINCT + col2 DIV + CAST( - 37 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-8806
SELECT DISTINCT + col2 / + CAST ( - 37 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - + col1 * 82 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8808
SELECT - + MIN( - 99 ) AS col1 FROM tab2 cor0
----
99

skipif mysql # not compatible
query I rowsort label-8808
SELECT - + MIN ( - 99 ) AS col1 FROM tab2 cor0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8809
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8809
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT - + COUNT( - col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8810
SELECT - + COUNT ( - col1 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT DISTINCT - ( + COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8812
SELECT DISTINCT - ( + COUNT ( * ) ) FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL - 31 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= + 35
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8814
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8814
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col2, + col1 - + 51 col0 FROM tab1 AS cor0
----
-14
-37
-47
-4
-5
-46

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT + - 16 = NULL
----

query I rowsort
SELECT ALL col2 * - 10 FROM tab0
----
-100
-470
-990

query I rowsort
SELECT col0 * - - 94 * col2 AS col0 FROM tab1
----
460224
471410
581672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8820
SELECT DISTINCT - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8820
SELECT DISTINCT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 83 / - col2 >= ( NULL )
----

query I rowsort
SELECT + 68 AS col0 FROM tab2 WHERE NOT ( - + 30 ) BETWEEN NULL AND 24
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8823
SELECT DISTINCT + col1 * + col1 DIV + col1 AS col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8823
SELECT DISTINCT + col1 * + col1 / + col1 AS col0 FROM tab0
----
1
21
81

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= 83
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8825
SELECT col0 DIV - - 42 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8825
SELECT col0 / - - 42 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL + 27 FROM tab0 WHERE + col2 = + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8827
SELECT DISTINCT + col2 DIV col2 * + - ( - col1 ) AS col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8827
SELECT DISTINCT + col2 / col2 * + - ( - col1 ) AS col1 FROM tab2
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL BETWEEN + + col0 * - 59 AND ( NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8829
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 49 ) > ( + + CAST( + 70 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8829
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 49 ) > ( + + CAST ( + 70 AS INTEGER ) )
----

query I rowsort
SELECT ALL + col2 + + - 29 + - + col0 + ( col2 ) FROM tab0 AS cor0
----
-96
50
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8831
SELECT 51 + COUNT( * ) FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8831
SELECT 51 + COUNT ( * ) FROM tab0 AS cor0
----
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8832
SELECT COUNT( * ) + CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8832
SELECT COUNT ( * ) + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 91 * - + col0 + col1 + - ( - col1 ) * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8834
SELECT - 88 + COUNT( * ) FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-8834
SELECT - 88 + COUNT ( * ) FROM tab2
----
-85

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 42 * col2 ) IN ( + 24 - - + col0 * 77 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8836
SELECT + + col1 DIV + + 2 AS col0 FROM tab2 AS cor0
----
25
33
38

skipif mysql # not compatible
query I rowsort label-8836
SELECT + + col1 / + + 2 AS col0 FROM tab2 AS cor0
----
25
33
38

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 NOT IN ( - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8838
SELECT DISTINCT - col1 * - - ( + + 62 ) + col1 + col2 DIV col2 + + col0 AS col1 FROM tab1 AS cor0
----
-219
-2775
-802

skipif mysql # not compatible
query I rowsort label-8838
SELECT DISTINCT - col1 * - - ( + + 62 ) + col1 + col2 / col2 + + col0 AS col1 FROM tab1 AS cor0
----
-219
-2775
-802

query I rowsort
SELECT - col2 * + col0 - - - col2 AS col2 FROM tab0 AS cor0
----
-752
-880
-9702

query I rowsort
SELECT DISTINCT + + 98 - 74 + col0 - - 26 FROM tab2 AS cor0
----
114
125
96

query I rowsort
SELECT DISTINCT + ( - col2 ) FROM tab1 WHERE + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT DISTINCT - 58 + - COUNT( * ) AS col2 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-8842
SELECT DISTINCT - 58 + - COUNT ( * ) AS col2 FROM tab2
----
-61

query I rowsort
SELECT - ( - col0 ) + - + col0 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT ALL - 20 * - COUNT( * ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL - 20 * - COUNT ( * ) FROM tab0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8845
SELECT - MAX( + + 52 ) AS col0 FROM tab1 WHERE 45 * - - col1 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8845
SELECT - MAX ( + + 52 ) AS col0 FROM tab1 WHERE 45 * - - col1 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT - col2 + + col2 + + + ( ( - 33 ) ) FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-33

query I rowsort
SELECT col0 + + + col2 AS col2 FROM tab2
----
104
133
69

query I rowsort
SELECT DISTINCT + col0 + - col0 FROM tab2 WHERE NOT ( col1 IS NULL )
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * - + col0 IS NOT NULL
----

query I rowsort
SELECT - 73 * col1 FROM tab2 WHERE - col0 IN ( 6, col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 73 ) <= ( NULL )
----

query I rowsort
SELECT ALL - - ( - + col2 ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT + col2 * + - ( col1 ) FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT - + 62 AS col2 FROM tab1 AS cor0
----
-62

query II rowsort
SELECT + 31, ( + col0 ) FROM tab1 AS cor0
----
31
51
31
85
31
91

query I rowsort
SELECT DISTINCT - col0 * - + 7 FROM tab1 WHERE + - 80 IS NOT NULL
----
357
595
637

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8857
SELECT + COUNT( * ) * + CAST( NULL AS SIGNED ), ( 44 ) col0 FROM tab1 AS cor0
----
NULL
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8857
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ), ( 44 ) col0 FROM tab1 AS cor0
----
NULL
44

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * col1 IN ( - + col0 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + col0 * 11 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8860
SELECT col0 * + + ( ( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8860
SELECT col0 * + + ( ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE ( NULL ) = col0 + - col2
----

query I rowsort
SELECT col0 + - - ( + col1 ) FROM tab1
----
138
65
90

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT ( + col0 * col0 ) IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( 60 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 10 col0, - 65 FROM tab1
----
10
-65
10
-65
10
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-8866
SELECT + COUNT( * ) AS col2, - MAX( ( 46 ) ) - + 84 + - + COUNT( ALL col0 ) FROM tab2 AS cor0
----
3
-133

skipif mysql # not compatible
query II rowsort label-8866
SELECT + COUNT ( * ) AS col2, - MAX ( ( 46 ) ) - + 84 + - + COUNT ( ALL col0 ) FROM tab2 AS cor0
----
3
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT - - COUNT( 32 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8867
SELECT - - COUNT ( 32 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT col1, + 10 FROM tab0 AS cor0
----
1
10
21
10
81
10

query I rowsort
SELECT ALL - col0 + + + col0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 * - 69 + - col0 AS col2 FROM tab1
----
-3570
-5950
-6370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8871
SELECT - 70 + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8871
SELECT - 70 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8873
SELECT 81 * col2 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8873
SELECT 81 * col2 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * 89 + + 44 AS col1 FROM tab2 AS cor0
----
-4495
-5919
-6809

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8875
SELECT ALL - COUNT( ALL - - CAST( NULL AS SIGNED ) ) col1 FROM tab1 AS cor0 WHERE NULL = + 65 * - col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8875
SELECT ALL - COUNT ( ALL - - CAST ( NULL AS INTEGER ) ) col1 FROM tab1 AS cor0 WHERE NULL = + 65 * - col0
----
0

query I rowsort
SELECT DISTINCT col0 * - + 76 + col1 * + - col1 FROM tab0
----
-7053
-7373
-7701

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT - COUNT( * ) * - + COUNT( * ) AS col0 FROM tab0 WHERE - - ( col0 ) * + + ( - - 42 ) + - ( + col2 ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8877
SELECT - COUNT ( * ) * - + COUNT ( * ) AS col0 FROM tab0 WHERE - - ( col0 ) * + + ( - - 42 ) + - ( + col2 ) > NULL
----
0

query I rowsort
SELECT col2 - - 57 AS col0 FROM tab2
----
115
80
97

query III rowsort
SELECT * FROM tab2 WHERE NULL IS NOT NULL AND NOT - col2 * + col0 IN ( + - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8880
SELECT CAST( NULL AS SIGNED ) * + col0 * 45 - CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8880
SELECT CAST ( NULL AS INTEGER ) * + col0 * 45 - CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8881
SELECT * FROM tab2 WHERE NOT + col1 * + col2 / - + CAST( + col1 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8881
SELECT * FROM tab2 WHERE NOT + col1 * + col2 / - + CAST ( + col1 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT DISTINCT MIN( DISTINCT - 47 ) FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8882
SELECT DISTINCT MIN ( DISTINCT - 47 ) FROM tab0 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT + COUNT( * ) + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 / col1 * + 71 / col1 < - col2
----
6

skipif mysql # not compatible
query I rowsort label-8883
SELECT + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col1 / col1 * + 71 / col1 < - col2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT DISTINCT COUNT( ALL + col2 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8884
SELECT DISTINCT COUNT ( ALL + col2 ) AS col1 FROM tab0 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 > ( - 52 )
----

query II rowsort
SELECT + 60 AS col0, - col0 * col2 AS col1 FROM tab0
----
60
-705
60
-870
60
-9603

query II rowsort
SELECT ALL 94 AS col1, - col2 - + col2 FROM tab2
----
94
-116
94
-46
94
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT MIN( ALL + col0 ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8888
SELECT MIN ( ALL + col0 ) AS col0 FROM tab0
----
15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN + col0 AND - col1 + 44 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8890
SELECT col1 + - ( + 77 ) * - col1 * + col2 AS col1 FROM tab1 AS cor0 WHERE NOT 76 / - + col2 * - CAST( - + col1 AS SIGNED ) * - 28 = NULL
----

skipif mysql # not compatible
query I rowsort label-8890
SELECT col1 + - ( + 77 ) * - col1 * + col2 AS col1 FROM tab1 AS cor0 WHERE NOT 76 / - + col2 * - CAST ( - + col1 AS INTEGER ) * - 28 = NULL
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT - col0 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8892
SELECT DISTINCT - 38 DIV col0 + + - 25 FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8892
SELECT DISTINCT - 38 / col0 + + - 25 FROM tab1 AS cor0
----
-25

query II rowsort
SELECT col1 AS col1, col2 FROM tab1 cor0
----
14
96
47
68
5
59

query I rowsort
SELECT DISTINCT + col2 * + col0 * - col1 FROM tab0 AS cor0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8895
SELECT ALL + COUNT( + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) + - - 98 FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL + COUNT ( + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) + - - 98 FROM tab0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8896
SELECT + col0 DIV col1 DIV - col1 * + - col1 FROM tab0
----
0
0
97

skipif mysql # not compatible
query I rowsort label-8896
SELECT + col0 / col1 / - col1 * + - col1 FROM tab0
----
0
0
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT COUNT( * ) * + 91 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-8897
SELECT COUNT ( * ) * + 91 FROM tab1
----
273

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8898
SELECT + 84 + + + COUNT( * ) / + CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE - - 19 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8898
SELECT + 84 + + + COUNT ( * ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE - - 19 IS NULL
----
NULL

query I rowsort
SELECT + 30 + - 37 AS col1 FROM tab0 cor0
----
-7
-7
-7

query II rowsort
SELECT DISTINCT - col1 + col2 AS col2, - col1 FROM tab1 cor0
----
21
-47
54
-5
82
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8901
SELECT - - 21 * + COUNT( * ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-8901
SELECT - - 21 * + COUNT ( * ) FROM tab0 AS cor0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8902
SELECT - CAST( NULL AS SIGNED ) * col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8902
SELECT - CAST ( NULL AS INTEGER ) * col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col0, 43 FROM tab0
----
15
43
87
43
97
43

query I rowsort
SELECT ALL - col2 - - - col0 AS col1 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT ALL - 98 AS col0 FROM tab2 cor0
----
-98
-98
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8906
SELECT DISTINCT + 86 * + + CAST( NULL AS SIGNED ) + + + 90 * - col0 * + col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8906
SELECT DISTINCT + 86 * + + CAST ( NULL AS INTEGER ) + + + 90 * - col0 * + col0 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - col1 * + - col0 AS col2 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT DISTINCT SUM( ALL col0 ) col1 FROM tab1 cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8908
SELECT DISTINCT SUM ( ALL col0 ) col1 FROM tab1 cor0
----
227

query I rowsort
SELECT DISTINCT + + col1 + - 81 FROM tab0 AS cor0
----
-60
-80
0

query I rowsort
SELECT + - col0 + + - col0 AS col0 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT - MAX( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8911
SELECT - MAX ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + 63 ) + - col0, + col0 col2 FROM tab2 AS cor0
----
-109
46
-127
64
-138
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8913
SELECT ALL 66 DIV - col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8913
SELECT ALL 66 / - col2 FROM tab1
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 81 + + - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 > col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 = - - 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 58 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
58

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8919
SELECT ALL 82 + + + col2 * + col2 AS col2, + col2 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
3563
NULL
4706
NULL
9298
NULL

skipif mysql # not compatible
query II rowsort label-8919
SELECT ALL 82 + + + col2 * + col2 AS col2, + col2 + + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
3563
NULL
4706
NULL
9298
NULL

query I rowsort
SELECT 91 * - col2 * - col2 FROM tab1 AS cor0
----
316771
420784
838656

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col2 * + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 97 + + + col0 + + 24 + col1 FROM tab0 AS cor0
----
217
219
229

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE - col1 * + 2 IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL col1 + 43 FROM tab2 AS cor0
----
110
120
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8926
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 <> - + col1 - - CAST( + - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8926
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 <> - + col1 - - CAST ( + - col2 AS INTEGER )
----

query I rowsort
SELECT ALL - 30 + - col1 + + + 16 * - + 1 AS col2 FROM tab0
----
-127
-47
-67

onlyif mysql # DIV for integer division: 
query III rowsort label-8928
SELECT + 76 DIV - col0, + ( + col2 ) AS col2, + 65 + ( + col1 ) col2 FROM tab1
----
9 values hashing to d572563230179de6039e74a9880c26ea

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-8928
SELECT + 76 / - col0, + ( + col2 ) AS col2, + 65 + ( + col1 ) col2 FROM tab1
----
9 values hashing to d572563230179de6039e74a9880c26ea

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8929
SELECT + - 66 DIV - SUM( DISTINCT + 39 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8929
SELECT + - 66 / - SUM ( DISTINCT + 39 ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8930
SELECT - COUNT( * ), 98 col2 FROM tab0 AS cor0
----
-3
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8930
SELECT - COUNT ( * ), 98 col2 FROM tab0 AS cor0
----
-3
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8931
SELECT DISTINCT 82 * - - 56 - + + COUNT( * ) * + 10 + 97 AS col1 FROM tab0
----
4659

skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT 82 * - - 56 - + + COUNT ( * ) * + 10 + 97 AS col1 FROM tab0
----
4659

query I rowsort
SELECT - 90 + 52 * col2 + + - 69 FROM tab0
----
2285
361
4989

query I rowsort
SELECT + - col0 * - + ( + col0 ) FROM tab0 cor0
----
225
7569
9409

query I rowsort
SELECT DISTINCT + 52 * + + ( - - 27 ) FROM tab0 AS cor0
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT + + 88 * COUNT( * ) FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-8935
SELECT + + 88 * COUNT ( * ) FROM tab1 AS cor0
----
264

query I rowsort
SELECT ALL - + col1 + - 79 FROM tab2 cor0
----
-130
-146
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT ALL + MAX( + + 26 ) AS col2 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL + MAX ( + + 26 ) AS col2 FROM tab2 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT ALL MIN( DISTINCT + col1 ) * + + 50 FROM tab1 cor0 WHERE + col1 * - 40 < + 89
----
250

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL MIN ( DISTINCT + col1 ) * + + 50 FROM tab1 cor0 WHERE + col1 * - 40 < + 89
----
250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 74 col2 FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT + COUNT( + + ( - 5 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8940
SELECT + COUNT ( + + ( - 5 ) ) FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + - col2 ) < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 94 col2 FROM tab0
----
-94
-94
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8943
SELECT CAST( NULL AS SIGNED ) AS col2, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-8943
SELECT CAST ( NULL AS INTEGER ) AS col2, col1 FROM tab0
----
NULL
1
NULL
21
NULL
81

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 NOT BETWEEN NULL AND + col2 * + col2 + + 28 / - + 17 - + col0 + - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8945
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + - 19 + + 94 * + 27 * + + CAST( NULL AS SIGNED ) * - - col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8945
SELECT ALL * FROM tab1 AS cor0 WHERE col0 + - 19 + + 94 * + 27 * + + CAST ( NULL AS INTEGER ) * - - col2 IS NOT NULL
----

query II rowsort
SELECT ALL 0 AS col0, - col2 FROM tab1 AS cor0
----
0
-59
0
-68
0
-96

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 AS cor0 WHERE + 15 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT - MAX( 87 ) FROM tab0 cor0
----
-87

skipif mysql # not compatible
query I rowsort label-8948
SELECT - MAX ( 87 ) FROM tab0 cor0
----
-87

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col2 ) IN ( - 23 )
----

query I rowsort
SELECT DISTINCT + col1 + - 76 AS col1 FROM tab0 AS cor0
----
-55
-75
5

query I rowsort
SELECT ALL col0 * 78 FROM tab2 AS cor0 WHERE col2 * + col0 IS NOT NULL
----
3588
4992
5850

onlyif mysql # DIV for integer division: 
query I rowsort label-8952
SELECT ALL + 97 + col2 + + 20 DIV + col2 AS col2 FROM tab2
----
120
137
155

skipif mysql # not compatible
query I rowsort label-8952
SELECT ALL + 97 + col2 + + 20 / + col2 AS col2 FROM tab2
----
120
137
155

query I rowsort
SELECT DISTINCT - ( - col0 ) FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT MIN( DISTINCT col0 ) + + COUNT( * ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-8954
SELECT MIN ( DISTINCT col0 ) + + COUNT ( * ) FROM tab0
----
18

query I rowsort
SELECT - col1 + 40 AS col2 FROM tab1
----
-7
26
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8956
SELECT - 67 + COUNT( * ) AS col1 FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-8956
SELECT - 67 + COUNT ( * ) AS col1 FROM tab0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8957
SELECT DISTINCT col1 * + + col0 + - CAST( NULL AS SIGNED ) * - - col0 AS col1 FROM tab0 WHERE NOT + 8 - - col2 = NULL
----

skipif mysql # not compatible
query I rowsort label-8957
SELECT DISTINCT col1 * + + col0 + - CAST ( NULL AS INTEGER ) * - - col0 AS col1 FROM tab0 WHERE NOT + 8 - - col2 = NULL
----

query I rowsort
SELECT + 20 + - + col2 AS col2 FROM tab1
----
-39
-48
-76

onlyif mysql # aggregate syntax: 
query II rowsort label-8959
SELECT + 34 + - + SUM( ALL - + 54 ) AS col1, - COUNT( * ) FROM tab0
----
196
-3

skipif mysql # not compatible
query II rowsort label-8959
SELECT + 34 + - + SUM ( ALL - + 54 ) AS col1, - COUNT ( * ) FROM tab0
----
196
-3

query I rowsort
SELECT col2 + + - col2 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - col0 * - 49 AS col0 FROM tab2
----
2254
3136
3675

query I rowsort
SELECT ALL - 95 AS col0 FROM tab2 WHERE NOT NULL <> 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT ALL - ( - COUNT( * ) ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL - ( - COUNT ( * ) ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT + COUNT( + - col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8965
SELECT + COUNT ( + - col1 ) FROM tab2 cor0
----
3

query I rowsort
SELECT ALL + + col2 * - 72 + + col1 + + + col0 * + col2 FROM tab2 AS cor0
----
-243
-547
241

query I rowsort
SELECT ALL + 67 + 41 AS col1 FROM tab0 AS cor0
----
108
108
108

query I rowsort
SELECT 89 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8969
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + - ( + 74 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8969
SELECT DISTINCT - CAST ( NULL AS REAL ) + + - ( + 74 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 * + col2 + col2 / + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8971
SELECT + COUNT( * ) AS col2 FROM tab2, tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8971
SELECT + COUNT ( * ) AS col2 FROM tab2, tab1 cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - + col2 + - col1 col2 FROM tab0
----
-175
-199
-41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8973
SELECT * FROM tab2 WHERE NULL BETWEEN - ( + CAST( + 20 AS SIGNED ) ) AND + CAST( + + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8973
SELECT * FROM tab2 WHERE NULL BETWEEN - ( + CAST ( + 20 AS INTEGER ) ) AND + CAST ( + + col2 AS INTEGER )
----

query I rowsort
SELECT ALL + col1 * - 86 - - col2 AS col0 FROM tab0
----
-1796
-6919
13

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT DISTINCT + COUNT( * ) * + 77 AS col1 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-8975
SELECT DISTINCT + COUNT ( * ) * + 77 AS col1 FROM tab2 AS cor0
----
231

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 * - col2 * + - col0 + - col0 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8977
SELECT - + CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8977
SELECT - + CAST ( NULL AS INTEGER ) / col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - - col2, - 54 AS col1 FROM tab0 AS cor0
----
10
-54
47
-54
99
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 73 col2, + 59 + + 48 - - col2 FROM tab0 AS cor0
----
-73
117
-73
154
-73
206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8980
SELECT + + ( CAST( NULL AS SIGNED ) ) * col1 + - + col2 / - 82 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8980
SELECT + + ( CAST ( NULL AS INTEGER ) ) * col1 + - + col2 / - 82 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * 80 FROM tab1
----
4720
5440
7680

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT DISTINCT - 81 * + COUNT( * ) FROM tab2
----
-243

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT - 81 * + COUNT ( * ) FROM tab2
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT ALL 72 * + + MIN( - col1 ) AS col2 FROM tab0
----
-5832

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL 72 * + + MIN ( - col1 ) AS col2 FROM tab0
----
-5832

query II rowsort
SELECT - col1 * + col1 AS col0, - ( - col1 ) AS col1 FROM tab0
----
-1
1
-441
21
-6561
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT ALL - - COUNT( * ) AS col2 FROM tab2 WHERE - col0 * + - col2 + + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8985
SELECT ALL - - COUNT ( * ) AS col2 FROM tab2 WHERE - col0 * + - col2 + + col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT ALL + 13 * - - COUNT( 21 ) FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL + 13 * - - COUNT ( 21 ) FROM tab1
----
39

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE - 79 < - 64
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8988
SELECT + - ( COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) ) AS col2, 77 col0 FROM tab2 AS cor0
----
0
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8988
SELECT + - ( COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) AS col2, 77 col0 FROM tab2 AS cor0
----
0
77

query I rowsort
SELECT DISTINCT - - 82 AS col0 FROM tab1 AS cor0
----
82

query I rowsort
SELECT col2 + + 28 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col2 AND NULL
----

query II rowsort
SELECT ALL col0, col0 AS col2 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT 37 * + + col0 + - - col0 AS col1 FROM tab0
----
3306
3686
570

query I rowsort
SELECT - 48 + - col2 FROM tab2 AS cor0
----
-106
-71
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8994
SELECT + + col1 * - - 82 - + - ( + 10 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8994
SELECT + + col1 * - - 82 - + - ( + 10 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8995
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( CAST( + - 20 AS DECIMAL ), + col2 - + + ( - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-8995
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( CAST ( + - 20 AS REAL ), + col2 - + + ( - col0 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8996
SELECT ALL + COUNT( + - 47 ) DIV + 24 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL + COUNT ( + - 47 ) / + 24 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL + + col2 + + + col2 FROM tab2 AS cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT + MAX( - - col0 ) + - - 32 AS col1 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-8998
SELECT + MAX ( - - col0 ) + - - 32 AS col1 FROM tab1 AS cor0
----
123

query I rowsort
SELECT ALL + 38 + + col0 - col2 AS col1 FROM tab2 AS cor0
----
55
61
62

query II rowsort
SELECT DISTINCT + + col0 + ( + 67 ) + + 63, + col0 AS col1 FROM tab1 AS cor0
----
181
51
215
85
221
91

query I rowsort
SELECT col1 + - - 74 FROM tab1 cor0
----
121
79
88

query I rowsort
SELECT 59 * + ( col2 ) * - col1 * - + col0 AS col1 FROM tab1 WHERE ( - 89 ) * - col1 IS NULL
----

query I rowsort
SELECT col0 - - col1 AS col1 FROM tab1 cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT ALL MAX( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9004
SELECT ALL MAX ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----
NULL

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE 50 > NULL
----

query I rowsort
SELECT - col1 + + + ( + 6 ) - + col0 FROM tab2
----
-135
-136
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-9008
SELECT ALL + 31 + + - COUNT( - col1 ) AS col0, 15 FROM tab0
----
28
15

skipif mysql # not compatible
query II rowsort label-9008
SELECT ALL + 31 + + - COUNT ( - col1 ) AS col0, 15 FROM tab0
----
28
15

query I rowsort
SELECT ( + 24 ) AS col2 FROM tab0
----
24
24
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9010
SELECT + col1, ( CAST( 52 AS SIGNED ) ) AS col0 FROM tab2
----
51
52
67
52
77
52

skipif mysql # not compatible
query II rowsort label-9010
SELECT + col1, ( CAST ( 52 AS INTEGER ) ) AS col0 FROM tab2
----
51
52
67
52
77
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9011
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( + col2 AS SIGNED ) * col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9011
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( + col2 AS INTEGER ) * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT + - MIN( + 87 ) FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-9012
SELECT + - MIN ( + 87 ) FROM tab2 AS cor0
----
-87

query I rowsort
SELECT DISTINCT + + 15 AS col0 FROM tab0 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 col1 FROM tab1 AS cor0
----
64

query I rowsort
SELECT col0 * - col2 * + 55 FROM tab0 AS cor0
----
-38775
-47850
-528165

query II rowsort
SELECT ALL col2 AS col1, - col2 AS col1 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9017
SELECT DISTINCT - CAST( 2 AS SIGNED ) * - 92 col2 FROM tab2 AS cor0
----
184

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9017
SELECT DISTINCT - CAST ( 2 AS INTEGER ) * - 92 col2 FROM tab2 AS cor0
----
184

query I rowsort
SELECT 27 * + 71 FROM tab0
----
1917
1917
1917

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9019
SELECT ALL CAST( - ( - - col0 ) AS SIGNED ) col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9019
SELECT ALL CAST ( - ( - - col0 ) AS INTEGER ) col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT + 52 * 18 AS col1 FROM tab0
----
936

query I rowsort
SELECT ALL col1 * 25 * + + col0 FROM tab2
----
123200
125625
58650

onlyif mysql # DIV for integer division: 
query I rowsort label-9022
SELECT 76 * col1 DIV + col0 FROM tab1
----
20
39
4

skipif mysql # not compatible
query I rowsort label-9022
SELECT 76 * col1 / + col0 FROM tab1
----
20
39
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT - + ( - ( COUNT( * ) ) ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9023
SELECT - + ( - ( COUNT ( * ) ) ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL + col1 + + - 15 FROM tab0 AS cor0
----
-14
6
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT DISTINCT COUNT( * ) * + COUNT( * ) * + 38 + - 96 AS col0 FROM tab1 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-9025
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) * + 38 + - 96 AS col0 FROM tab1 AS cor0
----
246

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 * - 63 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col2 = NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE 42 NOT BETWEEN NULL AND + 82 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9029
SELECT 87 / + col1 - + col0 + - - col1 + - + 95 / - ( - - col2 ) * + + ( - ( - - CAST( NULL AS SIGNED ) ) ) - + - col1 FROM tab2 WHERE ( NOT 3 BETWEEN NULL AND + col2 )
----

skipif mysql # not compatible
query I rowsort label-9029
SELECT 87 / + col1 - + col0 + - - col1 + - + 95 / - ( - - col2 ) * + + ( - ( - - CAST ( NULL AS INTEGER ) ) ) - + - col1 FROM tab2 WHERE ( NOT 3 BETWEEN NULL AND + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 < - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # aggregate syntax: 
query I rowsort label-9032
SELECT DISTINCT - COUNT( ALL - 24 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9032
SELECT DISTINCT - COUNT ( ALL - 24 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9033
SELECT - MAX( DISTINCT + col0 ) FROM tab2 cor0 WHERE NULL >= col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9033
SELECT - MAX ( DISTINCT + col0 ) FROM tab2 cor0 WHERE NULL >= col1
----
NULL

query II rowsort
SELECT DISTINCT - 81 + + + col0 AS col0, + 63 + + + 80 AS col2 FROM tab0 cor0
----
-66
143
16
143
6
143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9035
SELECT - - 83 DIV - 3 - - 16 + - SUM( DISTINCT + 14 ) AS col0 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-9035
SELECT - - 83 / - 3 - - 16 + - SUM ( DISTINCT + 14 ) AS col0 FROM tab0 AS cor0
----
-25

query II rowsort
SELECT - 85 + + - col2, 55 AS col2 FROM tab2 cor0
----
-108
55
-125
55
-143
55

query II rowsort
SELECT ALL + 59, col2 FROM tab0
----
59
10
59
47
59
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9038
SELECT - 28 + col0 DIV col0 AS col0 FROM tab0
----
-27
-27
-27

skipif mysql # not compatible
query I rowsort label-9038
SELECT - 28 + col0 / col0 AS col0 FROM tab0
----
-27
-27
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9039
SELECT + 55 + + CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9039
SELECT + 55 + + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 19 - - col2 AS col1 FROM tab2
----
42
59
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9041
SELECT - 15 * - col0 FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9041
SELECT - 15 * - col0 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + col2 * + col2 + 63 AS col1 FROM tab1
----
3544
4687
9279

onlyif mysql # aggregate syntax: 
query I rowsort label-9043
SELECT DISTINCT MIN( DISTINCT - 85 ) AS col0 FROM tab0 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-9043
SELECT DISTINCT MIN ( DISTINCT - 85 ) AS col0 FROM tab0 AS cor0
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 AS cor0 WHERE + col1 = ( - ( - 88 ) * - + col0 - + 76 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9045
SELECT DISTINCT CAST( - col1 AS SIGNED ) + + col2 AS col0 FROM tab1 AS cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT CAST ( - col1 AS INTEGER ) + + col2 AS col0 FROM tab1 AS cor0
----
21
54
82

query II rowsort
SELECT ALL 79 AS col0, - 77 * - col2 AS col1 FROM tab2 AS cor0
----
79
1771
79
3080
79
4466

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 * ( + + col0 ) * + col1 col0 FROM tab1 cor0
----
21675
218127
36414

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT + ( - MIN( + col1 ) ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-9048
SELECT + ( - MIN ( + col1 ) ) FROM tab1
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 col0 FROM tab0 cor0
----
84
84
84

query II rowsort
SELECT 1, col1 AS col1 FROM tab2 AS cor0 WHERE NOT col1 + - col2 + col0 < - col0 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9051
SELECT + MIN( DISTINCT 69 ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-9051
SELECT + MIN ( DISTINCT 69 ) FROM tab2 AS cor0
----
69

query I rowsort
SELECT 99 * - col0 - col1 FROM tab2 cor0
----
-4605
-6413
-7492

query II rowsort
SELECT DISTINCT + + col2 * - col1 AS col1, 24 FROM tab1 AS cor0
----
-1344
24
-295
24
-3196
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9054
SELECT DISTINCT - + col1 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9054
SELECT DISTINCT - + col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT 66 * + col0 AS col0 FROM tab2
----
3036
4224
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT ALL + ( - 59 ) * ( COUNT( * ) ) col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9056
SELECT ALL + ( - 59 ) * ( COUNT ( * ) ) col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT col2 * + + 89 AS col2 FROM tab0
----
4183
8811
890

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT ALL - COUNT( * ) AS col1 FROM tab1, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9058
SELECT ALL - COUNT ( * ) AS col1 FROM tab1, tab2 AS cor0
----
-9

query II rowsort
SELECT + 2 AS col0, 72 * - ( + col2 ) * - 87 FROM tab1 WHERE NOT + 45 + + col0 * - col0 <= col1 + col1
----

query I rowsort
SELECT ( - - 81 ) FROM tab1
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9061
SELECT ALL - CAST( NULL AS SIGNED ) / col1 + + - 61 + - 62 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9061
SELECT ALL - CAST ( NULL AS INTEGER ) / col1 + + - 61 + - 62 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + + 88 * 96 * - 75 FROM tab0 AS cor0
----
-633615
-633687
-633697

onlyif mysql # aggregate syntax: 
query I rowsort label-9063
SELECT DISTINCT - SUM( ALL col1 ) FROM tab2 AS cor0 WHERE NOT + 28 NOT IN ( 51, + col2, - + 92 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9063
SELECT DISTINCT - SUM ( ALL col1 ) FROM tab2 AS cor0 WHERE NOT + 28 NOT IN ( 51, + col2, - + 92 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT + ( - COUNT( * ) ) AS col2 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-9064
SELECT + ( - COUNT ( * ) ) AS col2 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9065
SELECT - - col0 + 53 + - col0 * CAST( - ( - 50 ) AS SIGNED ) * - col2 + col0 * + + col2 AS col2 FROM tab2 AS cor0
----
130677
221978
54057

skipif mysql # not compatible
query I rowsort label-9065
SELECT - - col0 + 53 + - col0 * CAST ( - ( - 50 ) AS INTEGER ) * - col2 + col0 * + + col2 AS col2 FROM tab2 AS cor0
----
130677
221978
54057

query I rowsort
SELECT - col2 + + col0 + - + col1 AS col1 FROM tab0 AS cor0
----
-113
-3
56

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col0 + - - col1 ) <> NULL
----

query I rowsort
SELECT DISTINCT + 13 + 65 FROM tab2 AS cor0
----
78

query I rowsort
SELECT ALL - - col1 FROM tab1 AS cor0 WHERE ( NOT col1 + + col1 * col1 * + + col0 NOT BETWEEN NULL AND - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + + + col0 AS col2 FROM tab2 cor0
----
141
142
97

query II rowsort
SELECT + 73 AS col1, - col0 AS col2 FROM tab2 AS cor0
----
73
-46
73
-64
73
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9073
SELECT DISTINCT + col0 + + CAST( NULL AS DECIMAL ) + - col2 * col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9073
SELECT DISTINCT + col0 + + CAST ( NULL AS REAL ) + - col2 * col1 FROM tab0 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9074
SELECT + + 44 - - 38 * + + COUNT( * ) FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN col2 AND + CAST( NULL AS SIGNED )
----
44

skipif mysql # not compatible
query I rowsort label-9074
SELECT + + 44 - - 38 * + + COUNT ( * ) FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN col2 AND + CAST ( NULL AS INTEGER )
----
44

query III rowsort
SELECT * FROM tab0 WHERE - col2 + + - col1 / 52 IS NULL
----

query II rowsort
SELECT ALL - 58 + + + col0 AS col2, + col0 + + col2 FROM tab2
----
-12
69
17
133
6
104

query I rowsort
SELECT ALL - col1 - - col2 FROM tab1
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9078
SELECT DISTINCT 85 * - - 57 + + COUNT( col1 ) FROM tab1
----
4848

skipif mysql # not compatible
query I rowsort label-9078
SELECT DISTINCT 85 * - - 57 + + COUNT ( col1 ) FROM tab1
----
4848

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 14 IS NOT NULL
----

query I rowsort
SELECT - 14 + - 20 + - 64 AS col2 FROM tab0 WHERE - - 9 + - 66 IS NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT - + col2 IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 WHERE + - 23 <= ( + 56 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 * - + col1 - - 67 AS col0 FROM tab0 cor0
----
-143
-32
-3740

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 / - col0 >= NULL
----

query I rowsort
SELECT + - 85 * + + 92 FROM tab1 AS cor0
----
-7820
-7820
-7820

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT ALL - MAX( - + col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL - MAX ( - + col1 ) AS col0 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT ALL - MIN( - - col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9088
SELECT ALL - MIN ( - - col2 ) AS col2 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9089
SELECT - AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9089
SELECT - AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + col0 * + + col2 AS col1 FROM tab0 cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9091
SELECT DISTINCT + - COUNT( * ) * - ( + + COUNT( * ) ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9091
SELECT DISTINCT + - COUNT ( * ) * - ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 + 4 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT ALL COUNT( + ( - ( col0 ) ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 67 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9093
SELECT ALL COUNT ( + ( - ( col0 ) ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 67 AND NULL
----
0

query I rowsort
SELECT - ( - ( col0 ) ) * col0 * - + col1 AS col1 FROM tab0
----
-158949
-18225
-9409

query I rowsort
SELECT + ( + 79 ) * + 2 FROM tab0
----
158
158
158

onlyif mysql # aggregate syntax: 
query I rowsort label-9096
SELECT DISTINCT + MIN( - - 62 ) AS col0 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-9096
SELECT DISTINCT + MIN ( - - 62 ) AS col0 FROM tab1
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 28 * ( - col0 ) col0 FROM tab1
----
-1428
-2380
-2548

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT MAX( DISTINCT - col0 ) FROM tab0 WHERE NOT + ( - 51 ) + + 38 <> - 69 + + col1 * + + 38 + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9098
SELECT MAX ( DISTINCT - col0 ) FROM tab0 WHERE NOT + ( - 51 ) + + 38 <> - 69 + + col1 * + + 38 + - col0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 83 < - col2
----

query I rowsort
SELECT - ( - 10 ) + - col0 AS col0 FROM tab0 AS cor0
----
-5
-77
-87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * ( + 8 ) * 97 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT 10 + - + COUNT( * ) AS col0 FROM tab1 cor0
----
7

skipif mysql # not compatible
query I rowsort label-9102
SELECT 10 + - + COUNT ( * ) AS col0 FROM tab1 cor0
----
7

onlyif mysql # DIV for integer division: 
query II rowsort label-9103
SELECT DISTINCT 95 + col1 * + + 6 * + col1 DIV col1 AS col0, 39 AS col2 FROM tab1 cor0
----
125
39
179
39
377
39

skipif mysql # not compatible
query II rowsort label-9103
SELECT DISTINCT 95 + col1 * + + 6 * + col1 / col1 AS col0, 39 AS col2 FROM tab1 cor0
----
125
39
179
39
377
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9104
SELECT 70 * - col1 * + CAST( - 12 AS SIGNED ) FROM tab0
----
17640
68040
840

skipif mysql # not compatible
query I rowsort label-9104
SELECT 70 * - col1 * + CAST ( - 12 AS INTEGER ) FROM tab0
----
17640
68040
840

query I rowsort
SELECT DISTINCT - 21 AS col1 FROM tab0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT DISTINCT + - COUNT( - 87 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT + - COUNT ( - 87 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT 18 * - - col0 FROM tab2
----
1152
1350
828

query I rowsort
SELECT ALL + 32 + - col0 AS col1 FROM tab1 AS cor0 WHERE NOT 79 + - - col1 <> col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 76 - 91 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col2 * - col2 * - 47 AS col2, 78 FROM tab2 AS cor0
----
158108
78
24863
78
75200
78

query I rowsort
SELECT ALL + col0 + ( + col0 ) - - ( + col1 ) AS col0 FROM tab1 AS cor0
----
116
175
229

query I rowsort
SELECT - - col1 * + col0 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
425
4277
714

query I rowsort
SELECT + + col0 + - 61 + + col0 AS col1 FROM tab1 AS cor0
----
109
121
41

query I rowsort
SELECT ALL col1 - - + col0 AS col0 FROM tab0 AS cor0
----
108
96
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - 40 * col2 col0 FROM tab0
----
-1961
-3961
-421

query III rowsort
SELECT * FROM tab0 WHERE 56 - + - 74 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9117
SELECT ALL + col2 - + + CAST( - - col1 AS SIGNED ) AS col0 FROM tab0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-9117
SELECT ALL + col2 - + + CAST ( - - col1 AS INTEGER ) AS col0 FROM tab0
----
-11
-34
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9118
SELECT ALL + col1 DIV - - col2 - + + col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9118
SELECT ALL + col1 / - - col2 - + + col1 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + col1 * + 87 AND - 73
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= + col2 - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT ALL + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL NOT BETWEEN NULL AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9121
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL NOT BETWEEN NULL AND NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9122
SELECT DISTINCT - col1 DIV + - col0 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9122
SELECT DISTINCT - col1 / + - col0 AS col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT col1 * - + col0 + 58 * col2 - + - col1 FROM tab0 AS cor0
----
-1226
1592
5646

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 + - 66 AND - col0
----

query II rowsort
SELECT + col2 + + 98 AS col2, + col0 * + col0 + col1 AS col1 FROM tab2 AS cor0
----
121
2167
138
4173
156
5692

query II rowsort
SELECT ALL + 22 AS col0, 0 AS col1 FROM tab1
----
22
0
22
0
22
0

query I rowsort
SELECT ALL col1 * + ( - col1 ) AS col2 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9128
SELECT ALL + + CAST( col0 AS SIGNED ) * col2 + col1 + - col0 * - - col1 FROM tab2 AS cor0
----
-1237
-2291
-608

skipif mysql # not compatible
query I rowsort label-9128
SELECT ALL + + CAST ( col0 AS INTEGER ) * col2 + col1 + - col0 * - - col1 FROM tab2 AS cor0
----
-1237
-2291
-608

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT + + MIN( DISTINCT - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9129
SELECT + + MIN ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + + col1 - col1 col0 FROM tab0 AS cor0
----
189
3726
98

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT ALL COUNT( * ) AS col1 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL COUNT ( * ) AS col1 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT + col2 + - - ( - col0 ) FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT - 44 + + MIN( col2 ) * - 98 col1 FROM tab2
----
-2298

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9133
SELECT - 44 + + MIN ( col2 ) * - 98 col1 FROM tab2
----
-2298

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - - col0 * col2 col0 FROM tab1 AS cor0
----
4992
5074
6256

query I rowsort
SELECT - 20 * col1 * - col1 + col1 AS col2 FROM tab2 AS cor0
----
118657
52071
89847

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9136
SELECT ALL + + 64 col0 FROM tab0 cor0 WHERE NOT - - col0 IS NOT NULL OR NULL IS NOT NULL AND NOT CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9136
SELECT ALL + + 64 col0 FROM tab0 cor0 WHERE NOT - - col0 IS NOT NULL OR NULL IS NOT NULL AND NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9137
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9137
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9138
SELECT + - col2 DIV col0 AS col2 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-9138
SELECT + - col2 / col0 AS col2 FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9139
SELECT DISTINCT - 86 + - CAST( - 24 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-9139
SELECT DISTINCT - 86 + - CAST ( - 24 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-62

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT BETWEEN + 60 * - col1 AND col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - + 82 * - col1 col2 FROM tab0
----
17220
312174
8118

query II rowsort
SELECT col2 AS col0, - 86 AS col0 FROM tab0
----
10
-86
47
-86
99
-86

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 >= + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 28, + 77 * - + col2 * - 95 AS col1 FROM tab2
----
28
168245
28
292600
28
424270

query II rowsort
SELECT DISTINCT - col0, + col2 AS col2 FROM tab0
----
-15
47
-87
10
-97
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 - col1 col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + + 79 AS col1 FROM tab2 cor0
----
79

query I rowsort
SELECT ALL + col0 * + + 55 AS col2 FROM tab0 AS cor0
----
4785
5335
825

query I rowsort
SELECT DISTINCT - ( col0 ) * - 14 FROM tab1
----
1190
1274
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col1 FROM tab1 WHERE NULL = col1
----

query II rowsort
SELECT ALL 69 * + 29, col0 AS col1 FROM tab0
----
2001
15
2001
87
2001
97

query I rowsort
SELECT DISTINCT + ( - 32 ) AS col2 FROM tab2
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT ALL - COUNT( * ) * - - 17 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9153
SELECT ALL - COUNT ( * ) * - - 17 FROM tab1 cor0
----
-51

query II rowsort
SELECT ALL col2 AS col2, - ( col2 ) AS col0 FROM tab0 AS cor0 WHERE col1 IN ( + 43, 43, - 8 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9155
SELECT DISTINCT 73 AS col0, + 44 DIV - 28 AS col1 FROM tab1 AS cor0
----
73
-1

skipif mysql # not compatible
query II rowsort label-9155
SELECT DISTINCT 73 AS col0, + 44 / - 28 AS col1 FROM tab1 AS cor0
----
73
-1

query I rowsort
SELECT ALL - - col1 FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN col1 - col2 + col0 AND NULL
----
21
81

query I rowsort
SELECT - col1 * col0 / col2 / col0 AS col2 FROM tab1 AS cor0 WHERE NOT col1 * col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( - - ( + + col0 ) ) * - 39 * + col1 = col1 + + col0 * + + col2
----

query I rowsort
SELECT DISTINCT + col0 * - - col2 * + col2 + + col0 FROM tab0 AS cor0
----
33150
8787
950794

query I rowsort
SELECT ALL - col1 * - + col2 + - ( + - col1 ) AS col1 FROM tab2 AS cor0
----
1224
3157
3953

onlyif mysql # aggregate syntax: 
query I rowsort label-9161
SELECT + SUM( ALL + 6 ) + - - COUNT( * ) AS col0 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-9161
SELECT + SUM ( ALL + 6 ) + - - COUNT ( * ) AS col0 FROM tab2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT ( NOT 74 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9162
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT ( NOT 74 IS NULL )
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( ( NULL ) BETWEEN 16 AND + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9164
SELECT + 44 * 71 * + col0 + + col1 + - col2 - col1 DIV - - 44 FROM tab0
----
271799
302930
46893

skipif mysql # not compatible
query I rowsort label-9164
SELECT + 44 * 71 * + col0 + + col1 + - col2 - col1 / - - 44 FROM tab0
----
271799
302930
46893

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT + 4 + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <= + + col1
----
4

skipif mysql # not compatible
query I rowsort label-9165
SELECT + 4 + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <= + + col1
----
4

query I rowsort
SELECT DISTINCT col1 - col1 - - col2 + - 32 * - + col0 AS col2 FROM tab1
----
1728
2779
2980

query I rowsort
SELECT - 65 / - + 13 FROM tab0 WHERE NULL NOT BETWEEN + col1 * 97 AND 78 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 12 col1 FROM tab0 AS cor0
----
12

query I rowsort
SELECT + - col1 FROM tab0 AS cor0 WHERE NOT ( - col1 IS NOT NULL )
----

query I rowsort
SELECT - 2 * + col1 + - col0 + 13 + - + col2 AS col0 FROM tab1 cor0
----
-141
-162
-240

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 20 AS col0, - col1 col2 FROM tab0 cor0
----
-20
-1
-20
-21
-20
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9172
SELECT ALL - SUM( DISTINCT + col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9172
SELECT ALL - SUM ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-156

query I rowsort
SELECT + + 28 * + - col2 FROM tab1 AS cor0
----
-1652
-1904
-2688

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 7, - col2 * + col1 col1 FROM tab1 AS cor0
----
-7
-1344
-7
-295
-7
-3196

query I rowsort
SELECT DISTINCT col2 * + - ( + - col1 ) FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9176
SELECT 56 * - CAST( + col0 AS SIGNED ) FROM tab2
----
-2576
-3584
-4200

skipif mysql # not compatible
query I rowsort label-9176
SELECT 56 * - CAST ( + col0 AS INTEGER ) FROM tab2
----
-2576
-3584
-4200

query I rowsort
SELECT ( ( - + 14 ) ) FROM tab0
----
-14
-14
-14

query I rowsort
SELECT ALL + 74 FROM tab0 WHERE col1 / + - 78 - 94 IS NOT NULL
----
74
74
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9179
SELECT ALL CAST( NULL AS SIGNED ) * - col2 * + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9179
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 * + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 + + col1 + + - col1 AS col0 FROM tab2 WHERE ( + col0 ) IS NOT NULL
----
23
40
58

query I rowsort
SELECT + + ( + ( - + col2 ) ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 col2 FROM tab2 AS cor0
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col0 * + col2 col1 FROM tab0 AS cor0
----
33135
8700
950697

query I rowsort
SELECT ALL + ( - - col1 ) * col0 FROM tab1
----
425
4277
714

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL >= ( 28 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 83 + - 85 col2 FROM tab1 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT DISTINCT ( + - COUNT( * ) ) + - + 77 + 89 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9187
SELECT DISTINCT ( + - COUNT ( * ) ) + - + 77 + 89 FROM tab1 AS cor0
----
9

query I rowsort
SELECT + + 28 * + - ( + 18 ) + - col2 + ( + + col1 ) AS col1 FROM tab1 AS cor0
----
-525
-558
-586

query I rowsort
SELECT DISTINCT + 25 * - - col1 + + 70 AS col1 FROM tab0 AS cor0
----
2095
595
95

query II rowsort
SELECT ALL - 91 * - col1 + + + col0, col2 AS col1 FROM tab2 AS cor0
----
4687
23
6172
58
7071
40

query I rowsort
SELECT DISTINCT 78 + + col0 FROM tab0 AS cor0
----
165
175
93

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * col0 < + 64 * + col0
----
15
81
47

query III rowsort
SELECT * FROM tab2 WHERE 72 + - - col0 > - - 87 * - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE 38 NOT IN ( 77, - col1 + + - 97, 85 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 5 + 31 AS col1 FROM tab1 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9196
SELECT ALL - col0 DIV - + col2 AS col1 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-9196
SELECT ALL - col0 / - + col2 AS col1 FROM tab0
----
0
0
8

query I rowsort
SELECT DISTINCT 79 + col1 * - col0 FROM tab1
----
-346
-4198
-635

query I rowsort
SELECT - 13 FROM tab2 WHERE NULL IS NULL
----
-13
-13
-13

query II rowsort
SELECT + col0, + col1 - + col1 * - col2 * + col0 FROM tab2
----
46
54009
64
197197
75
291517

onlyif mysql # aggregate syntax: 
query I rowsort label-9200
SELECT ALL - SUM( 63 ) FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-9200
SELECT ALL - SUM ( 63 ) FROM tab1
----
-189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 - + 40 col2, - col0 FROM tab1 AS cor0
----
11
-51
45
-85
51
-91

query I rowsort
SELECT 8 - - col0 FROM tab1 cor0
----
59
93
99

query I rowsort
SELECT DISTINCT + col1 + + + col2 * + col0 * + col0 AS col0 FROM tab1 AS cor0
----
249710
426280
563155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9204
SELECT DISTINCT CAST( NULL AS SIGNED ) * - - col2 * col0 * + 20 + + 93 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9204
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - - col2 * col0 * + 20 + + 93 FROM tab2
----
NULL

query I rowsort
SELECT 0 AS col2 FROM tab0 WHERE ( - - ( - col1 ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 79 * + col0 col1 FROM tab1
----
-3933
-6656
-7121

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 84 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT DISTINCT COUNT( * ) * + ( - 90 ) AS col2 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT COUNT ( * ) * + ( - 90 ) AS col2 FROM tab2
----
-270

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT DISTINCT - COUNT( - col1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT - COUNT ( - col1 ) FROM tab2
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 72 * + col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 4, 26 * - + 9 AS col1 FROM tab0
----
4
-234
4
-234
4
-234

query II rowsort
SELECT + col2, - col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
-51
40
-77
58
-67

query I rowsort
SELECT ALL + col0 + + col2 * ( - 0 ) - - + 52 * + 26 AS col1 FROM tab0 WHERE NULL IS NULL
----
1367
1439
1449

query II rowsort
SELECT DISTINCT + col0 AS col0, 51 * + - col0 AS col0 FROM tab1
----
51
-2601
85
-4335
91
-4641

query I rowsort
SELECT + - 41 * col0 FROM tab0 AS cor0
----
-3567
-3977
-615

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + - col1 + + + col2 AS col1, + 8 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 1 + - col2 FROM tab0 AS cor0
----
-100
-11
-48

query I rowsort
SELECT 55 + col1 AS col2 FROM tab0
----
136
56
76

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 42 + + col0 * + ( - ( - col2 ) ) NOT BETWEEN col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN ( + col0 + col1 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT - MAX( - col0 ) col2 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9223
SELECT - MAX ( - col0 ) col2 FROM tab1
----
51

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - col1 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 col0 FROM tab1
----
49
49
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9227
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) * - 60 AS col0 FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-9227
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) * - 60 AS col0 FROM tab0
----
180

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT + col1 + + col2 IS NULL
----
59
68
96

query I rowsort
SELECT 90 - col2 AS col0 FROM tab2
----
32
50
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 col1 FROM tab1
----
48
48
48

query I rowsort
SELECT ALL - col0 * 23 FROM tab2
----
-1058
-1472
-1725

onlyif mysql # aggregate syntax: 
query I rowsort label-9232
SELECT ALL + 35 * - COUNT( * ) FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL + 35 * - COUNT ( * ) FROM tab1
----
-105

query I rowsort
SELECT ALL + col0 - col2 * - 11 FROM tab0
----
1186
197
532

query I rowsort
SELECT ALL - col2 * + 33 + - col1 FROM tab0
----
-1632
-3268
-351

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT - col1 <= + ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE col0 + - 16 BETWEEN + col2 AND NULL
----

query I rowsort
SELECT 57 * + 22 AS col0 FROM tab2
----
1254
1254
1254

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE + ( - col1 ) + 52 BETWEEN col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 41 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT DISTINCT - MAX( ALL 19 ) AS col1 FROM tab2 WHERE ( NULL ) IN ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9240
SELECT DISTINCT - MAX ( ALL 19 ) AS col1 FROM tab2 WHERE ( NULL ) IN ( - col2 )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + 19 IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( + 35 ) * + ( + col1 + col0 ) - col0 FROM tab2 WHERE - col2 IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9243
SELECT ALL * FROM tab2 WHERE - col1 <= + 70 * + CAST( 2 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9243
SELECT ALL * FROM tab2 WHERE - col1 <= + 70 * + CAST ( 2 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 * + col1 col0 FROM tab2
----
3774
4958
5698

query I rowsort
SELECT DISTINCT + col1 * - 21 FROM tab1 AS cor0
----
-105
-294
-987

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT DISTINCT - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9246
SELECT DISTINCT - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( - 12 + 16 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9247
SELECT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( - 12 + 16 ) IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9248
SELECT + COUNT( * ) DIV - MAX( 41 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9248
SELECT + COUNT ( * ) / - MAX ( 41 ) AS col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 49 <= col0 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * + col0 AS col1 FROM tab2 cor0 WHERE + ( col1 ) * - 99 IS NULL
----

query I rowsort
SELECT 95 * col0 - 56 FROM tab0
----
1369
8209
9159

query I rowsort
SELECT DISTINCT 51 FROM tab1 AS cor0 CROSS JOIN tab0
----
51

query I rowsort
SELECT ALL + col0 * + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 + + col1 FROM tab0 AS cor0 WHERE NOT ( 7 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT + COUNT( * ) * COUNT( - col0 * 88 ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9255
SELECT + COUNT ( * ) * COUNT ( - col0 * 88 ) AS col2 FROM tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 65 + col2 BETWEEN ( 57 * 75 ) AND col2 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab0 AS cor0 WHERE NOT col2 * - 50 + col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9258
SELECT DISTINCT + col0 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT + col0 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT - + COUNT( * ) * + COUNT( * ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9259
SELECT - + COUNT ( * ) * + COUNT ( * ) FROM tab2 cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9260
SELECT + 47 DIV + col2 FROM tab0 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-9260
SELECT + 47 / + col2 FROM tab0 AS cor0
----
0
1
4

query I rowsort
SELECT - col1 * - 10 FROM tab1 AS cor0
----
140
470
50

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT + SUM( + + 72 ) AS col2 FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-9262
SELECT + SUM ( + + 72 ) AS col2 FROM tab0
----
216

query I rowsort
SELECT + col0 - 95 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
-10
-4
-44

query I rowsort
SELECT + ( + 16 ) * col2 FROM tab2
----
368
640
928

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT ALL COUNT( + 36 ) AS col1 FROM tab0 WHERE col1 IN ( + 95 )
----
0

skipif mysql # not compatible
query I rowsort label-9265
SELECT ALL COUNT ( + 36 ) AS col1 FROM tab0 WHERE col1 IN ( + 95 )
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - ( + col2 ) ) + 62 > + 12 + 84
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 97 AS col0 FROM tab2
----
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 * col2 col0 FROM tab0 AS cor0 WHERE ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT - SUM( col1 ) col2 FROM tab2 cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9270
SELECT - SUM ( col1 ) col2 FROM tab2 cor0
----
-195

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( - col1 )
----

query I rowsort
SELECT 32 + 65 FROM tab0
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT ALL + ( COUNT( * ) ) + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL + ( COUNT ( * ) ) + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9274
SELECT COUNT( * ) + COUNT( * ) - CAST( 63 AS SIGNED ) AS col1 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-9274
SELECT COUNT ( * ) + COUNT ( * ) - CAST ( 63 AS INTEGER ) AS col1 FROM tab1
----
-57

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 16 ) < col2
----
15
81
47
97
1
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 ) < NULL
----

query I rowsort
SELECT ALL + col2 + - - col1 AS col2 FROM tab1 AS cor0
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT 29 + + COUNT( * ) col2 FROM tab2 AS cor0
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9278
SELECT 29 + + COUNT ( * ) col2 FROM tab2 AS cor0
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9279
SELECT ALL 59 * col0 DIV + 39 col1 FROM tab1 AS cor0
----
128
137
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9279
SELECT ALL 59 * col0 / + 39 col1 FROM tab1 AS cor0
----
128
137
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 33 * 80 / + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 51 * - col2 + - 10 FROM tab1 AS cor0
----
-3019
-3478
-4906

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + col2 - - + 14 - + col0 col1 FROM tab0 AS cor0
----
704
797
9520

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT DISTINCT + - 46 + COUNT( * ) FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-9283
SELECT DISTINCT + - 46 + COUNT ( * ) FROM tab1 AS cor0
----
-43

query II rowsort
SELECT DISTINCT 1 + - + col2, ( ( 24 ) ) AS col1 FROM tab0
----
-46
24
-9
24
-98
24

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9286
SELECT - SUM( DISTINCT - + CAST( - col2 AS SIGNED ) ) * - COUNT( * ) * + 45 + ( 26 ) FROM tab1
----
30131

skipif mysql # not compatible
query I rowsort label-9286
SELECT - SUM ( DISTINCT - + CAST ( - col2 AS INTEGER ) ) * - COUNT ( * ) * + 45 + ( 26 ) FROM tab1
----
30131

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE ( col1 ) < ( col2 + col1 )
----
51
67
77

query III rowsort
SELECT * FROM tab0 WHERE ( 70 * + col2 ) = col1 + 49
----

query I rowsort
SELECT - col1 FROM tab1 WHERE + - col2 > + col0 * + col2
----

query I rowsort
SELECT 85 - col0 AS col0 FROM tab1
----
-6
0
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9291
SELECT ALL - col0 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9291
SELECT ALL - col0 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 + - col2 col0 FROM tab1 AS cor0
----
-13
-4
-41

query I rowsort
SELECT col1 * col0 + - col0 * + + col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9294
SELECT ALL - - CAST( NULL AS SIGNED ) / + col2 + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9294
SELECT ALL - - CAST ( NULL AS INTEGER ) / + col2 + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9295
SELECT * FROM tab0 WHERE NOT 80 * col2 * CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9295
SELECT * FROM tab0 WHERE NOT 80 * col2 * CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9296
SELECT ALL - + 40 * - SUM( DISTINCT 13 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
520

skipif mysql # not compatible
query I rowsort label-9296
SELECT ALL - + 40 * - SUM ( DISTINCT 13 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
520

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT DISTINCT COUNT( * ) * + 54 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-9297
SELECT DISTINCT COUNT ( * ) * + 54 FROM tab0
----
162

onlyif mysql # DIV for integer division: 
query II rowsort label-9298
SELECT 51 AS col2, 75 DIV - - 3 - - col0 * 72 * 75 AS col0 FROM tab0 AS cor0
----
51
469825
51
523825
51
81025

skipif mysql # not compatible
query II rowsort label-9298
SELECT 51 AS col2, 75 / - - 3 - - col0 * 72 * 75 AS col0 FROM tab0 AS cor0
----
51
469825
51
523825
51
81025

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + + ( - col1 ) NOT BETWEEN col1 AND ( col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9300
SELECT DISTINCT + - 86 * COUNT( * ) DIV 44 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT + - 86 * COUNT ( * ) / 44 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT - ( + 91 ) FROM tab1 cor0
----
-91
-91
-91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 25 BETWEEN + + col2 AND - 38
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, - col1 col1 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9304
SELECT DISTINCT SUM( ALL - col1 ) DIV - - 48 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT SUM ( ALL - col1 ) / - - 48 FROM tab2 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT DISTINCT + SUM( + col1 ) + + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9305
SELECT DISTINCT + SUM ( + col1 ) + + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 col2 FROM tab2 WHERE NOT NULL >= - - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 <= ( + + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 38, + 96 col0 FROM tab2
----
38
96
38
96
38
96

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9309
SELECT - CAST( + 81 AS DECIMAL ) * + 93 / CAST( NULL AS SIGNED ) + - 2 / + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9309
SELECT - CAST ( + 81 AS REAL ) * + 93 / CAST ( NULL AS INTEGER ) + - 2 / + col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 36 BETWEEN - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 43 col2, + col1 FROM tab1
----
43
14
43
47
43
5

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + col2 + - 71 AND + ( + + 42 ) - - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9313
SELECT - 78 DIV - - COUNT( * ) AS col1 FROM tab0
----
-26

skipif mysql # not compatible
query I rowsort label-9313
SELECT - 78 / - - COUNT ( * ) AS col1 FROM tab0
----
-26

query I rowsort
SELECT col2 * + - 70 FROM tab1
----
-4130
-4760
-6720

onlyif mysql # DIV for integer division: 
query III rowsort label-9315
SELECT col2 AS col0, + col1, ( 45 ) DIV col1 * - ( 53 ) * + ( col0 + col2 ) AS col2 FROM tab0
----
9 values hashing to 191f6e3cb7808ca98cbc3310f27a72bd

skipif mysql # not compatible
query III rowsort label-9315
SELECT col2 AS col0, + col1, ( 45 ) / col1 * - ( 53 ) * + ( col0 + col2 ) AS col2 FROM tab0
----
9 values hashing to 191f6e3cb7808ca98cbc3310f27a72bd

query I rowsort
SELECT - + col0 + + + 60 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0, + col2 * + 8 FROM tab0 AS cor0
----
15
376
87
80
97
792

query I rowsort
SELECT DISTINCT 6 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 col1 FROM tab1 AS cor0
----
-11
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 64 col2 FROM tab2 AS cor0 WHERE col1 + + ( - ( 19 ) ) IS NULL
----

query I rowsort
SELECT 76 * + - col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT 47 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9323
SELECT DISTINCT - + MAX( ALL - ( - 69 ) ) + 23 AS col0 FROM tab0 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9323
SELECT DISTINCT - + MAX ( ALL - ( - 69 ) ) + 23 AS col0 FROM tab0 cor0
----
-46

query I rowsort
SELECT ALL - 79 + col1 AS col2 FROM tab2 AS cor0
----
-12
-2
-28

query I rowsort
SELECT - + col0 + - col1 * + - ( + col0 ) * - + 48 + - - ( - 46 ) AS col0 FROM tab1 AS cor0
----
-20531
-205433
-34369

query I rowsort
SELECT DISTINCT - ( + - col2 ) + - - ( 71 ) AS col2 FROM tab0 AS cor0
----
118
170
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9327
SELECT ALL 89 col1 FROM tab2 WHERE - - CAST( - col2 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9327
SELECT ALL 89 col1 FROM tab2 WHERE - - CAST ( - col2 AS REAL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 * - - 51 >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT DISTINCT 63 - COUNT( * ) AS col1 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-9329
SELECT DISTINCT 63 - COUNT ( * ) AS col1 FROM tab1
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-9330
SELECT col0 DIV col2 + - + col1 AS col1 FROM tab0
----
-1
-13
-81

skipif mysql # not compatible
query I rowsort label-9330
SELECT col0 / col2 + - + col1 AS col1 FROM tab0
----
-1
-13
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-9331
SELECT - col1 + + col2 DIV 95 AS col2, + col1 * + col1 FROM tab2
----
-51
2601
-67
4489
-77
5929

skipif mysql # not compatible
query II rowsort label-9331
SELECT - col1 + + col2 / 95 AS col2, + col1 * + col1 FROM tab2
----
-51
2601
-67
4489
-77
5929

query I rowsort
SELECT - 64 + + col2 + - ( - ( - 84 ) ) AS col2 FROM tab1
----
-52
-80
-89

query III rowsort
SELECT * FROM tab0 WHERE + 42 IN ( - 2, col2 * + ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT DISTINCT 83 - - COUNT( * ) AS col1 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-9334
SELECT DISTINCT 83 - - COUNT ( * ) AS col1 FROM tab2
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9335
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) BETWEEN - 63 AND ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-9335
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) BETWEEN - 63 AND ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT COUNT( * ) AS col2 FROM tab1 WHERE ( - + col0 / - ( + - 38 ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9336
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE ( - + col0 / - ( + - 38 ) ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9337
SELECT COUNT( + 76 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9337
SELECT COUNT ( + 76 ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT + + 89 * - COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-801

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9338
SELECT + + 89 * - COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-801

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT - COUNT( * ) * - - COUNT( * ) + - 98 * COUNT( * ) - + ( + 98 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1061

skipif mysql # not compatible
query I rowsort label-9339
SELECT - COUNT ( * ) * - - COUNT ( * ) + - 98 * COUNT ( * ) - + ( + 98 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1061

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9340
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( col2, ( col1 ) * - - CAST( - - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9340
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( col2, ( col1 ) * - - CAST ( - - col0 AS INTEGER ) )
----

query I rowsort
SELECT + + 74 * - 8 FROM tab0 cor0
----
-592
-592
-592

query I rowsort
SELECT ALL - 43 AS col2 FROM tab0 cor0
----
-43
-43
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT - SUM( DISTINCT + - col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9343
SELECT - SUM ( DISTINCT + - col1 ) AS col0 FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT - col2 - col0 - + 33 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + 87 + + col2 AS col0 FROM tab0 AS cor0
----
134
186
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 * + - 57 col2 FROM tab0
----
-3078
-3078
-3078

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT SUM( ALL - 28 ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-9347
SELECT SUM ( ALL - 28 ) FROM tab0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9348
SELECT ALL CAST( 86 AS SIGNED ) / - CAST( NULL AS SIGNED ), + ( + col0 ) col2 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9348
SELECT ALL CAST ( 86 AS INTEGER ) / - CAST ( NULL AS INTEGER ), + ( + col0 ) col2 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT + 2 BETWEEN ( + + 19 * + - col2 / - - 94 * + 90 ) AND + 73 * + ( ( col2 ) ) * + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9350
SELECT - - 57 AS col0, + col2 DIV + col2 FROM tab0 WHERE + 69 * + 65 IS NOT NULL
----
57
1
57
1
57
1

skipif mysql # not compatible
query II rowsort label-9350
SELECT - - 57 AS col0, + col2 / + col2 FROM tab0 WHERE + 69 * + 65 IS NOT NULL
----
57
1
57
1
57
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + 5 ) col1 FROM tab1 AS cor0
----
-5
-5
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9352
SELECT - MIN( - ( - CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9352
SELECT - MIN ( - ( - CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9353
SELECT COUNT( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9353
SELECT COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT DISTINCT + SUM( - 81 ) FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT + SUM ( - 81 ) FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( NOT + 7 IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9356
SELECT - CAST( + - col1 AS SIGNED ) * + 6 * + col2 AS col0 FROM tab0 AS cor0
----
1260
22842
594

skipif mysql # not compatible
query I rowsort label-9356
SELECT - CAST ( + - col1 AS INTEGER ) * + 6 * + col2 AS col0 FROM tab0 AS cor0
----
1260
22842
594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9357
SELECT DISTINCT col2 col1 FROM tab2 WHERE + col1 * + 74 * + + col1 * + 92 / - ( + 26 ) + - - col1 + + col2 <= - CAST( + CAST( NULL AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9357
SELECT DISTINCT col2 col1 FROM tab2 WHERE + col1 * + 74 * + + col1 * + 92 / - ( + 26 ) + - - col1 + + col2 <= - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, - 31 * - + col1 AS col0 FROM tab2
----
51
1581
67
2077
77
2387

onlyif mysql # aggregate syntax: 
query I rowsort label-9359
SELECT - MIN( DISTINCT - col1 ) + + 68 AS col0 FROM tab0 AS cor0
----
149

skipif mysql # not compatible
query I rowsort label-9359
SELECT - MIN ( DISTINCT - col1 ) + + 68 AS col0 FROM tab0 AS cor0
----
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 22 col0 FROM tab0 AS cor0
----
22

query I rowsort
SELECT - col0 * - - col0 FROM tab0 cor0
----
-225
-7569
-9409

query II rowsort
SELECT + - col1, + col2 AS col1 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 >= NULL
----

query I rowsort
SELECT ALL + + 3 AS col1 FROM tab2 AS cor0
----
3
3
3

query II rowsort
SELECT - ( + col2 ) AS col0, col0 AS col1 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT - 83 * + col2 AS col2 FROM tab1 AS cor0
----
-4897
-5644
-7968

query I rowsort
SELECT DISTINCT + col0 + + + col0 * - + col1 AS col0 FROM tab0 cor0
----
-1200
-1740
0

query I rowsort
SELECT + col1 * - col2 * + col1 AS col0 FROM tab1
----
-1475
-150212
-18816

query II rowsort
SELECT ALL col1 - + - col0 AS col1, col0 FROM tab2
----
141
64
142
75
97
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9370
SELECT DISTINCT 27 * - - col1 * + + col0 + + 15 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9370
SELECT DISTINCT 27 * - - col1 * + + col0 + + 15 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - 49 - + col1 + col1 FROM tab1
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9372
SELECT + ( - CAST( NULL AS SIGNED ) ) * col0 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9372
SELECT + ( - CAST ( NULL AS INTEGER ) ) * col0 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * - - ( - col1 ) AS col2 FROM tab0
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9374
SELECT DISTINCT + 71 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9374
SELECT DISTINCT + 71 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT DISTINCT + MAX( DISTINCT - 57 ) FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-9375
SELECT DISTINCT + MAX ( DISTINCT - 57 ) FROM tab2 AS cor0
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, 50 + + + col2 FROM tab2 AS cor0
----
51
73
67
108
77
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 91 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9378
SELECT - CAST( COUNT( * ) AS SIGNED ) * 3 AS col0 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9378
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * 3 AS col0 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) > ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9379
SELECT DISTINCT + + SUM( - + 71 ) AS col2 FROM tab0 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-9379
SELECT DISTINCT + + SUM ( - + 71 ) AS col2 FROM tab0 AS cor0
----
-213

query I rowsort
SELECT - + 28 AS col0 FROM tab0 AS cor0
----
-28
-28
-28

query II rowsort
SELECT ALL col0, ( + 65 ) AS col0 FROM tab2 AS cor0
----
46
65
64
65
75
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9382
SELECT DISTINCT - SUM( + - 65 ) col1 FROM tab1 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9382
SELECT DISTINCT - SUM ( + - 65 ) col1 FROM tab1 AS cor0
----
195

query I rowsort
SELECT DISTINCT - col2 * 17 FROM tab0 cor0
----
-1683
-170
-799

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 + - + col0 col2 FROM tab1 AS cor0
----
-14
-20
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9385
SELECT DISTINCT - - CAST( - + 94 AS SIGNED ) * - 63 FROM tab0 cor0
----
5922

skipif mysql # not compatible
query I rowsort label-9385
SELECT DISTINCT - - CAST ( - + 94 AS INTEGER ) * - 63 FROM tab0 cor0
----
5922

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 <= col2
----

query I rowsort
SELECT ALL - + col0 + + col0 + ( - col0 ) FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-9388
SELECT ALL + MAX( 58 ) AS col1, COUNT( * ) FROM tab0
----
58
3

skipif mysql # not compatible
query II rowsort label-9388
SELECT ALL + MAX ( 58 ) AS col1, COUNT ( * ) FROM tab0
----
58
3

query I rowsort
SELECT col1 * + - 30 AS col2 FROM tab0
----
-2430
-30
-630

onlyif mysql # DIV for integer division: 
query II rowsort label-9390
SELECT + col0 * - col2 + 15 * col1 * - col2 + - col1 DIV - - 80, col2 FROM tab2
----
-18653
23
-48760
40
-62640
58

skipif mysql # not compatible
query II rowsort label-9390
SELECT + col0 * - col2 + 15 * col1 * - col2 + - col1 / - - 80, col2 FROM tab2
----
-18653
23
-48760
40
-62640
58

query I rowsort
SELECT ( - col2 ) * - col1 * - + 24 + 27 * 39 FROM tab0
----
-1323
-3987
-90315

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - - col0 + - 69 col1 FROM tab1 AS cor0
----
75
78
90

query I rowsort
SELECT ALL - col2 + + - 63 + - col0 FROM tab0 AS cor0
----
-125
-160
-259

query I rowsort
SELECT 78 AS col1 FROM tab0 AS cor0 WHERE + col1 + - - ( + col1 ) = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9395
SELECT ALL + col0 + - - col0 DIV + 82 AS col2 FROM tab0 cor0
----
15
88
98

skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL + col0 + - - col0 / + 82 AS col2 FROM tab0 cor0
----
15
88
98

query I rowsort
SELECT DISTINCT col1 + + col1 + - - col0 FROM tab2 AS cor0
----
148
209
218

onlyif mysql # aggregate syntax: 
query I rowsort label-9397
SELECT ALL + + COUNT( * ) + 28 * + COUNT( * ) col1 FROM tab0 cor0
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9397
SELECT ALL + + COUNT ( * ) + 28 * + COUNT ( * ) col1 FROM tab0 cor0
----
87

query I rowsort
SELECT DISTINCT ( + col1 ) - - + 20 FROM tab2
----
71
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT + ( ( + - COUNT( * ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9399
SELECT + ( ( + - COUNT ( * ) ) ) FROM tab1
----
-3

query II rowsort
SELECT - col0, + col2 * - col0 AS col1 FROM tab0
----
-15
-705
-87
-870
-97
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9401
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + + col0 + + col0 * + - col2 / - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9401
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + + col0 + + col0 * + - col2 / - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT + MIN( ALL + 47 ) FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-9402
SELECT + MIN ( ALL + 47 ) FROM tab2
----
47

query I rowsort
SELECT - - 94 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + 4 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col0 + - ( + 38 ) ) BETWEEN 6 + + - col0 AND + col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT DISTINCT - + ( COUNT( * ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9405
SELECT DISTINCT - + ( COUNT ( * ) ) FROM tab2 cor0
----
-3

query I rowsort
SELECT + col1 + 99 FROM tab2 cor0
----
150
166
176

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 * + - col0 <> NULL
----

query I rowsort
SELECT 72 + + col0 FROM tab2 AS cor0
----
118
136
147

query I rowsort
SELECT - + col0 + + 82 * - ( col0 ) AS col0 FROM tab2 AS cor0
----
-3818
-5312
-6225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab1 cor0 WHERE NOT col0 - + - 69 - - + col2 IS NOT NULL
----

query II rowsort
SELECT 83 * + col1, + col0 AS col2 FROM tab1
----
1162
51
3901
91
415
85

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + - col2 + - 27, col0 - + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9413
SELECT + col1 col0, CAST( - col1 AS SIGNED ) FROM tab2
----
51
-51
67
-67
77
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9413
SELECT + col1 col0, CAST ( - col1 AS INTEGER ) FROM tab2
----
51
-51
67
-67
77
-77

query II rowsort
SELECT DISTINCT + col2 AS col1, + 26 FROM tab0
----
10
26
47
26
99
26

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 <> NULL
----

query II rowsort
SELECT - - col1 AS col2, + 10 - col2 AS col2 FROM tab1 AS cor0
----
14
-86
47
-58
5
-49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - + 33 <> NULL
----

query I rowsort
SELECT col0 * - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9420
SELECT - col0 * + col2 + - col1 + - + col0 * - ( - CAST( NULL AS SIGNED ) ) * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9420
SELECT - col0 * + col2 + - col1 + - + col0 * - ( - CAST ( NULL AS INTEGER ) ) * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9421
SELECT DISTINCT COUNT( * ) - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NULL BETWEEN - col0 * 24 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT COUNT ( * ) - CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NULL BETWEEN - col0 * 24 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT DISTINCT - SUM( + ( + 6 ) ) + 40 AS col0 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-9422
SELECT DISTINCT - SUM ( + ( + 6 ) ) + 40 AS col0 FROM tab0 AS cor0
----
22

query I rowsort
SELECT + 59 + - 54 FROM tab2 cor0
----
5
5
5

query I rowsort
SELECT 36 + + col1 * col1 AS col1 FROM tab1 AS cor0
----
2245
232
61

query I rowsort
SELECT DISTINCT - col0 * - - col0 AS col0 FROM tab0 AS cor0
----
-225
-7569
-9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + + + col0 col1, - 99 * + - col2 AS col2 FROM tab2 AS cor0
----
104
3960
133
5742
69
2277

query I rowsort
SELECT DISTINCT - 69 * + + col2 * + + col0 - + - 95 AS col1 FROM tab2 cor0 WHERE 65 IS NULL
----

query I rowsort
SELECT ALL + + 22 + + 97 - + - 14 AS col0 FROM tab2 AS cor0
----
133
133
133

query I rowsort
SELECT + col2 + - + col0 FROM tab2 cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT DISTINCT - COUNT( * ) + - - MAX( - 71 ) FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-9430
SELECT DISTINCT - COUNT ( * ) + - - MAX ( - 71 ) FROM tab1 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-9431
SELECT - COUNT( * ) + + - COUNT( * ) + - 8 AS col2, + ( MAX( ALL col0 ) ) col1 FROM tab0 AS cor0
----
-14
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9431
SELECT - COUNT ( * ) + + - COUNT ( * ) + - 8 AS col2, + ( MAX ( ALL col0 ) ) col1 FROM tab0 AS cor0
----
-14
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9432
SELECT 87 + - CAST( - - 55 AS SIGNED ) FROM tab2 AS cor0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-9432
SELECT 87 + - CAST ( - - 55 AS INTEGER ) FROM tab2 AS cor0
----
32
32
32

onlyif mysql # DIV for integer division: 
query I rowsort label-9433
SELECT DISTINCT + 85 DIV + col1 + + 79 * col0 FROM tab1 AS cor0
----
4035
6732
7190

skipif mysql # not compatible
query I rowsort label-9433
SELECT DISTINCT + 85 / + col1 + + 79 * col0 FROM tab1 AS cor0
----
4035
6732
7190

query I rowsort
SELECT ALL - col2 + col1 + col1 FROM tab0
----
-97
115
32

query I rowsort
SELECT ALL + col0 * + 5 AS col2 FROM tab0
----
435
485
75

query I rowsort
SELECT DISTINCT 12 * - 8 AS col0 FROM tab1 AS cor0
----
-96

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT ALL + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9439
SELECT DISTINCT + + 90 * CAST( col1 AS SIGNED ) + + - col0 + col1 * 24 + ( - 63 ) - CAST( NULL AS SIGNED ) * 50 + 32 AS col2, - col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-9439
SELECT DISTINCT + + 90 * CAST ( col1 AS INTEGER ) + + - col0 + col1 * 24 + ( - 63 ) - CAST ( NULL AS INTEGER ) * 50 + 32 AS col2, - col1 FROM tab2 AS cor0
----
NULL
-51
NULL
-67
NULL
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9440
SELECT ALL - 80 DIV - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
8

skipif mysql # not compatible
query I rowsort label-9440
SELECT ALL - 80 / - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
8

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 = - col0
----

query I rowsort
SELECT ALL col1 - - 38 * - col1 * + - col1 * 45 * - + 51 AS col2 FROM tab1
----
-17093146
-192646843
-2180245

onlyif mysql # DIV for integer division: 
query I rowsort label-9443
SELECT 6 DIV - 20 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9443
SELECT 6 / - 20 AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9444
SELECT ALL - - 16 * - COUNT( * ), CAST( NULL AS SIGNED ) * - COUNT( * ) + + SUM( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-48
NULL

skipif mysql # not compatible
query II rowsort label-9444
SELECT ALL - - 16 * - COUNT ( * ), CAST ( NULL AS INTEGER ) * - COUNT ( * ) + + SUM ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-48
NULL

query I rowsort
SELECT ALL - - col0 + - + 52 AS col0 FROM tab2 AS cor0
----
-6
12
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9446
SELECT DISTINCT - MAX( ALL col2 ) + 27 AS col0 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-9446
SELECT DISTINCT - MAX ( ALL col2 ) + 27 AS col0 FROM tab1 AS cor0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-9447
SELECT ALL 44 DIV + col1 AS col2 FROM tab1 AS cor0
----
0
3
8

skipif mysql # not compatible
query I rowsort label-9447
SELECT ALL 44 / + col1 AS col2 FROM tab1 AS cor0
----
0
3
8

query II rowsort
SELECT - col1 AS col0, col2 AS col0 FROM tab0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT DISTINCT 1 * COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9449
SELECT DISTINCT 1 * COUNT ( * ) FROM tab2
----
3

query I rowsort
SELECT + ( + - 50 ) AS col1 FROM tab2
----
-50
-50
-50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9451
SELECT - col1 - + - 71 * ( + col2 ) AS col1 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) - col2 NOT BETWEEN - col0 AND col0 + - col0 + + col0
----

skipif mysql # not compatible
query I rowsort label-9451
SELECT - col1 - + - 71 * ( + col2 ) AS col1 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) - col2 NOT BETWEEN - col0 AND col0 + - col0 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT COUNT( ALL col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9452
SELECT COUNT ( ALL col1 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT ALL COUNT( * ) FROM tab2 cor0 WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL COUNT ( * ) FROM tab2 cor0 WHERE NULL <> ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9454
SELECT MAX( DISTINCT 27 ) FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9454
SELECT MAX ( DISTINCT 27 ) FROM tab1 AS cor0
----
27

query I rowsort
SELECT ALL + ( - - col2 ) FROM tab2 cor0
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 2 col2 FROM tab0 cor0
----
2

query II rowsort
SELECT DISTINCT 81 AS col1, col0 * - + 69 AS col1 FROM tab0
----
81
-1035
81
-6003
81
-6693

query I rowsort
SELECT DISTINCT - col1 FROM tab2 cor0 WHERE - col1 BETWEEN col2 / - 17 AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT MIN( - - 85 ) FROM tab0 AS cor0 WHERE ( col2 ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9459
SELECT MIN ( - - 85 ) FROM tab0 AS cor0 WHERE ( col2 ) NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 41 IN ( + col0, col2 * 64, - 56 + - + col1, - col0 + col1 + - 10 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT DISTINCT - MIN( - 0 ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9461
SELECT DISTINCT - MIN ( - 0 ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 49 * 71 / - 90 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE + col2 + - + col2 * + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9463
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE + col2 + - + col2 * + col2 IS NOT NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + - ( + 58 ) col0 FROM tab1 AS cor0
----
-11
-44
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-9465
SELECT - col2 DIV + col0 + - col1 + - + col0 AS col0 FROM tab2
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-9465
SELECT - col2 / + col0 + - col1 + - + col0 AS col0 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT ALL 91 + ( - col0 ) FROM tab0
----
-6
4
76

onlyif mysql # DIV for integer division: 
query II rowsort label-9467
SELECT ALL col1 * col2, + col1 DIV - col0 AS col2 FROM tab2
----
1173
-1
3080
-1
3886
0

skipif mysql # not compatible
query II rowsort label-9467
SELECT ALL col1 * col2, + col1 / - col0 AS col2 FROM tab2
----
1173
-1
3080
-1
3886
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN - col1 * + col2 AND - col0
----
87
21
10

query I rowsort
SELECT DISTINCT - col2 + - - col2 * + col2 FROM tab2 AS cor0
----
1560
3306
506

onlyif mysql # aggregate syntax: 
query I rowsort label-9470
SELECT ALL + - 48 + MAX( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-9470
SELECT ALL + - 48 + MAX ( DISTINCT - col1 ) AS col0 FROM tab1 AS cor0
----
-53

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - col1 + - 51 = + col2 - - 94 )
----

query I rowsort
SELECT ALL col1 * - 68 FROM tab0
----
-1428
-5508
-68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9473
SELECT ALL * FROM tab2 WHERE NOT + ( - + col1 ) = + 68 * + col2 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9473
SELECT ALL * FROM tab2 WHERE NOT + ( - + col1 ) = + 68 * + col2 + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT DISTINCT 18 * + - col0 * - + col2 * + - col0 + - 4 * - col2 AS col0, - col2 FROM tab1 cor0
----
-10135672
-68
-4494144
-96
-7672714
-59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9475
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 ) <= + col2 / - CAST( NULL AS SIGNED ) * - CAST( - col0 AS SIGNED ) + + + 66
----

skipif mysql # not compatible
query III rowsort label-9475
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 ) <= + col2 / - CAST ( NULL AS INTEGER ) * - CAST ( - col0 AS INTEGER ) + + + 66
----

query I rowsort
SELECT ALL + + col2 * + - 56 FROM tab1 AS cor0
----
-3304
-3808
-5376

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT COUNT( ALL + 5 ) + - - MIN( + col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( ( col2 ) ) IS NULL
----
13

skipif mysql # not compatible
query I rowsort label-9477
SELECT COUNT ( ALL + 5 ) + - - MIN ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( ( col2 ) ) IS NULL
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9478
SELECT - + ( COUNT( * ) ) * 38 FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-9478
SELECT - + ( COUNT ( * ) ) * 38 FROM tab0 AS cor0
----
-114

query II rowsort
SELECT ALL - + col1 AS col2, + 42 AS col2 FROM tab0 AS cor0
----
-1
42
-21
42
-81
42

query I rowsort
SELECT - 3 * col0 AS col0 FROM tab2 AS cor0
----
-138
-192
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT + - 85 * - 71 * + COUNT( * ) FROM tab0 AS cor0
----
18105

skipif mysql # not compatible
query I rowsort label-9481
SELECT + - 85 * - 71 * + COUNT ( * ) FROM tab0 AS cor0
----
18105

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col2 * - col1 * - 71 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT + - MIN( DISTINCT - 30 ) FROM tab2 cor0
----
30

skipif mysql # not compatible
query I rowsort label-9483
SELECT + - MIN ( DISTINCT - 30 ) FROM tab2 cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT DISTINCT SUM( - - col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT SUM ( - - col1 ) FROM tab1
----
66

query I rowsort
SELECT ALL 64 * col2 AS col1 FROM tab0
----
3008
6336
640

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9486
SELECT + col1 * + col0 / - 50 * - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9486
SELECT + col1 * + col0 / - 50 * - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 < + col0
----
15
81
47
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 66 BETWEEN - + 37 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9489
SELECT DISTINCT AVG ( ALL + - ( + col2 ) ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9489
SELECT DISTINCT AVG ( ALL + - ( + col2 ) ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9490
SELECT 90 * + COUNT( ALL - col2 ) AS col2 FROM tab1
----
270

skipif mysql # not compatible
query I rowsort label-9490
SELECT 90 * + COUNT ( ALL - col2 ) AS col2 FROM tab1
----
270

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9491
SELECT * FROM tab0 WHERE NOT 88 * - - 81 * + + col2 BETWEEN - CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9491
SELECT * FROM tab0 WHERE NOT 88 * - - 81 * + + col2 BETWEEN - CAST ( NULL AS INTEGER ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9492
SELECT ALL 49 DIV + col0 AS col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-9492
SELECT ALL 49 / + col0 AS col0 FROM tab0
----
0
0
3

query I rowsort
SELECT DISTINCT - col1 + - col1 + 88 + - col0 FROM tab0 AS cor0
----
-11
-41
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT - SUM( - - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-9494
SELECT - SUM ( - - col1 ) FROM tab0 AS cor0
----
-103

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 91 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9496
SELECT DISTINCT 14 DIV + + 80 - - 35 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-9496
SELECT DISTINCT 14 / + + 80 - - 35 FROM tab1 AS cor0
----
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9497
SELECT ALL + 80 DIV + - col1 FROM tab0 AS cor0
----
-3
-80
0

skipif mysql # not compatible
query I rowsort label-9497
SELECT ALL + 80 / + - col1 FROM tab0 AS cor0
----
-3
-80
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT ALL - COUNT( * ) * - - COUNT( * ) + - + 87 + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9498
SELECT ALL - COUNT ( * ) * - - COUNT ( * ) + - + 87 + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9499
SELECT col1 + - col1 + + col1 + - + col2 DIV + col0 AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9499
SELECT col1 + - col1 + + col1 + - + col2 / + col0 AS col2 FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT ALL + col1 AS col0, 2 FROM tab0 AS cor0 WHERE ( NULL ) > NULL
----

query II rowsort
SELECT ALL - col1, 95 AS col0 FROM tab2 AS cor0
----
-51
95
-67
95
-77
95

query I rowsort
SELECT DISTINCT + ( + col0 ) + - - col0 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT ALL + + col0 * - + col2 * - 13 + col2 * - 16 AS col1 FROM tab0 AS cor0 WHERE + col2 + + col0 IS NOT NULL
----
11150
123255
8413

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * 84 + - col0 + - - 87 NOT BETWEEN NULL AND ( + - 71 * - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( ( 7 ) ) + - - col0 AS col0 FROM tab2 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE col1 BETWEEN NULL AND + col0
----

query I rowsort
SELECT + - AVG ( ALL - 13 ) FROM tab2 WHERE + 1 IS NULL
----
NULL

query I rowsort
SELECT 53 * + - 94 AS col0 FROM tab1
----
-4982
-4982
-4982

onlyif mysql # DIV for integer division: 
query II rowsort label-9509
SELECT DISTINCT - 43 AS col2, col0 DIV col1 FROM tab2
----
-43
0
-43
1

skipif mysql # not compatible
query II rowsort label-9509
SELECT DISTINCT - 43 AS col2, col0 / col1 FROM tab2
----
-43
0
-43
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9510
SELECT DISTINCT + MAX( DISTINCT col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9510
SELECT DISTINCT + MAX ( DISTINCT col1 ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT ALL - 70 * - - 70 * SUM( - col2 ) FROM tab2 AS cor0
----
592900

skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL - 70 * - - 70 * SUM ( - col2 ) FROM tab2 AS cor0
----
592900

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, - col0 * - 83 col1 FROM tab1 AS cor0
----
-14
4233
-47
7553
-5
7055

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 6 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT DISTINCT + COUNT( - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9515
SELECT DISTINCT + COUNT ( - col0 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 61 + 80 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( 12 ) FROM tab0 cor0
----
-12
-12
-12

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 78 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - AVG ( - - col2 ) col1 FROM tab0 WHERE - - 22 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - 10 * + + col2 AS col1 FROM tab1
----
-590
-680
-960

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 >= - col1 - + col0 + + - 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT ALL COUNT( * ) * - 73 AS col0 FROM tab0
----
-219

skipif mysql # not compatible
query I rowsort label-9522
SELECT ALL COUNT ( * ) * - 73 AS col0 FROM tab0
----
-219

query I rowsort
SELECT col2 * + ( + ( - 44 ) ) FROM tab1 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9524
SELECT - COUNT( DISTINCT - col2 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9524
SELECT - COUNT ( DISTINCT - col2 ) AS col1 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col1 - ( + col2 ) NOT BETWEEN + - 25 AND + 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - 29 ) FROM tab2
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT DISTINCT + 83 * - + ( MIN( col1 ) ) FROM tab2
----
-4233

skipif mysql # not compatible
query I rowsort label-9527
SELECT DISTINCT + 83 * - + ( MIN ( col1 ) ) FROM tab2
----
-4233

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT DISTINCT MAX( DISTINCT 63 ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-9528
SELECT DISTINCT MAX ( DISTINCT 63 ) FROM tab1
----
63

query II rowsort
SELECT + col1, + col2 AS col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9530
SELECT ALL 46 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9530
SELECT ALL 46 / - col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9531
SELECT CAST( NULL AS SIGNED ) / + + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9531
SELECT CAST ( NULL AS INTEGER ) / + + COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9532
SELECT ALL + - 89 + COUNT( * ) FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL + - 89 + COUNT ( * ) FROM tab1 AS cor0
----
-86

query I rowsort
SELECT ALL ( 25 ) + + + col2 + + + col1 AS col1 FROM tab1 AS cor0
----
135
140
89

query II rowsort
SELECT 87 * col2 AS col2, 11 FROM tab1
----
5133
11
5916
11
8352
11

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9535
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + CAST( - + 78 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-9535
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + CAST ( - + 78 AS INTEGER ) <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9536
SELECT DISTINCT MAX( + + CAST( NULL AS SIGNED ) ) + - - COUNT( * ) + - MAX( ALL - col1 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9536
SELECT DISTINCT MAX ( + + CAST ( NULL AS INTEGER ) ) + - - COUNT ( * ) + - MAX ( ALL - col1 ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( col1 ) * col1 IN ( - 73 - col2 - - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9538
SELECT DISTINCT col2 + - 18 DIV col1 * + - 39 + - 88 FROM tab0 AS cor0
----
-41
-78
713

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT col2 + - 18 / col1 * + - 39 + - 88 FROM tab0 AS cor0
----
-41
-78
713

query I rowsort
SELECT ALL + - col2 + + - col2 + col0 AS col2 FROM tab1 AS cor0
----
-141
-33
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT DISTINCT + MIN( 67 ) + - 28 AS col2 FROM tab1 cor0
----
39

skipif mysql # not compatible
query I rowsort label-9540
SELECT DISTINCT + MIN ( 67 ) + - 28 AS col2 FROM tab1 cor0
----
39

onlyif mysql # DIV for integer division: 
query I rowsort label-9541
SELECT DISTINCT - col0 DIV + + col2 + - + col0 FROM tab0 AS cor0
----
-15
-95
-97

skipif mysql # not compatible
query I rowsort label-9541
SELECT DISTINCT - col0 / + + col2 + - + col0 FROM tab0 AS cor0
----
-15
-95
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9542
SELECT ALL - COUNT( * ) + + + CAST( + + COUNT( * ) AS SIGNED ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL - COUNT ( * ) + + + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0
----
0

query I rowsort
SELECT ALL ( - col1 ) - 51 AS col0 FROM tab2
----
-102
-118
-128

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 + - + 57 col0 FROM tab2
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT - MIN( ALL + + col0 ) + - 61 FROM tab1
----
-112

skipif mysql # not compatible
query I rowsort label-9545
SELECT - MIN ( ALL + + col0 ) + - 61 FROM tab1
----
-112

query I rowsort
SELECT ALL + col1 - + - col1 FROM tab0
----
162
2
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9547
SELECT DISTINCT MIN( + col1 ) * - COUNT( * ) DIV + COUNT( * ) AS col2, COUNT( * ) + - 32 FROM tab1
----
-5
-29

skipif mysql # not compatible
query II rowsort label-9547
SELECT DISTINCT MIN ( + col1 ) * - COUNT ( * ) / + COUNT ( * ) AS col2, COUNT ( * ) + - 32 FROM tab1
----
-5
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9548
SELECT ( - CAST( NULL AS SIGNED ) ) col1, - col0 + - col2 + + col0 - + col2 AS col0 FROM tab1
----
NULL
-118
NULL
-136
NULL
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9548
SELECT ( - CAST ( NULL AS INTEGER ) ) col1, - col0 + - col2 + + col0 - + col2 AS col0 FROM tab1
----
NULL
-118
NULL
-136
NULL
-192

query III rowsort
SELECT ALL * FROM tab2 WHERE - 56 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9550
SELECT ALL MAX( DISTINCT - 70 ) * + + 16 - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9550
SELECT ALL MAX ( DISTINCT - 70 ) * + + 16 - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT ALL + MIN( ALL col2 ) AS col1 FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-9551
SELECT ALL + MIN ( ALL col2 ) AS col1 FROM tab0 cor0
----
10

query I rowsort
SELECT - 59 + + - col1 AS col0 FROM tab0 AS cor0 WHERE NOT 48 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 * col0 col0 FROM tab1 cor0
----
3621
6035
6461

onlyif mysql # aggregate syntax: 
query II rowsort label-9554
SELECT - - COUNT( * ) * + 51 col0, COUNT( * ) AS col1 FROM tab0 AS cor0
----
153
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9554
SELECT - - COUNT ( * ) * + 51 col0, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
153
3

query II rowsort
SELECT col1, + col2 * col1 AS col0 FROM tab1 AS cor0
----
14
1344
47
3196
5
295

query I rowsort
SELECT - col1 * - 37 AS col1 FROM tab1 AS cor0
----
1739
185
518

query I rowsort
SELECT ALL 56 * - 40 * - + col2 AS col1 FROM tab2
----
129920
51520
89600

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9558
SELECT + col0 * + 45 AS col1, + col1 + col0 * - + 99 * CAST( NULL AS SIGNED ) FROM tab1
----
2295
NULL
3825
NULL
4095
NULL

skipif mysql # not compatible
query II rowsort label-9558
SELECT + col0 * + 45 AS col1, + col1 + col0 * - + 99 * CAST ( NULL AS INTEGER ) FROM tab1
----
2295
NULL
3825
NULL
4095
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * + col1, - col2 col0 FROM tab2
----
1173
-23
3080
-40
3886
-58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( - - 39 ) * - - col0 * - - col0 * col1 * - 68 NOT BETWEEN + col2 AND col2 * col0 * - + col1 / + - 51
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 19 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 93 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9563
SELECT ALL 56 * 18 AS col1, ( SUM( ALL + CAST( NULL AS SIGNED ) ) ) FROM tab2
----
1008
NULL

skipif mysql # not compatible
query II rowsort label-9563
SELECT ALL 56 * 18 AS col1, ( SUM ( ALL + CAST ( NULL AS INTEGER ) ) ) FROM tab2
----
1008
NULL

query I rowsort
SELECT ALL + ( - 86 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query I rowsort
SELECT DISTINCT + col2 * + + ( + col2 ) * - + col1 - 14 AS col1 FROM tab0 WHERE NOT - 57 IS NULL
----
-178943
-2114
-9815

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT DISTINCT COUNT( * ) * + 59 AS col1 FROM tab2 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-9566
SELECT DISTINCT COUNT ( * ) * + 59 AS col1 FROM tab2 AS cor0
----
177

query I rowsort
SELECT + + 90 * - col1 + + 84 FROM tab1 AS cor0
----
-1176
-366
-4146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9568
SELECT + CAST( - + col0 AS SIGNED ) + + - col1 FROM tab0 AS cor0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-9568
SELECT + CAST ( - + col0 AS INTEGER ) + + - col1 FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT + col2 * + col0 + - 41 + - col1 FROM tab1 AS cor0
----
4841
4969
6100

query I rowsort
SELECT ALL + col2 + 95 FROM tab0 AS cor0
----
105
142
194

onlyif mysql # aggregate syntax: 
query II rowsort label-9571
SELECT ALL - COUNT( * ) AS col2, + ( + 78 ) AS col2 FROM tab1 AS cor0
----
-3
78

skipif mysql # not compatible
query II rowsort label-9571
SELECT ALL - COUNT ( * ) AS col2, + ( + 78 ) AS col2 FROM tab1 AS cor0
----
-3
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9572
SELECT CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE col2 >= NULL
----

skipif mysql # not compatible
query I rowsort label-9572
SELECT CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE col2 >= NULL
----

query I rowsort
SELECT DISTINCT - col0 + - 83 AS col2 FROM tab0 AS cor0
----
-170
-180
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT DISTINCT MAX( ALL - - col0 ) - + COUNT( * ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT MAX ( ALL - - col0 ) - + COUNT ( * ) FROM tab0
----
94

query I rowsort
SELECT DISTINCT col2 - + 49 + 52 FROM tab2
----
26
43
61

query I rowsort
SELECT DISTINCT - col0 * - ( + - col2 ) FROM tab1
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT - COUNT( - col1 ) * + + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9577
SELECT - COUNT ( - col1 ) * + + COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL - 46 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9579
SELECT ALL - + CAST( - 50 AS SIGNED ) FROM tab1 AS cor0
----
50
50
50

skipif mysql # not compatible
query I rowsort label-9579
SELECT ALL - + CAST ( - 50 AS INTEGER ) FROM tab1 AS cor0
----
50
50
50

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( 70 ) <> NULL
----

query I rowsort
SELECT DISTINCT - - 37 AS col1 FROM tab2 cor0
----
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9582
SELECT DISTINCT - MAX( ALL - - col1 ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9582
SELECT DISTINCT - MAX ( ALL - - col1 ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 26 * 23 FROM tab0 WHERE NOT NULL < + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9584
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * + - col1 * + + 21 + col2 IN ( + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9584
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * + - col1 * + + 21 + col2 IN ( + - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT COUNT( * ) * + 54 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-9585
SELECT COUNT ( * ) * + 54 FROM tab0
----
162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 88, + 99 col0 FROM tab1
----
88
99
88
99
88
99

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 47 IS NOT NULL
----

query II rowsort
SELECT - col1 AS col2, - col1 AS col0 FROM tab0
----
-1
-1
-21
-21
-81
-81

query I rowsort
SELECT - col1 * + - col0 AS col2 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT * FROM tab0 WHERE NOT + 88 * - - ( + col2 ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= + 29 * col0
----

query I rowsort
SELECT ( col0 ) + - 36 AS col0 FROM tab2
----
10
28
39

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9593
SELECT + CAST( NULL AS DECIMAL ) + 52 * 21 * - + COUNT( * ) - + - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9593
SELECT + CAST ( NULL AS REAL ) + 52 * 21 * - + COUNT ( * ) - + - COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + 76 + + 72 col1 FROM tab0 cor0
----
163
235
245

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * + + 62 + + - ( - col2 ) + + + 59 col1 FROM tab0 AS cor0
----
-5325
-5856
-824

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9597
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2 / - col0, - col0, - - CAST( NULL AS SIGNED ), + col1 )
----

skipif mysql # not compatible
query III rowsort label-9597
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col2 / - col0, - col0, - - CAST ( NULL AS INTEGER ), + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT DISTINCT - MAX( col1 ) * - 95 AS col1 FROM tab0 AS cor0
----
7695

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT - MAX ( col1 ) * - 95 AS col1 FROM tab0 AS cor0
----
7695

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9599
SELECT COUNT( * ) - + + ( - CAST( NULL AS SIGNED ) ) * 13 * 20 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9599
SELECT COUNT ( * ) - + + ( - CAST ( NULL AS INTEGER ) ) * 13 * 20 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col1 FROM tab0 AS cor0 WHERE col1 * - ( + - 57 ) * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9601
SELECT DISTINCT COUNT( col1 ) * + 31 - - SUM( + - col0 ) * 44 FROM tab2 AS cor0 WHERE - 46 + 67 IS NOT NULL
----
-8047

skipif mysql # not compatible
query I rowsort label-9601
SELECT DISTINCT COUNT ( col1 ) * + 31 - - SUM ( + - col0 ) * 44 FROM tab2 AS cor0 WHERE - 46 + 67 IS NOT NULL
----
-8047

query I rowsort
SELECT ALL - 84 * - col0 AS col1 FROM tab2 cor0
----
3864
5376
6300

query I rowsort
SELECT DISTINCT 37 + col2 * - 87 AS col1 FROM tab2 AS cor0
----
-1964
-3443
-5009

onlyif mysql # aggregate syntax: 
query I rowsort label-9604
SELECT + ( + COUNT( ALL 84 ) ) + + 77 + - + 1 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-9604
SELECT + ( + COUNT ( ALL 84 ) ) + + 77 + - + 1 FROM tab2 AS cor0
----
79

onlyif mysql # DIV for integer division: 
query I rowsort label-9605
SELECT ALL - 45 + - + col2 DIV 90 * - 59 FROM tab1 AS cor0
----
-45
-45
14

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL - 45 + - + col2 / 90 * - 59 FROM tab1 AS cor0
----
-45
-45
14

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL BETWEEN NULL AND col0 )
----

query I rowsort
SELECT ALL + col0 - + 64 FROM tab2
----
-18
0
11

query I rowsort
SELECT 35 * col1 * col2 + col1 FROM tab2
----
107877
136077
41106

query III rowsort
SELECT * FROM tab1 WHERE + 18 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9610
SELECT ALL + col0 - + 13 DIV - - col2 + + col2 AS col2 FROM tab1
----
144
147
159

skipif mysql # not compatible
query I rowsort label-9610
SELECT ALL + col0 - + 13 / - - col2 + + col2 AS col2 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL col2 * + - 9 AS col2 FROM tab0
----
-423
-891
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9612
SELECT DISTINCT 91 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9612
SELECT DISTINCT 91 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - 12
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9614
SELECT DISTINCT + COUNT( * ) DIV - - 46 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9614
SELECT DISTINCT + COUNT ( * ) / - - 46 FROM tab0 AS cor0
----
0

query II rowsort
SELECT ALL + - col0 AS col0, + col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT DISTINCT 45 * 46 * + MIN( col1 ) FROM tab0
----
2070

skipif mysql # not compatible
query I rowsort label-9616
SELECT DISTINCT 45 * 46 * + MIN ( col1 ) FROM tab0
----
2070

query I rowsort
SELECT DISTINCT + col2 * - + col2 * col2 FROM tab0
----
-1000
-103823
-970299

query I rowsort
SELECT + + 10 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9619
SELECT ALL - 80 * CAST( - col1 AS SIGNED ) FROM tab0 cor0
----
1680
6480
80

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL - 80 * CAST ( - col1 AS INTEGER ) FROM tab0 cor0
----
1680
6480
80

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT DISTINCT - ( + COUNT( - + 23 ) ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( - col1 ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9621
SELECT DISTINCT - ( + COUNT ( - + 23 ) ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( - col1 ) AND ( NULL )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 74 + 9 IS NOT NULL
----

query I rowsort
SELECT - 5 * - col2 + - + col2 FROM tab0 cor0
----
188
396
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9624
SELECT + + CAST( - - ( - COUNT( * ) ) AS SIGNED ) FROM tab1 cor0 WHERE NOT col1 * + ( col1 ) NOT IN ( - col2, - col0 + + col1 * - col2 * 57 )
----
0

skipif mysql # not compatible
query I rowsort label-9624
SELECT + + CAST ( - - ( - COUNT ( * ) ) AS INTEGER ) FROM tab1 cor0 WHERE NOT col1 * + ( col1 ) NOT IN ( - col2, - col0 + + col1 * - col2 * 57 )
----
0

query I rowsort
SELECT + col1 * + - col1 + + col1 FROM tab1 AS cor0
----
-182
-20
-2162

query I rowsort
SELECT + + col1 * ( - + 19 ) - + col2 + + + 81 AS col0 FROM tab0 AS cor0
----
-1505
-328
-37

query II rowsort
SELECT DISTINCT - col0 AS col1, - ( - - col1 ) AS col2 FROM tab1
----
-51
-14
-85
-5
-91
-47

query I rowsort
SELECT ALL ( 31 ) AS col0 FROM tab1
----
31
31
31

query III rowsort
SELECT * FROM tab2 WHERE col1 >= 63 * - 63 * - col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> + - 95
----

query I rowsort
SELECT ALL ( + 11 ) AS col2 FROM tab1
----
11
11
11

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * - + col2 + - - 37 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 AS cor0 WHERE + col0 * + - col0 <> col1
----
59
68
96

query I rowsort
SELECT ALL + col1 * - col0 + + col1 + + - col2 * - col0 * col0 + col2 AS col1 FROM tab1 AS cor0
----
249092
425914
558946

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT ALL ( - + MAX( + - col0 ) ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL ( - + MAX ( + - col0 ) ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-153

query I rowsort
SELECT ALL - 6 * - col0 FROM tab1 AS cor0
----
306
510
546

onlyif mysql # DIV for integer division: 
query I rowsort label-9638
SELECT - + 67 * col0 DIV + col2 AS col1 FROM tab1 AS cor0
----
-35
-89
-96

skipif mysql # not compatible
query I rowsort label-9638
SELECT - + 67 * col0 / + col2 AS col1 FROM tab1 AS cor0
----
-35
-89
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9639
SELECT ALL - - 82 DIV - col1 - - col2 + - 21 FROM tab1 AS cor0
----
22
46
70

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL - - 82 / - col1 - - col2 + - 21 FROM tab1 AS cor0
----
22
46
70

query I rowsort
SELECT - 80 - - - col0 - col1 AS col1 FROM tab0 AS cor0
----
-176
-178
-188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9641
SELECT + COUNT( * ) * + COUNT( * ) + - CAST( NULL AS SIGNED ) col1 FROM tab0, tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9641
SELECT + COUNT ( * ) * + COUNT ( * ) + - CAST ( NULL AS INTEGER ) col1 FROM tab0, tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - 4 * + 55 > - 27 + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 70 * col2, + col2 * - 18 col0 FROM tab1
----
4130
-1062
4760
-1224
6720
-1728

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE NOT ( + col0 ) IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT 35 AS col2 FROM tab0 cor0
----
35

query II rowsort
SELECT DISTINCT col2 * ( + - col2 ), + 94 AS col2 FROM tab1
----
-3481
94
-4624
94
-9216
94

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT DISTINCT + + MAX( - + col0 ) AS col1 FROM tab2 WHERE NOT - ( + col1 ) BETWEEN + 48 - + ( + col1 ) + - 28 * + - col2 AND + col2
----
-46

skipif mysql # not compatible
query I rowsort label-9647
SELECT DISTINCT + + MAX ( - + col0 ) AS col1 FROM tab2 WHERE NOT - ( + col1 ) BETWEEN + 48 - + ( + col1 ) + - 28 * + - col2 AND + col2
----
-46

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 * - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + - 58 FROM tab2
----
-2958
-3886
-4466

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9650
SELECT ALL + CAST( NULL AS SIGNED ) * col1 * col1 col1, + col2 * - - ( + col2 ) FROM tab2
----
NULL
1600
NULL
3364
NULL
529

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9650
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 * col1 col1, + col2 * - - ( + col2 ) FROM tab2
----
NULL
1600
NULL
3364
NULL
529

onlyif mysql # DIV for integer division: 
query I rowsort label-9651
SELECT DISTINCT - 23 DIV - col2 - - col0 * ( col0 ) * col2 FROM tab1 AS cor0
----
249696
426275
563108

skipif mysql # not compatible
query I rowsort label-9651
SELECT DISTINCT - 23 / - col2 - - col0 * ( col0 ) * col2 FROM tab1 AS cor0
----
249696
426275
563108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9652
SELECT - col2 FROM tab1 AS cor0 WHERE NOT col2 + + col1 / - CAST( NULL AS SIGNED ) + + 10 * - 48 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9652
SELECT - col2 FROM tab1 AS cor0 WHERE NOT col2 + + col1 / - CAST ( NULL AS INTEGER ) + + 10 * - 48 IS NULL
----

query I rowsort
SELECT + 0 AS col1 FROM tab0 cor0 WHERE - col0 <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9654
SELECT * FROM tab2 WHERE + 76 + CAST( NULL AS SIGNED ) < ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9654
SELECT * FROM tab2 WHERE + 76 + CAST ( NULL AS INTEGER ) < ( NULL )
----

query I rowsort
SELECT col0 * + 30 FROM tab1
----
1530
2550
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT DISTINCT - COUNT( * ) * 78 AS col1 FROM tab2
----
-234

skipif mysql # not compatible
query I rowsort label-9656
SELECT DISTINCT - COUNT ( * ) * 78 AS col1 FROM tab2
----
-234

query I rowsort
SELECT 85 + col0 FROM tab0
----
100
172
182

query I rowsort
SELECT + 7 + - col1 + - + 35 AS col2 FROM tab1
----
-33
-42
-75

query I rowsort
SELECT col0 * - + col1 + ( - - col2 ) AS col0 FROM tab1
----
-366
-4209
-618

query I rowsort
SELECT + 39 + 40 AS col1 FROM tab2
----
79
79
79

query III rowsort
SELECT * FROM tab1 WHERE 5 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 < + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9663
SELECT 87 - - col1 - + - col2 + + ( + col0 ) - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9663
SELECT 87 - - col1 - + - col2 + + ( + col0 ) - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 / + 55 FROM tab2 AS cor0 WHERE NOT - col0 + + - col0 IS NOT NULL
----

query I rowsort
SELECT col0 * col0 FROM tab2 AS cor0 WHERE + 43 - + + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 20 IN ( - col2 + + + col2 + + 17 / col2, 29 / + ( - 42 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 * + col2 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT ALL - MAX( + 19 ) FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL - MAX ( + 19 ) FROM tab1 AS cor0
----
-19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9669
SELECT col2 * + + CAST( - + 71 AS SIGNED ) + - + col1 FROM tab0 AS cor0
----
-3418
-7030
-731

skipif mysql # not compatible
query I rowsort label-9669
SELECT col2 * + + CAST ( - + 71 AS INTEGER ) + - + col1 FROM tab0 AS cor0
----
-3418
-7030
-731

query I rowsort
SELECT ALL + 90 * - col0 * - col2 FROM tab0 AS cor0
----
63450
78300
864270

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT DISTINCT COUNT( * ) * - - 92 AS col2 FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-9671
SELECT DISTINCT COUNT ( * ) * - - 92 AS col2 FROM tab2 AS cor0
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT - - ( + - COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9672
SELECT - - ( + - COUNT ( * ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9673
SELECT - MIN( DISTINCT - 12 ) DIV COUNT( * ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-9673
SELECT - MIN ( DISTINCT - 12 ) / COUNT ( * ) FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT MAX( ALL + + 31 ) FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-9674
SELECT MAX ( ALL + + 31 ) FROM tab2
----
31

query I rowsort
SELECT ALL - col0 * - - 59 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9676
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9676
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + + 28 * + col2 + - 68 - + 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9678
SELECT * FROM tab2 WHERE NOT + col0 * - CAST( NULL AS SIGNED ) + + + ( + ( col0 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9678
SELECT * FROM tab2 WHERE NOT + col0 * - CAST ( NULL AS INTEGER ) + + + ( + ( col0 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT ALL 52 * - COUNT( * ) AS col1 FROM tab2
----
-156

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL 52 * - COUNT ( * ) AS col1 FROM tab2
----
-156

query II rowsort
SELECT ALL + col2 AS col0, col0 AS col2 FROM tab1
----
59
85
68
91
96
51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) * 65 - col0 + - 80 >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - AVG ( + col2 ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT 72 * + + col2 AS col0 FROM tab0 AS cor0
----
3384
7128
720

query I rowsort
SELECT ( - ( + col2 ) ) AS col0 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-9685
SELECT DISTINCT col1 DIV + 28 AS col1 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-9685
SELECT DISTINCT col1 / + 28 AS col1 FROM tab2
----
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9686
SELECT + ( + - 51 ) + - - CAST( NULL AS SIGNED ) - + 17 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9686
SELECT + ( + - 51 ) + - - CAST ( NULL AS INTEGER ) - + 17 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9687
SELECT + col1 * + 30 + - + col2 DIV col2 + col2 AS col1 FROM tab1 AS cor0
----
1477
208
515

skipif mysql # not compatible
query I rowsort label-9687
SELECT + col1 * + 30 + - + col2 / col2 + col2 AS col1 FROM tab1 AS cor0
----
1477
208
515

query I rowsort
SELECT - - ( - col1 ) + col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9689
SELECT + col0 + CAST( NULL AS SIGNED ) AS col1, 68 DIV - 62 AS col2 FROM tab0 cor0
----
NULL
-1
NULL
-1
NULL
-1

skipif mysql # not compatible
query II rowsort label-9689
SELECT + col0 + CAST ( NULL AS INTEGER ) AS col1, 68 / - 62 AS col2 FROM tab0 cor0
----
NULL
-1
NULL
-1
NULL
-1

query I rowsort
SELECT + 73 + - + col0 FROM tab2 AS cor0
----
-2
27
9

query I rowsort
SELECT col1 * + 79 FROM tab0 AS cor0 WHERE ( NULL ) <> - - 10
----

query I rowsort
SELECT ALL + - col0 * + - 74 * - col0 + + col1 AS col1 FROM tab2 AS cor0
----
-156533
-303027
-416183

query I rowsort
SELECT ALL - col0 + + 53 * + col1 AS col1 FROM tab0
----
-44
1026
4278

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT - COUNT( * ) FROM tab0 WHERE + - 78 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9694
SELECT - COUNT ( * ) FROM tab0 WHERE + - 78 < NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 - + 94 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col2 + + col0 + col0 AS col2, - 10 AS col0 FROM tab2
----
115
-10
168
-10
208
-10

query I rowsort
SELECT ALL + ( - ( + - 93 ) ) FROM tab2
----
93
93
93

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE + 98 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9699
SELECT col1 DIV - - ( - 81 ) FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9699
SELECT col1 / - - ( - 81 ) FROM tab0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9700
SELECT DISTINCT ( col0 ) DIV + col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-9700
SELECT DISTINCT ( col0 ) / + col1 FROM tab1
----
1
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT ALL COUNT( * ) * 86 AS col1 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL COUNT ( * ) * 86 AS col1 FROM tab2
----
258

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 + + 84 col0 FROM tab0
----
131
131
131

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9704
SELECT + COUNT( col1 ) + + 27 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-9704
SELECT + COUNT ( col1 ) + + 27 FROM tab1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9705
SELECT - ( + COUNT( col0 ) ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9705
SELECT - ( + COUNT ( col0 ) ) AS col0 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9706
SELECT + col0 + + col2 DIV - col2 AS col1 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-9706
SELECT + col0 + + col2 / - col2 AS col1 FROM tab2
----
45
63
74

query I rowsort
SELECT + 8 * - col0 + 99 FROM tab1
----
-309
-581
-629

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT + 54 NOT BETWEEN col1 / + 67 + col0 AND NULL
----

query I rowsort
SELECT + col1 FROM tab2 WHERE ( 57 + + col2 * col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * col2 + col1 AS col2 FROM tab0
----
786
891
9604

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - col2 col0 FROM tab0
----
-198
-20
-94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9712
SELECT CAST( NULL AS DECIMAL ) * COUNT( * ) + + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9712
SELECT CAST ( NULL AS REAL ) * COUNT ( * ) + + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT AVG ( + col0 ) AS col0 FROM tab1 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9714
SELECT CAST( + AVG ( - col0 ) AS SIGNED ) * + 99 + - 96 * + 12 AS col2 FROM tab0
----
-7686

skipif mysql # not compatible
query I rowsort label-9714
SELECT CAST ( + AVG ( - col0 ) AS INTEGER ) * + 99 + - 96 * + 12 AS col2 FROM tab0
----
-7686

query I rowsort
SELECT ALL + col0 + + 94 AS col0 FROM tab2
----
140
158
169

onlyif mysql # DIV for integer division: 
query I rowsort label-9716
SELECT - col2 DIV - 34 - col1 AS col2 FROM tab2
----
-51
-66
-76

skipif mysql # not compatible
query I rowsort label-9716
SELECT - col2 / - 34 - col1 AS col2 FROM tab2
----
-51
-66
-76

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9718
SELECT 53 * 83 + + COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NOT - 76 NOT BETWEEN NULL AND ( - ( + ( + 11 ) ) * - col1 )
----
4399

skipif mysql # not compatible
query I rowsort label-9718
SELECT 53 * 83 + + COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NOT - 76 NOT BETWEEN NULL AND ( - ( + ( + 11 ) ) * - col1 )
----
4399

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 51 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 7 = NULL
----

query I rowsort
SELECT ALL - 24 * - col1 FROM tab2 WHERE NOT - 5 BETWEEN col0 AND ( col0 )
----
1224
1608
1848

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 col1 FROM tab0
----
-29
-29
-29

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 51 ) BETWEEN ( - col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9724
SELECT DISTINCT - col2 * col0 AS col2 FROM tab1 AS cor0 WHERE - 89 * CAST( - col1 AS SIGNED ) + + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9724
SELECT DISTINCT - col2 * col0 AS col2 FROM tab1 AS cor0 WHERE - 89 * CAST ( - col1 AS INTEGER ) + + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 * 29 + + 62 col0 FROM tab2 cor0
----
-779
-779
-779

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT + col0 < col0
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9727
SELECT 86 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9727
SELECT 86 * CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col2 ) * + 78 FROM tab2
----
-1794
-3120
-4524

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE ( + col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( col0 * - col0 ) = ( NULL )
----

query I rowsort
SELECT - ( + col1 ) * + col0 AS col0 FROM tab0
----
-1215
-1827
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) > col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9733
SELECT - - 89 DIV 16 FROM tab2 AS cor0
----
5
5
5

skipif mysql # not compatible
query I rowsort label-9733
SELECT - - 89 / 16 FROM tab2 AS cor0
----
5
5
5

query I rowsort
SELECT DISTINCT 58 + + col2 FROM tab2 cor0
----
116
81
98

query I rowsort
SELECT DISTINCT - col1 + - 5 AS col0 FROM tab1 cor0
----
-10
-19
-52

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 24 BETWEEN 56 AND ( NULL )
----

query I rowsort
SELECT ALL + col1 * 44 + col0 * col1 FROM tab2 AS cor0
----
4590
7973
8316

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE + 65 IN ( col1 + + col0 )
----

query I rowsort
SELECT 8 + + 58 + + 58 AS col0 FROM tab2
----
124
124
124

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE - col0 * + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9740
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE - col0 * + col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT COUNT( + 88 ) * 25 + + 70 AS col0 FROM tab1
----
145

skipif mysql # not compatible
query I rowsort label-9741
SELECT COUNT ( + 88 ) * 25 + + 70 AS col0 FROM tab1
----
145

query I rowsort
SELECT DISTINCT + 63 * col1 FROM tab0
----
1323
5103
63

query I rowsort
SELECT + 86 + - + col1 FROM tab0
----
5
65
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9744
SELECT CAST( + col2 AS SIGNED ) DIV + 39 + - col0 FROM tab2
----
-46
-63
-74

skipif mysql # not compatible
query I rowsort label-9744
SELECT CAST ( + col2 AS INTEGER ) / + 39 + - col0 FROM tab2
----
-46
-63
-74

query I rowsort
SELECT + col0 + - col2 * + 22 FROM tab2
----
-1201
-460
-816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9746
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE - col0 <= col2 + - 54
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9746
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE - col0 <= col2 + - 54
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - ( col0 ) - + col1 AS col0 FROM tab0
----
-1296
-1848
-98

query I rowsort
SELECT ALL - col2 * - 11 AS col2 FROM tab2
----
253
440
638

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 + col2 col0 FROM tab1
----
-2505
-7166
-8213

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9750
SELECT * FROM tab0 AS cor0 WHERE ( col1 ) + + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-9750
SELECT * FROM tab0 AS cor0 WHERE ( col1 ) + + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col2 - col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-17
-23
-24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 43 BETWEEN ( - col1 ) AND - col1 + - 41 * + col0
----

query I rowsort
SELECT ALL ( - + col1 ) AS col2 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT + + MAX( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9754
SELECT + + MAX ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
75

query I rowsort
SELECT + ( col0 ) AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 76 - ( col0 ) AS col1 FROM tab2 cor0
----
1
12
30

query II rowsort
SELECT ALL col2, col1 AS col0 FROM tab2
----
23
51
40
77
58
67

query III rowsort
SELECT * FROM tab1 WHERE NOT 3 IS NOT NULL
----

query I rowsort
SELECT ALL - 50 + - 75 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 23726b3acc81d0da778ac9662bc92c2b

query I rowsort
SELECT DISTINCT + col1 * + col2 + col0 + - col0 AS col2 FROM tab2 cor0
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-9761
SELECT DISTINCT - 90 DIV col1 DIV - col1 + - 17 FROM tab1 AS cor0
----
-14
-17

skipif mysql # not compatible
query I rowsort label-9761
SELECT DISTINCT - 90 / col1 / - col1 + - 17 FROM tab1 AS cor0
----
-14
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9762
SELECT ALL - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9762
SELECT ALL - + col0 AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col2 AS col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9764
SELECT DISTINCT - + 39 DIV MAX( - - col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9764
SELECT DISTINCT - + 39 / MAX ( - - col2 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9765
SELECT CAST( - col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9765
SELECT CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT + - 97 * + + col2 FROM tab2 AS cor0
----
-2231
-3880
-5626

query I rowsort
SELECT + col1 * - - 43 FROM tab0 AS cor0
----
3483
43
903

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT ALL - ( COUNT( * ) ) FROM tab1 WHERE NOT NULL IN ( + - 42 )
----
0

skipif mysql # not compatible
query I rowsort label-9768
SELECT ALL - ( COUNT ( * ) ) FROM tab1 WHERE NOT NULL IN ( + - 42 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9769
SELECT 48 DIV col2 AS col0 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-9769
SELECT 48 / col2 AS col0 FROM tab0
----
0
1
4

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 / - 67 BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9771
SELECT ALL - CAST( + - col1 AS SIGNED ) FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL - CAST ( + - col1 AS INTEGER ) FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT + col0 + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL >= - 22 * + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9773
SELECT DISTINCT col0 * - CAST( 17 AS SIGNED ) * - col2 - 23 + 47 AS col2 FROM tab0 AS cor0
----
12009
14814
163275

skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT col0 * - CAST ( 17 AS INTEGER ) * - col2 - 23 + 47 AS col2 FROM tab0 AS cor0
----
12009
14814
163275

query II rowsort
SELECT DISTINCT + + 20, - 32 AS col0 FROM tab1 AS cor0
----
20
-32

query I rowsort
SELECT DISTINCT - col1 + + col1 * 9 FROM tab0 AS cor0
----
168
648
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9776
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + ( 61 ) + + ( col1 ) - 9 * 14 * col0 ) <> col0 + + col0 * - CAST( 69 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-9776
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + ( 61 ) + + ( col1 ) - 9 * 14 * col0 ) <> col0 + + col0 * - CAST ( 69 AS INTEGER )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9777
SELECT ALL 25 + 54 DIV - - COUNT( DISTINCT - col2 ) FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL 25 + 54 / - - COUNT ( DISTINCT - col2 ) FROM tab0 AS cor0
----
43

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 96 = ( - 90 )
----

query I rowsort
SELECT 8 + + 65 + + col1 + + col2 FROM tab2 AS cor0
----
147
190
198

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT DISTINCT - 77 + COUNT( * ) FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-9780
SELECT DISTINCT - 77 + COUNT ( * ) FROM tab0 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT + MIN( 13 ) col0 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9781
SELECT + MIN ( 13 ) col0 FROM tab1 AS cor0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9782
SELECT DISTINCT CAST( NULL AS SIGNED ) + + ( + col1 ) + - + col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9782
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + ( + col1 ) + - + col2 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9783
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9784
SELECT DISTINCT COUNT( * ) DIV 43 AS col1 FROM tab0 cor0 WHERE ( NULL ) BETWEEN NULL AND ( + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9784
SELECT DISTINCT COUNT ( * ) / 43 AS col1 FROM tab0 cor0 WHERE ( NULL ) BETWEEN NULL AND ( + + col0 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, col2 + col0 col0 FROM tab0
----
10
97
47
62
99
196

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT ALL + MAX( DISTINCT - 60 ) FROM tab0, tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL + MAX ( DISTINCT - 60 ) FROM tab0, tab2 AS cor0
----
-60

query I rowsort
SELECT DISTINCT - 53 - + col1 AS col2 FROM tab2 WHERE ( ( col0 ) + - 23 ) = - col2
----

query I rowsort
SELECT ALL - col0 + - 34 + - col1 + - col1 AS col0 FROM tab0
----
-133
-163
-211

query I rowsort
SELECT + 15 + + col1 AS col1 FROM tab0 WHERE ( NOT - 57 <> + col1 )
----

query I rowsort
SELECT + col2 FROM tab1 WHERE + col2 * - 63 * - col2 NOT BETWEEN - col0 AND NULL
----

query II rowsort
SELECT 26 - - 60 AS col0, col0 AS col0 FROM tab0
----
86
15
86
87
86
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9792
SELECT ALL MAX( ALL 0 ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL MAX ( ALL 0 ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT - col1 - + + col2 FROM tab0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT + MAX( col0 ) AS col2 FROM tab2 AS cor0 WHERE + 86 > - col2 * + - col0 + 60 * + 2
----
NULL

skipif mysql # not compatible
query I rowsort label-9794
SELECT + MAX ( col0 ) AS col2 FROM tab2 AS cor0 WHERE + 86 > - col2 * + - col0 + 60 * + 2
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 + col0 + 36 FROM tab0 AS cor0
----
132
134
144

query I rowsort
SELECT ALL + col0 * + ( 36 ) FROM tab1
----
1836
3060
3276

query II rowsort
SELECT - + col1 * - + col1 AS col1, ( col0 ) + + ( col1 ) FROM tab0 AS cor0
----
1
98
441
108
6561
96

query II rowsort
SELECT ALL - 73 * + col2, col1 FROM tab0 AS cor0
----
-3431
81
-7227
1
-730
21

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9800
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + col0 <= - col0 * CAST( NULL AS DECIMAL ) * + - col0
----

skipif mysql # not compatible
query III rowsort label-9800
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + col0 <= - col0 * CAST ( NULL AS REAL ) * + - col0
----

query I rowsort
SELECT - 21 * 29 + + col1 FROM tab0 AS cor0
----
-528
-588
-608

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * col0 col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9803
SELECT DISTINCT 31 DIV + + 80 col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9803
SELECT DISTINCT 31 / + + 80 col2 FROM tab2 cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 > col2
----
51
14
96

query I rowsort
SELECT - col2 AS col0 FROM tab2 cor0 WHERE NOT ( - col0 + - 30 + + + col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 42 col0, - col2 FROM tab0
----
42
-10
42
-47
42
-99

query I rowsort
SELECT - ( - col1 ) * - col2 * + + col0 * + col1 FROM tab1
----
-125375
-13669292
-959616

query II rowsort
SELECT ALL col0 AS col1, - col0 + + col0 - - col2 + + + 93 FROM tab0
----
15
140
87
103
97
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 79 * - + 68 + col1 col2 FROM tab0
----
-5291
-5351
-5371

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT ALL - MAX( DISTINCT - 26 ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-9810
SELECT ALL - MAX ( DISTINCT - 26 ) FROM tab1
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT + + 64 + - + ( SUM( ALL - 26 ) ) col0 FROM tab0 cor0
----
142

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9811
SELECT + + 64 + - + ( SUM ( ALL - 26 ) ) col0 FROM tab0 cor0
----
142

query I rowsort
SELECT ALL + 94 + + col0 FROM tab2 AS cor0
----
140
158
169

query I rowsort
SELECT - col0 * 84 + 43 AS col0 FROM tab1 AS cor0
----
-4241
-7097
-7601

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9814
SELECT CAST( - + 5 AS SIGNED ) FROM tab2
----
-5
-5
-5

skipif mysql # not compatible
query I rowsort label-9814
SELECT CAST ( - + 5 AS INTEGER ) FROM tab2
----
-5
-5
-5

query I rowsort
SELECT col1 * + ( + - ( col0 ) ) FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT col0 * - + 56 FROM tab1
----
-2856
-4760
-5096

query I rowsort
SELECT ALL + 64 * - col2 AS col1 FROM tab0
----
-3008
-6336
-640

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IS NULL OR + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 58 FROM tab1 AS cor0 WHERE NULL IS NULL
----
58
58
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9820
SELECT DISTINCT 33 DIV + 33 + + + col1 FROM tab0 cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT 33 / + 33 + + + col1 FROM tab0 cor0
----
2
22
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + - col0 col1, - col1 FROM tab2 AS cor0
----
-104
-77
-133
-67
-69
-51

query I rowsort
SELECT ALL + col1 - - + 9 AS col0 FROM tab1 AS cor0
----
14
23
56

query I rowsort
SELECT ALL + 73 + - col0 AS col0 FROM tab0
----
-14
-24
58

query I rowsort
SELECT DISTINCT col1 - + col0 AS col2 FROM tab0
----
-66
-96
66

query I rowsort
SELECT ALL col2 - + - col0 AS col0 FROM tab2
----
104
133
69

query III rowsort
SELECT * FROM tab2 WHERE - ( + 12 ) * - col1 >= - + ( - ( - col0 ) ) - - col0 * - + col0 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE + + col0 IN ( + 6 * - col0, + 76 )
----

query I rowsort
SELECT DISTINCT + 74 * col1 AS col1 FROM tab1
----
1036
3478
370

query I rowsort
SELECT 79 FROM tab1 WHERE + col1 - + col1 NOT BETWEEN ( + 54 + - + ( + 43 ) / - col0 ) AND NULL
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 36 col0 FROM tab1
----
-1692
-180
-504

onlyif mysql # DIV for integer division: 
query I rowsort label-9831
SELECT DISTINCT - + 25 DIV 86 + - ( col1 ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9831
SELECT DISTINCT - + 25 / 86 + - ( col1 ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9832
SELECT - CAST( + + ( - - COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9832
SELECT - CAST ( + + ( - - COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9833
SELECT - MIN( - ( - - 92 ) ) AS col2, - MAX( + + col2 ) AS col0 FROM tab1 AS cor0
----
92
-96

skipif mysql # not compatible
query II rowsort label-9833
SELECT - MIN ( - ( - - 92 ) ) AS col2, - MAX ( + + col2 ) AS col0 FROM tab1 AS cor0
----
92
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-9834
SELECT + 72, COUNT( * ) * + 77 col2 FROM tab1
----
72
231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9834
SELECT + 72, COUNT ( * ) * + 77 col2 FROM tab1
----
72
231

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 WHERE NOT 72 / - 66 - + + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9835
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT 72 / - 66 - + + col1 IS NOT NULL
----
0

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 4 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * + col0 > NULL
----

query I rowsort
SELECT + col2 + col2 + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( 95, + col0, + - ( + + 64 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT ALL + - COUNT( DISTINCT + - col0 ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL + - COUNT ( DISTINCT + - col0 ) AS col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT + + 97 * + col1 FROM tab1 AS cor0
----
1358
4559
485

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT + COUNT( * ) + + + 28 + - 73 col1 FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9841
SELECT + COUNT ( * ) + + + 28 + - 73 col1 FROM tab0 AS cor0
----
-42

query II rowsort
SELECT + + col1 AS col0, 72 AS col0 FROM tab1 AS cor0
----
14
72
47
72
5
72

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 73
----

query I rowsort
SELECT DISTINCT - col2 * + col1 * + 87 FROM tab0
----
-18270
-331209
-8613

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9845
SELECT + CAST( NULL AS DECIMAL ) / - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9845
SELECT + CAST ( NULL AS REAL ) / - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + + col0 AND ( + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT ALL - COUNT( * ) FROM tab2 WHERE + + col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-9847
SELECT ALL - COUNT ( * ) FROM tab2 WHERE + + col0 > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9848
SELECT - col2 * + CAST( ( 28 ) AS SIGNED ) FROM tab0 AS cor0
----
-1316
-2772
-280

skipif mysql # not compatible
query I rowsort label-9848
SELECT - col2 * + CAST ( ( 28 ) AS INTEGER ) FROM tab0 AS cor0
----
-1316
-2772
-280

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9849
SELECT DISTINCT + MAX( ALL - - col1 ) AS col2, COUNT( + - col0 ) + + - SUM( CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 AS cor0
----
77
NULL

skipif mysql # not compatible
query II rowsort label-9849
SELECT DISTINCT + MAX ( ALL - - col1 ) AS col2, COUNT ( + - col0 ) + + - SUM ( CAST ( NULL AS REAL ) ) AS col1 FROM tab2 AS cor0
----
77
NULL

query I rowsort
SELECT DISTINCT - 74 * col1 + + col2 FROM tab1 AS cor0
----
-311
-3410
-940

query I rowsort
SELECT ALL + col2 + + + 64 * + col2 FROM tab0 AS cor0
----
3055
6435
650

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 * + 88 * - 99 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 + + - col1 AS col1 FROM tab2 AS cor0
----
-102
-134
-154

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9854
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + CAST( - 29 AS SIGNED ) NOT IN ( + - 86 / 81 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9854
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + CAST ( - 29 AS INTEGER ) NOT IN ( + - 86 / 81 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9855
SELECT + 94 DIV + 90 + - 61 AS col1 FROM tab2 AS cor0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-9855
SELECT + 94 / + 90 + - 61 AS col1 FROM tab2 AS cor0
----
-60
-60
-60

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT IN ( - 50 * + 81 * - + col0 * - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - - col2 col0 FROM tab2 AS cor0
----
1600
3364
529

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= - ( - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT DISTINCT + 50 + + + COUNT( + col0 ) FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9860
SELECT DISTINCT + 50 + + + COUNT ( + col0 ) FROM tab0 AS cor0
----
53

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9861
SELECT ALL col0 / - CAST( NULL AS DECIMAL ) + col0 + + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL col0 / - CAST ( NULL AS REAL ) + col0 + + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 7 - - col2 * + 52 FROM tab1
----
3075
3543
4999

query I rowsort
SELECT - col0 FROM tab1 WHERE ( - - 10 + + 50 * + - ( - ( 76 ) ) ) IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT DISTINCT MAX( ( + 72 ) ) col0 FROM tab1 WHERE 99 BETWEEN - col0 AND - + col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9864
SELECT DISTINCT MAX ( ( + 72 ) ) col0 FROM tab1 WHERE 99 BETWEEN - col0 AND - + col0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < - 53 / + col1 + - 9
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9866
SELECT * FROM tab2 WHERE NOT + + CAST( NULL AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9866
SELECT * FROM tab2 WHERE NOT + + 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 - - 34 col2 FROM tab2 AS cor0
----
34
34
34

query I rowsort
SELECT DISTINCT - - 40 AS col1 FROM tab1 AS cor0
----
40

query I rowsort
SELECT col2 - + col1 / + ( - 15 ) AS col0 FROM tab1 AS cor0 WHERE NOT - 55 NOT BETWEEN NULL AND ( + col0 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9870
SELECT ALL - MIN( - 54 ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-9870
SELECT ALL - MIN ( - 54 ) FROM tab0
----
54

query II rowsort
SELECT ALL - col1 AS col1, col1 - 89 FROM tab2 AS cor0
----
-51
-38
-67
-22
-77
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, col1 + + col0 * - - col2 col1 FROM tab0 AS cor0
----
10
891
47
786
99
9604

query I rowsort
SELECT DISTINCT + 45 + + col1 FROM tab0 AS cor0
----
126
46
66

query I rowsort
SELECT DISTINCT + 91 AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 55 - - col1 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL 48 * + + col0 FROM tab2 AS cor0
----
2208
3072
3600

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= 19
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9878
SELECT - 43 DIV + - col2 AS col2 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-9878
SELECT - 43 / + - col2 AS col2 FROM tab0
----
0
0
4

query II rowsort
SELECT col2, col0 * + col0 FROM tab2
----
23
2116
40
4096
58
5625

onlyif mysql # DIV for integer division: 
query I rowsort label-9880
SELECT DISTINCT + 80 DIV col2 * + col1 AS col0 FROM tab0
----
0
168
81

skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT + 80 / col2 * + col1 AS col0 FROM tab0
----
0
168
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col2 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9882
SELECT ALL COUNT( DISTINCT - col0 ) + - COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9882
SELECT ALL COUNT ( DISTINCT - col0 ) + - COUNT ( * ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9883
SELECT + - 24 + - COUNT( * ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9883
SELECT + - 24 + - COUNT ( * ) FROM tab1 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT DISTINCT MAX( DISTINCT + col1 ) AS col1 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-9884
SELECT DISTINCT MAX ( DISTINCT + col1 ) AS col1 FROM tab1 cor0
----
47

query I rowsort
SELECT 49 + col2 FROM tab0 AS cor0
----
148
59
96

query I rowsort
SELECT DISTINCT 11 + 60 FROM tab2 AS cor0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9887
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT - - col0 + CAST( + 76 AS SIGNED ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9887
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT - - col0 + CAST ( + 76 AS INTEGER ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9888
SELECT DISTINCT 89 DIV - 22 + + col2 + - - col1 - col2 + + 43 * col1 * col2 + col1 * - + col0 FROM tab0
----
162563
4157
7220

skipif mysql # not compatible
query I rowsort label-9888
SELECT DISTINCT 89 / - 22 + + col2 + - - col1 - col2 + + 43 * col1 * col2 + col1 * - + col0 FROM tab0
----
162563
4157
7220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9889
SELECT ALL CAST( NULL AS SIGNED ) + - col0 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9889
SELECT ALL CAST ( NULL AS INTEGER ) + - col0 col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= - 77 - + col2
----

query I rowsort
SELECT ALL 95 - + 7 AS col2 FROM tab1
----
88
88
88

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9893
SELECT ALL + + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL + + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT 54 + + MAX( ALL - - 55 ) AS col1 FROM tab1 AS cor0
----
109

skipif mysql # not compatible
query I rowsort label-9894
SELECT 54 + + MAX ( ALL - - 55 ) AS col1 FROM tab1 AS cor0
----
109

query II rowsort
SELECT DISTINCT - col0 * col1 * - + col0 AS col0, + col0 - - col1 AS col0 FROM tab0 AS cor0
----
158949
108
18225
96
9409
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9896
SELECT ALL + - col0 * + 52 + + + CAST( NULL AS SIGNED ) * - col1 * + + col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9896
SELECT ALL + - col0 * + 52 + + + CAST ( NULL AS INTEGER ) * - col1 * + + col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9897
SELECT DISTINCT + + AVG ( CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9897
SELECT DISTINCT + + AVG ( CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 45 AS col0, col0 col0 FROM tab2
----
-45
46
-45
64
-45
75

query II rowsort
SELECT DISTINCT - col2 AS col2, - ( + - col1 ) * 31 * + ( + col2 ) FROM tab1
----
-59
9145
-68
99076
-96
41664

query III rowsort
SELECT ALL * FROM tab0 WHERE - 99 + - col1 = - 6
----

query I rowsort
SELECT - - 72 * - col2 FROM tab2 AS cor0 WHERE NOT + col0 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + col0 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT DISTINCT + MAX( col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT + MAX ( col1 ) AS col0 FROM tab1
----
47

onlyif mysql # DIV for integer division: 
query I rowsort label-9904
SELECT DISTINCT 58 + - + col1 DIV - col1 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9904
SELECT DISTINCT 58 + - + col1 / - col1 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * + 47 = - - col0 * + - col0 - + - 4 * + + col1 + + 33
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col0 * - col2 IS NULL
----

query II rowsort
SELECT - 34 + col0 AS col2, 1 AS col1 FROM tab0 AS cor0
----
-19
1
53
1
63
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT ALL - COUNT( * ) * MAX( DISTINCT 15 ) + - + 24 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-9909
SELECT ALL - COUNT ( * ) * MAX ( DISTINCT 15 ) + - + 24 FROM tab2 AS cor0
----
-69

query I rowsort
SELECT col0 * - 19 * col1 * - 97 FROM tab2 AS cor0
----
4323678
9082304
9261075

query I rowsort
SELECT + 19 / + - 82 AS col2 FROM tab2 AS cor0 WHERE - col2 BETWEEN NULL AND + - col1 * - + 80
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9912
SELECT DISTINCT + col2 + - 86 / - + CAST( NULL AS SIGNED ) * + ( + col1 ) * 23 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9912
SELECT DISTINCT + col2 + - 86 / - + CAST ( NULL AS INTEGER ) * + ( + col1 ) * 23 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col0 * + - col2 * - col0 <= - 86
----

query I rowsort
SELECT ALL + 63 AS col1 FROM tab2
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 8 ) col0 FROM tab2
----
8
8
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9916
SELECT - CAST( + col0 AS SIGNED ) FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9916
SELECT - CAST ( + col0 AS INTEGER ) FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + 89 col1 FROM tab0
----
4183
8811
890

query I rowsort
SELECT ALL + 23 FROM tab2 WHERE NOT - + 2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9919
SELECT + CAST( NULL AS SIGNED ) - col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9919
SELECT + CAST ( NULL AS INTEGER ) - col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9920
SELECT - col1 DIV + 27 + - - 78 + col0 - + - col1 FROM tab2 AS cor0
----
174
217
218

skipif mysql # not compatible
query I rowsort label-9920
SELECT - col1 / + 27 + - - 78 + col0 - + - col1 FROM tab2 AS cor0
----
174
217
218

query I rowsort
SELECT 24 * + col0 - - col0 FROM tab0 cor0 WHERE NULL >= col0 + - 57
----

query I rowsort
SELECT ALL - - col2 * - 6 + col2 + + col2 AS col0 FROM tab2 AS cor0
----
-160
-232
-92

query I rowsort
SELECT - col0 FROM tab1 WHERE - col0 <= - col1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT ALL COUNT( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9924
SELECT ALL COUNT ( * ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT - + ( + MIN( ALL 32 ) ) * - COUNT( * ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9925
SELECT - + ( + MIN ( ALL 32 ) ) * - COUNT ( * ) FROM tab0 AS cor0
----
96

query I rowsort
SELECT + - 73 * col2 FROM tab1 AS cor0
----
-4307
-4964
-7008

onlyif mysql # aggregate syntax: 
query I rowsort label-9927
SELECT - MIN( DISTINCT + ( + + col1 ) ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9927
SELECT - MIN ( DISTINCT + ( + + col1 ) ) AS col1 FROM tab1 AS cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9928
SELECT DISTINCT - 4 DIV + - col2 * - - 67 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9928
SELECT DISTINCT - 4 / + - col2 * - - 67 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 NOT IN ( - 46 * + + col2, - col0, 36, + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 col1 FROM tab0 AS cor0
----
73
73
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9931
SELECT DISTINCT - + col1 DIV + 11 + col1 + ( col0 ) FROM tab0 AS cor0
----
107
89
98

skipif mysql # not compatible
query I rowsort label-9931
SELECT DISTINCT - + col1 / + 11 + col1 + ( col0 ) FROM tab0 AS cor0
----
107
89
98

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT 9 = - 13 OR NOT ( NOT NULL IS NOT NULL )
----
-23
-40
-58

query II rowsort
SELECT + 14 * - col2 - col0 AS col2, col0 * col0 AS col2 FROM tab0 WHERE NOT col1 + 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT + 97 * COUNT( * ) AS col2 FROM tab2
----
291

skipif mysql # not compatible
query I rowsort label-9934
SELECT + 97 * COUNT ( * ) AS col2 FROM tab2
----
291

query I rowsort
SELECT + ( 57 ) FROM tab0
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9936
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <= + CAST( NULL AS SIGNED ) * - col1
----

skipif mysql # not compatible
query III rowsort label-9936
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <= + CAST ( NULL AS INTEGER ) * - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 46 BETWEEN ( - col1 ) AND - 89 - - 44 - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT col1 > + col2 )
----

query II rowsort
SELECT DISTINCT col2, + col0 AS col2 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9940
SELECT - SUM( DISTINCT - col1 ) * - + 82 * + COUNT( * ) FROM tab1
----
-16236

skipif mysql # not compatible
query I rowsort label-9940
SELECT - SUM ( DISTINCT - col1 ) * - + 82 * + COUNT ( * ) FROM tab1
----
-16236

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 18 + col0 col1 FROM tab1 cor0
----
103
109
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9942
SELECT DISTINCT + col2 * - col0 + - - 12 DIV + col1 FROM tab0 AS cor0
----
-705
-870
-9591

skipif mysql # not compatible
query I rowsort label-9942
SELECT DISTINCT + col2 * - col0 + - - 12 / + col1 FROM tab0 AS cor0
----
-705
-870
-9591

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, - col2 col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query I rowsort
SELECT + ( - + 59 ) FROM tab1 AS cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT 62 * COUNT( * ) + 23 + - SUM( ALL 1 ) FROM tab0 cor0
----
206

skipif mysql # not compatible
query I rowsort label-9945
SELECT 62 * COUNT ( * ) + 23 + - SUM ( ALL 1 ) FROM tab0 cor0
----
206

query I rowsort
SELECT + 2 + col1 AS col2 FROM tab2
----
53
69
79

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NOT 22 IS NOT NULL
----

query I rowsort
SELECT ALL - 2 * 61 AS col0 FROM tab0
----
-122
-122
-122

query I rowsort
SELECT DISTINCT + 3 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT - MIN( DISTINCT + col2 ) - COUNT( * ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-9950
SELECT - MIN ( DISTINCT + col2 ) - COUNT ( * ) FROM tab2
----
-26

query I rowsort
SELECT ALL 56 + col1 AS col0 FROM tab1
----
103
61
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 * - 82 col2 FROM tab2
----
-82

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 AS cor0 WHERE NOT ( + - 29 BETWEEN 62 AND - + 57 )
----
10
47
99

query I rowsort
SELECT - + col2 * + - col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # DIV for integer division: 
query II rowsort label-9955
SELECT - col0 DIV + + col2 + - col0 AS col0, 22 FROM tab0 AS cor0
----
-15
22
-95
22
-97
22

skipif mysql # not compatible
query II rowsort label-9955
SELECT - col0 / + + col2 + - col0 AS col0, 22 FROM tab0 AS cor0
----
-15
22
-95
22
-97
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 64 col1 FROM tab0 AS cor0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT - MIN( DISTINCT + - col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-9957
SELECT - MIN ( DISTINCT + - col1 ) FROM tab1 cor0
----
47

query I rowsort
SELECT DISTINCT - col0 * - + 83 AS col1 FROM tab2
----
3818
5312
6225

query I rowsort
SELECT DISTINCT col2 * + - 6 FROM tab1
----
-354
-408
-576

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9960
SELECT DISTINCT 41 DIV + + COUNT( * ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-9960
SELECT DISTINCT 41 / + + COUNT ( * ) FROM tab0
----
13

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 WHERE - + col0 * col1 * - - 27 / - - col1 + col0 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT - + col0 + - ( ( col1 ) ) * - col0 FROM tab2 WHERE NOT - - col1 / + col0 BETWEEN - 14 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT ALL SUM( ALL - + col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-9963
SELECT ALL SUM ( ALL - + col0 ) FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT ALL - + COUNT( * ) + + + 77 FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL - + COUNT ( * ) + + + 77 FROM tab2 AS cor0
----
74

query II rowsort
SELECT + - col0 AS col1, col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9966
SELECT + ( + COUNT( * ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9966
SELECT + ( + COUNT ( * ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT - 20 + + COUNT( * ) FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-9967
SELECT - 20 + + COUNT ( * ) FROM tab0 AS cor0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9968
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + col2 / 61 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + col2 / 61 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 + + col1 - col0 + + col2 * 81 AS col2 FROM tab0 AS cor0
----
3920
754
8022

query I rowsort
SELECT col1 * + - 30 + col1 AS col2 FROM tab2 AS cor0
----
-1479
-1943
-2233

query I rowsort
SELECT + + 54 AS col0 FROM tab0 AS cor0
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9972
SELECT + CAST( col0 AS SIGNED ) AS col1, + col0 * col1 FROM tab0 AS cor0
----
15
1215
87
1827
97
97

skipif mysql # not compatible
query II rowsort label-9972
SELECT + CAST ( col0 AS INTEGER ) AS col1, + col0 * col1 FROM tab0 AS cor0
----
15
1215
87
1827
97
97

query I rowsort
SELECT DISTINCT col1 - - 71 FROM tab0
----
152
72
92

onlyif mysql # aggregate syntax: 
query I rowsort label-9974
SELECT ALL 65 * COUNT( * ) * + + COUNT( * ) FROM tab2
----
585

skipif mysql # not compatible
query I rowsort label-9974
SELECT ALL 65 * COUNT ( * ) * + + COUNT ( * ) FROM tab2
----
585

query I rowsort
SELECT + 13 - - - 43 * - col2 * + col0 FROM tab0
----
30328
37423
412942

query I rowsort
SELECT col1 - + 81 + - 25 FROM tab2 AS cor0
----
-29
-39
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9977
SELECT - col2 + col2 + + col0 * col2 + + col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9977
SELECT - col2 + col2 + + col0 * col2 + + col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE 91 BETWEEN + + col1 + - 5 / + col0 AND + - col2 + col2 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0 * + 56 AS col1, + 0 AS col1 FROM tab0
----
4872
0
5432
0
840
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT ALL + MIN( + 27 ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL + MIN ( + 27 ) FROM tab2 AS cor0
----
27

query I rowsort
SELECT ( + - 60 ) FROM tab0 AS cor0
----
-60
-60
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - + col1 ) AS col2, + col0 col0 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query II rowsort
SELECT col2 * - col0 AS col0, - col1 FROM tab1 AS cor0
----
-4896
-14
-5015
-5
-6188
-47

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9984
SELECT col0 AS col1, col2 AS col2 FROM tab1 WHERE NOT ( + CAST( NULL AS SIGNED ) + + + ( CAST( 94 AS DECIMAL ) ) > NULL )
----

skipif mysql # not compatible
query II rowsort label-9984
SELECT col0 AS col1, col2 AS col2 FROM tab1 WHERE NOT ( + CAST ( NULL AS INTEGER ) + + + ( CAST ( 94 AS REAL ) ) > NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9985
SELECT DISTINCT col2 DIV + + col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9985
SELECT DISTINCT col2 / + + col2 FROM tab2
----
1

query I rowsort
SELECT - - 43 + - col2 AS col2 FROM tab0 WHERE NOT col1 BETWEEN + 94 AND + 85
----
-4
-56
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9987
SELECT + COUNT( DISTINCT - - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9987
SELECT + COUNT ( DISTINCT - - col1 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - + 34 ) + - col2 IS NULL
----

query I rowsort
SELECT + - col1 FROM tab2 AS cor0 WHERE NOT col0 + + - 49 IS NOT NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab2 cor0 WHERE NOT col1 > + 34
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - ( + col2 ) / + col2 - - 95 IS NOT NULL
----

query I rowsort
SELECT 61 + + col0 AS col1 FROM tab0 AS cor0
----
148
158
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9993
SELECT ALL - + col0 + col0 * + col1 + + + col1 + 39 - - + CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9993
SELECT ALL - + col0 + col0 * + col1 + + + col1 + 39 - - + CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + - col1 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 42 + 2 AS col1 FROM tab0 AS cor0
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col0 ) + + + col2 col1 FROM tab0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT ALL + ( - - COUNT( * ) ) + + 54 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL + ( - - COUNT ( * ) ) + + 54 FROM tab2
----
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - 18 - - col0 * + 57 col0 FROM tab0
----
4998
5548
954

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 84 = NULL
----

