sqllogictest
Artifact Content
Not logged in

Artifact 42b1c07ebcaba56f5b472bda8ec93d19fbeb0527:


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 - -