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)

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

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE col2 BETWEEN + 69 AND - col2 + col1 * col2
----
14

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + col0 * - 46 IS NOT NULL
----

query I rowsort
SELECT 15 * - 10 FROM tab1 cor0
----
-150
-150
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT ALL + ( - - ( 64 ) ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-4
SELECT ALL + ( - - ( 64 ) ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
192

query I rowsort
SELECT DISTINCT 24 * - 68 FROM tab1
----
-1632

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

query I rowsort
SELECT 19 + col1 FROM tab2
----
70
86
96

query I rowsort
SELECT 6 * - 77 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f97c36fbfa5a85551b29e27971a6c5b5

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE col0 = + + 48 * col1 + ( col2 ) * col0
----

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

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

query I rowsort
SELECT - col2 * + + col0 FROM tab1 cor0
----
-4896
-5015
-6188

query I rowsort
SELECT ALL - ( + 55 ) + - col2 FROM tab1 AS cor0
----
-114
-123
-151

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

skipif mysql # not compatible
query I rowsort label-13
SELECT + CAST ( - 45 AS INTEGER ) FROM tab2 AS cor0
----
-45
-45
-45

query I rowsort
SELECT DISTINCT - - col1 * 73 + - 63 FROM tab1 AS cor0
----
302
3368
959

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

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

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

query I rowsort
SELECT DISTINCT - ( - - col1 ) + + col1 * - + col0 FROM tab2
----
-2397
-5005
-5092

query I rowsort
SELECT col2 * - col0 AS col2 FROM tab2 WHERE + col2 * 75 + col0 IS NOT NULL
----
-1058
-2560
-4350

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

onlyif mysql # DIV for integer division: 
query I rowsort label-20
SELECT DISTINCT + col1 DIV - 82 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-20
SELECT DISTINCT + col1 / - 82 FROM tab1
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-22
SELECT COUNT( * ) DIV - + SUM( ALL + col1 ) FROM tab1 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-22
SELECT COUNT ( * ) / - + SUM ( ALL + col1 ) FROM tab1 WHERE NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-23
SELECT ALL - MAX( + col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-23
SELECT ALL - MAX ( + col0 ) AS col0 FROM tab1 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-24
SELECT ALL * FROM tab0 cor0 WHERE NULL IN ( + col2, - CAST( NULL AS SIGNED ) * + 16 * col0 )
----

skipif mysql # not compatible
query III rowsort label-24
SELECT ALL * FROM tab0 cor0 WHERE NULL IN ( + col2, - CAST ( NULL AS INTEGER ) * + 16 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT DISTINCT - 46 + + SUM( 44 ) col0 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-25
SELECT DISTINCT - 46 + + SUM ( 44 ) col0 FROM tab1 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT DISTINCT + COUNT( * ) - 92 * + + 56 AS col2 FROM tab1 AS cor0
----
-5149

skipif mysql # not compatible
query I rowsort label-26
SELECT DISTINCT + COUNT ( * ) - 92 * + + 56 AS col2 FROM tab1 AS cor0
----
-5149

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT - 1 * + MIN( DISTINCT - + col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-30
SELECT - 1 * + MIN ( DISTINCT - + col2 ) FROM tab2
----
58

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-33
SELECT - CAST( NULL AS SIGNED ) AS col0, + 59 FROM tab2 AS cor0
----
NULL
59
NULL
59
NULL
59

skipif mysql # not compatible
query II rowsort label-33
SELECT - CAST ( NULL AS INTEGER ) AS col0, + 59 FROM tab2 AS cor0
----
NULL
59
NULL
59
NULL
59

query I rowsort
SELECT ALL ( - ( + - 99 ) ) AS col1 FROM tab2 AS cor0
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-35
SELECT - - CAST( NULL AS SIGNED ) * 67 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-35
SELECT - - CAST ( NULL AS INTEGER ) * 67 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - - col2 AS col2, col0 AS col1 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT - 84 * - COUNT( * ) FROM tab0 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-37
SELECT - 84 * - COUNT ( * ) FROM tab0 AS cor0
----
252

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > col1 * - col1 * + 54
----

query II rowsort
SELECT 99, col1 * - 83 AS col0 FROM tab1 cor0
----
99
-1162
99
-3901
99
-415

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-41
SELECT - col2 DIV - col2 AS col2 FROM tab0 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-41
SELECT - col2 / - col2 AS col2 FROM tab0 cor0
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-42
SELECT DISTINCT 48 * + + 7 * + + CAST( - 12 AS SIGNED ) AS col0, COUNT( * ) FROM tab2
----
-4032
3

skipif mysql # not compatible
query II rowsort label-42
SELECT DISTINCT 48 * + + 7 * + + CAST ( - 12 AS INTEGER ) AS col0, COUNT ( * ) FROM tab2
----
-4032
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-44
SELECT DISTINCT - MIN( + 43 ) FROM tab0 WHERE + col0 / - col2 + + + col2 IS NOT NULL
----
-43

skipif mysql # not compatible
query I rowsort label-44
SELECT DISTINCT - MIN ( + 43 ) FROM tab0 WHERE + col0 / - col2 + + + col2 IS NOT NULL
----
-43

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

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT + COUNT( * ) * + 76 + - MIN( ALL col2 ) AS col0 FROM tab1 WHERE NOT - col1 * 40 * + col1 - - col0 IS NULL
----
169

skipif mysql # not compatible
query I rowsort label-46
SELECT + COUNT ( * ) * + 76 + - MIN ( ALL col2 ) AS col0 FROM tab1 WHERE NOT - col1 * 40 * + col1 - - col0 IS NULL
----
169

query I rowsort
SELECT DISTINCT - col2 * + 70 FROM tab2
----
-1610
-2800
-4060

query II rowsort
SELECT ALL + col0, col2 AS col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query II rowsort label-49
SELECT DISTINCT - COUNT( - + col1 ), COUNT( col2 ) AS col2 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-49
SELECT DISTINCT - COUNT ( - + col1 ), COUNT ( col2 ) AS col2 FROM tab1 AS cor0
----
-3
3

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 BETWEEN + - col2 AND 64
----

onlyif mysql # DIV for integer division: 
query II rowsort label-52
SELECT ALL col2 DIV - + 4 + - col2 AS col0, 65 col2 FROM tab0
----
-12
65
-123
65
-58
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-52
SELECT ALL col2 / - + 4 + - col2 AS col0, 65 col2 FROM tab0
----
-12
65
-123
65
-58
65

query I rowsort
SELECT DISTINCT + + 32 AS col1 FROM tab0 WHERE + col2 IS NOT NULL
----
32

query I rowsort
SELECT ALL + ( + - col0 ) FROM tab0
----
-15
-87
-97

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

query II rowsort
SELECT - - col0 + + col2 AS col2, - col2 FROM tab0 AS cor0
----
196
-99
62
-47
97
-10

query I rowsort
SELECT ALL + 62 + + col1 + + + 25 + + + 10 * + ( + + col2 ) AS col1 FROM tab1 AS cor0
----
1061
682
814

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + ( - 1 ) <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col0 * + + col1 + - + ( - 12 ) AS col1 FROM tab1 AS cor0
----
-413
-4265
-702

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-60
SELECT * FROM tab1 AS cor0 WHERE + 3 * + 99 < - CAST( - + CAST( + 5 AS SIGNED ) AS SIGNED ) / - 20 * col0
----

skipif mysql # not compatible
query III rowsort label-60
SELECT * FROM tab1 AS cor0 WHERE + 3 * + 99 < - CAST ( - + CAST ( + 5 AS INTEGER ) AS INTEGER ) / - 20 * col0
----

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

skipif mysql # not compatible
query II rowsort label-61
SELECT - + 28 + COUNT ( * ) AS col2, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-25
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT ALL COUNT( * ) col1 FROM tab1 AS cor0 WHERE ( NULL IN ( - ( + 67 ) ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-62
SELECT ALL COUNT ( * ) col1 FROM tab1 AS cor0 WHERE ( NULL IN ( - ( + 67 ) ) )
----
0

query I rowsort
SELECT DISTINCT + col0 * 37 * + 33 AS col2 FROM tab0 WHERE NOT col0 IS NULL
----
106227
118437
18315

onlyif mysql # DIV for integer division: 
query I rowsort label-64
SELECT ALL - col1 DIV + col0 * - + col2 + + - 30 FROM tab1
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-64
SELECT ALL - col1 / + col0 * - + col2 + + - 30 FROM tab1
----
-30
-30
-30

query I rowsort
SELECT - col2 * - - col2 AS col0 FROM tab0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-66
SELECT DISTINCT ( - CAST( + col1 AS SIGNED ) ) - + col1 * col2 FROM tab2
----
-1224
-3157
-3953

skipif mysql # not compatible
query I rowsort label-66
SELECT DISTINCT ( - CAST ( + col1 AS INTEGER ) ) - + col1 * col2 FROM tab2
----
-1224
-3157
-3953

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 * + - col1 col2 FROM tab1
----
-1274
-4277
-455

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 55 + + - col0 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT col2 - - 5 * - ( - + col0 ) NOT BETWEEN 82 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-70
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT col2 - - 5 * - ( - + col0 ) NOT BETWEEN 82 AND NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 * 44 ) <> 99
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 83 - - 18 + col1 - - 14 AS col0 FROM tab2 AS cor0
----
166
182
192

query II rowsort
SELECT DISTINCT ( 99 ), 43 AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
99
43

query II rowsort
SELECT + - col0 AS col1, col0 AS col2 FROM tab2 WHERE + 99 IS NOT NULL
----
-46
46
-64
64
-75
75

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

query I rowsort
SELECT ALL + col0 / - 42 * + 51 * - - 99 FROM tab1 WHERE NULL >= + 29
----

query I rowsort
SELECT DISTINCT - - ( + 94 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
94

query III rowsort
SELECT * FROM tab1 WHERE NOT 31 IS NOT NULL
----

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

query I rowsort
SELECT - - ( - col1 ) AS col2 FROM tab0 cor0 WHERE NOT NULL >= ( NULL )
----

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 55 <> - 65
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-85
SELECT ALL - col0 DIV + 49 + + col2 AS col2 FROM tab0 AS cor0
----
47
9
98

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL - col0 / + 49 + + col2 AS col2 FROM tab0 AS cor0
----
47
9
98

query II rowsort
SELECT - ( 83 ) * - 48 AS col1, + col0 AS col1 FROM tab2
----
3984
46
3984
64
3984
75

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

query I rowsort
SELECT 47 * col0 FROM tab2
----
2162
3008
3525

query I rowsort
SELECT DISTINCT + + 65 FROM tab2 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 70 <= + col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query II rowsort label-91
SELECT 13, + COUNT( * ) AS col0 FROM tab0 AS cor0
----
13
3

skipif mysql # not compatible
query II rowsort label-91
SELECT 13, + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
13
3

onlyif mysql # aggregate syntax: 
query I rowsort label-92
SELECT DISTINCT MAX( 31 ) AS col1 FROM tab1 cor0
----
31

skipif mysql # not compatible
query I rowsort label-92
SELECT DISTINCT MAX ( 31 ) AS col1 FROM tab1 cor0
----
31

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

query I rowsort
SELECT + 60 FROM tab2 WHERE + - 14 * - + col1 * col2 * + + col2 IS NULL
----

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

query I rowsort
SELECT + col1 * + 49 + + - col0 FROM tab1
----
160
2212
635

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT 7 - + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-2

skipif mysql # not compatible
query I rowsort label-98
SELECT 7 - + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-2

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 35 * + col2 <= - + 87
----

onlyif mysql # DIV for integer division: 
query II rowsort label-103
SELECT + col0 DIV + col1, + col0 FROM tab2 AS cor0
----
0
46
0
64
1
75

skipif mysql # not compatible
query II rowsort label-103
SELECT + col0 / + col1, + col0 FROM tab2 AS cor0
----
0
46
0
64
1
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT DISTINCT - SUM( ( + 13 ) ) FROM tab1 AS cor0 WHERE col0 * + + ( - col0 ) * - 66 NOT BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-105
SELECT DISTINCT - SUM ( ( + 13 ) ) FROM tab1 AS cor0 WHERE col0 * + + ( - col0 ) * - 66 NOT BETWEEN NULL AND ( NULL )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 > NULL
----

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

query I rowsort
SELECT col1 - 58 * col1 FROM tab2 AS cor0
----
-2907
-3819
-4389

query I rowsort
SELECT col0 - + 39 + + col1 FROM tab1 AS cor0
----
26
51
99

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT - COUNT( * ) * 76 - - MIN( + 37 ) + + + MIN( ALL + col0 ) FROM tab1
----
-140

skipif mysql # not compatible
query I rowsort label-110
SELECT - COUNT ( * ) * 76 - - MIN ( + 37 ) + + + MIN ( ALL + col0 ) FROM tab1
----
-140

query I rowsort
SELECT ALL - ( - - col2 ) + 19 FROM tab1
----
-40
-49
-77

query I rowsort
SELECT ALL - + col1 AS col2 FROM tab1 WHERE ( + col0 * - 73 * col1 ) BETWEEN ( - col2 * - col2 ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-113
SELECT CAST( NULL AS SIGNED ) / - + 5 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-113
SELECT CAST ( NULL AS INTEGER ) / - + 5 FROM tab2, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT ALL - 43 * col0 * - - col0 AS col2 FROM tab2
----
-176128
-241875
-90988

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

skipif mysql # not compatible
query III rowsort label-115
SELECT * FROM tab1 WHERE - - 87 >= - col2 + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col2 + + 77 AS col2 FROM tab2 AS cor0
----
19
37
54

query I rowsort
SELECT col2 + - 85 + - col2 FROM tab0 AS cor0
----
-85
-85
-85

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

query I rowsort
SELECT ALL - + 89 + - col2 AS col2 FROM tab0 AS cor0
----
-136
-188
-99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-121
SELECT DISTINCT + col2 DIV + - 39 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-121
SELECT DISTINCT + col2 / + - 39 FROM tab2 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-122
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 / + - 84 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-122
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 / + - 84 IS NULL
----
3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - 76 ) col1 FROM tab1
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-125
SELECT DISTINCT MAX( - 73 ) FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-125
SELECT DISTINCT MAX ( - 73 ) FROM tab0
----
-73

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

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

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

query II rowsort
SELECT ALL - col2, 29 AS col1 FROM tab1 AS cor0
----
-59
29
-68
29
-96
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-130
SELECT ALL - + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col0 DIV col2 * + + col0 ) NOT BETWEEN ( 94 ) AND - - 69 * + 66
----
-1

skipif mysql # not compatible
query I rowsort label-130
SELECT ALL - + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col0 / col2 * + + col0 ) NOT BETWEEN ( 94 ) AND - - 69 * + 66
----
-1

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

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

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

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

query I rowsort
SELECT ALL col2 * + 13 AS col1 FROM tab1 cor0
----
1248
767
884

onlyif mysql # DIV for integer division: 
query I rowsort label-134
SELECT - col0 + - 85 + + 15 * col2 DIV + col1 + - + 80 FROM tab1
----
-114
-235
-73

skipif mysql # not compatible
query I rowsort label-134
SELECT - col0 + - 85 + + 15 * col2 / + col1 + - + 80 FROM tab1
----
-114
-235
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT + SUM( DISTINCT + - col2 ) * + - 62 AS col0 FROM tab2
----
7502

skipif mysql # not compatible
query I rowsort label-135
SELECT + SUM ( DISTINCT + - col2 ) * + - 62 AS col0 FROM tab2
----
7502

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT ALL - ( 78 ) + - 59 + + COUNT( * ) * + COUNT( * ) col2 FROM tab2 AS cor0
----
-128

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-136
SELECT ALL - ( 78 ) + - 59 + + COUNT ( * ) * + COUNT ( * ) col2 FROM tab2 AS cor0
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT DISTINCT MIN( DISTINCT + 14 ) FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-137
SELECT DISTINCT MIN ( DISTINCT + 14 ) FROM tab1
----
14

query I rowsort
SELECT - ( + 48 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT COUNT( - - 57 ) + SUM( ALL - 88 ) FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-139
SELECT COUNT ( - - 57 ) + SUM ( ALL - 88 ) FROM tab0
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-140
SELECT 80 + + SUM( DISTINCT ( + col2 ) ) FROM tab0
----
236

skipif mysql # not compatible
query I rowsort label-140
SELECT 80 + + SUM ( DISTINCT ( + col2 ) ) FROM tab0
----
236

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT DISTINCT COUNT( * ) FROM tab1 cor0 WHERE NOT NULL <= + col2 + col2 + + col1
----
0

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL <= + col2 + col2 + + col1
----
0

query I rowsort
SELECT col2 + - - col1 AS col1 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT ALL - col1 * + - col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT DISTINCT col1 * + col1 + + - col0 FROM tab0 AS cor0
----
-96
354
6546

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

query I rowsort
SELECT ALL - - 21 - + - col1 AS col2 FROM tab0 AS cor0
----
102
22
42

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-149
SELECT - + MAX( ALL + + 13 ) AS col2 FROM tab2 WHERE + ( 12 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-149
SELECT - + MAX ( ALL + + 13 ) AS col2 FROM tab2 WHERE + ( 12 ) < NULL
----
NULL

query I rowsort
SELECT ALL - 16 - ( + col2 ) AS col0 FROM tab2
----
-39
-56
-74

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-152
SELECT col0, CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-152
SELECT col0, CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 1 col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT + col1 - - ( + 29 ) * - 96 FROM tab2
----
-2707
-2717
-2733

query I rowsort
SELECT DISTINCT 32 - + 15 + + + col2 AS col2 FROM tab0
----
116
27
64

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT DISTINCT ( + COUNT( * ) ) * 14 * - 62 * 69 * 59 AS col0 FROM tab2
----
-10600884

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT ( + COUNT ( * ) ) * 14 * - 62 * 69 * 59 AS col0 FROM tab2
----
-10600884

query I rowsort
SELECT + col2 - - ( + col1 ) AS col0 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-158
SELECT ALL - CAST( + col1 AS SIGNED ) - - - col0 FROM tab0 AS cor0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-158
SELECT ALL - CAST ( + col1 AS INTEGER ) - - - col0 FROM tab0 AS cor0
----
-108
-96
-98

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-161
SELECT - col2 DIV - - col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-161
SELECT - col2 / - - col2 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col0 * - ( + - 50 ) - col0 + - + col0 + 73 * - col2 AS col1 FROM tab2 AS cor0
----
-4071
-6248
-8134

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

query I rowsort
SELECT DISTINCT + 37 * + col0 AS col1 FROM tab2
----
1702
2368
2775

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN + 24 AND NULL
----

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

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

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

query I rowsort
SELECT ALL - + 62 AS col2 FROM tab1 AS cor0 WHERE col1 > - 36 / 63
----
-62
-62
-62

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-170
SELECT - col0 DIV - + 52 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-170
SELECT - col0 / - + 52 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-171
SELECT + ( - - ( MIN( - 63 ) ) ) col1 FROM tab2
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-171
SELECT + ( - - ( MIN ( - 63 ) ) ) col1 FROM tab2
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT MAX( ALL col2 ) col1 FROM tab0
----
99

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-175
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-175
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT col1 >= NULL
----
0

query I rowsort
SELECT - - col1 + + - 48 * + - col1 * + 4 FROM tab2 AS cor0
----
12931
14861
9843

query I rowsort
SELECT ALL + col1 + + 49 FROM tab1 AS cor0
----
54
63
96

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT ( - + MIN( + ( col2 ) ) ) + - 3 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-178
SELECT ( - + MIN ( + ( col2 ) ) ) + - 3 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT DISTINCT - ( - MIN( DISTINCT - 60 ) ) AS col0 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-179
SELECT DISTINCT - ( - MIN ( DISTINCT - 60 ) ) AS col0 FROM tab2 AS cor0
----
-60

query I rowsort
SELECT DISTINCT + 17 * 29 + - 24 + - 98 + - col2 + 27 * + - col1 FROM tab1 AS cor0
----
-103
-966
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 * + 85 col1, 32 FROM tab2 AS cor0
----
-1955
32
-3400
32
-4930
32

query I rowsort
SELECT - - 21 * + col1 FROM tab0 AS cor0
----
1701
21
441

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-183
SELECT - 13 * + + CAST( - - col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
-299
-520
-754

skipif mysql # not compatible
query I rowsort label-183
SELECT - 13 * + + CAST ( - - col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
-299
-520
-754

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT ALL - MAX( ALL col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-184
SELECT ALL - MAX ( ALL col0 ) AS col0 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT - col2 + - + ( + + col0 ) * + col2 * - 86 AS col1 FROM tab0 AS cor0
----
60583
74810
825759

onlyif mysql # DIV for integer division: 
query II rowsort label-186
SELECT DISTINCT + col2 - + col2 AS col1, 25 DIV - - 55 FROM tab1 AS cor0
----
0
0

skipif mysql # not compatible
query II rowsort label-186
SELECT DISTINCT + col2 - + col2 AS col1, 25 / - - 55 FROM tab1 AS cor0
----
0
0

query II rowsort
SELECT + 69 - + + col0, col1 + ( 48 ) + col0 AS col0 FROM tab0 AS cor0
----
-18
156
-28
146
54
144

onlyif mysql # aggregate syntax: 
query II rowsort label-188
SELECT COUNT( * ) * - 73 - - - MAX( ALL + 43 ) * + 42, - 31 AS col1 FROM tab1
----
-2025
-31

skipif mysql # not compatible
query II rowsort label-188
SELECT COUNT ( * ) * - 73 - - - MAX ( ALL + 43 ) * + 42, - 31 AS col1 FROM tab1
----
-2025
-31

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-190
SELECT ALL COUNT( * ) - + 92 AS col0 FROM tab0
----
-89

skipif mysql # not compatible
query I rowsort label-190
SELECT ALL COUNT ( * ) - + 92 AS col0 FROM tab0
----
-89

query I rowsort
SELECT DISTINCT + 55 + + - col0 + - ( - 85 ) AS col2 FROM tab1
----
49
55
89

query I rowsort
SELECT DISTINCT + col2 - + + 4 AS col2 FROM tab2
----
19
36
54

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT ALL ( + MAX( - + col1 ) ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL ( + MAX ( - + col1 ) ) AS col0 FROM tab1
----
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-194
SELECT COUNT( * ), - ( - - CAST( - COUNT( * ) AS SIGNED ) ) AS col0 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-194
SELECT COUNT ( * ), - ( - - CAST ( - COUNT ( * ) AS INTEGER ) ) AS col0 FROM tab2
----
3
3

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

query I rowsort
SELECT ALL + 53 AS col1 FROM tab1
----
53
53
53

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-199
SELECT - CAST( NULL AS SIGNED ) / - - ( - MIN( DISTINCT + 61 ) ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-199
SELECT - CAST ( NULL AS INTEGER ) / - - ( - MIN ( DISTINCT + 61 ) ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT col0 * - ( + 8 ) * + col1 AS col1 FROM tab0
----
-14616
-776
-9720

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT ALL + 71 * COUNT( * ) FROM tab0
----
213

skipif mysql # not compatible
query I rowsort label-201
SELECT ALL + 71 * COUNT ( * ) FROM tab0
----
213

query I rowsort
SELECT + 88 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * + col1 IS NOT NULL
----

query II rowsort
SELECT + - 49, col0 FROM tab2 AS cor0
----
-49
46
-49
64
-49
75

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-209
SELECT DISTINCT - - col2 DIV col1 + + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-209
SELECT DISTINCT - - col2 / col1 + + col1 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 71
----

query I rowsort
SELECT ALL - + col0 * - ( 3 ) AS col1 FROM tab1 cor0
----
153
255
273

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

query I rowsort
SELECT - 0 + 38 + + ( + 78 ) + - - col2 + - col0 FROM tab0
----
118
148
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + col1 col0 FROM tab2
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 * + - col2 + + col0 col0 FROM tab2
----
-1696
-2477
-966

query I rowsort
SELECT DISTINCT 88 * - 73 * + col1 AS col0 FROM tab1
----
-301928
-32120
-89936

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 13 col1 FROM tab0
----
-3
34
86

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT ALL - 53 * - - MAX( - - col0 ) AS col1 FROM tab2
----
-3975

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL - 53 * - - MAX ( - - col0 ) AS col1 FROM tab2
----
-3975

query I rowsort
SELECT + col1 * + + col1 AS col1 FROM tab0
----
1
441
6561

query I rowsort
SELECT ALL - 30 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

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

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

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

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

query I rowsort
SELECT + 71 + - 97 AS col2 FROM tab0 AS cor0
----
-26
-26
-26

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

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

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

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL + ( MIN ( - col2 ) ) AS col2 FROM tab0 cor0
----
-99

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

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

query I rowsort
SELECT DISTINCT 60 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( 10 * - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT MIN( 0 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-230
SELECT MIN ( 0 ) AS col2 FROM tab0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-233
SELECT COUNT( + 20 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-233
SELECT COUNT ( + 20 ) AS col2 FROM tab1
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-235
SELECT MIN( ALL - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-235
SELECT MIN ( ALL - col1 ) FROM tab0
----
-81

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-237
SELECT + CAST( 4 AS SIGNED ) col2, + col2 * - col2 FROM tab1
----
4
-3481
4
-4624
4
-9216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-237
SELECT + CAST ( 4 AS INTEGER ) col2, + col2 * - col2 FROM tab1
----
4
-3481
4
-4624
4
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT DISTINCT + ( + COUNT( * ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-238
SELECT DISTINCT + ( + COUNT ( * ) ) AS col1 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) col2 FROM tab1 AS cor0
----
-14
-47
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT ( COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-241
SELECT ( COUNT ( * ) ) FROM tab2 AS cor0
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT + + MAX( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-243
SELECT + + MAX ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-244
SELECT DISTINCT SUM( ALL - - col1 ) * - - MAX( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-244
SELECT DISTINCT SUM ( ALL - - col1 ) * - - MAX ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL IS NOT NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-245
SELECT DISTINCT - + ( - col2 ) + + 46 + - + 29 DIV 64 * col2 + - 32 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
110
73
82

skipif mysql # not compatible
query I rowsort label-245
SELECT DISTINCT - + ( - col2 ) + + 46 + - + 29 / 64 * col2 + - 32 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
110
73
82

onlyif mysql # aggregate syntax: 
query I rowsort label-246
SELECT + COUNT( DISTINCT - - 5 ) col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-246
SELECT + COUNT ( DISTINCT - - 5 ) col2 FROM tab1 cor0
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-248
SELECT DISTINCT - 53 AS col1 FROM tab0 AS cor0 WHERE 56 * - CAST( NULL AS SIGNED ) + - col0 >= + - 57
----

skipif mysql # not compatible
query I rowsort label-248
SELECT DISTINCT - 53 AS col1 FROM tab0 AS cor0 WHERE 56 * - CAST ( NULL AS INTEGER ) + - col0 >= + - 57
----

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

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

skipif mysql # not compatible
query I rowsort label-250
SELECT + MIN ( 1 ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT DISTINCT + SUM( ALL col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-251
SELECT DISTINCT + SUM ( ALL col2 ) FROM tab2
----
121

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

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT ALL + + COUNT( * ) * 78 + + 42 AS col2 FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-253
SELECT ALL + + COUNT ( * ) * 78 + + 42 AS col2 FROM tab2 AS cor0
----
276

query II rowsort
SELECT 29 AS col1, col0 * - 51 FROM tab2 AS cor0
----
29
-2346
29
-3264
29
-3825

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

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

query I rowsort
SELECT ALL + - 69 + + + 1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-257
SELECT DISTINCT - col2 * col2 - + CAST( 64 AS SIGNED ) col2 FROM tab2
----
-1664
-3428
-593

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-257
SELECT DISTINCT - col2 * col2 - + CAST ( 64 AS INTEGER ) col2 FROM tab2
----
-1664
-3428
-593

onlyif mysql # aggregate syntax: 
query I rowsort label-258
SELECT 65 * - - MIN( DISTINCT 33 ) * - 7 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-15015

skipif mysql # not compatible
query I rowsort label-258
SELECT 65 * - - MIN ( DISTINCT 33 ) * - 7 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-15015

query I rowsort
SELECT + col1 * - ( + col2 ) + + 46 AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

query II rowsort
SELECT + 49 * col2 AS col1, 35 AS col1 FROM tab0 AS cor0
----
2303
35
4851
35
490
35

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

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT - SUM( + + col1 ) * - SUM( DISTINCT 4 ) FROM tab0 AS cor0
----
412

skipif mysql # not compatible
query I rowsort label-262
SELECT - SUM ( + + col1 ) * - SUM ( DISTINCT 4 ) FROM tab0 AS cor0
----
412

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

query I rowsort
SELECT - - 24 * - - col1 AS col1 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-265
SELECT ALL - CAST( NULL AS DECIMAL ) / + - 50 * - - 32 AS col1, - CAST( NULL AS SIGNED ) col2 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-265
SELECT ALL - CAST ( NULL AS REAL ) / + - 50 * - - 32 AS col1, - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE col1 * col0 >= ( - col0 + - col2 * + + 8 )
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 52 * + ( 53 ) - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-268
SELECT ALL - COUNT( * ) col0 FROM tab0
----
-3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-270
SELECT CAST( + 4 AS SIGNED ) FROM tab2 WHERE NOT NULL <> + 7
----

skipif mysql # not compatible
query I rowsort label-270
SELECT CAST ( + 4 AS INTEGER ) FROM tab2 WHERE NOT NULL <> + 7
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 89 <> NULL
----

query I rowsort
SELECT DISTINCT + ( 65 ) AS col2 FROM tab0
----
65

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT SUM( ALL col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-274
SELECT SUM ( ALL col2 ) FROM tab0
----
156

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

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

skipif mysql # not compatible
query III rowsort label-276
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( CAST ( - col0 AS INTEGER ) AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-277
SELECT + - ( 16 ) DIV + 74 * - 94 + 70 FROM tab0 AS cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-277
SELECT + - ( 16 ) / + 74 * - 94 + 70 FROM tab0 AS cor0
----
70
70
70

query I rowsort
SELECT - + 53 + + + 80 FROM tab0 AS cor0
----
27
27
27

query I rowsort
SELECT + - col2 AS col1 FROM tab1 AS cor0 WHERE - 85 NOT IN ( - col1, + 83 + - + col0 + - ( + 28 ) )
----
-59
-68
-96

query I rowsort
SELECT 52 + - col1 AS col2 FROM tab1
----
38
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-281
SELECT ALL - COUNT( - col2 ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-281
SELECT ALL - COUNT ( - col2 ) col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT MIN( 24 ) AS col1 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-282
SELECT MIN ( 24 ) AS col1 FROM tab0
----
24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-283
SELECT CAST( col0 AS SIGNED ) DIV + col0 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-283
SELECT CAST ( col0 AS INTEGER ) / + col0 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT 8 * + 57 FROM tab0
----
456
456
456

query III rowsort
SELECT * FROM tab1 WHERE - + col1 * - + col2 * - + col1 - - 46 = NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 > NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-289
SELECT - 17 DIV + 39 * - COUNT( * ) - - CAST( + COUNT( ALL 16 ) AS SIGNED ) * + 54 FROM tab2 cor0
----
162

skipif mysql # not compatible
query I rowsort label-289
SELECT - 17 / + 39 * - COUNT ( * ) - - CAST ( + COUNT ( ALL 16 ) AS INTEGER ) * + 54 FROM tab2 cor0
----
162

query I rowsort
SELECT ALL ( - + 93 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

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

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

query I rowsort
SELECT DISTINCT col1 * - 53 * - col1 + - ( - - col2 ) / + 20 * + + col1 * + col0 AS col1 FROM tab0 AS cor0 WHERE ( col2 IS NULL )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 16 col0 FROM tab0 AS cor0 WHERE NOT - col0 IN ( + col1 + col1, col2 )
----
-16
-16
-16

query I rowsort
SELECT - - 81 * + - col1 AS col1 FROM tab0 AS cor0
----
-1701
-6561
-81

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

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

query II rowsort
SELECT 92 * 72, + ( col1 ) * - col1 * + col2 AS col1 FROM tab2
----
6624
-237160
6624
-260362
6624
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT + COUNT( * ) * + 98 col2 FROM tab1
----
294

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-298
SELECT + COUNT ( * ) * + 98 col2 FROM tab1
----
294

query I rowsort
SELECT DISTINCT - 53 * - 73 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT ALL 98 * col2 * + 20 FROM tab2
----
113680
45080
78400

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 > + col1 + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * - + col1 FROM tab1
----
196
2209
25

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

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

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

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

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

query II rowsort
SELECT DISTINCT col2 AS col1, col2 AS col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT IN ( - 17, + 56 * - col1 + - 89 - - col2 )
----

query I rowsort
SELECT DISTINCT - 66 + col2 FROM tab0 AS cor0
----
-19
-56
33

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

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

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

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

query II rowsort
SELECT ALL - ( - col2 ) + - col1, col2 AS col0 FROM tab2 AS cor0
----
-28
23
-37
40
-9
58

query I rowsort
SELECT col2 - col0 + + col0 + 12 * + 79 * 36 * col1 * + 34 AS col1 FROM tab2
----
59177975
77743642
89347144

onlyif mysql # DIV for integer division: 
query I rowsort label-313
SELECT + col2 DIV - + 39 - ( - - col0 ) FROM tab0
----
-16
-87
-99

skipif mysql # not compatible
query I rowsort label-313
SELECT + col2 / - + 39 - ( - - col0 ) FROM tab0
----
-16
-87
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT ALL COUNT( - - col0 ) + COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-314
SELECT ALL COUNT ( - - col0 ) + COUNT ( * ) AS col1 FROM tab0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 47 col1 FROM tab1
----
47

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

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

query I rowsort
SELECT - + ( col1 ) + col2 - 75 * 74 * + col1 FROM tab0 AS cor0
----
-116561
-449584
-5452

query I rowsort
SELECT + + col1 * + - col1 + col2 AS col0 FROM tab0 cor0
----
-431
-6514
98

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 25 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT ALL - COUNT( * ) * COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-322
SELECT ALL - COUNT ( * ) * COUNT ( * ) FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-323
SELECT MAX( - col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-323
SELECT MAX ( - col0 ) FROM tab1
----
-51

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

onlyif mysql # DIV for integer division: 
query I rowsort label-325
SELECT ALL col0 DIV - ( + 1 ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-325
SELECT ALL col0 / - ( + 1 ) FROM tab1 AS cor0
----
-51
-85
-91

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

query I rowsort
SELECT DISTINCT + - col2 * - ( + - col1 ) * - col1 AS col1 FROM tab0 AS cor0
----
308367
4410
99

query II rowsort
SELECT - 3, - 78 AS col2 FROM tab0 AS cor0
----
-3
-78
-3
-78
-3
-78

query I rowsort
SELECT DISTINCT - col2 * + 74 FROM tab0 AS cor0
----
-3478
-7326
-740

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

query I rowsort
SELECT - 99 * + col1 AS col0 FROM tab2 cor0
----
-5049
-6633
-7623

onlyif mysql # aggregate syntax: 
query I rowsort label-332
SELECT DISTINCT - SUM( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-332
SELECT DISTINCT - SUM ( DISTINCT col2 ) AS col1 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-333
SELECT DISTINCT COUNT( * ) * - - COUNT( * ) * - - COUNT( * ) col0 FROM tab2
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-333
SELECT DISTINCT COUNT ( * ) * - - COUNT ( * ) * - - COUNT ( * ) col0 FROM tab2
----
27

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 71 IS NULL
----

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

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

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab1 WHERE ( 35 BETWEEN col1 AND 54 * 99 )
----
-14
-5

query I rowsort
SELECT DISTINCT col0 * + 80 AS col2 FROM tab1
----
4080
6800
7280

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-340
SELECT DISTINCT + CAST( NULL AS SIGNED ), ( - col0 ) - CAST( - + col0 AS SIGNED ) AS col1 FROM tab2
----
NULL
0

skipif mysql # not compatible
query II rowsort label-340
SELECT DISTINCT + CAST ( NULL AS INTEGER ), ( - col0 ) - CAST ( - + col0 AS INTEGER ) AS col1 FROM tab2
----
NULL
0

query I rowsort
SELECT DISTINCT col2 * - col1 + - - 52 + 31 FROM tab0 AS cor0
----
-127
-16
-3724

onlyif mysql # aggregate syntax: 
query I rowsort label-342
SELECT DISTINCT + + 55 + - MAX( + 7 ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-342
SELECT DISTINCT + + 55 + - MAX ( + 7 ) FROM tab2 AS cor0
----
48

query I rowsort
SELECT 58 * col0 FROM tab0
----
5046
5626
870

query I rowsort
SELECT ALL col0 + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
17
23
24

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 89 IS NULL
----

query I rowsort
SELECT DISTINCT - + 52 + - - ( + col0 ) AS col1 FROM tab0 cor0
----
-37
35
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-348
SELECT ALL 55 * + - col2 + CAST( NULL AS SIGNED ) + + col2 + + - col0 AS col0, col0 + 35 + + 67 AS col2 FROM tab0 AS cor0
----
NULL
117
NULL
189
NULL
199

skipif mysql # not compatible
query II rowsort label-348
SELECT ALL 55 * + - col2 + CAST ( NULL AS INTEGER ) + + col2 + + - col0 AS col0, col0 + 35 + + 67 AS col2 FROM tab0 AS cor0
----
NULL
117
NULL
189
NULL
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 col0 FROM tab1 AS cor0 WHERE 92 IS NOT NULL
----
14
47
5

query III rowsort
SELECT * FROM tab0 WHERE NULL = - 67
----

query I rowsort
SELECT - 14 * 71 AS col2 FROM tab2
----
-994
-994
-994

query I rowsort
SELECT ALL ( - 9 ) - col2 FROM tab1
----
-105
-68
-77

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

skipif mysql # not compatible
query III rowsort label-353
SELECT * FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) + + - col2 <> NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-354
SELECT MIN ( DISTINCT + col2 ) col0 FROM tab1
----
59

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

query I rowsort
SELECT DISTINCT + col1 - - - col1 AS col0 FROM tab0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-358
SELECT - COUNT( * ) * - - 69 AS col1 FROM tab1 WHERE + - col1 IS NOT NULL
----
-207

skipif mysql # not compatible
query I rowsort label-358
SELECT - COUNT ( * ) * - - 69 AS col1 FROM tab1 WHERE + - col1 IS NOT NULL
----
-207

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

query II rowsort
SELECT + col2, 20 AS col1 FROM tab2 AS cor0
----
23
20
40
20
58
20

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

query I rowsort
SELECT ALL ( - + col1 ) FROM tab1 AS cor0
----
-14
-47
-5

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

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

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

query I rowsort
SELECT + col0 * 40 FROM tab0 AS cor0
----
3480
3880
600

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

query I rowsort
SELECT + 68 * 79 AS col1 FROM tab0 AS cor0
----
5372
5372
5372

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 col0 FROM tab1 AS cor0 WHERE NOT col1 * 17 BETWEEN 34 * + col2 * + + col2 + - 70 * col2 AND NULL
----
14
47
5

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-370
SELECT col2 DIV - ( col0 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-370
SELECT col2 / - ( col0 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-371
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE NOT - 33 >= + col2 + + col2 * 83
----
3

skipif mysql # not compatible
query I rowsort label-371
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT - 33 >= + col2 + + col2 * 83
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-372
SELECT MIN( + - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-372
SELECT MIN ( + - col1 ) FROM tab0
----
-81

query I rowsort
SELECT ( - - col0 ) * col0 + - 23 AS col2 FROM tab0
----
202
7546
9386

query I rowsort
SELECT DISTINCT - col2 * 14 * + col2 AS col2 FROM tab0
----
-137214
-1400
-30926

query I rowsort
SELECT + 54 * - + 99 AS col2 FROM tab2
----
-5346
-5346
-5346

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

query I rowsort
SELECT DISTINCT - 49 * + - col2 FROM tab0
----
2303
4851
490

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

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

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

query I rowsort
SELECT DISTINCT + col2 + - 81 + + col0 FROM tab1 cor0
----
63
66
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-382
SELECT * FROM tab1 AS cor0 WHERE col1 * 63 / - - ( + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) * - col0 > NULL
----

skipif mysql # not compatible
query III rowsort label-382
SELECT * FROM tab1 AS cor0 WHERE col1 * 63 / - - ( + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) * - col0 > NULL
----

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

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

query I rowsort
SELECT DISTINCT 18 + - col0 FROM tab0 AS cor0
----
-69
-79
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = col1 + - col2
----

query I rowsort
SELECT col0 + - + 32 - + col2 AS col0 FROM tab1
----
-6
-77
-9

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

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

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

query II rowsort
SELECT DISTINCT - col0, - 4 * - 96 * + col1 AS col1 FROM tab1 AS cor0
----
-51
5376
-85
1920
-91
18048

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 98 <= - col2
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-395
SELECT - - 45, - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
45
NULL
45
NULL
45
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-395
SELECT - - 45, - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
45
NULL
45
NULL
45
NULL

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE + col0 <= + 30
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-399
SELECT 60 - - + 25 + - col1 * - CAST( NULL 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-399
SELECT 60 - - + 25 + - col1 * - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + - col0 + + - col0 FROM tab0 AS cor0
----
-184
-293
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT ALL 40 + - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL 40 + - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
37

query I rowsort
SELECT DISTINCT + col2 * col0 - - col0 AS col0 FROM tab2
----
1104
2624
4425

query I rowsort
SELECT ALL - col1 + + + col2 FROM tab2
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-404
SELECT COUNT( * ), - 42 AS col0 FROM tab2, tab1 AS cor0
----
9
-42

skipif mysql # not compatible
query II rowsort label-404
SELECT COUNT ( * ), - 42 AS col0 FROM tab2, tab1 AS cor0
----
9
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 26 - + col0 col0 FROM tab1
----
-25
-59
-65

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col1 ) NOT BETWEEN + 11 AND NULL
----
97
1
99

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

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

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

query I rowsort
SELECT ALL + 17 * col0 + + + col2 FROM tab1 AS cor0
----
1504
1615
963

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * - - 67 col2 FROM tab2 cor0
----
-1541
-2680
-3886

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, + 94 AS col1 FROM tab0 AS cor0
----
10
94
47
94
99
94

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

query I rowsort
SELECT ALL 65 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + - col1 + - 34 + col0 / + col0 + - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col0 + ( + + col0 ) col0 FROM tab0
----
1230
1914
194

query I rowsort
SELECT + col1 + - - 19 FROM tab1
----
24
33
66

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

skipif mysql # not compatible
query I rowsort label-420
SELECT 99 * COUNT ( * ) / + + 82 AS col0 FROM tab0
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-422
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <= ( NULL )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * + + 64 >= + 69 + + 8 * + 34
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-424
SELECT - 3 * + - ( + COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
27

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

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NULL IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT col2 * + - col0 + 91 FROM tab0
----
-614
-779
-9512

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

onlyif mysql # DIV for integer division: 
query I rowsort label-429
SELECT DISTINCT + 0 * - 67 * + + 57 DIV + 96 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-429
SELECT DISTINCT + 0 * - 67 * + + 57 / + 96 FROM tab0 cor0
----
0

query I rowsort
SELECT + + 43 AS col2 FROM tab2 AS cor0 WHERE - 82 * + 0 / + col2 NOT BETWEEN col1 AND + 57
----
43
43
43

query I rowsort
SELECT 22 + + + col0 AS col1 FROM tab1 cor0 WHERE 71 * col1 <> + col0
----
107
113
73

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

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT ALL 36 + ( - COUNT( * ) ) AS col1 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL 36 + ( - COUNT ( * ) ) AS col1 FROM tab1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT ALL COUNT( * ) - + - MAX( - ( + 25 ) ) FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-434
SELECT ALL COUNT ( * ) - + - MAX ( - ( + 25 ) ) FROM tab0
----
-22

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-436
SELECT col2 * - col0 * col1 * - - CAST( NULL AS SIGNED ), - CAST( NULL AS SIGNED ) - - col0 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-436
SELECT col2 * - col0 * col1 * - - CAST ( NULL AS INTEGER ), - CAST ( NULL AS INTEGER ) - - col0 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-437
SELECT CAST( - - SUM( ALL + 67 ) AS SIGNED ) AS col0 FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-437
SELECT CAST ( - - SUM ( ALL + 67 ) AS INTEGER ) AS col0 FROM tab1
----
201

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-438
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1, + 32 col2 FROM tab1
----
NULL
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-438
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1, + 32 col2 FROM tab1
----
NULL
32

onlyif mysql # aggregate syntax: 
query II rowsort label-439
SELECT ALL - COUNT( * ) AS col1, 89 AS col2 FROM tab1
----
-3
89

skipif mysql # not compatible
query II rowsort label-439
SELECT ALL - COUNT ( * ) AS col1, 89 AS col2 FROM tab1
----
-3
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-440
SELECT DISTINCT + CAST( - 19 AS SIGNED ) * - + 39 FROM tab2 AS cor0
----
741

skipif mysql # not compatible
query I rowsort label-440
SELECT DISTINCT + CAST ( - 19 AS INTEGER ) * - + 39 FROM tab2 AS cor0
----
741

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

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

query I rowsort
SELECT DISTINCT - 87 FROM tab1 WHERE ( NULL ) <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * + + 54 = + + col0 / + + 89
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + 13 AS col1 FROM tab0 cor0
----
-13

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

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

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

skipif mysql # not compatible
query II rowsort label-447
SELECT - ( 87 ) AS col1, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-87
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-448
SELECT + SUM( ALL - - col0 ) + ( COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-448
SELECT + SUM ( ALL - - col0 ) + ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT - col1 * + 28 * col2 + + 76 + + col2 FROM tab0 cor0
----
-106473
-2597
-5794

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 72 * - col2 col2, - col2 FROM tab0 AS cor0
----
-3384
-47
-7128
-99
-720
-10

query I rowsort
SELECT DISTINCT + 58 + + + col0 AS col1 FROM tab1 AS cor0
----
109
143
149

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-453
SELECT ALL 27 + + CAST( - - col1 AS SIGNED ) AS col1, col1 col0 FROM tab1
----
32
5
41
14
74
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-453
SELECT ALL 27 + + CAST ( - - col1 AS INTEGER ) AS col1, col1 col0 FROM tab1
----
32
5
41
14
74
47

query I rowsort
SELECT - 80 * - + col0 FROM tab0
----
1200
6960
7760

query II rowsort
SELECT + col2, + col0 AS col1 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT ALL + SUM( ALL 77 ) AS col1 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-456
SELECT ALL + SUM ( ALL 77 ) AS col1 FROM tab2
----
231

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 >= + ( - 44 )
----

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

skipif mysql # not compatible
query I rowsort label-458
SELECT DISTINCT + MAX ( ALL - 29 ) FROM tab0
----
-29

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

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

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

query I rowsort
SELECT ( + col2 ) + - - ( + col2 ) FROM tab0 AS cor0
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-462
SELECT ALL CAST( + col2 AS SIGNED ) * - 36 AS col1 FROM tab1 AS cor0
----
-2124
-2448
-3456

skipif mysql # not compatible
query I rowsort label-462
SELECT ALL CAST ( + col2 AS INTEGER ) * - 36 AS col1 FROM tab1 AS cor0
----
-2124
-2448
-3456

query I rowsort
SELECT DISTINCT col2 * - 59 FROM tab1
----
-3481
-4012
-5664

query I rowsort
SELECT DISTINCT 21 * 64 AS col2 FROM tab1
----
1344

query I rowsort
SELECT 86 * 58 + 56 AS col1 FROM tab2
----
5044
5044
5044

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

query I rowsort
SELECT DISTINCT AVG ( ALL ( + col1 ) ) AS col2 FROM tab2 WHERE NOT col2 IS NOT NULL
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-469
SELECT AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-471
SELECT DISTINCT - col2 DIV col2 col0 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-471
SELECT DISTINCT - col2 / col2 col0 FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-472
SELECT * FROM tab0 WHERE NOT - 29 + CAST( NULL AS SIGNED ) * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-472
SELECT * FROM tab0 WHERE NOT - 29 + CAST ( NULL AS INTEGER ) * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-475
SELECT col0 DIV - 26 AS col0 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-475
SELECT col0 / - 26 AS col0 FROM tab2
----
-1
-2
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-476
SELECT col2 DIV col1 + - col2 AS col2 FROM tab0
----
-10
-47
0

skipif mysql # not compatible
query I rowsort label-476
SELECT col2 / col1 + - col2 AS col2 FROM tab0
----
-10
-47
0

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

skipif mysql # not compatible
query I rowsort label-477
SELECT COUNT ( * ) / + COUNT ( DISTINCT ( + col0 ) ) AS col0 FROM tab1
----
1

query I rowsort
SELECT ( - col2 ) FROM tab2 WHERE NOT - col2 <= - 12
----

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

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

query I rowsort
SELECT DISTINCT - col1 + 94 AS col0 FROM tab0
----
13
73
93

query I rowsort
SELECT ( + 67 ) AS col2 FROM tab0
----
67
67
67

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

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

query I rowsort
SELECT DISTINCT 66 FROM tab2 WHERE NOT - col0 * col2 IS NULL
----
66

query I rowsort
SELECT DISTINCT - 44 AS col2 FROM tab0
----
-44

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( NULL ) < ( NULL )
----

query I rowsort
SELECT + 85 * 35 AS col1 FROM tab2 AS cor0
----
2975
2975
2975

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-489
SELECT DISTINCT - col1 DIV 64 AS col1 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-489
SELECT DISTINCT - col1 / 64 AS col1 FROM tab0 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-490
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT CAST( NULL AS SIGNED ) * ( - 82 ) + 39 * 95 IS NULL
----

skipif mysql # not compatible
query III rowsort label-490
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT CAST ( NULL AS INTEGER ) * ( - 82 ) + 39 * 95 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-492
SELECT DISTINCT + 35 * + CAST( AVG ( + 83 ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0
----
2905

skipif mysql # not compatible
query I rowsort label-492
SELECT DISTINCT + 35 * + CAST ( AVG ( + 83 ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0
----
2905

onlyif mysql # aggregate syntax: 
query I rowsort label-493
SELECT ALL COUNT( * ) * SUM( - col2 ) FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL COUNT ( * ) * SUM ( - col2 ) FROM tab1
----
-669

query I rowsort
SELECT + 85 AS col2 FROM tab1
----
85
85
85

query I rowsort
SELECT DISTINCT ( 40 ) FROM tab0 cor0 WHERE NULL < ( col2 )
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-498
SELECT DISTINCT - + COUNT ( * ) / 72 FROM tab2 AS cor0
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-501
SELECT + SUM( ALL + 99 ) AS col2 FROM tab2 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-501
SELECT + SUM ( ALL + 99 ) AS col2 FROM tab2 AS cor0
----
297

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 <> ( - col2 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-503
SELECT DISTINCT - 56 * 47 + COUNT( * ) FROM tab0 AS cor0
----
-2629

skipif mysql # not compatible
query I rowsort label-503
SELECT DISTINCT - 56 * 47 + COUNT ( * ) FROM tab0 AS cor0
----
-2629

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 16 + ( + col2 ) > 76
----
97
1
99

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

skipif mysql # not compatible
query I rowsort label-506
SELECT 44 + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-509
SELECT ALL CAST( NULL AS DECIMAL ) + col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-509
SELECT ALL CAST ( NULL AS REAL ) + col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT 26 * - col1 + col0 AS col0 FROM tab1
----
-1131
-313
-45

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

query I rowsort
SELECT col1 * ( 83 ) FROM tab2 WHERE ( 6 ) = ( col0 )
----

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

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

query I rowsort
SELECT - col2 * col2 FROM tab1 WHERE col1 > ( + col1 )
----

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

query I rowsort
SELECT + 45 * col0 FROM tab2
----
2070
2880
3375

query I rowsort
SELECT ALL - 96 AS col2 FROM tab1 WHERE NOT 71 * + col0 IS NULL
----
-96
-96
-96

query I rowsort
SELECT DISTINCT - col0 * - 91 + 84 FROM tab1 AS cor0
----
4725
7819
8365

query I rowsort
SELECT - 26 * 60 FROM tab1 WHERE ( + - col1 ) = - col0 * - col0 + col2
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL > 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-524
SELECT 88 + ( COUNT( * ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-524
SELECT 88 + ( COUNT ( * ) ) FROM tab1
----
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col2 - + - col2 ) NOT IN ( 11 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-527
SELECT DISTINCT + COUNT( DISTINCT - 8 ) * - + 26 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-527
SELECT DISTINCT + COUNT ( DISTINCT - 8 ) * - + 26 FROM tab1 AS cor0
----
-26

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-528
SELECT ALL - + col0, - 31 + - CAST( 17 AS SIGNED ) AS col1 FROM tab2 cor0
----
-46
-48
-64
-48
-75
-48

skipif mysql # not compatible
query II rowsort label-528
SELECT ALL - + col0, - 31 + - CAST ( 17 AS INTEGER ) AS col1 FROM tab2 cor0
----
-46
-48
-64
-48
-75
-48

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

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

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

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

query I rowsort
SELECT DISTINCT - 19 + - col2 FROM tab1 AS cor0 WHERE - 43 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col0 - + col2 + + col2 col0 FROM tab0 AS cor0
----
705
870
9603

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + col2 * - 57 + col2
----

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

skipif mysql # not compatible
query I rowsort label-536
SELECT - ( - ( - COUNT ( * ) ) ) AS col1 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-537
SELECT 65 DIV + 15 AS col1 FROM tab0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-537
SELECT 65 / + 15 AS col1 FROM tab0
----
4
4
4

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

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

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

query I rowsort
SELECT DISTINCT col0 + - col0 AS col1 FROM tab1 WHERE ( + - col2 ) NOT BETWEEN ( 25 ) AND ( + ( col0 ) )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col0 * col2 * + col1 col0 FROM tab0
----
1589490
856575
931491

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

skipif mysql # not compatible
query I rowsort label-542
SELECT - COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( + 75 * - col2 + + col2 ) IS NULL
----
0

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

query I rowsort
SELECT + 14 * col0 FROM tab0 AS cor0
----
1218
1358
210

query II rowsort
SELECT ALL ( + col1 ) AS col1, 1 FROM tab2 AS cor0
----
51
1
67
1
77
1

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

query I rowsort
SELECT ALL + + col1 * - ( - col0 ) FROM tab1 WHERE NOT - col0 IS NULL
----
425
4277
714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 + + col1 col2 FROM tab0
----
142
62
82

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 38 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-551
SELECT DISTINCT col0 DIV - col2 - - col1 FROM tab0 AS cor0
----
1
13
81

skipif mysql # not compatible
query I rowsort label-551
SELECT DISTINCT col0 / - col2 - - col1 FROM tab0 AS cor0
----
1
13
81

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

onlyif mysql # DIV for integer division: 
query I rowsort label-553
SELECT - - ( col2 ) DIV - col2 + + 1 - - col1 + + 80 AS col1 FROM tab0 cor0
----
101
161
81

skipif mysql # not compatible
query I rowsort label-553
SELECT - - ( col2 ) / - col2 + + 1 - - col1 + + 80 AS col1 FROM tab0 cor0
----
101
161
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab1 AS cor0 WHERE + 75 IS NOT NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-555
SELECT ALL - - SUM( ALL 40 ) DIV - - COUNT( * ) + COUNT( DISTINCT col1 ) col2 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-555
SELECT ALL - - SUM ( ALL 40 ) / - - COUNT ( * ) + COUNT ( DISTINCT col1 ) col2 FROM tab1 AS cor0
----
43

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 68 + col2 col0 FROM tab0 AS cor0
----
115
167
78

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

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

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

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

query I rowsort
SELECT DISTINCT + ( col1 ) * + + col0 - - col1 + + - 89 AS col2 FROM tab2 AS cor0
----
2308
4916
5003

query I rowsort
SELECT DISTINCT 20 + + + 67 AS col2 FROM tab0
----
87

query I rowsort
SELECT DISTINCT ( + - 92 ) * + 65 FROM tab2
----
-5980

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

onlyif mysql # DIV for integer division: 
query I rowsort label-564
SELECT ALL col0 DIV col0 + col0 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL col0 / col0 + col0 FROM tab2
----
47
65
76

onlyif mysql # DIV for integer division: 
query I rowsort label-565
SELECT DISTINCT ( - col1 ) DIV + 77 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-565
SELECT DISTINCT ( - col1 ) / + 77 AS col2 FROM tab1
----
0

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

skipif mysql # not compatible
query I rowsort label-566
SELECT ALL 74 / - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-24

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

onlyif mysql # aggregate syntax: 
query II rowsort label-568
SELECT DISTINCT - 71 AS col2, COUNT( * ) AS col0 FROM tab0
----
-71
3

skipif mysql # not compatible
query II rowsort label-568
SELECT DISTINCT - 71 AS col2, COUNT ( * ) AS col0 FROM tab0
----
-71
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT - ( - COUNT( * ) ) + - + 88 AS col0 FROM tab1 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-570
SELECT - ( - COUNT ( * ) ) + - + 88 AS col0 FROM tab1 AS cor0
----
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-571
SELECT + + ( + ( col1 ) ) DIV + ( - - col0 ) + - - ( col1 ) AS col1 FROM tab2 AS cor0
----
52
67
78

skipif mysql # not compatible
query I rowsort label-571
SELECT + + ( + ( col1 ) ) / + ( - - col0 ) + - - ( col1 ) AS col1 FROM tab2 AS cor0
----
52
67
78

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * - 39 > + ( + + 11 ) * - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < - col2 - - col2 + + + col1 + 77 * + col0 * + col0 AND NULL < - col1
----

query I rowsort
SELECT - 72 FROM tab0 AS cor0 WHERE NOT 32 + + col1 / - col0 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-577
SELECT + + MIN ( ( 9 ) ) AS col0 FROM tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-578
SELECT - + 64 DIV - col0 AS col2, - 80 DIV + 12 AS col2 FROM tab1 AS cor0
----
0
-6
0
-6
1
-6

skipif mysql # not compatible
query II rowsort label-578
SELECT - + 64 / - col0 AS col2, - 80 / + 12 AS col2 FROM tab1 AS cor0
----
0
-6
0
-6
1
-6

query I rowsort
SELECT - + 12 AS col2 FROM tab2 AS cor0
----
-12
-12
-12

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT MIN( - col1 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-581
SELECT MIN ( - col1 ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT col1 * + + col1 / - - col1 + + - col2 >= ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 83 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-585
SELECT ALL - col1, - col0 DIV - - 49 AS col2 FROM tab0
----
-1
-1
-21
-1
-81
0

skipif mysql # not compatible
query II rowsort label-585
SELECT ALL - col1, - col0 / - - 49 AS col2 FROM tab0
----
-1
-1
-21
-1
-81
0

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-588
SELECT + col0, CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-588
SELECT + col0, CAST ( NULL AS REAL ) AS col1 FROM tab1
----
51
NULL
85
NULL
91
NULL

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

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

query II rowsort
SELECT ALL 98 * - col0, + col1 AS col1 FROM tab2
----
-4508
51
-6272
77
-7350
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-592
SELECT DISTINCT CAST( - - col0 AS SIGNED ) col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-592
SELECT DISTINCT CAST ( - - col0 AS INTEGER ) col2 FROM tab2 AS cor0
----
46
64
75

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

query I rowsort
SELECT + col0 * + - col0 + + col1 + + col0 + - col0 FROM tab1 cor0
----
-2587
-7220
-8234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-595
SELECT COUNT( * ) + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col0 * - col1 >= + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-595
SELECT COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col0 * - col1 >= + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT ALL 15 FROM tab2 AS cor0 WHERE NULL <> - 16
----

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

query II rowsort
SELECT DISTINCT 33 + - col0, col2 FROM tab2 cor0
----
-13
23
-31
40
-42
58

query I rowsort
SELECT DISTINCT col2 + + 23 FROM tab0
----
122
33
70

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 / + 14 IS NOT NULL
----

query I rowsort
SELECT ALL + ( + 56 ) AS col1 FROM tab2
----
56
56
56

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT DISTINCT MIN( ALL + - col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-603
SELECT DISTINCT MIN ( ALL + - col1 ) AS col1 FROM tab1
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT MIN( + - 48 ) * + MIN( col1 ) AS col2 FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-604
SELECT MIN ( + - 48 ) * + MIN ( col1 ) AS col2 FROM tab1
----
-240

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 86 AS col1, + col0 col2 FROM tab1
----
86
51
86
85
86
91

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-609
SELECT - CAST( NULL AS DECIMAL ) - - - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-609
SELECT - CAST ( NULL AS REAL ) - - - col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 96 - col1 AS col2 FROM tab2 AS cor0
----
-147
-163
-173

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-614
SELECT - MAX( ALL + CAST( + col0 AS SIGNED ) ) AS col1 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-614
SELECT - MAX ( ALL + CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 * - col0 col1 FROM tab1
----
-3570
-5950
-6370

query I rowsort
SELECT - 66 * col0 + + col0 FROM tab0 AS cor0
----
-5655
-6305
-975

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( col0 - + 94 ) > + col0 / - + col0
----
2

skipif mysql # not compatible
query I rowsort label-618
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( col0 - + 94 ) > + col0 / - + col0
----
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-619
SELECT ALL - CAST( + MIN( + 69 ) AS SIGNED ) FROM tab2 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL - CAST ( + MIN ( + 69 ) AS INTEGER ) FROM tab2 cor0
----
-69

query I rowsort
SELECT + ( - + col0 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

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

query I rowsort
SELECT DISTINCT ( - - col1 ) AS col2 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-623
SELECT ALL + COUNT( - 93 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-623
SELECT ALL + COUNT ( - 93 ) AS col1 FROM tab2
----
3

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

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

query II rowsort
SELECT + 70 * - + 73 AS col0, - 25 FROM tab0
----
-5110
-25
-5110
-25
-5110
-25

query I rowsort
SELECT DISTINCT + col1 * - - 32 FROM tab1
----
1504
160
448

query I rowsort
SELECT DISTINCT - ( + + col2 ) FROM tab0
----
-10
-47
-99

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

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

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

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

query I rowsort
SELECT ( - col0 ) FROM tab2 AS cor0 WHERE - col0 * - - 49 NOT BETWEEN - ( 72 ) AND ( - col0 * - col2 * + - 31 + + + 83 * - + 18 )
----
-46
-64
-75

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 > - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

query I rowsort
SELECT col2 * + + col0 * - + col0 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-249696
-426275
-563108

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT ALL - SUM( + + col2 ) + - + 80 - - COUNT( * ) + - + MAX( + 85 ) AS col2 FROM tab0 AS cor0
----
-318

skipif mysql # not compatible
query I rowsort label-638
SELECT ALL - SUM ( + + col2 ) + - + 80 - - COUNT ( * ) + - + MAX ( + 85 ) AS col2 FROM tab0 AS cor0
----
-318

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

skipif mysql # not compatible
query I rowsort label-639
SELECT DISTINCT - - 65 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-640
SELECT ALL - ( col2 ) DIV - 75 + - col1 + - col1 AS col2 FROM tab2 AS cor0
----
-102
-134
-154

skipif mysql # not compatible
query I rowsort label-640
SELECT ALL - ( col2 ) / - 75 + - col1 + - col1 AS col2 FROM tab2 AS cor0
----
-102
-134
-154

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 45 + - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-642
SELECT 73 DIV - col1 + - 74 FROM tab0
----
-147
-74
-77

skipif mysql # not compatible
query I rowsort label-642
SELECT 73 / - col1 + - 74 FROM tab0
----
-147
-74
-77

query I rowsort
SELECT ALL col2 - col0 * 65 AS col1 FROM tab0
----
-5645
-6206
-928

query I rowsort
SELECT DISTINCT + 40 + + col2 - + + col0 AS col2 FROM tab1
----
14
17
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - - col0 col0 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - ( - 67 ) + + col0 <= ( 23 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ALL + - 89 - col2 + - - 0 AS col0 FROM tab1 WHERE NOT - 36 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT DISTINCT COUNT( * ) * 51 AS col1 FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-649
SELECT DISTINCT COUNT ( * ) * 51 AS col1 FROM tab0 AS cor0
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-650
SELECT DISTINCT CAST( + + col1 AS SIGNED ) + - 39 FROM tab2 AS cor0
----
12
28
38

skipif mysql # not compatible
query I rowsort label-650
SELECT DISTINCT CAST ( + + col1 AS INTEGER ) + - 39 FROM tab2 AS cor0
----
12
28
38

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-651
SELECT col1 * + - col1 AS col1, CAST( - 23 AS SIGNED ) FROM tab1 AS cor0
----
-196
-23
-2209
-23
-25
-23

skipif mysql # not compatible
query II rowsort label-651
SELECT col1 * + - col1 AS col1, CAST ( - 23 AS INTEGER ) FROM tab1 AS cor0
----
-196
-23
-2209
-23
-25
-23

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-653
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-653
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-654
SELECT col2 * col0 AS col0, CAST( + - col1 AS SIGNED ) * - 78 col2 FROM tab2 AS cor0
----
1058
3978
2560
6006
4350
5226

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-654
SELECT col2 * col0 AS col0, CAST ( + - col1 AS INTEGER ) * - 78 col2 FROM tab2 AS cor0
----
1058
3978
2560
6006
4350
5226

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-655
SELECT ALL 95 DIV 87 * - COUNT( * ) + + 75 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
66

skipif mysql # not compatible
query I rowsort label-655
SELECT ALL 95 / 87 * - COUNT ( * ) + + 75 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT DISTINCT - ( + COUNT( DISTINCT + - col2 ) ) * + - 85 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-657
SELECT DISTINCT - ( + COUNT ( DISTINCT + - col2 ) ) * + - 85 FROM tab0
----
255

query I rowsort
SELECT - AVG ( + 23 ) AS col2 FROM tab2 cor0 WHERE - col2 IS NULL OR NULL = NULL
----
NULL

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

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

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

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

query I rowsort
SELECT 43 + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
101
66
83

onlyif mysql # aggregate syntax: 
query I rowsort label-663
SELECT ALL - SUM( + + 56 ) AS col1 FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-663
SELECT ALL - SUM ( + + 56 ) AS col1 FROM tab1 AS cor0
----
-168

query I rowsort
SELECT DISTINCT 99 + - - col2 FROM tab1
----
158
167
195

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-668
SELECT col1 + col2 + - CAST( + 32 AS SIGNED ), + col0 AS col0 FROM tab2
----
42
46
85
64
93
75

skipif mysql # not compatible
query II rowsort label-668
SELECT col1 + col2 + - CAST ( + 32 AS INTEGER ), + col0 AS col0 FROM tab2
----
42
46
85
64
93
75

query I rowsort
SELECT DISTINCT 85 * - col0 FROM tab1
----
-4335
-7225
-7735

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

query I rowsort
SELECT 26 * + 93 FROM tab2
----
2418
2418
2418

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

skipif mysql # not compatible
query I rowsort label-672
SELECT DISTINCT ( - MAX ( - + col0 ) ) FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-673
SELECT ALL + SUM( ALL 82 ), COUNT( * ) AS col0 FROM tab0
----
246
3

skipif mysql # not compatible
query II rowsort label-673
SELECT ALL + SUM ( ALL 82 ), COUNT ( * ) AS col0 FROM tab0
----
246
3

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

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

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

query I rowsort
SELECT DISTINCT + col2 / - 78 + - 67 / col2 FROM tab2 AS cor0 WHERE - col2 - + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 20 col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
20

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

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

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

query I rowsort
SELECT DISTINCT 5 * col1 AS col2 FROM tab1
----
235
25
70

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 16 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

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

query II rowsort
SELECT + + 50 + + 43 AS col0, col0 AS col2 FROM tab2 AS cor0
----
93
46
93
64
93
75

query I rowsort
SELECT - - 99 AS col0 FROM tab0 cor0
----
99
99
99

onlyif mysql # DIV for integer division: 
query I rowsort label-686
SELECT ALL + col1 + col1 DIV 34 FROM tab1 cor0
----
14
48
5

skipif mysql # not compatible
query I rowsort label-686
SELECT ALL + col1 + col1 / 34 FROM tab1 cor0
----
14
48
5

query I rowsort
SELECT DISTINCT 73 + 7 * + - col1 AS col1 FROM tab0 AS cor0
----
-494
-74
66

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-689
SELECT DISTINCT + + col1 + - col2 AS col0 FROM tab2 WHERE - + 76 + + - 65 NOT BETWEEN 61 AND + + CAST( - 87 AS SIGNED )
----
28
37
9

skipif mysql # not compatible
query I rowsort label-689
SELECT DISTINCT + + col1 + - col2 AS col0 FROM tab2 WHERE - + 76 + + - 65 NOT BETWEEN 61 AND + + CAST ( - 87 AS INTEGER )
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT COUNT( * ) col1 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-690
SELECT COUNT ( * ) col1 FROM tab1, tab1 AS cor0
----
9

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-692
SELECT ALL + col2 - + - CAST( + col0 AS SIGNED ) * - - col0 + - + 29 FROM tab0
----
243
7550
9479

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL + col2 - + - CAST ( + col0 AS INTEGER ) * - - col0 + - + 29 FROM tab0
----
243
7550
9479

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT - 90 * COUNT( * ) FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-693
SELECT - 90 * COUNT ( * ) FROM tab2
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT DISTINCT MAX( ALL - - col0 ) col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-694
SELECT DISTINCT MAX ( ALL - - col0 ) col0 FROM tab1 AS cor0
----
91

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

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

query I rowsort
SELECT ALL col0 * + + col2 FROM tab0 cor0 WHERE col1 IS NOT NULL
----
705
870
9603

query I rowsort
SELECT ALL 59 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

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

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT DISTINCT - 77 * MIN( + 90 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-6930

skipif mysql # not compatible
query I rowsort label-699
SELECT DISTINCT - 77 * MIN ( + 90 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-6930

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab2 AS cor0 WHERE - ( + col2 ) = 31
----

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

skipif mysql # not compatible
query II rowsort label-701
SELECT - MIN ( - col0 ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
97
3

onlyif mysql # DIV for integer division: 
query I rowsort label-702
SELECT DISTINCT col1 DIV - - 13 + 89 + + + col0 AS col2 FROM tab0 AS cor0
----
110
177
186

skipif mysql # not compatible
query I rowsort label-702
SELECT DISTINCT col1 / - - 13 + 89 + + + col0 AS col2 FROM tab0 AS cor0
----
110
177
186

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

query I rowsort
SELECT + - ( + - 7 ) * - col2 * - + 68 FROM tab2 AS cor0
----
10948
19040
27608

onlyif mysql # DIV for integer division: 
query I rowsort label-705
SELECT col1 * col2 DIV - 35 FROM tab0
----
-108
-2
-6

skipif mysql # not compatible
query I rowsort label-705
SELECT col1 * col2 / - 35 FROM tab0
----
-108
-2
-6

query I rowsort
SELECT ALL - ( col1 ) + + col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 col1 FROM tab0
----
-705
-870
-9603

query II rowsort
SELECT DISTINCT col0 * - col2 * col0, - col1 AS col0 FROM tab0
----
-10575
-81
-75690
-21
-931491
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-709
SELECT ALL + 39 DIV + 30 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-709
SELECT ALL + 39 / + 30 AS col0 FROM tab2
----
1
1
1

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

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

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

query I rowsort
SELECT + col0 + + 93 FROM tab1 cor0
----
144
178
184

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT DISTINCT + 26 * + COUNT( * ) - + 61 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
173

skipif mysql # not compatible
query I rowsort label-713
SELECT DISTINCT + 26 * + COUNT ( * ) - + 61 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
173

onlyif mysql # aggregate syntax: 
query II rowsort label-714
SELECT DISTINCT 49 AS col2, COUNT( * ) AS col2 FROM tab1
----
49
3

skipif mysql # not compatible
query II rowsort label-714
SELECT DISTINCT 49 AS col2, COUNT ( * ) AS col2 FROM tab1
----
49
3

onlyif mysql # aggregate syntax: 
query II rowsort label-715
SELECT ALL - 82 AS col0, COUNT( * ) FROM tab2
----
-82
3

skipif mysql # not compatible
query II rowsort label-715
SELECT ALL - 82 AS col0, COUNT ( * ) FROM tab2
----
-82
3

onlyif mysql # aggregate syntax: 
query I rowsort label-716
SELECT - 76 - + + SUM( + 45 ) FROM tab2 cor0
----
-211

skipif mysql # not compatible
query I rowsort label-716
SELECT - 76 - + + SUM ( + 45 ) FROM tab2 cor0
----
-211

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT + ( + COUNT( * ) ) - - SUM( ALL + col2 ) FROM tab0 cor0
----
159

skipif mysql # not compatible
query I rowsort label-717
SELECT + ( + COUNT ( * ) ) - - SUM ( ALL + col2 ) FROM tab0 cor0
----
159

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

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

query I rowsort
SELECT - + 20 - + ( - 62 ) FROM tab0 AS cor0
----
42
42
42

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + 52 IN ( - - ( + 61 ) * + - 77, + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-722
SELECT DISTINCT - col0 * + + CAST( + + col1 AS SIGNED ) FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-722
SELECT DISTINCT - col0 * + + CAST ( + + col1 AS INTEGER ) FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-723
SELECT + 14 * - MIN( ALL - col0 ) FROM tab2 WHERE NOT - - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-723
SELECT + 14 * - MIN ( ALL - col0 ) FROM tab2 WHERE NOT - - col2 IS NOT NULL
----
NULL

query II rowsort
SELECT ALL col0 * - - col1, 62 AS col2 FROM tab0
----
1215
62
1827
62
97
62

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

query I rowsort
SELECT ALL + - 29 FROM tab1 AS cor0
----
-29
-29
-29

query I rowsort
SELECT 58 + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT ( col0 ) IN ( 76 ) ) )
----
109
125
135

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 93 <= 72 + - + 49
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 92 col0 FROM tab1 cor0
----
1288
4324
460

query I rowsort
SELECT DISTINCT - 34 * + - 5 FROM tab2
----
170

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

query I rowsort
SELECT ALL - + col1 + + 60 FROM tab0 AS cor0
----
-21
39
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-733
SELECT - - col0, + CAST( + 4 AS SIGNED ) * - - 18 * - col0 AS col0 FROM tab2 AS cor0
----
46
-3312
64
-4608
75
-5400

skipif mysql # not compatible
query II rowsort label-733
SELECT - - col0, + CAST ( + 4 AS INTEGER ) * - - 18 * - col0 AS col0 FROM tab2 AS cor0
----
46
-3312
64
-4608
75
-5400

query I rowsort
SELECT DISTINCT 55 + - 4 FROM tab2 AS cor0
----
51

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + 90 < - ( + col0 ) + + col1 * - col1
----
-3

skipif mysql # not compatible
query I rowsort label-737
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT + 90 < - ( + col0 ) + + col1 * - col1
----
-3

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

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

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

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

query II rowsort
SELECT ALL + 11 + + col1, col2 AS col0 FROM tab2
----
62
23
78
58
88
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-742
SELECT ALL 6 DIV - MIN( DISTINCT - col2 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-742
SELECT ALL 6 / - MIN ( DISTINCT - col2 ) AS col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + col2 * + - col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-744
SELECT col0 DIV 22 FROM tab0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-744
SELECT col0 / 22 FROM tab0
----
0
3
4

query I rowsort
SELECT + col1 * - 76 AS col1 FROM tab0
----
-1596
-6156
-76

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

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

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

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

query I rowsort
SELECT DISTINCT col1 + col0 - + + 69 AS col1 FROM tab0 AS cor0
----
27
29
39

query I rowsort
SELECT DISTINCT + 77 - col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----

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

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

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

query II rowsort
SELECT - 65 + + - col2 * - col0 AS col1, + col0 FROM tab1
----
4831
51
4950
85
6123
91

onlyif mysql # aggregate syntax: 
query I rowsort label-753
SELECT DISTINCT + 33 - - COUNT( * ) + + 93 * - - 92 FROM tab2
----
8592

skipif mysql # not compatible
query I rowsort label-753
SELECT DISTINCT + 33 - - COUNT ( * ) + + 93 * - - 92 FROM tab2
----
8592

query I rowsort
SELECT ALL - col0 - - 90 FROM tab2
----
15
26
44

query I rowsort
SELECT + 31 + 77 FROM tab1
----
108
108
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-756
SELECT DISTINCT - 6 - - + MIN( ALL + - CAST( - + 78 AS SIGNED ) ) * + + 48 AS col2 FROM tab1
----
3738

skipif mysql # not compatible
query I rowsort label-756
SELECT DISTINCT - 6 - - + MIN ( ALL + - CAST ( - + 78 AS INTEGER ) ) * + + 48 AS col2 FROM tab1
----
3738

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

query I rowsort
SELECT col0 - + col0 FROM tab0 AS cor0 WHERE ( NOT NULL <> + 3 )
----

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

query II rowsort
SELECT ALL col1, + 8 - + 90 AS col0 FROM tab0 AS cor0
----
1
-82
21
-82
81
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-761
SELECT COUNT( * ) * - 88 FROM tab0 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-761
SELECT COUNT ( * ) * - 88 FROM tab0 AS cor0
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT ( MAX( ALL + + col2 ) ) FROM tab1 WHERE NOT - col1 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-762
SELECT ( MAX ( ALL + + col2 ) ) FROM tab1 WHERE NOT - col1 = NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-763
SELECT ALL COUNT ( DISTINCT + col0 ) FROM tab0
----
3

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

query II rowsort
SELECT col2, col1 * + col1 - + col0 * + col0 * 87 AS col2 FROM tab2
----
23
-181491
40
-350423
58
-484886

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - 52 NOT BETWEEN 34 + ( - 87 ) * + col1 + col2 AND NULL
----

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

query II rowsort
SELECT ALL 49 AS col2, 45 FROM tab2
----
49
45
49
45
49
45

query I rowsort
SELECT ALL + - 71 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-71
-71
-71

query I rowsort
SELECT ALL - - 1 * - 51 FROM tab0 AS cor0
----
-51
-51
-51

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

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

query I rowsort
SELECT - 90 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

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

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

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

query I rowsort
SELECT DISTINCT 33 + ( + col0 ) FROM tab2 AS cor0
----
108
79
97

onlyif mysql # DIV for integer division: 
query I rowsort label-778
SELECT ALL + + col1 + - 16 + + col1 DIV 53 * + col2 * col1 * col0 * + col0 * + 6 FROM tab2 AS cor0
----
131152551
35
75694141

skipif mysql # not compatible
query I rowsort label-778
SELECT ALL + + col1 + - 16 + + col1 / 53 * + col2 * col1 * col0 * + col0 * + 6 FROM tab2 AS cor0
----
131152551
35
75694141

query I rowsort
SELECT ALL - 24 * - - col0 AS col0 FROM tab1 AS cor0
----
-1224
-2040
-2184

query I rowsort
SELECT ( 35 ) AS col2 FROM tab0
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, 20 * col1 + + col2 col1 FROM tab1
----
14
376
47
1008
5
159

query II rowsort
SELECT col1, 42 * - 47 * - col2 AS col2 FROM tab2
----
51
45402
67
114492
77
78960

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 19 col2 FROM tab0
----
-28
-80
9

query II rowsort
SELECT DISTINCT col1, col2 * + 70 + - + ( col2 ) AS col2 FROM tab2
----
51
1587
67
4002
77
2760

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-786
SELECT * FROM tab1 WHERE - CAST( + 56 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-786
SELECT * FROM tab1 WHERE - CAST ( + 56 AS REAL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 32 * + col0 * 44 IS NULL
----

query II rowsort
SELECT DISTINCT ( col2 ) + - 10 AS col1, 52 * 28 * - + col0 + + - 98 * + col1 FROM tab0 AS cor0
----
0
-128730
37
-29778
89
-141330

query I rowsort
SELECT DISTINCT - col2 - + ( - 64 ) - + + col2 - - col2 AS col2 FROM tab2 AS cor0
----
24
41
6

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-791
SELECT ALL - - col1 DIV + 25 - + - col1 col2 FROM tab2 cor0
----
53
69
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-791
SELECT ALL - - col1 / + 25 - + - col1 col2 FROM tab2 cor0
----
53
69
80

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

onlyif mysql # DIV for integer division: 
query I rowsort label-793
SELECT + col1 DIV - col0 - - col2 * - + col0 * + col0 FROM tab2 AS cor0
----
-163841
-326250
-48669

skipif mysql # not compatible
query I rowsort label-793
SELECT + col1 / - col0 - - col2 * - + col0 * + col0 FROM tab2 AS cor0
----
-163841
-326250
-48669

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

skipif mysql # not compatible
query I rowsort label-794
SELECT col0 / 52 FROM tab0 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-795
SELECT DISTINCT - + COUNT( * ) * + ( + 66 ) FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-795
SELECT DISTINCT - + COUNT ( * ) * + ( + 66 ) FROM tab2 AS cor0
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-796
SELECT + ( col2 ) DIV + + col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-796
SELECT + ( col2 ) / + + col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-797
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN ( NULL ) AND col2 + 9 + - col2 * ( - - 63 ) + + CAST( NULL AS SIGNED ) + - col1
----

skipif mysql # not compatible
query I rowsort label-797
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN ( NULL ) AND col2 + 9 + - col2 * ( - - 63 ) + + CAST ( NULL AS INTEGER ) + - col1
----

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

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE + col0 IN ( - - 15 )
----

query I rowsort
SELECT 99 FROM tab1 WHERE NOT - + 30 IS NOT NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-803
SELECT * FROM tab1 WHERE NOT - col0 NOT IN ( - 55 - - col0 - 4, col0 / ( + - col2 ) + - col1, col2, + + col0 - + - CAST( + 1 AS SIGNED ), - - 59 )
----

skipif mysql # not compatible
query III rowsort label-803
SELECT * FROM tab1 WHERE NOT - col0 NOT IN ( - 55 - - col0 - 4, col0 / ( + - col2 ) + - col1, col2, + + col0 - + - CAST ( + 1 AS INTEGER ), - - 59 )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-806
SELECT DISTINCT CAST( - + col1 AS SIGNED ) FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-806
SELECT DISTINCT CAST ( - + col1 AS INTEGER ) FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT - SUM( ALL + 90 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 51 >= col1 * + col1 + col2
----
-270

skipif mysql # not compatible
query I rowsort label-807
SELECT - SUM ( ALL + 90 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 51 >= col1 * + col1 + col2
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT COUNT( DISTINCT - - 80 ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-808
SELECT COUNT ( DISTINCT - - 80 ) AS col0 FROM tab0 AS cor0
----
1

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

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

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

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

query I rowsort
SELECT DISTINCT col0 * col2 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
4896
5015
6188

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 * - col1 - - col0 * + col0 / + col2 + col1 - - - col2 + - 49 > NULL
----

query I rowsort
SELECT - 99 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT - 3 + - col1 FROM tab2 AS cor0
----
-54
-70
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-815
SELECT DISTINCT - MIN( CAST( NULL AS SIGNED ) ) FROM tab0 cor0 WHERE NULL BETWEEN + col1 AND col0 + - 97
----
NULL

skipif mysql # not compatible
query I rowsort label-815
SELECT DISTINCT - MIN ( CAST ( NULL AS INTEGER ) ) FROM tab0 cor0 WHERE NULL BETWEEN + col1 AND col0 + - 97
----
NULL

query I rowsort
SELECT DISTINCT - 16 + - 96 AS col2 FROM tab2 AS cor0
----
-112

query I rowsort
SELECT + 12 + + - col0 FROM tab0 AS cor0
----
-3
-75
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 AS cor0 WHERE - 34 BETWEEN - 80 + + col0 AND + col0
----
46

query II rowsort
SELECT ALL + 55 AS col2, col1 * - + col1 FROM tab2 AS cor0
----
55
-2601
55
-4489
55
-5929

query II rowsort
SELECT - 21 + - col2, col2 AS col0 FROM tab1 AS cor0
----
-117
96
-80
59
-89
68

onlyif mysql # aggregate syntax: 
query I rowsort label-821
SELECT ALL + COUNT( * ) + - COUNT( DISTINCT 97 ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL + COUNT ( * ) + - COUNT ( DISTINCT 97 ) FROM tab1 AS cor0
----
2

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT MAX( ALL + 25 ) FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-824
SELECT MAX ( ALL + 25 ) FROM tab1
----
25

query I rowsort
SELECT - + AVG ( ALL + 19 ) AS col1 FROM tab0 WHERE 43 < - + col0 * col2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-826
SELECT - CAST( NULL AS DECIMAL ) / - + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-826
SELECT - CAST ( NULL AS REAL ) / - + col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 93 < + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-828
SELECT ALL col2 * col0 * - + CAST ( + col2 AS INTEGER ) col0 FROM tab0 cor0
----
-33135
-8700
-950697

onlyif mysql # aggregate syntax: 
query I rowsort label-829
SELECT DISTINCT + 3 + + + SUM( ALL + 31 ) + + 50 AS col1 FROM tab1 AS cor0
----
146

skipif mysql # not compatible
query I rowsort label-829
SELECT DISTINCT + 3 + + + SUM ( ALL + 31 ) + + 50 AS col1 FROM tab1 AS cor0
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-830
SELECT ALL COUNT( * ) * - - SUM( ALL + 25 ) FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-830
SELECT ALL COUNT ( * ) * - - SUM ( ALL + 25 ) FROM tab1
----
225

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-833
SELECT + COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
0

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

query I rowsort
SELECT + col2 * - 48 AS col0 FROM tab1 cor0
----
-2832
-3264
-4608

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-836
SELECT ALL + COUNT( * ) DIV 27 col0 FROM tab0 AS cor0
----
0

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-838
SELECT ALL * FROM tab1 cor0 WHERE col2 + + 62 * col0 * - col2 BETWEEN NULL AND + CAST( col2 AS DECIMAL ) * col1
----

skipif mysql # not compatible
query III rowsort label-838
SELECT ALL * FROM tab1 cor0 WHERE col2 + + 62 * col0 * - col2 BETWEEN NULL AND + CAST ( col2 AS REAL ) * col1
----

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 18 <> NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT ALL + MAX( + col0 ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-842
SELECT ALL + MAX ( + col0 ) FROM tab0 cor0
----
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 60 + - 80 * - col0 - + col2 NOT IN ( - - 75 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-844
SELECT COUNT( * ) + - 40 FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-844
SELECT COUNT ( * ) + - 40 FROM tab2
----
-37

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

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

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

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

query I rowsort
SELECT DISTINCT + 39 + - col1 AS col1 FROM tab2 AS cor0
----
-12
-28
-38

query II rowsort
SELECT DISTINCT + + col2 + - - col2 * + col0 * - + 0 * - col2 AS col0, + 52 * - col1 AS col2 FROM tab1 AS cor0
----
59
-260
68
-2444
96
-728

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-851
SELECT CAST( - - col1 AS SIGNED ) - + + col1 * - + col1 + col0 FROM tab2 AS cor0
----
2698
4631
6070

skipif mysql # not compatible
query I rowsort label-851
SELECT CAST ( - - col1 AS INTEGER ) - + + col1 * - + col1 + col0 FROM tab2 AS cor0
----
2698
4631
6070

query I rowsort
SELECT DISTINCT + 30 + col2 AS col2 FROM tab1 AS cor0
----
126
89
98

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT SUM( ALL col1 ) - - + COUNT( * ) FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-853
SELECT SUM ( ALL col1 ) - - + COUNT ( * ) FROM tab0
----
106

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT DISTINCT COUNT( * ) - - ( COUNT( * ) ) * + 13 AS col0 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-854
SELECT DISTINCT COUNT ( * ) - - ( COUNT ( * ) ) * + 13 AS col0 FROM tab0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + col2 * 89 col2 FROM tab0
----
4230
8910
900

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-856
SELECT DISTINCT + ( + - CAST( NULL AS DECIMAL ) ) * + + COUNT( * ) + - MAX( - - 43 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-856
SELECT DISTINCT + ( + - CAST ( NULL AS REAL ) ) * + + COUNT ( * ) + - MAX ( - - 43 ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 - + 59 FROM tab2
----
-13
16
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT DISTINCT COUNT( * ) * + + 2 AS col1 FROM tab1, tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-860
SELECT DISTINCT COUNT ( * ) * + + 2 AS col1 FROM tab1, tab0 AS cor0
----
18

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

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

query I rowsort
SELECT ALL 14 - - - col1 FROM tab1
----
-33
0
9

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT DISTINCT + MAX( ALL - - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT + MAX ( ALL - - col0 ) FROM tab0
----
97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-865
SELECT + col1 + + + col1 - + + col1 DIV col2 AS col0 FROM tab0 AS cor0
----
161
2
40

skipif mysql # not compatible
query I rowsort label-865
SELECT + col1 + + + col1 - + + col1 / col2 AS col0 FROM tab0 AS cor0
----
161
2
40

query I rowsort
SELECT ALL - 80 * + + col2 FROM tab1 AS cor0
----
-4720
-5440
-7680

onlyif mysql # DIV for integer division: 
query I rowsort label-867
SELECT - - 40 DIV - - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-867
SELECT - - 40 / - - col1 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col1 + + 54 AS col0 FROM tab2 AS cor0
----
105
121
131

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

onlyif mysql # aggregate syntax: 
query I rowsort label-870
SELECT ALL - ( + MIN( - col0 ) ) * + + COUNT( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-870
SELECT ALL - ( + MIN ( - col0 ) ) * + + COUNT ( ALL - col0 ) AS col1 FROM tab0 AS cor0
----
291

query I rowsort
SELECT 16 AS col2 FROM tab1 cor0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT MIN( ALL + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-874
SELECT CAST( NULL AS DECIMAL ) * - + 73 + 28 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-874
SELECT CAST ( NULL AS REAL ) * - + 73 + 28 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-875
SELECT - - MIN( + 88 ) * - - 97 * COUNT( * ) + - - 67 AS col2, + 9 AS col0 FROM tab0 AS cor0
----
25675
9

skipif mysql # not compatible
query II rowsort label-875
SELECT - - MIN ( + 88 ) * - - 97 * COUNT ( * ) + - - 67 AS col2, + 9 AS col0 FROM tab0 AS cor0
----
25675
9

onlyif mysql # aggregate syntax: 
query II rowsort label-876
SELECT DISTINCT - MAX( + 53 ) AS col0, COUNT( * ) + - - COUNT( ALL + 99 ) AS col1 FROM tab1 AS cor0
----
-53
6

skipif mysql # not compatible
query II rowsort label-876
SELECT DISTINCT - MAX ( + 53 ) AS col0, COUNT ( * ) + - - COUNT ( ALL + 99 ) AS col1 FROM tab1 AS cor0
----
-53
6

query I rowsort
SELECT ALL - col2 * + col2 + - col2 FROM tab2 AS cor0
----
-1640
-3422
-552

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

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

query II rowsort
SELECT DISTINCT col0 * 11 * + - col0, col2 AS col0 FROM tab1
----
-28611
96
-79475
59
-91091
68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT ALL 87 * - COUNT( * ) FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-881
SELECT ALL 87 * - COUNT ( * ) FROM tab0
----
-261

query I rowsort
SELECT - 88 * + + col2 AS col1 FROM tab2
----
-2024
-3520
-5104

query II rowsort
SELECT - 91, col2 + - col0 AS col0 FROM tab1
----
-91
-23
-91
-26
-91
45

query II rowsort
SELECT 26 AS col1, ( + col0 ) + - - col1 FROM tab0 AS cor0
----
26
108
26
96
26
98

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

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

query I rowsort
SELECT + 28 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT + 38 + - ( - + col0 ) + + + 54 * + + col2 * 58 FROM tab2
----
125382
181769
72120

query I rowsort
SELECT - col0 + - col1 + col0 AS col1 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-889
SELECT - col0 + + col1 + CAST( col1 AS SIGNED ) FROM tab1 AS cor0
----
-23
-75
3

skipif mysql # not compatible
query I rowsort label-889
SELECT - col0 + + col1 + CAST ( col1 AS INTEGER ) FROM tab1 AS cor0
----
-23
-75
3

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

query I rowsort
SELECT col2 * col0 * + col1 + + 98 FROM tab0 AS cor0
----
18368
57203
9701

query I rowsort
SELECT ALL - + 78 FROM tab2 cor0
----
-78
-78
-78

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

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

query I rowsort
SELECT ALL + 55 * + col1 + + + col2 FROM tab0 cor0
----
1165
154
4502

query I rowsort
SELECT DISTINCT + + col0 * - 75 + + col1 AS col0 FROM tab0 AS cor0
----
-1044
-6504
-7274

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

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

query I rowsort
SELECT + col0 AS col2 FROM tab0 WHERE + + 18 BETWEEN NULL AND - - 25 + 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT - ( - - COUNT( * ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-898
SELECT - ( - - COUNT ( * ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT ALL MIN( + - col0 ) col2 FROM tab0 WHERE - - 79 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-899
SELECT ALL MIN ( + - col0 ) col2 FROM tab0 WHERE - - 79 IS NULL
----
NULL

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

query I rowsort
SELECT + - 52 + + + ( - + col0 ) FROM tab2 WHERE NULL IS NULL
----
-116
-127
-98

query I rowsort
SELECT 59 - + col2 FROM tab1
----
-37
-9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-903
SELECT ALL - MIN( + ( - col2 ) ) - 40 AS col0 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-903
SELECT ALL - MIN ( + ( - col2 ) ) - 40 AS col0 FROM tab1
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT - MIN( - + 80 ) FROM tab1
----
80

skipif mysql # not compatible
query I rowsort label-904
SELECT - MIN ( - + 80 ) FROM tab1
----
80

onlyif mysql # aggregate syntax: 
query II rowsort label-905
SELECT ALL SUM( ALL + ( - + 16 ) ) * + COUNT( * ), COUNT( + col1 ) * - 95 AS col2 FROM tab1
----
-144
-285

skipif mysql # not compatible
query II rowsort label-905
SELECT ALL SUM ( ALL + ( - + 16 ) ) * + COUNT ( * ), COUNT ( + col1 ) * - 95 AS col2 FROM tab1
----
-144
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT ( - COUNT( * ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-906
SELECT ( - COUNT ( * ) ) AS col2 FROM tab2
----
-3

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

skipif mysql # not compatible
query I rowsort label-907
SELECT COUNT ( DISTINCT col0 ) FROM tab2
----
3

query II rowsort
SELECT DISTINCT + col0, col1 + + + col2 + 83 FROM tab1 AS cor0
----
51
193
85
147
91
198

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-909
SELECT ALL col1, - col0 FROM tab1 AS cor0 WHERE - col1 * + col2 * - - CAST( - + col1 AS SIGNED ) IS NOT NULL
----
14
-51
47
-91
5
-85

skipif mysql # not compatible
query II rowsort label-909
SELECT ALL col1, - col0 FROM tab1 AS cor0 WHERE - col1 * + col2 * - - CAST ( - + col1 AS INTEGER ) IS NOT NULL
----
14
-51
47
-91
5
-85

query I rowsort
SELECT DISTINCT + + 74 * 42 * + 95 FROM tab1 AS cor0
----
295260

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, + col2 * + col2 + col0 + + - col0 + - 83 * - col1 AS col2 FROM tab2 cor0
----
46
4762
64
7991
75
8925

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

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

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

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

query I rowsort
SELECT ALL + col0 + ( - - col2 ) AS col2 FROM tab0 AS cor0
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + - 58 col2 FROM tab0 cor0
----
-43
29
39

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

query I rowsort
SELECT DISTINCT - - 43 + + col1 + + + 14 + + 28 FROM tab2 AS cor0
----
136
152
162

query I rowsort
SELECT DISTINCT - ( + 10 ) * - + 95 + - 79 + + 13 AS col1 FROM tab2 AS cor0
----
884

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT DISTINCT + - MIN( DISTINCT + col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51

skipif mysql # not compatible
query I rowsort label-921
SELECT DISTINCT + - MIN ( DISTINCT + col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-925
SELECT ALL COUNT ( * ) + COUNT ( * ) + - CAST ( NULL AS REAL ) * - + 98 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-926
SELECT DISTINCT - CAST( NULL AS SIGNED ), + 62 * 84 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL
-15624

skipif mysql # not compatible
query II rowsort label-926
SELECT DISTINCT - CAST ( NULL AS INTEGER ), + 62 * 84 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL
-15624

query I rowsort
SELECT + + ( + - col2 ) - + - col1 - col0 AS col1 FROM tab0 AS cor0
----
-195
-76
19

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-928
SELECT - + CAST( CAST( - 82 AS DECIMAL ) AS SIGNED ) - - col0 FROM tab1 AS cor0
----
133
167
173

skipif mysql # not compatible
query I rowsort label-928
SELECT - + CAST ( CAST ( - 82 AS REAL ) AS INTEGER ) - - col0 FROM tab1 AS cor0
----
133
167
173

query I rowsort
SELECT DISTINCT ( 46 ) + + col1 AS col2 FROM tab0 AS cor0
----
127
47
67

query I rowsort
SELECT ALL + - ( + 96 ) * + 58 * - col2 AS col0 FROM tab1 AS cor0
----
328512
378624
534528

query I rowsort
SELECT ALL + col2 - + - col0 FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( - 82, - col0 )
----

query I rowsort
SELECT 20 + + ( col0 ) AS col0 FROM tab1
----
105
111
71

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

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

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

query I rowsort
SELECT + 58 * + col1 FROM tab1 WHERE NOT + + col0 * col2 IS NULL
----
2726
290
812

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-937
SELECT DISTINCT 16 DIV - - CAST( + col1 AS SIGNED ) col1 FROM tab0
----
0
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-937
SELECT DISTINCT 16 / - - CAST ( + col1 AS INTEGER ) col1 FROM tab0
----
0
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 col2 FROM tab0 AS cor0
----
-11
-11
-11

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-940
SELECT ALL ( + - col2 ) * CAST( + col1 AS SIGNED ) AS col0 FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-940
SELECT ALL ( + - col2 ) * CAST ( + col1 AS INTEGER ) AS col0 FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-941
SELECT DISTINCT - 56 + + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-941
SELECT DISTINCT - 56 + + CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-942
SELECT + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT - ( - 23 ) * col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-942
SELECT + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT - ( - 23 ) * col0 IS NULL
----
NULL
NULL
NULL

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

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

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

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

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

query I rowsort
SELECT DISTINCT - + 21 AS col1 FROM tab0 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT ALL + COUNT( * ) + COUNT( * ) * - COUNT( * ) FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL + COUNT ( * ) + COUNT ( * ) * - COUNT ( * ) FROM tab0 cor0
----
-6

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT DISTINCT + SUM( + col0 ) * - COUNT( * ) FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-951
SELECT DISTINCT + SUM ( + col0 ) * - COUNT ( * ) FROM tab1
----
-681

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

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

query I rowsort
SELECT ALL col2 * - - 62 FROM tab1
----
3658
4216
5952

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-955
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( - - CAST( NULL AS SIGNED ) ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-955
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( - - CAST ( NULL AS INTEGER ) ) ) IS NULL
----

query I rowsort
SELECT + 16 FROM tab0 WHERE - col1 IS NULL
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-958
SELECT DISTINCT + ( COUNT ( * ) ) col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-959
SELECT MIN( ALL - col2 ) * - 8 * + ( + 86 ) * + 53 + + COUNT( * ) FROM tab1
----
3500547

skipif mysql # not compatible
query I rowsort label-959
SELECT MIN ( ALL - col2 ) * - 8 * + ( + 86 ) * + 53 + + COUNT ( * ) FROM tab1
----
3500547

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-962
SELECT DISTINCT 22 * + - COUNT( * ) + MAX( DISTINCT - - col1 ) FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-962
SELECT DISTINCT 22 * + - COUNT ( * ) + MAX ( DISTINCT - - col1 ) FROM tab2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT 57 + COUNT( * ) * + - 74 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-609

skipif mysql # not compatible
query I rowsort label-963
SELECT 57 + COUNT ( * ) * + - 74 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-609

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-964
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-964
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 52 + col2 AS col1, + 51 * - col0 col1 FROM tab0 AS cor0
----
-42
-4437
-5
-765
47
-4947

query I rowsort
SELECT DISTINCT - 94 * 17 * - - col0 FROM tab2 AS cor0
----
-102272
-119850
-73508

query II rowsort
SELECT DISTINCT + col1 * + col0 + ( - 54 ) * - col1, - col2 AS col0 FROM tab1 cor0
----
1470
-96
6815
-68
695
-59

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

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

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

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

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

query I rowsort
SELECT - 71 * col2 FROM tab2 WHERE NULL <= + ( - col0 ) / 56 + col1
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-975
SELECT - col1 + CAST( - col0 + + col2 AS SIGNED ) FROM tab0
----
-49
-98
1

skipif mysql # not compatible
query I rowsort label-975
SELECT - col1 + CAST ( - col0 + + col2 AS INTEGER ) FROM tab0
----
-49
-98
1

query I rowsort
SELECT + 87 + 47 AS col2 FROM tab2
----
134
134
134

onlyif mysql # DIV for integer division: 
query I rowsort label-977
SELECT 76 DIV + ( 11 * col0 ) + col1 AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-977
SELECT 76 / + ( 11 * col0 ) + col1 AS col1 FROM tab1
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 62 ) IN ( - col0 )
----

query I rowsort
SELECT ALL col1 * col2 + col2 AS col1 FROM tab0
----
198
220
3854

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 / + col1 ) < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT + 58 + 88 FROM tab1
----
146

query I rowsort
SELECT ALL - 58 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( col1 ) AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT + MIN( col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-985
SELECT + MIN ( col2 ) FROM tab2
----
23

query I rowsort
SELECT DISTINCT - 82 AS col0 FROM tab1 WHERE NOT col2 > + 3
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-988
SELECT ALL - ( CAST( - 82 AS SIGNED ) ) AS col2 FROM tab1
----
82
82
82

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL - ( CAST ( - 82 AS INTEGER ) ) AS col2 FROM tab1
----
82
82
82

query I rowsort
SELECT DISTINCT - col2 * - col2 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-990
SELECT ALL COUNT( * ) FROM tab0 WHERE - col1 NOT IN ( 19 + 86 / + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-990
SELECT ALL COUNT ( * ) FROM tab0 WHERE - col1 NOT IN ( 19 + 86 / + col0 )
----
3

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

query I rowsort
SELECT - col2 + 55 FROM tab1 cor0
----
-13
-4
-41

query I rowsort
SELECT - col0 + 40 AS col2 FROM tab0 cor0
----
-47
-57
25

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT ALL SUM( - col2 ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-468

skipif mysql # not compatible
query I rowsort label-994
SELECT ALL SUM ( - col2 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT 26 + + 83 * COUNT( * ) FROM tab2 AS cor0
----
275

skipif mysql # not compatible
query I rowsort label-995
SELECT 26 + + 83 * COUNT ( * ) FROM tab2 AS cor0
----
275

query I rowsort
SELECT DISTINCT col0 * - 92 FROM tab0
----
-1380
-8004
-8924

query III rowsort
SELECT * FROM tab1 WHERE 51 / - col2 BETWEEN NULL AND ( col2 )
----

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

query I rowsort
SELECT 11 - col1 FROM tab0 AS cor0
----
-10
-70
10

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

query I rowsort
SELECT - - col0 - - col2 AS col1 FROM tab1 AS cor0
----
144
147
159

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( 71 + col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + ( - col0 ) * - ( + col1 ) AS col2 FROM tab1 AS cor0
----
430
4324
728

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1006
SELECT ALL - COUNT( * ) DIV 38 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1006
SELECT ALL - COUNT ( * ) / 38 AS col2 FROM tab0 AS cor0
----
0

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

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

query I rowsort
SELECT DISTINCT 93 AS col1 FROM tab2 AS cor0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-1009
SELECT 79 DIV + 21 FROM tab0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-1009
SELECT 79 / + 21 FROM tab0
----
3
3
3

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 / col2 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT - col0 + col2 AS col0 FROM tab2 WHERE - 78 NOT IN ( - col1 / + 40 )
----
-17
-23
-24

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

query I rowsort
SELECT - col2 * - 64 FROM tab2
----
1472
2560
3712

query I rowsort
SELECT - - col2 * + 48 * - 43 FROM tab0 AS cor0
----
-204336
-20640
-97008

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

query I rowsort
SELECT DISTINCT col2 + 64 AS col1 FROM tab0 AS cor0 WHERE NOT - 54 IS NULL
----
111
163
74

onlyif mysql # DIV for integer division: 
query I rowsort label-1020
SELECT 73 DIV 43 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1020
SELECT 73 / 43 FROM tab0
----
1
1
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1022
SELECT + - COUNT( ALL - col0 ) + + 1 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1022
SELECT + - COUNT ( ALL - col0 ) + + 1 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

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

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

query I rowsort
SELECT + 86 + 84 AS col0 FROM tab2 AS cor0
----
170
170
170

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT ALL + 82 + - SUM( + col1 ) AS col0 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL + 82 + - SUM ( + col1 ) AS col0 FROM tab0 AS cor0
----
-21

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

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

skipif mysql # not compatible
query I rowsort label-1027
SELECT + COUNT ( * ) + - COUNT ( DISTINCT + - 7 ) AS col1 FROM tab0 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1028
SELECT DISTINCT - + col2 * + 96 + - col1 DIV + col0 FROM tab2 cor0
----
-2209
-3841
-5568

skipif mysql # not compatible
query I rowsort label-1028
SELECT DISTINCT - + col2 * + 96 + - col1 / + col0 FROM tab2 cor0
----
-2209
-3841
-5568

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT ALL ( + MIN( DISTINCT col1 ) ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL ( + MIN ( DISTINCT col1 ) ) FROM tab2
----
51

query I rowsort
SELECT DISTINCT ( - col1 ) * - + col1 * - 75 * + col1 + + col1 AS col1 FROM tab0
----
-39857994
-694554
-74

query III rowsort
SELECT * FROM tab2 WHERE col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1033
SELECT + col1 * - CAST( col1 AS SIGNED ) AS col1 FROM tab0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-1033
SELECT + col1 * - CAST ( col1 AS INTEGER ) AS col1 FROM tab0
----
-1
-441
-6561

query III rowsort
SELECT * FROM tab0 WHERE + - col0 + - col0 NOT BETWEEN ( 70 * + col0 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT MAX( DISTINCT + col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1035
SELECT MAX ( DISTINCT + col0 ) AS col1 FROM tab1
----
91

query I rowsort
SELECT - 86 * + col1 AS col2 FROM tab1
----
-1204
-4042
-430

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 37 IN ( - 12 * + 45 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1038
SELECT DISTINCT - MIN( - ( - + 65 ) ) + + COUNT( * ) * 85 FROM tab1 AS cor0
----
190

skipif mysql # not compatible
query I rowsort label-1038
SELECT DISTINCT - MIN ( - ( - + 65 ) ) + + COUNT ( * ) * 85 FROM tab1 AS cor0
----
190

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1039
SELECT - col0 * - col0 * + - col0 - 53 + - CAST( NULL AS DECIMAL ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1039
SELECT - col0 * - col0 * + - col0 - 53 + - CAST ( NULL AS REAL ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL - col1 * - ( col2 ) + + col1 * col0 + 44 * - col0 FROM tab2 cor0
----
1495
5192
5611

onlyif mysql # aggregate syntax: 
query I rowsort label-1042
SELECT DISTINCT - SUM( col1 ) - 16 + - + 93 + 56 AS col2 FROM tab2 AS cor0
----
-248

skipif mysql # not compatible
query I rowsort label-1042
SELECT DISTINCT - SUM ( col1 ) - 16 + - + 93 + 56 AS col2 FROM tab2 AS cor0
----
-248

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * col0 * + 72 * ( + col0 ) NOT BETWEEN col0 AND 68
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( - - col2 ) + + 98 FROM tab0
----
108
145
197

query I rowsort
SELECT col0 + col2 + col2 * 24 - - - 13 AS col0 FROM tab1
----
1547
1778
2438

query I rowsort
SELECT 87 + 2 FROM tab2
----
89
89
89

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

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

query I rowsort
SELECT DISTINCT - + AVG ( ALL + col0 ) FROM tab0 WHERE NOT NULL NOT IN ( - 92, col2 )
----
NULL

query I rowsort
SELECT ALL + + col1 * col1 * col0 FROM tab0 AS cor0
----
38367
97
98415

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1050
SELECT DISTINCT 55 * + CAST( + + 30 AS SIGNED ) AS col2, col1 AS col2 FROM tab2 AS cor0
----
1650
51
1650
67
1650
77

skipif mysql # not compatible
query II rowsort label-1050
SELECT DISTINCT 55 * + CAST ( + + 30 AS INTEGER ) AS col2, col1 AS col2 FROM tab2 AS cor0
----
1650
51
1650
67
1650
77

query I rowsort
SELECT DISTINCT - AVG ( DISTINCT - - 15 ) FROM tab1 AS cor0 WHERE NOT - col2 * - 91 IS NOT NULL
----
NULL

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

query I rowsort
SELECT - 68 AS col0 FROM tab2 cor0
----
-68
-68
-68

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

query II rowsort
SELECT DISTINCT 30, - 99 AS col0 FROM tab2
----
30
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 col1 FROM tab0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT ( + COUNT( * ) ) * - - ( + 86 ) * + - 33 - + 9 AS col1 FROM tab0
----
-8523

skipif mysql # not compatible
query I rowsort label-1057
SELECT ( + COUNT ( * ) ) * - - ( + 86 ) * + - 33 - + 9 AS col1 FROM tab0
----
-8523

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

skipif mysql # not compatible
query I rowsort label-1058
SELECT - MAX ( DISTINCT - + 25 ) AS col1 FROM tab1
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1059
SELECT + COUNT( ALL - - col2 ) * 21 AS col0 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-1059
SELECT + COUNT ( ALL - - col2 ) * 21 AS col0 FROM tab2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1060
SELECT DISTINCT - 70 AS col0 FROM tab2 WHERE + 41 + - col2 BETWEEN col0 / + CAST( NULL AS SIGNED ) AND ( 3 + 99 * - 47 )
----

skipif mysql # not compatible
query I rowsort label-1060
SELECT DISTINCT - 70 AS col0 FROM tab2 WHERE + 41 + - col2 BETWEEN col0 / + CAST ( NULL AS INTEGER ) AND ( 3 + 99 * - 47 )
----

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

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

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

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

query I rowsort
SELECT ALL + 74 * - 99 * - 89 AS col2 FROM tab1 AS cor0
----
652014
652014
652014

query I rowsort
SELECT ALL - col2 * - 64 * + col0 + + col0 FROM tab0 cor0
----
45135
55767
614689

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col0 FROM tab1 AS cor0 WHERE NOT ( col2 ) IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-1068
SELECT - col0 + + col2 - 24 DIV - + col0 FROM tab1 AS cor0
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-1068
SELECT - col0 + + col2 - 24 / - + col0 FROM tab1 AS cor0
----
-23
-26
45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col2 * - + col1 ) NOT BETWEEN col2 / + - col1 AND col1 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1070
SELECT DISTINCT COUNT( * ) * - 74 AS col2 FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-1070
SELECT DISTINCT COUNT ( * ) * - 74 AS col2 FROM tab2
----
-222

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1071
SELECT DISTINCT + col0 * 56 + - col0 + CAST( - + col1 AS SIGNED ) AS col1 FROM tab2 cor0
----
2479
3443
4058

skipif mysql # not compatible
query I rowsort label-1071
SELECT DISTINCT + col0 * 56 + - col0 + CAST ( - + col1 AS INTEGER ) AS col1 FROM tab2 cor0
----
2479
3443
4058

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE 19 IS NOT NULL
----
23
40
58

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

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

query II rowsort
SELECT ALL + col1 + - + col2, col2 FROM tab2 AS cor0
----
28
23
37
40
9
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1075
SELECT ALL + CAST( col2 AS SIGNED ) * 48 + - - col0 FROM tab0 AS cor0
----
2271
4849
567

skipif mysql # not compatible
query I rowsort label-1075
SELECT ALL + CAST ( col2 AS INTEGER ) * 48 + - - col0 FROM tab0 AS cor0
----
2271
4849
567

query I rowsort
SELECT + 78 - col0 FROM tab1
----
-13
-7
27

query I rowsort
SELECT + 44 + + - col1 AS col0 FROM tab2
----
-23
-33
-7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 ) * - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 + 20 * - 20 * - col0 FROM tab1
----
20386
33995
36353

query I rowsort
SELECT ALL + + 84 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
84
84
84

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1081
SELECT - ( - 67 ) / + col2 FROM tab0 WHERE - CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query I rowsort label-1081
SELECT - ( - 67 ) / + col2 FROM tab0 WHERE - CAST ( NULL AS REAL ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1082
SELECT DISTINCT 88 DIV + - col1 AS col2 FROM tab1 AS cor0
----
-1
-17
-6

skipif mysql # not compatible
query I rowsort label-1082
SELECT DISTINCT 88 / + - col1 AS col2 FROM tab1 AS cor0
----
-1
-17
-6

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1084
SELECT CAST( NULL AS DECIMAL ) * + AVG ( ALL + 47 ) * - 18 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1084
SELECT CAST ( NULL AS REAL ) * + AVG ( ALL + 47 ) * - 18 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1085
SELECT DISTINCT + CAST ( + 90 AS INTEGER ) col0 FROM tab1 AS cor0
----
90

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

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

query I rowsort
SELECT DISTINCT + 57 AS col1 FROM tab1 AS cor0
----
57

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT NULL BETWEEN col0 AND col1
----

query I rowsort
SELECT ALL - 59 * + - col0 FROM tab2
----
2714
3776
4425

query I rowsort
SELECT col2 * + 27 FROM tab0
----
1269
2673
270

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 48 * + ( + - ( - col2 ) ) AS col0 FROM tab1
----
2832
3264
4608

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

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

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

query I rowsort
SELECT DISTINCT + - 52 * + + col0 * 51 + + 56 * - 69 FROM tab0 cor0
----
-234588
-261108
-43644

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1099
SELECT * FROM tab1 WHERE NULL IN ( CAST( + - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1099
SELECT * FROM tab1 WHERE NULL IN ( CAST ( + - col1 AS INTEGER ) )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col2 FROM tab2 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1102
SELECT DISTINCT - - 37 AS col0, MIN( ALL ( - CAST( - + 88 AS SIGNED ) ) ) FROM tab1 AS cor0
----
37
88

skipif mysql # not compatible
query II rowsort label-1102
SELECT DISTINCT - - 37 AS col0, MIN ( ALL ( - CAST ( - + 88 AS INTEGER ) ) ) FROM tab1 AS cor0
----
37
88

query II rowsort
SELECT - - col1 * col0 * + + 21 + - col1 AS col2, 87 * + col0 AS col1 FROM tab1 AS cor0
----
14980
4437
8920
7395
89770
7917

query I rowsort
SELECT ALL - col2 + + - 1 FROM tab2 AS cor0
----
-24
-41
-59

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 IN ( - - col2, + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1108
SELECT DISTINCT + col0 DIV col2 col2, col1 * + ( - col1 ) - + + col2 FROM tab2
----
1
-4547
1
-5969
2
-2624

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1108
SELECT DISTINCT + col0 / col2 col2, col1 * + ( - col1 ) - + + col2 FROM tab2
----
1
-4547
1
-5969
2
-2624

query I rowsort
SELECT ALL + ( col1 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL col2 * + + col2 + col1 FROM tab2
----
1677
3431
580

onlyif mysql # DIV for integer division: 
query I rowsort label-1111
SELECT 24 * + - col1 DIV + col1 FROM tab0
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-1111
SELECT 24 * + - col1 / + col1 FROM tab0
----
-24
-24
-24

query I rowsort
SELECT DISTINCT 58 AS col1 FROM tab0
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1113
SELECT - + 10 + + - COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab2, tab1 AS cor0 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-1113
SELECT - + 10 + + - COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab2, tab1 AS cor0 WHERE NULL IS NULL
----
-9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1115
SELECT ALL - COUNT( * ) + - + 38 FROM tab0 cor0
----
-41

skipif mysql # not compatible
query I rowsort label-1115
SELECT ALL - COUNT ( * ) + - + 38 FROM tab0 cor0
----
-41

query I rowsort
SELECT ALL - 40 * - col1 AS col0 FROM tab1 cor0
----
1880
200
560

query I rowsort
SELECT + col2 * - 44 FROM tab2
----
-1012
-1760
-2552

onlyif mysql # aggregate syntax: 
query II rowsort label-1118
SELECT - 52, - COUNT( * ) AS col0 FROM tab1
----
-52
-3

skipif mysql # not compatible
query II rowsort label-1118
SELECT - 52, - COUNT ( * ) AS col0 FROM tab1
----
-52
-3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1120
SELECT ALL 77 AS col1, ( - COUNT( * ) ) + + 72 FROM tab2 AS cor0
----
77
69

skipif mysql # not compatible
query II rowsort label-1120
SELECT ALL 77 AS col1, ( - COUNT ( * ) ) + + 72 FROM tab2 AS cor0
----
77
69

query II rowsort
SELECT ALL + - col1, 33 AS col2 FROM tab1 cor0
----
-14
33
-47
33
-5
33

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

query I rowsort
SELECT - col1 - + - 25 + col1 FROM tab1
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1124
SELECT - 36 + + - COUNT( * ) FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-1124
SELECT - 36 + + - COUNT ( * ) FROM tab1
----
-39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1125
SELECT ALL CAST( NULL AS SIGNED ) * col1 + - 43 AS col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + 31, col0 / + 86 )
----

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL CAST ( NULL AS INTEGER ) * col1 + - 43 AS col0 FROM tab2 WHERE NOT ( NULL ) NOT IN ( + 31, col0 / + 86 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT COUNT( * ) AS col1 FROM tab1 WHERE + 72 >= col1
----
3

skipif mysql # not compatible
query I rowsort label-1126
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE + 72 >= col1
----
3

query III rowsort
SELECT * FROM tab2 WHERE + 7 < NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NOT + col0 + + col2 <= - 82
----
-10
-47
-99

query I rowsort
SELECT ALL - 16 * + col2 FROM tab2 AS cor0
----
-368
-640
-928

query I rowsort
SELECT - col0 * - 39 + + + col1 AS col1 FROM tab2 AS cor0
----
1845
2573
2992

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) * - col1 col0 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT - + col1 * + 48 * - col1 FROM tab2 AS cor0
----
124848
215472
284592

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1134
SELECT ALL + MAX( ALL 82 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL + MAX ( ALL 82 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

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

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

query I rowsort
SELECT - - 76 AS col0 FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT + - col2 ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + - 89 * - col0 * + 98 ) AND ( col0 )
----
NULL

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

query I rowsort
SELECT 4 AS col0 FROM tab1 WHERE NOT ( NULL ) > ( NULL )
----

query I rowsort
SELECT ALL + col0 * 13 FROM tab2 WHERE ( - col0 * + col0 ) IN ( 60 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1141
SELECT - 35 DIV + 42 + - MIN( ALL col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-1141
SELECT - 35 / + 42 + - MIN ( ALL col1 ) FROM tab2
----
-51

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT + col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1143
SELECT + 93 DIV 43 + + - col2 * col1 FROM tab2
----
-1171
-3078
-3884

skipif mysql # not compatible
query I rowsort label-1143
SELECT + 93 / 43 + + - col2 * col1 FROM tab2
----
-1171
-3078
-3884

query I rowsort
SELECT - 44 + - - 66 AS col0 FROM tab1
----
22
22
22

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1145
SELECT * FROM tab2 WHERE + - col0 * 98 + - + col1 + + + ( + CAST( + + 17 AS DECIMAL ) ) < + col2 * 89 / + col2 + - col0 + col0 / col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1145
SELECT * FROM tab2 WHERE + - col0 * 98 + - + col1 + + + ( + CAST ( + + 17 AS REAL ) ) < + col2 * 89 / + col2 + - col0 + col0 / col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 10 * + 63 * + col2 AS col1 FROM tab2
----
14490
25200
36540

query I rowsort
SELECT - + col0 * + + 8 AS col1 FROM tab0 AS cor0
----
-120
-696
-776

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT ALL + COUNT( * ) * - 65 AS col0 FROM tab0 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-1148
SELECT ALL + COUNT ( * ) * - 65 AS col0 FROM tab0 AS cor0
----
-195

query I rowsort
SELECT + - 38 * col1 AS col1 FROM tab0 AS cor0
----
-3078
-38
-798

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

query I rowsort
SELECT DISTINCT - 76 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, ( - ( + - col2 ) ) col2 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT col2 * - - ( + col2 ) - + ( col0 ) FROM tab0
----
13
2194
9704

onlyif mysql # aggregate syntax: 
query II rowsort label-1154
SELECT + SUM( col2 ) + + 11 + - - 3, 19 * - SUM( DISTINCT - col1 ) AS col1 FROM tab2
----
135
3705

skipif mysql # not compatible
query II rowsort label-1154
SELECT + SUM ( col2 ) + + 11 + - - 3, 19 * - SUM ( DISTINCT - col1 ) AS col1 FROM tab2
----
135
3705

onlyif mysql # aggregate syntax: 
query I rowsort label-1155
SELECT DISTINCT - COUNT( * ) + - 97 - - 10 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-1155
SELECT DISTINCT - COUNT ( * ) + - 97 - - 10 FROM tab0
----
-90

query I rowsort
SELECT - 47 + - + col1 FROM tab0
----
-128
-48
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1157
SELECT - CAST( - COUNT( * ) AS SIGNED ) * 48 * + MIN( CAST( ( + col2 ) AS SIGNED ) ) * 22 - - 29 + - - COUNT( col2 ) + 10 * + 75 AS col2 FROM tab0 AS cor0
----
32462

skipif mysql # not compatible
query I rowsort label-1157
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * 48 * + MIN ( CAST ( ( + col2 ) AS INTEGER ) ) * 22 - - 29 + - - COUNT ( col2 ) + 10 * + 75 AS col2 FROM tab0 AS cor0
----
32462

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 48 col0 FROM tab2 AS cor0
----
-1104
-1920
-2784

query I rowsort
SELECT ALL col0 * 41 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3567
3977
615

query I rowsort
SELECT + 15 * col0 AS col1 FROM tab1
----
1275
1365
765

query I rowsort
SELECT col2 * + - col0 AS col1 FROM tab0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-1165
SELECT 38 DIV - + 78 * - + col0 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1165
SELECT 38 / - + 78 * - + col0 col2 FROM tab2
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-1166
SELECT MAX ( + + 1 ) AS col2 FROM tab2
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1168
SELECT ALL + CAST( + col0 AS SIGNED ), + col0 AS col1 FROM tab2 cor0
----
46
46
64
64
75
75

skipif mysql # not compatible
query II rowsort label-1168
SELECT ALL + CAST ( + col0 AS INTEGER ), + col0 AS col1 FROM tab2 cor0
----
46
46
64
64
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 3 col2 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 80 ) col0 FROM tab2 AS cor0
----
80
80
80

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 99 col2 FROM tab2
----
2277
3960
5742

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT ALL - MAX( DISTINCT - col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-1174
SELECT ALL - MAX ( DISTINCT - col1 ) AS col1 FROM tab1
----
5

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

query II rowsort
SELECT + col0, col0 FROM tab0 AS cor0 WHERE NOT ( ( NULL ) IS NULL )
----

query I rowsort
SELECT DISTINCT + 35 * + col2 FROM tab1 AS cor0
----
2065
2380
3360

query I rowsort
SELECT DISTINCT + 13 FROM tab0 AS cor0 WHERE col0 * col0 BETWEEN - col2 * - 93 AND col2
----

query II rowsort
SELECT ALL + col2 AS col1, col0 * - col0 FROM tab1 cor0
----
59
-7225
68
-8281
96
-2601

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1181
SELECT + 7 col0, COUNT( * ) + + 88 AS col2 FROM tab1 AS cor0
----
7
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1181
SELECT + 7 col0, COUNT ( * ) + + 88 AS col2 FROM tab1 AS cor0
----
7
91

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 66 IS NULL
----

query I rowsort
SELECT ALL + col2 + - col1 + col2 AS col2 FROM tab2
----
-5
3
49

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab1 WHERE col1 - - 3 * + + col1 IS NOT NULL
----
51
85
91

query I rowsort
SELECT ALL + 82 + - 33 FROM tab0
----
49
49
49

query I rowsort
SELECT DISTINCT + col0 + - + 82 FROM tab0 AS cor0
----
-67
15
5

query I rowsort
SELECT - 2 + - 85 AS col1 FROM tab0 AS cor0
----
-87
-87
-87

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 64 col1 FROM tab1
----
-3008
-320
-896

query I rowsort
SELECT - 52 - + ( - col2 ) FROM tab2 AS cor0
----
-12
-29
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 * - - col1 + - + col0 col2 FROM tab1 AS cor0
----
-170
-289
-890

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT + COUNT( - + col0 ) * COUNT( ALL - 3 ) - 54 AS col2 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-1193
SELECT + COUNT ( - + col0 ) * COUNT ( ALL - 3 ) - 54 AS col2 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT ALL col1 * - 85 AS col0 FROM tab0
----
-1785
-6885
-85

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 57 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1196
SELECT CAST( NULL AS DECIMAL ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1196
SELECT CAST ( NULL AS REAL ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1197
SELECT DISTINCT + 82 DIV + COUNT( * ) AS col2 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-1197
SELECT DISTINCT + 82 / + COUNT ( * ) AS col2 FROM tab0
----
27

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1199
SELECT + + col1 / - CAST( + + col0 AS SIGNED ) + 17 FROM tab2 WHERE NOT ( + col0 ) - - col2 NOT IN ( - col1 - + + 46 * + - col0 * + col1, + col2 )
----

skipif mysql # not compatible
query I rowsort label-1199
SELECT + + col1 / - CAST ( + + col0 AS INTEGER ) + 17 FROM tab2 WHERE NOT ( + col0 ) - - col2 NOT IN ( - col1 - + + 46 * + - col0 * + col1, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1200
SELECT + MAX( + col0 ) AS col2 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-1200
SELECT + MAX ( + col0 ) AS col2 FROM tab1 cor0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1201
SELECT + col0 DIV - + 44 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1201
SELECT + col0 / - + 44 AS col2 FROM tab0 AS cor0
----
-1
-2
0

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1206
SELECT SUM( 40 ) AS col1 FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-1206
SELECT SUM ( 40 ) AS col1 FROM tab1 AS cor0
----
120

query I rowsort
SELECT col1 + + 8 * + col0 * + 25 * - col1 FROM tab1 cor0
----
-142786
-84995
-855353

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

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

query I rowsort
SELECT + col0 + + col0 + - - 45 FROM tab1 AS cor0
----
147
215
227

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1211
SELECT ALL + - 62 + - 81 + - CAST( NULL AS SIGNED ) + - - 94 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1211
SELECT ALL + - 62 + - 81 + - CAST ( NULL AS INTEGER ) + - - 94 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col0 AS col1, 62 FROM tab2
----
46
62
64
62
75
62

query II rowsort
SELECT DISTINCT ( - ( - col2 ) ) * - - 91 * col1 + + col1 AS col0, 20 * + - col1 + + 75 AS col2 FROM tab1
----
122318
-205
26850
-25
290883
-865

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1214
SELECT + SUM( ALL + - CAST( NULL AS SIGNED ) ) + - - 36, + 34 AS col2 FROM tab2
----
NULL
34

skipif mysql # not compatible
query II rowsort label-1214
SELECT + SUM ( ALL + - CAST ( NULL AS INTEGER ) ) + - - 36, + 34 AS col2 FROM tab2
----
NULL
34

query I rowsort
SELECT DISTINCT + 57 + - col1 AS col1 FROM tab0
----
-24
36
56

query I rowsort
SELECT DISTINCT 86 FROM tab2 WHERE NULL BETWEEN - 51 AND ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1217
SELECT - COUNT( 11 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1217
SELECT - COUNT ( 11 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT 19 * + col1 FROM tab2 AS cor0 WHERE NULL = ( col2 + + col0 )
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1220
SELECT DISTINCT ( - COUNT( * ) ) + - CAST( NULL AS SIGNED ) * - SUM( + + 57 ) + + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1220
SELECT DISTINCT ( - COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) * - SUM ( + + 57 ) + + COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT - col0 + - + 74 * + col0 FROM tab0
----
-1125
-6525
-7275

query I rowsort
SELECT ALL + col0 + - col0 * + col2 FROM tab2
----
-1012
-2496
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT ALL - COUNT( * ) + - 99 + 67 FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-1223
SELECT ALL - COUNT ( * ) + - 99 + 67 FROM tab2 AS cor0
----
-35

query II rowsort
SELECT ALL + col1 AS col0, col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

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

query I rowsort
SELECT + - col1 * + ( - 84 ) * 53 AS col1 FROM tab2 AS cor0
----
227052
298284
342804

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col0 NOT BETWEEN NULL AND col0
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 * - + col0 col0 FROM tab0
----
1095
6351
7081

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

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

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

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

query I rowsort
SELECT ALL + ( - + 58 ) FROM tab0
----
-58
-58
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, + col1 + - + 27 col0 FROM tab2
----
51
24
67
40
77
50

query I rowsort
SELECT - + 66 AS col2 FROM tab0 AS cor0
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1238
SELECT CAST( NULL AS DECIMAL ), + col0 * - col1 * + + CAST( NULL AS SIGNED ) / + col2 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1238
SELECT CAST ( NULL AS REAL ), + col0 * - col1 * + + CAST ( NULL AS INTEGER ) / + col2 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

query I rowsort
SELECT 73 + - 6 * - col2 AS col1 FROM tab2
----
211
313
421

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 * col1 col0 FROM tab0
----
-1134
-1806
-96

query III rowsort
SELECT * FROM tab0 WHERE NOT 6 / + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1242
SELECT DISTINCT COUNT( * ) AS col1, 34 FROM tab1
----
3
34

skipif mysql # not compatible
query II rowsort label-1242
SELECT DISTINCT COUNT ( * ) AS col1, 34 FROM tab1
----
3
34

query I rowsort
SELECT ALL - 95 * + + col1 FROM tab1 cor0
----
-1330
-4465
-475

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1245
SELECT ALL CAST( NULL AS SIGNED ) AS col0, + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-1245
SELECT ALL CAST ( NULL AS INTEGER ) AS col0, + col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1250
SELECT ALL - 78 DIV - 82 * + ( - + col2 ) + col0 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1250
SELECT ALL - 78 / - 82 * + ( - + col2 ) + col0 FROM tab0 AS cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 57, col1 + 84 col1 FROM tab1 AS cor0
----
57
131
57
89
57
98

query I rowsort
SELECT ALL + col1 * - 43 FROM tab0
----
-3483
-43
-903

query I rowsort
SELECT ALL col1 + - - col1 + + 62 AS col2 FROM tab1
----
156
72
90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 >= NULL
----

query I rowsort
SELECT ALL + 77 - col2 * + ( - + 22 ) FROM tab1 AS cor0
----
1375
1573
2189

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

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

query I rowsort
SELECT col2 * - + col2 * 85 AS col0 FROM tab1 AS cor0
----
-295885
-393040
-783360

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1259
SELECT ALL + SUM( - col2 ) DIV - COUNT( * ) + + - COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL + SUM ( - col2 ) / - COUNT ( * ) + + - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
43

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1263
SELECT + COUNT( * ) col1, + CAST( ( + SUM( col2 ) ) AS SIGNED ) FROM tab0 AS cor0
----
3
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1263
SELECT + COUNT ( * ) col1, + CAST ( ( + SUM ( col2 ) ) AS INTEGER ) FROM tab0 AS cor0
----
3
156

query I rowsort
SELECT ALL + 13 * - col0 FROM tab0 AS cor0
----
-1131
-1261
-195

query I rowsort
SELECT ALL + - 74 AS col1 FROM tab2 AS cor0
----
-74
-74
-74

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT DISTINCT + MAX( col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1267
SELECT DISTINCT + MAX ( col2 ) FROM tab0
----
99

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

query II rowsort
SELECT + col1 * + 78 AS col2, + col1 FROM tab0
----
1638
21
6318
81
78
1

query I rowsort
SELECT ALL 37 * - + 18 * col1 AS col2 FROM tab2
----
-33966
-44622
-51282

query I rowsort
SELECT - 88 AS col1 FROM tab2 cor0
----
-88
-88
-88

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 99 IS NOT NULL
----

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

query I rowsort
SELECT + col1 + + + 72 + + col0 * 48 * 81 AS col2 FROM tab0 AS cor0
----
338349
377209
58473

onlyif mysql # aggregate syntax: 
query I rowsort label-1275
SELECT - ( - ( - 46 ) ) + COUNT( * ) + + COUNT( DISTINCT 39 ) AS col2 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-1275
SELECT - ( - ( - 46 ) ) + COUNT ( * ) + + COUNT ( DISTINCT 39 ) AS col2 FROM tab1 AS cor0
----
-42

query I rowsort
SELECT DISTINCT 10 + - col2 * - 57 FROM tab2 AS cor0
----
1321
2290
3316

onlyif mysql # DIV for integer division: 
query I rowsort label-1277
SELECT + + 58 + + col1 DIV - col2 AS col1 FROM tab2 AS cor0
----
56
57
57

skipif mysql # not compatible
query I rowsort label-1277
SELECT + + 58 + + col1 / - col2 AS col1 FROM tab2 AS cor0
----
56
57
57

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = - 90
----

query I rowsort
SELECT ALL + + 8 * + - col2 - + col0 / col0 FROM tab2 AS cor0 WHERE NOT ( ( NOT ( + 57 + col0 < NULL ) ) )
----

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

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

skipif mysql # not compatible
query I rowsort label-1282
SELECT ALL + + COUNT ( * ) - 79 FROM tab0 WHERE NOT + col2 IS NOT NULL
----
-79

query III rowsort
SELECT * FROM tab1 WHERE NULL < + - col2 * 40 * - col1 / col1 * + - col2
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE - 81 * - ( - + col0 ) + - col0 * - + col2 + - col1 * - col0 >= + col0 / - + col2
----
51
14
96
91
47
68

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1287
SELECT + COUNT( * ), + 1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-1287
SELECT + COUNT ( * ), + 1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1288
SELECT ALL - CAST( - + 61 AS SIGNED ) + + - col0 col1 FROM tab1
----
-24
-30
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1288
SELECT ALL - CAST ( - + 61 AS INTEGER ) + + - col0 col1 FROM tab1
----
-24
-30
10

query II rowsort
SELECT 41, - col0 AS col2 FROM tab0
----
41
-15
41
-87
41
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-1290
SELECT DISTINCT + 44 + - + col2 + + 35 DIV - 22 + + 97 col1 FROM tab2 AS cor0
----
100
117
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1290
SELECT DISTINCT + 44 + - + col2 + + 35 / - 22 + + 97 col1 FROM tab2 AS cor0
----
100
117
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1291
SELECT DISTINCT - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1291
SELECT DISTINCT - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1292
SELECT - - col0 DIV + 26 AS col1, + 92 + col0 FROM tab0 AS cor0
----
0
107
3
179
3
189

skipif mysql # not compatible
query II rowsort label-1292
SELECT - - col0 / + 26 AS col1, + 92 + col0 FROM tab0 AS cor0
----
0
107
3
179
3
189

query I rowsort
SELECT DISTINCT + + 57 * - col1 AS col2 FROM tab0 AS cor0
----
-1197
-4617
-57

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

query I rowsort
SELECT + col2 * - + 58 FROM tab1
----
-3422
-3944
-5568

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT COUNT( * ) * 54 AS col0 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-1296
SELECT COUNT ( * ) * 54 AS col0 FROM tab0
----
162

query II rowsort
SELECT - ( col2 ) * ( + 79 ) * 29 + - col2, - col1 AS col0 FROM tab0 WHERE NOT NULL >= NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1299
SELECT COUNT( ALL + - 77 ) * + - 31 + + - 14 FROM tab0
----
-107

skipif mysql # not compatible
query I rowsort label-1299
SELECT COUNT ( ALL + - 77 ) * + - 31 + + - 14 FROM tab0
----
-107

onlyif mysql # DIV for integer division: 
query II rowsort label-1300
SELECT 51 * col0 DIV + col0 AS col1, 17 - - 91 FROM tab0
----
51
108
51
108
51
108

skipif mysql # not compatible
query II rowsort label-1300
SELECT 51 * col0 / + col0 AS col1, 17 - - 91 FROM tab0
----
51
108
51
108
51
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1301
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - 47 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - 47 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT 69 * - COUNT( * ) FROM tab1
----
-207

skipif mysql # not compatible
query I rowsort label-1302
SELECT 69 * - COUNT ( * ) FROM tab1
----
-207

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < + 58
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1304
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + SUM( + col2 ) col0 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT - + col1 * + col1 + - col0 FROM tab0 AS cor0
----
-528
-6576
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT ( - - 52 ) + - COUNT( * ) FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-1306
SELECT ( - - 52 ) + - COUNT ( * ) FROM tab1
----
49

query III rowsort
SELECT * FROM tab2 WHERE - 12 + - col1 >= + 58
----

query II rowsort
SELECT ALL - col2 AS col2, - col1 FROM tab0 WHERE col0 IS NOT NULL
----
-10
-21
-47
-81
-99
-1

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT col2 <> + + 31 * - - col1 + - col0 + + + 29 / 2
----

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

query I rowsort
SELECT - + 28 * + + 19 FROM tab0 cor0
----
-532
-532
-532

query I rowsort
SELECT ALL ( col0 ) * - 15 AS col0 FROM tab1 AS cor0 WHERE NOT + 35 + + col0 IS NULL
----
-1275
-1365
-765

query I rowsort
SELECT DISTINCT - - 37 FROM tab0 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1314
SELECT + - 72 * COUNT( * ) - + 70 col1 FROM tab0 AS cor0
----
-286

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1314
SELECT + - 72 * COUNT ( * ) - + 70 col1 FROM tab0 AS cor0
----
-286

query I rowsort
SELECT DISTINCT 47 * 86 * - col2 + col0 * - col1 FROM tab2 AS cor0
----
-166608
-239461
-95312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1316
SELECT DISTINCT CAST( - col0 AS SIGNED ) col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1316
SELECT DISTINCT CAST ( - col0 AS INTEGER ) col2 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 NOT BETWEEN NULL AND NULL
----

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

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT 63 * - ( 98 ) IS NOT NULL
----

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

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

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

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 73 * 51 IS NOT NULL
----

query III rowsort
SELECT ALL - col2 AS col1, + col2, ( + col2 ) FROM tab2
----
9 values hashing to 2172c99356713b6904ed86267ad94cda

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - + col0 > col0 * 96 * - col0 )
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 65 <> + 36 * - col0
----

query II rowsort
SELECT + col0, + col1 * + - col1 AS col1 FROM tab1 AS cor0
----
51
-196
85
-25
91
-2209

query I rowsort
SELECT - col2 * - 20 - + - col2 FROM tab2 cor0
----
1218
483
840

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

query I rowsort
SELECT + - 1 / - + col0 + + 60 FROM tab1 AS cor0 WHERE NOT - 43 < + 0
----

query II rowsort
SELECT ALL col1 + col2 AS col0, 61 - - + col0 AS col0 FROM tab0
----
100
158
128
76
31
148

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1336
SELECT ALL COUNT( * ) + - 67 FROM tab1
----
-64

skipif mysql # not compatible
query I rowsort label-1336
SELECT ALL COUNT ( * ) + - 67 FROM tab1
----
-64

query I rowsort
SELECT col0 * + + 42 AS col0 FROM tab0
----
3654
4074
630

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1339
SELECT SUM( + col2 ) + + COUNT( * ) AS col2, 89 col1 FROM tab2 AS cor0
----
124
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1339
SELECT SUM ( + col2 ) + + COUNT ( * ) AS col2, 89 col1 FROM tab2 AS cor0
----
124
89

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

query I rowsort
SELECT ALL - col1 + - 75 FROM tab1 cor0 WHERE 51 IS NOT NULL
----
-122
-80
-89

query I rowsort
SELECT DISTINCT - col2 / - 75 + - 46 AS col0 FROM tab0 AS cor0 WHERE NOT 49 + - col1 * 22 > - col1 * + col1 * + + ( + col1 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1344
SELECT ALL + CAST( col2 AS SIGNED ) * - 3 FROM tab0
----
-141
-297
-30

skipif mysql # not compatible
query I rowsort label-1344
SELECT ALL + CAST ( col2 AS INTEGER ) * - 3 FROM tab0
----
-141
-297
-30

query I rowsort
SELECT ALL ( + 33 ) * - + col0 * + 2 * + col1 FROM tab0
----
-120582
-6402
-80190

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1347
SELECT MAX( ALL + 46 ) FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-1347
SELECT MAX ( ALL + 46 ) FROM tab1
----
46

query I rowsort
SELECT DISTINCT col1 + + col0 * - 97 * col1 FROM tab1
----
-41220
-414822
-69244

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1350
SELECT + COUNT( + + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1350
SELECT + COUNT ( + + col1 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1351
SELECT col0 FROM tab0 WHERE NULL NOT BETWEEN - CAST( NULL AS SIGNED ) AND 57
----

skipif mysql # not compatible
query I rowsort label-1351
SELECT col0 FROM tab0 WHERE NULL NOT BETWEEN - CAST ( NULL AS INTEGER ) AND 57
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1352
SELECT DISTINCT + ( col1 ) DIV col0 FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-1352
SELECT DISTINCT + ( col1 ) / col0 FROM tab0
----
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1353
SELECT ALL + + COUNT( DISTINCT col2 ) * - 68 AS col2 FROM tab2 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-1353
SELECT ALL + + COUNT ( DISTINCT col2 ) * - 68 AS col2 FROM tab2 AS cor0
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-1354
SELECT ALL + + 48 + MAX( + col0 ) AS col1 FROM tab1 cor0 WHERE NULL <= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1354
SELECT ALL + + 48 + MAX ( + col0 ) AS col1 FROM tab1 cor0 WHERE NULL <= + col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1355
SELECT CAST( NULL AS SIGNED ) AS col0, + 72 * - - col2 AS col1 FROM tab2
----
NULL
1656
NULL
2880
NULL
4176

skipif mysql # not compatible
query II rowsort label-1355
SELECT CAST ( NULL AS INTEGER ) AS col0, + 72 * - - col2 AS col1 FROM tab2
----
NULL
1656
NULL
2880
NULL
4176

onlyif mysql # DIV for integer division: 
query I rowsort label-1356
SELECT DISTINCT - col0 DIV - 35 AS col0 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-1356
SELECT DISTINCT - col0 / - 35 AS col0 FROM tab0
----
0
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1357
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1357
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

query II rowsort
SELECT DISTINCT - - col2, 0 * - 46 AS col0 FROM tab2 AS cor0
----
23
0
40
0
58
0

query II rowsort
SELECT DISTINCT - col0, + 57 * col1 + col0 AS col0 FROM tab0 cor0
----
-15
4632
-87
1284
-97
154

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + 67 * 8
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 36 + - col2 + 43 IS NULL AND NOT col0 NOT IN ( col1 * - col2, + 69 + - 86 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1362
SELECT * FROM tab1 cor0 WHERE NOT col2 / - CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-1362
SELECT * FROM tab1 cor0 WHERE NOT col2 / - CAST ( NULL AS INTEGER ) <> NULL
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1365
SELECT DISTINCT + 58 DIV + 39 + COUNT( * ) AS col1 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-1365
SELECT DISTINCT + 58 / + 39 + COUNT ( * ) AS col1 FROM tab2
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 + col2 col2 FROM tab0 cor0
----
-26
-63
26

query I rowsort
SELECT - 77 + - 29 FROM tab2 AS cor0
----
-106
-106
-106

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

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

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

query I rowsort
SELECT + col2 + 83 FROM tab1 cor0
----
142
151
179

onlyif mysql # aggregate syntax: 
query II rowsort label-1371
SELECT DISTINCT - 51 AS col2, COUNT( * ) + - - SUM( ALL + col1 ) * + 49 FROM tab2 AS cor0
----
-51
9558

skipif mysql # not compatible
query II rowsort label-1371
SELECT DISTINCT - 51 AS col2, COUNT ( * ) + - - SUM ( ALL + col1 ) * + 49 FROM tab2 AS cor0
----
-51
9558

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT - COUNT( * ) + + 49 AS col1 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-1372
SELECT - COUNT ( * ) + + 49 AS col1 FROM tab1 AS cor0
----
46

query III rowsort
SELECT * FROM tab2 WHERE - + 47 - 44 * 12 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + col1 * 34, col0 FROM tab2
----
1734
46
2278
75
2618
64

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

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

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

query I rowsort
SELECT + col1 - + - 97 AS col2 FROM tab0 AS cor0
----
118
178
98

query I rowsort
SELECT DISTINCT + col0 * + col0 * 88 FROM tab0 AS cor0
----
19800
666072
827992

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1380
SELECT DISTINCT + + COUNT( * ) - + 8 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1380
SELECT DISTINCT + + COUNT ( * ) - + 8 FROM tab0 AS cor0
----
-5

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1383
SELECT ALL - 69 DIV ( COUNT( * ) ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-1383
SELECT ALL - 69 / ( COUNT ( * ) ) FROM tab1
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1384
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, col2 * + col0 AS col0 FROM tab0
----
NULL
705
NULL
870
NULL
9603

skipif mysql # not compatible
query II rowsort label-1384
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, col2 * + col0 AS col0 FROM tab0
----
NULL
705
NULL
870
NULL
9603

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1389
SELECT - col2 * CAST( + col1 AS SIGNED ) * - col1 + + 95 col2 FROM tab2 AS cor0
----
237255
260457
59918

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1389
SELECT - col2 * CAST ( + col1 AS INTEGER ) * - col1 + + 95 col2 FROM tab2 AS cor0
----
237255
260457
59918

query I rowsort
SELECT + ( + 55 ) AS col0 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT ALL - + col2 * - + 92 AS col2 FROM tab1 AS cor0
----
5428
6256
8832

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

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

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

skipif mysql # not compatible
query I rowsort label-1394
SELECT + - 58 * - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1395
SELECT - 14 DIV + + col2 + 82 + col0 AS col1, + col2 DIV - col2 + col0 * - col0 AS col1 FROM tab1 AS cor0
----
133
-2602
167
-7226
173
-8282

skipif mysql # not compatible
query II rowsort label-1395
SELECT - 14 / + + col2 + 82 + col0 AS col1, + col2 / - col2 + col0 * - col0 AS col1 FROM tab1 AS cor0
----
133
-2602
167
-7226
173
-8282

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT ALL - - 75 * COUNT( * ) FROM tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL - - 75 * COUNT ( * ) FROM tab1 AS cor0
----
225

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN - col1 + - col0 AND 1
----
97
1
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT ALL - MAX( - - col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL - MAX ( - - col0 ) AS col1 FROM tab2 AS cor0
----
-75

query II rowsort
SELECT - 7 + - + col2, - 63 + - col2 * 49 * + - col0 + + + col0 AS col1 FROM tab0 AS cor0
----
-106
470581
-17
42654
-54
34497

query II rowsort
SELECT + col2 + - 71 + + - 53, - 79 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-28
-79
-56
-79
-65
-79

query III rowsort
SELECT ALL * FROM tab2 WHERE - 63 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1403
SELECT - 26 * + CAST( NULL AS SIGNED ) + + 33 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1403
SELECT - 26 * + CAST ( NULL AS INTEGER ) + + 33 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NULL IS NULL
----
14
47
5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1406
SELECT - MIN( ALL + 81 ) AS col2 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-1406
SELECT - MIN ( ALL + 81 ) AS col2 FROM tab2
----
-81

query I rowsort
SELECT DISTINCT col1 * - ( + col0 ) + - - col0 FROM tab0
----
-1200
-1740
0

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

skipif mysql # not compatible
query III rowsort label-1408
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) < NULL
----

query I rowsort
SELECT + col0 * col1 * + - 27 + - col2 FROM tab2 cor0
----
-133096
-135733
-63365

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 < - 38 * + col1 * - + ( col1 ) + - col1 * 62 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1412
SELECT col2 - + col2 DIV col2 + + 91 AS col0 FROM tab0 AS cor0
----
100
137
189

skipif mysql # not compatible
query I rowsort label-1412
SELECT col2 - + col2 / col2 + + 91 AS col0 FROM tab0 AS cor0
----
100
137
189

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT ALL COUNT( * ) + 5 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-1413
SELECT ALL COUNT ( * ) + 5 FROM tab0
----
8

query I rowsort
SELECT - col1 * col0 + - - 79 AS col0 FROM tab0
----
-1136
-1748
-18

query I rowsort
SELECT 6 + - 81 AS col0 FROM tab2
----
-75
-75
-75

query I rowsort
SELECT ALL col1 * - 38 + + 79 FROM tab0 AS cor0
----
-2999
-719
41

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

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT DISTINCT - - SUM( ALL - 30 ) * + 16 * COUNT( - 16 ) FROM tab1 AS cor0
----
-4320

skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT - - SUM ( ALL - 30 ) * + 16 * COUNT ( - 16 ) FROM tab1 AS cor0
----
-4320

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 / + 98 - col1 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1422
SELECT SUM( - - col2 ) * + COUNT( * ) FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-1422
SELECT SUM ( - - col2 ) * + COUNT ( * ) FROM tab1
----
669

query I rowsort
SELECT col2 * + 9 AS col1 FROM tab2
----
207
360
522

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 59 <= - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1425
SELECT - - AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) - 79 col1 FROM tab2, tab0 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1425
SELECT - - AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) - 79 col1 FROM tab2, tab0 AS cor0 WHERE NULL < NULL
----
NULL

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

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

query I rowsort
SELECT DISTINCT + ( - + col0 ) FROM tab0
----
-15
-87
-97

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1429
SELECT 26 - + 20 FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-1429
SELECT 26 - + 20 FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS REAL ) <> NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1431
SELECT - - SUM( + 32 ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1431
SELECT - - SUM ( + 32 ) FROM tab2 AS cor0
----
96

query I rowsort
SELECT ALL + col2 * - 15 FROM tab2 AS cor0
----
-345
-600
-870

query I rowsort
SELECT ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT + 2 + + 25 + col0 + + 85 > + col0 + 22 + - - col1 * + 1 / - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1434
SELECT + col2 DIV 53 * - col1 AS col2 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-1434
SELECT + col2 / 53 * - col1 AS col2 FROM tab1 cor0
----
-14
-47
-5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1436
SELECT DISTINCT - + ( - col0 ) DIV - + col1 + - col2 * col1 col0 FROM tab1 AS cor0
----
-1347
-312
-3197

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1436
SELECT DISTINCT - + ( - col0 ) / - + col1 + - col2 * col1 col0 FROM tab1 AS cor0
----
-1347
-312
-3197

onlyif mysql # DIV for integer division: 
query I rowsort label-1437
SELECT - col1 DIV 87 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1437
SELECT - col1 / 87 AS col2 FROM tab0
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT - col2 + 46 + + col0 AS col1 FROM tab2
----
63
69
70

query I rowsort
SELECT DISTINCT + col0 * - - col1 + - col0 FROM tab2
----
2300
4864
4950

onlyif mysql # DIV for integer division: 
query I rowsort label-1441
SELECT ALL + col0 DIV + 7 FROM tab2 AS cor0
----
10
6
9

skipif mysql # not compatible
query I rowsort label-1441
SELECT ALL + col0 / + 7 FROM tab2 AS cor0
----
10
6
9

query I rowsort
SELECT + 9 + ( col2 ) FROM tab1 AS cor0
----
105
68
77

query I rowsort
SELECT - - col2 + + 29 AS col1 FROM tab0 cor0
----
128
39
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col0 + col0 * + col2 * + ( col2 ) + + 70 + - 96 col0 FROM tab0 AS cor0
----
16243
33334
960080

query I rowsort
SELECT - - 24 * col0 AS col2 FROM tab0 AS cor0
----
2088
2328
360

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1447
SELECT DISTINCT + col1 - col1 - - col1 + - - col0 + + 90 DIV - ( + - col1 ) FROM tab1
----
108
139
71

skipif mysql # not compatible
query I rowsort label-1447
SELECT DISTINCT + col1 - col1 - - col1 + - - col0 + + 90 / - ( + - col1 ) FROM tab1
----
108
139
71

query I rowsort
SELECT ALL + col0 * - + ( col1 ) AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

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

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT SUM ( - 37 ) FROM tab0 AS cor0
----
-111

query I rowsort
SELECT - 32 AS col2 FROM tab1 cor0
----
-32
-32
-32

query I rowsort
SELECT ALL + col1 * - + 24 AS col1 FROM tab0 AS cor0
----
-1944
-24
-504

query I rowsort
SELECT ALL + col0 FROM tab0 cor0 WHERE - 25 >= + + col1 - + ( + col0 ) + - col1 * + - col1 + + 12 * col0
----

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

query I rowsort
SELECT - col0 * 63 * - - col2 + - 50 FROM tab0 cor0
----
-44465
-54860
-605039

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT + SUM( + 59 ) AS col2 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-1455
SELECT + SUM ( + 59 ) AS col2 FROM tab1
----
177

query I rowsort
SELECT - 48 FROM tab0 WHERE NOT + col1 * + + 55 = + col2 * + 63
----
-48
-48
-48

query II rowsort
SELECT DISTINCT col2 AS col0, col0 + col0 + col0 - - col0 * + - col2 FROM tab2
----
23
-920
40
-2368
58
-4125

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + 88 * col0 < 88 * - 25 + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - - col1 ) * + col0 AS col1 FROM tab0
----
1215
1827
97

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT DISTINCT + 24 * COUNT( * ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-1463
SELECT DISTINCT + 24 * COUNT ( * ) FROM tab2 AS cor0
----
72

query II rowsort
SELECT - col0, - ( 90 ) AS col2 FROM tab2 AS cor0
----
-46
-90
-64
-90
-75
-90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1466
SELECT + - 72 * + 97 * COUNT( * ) - - 42 - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-20916

skipif mysql # not compatible
query I rowsort label-1466
SELECT + - 72 * + 97 * COUNT ( * ) - - 42 - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-20916

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

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

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

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

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE - + col1 * + 9 IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL col1 + + - 87 AS col0 FROM tab1
----
-40
-73
-82

query I rowsort
SELECT ALL - 47 * + + col1 AS col0 FROM tab2
----
-2397
-3149
-3619

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

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT + COUNT ( * ) * 37 + - - COUNT ( * ) FROM tab1
----
114

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

query II rowsort
SELECT col0 AS col2, + col2 * + col0 AS col1 FROM tab0
----
15
705
87
870
97
9603

query II rowsort
SELECT col2, col2 * + 6 AS col1 FROM tab0
----
10
60
47
282
99
594

query III rowsort
SELECT * FROM tab0 WHERE ( + + 53 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1477
SELECT MAX( col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-1477
SELECT MAX ( col0 ) AS col1 FROM tab0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - col2 + 32 col0 FROM tab0 AS cor0
----
-2
130
21

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 IS NOT NULL OR NOT 4 = - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1480
SELECT ALL * FROM tab0 WHERE col0 BETWEEN NULL AND CAST( 85 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1480
SELECT ALL * FROM tab0 WHERE col0 BETWEEN NULL AND CAST ( 85 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT + COUNT( DISTINCT - col1 ) * MIN( DISTINCT + col1 ) + - COUNT( ALL - 37 ) * - 24 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-1481
SELECT + COUNT ( DISTINCT - col1 ) * MIN ( DISTINCT + col1 ) + - COUNT ( ALL - 37 ) * - 24 FROM tab1
----
87

query I rowsort
SELECT DISTINCT ( 15 ) FROM tab2 WHERE ( - ( + col0 ) ) IN ( col0 + + col0 )
----

query I rowsort
SELECT + col1 * - 54 + + col2 FROM tab1
----
-211
-2470
-660

query III rowsort
SELECT * FROM tab2 WHERE 74 / col1 <= ( 56 * + 18 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE ( NULL ) > NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 * - 44 col1 FROM tab0
----
-143
-3611
-934

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1490
SELECT ( - MIN( ALL 69 ) ) AS col2 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-1490
SELECT ( - MIN ( ALL 69 ) ) AS col2 FROM tab0
----
-69

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

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

query I rowsort
SELECT DISTINCT 42 FROM tab2 WHERE ( NULL ) IS NULL
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1494
SELECT ( COUNT( DISTINCT col0 ) ) FROM tab1 WHERE NOT ( col0 * ( 66 * col0 ) ) NOT BETWEEN + 89 * - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1494
SELECT ( COUNT ( DISTINCT col0 ) ) FROM tab1 WHERE NOT ( col0 * ( 66 * col0 ) ) NOT BETWEEN + 89 * - col2 AND NULL
----
0

query I rowsort
SELECT ALL - 95 - col1 FROM tab2
----
-146
-162
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-1496
SELECT ( 20 ) + ( - COUNT( * ) ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-1496
SELECT ( 20 ) + ( - COUNT ( * ) ) FROM tab0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1497
SELECT - AVG ( 32 ) AS col0 FROM tab2 WHERE NOT - ( - 23 ) + + col2 IN ( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - 99 + - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1497
SELECT - AVG ( 32 ) AS col0 FROM tab2 WHERE NOT - ( - 23 ) + + col2 IN ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - 99 + - col1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1498
SELECT ALL 50 DIV + ( 39 ) + - 70 FROM tab0
----
-69
-69
-69

skipif mysql # not compatible
query I rowsort label-1498
SELECT ALL 50 / + ( 39 ) + - 70 FROM tab0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT + 12 * - COUNT( * ) FROM tab1 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1499
SELECT + 12 * - COUNT ( * ) FROM tab1 WHERE NOT col0 IS NOT NULL
----
0

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

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

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1502
SELECT 0 DIV col2 - - col0 AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1502
SELECT 0 / col2 - - col0 AS col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT + COUNT( * ) FROM tab1 WHERE NOT NULL NOT IN ( 77 * 23 )
----
0

skipif mysql # not compatible
query I rowsort label-1503
SELECT + COUNT ( * ) FROM tab1 WHERE NOT NULL NOT IN ( 77 * 23 )
----
0

query I rowsort
SELECT col2 + 9 AS col2 FROM tab2 WHERE + col1 * + 58 NOT IN ( col1 )
----
32
49
67

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

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

query I rowsort
SELECT ALL + 31 AS col0 FROM tab1 WHERE NOT 11 * col1 IS NOT NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 <= col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT ALL + 97 * - MIN( + col1 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1510
SELECT ALL + 97 * - MIN ( + col1 ) FROM tab0 AS cor0
----
-97

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

query I rowsort
SELECT DISTINCT - 58 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
-58

query III rowsort
SELECT * FROM tab2 WHERE NULL <> - col2
----

query I rowsort
SELECT col2 - - col0 FROM tab1 WHERE - 65 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-1515
SELECT - SUM ( col1 ) AS col1 FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT ALL MAX( col1 ) col2 FROM tab2 AS cor0 WHERE 20 IS NOT NULL
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1516
SELECT ALL MAX ( col1 ) col2 FROM tab2 AS cor0 WHERE 20 IS NOT NULL
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0 WHERE 62 * - col1 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-1518
SELECT DISTINCT - MIN ( ALL ( 69 ) ) AS col1 FROM tab0 AS cor0
----
-69

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1519
SELECT ALL - MIN ( ALL - 26 ) col1 FROM tab2 AS cor0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1520
SELECT ALL - CAST( + 7 AS SIGNED ) * - col0 FROM tab0 AS cor0 WHERE NOT - col2 * col2 < - 74
----

skipif mysql # not compatible
query I rowsort label-1520
SELECT ALL - CAST ( + 7 AS INTEGER ) * - col0 FROM tab0 AS cor0 WHERE NOT - col2 * col2 < - 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT ALL - COUNT( col1 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1521
SELECT ALL - COUNT ( col1 ) AS col2 FROM tab2 AS cor0
----
-3

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT - COUNT( col2 ) * - 50 AS col2 FROM tab0 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-1526
SELECT - COUNT ( col2 ) * - 50 AS col2 FROM tab0 AS cor0
----
150

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

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

query I rowsort
SELECT ALL - col0 + + col2 * + 13 AS col1 FROM tab0
----
1190
43
596

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

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

query I rowsort
SELECT col2 FROM tab2 WHERE NULL >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 - + + col0 col0 FROM tab0
----
-62
-72
10

query I rowsort
SELECT col2 / 52 FROM tab1 WHERE col1 IS NULL
----

query I rowsort
SELECT DISTINCT col1 * + 19 FROM tab2
----
1273
1463
969

query I rowsort
SELECT DISTINCT col0 + - 71 AS col2 FROM tab1
----
-20
14
20

query I rowsort
SELECT ALL + 35 FROM tab1 WHERE - 26 * 54 BETWEEN NULL AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 12 + - - 31 + 32 * 61 col2 FROM tab2
----
1995
1995
1995

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1538
SELECT DISTINCT col1 - + 6 * CAST( - col1 AS SIGNED ) FROM tab0
----
147
567
7

skipif mysql # not compatible
query I rowsort label-1538
SELECT DISTINCT col1 - + 6 * CAST ( - col1 AS INTEGER ) FROM tab0
----
147
567
7

onlyif mysql # DIV for integer division: 
query I rowsort label-1539
SELECT col1 DIV 38 AS col0 FROM tab0 WHERE ( col2 ) IS NOT NULL
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1539
SELECT col1 / 38 AS col0 FROM tab0 WHERE ( col2 ) IS NOT NULL
----
0
0
2

query I rowsort
SELECT DISTINCT + 81 * 7 + - 2 FROM tab1
----
565

query I rowsort
SELECT ALL col2 * 65 FROM tab0 WHERE col2 IS NULL
----

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( col1 ) < NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col0 * ( 67 ) NOT BETWEEN NULL AND NULL
----

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

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE ( NULL ) IS NOT NULL
----

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col1 + + - 19 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT 10 * + - 13 + ( ( col1 ) ) FROM tab0 AS cor0
----
-109
-129
-49

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1552
SELECT - COUNT ( * ), COUNT ( * ) col2 FROM tab0 AS cor0
----
-3
3

query I rowsort
SELECT + col0 * + 10 AS col1 FROM tab2 AS cor0
----
460
640
750

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1555
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - col1 * + col0 + - col1 < + col0 + col2
----
-3

skipif mysql # not compatible
query I rowsort label-1555
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - col1 * + col0 + - col1 < + col0 + col2
----
-3

query I rowsort
SELECT 91 * - - col1 AS col1 FROM tab2 AS cor0
----
4641
6097
7007

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

skipif mysql # not compatible
query I rowsort label-1557
SELECT DISTINCT + SUM ( ALL + ( + 89 ) ) * - ( - COUNT ( * ) ) FROM tab1 AS cor0
----
801

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

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

query I rowsort
SELECT ALL - 0 AS col0 FROM tab1 AS cor0 WHERE NULL <> 20
----

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 / + 87 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1565
SELECT DISTINCT * FROM tab0 WHERE - CAST( + 69 AS SIGNED ) <= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1565
SELECT DISTINCT * FROM tab0 WHERE - CAST ( + 69 AS INTEGER ) <= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-1566
SELECT ALL ( - - COUNT ( * ) ) AS col0 FROM tab2
----
3

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + 12 * col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) = - col1 * 58
----

query I rowsort
SELECT DISTINCT 35 AS col1 FROM tab1 AS cor0 WHERE ( NOT + col1 <= col0 - 59 )
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT ALL 65 + + - MAX( col0 ) AS col2 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-1576
SELECT ALL 65 + + - MAX ( col0 ) AS col2 FROM tab0
----
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - + col0 col1 FROM tab2
----
-8
13
5

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

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

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

query I rowsort
SELECT - col1 + - - ( - ( col0 ) ) FROM tab0 AS cor0
----
-108
-96
-98

query I rowsort
SELECT ALL - 52 * 50 + - ( - col1 ) + - col1 FROM tab2 AS cor0
----
-2600
-2600
-2600

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

skipif mysql # not compatible
query I rowsort label-1582
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE - col2 >= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT ALL + - 39 * COUNT( * ) FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-1583
SELECT ALL + - 39 * COUNT ( * ) FROM tab0 AS cor0
----
-117

query I rowsort
SELECT + 11 * - + 5 AS col0 FROM tab0 AS cor0
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT ( COUNT( * ) ) FROM tab2 WHERE ( NOT NULL <> ( ( - 43 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-1585
SELECT ( COUNT ( * ) ) FROM tab2 WHERE ( NOT NULL <> ( ( - 43 ) ) )
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT - COUNT( * ) AS col0 FROM tab0, tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1587
SELECT - COUNT ( * ) AS col0 FROM tab0, tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1588
SELECT ALL MIN( col2 ) FROM tab1 WHERE NOT ( - col1 + - 21 NOT BETWEEN NULL AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1588
SELECT ALL MIN ( col2 ) FROM tab1 WHERE NOT ( - col1 + - 21 NOT BETWEEN NULL AND NULL )
----
NULL

query I rowsort
SELECT + + 74 FROM tab1 WHERE ( - + col1 ) IS NOT NULL
----
74
74
74

query III rowsort
SELECT ALL - col0, col0 AS col2, + col2 * - col2 + + 22 AS col1 FROM tab1
----
9 values hashing to 3b60522eae8b50c153a63d26aecf71a1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 49, - col0 col1 FROM tab1
----
-49
-51
-49
-85
-49
-91

query I rowsort
SELECT ALL + 78 * - + col0 + + 31 + - 97 FROM tab0
----
-1236
-6852
-7632

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT - COUNT( + 93 ) col2 FROM tab1
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1597
SELECT DISTINCT MAX( + - col0 ) + - + COUNT( * ) AS col0 FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-1597
SELECT DISTINCT MAX ( + - col0 ) + - + COUNT ( * ) AS col0 FROM tab2
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT COUNT( * ) * ( - - SUM( DISTINCT - 18 ) ) col0 FROM tab0, tab0 AS cor0
----
-162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1598
SELECT COUNT ( * ) * ( - - SUM ( DISTINCT - 18 ) ) col0 FROM tab0, tab0 AS cor0
----
-162

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 BETWEEN + + 94 - 87 AND - ( - 52 ) - col0
----

query I rowsort
SELECT DISTINCT - + col2 * + col0 * + - col2 * 21 FROM tab1 cor0
----
6213585
8836464
9870336

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1601
SELECT * FROM tab2 AS cor0 WHERE NOT col0 IN ( + - col1 * - - CAST( col2 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1601
SELECT * FROM tab2 AS cor0 WHERE NOT col0 IN ( + - col1 * - - CAST ( col2 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-1602
SELECT DISTINCT + col1 DIV + - col0 AS col2, 63 col1 FROM tab0
----
-5
63
0
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1602
SELECT DISTINCT + col1 / + - col0 AS col2, 63 col1 FROM tab0
----
-5
63
0
63

query I rowsort
SELECT col0 * - + 53 * + 18 AS col0 FROM tab1
----
-48654
-81090
-86814

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 + - - col0 ) IN ( 34, - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1606
SELECT ALL + COUNT( * ) DIV COUNT( * ), - SUM( - + col1 ) AS col1 FROM tab2
----
1
195

skipif mysql # not compatible
query II rowsort label-1606
SELECT ALL + COUNT ( * ) / COUNT ( * ), - SUM ( - + col1 ) AS col1 FROM tab2
----
1
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1607
SELECT DISTINCT COUNT( * ) * - 26 - - COUNT( * ) * 33 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) + + 71 NOT IN ( 51 )
----
0

skipif mysql # not compatible
query I rowsort label-1607
SELECT DISTINCT COUNT ( * ) * - 26 - - COUNT ( * ) * 33 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) + + 71 NOT IN ( 51 )
----
0

query II rowsort
SELECT col2 * - 20 * + + 38 AS col0, 63 FROM tab2
----
-17480
63
-30400
63
-44080
63

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1610
SELECT DISTINCT - 57 AS col0, CAST( NULL AS SIGNED ) * + col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-1610
SELECT DISTINCT - 57 AS col0, CAST ( NULL AS INTEGER ) * + col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col0 * + + 72 * + 83 AS col1 FROM tab1 AS cor0
----
304776
507960
543816

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE NOT col1 - - - col2 IN ( + 24, col1 * - - col2 - - col0 )
----
-10
-47
-99

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1615
SELECT col1, - col1 + col2 DIV + col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
98
21
-21
81
-81

skipif mysql # not compatible
query II rowsort label-1615
SELECT col1, - col1 + col2 / + col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
98
21
-21
81
-81

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1617
SELECT CAST( - 9 AS SIGNED ) * 58 + - + col1 FROM tab1
----
-527
-536
-569

skipif mysql # not compatible
query I rowsort label-1617
SELECT CAST ( - 9 AS INTEGER ) * 58 + - + col1 FROM tab1
----
-527
-536
-569

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1618
SELECT * FROM tab1 WHERE NOT ( NULL ) IS NOT NULL OR NOT CAST( NULL AS SIGNED ) NOT BETWEEN ( col2 + - 29 * + col0 * col1 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1618
SELECT * FROM tab1 WHERE NOT ( NULL ) IS NOT NULL OR NOT CAST ( NULL AS INTEGER ) NOT BETWEEN ( col2 + - 29 * + col0 * col1 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-1619
SELECT ALL + SUM( - ( - col0 ) ) * + + 51, + 60 AS col0 FROM tab2 WHERE NOT ( NULL ) = NULL
----
NULL
60

skipif mysql # not compatible
query II rowsort label-1619
SELECT ALL + SUM ( - ( - col0 ) ) * + + 51, + 60 AS col0 FROM tab2 WHERE NOT ( NULL ) = NULL
----
NULL
60

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1621
SELECT - col0, ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-1621
SELECT - col0, ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

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

skipif mysql # not compatible
query I rowsort label-1622
SELECT + COUNT ( - - col2 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1623
SELECT + COUNT( ( - col1 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1623
SELECT + COUNT ( ( - col1 ) ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT col1 * + + 43 + col0 FROM tab1
----
2112
300
653

query II rowsort
SELECT DISTINCT col1, + ( + col1 ) FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1626
SELECT ALL - + CAST( 35 AS SIGNED ) FROM tab0 AS cor0
----
-35
-35
-35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1628
SELECT ALL ( - MIN( ALL - 85 ) ) FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-1628
SELECT ALL ( - MIN ( ALL - 85 ) ) FROM tab2
----
85

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

query I rowsort
SELECT DISTINCT + 13 + col0 + - col1 FROM tab2
----
0
21
8

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 / - col1 + - 96 + - + col0 + - col1 + 34 * - col1 NOT BETWEEN NULL AND - col1 OR ( NULL ) > + 38 / 98
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN 15 * 13 AND + col1
----

query I rowsort
SELECT - 94 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-94
-94
-94

query I rowsort
SELECT ALL 92 * + 28 AS col1 FROM tab2 AS cor0
----
2576
2576
2576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1636
SELECT - 60 - - - CAST( - 58 AS SIGNED ) * COUNT( * ) FROM tab0 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-1636
SELECT - 60 - - - CAST ( - 58 AS INTEGER ) * COUNT ( * ) FROM tab0 AS cor0
----
114

query I rowsort
SELECT DISTINCT - col0 * - - ( - col0 ) - - col0 AS col0 FROM tab2 cor0
----
2162
4160
5700

query I rowsort
SELECT DISTINCT + 94 - - 4 FROM tab1 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1639
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT col0 NOT IN ( - ( - - col0 ) + + col2, - 44 * + - 23 * col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1639
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT col0 NOT IN ( - ( - - col0 ) + + col2, - 44 * + - 23 * col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1640
SELECT * FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) * - 68 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1640
SELECT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * - 68 IS NOT NULL
----

query I rowsort
SELECT + col0 - 67 FROM tab0 AS cor0
----
-52
20
30

query I rowsort
SELECT - col2 * - + col1 + 68 AS col0 FROM tab2
----
1241
3148
3954

query I rowsort
SELECT - col2 + + + col0 FROM tab0
----
-2
-32
77

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 * - - 26 / + 61 + + col2 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - ( + - 33 ) FROM tab2 AS cor0
----
33
33
33

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1646
SELECT SUM ( DISTINCT col2 ) col2 FROM tab2 cor0
----
121

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1648
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT 81 < - - CAST( + col0 AS SIGNED ) )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-1648
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT 81 < - - CAST ( + col0 AS INTEGER ) )
----
15
81
47

query I rowsort
SELECT DISTINCT 14 * - col1 FROM tab0 AS cor0
----
-1134
-14
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT + 69 * SUM( DISTINCT 30 ) + MIN( ALL - + 33 ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
2037

skipif mysql # not compatible
query I rowsort label-1650
SELECT + 69 * SUM ( DISTINCT 30 ) + MIN ( ALL - + 33 ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
2037

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT 33 * COUNT( * ) AS col1 FROM tab1 cor0
----
99

skipif mysql # not compatible
query I rowsort label-1651
SELECT 33 * COUNT ( * ) AS col1 FROM tab1 cor0
----
99

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col2 * - 88 <= - 65 * - col0 + + - 28 / + col0 + + col0
----
75
67
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1654
SELECT DISTINCT - col1 DIV 88 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1654
SELECT DISTINCT - col1 / 88 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1655
SELECT DISTINCT + 83 AS col1, - ( - - MIN( + + col2 ) ) AS col1 FROM tab0 AS cor0
----
83
-10

skipif mysql # not compatible
query II rowsort label-1655
SELECT DISTINCT + 83 AS col1, - ( - - MIN ( + + col2 ) ) AS col1 FROM tab0 AS cor0
----
83
-10

query I rowsort
SELECT - 31 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT + - SUM( 10 ) * + 32 col2 FROM tab2 AS cor0
----
-960

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1657
SELECT + - SUM ( 10 ) * + 32 col2 FROM tab2 AS cor0
----
-960

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

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

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE - + 56 BETWEEN NULL AND + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT DISTINCT - MAX( ALL - 89 ) AS col2 FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-1660
SELECT DISTINCT - MAX ( ALL - 89 ) AS col2 FROM tab1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT ALL 53 + MIN( DISTINCT - col1 ) FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL 53 + MIN ( DISTINCT - col1 ) FROM tab0
----
-28

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 <= NULL
----

query I rowsort
SELECT ALL - col0 * - - 37 * 19 FROM tab1
----
-35853
-59755
-63973

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1665
SELECT ALL + COUNT( * ) + + COUNT( * ) AS col2, CAST( + 72 AS SIGNED ) FROM tab1 AS cor0
----
6
72

skipif mysql # not compatible
query II rowsort label-1665
SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col2, CAST ( + 72 AS INTEGER ) FROM tab1 AS cor0
----
6
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT ALL MIN( + col1 ) + - 57 FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL MIN ( + col1 ) + - 57 FROM tab1
----
-52

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

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

query III rowsort
SELECT * FROM tab0 WHERE - col1 * + + 4 + + 42 / - - col0 > 54
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 * - 61 col2 FROM tab1
----
2623
2623
2623

onlyif mysql # aggregate syntax: 
query I rowsort label-1670
SELECT ALL + MAX( + + col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-1670
SELECT ALL + MAX ( + + col2 ) AS col0 FROM tab0
----
99

query I rowsort
SELECT - 59 * col0 * col0 AS col1 FROM tab2
----
-124844
-241664
-331875

query I rowsort
SELECT - ( + + 68 ) - - 21 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - col1 + col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1674
SELECT - + 11 + + + ( col0 ) + - CAST( + ( + - col2 ) AS SIGNED ) * - 4 col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 9, col0 + + col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1674
SELECT - + 11 + + + ( col0 ) + - CAST ( + ( + - col2 ) AS INTEGER ) * - 4 col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 9, col0 + + col1 )
----

query I rowsort
SELECT - ( 55 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

onlyif mysql # aggregate syntax: 
query III rowsort label-1676
SELECT + COUNT( * ), - ( - COUNT( * ) ), + COUNT( * ) FROM tab1
----
3
3
3

skipif mysql # not compatible
query III rowsort label-1676
SELECT + COUNT ( * ), - ( - COUNT ( * ) ), + COUNT ( * ) FROM tab1
----
3
3
3

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

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT col1 * + 11 IS NOT NULL
----

query I rowsort
SELECT + - col0 FROM tab2 AS cor0 WHERE - col2 < + 43
----
-46
-64
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT DISTINCT MIN( ALL + 58 ) + - + COUNT( * ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-1682
SELECT DISTINCT MIN ( ALL + 58 ) + - + COUNT ( * ) FROM tab2
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT DISTINCT - COUNT( * ) * - + 48 col2 FROM tab0
----
144

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

query II rowsort
SELECT 63 AS col1, col1 * - - col1 * + col0 FROM tab2
----
63
119646
63
336675
63
379456

query I rowsort
SELECT ALL - col0 + - 93 AS col1 FROM tab1 AS cor0
----
-144
-178
-184

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 + - - col2 AS col2 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT - 44 - - MAX( - 79 ) * - + MIN( + col0 ) AS col2 FROM tab0 AS cor0
----
1141

skipif mysql # not compatible
query I rowsort label-1690
SELECT - 44 - - MAX ( - 79 ) * - + MIN ( + col0 ) AS col2 FROM tab0 AS cor0
----
1141

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 BETWEEN + - col2 - + 60 AND + 61
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT DISTINCT + 40 * + + SUM( + col2 ) AS col1 FROM tab0 AS cor0
----
6240

skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT + 40 * + + SUM ( + col2 ) AS col1 FROM tab0 AS cor0
----
6240

query II rowsort
SELECT + + ( ( + + 6 ) ) AS col1, - 10 AS col2 FROM tab2 AS cor0
----
6
-10
6
-10
6
-10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1695
SELECT ALL - - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1695
SELECT ALL - - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT - SUM( ALL - - 46 ) AS col2 FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-1696
SELECT - SUM ( ALL - - 46 ) AS col2 FROM tab0
----
-138

query I rowsort
SELECT - - 45 FROM tab1 WHERE NOT ( col1 BETWEEN + 9 AND NULL )
----
45

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

query I rowsort
SELECT DISTINCT ( ( 52 ) ) * - 16 FROM tab1
----
-832

onlyif mysql # DIV for integer division: 
query I rowsort label-1700
SELECT ALL - col0 DIV 54 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL - col0 / 54 FROM tab0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1701
SELECT + + CAST( + 74 AS SIGNED ) FROM tab0 AS cor0
----
74
74
74

skipif mysql # not compatible
query I rowsort label-1701
SELECT + + CAST ( + 74 AS INTEGER ) FROM tab0 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query III rowsort label-1702
SELECT - 67, 90 * - SUM( + - 82 ) AS col0, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-67
22140
3

skipif mysql # not compatible
query III rowsort label-1702
SELECT - 67, 90 * - SUM ( + - 82 ) AS col0, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-67
22140
3

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

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

query I rowsort
SELECT DISTINCT + col1 + + - 88 AS col2 FROM tab0
----
-67
-7
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 * + - col1 col0, 73 + + + 22 FROM tab0 AS cor0
----
-1215
95
-1827
95
-97
95

query I rowsort
SELECT - + col0 + + + 12 AS col0 FROM tab2 AS cor0
----
-34
-52
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1707
SELECT ALL ( - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL ( - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL

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

query I rowsort
SELECT + 25 + 33 FROM tab1 AS cor0
----
58
58
58

query I rowsort
SELECT DISTINCT col1 FROM tab2 cor0 WHERE 15 NOT BETWEEN + + ( col1 ) AND NULL
----
51
67
77

query I rowsort
SELECT + 5 + - + 6 FROM tab0 AS cor0
----
-1
-1
-1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1713
SELECT 3 col1, 31 DIV - COUNT( * ) col2 FROM tab2
----
3
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1713
SELECT 3 col1, 31 / - COUNT ( * ) col2 FROM tab2
----
3
-10

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

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

query II rowsort
SELECT - 44 AS col2, - col0 + col1 AS col1 FROM tab0
----
-44
-66
-44
-96
-44
66

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1719
SELECT ALL - + CAST( + 92 AS SIGNED ) FROM tab0 AS cor0
----
-92
-92
-92

skipif mysql # not compatible
query I rowsort label-1719
SELECT ALL - + CAST ( + 92 AS INTEGER ) FROM tab0 AS cor0
----
-92
-92
-92

query I rowsort
SELECT DISTINCT col0 * + + 76 AS col0 FROM tab0 AS cor0
----
1140
6612
7372

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1722
SELECT ALL 46 * + + col0 DIV - col0 AS col1 FROM tab2
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-1722
SELECT ALL 46 * + + col0 / - col0 AS col1 FROM tab2
----
-46
-46
-46

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

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

query I rowsort
SELECT ALL + - col0 AS col2 FROM tab1 WHERE NOT 23 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
95

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

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1730
SELECT ALL - CAST( NULL AS DECIMAL ) * + 19 AS col2, 82 FROM tab0 AS cor0
----
NULL
82
NULL
82
NULL
82

skipif mysql # not compatible
query II rowsort label-1730
SELECT ALL - CAST ( NULL AS REAL ) * + 19 AS col2, 82 FROM tab0 AS cor0
----
NULL
82
NULL
82
NULL
82

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

query I rowsort
SELECT DISTINCT 98 * - 43 FROM tab2 cor0
----
-4214

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1734
SELECT ALL * FROM tab0 WHERE - - 48 * CAST( NULL AS SIGNED ) + - 31 + - col1 IN ( - col2, - 63 + col2, + col0 / + - col2 )
----

skipif mysql # not compatible
query III rowsort label-1734
SELECT ALL * FROM tab0 WHERE - - 48 * CAST ( NULL AS INTEGER ) + - 31 + - col1 IN ( - col2, - 63 + col2, + col0 / + - col2 )
----

query I rowsort
SELECT DISTINCT col1 * col0 * + - col0 FROM tab0
----
-158949
-18225
-9409

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 + + col0 AS col2, 1 col2 FROM tab2 WHERE NOT - 40 IS NOT NULL
----

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

query I rowsort
SELECT 93 * + - col2 * - col1 FROM tab0
----
19530
354051
9207

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

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL MIN ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
10

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1745
SELECT + col0 DIV - - 16 FROM tab2 WHERE col2 IS NOT NULL
----
2
4
4

skipif mysql # not compatible
query I rowsort label-1745
SELECT + col0 / - - 16 FROM tab2 WHERE col2 IS NOT NULL
----
2
4
4

query I rowsort
SELECT + ( - ( 62 ) ) * + col0 AS col0 FROM tab1 AS cor0
----
-3162
-5270
-5642

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1748
SELECT ALL + COUNT( * ) * + 30 + + SUM( + col1 ) FROM tab0 AS cor0
----
193

skipif mysql # not compatible
query I rowsort label-1748
SELECT ALL + COUNT ( * ) * + 30 + + SUM ( + col1 ) FROM tab0 AS cor0
----
193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1749
SELECT + col1 * - ( + CAST( + col0 AS SIGNED ) ) FROM tab0 AS cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-1749
SELECT + col1 * - ( + CAST ( + col0 AS INTEGER ) ) FROM tab0 AS cor0
----
-1215
-1827
-97

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

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL col1 + + col1 AS col1 FROM tab0 AS cor0 WHERE NOT 57 / CAST ( - - col2 AS INTEGER ) IS NULL
----
162
2
42

query I rowsort
SELECT - 7 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 * - - col1 * 25 FROM tab2
----
29325
77000
97150

onlyif mysql # aggregate syntax: 
query I rowsort label-1753
SELECT COUNT( * ) - 95 AS col0 FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-1753
SELECT COUNT ( * ) - 95 AS col0 FROM tab1
----
-92

query I rowsort
SELECT 52 * - col1 - col2 + + col1 + + col1 AS col1 FROM tab1
----
-2418
-309
-796

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1755
SELECT CAST( NULL AS SIGNED ) + - - 43 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1755
SELECT CAST ( NULL AS INTEGER ) + - - 43 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT ALL - ( - - 23 ) + + COUNT( * ) AS col1 FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL - ( - - 23 ) + + COUNT ( * ) AS col1 FROM tab0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1758
SELECT CAST( NULL AS SIGNED ) + - - col2 + col0 * + col0 col0, + col2 col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1758
SELECT CAST ( NULL AS INTEGER ) + - - col2 + col0 * + col0 col0, + col2 col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

query III rowsort
SELECT * FROM tab0 WHERE - 15 IS NULL
----

query I rowsort
SELECT + 39 * + col1 * + - col0 * + + col1 + + col0 AS col0 FROM tab2 AS cor0
----
-13130250
-14798720
-4666148

query I rowsort
SELECT col2 + + - col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * + - 63 AS col2 FROM tab2 AS cor0
----
3213
4221
4851

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

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

query I rowsort
SELECT - 28 * - col2 FROM tab0 cor0
----
1316
2772
280

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

query II rowsort
SELECT + col2, col2 + col2 * - col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
-236
68
-3128
96
-1248

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1767
SELECT + + AVG ( ALL + CAST( NULL AS SIGNED ) ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1767
SELECT + + AVG ( ALL + CAST ( NULL AS INTEGER ) ) FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT DISTINCT - COUNT( * ) + + ( 33 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
24

skipif mysql # not compatible
query I rowsort label-1768
SELECT DISTINCT - COUNT ( * ) + + ( 33 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1769
SELECT + CAST( NULL AS DECIMAL ) + + + 22 / + ( + - col0 ) + col2 FROM tab2 WHERE NOT col0 < - - col1 + + col2
----

skipif mysql # not compatible
query I rowsort label-1769
SELECT + CAST ( NULL AS REAL ) + + + 22 / + ( + - col0 ) + col2 FROM tab2 WHERE NOT col0 < - - col1 + + col2
----

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

query I rowsort
SELECT DISTINCT - ( + + col2 ) * + + ( - col0 ) * 29 + + 22 AS col0 FROM tab1 AS cor0 WHERE ( col0 > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1772
SELECT MAX( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-1772
SELECT MAX ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1773
SELECT ALL - CAST( - + 38 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
38
38
38

skipif mysql # not compatible
query I rowsort label-1773
SELECT ALL - CAST ( - + 38 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
38
38
38

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

query I rowsort
SELECT - 78 AS col0 FROM tab1 cor0
----
-78
-78
-78

query I rowsort
SELECT DISTINCT + 29 * + col1 AS col1 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
1479
1943
2233

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

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

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

query I rowsort
SELECT 14 * + col2 * + col0 AS col2 FROM tab2
----
14812
35840
60900

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1782
SELECT DISTINCT CAST( NULL AS DECIMAL ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1782
SELECT DISTINCT CAST ( NULL AS REAL ) col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - 65 * - col0 FROM tab1
----
3315
5525
5915

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT SUM( ALL + 74 ) * MIN( col2 ) FROM tab0
----
2220

skipif mysql # not compatible
query I rowsort label-1784
SELECT SUM ( ALL + 74 ) * MIN ( col2 ) FROM tab0
----
2220

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

skipif mysql # not compatible
query I rowsort label-1785
SELECT ALL col1 / - 77 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * + + col1 <= + col2
----

query I rowsort
SELECT DISTINCT + col2 + 58 * - col2 AS col1 FROM tab2 AS cor0
----
-1311
-2280
-3306

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT - 56 + SUM( - col1 ) FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-1790
SELECT - 56 + SUM ( - col1 ) FROM tab0 AS cor0
----
-159

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 66 + 84 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1793
SELECT - COUNT( * ) * - + MAX( ALL 24 ) * + + 24 + - - 24 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1793
SELECT - COUNT ( * ) * - + MAX ( ALL 24 ) * + + 24 + - - 24 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT DISTINCT SUM( ALL col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-1794
SELECT DISTINCT SUM ( ALL col1 ) FROM tab0
----
103

query I rowsort
SELECT - + col2 FROM tab1 WHERE 30 * - - col1 <> NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1797
SELECT COUNT( * ) AS col0, + 41 FROM tab1
----
3
41

skipif mysql # not compatible
query II rowsort label-1797
SELECT COUNT ( * ) AS col0, + 41 FROM tab1
----
3
41

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

query I rowsort
SELECT col2 * col2 * + - 32 * + - col0 AS col2 FROM tab0
----
1060320
278400
30422304

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

skipif mysql # not compatible
query III rowsort label-1800
SELECT ALL * FROM tab0 WHERE NOT NULL IS NOT NULL AND + 89 / + CAST ( NULL AS INTEGER ) * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 - - 17 AS col2 FROM tab2 AS cor0
----
68
84
94

query I rowsort
SELECT ALL 7 - 50 FROM tab1 cor0
----
-43
-43
-43

query I rowsort
SELECT DISTINCT - col2 - 38 FROM tab0 AS cor0
----
-137
-48
-85

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1805
SELECT ALL + CAST( + - ( - 15 ) AS SIGNED ) FROM tab2 AS cor0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL + CAST ( + - ( - 15 ) AS INTEGER ) FROM tab2 AS cor0
----
15
15
15

query I rowsort
SELECT DISTINCT + 33 AS col1 FROM tab0 WHERE NOT - + 36 + + 50 = - 0
----
33

query I rowsort
SELECT - 5 AS col1 FROM tab2
----
-5
-5
-5

query I rowsort
SELECT ALL + col0 * - + 88 AS col1 FROM tab1
----
-4488
-7480
-8008

query I rowsort
SELECT DISTINCT - - col0 * 42 + + - col2 AS col1 FROM tab0 AS cor0
----
3644
3975
583

query I rowsort
SELECT - 1 AS col2 FROM tab1 AS cor0 WHERE NULL <= + col1 AND + col2 IS NOT NULL
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 61 col2 FROM tab2
----
-61
-61
-61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1816
SELECT + COUNT( * ) FROM tab2 WHERE NOT ( - col1 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1816
SELECT + COUNT ( * ) FROM tab2 WHERE NOT ( - col1 ) <= NULL
----
0

query I rowsort
SELECT - - col0 FROM tab1 WHERE NOT - col1 BETWEEN NULL AND - + 19 + - col2
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1818
SELECT 34 DIV col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1818
SELECT 34 / col0 FROM tab0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT + 5 * + 1 * + COUNT( ALL col2 ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-1819
SELECT + 5 * + 1 * + COUNT ( ALL col2 ) FROM tab2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1820
SELECT DISTINCT - col1 * - CAST( + 71 AS SIGNED ) AS col1 FROM tab2
----
3621
4757
5467

skipif mysql # not compatible
query I rowsort label-1820
SELECT DISTINCT - col1 * - CAST ( + 71 AS INTEGER ) AS col1 FROM tab2
----
3621
4757
5467

query I rowsort
SELECT ALL 3 * 3 + ( - + 76 ) AS col2 FROM tab1 cor0
----
-67
-67
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1822
SELECT 69 * - col2 + - 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-1822
SELECT 69 * - col2 + - CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT + col1 + + ( - 79 ) FROM tab0 AS cor0
----
-58
-78
2

onlyif mysql # aggregate syntax: 
query II rowsort label-1825
SELECT 32 AS col2, SUM( + - col0 ) col1 FROM tab1
----
32
-227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1825
SELECT 32 AS col2, SUM ( + - col0 ) col1 FROM tab1
----
32
-227

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 59 IS NULL
----

query II rowsort
SELECT ( + col1 ), + 9 AS col0 FROM tab1 AS cor0
----
14
9
47
9
5
9

query II rowsort
SELECT ALL + + 49, col2 + + col1 AS col1 FROM tab1 AS cor0
----
49
110
49
115
49
64

query II rowsort
SELECT + + col1 * - ( - 43 ) * col0 AS col0, - col1 AS col0 FROM tab2 AS cor0
----
100878
-51
211904
-77
216075
-67

query I rowsort
SELECT DISTINCT col2 - + - col2 AS col0 FROM tab1 cor0
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1831
SELECT - 25 * col1 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1831
SELECT - 25 * col1 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN - + col0 AND - 61
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 90 ) * col2 col0 FROM tab1 cor0
----
5310
6120
8640

query I rowsort
SELECT DISTINCT - 18 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT ALL ( - COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1835
SELECT ALL ( - COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1836
SELECT - col2 - - + CAST( - col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-1836
SELECT - col2 - - + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-117
-125
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col2 FROM tab0 WHERE NOT - - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 col0 FROM tab1
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT + - ( COUNT( * ) ) FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1839
SELECT + - ( COUNT ( * ) ) FROM tab1 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT DISTINCT + 99 + + ( 80 ) AS col1 FROM tab1 AS cor0
----
179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1841
SELECT DISTINCT + CAST( col0 AS SIGNED ) * - - col1 * 79 FROM tab0 AS cor0
----
144333
7663
95985

skipif mysql # not compatible
query I rowsort label-1841
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * - - col1 * 79 FROM tab0 AS cor0
----
144333
7663
95985

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col2 FROM tab2 WHERE NOT + col1 + col0 <> ( NULL )
----

query I rowsort
SELECT + + ( 4 ) FROM tab1 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query II rowsort label-1844
SELECT + 30, + MIN( ALL - - col1 ) AS col0 FROM tab2 AS cor0
----
30
51

skipif mysql # not compatible
query II rowsort label-1844
SELECT + 30, + MIN ( ALL - - col1 ) AS col0 FROM tab2 AS cor0
----
30
51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IS NULL OR - col0 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * - 82 + - col1 - + - col1 FROM tab2 cor0 WHERE NOT col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT DISTINCT + COUNT( * ) * 36 col1 FROM tab1 AS cor0 WHERE + col0 = col2 + + ( + col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1847
SELECT DISTINCT + COUNT ( * ) * 36 col1 FROM tab1 AS cor0 WHERE + col0 = col2 + + ( + col2 )
----
0

query I rowsort
SELECT - - ( 75 ) AS col2 FROM tab1 AS cor0
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT + - COUNT( - - col1 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1849
SELECT + - COUNT ( - - col1 ) col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1851
SELECT DISTINCT + SUM( ALL + + col1 ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-1851
SELECT DISTINCT + SUM ( ALL + + col1 ) AS col0 FROM tab1
----
66

query I rowsort
SELECT + col0 - col2 + + + 32 * 8 * + - col1 * + + col1 + 54 AS col0 FROM tab1 WHERE NOT - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT ALL - 69 * - + COUNT( * ) FROM tab0
----
207

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL - 69 * - + COUNT ( * ) FROM tab0
----
207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + col0, col1 col2 FROM tab1
----
138
47
65
14
90
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1855
SELECT + + col0 AS col1, - col1 + + col2 + - col1 / 45 AS col2 FROM tab2 WHERE + ( + 7 ) IN ( - - 75, col1 * - + col1, col1 / + col0 + - 34, - CAST( col0 AS SIGNED ), 1 )
----

skipif mysql # not compatible
query II rowsort label-1855
SELECT + + col0 AS col1, - col1 + + col2 + - col1 / 45 AS col2 FROM tab2 WHERE + ( + 7 ) IN ( - - 75, col1 * - + col1, col1 / + col0 + - 34, - CAST ( col0 AS INTEGER ), 1 )
----

query I rowsort
SELECT col2 * - 52 * - col2 * - col2 AS col0 FROM tab1
----
-10679708
-16350464
-46006272

query I rowsort
SELECT + + 86 * - col2 AS col1 FROM tab2 AS cor0
----
-1978
-3440
-4988

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT NULL < col0
----

query I rowsort
SELECT ALL - col1 * + 48 + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= col1 / col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 col1 FROM tab2 AS cor0
----
-43

query III rowsort
SELECT * FROM tab2 WHERE - col0 + + - col1 / + col0 / + + 92 BETWEEN NULL AND + col0 * - col1 * - - 80
----

query I rowsort
SELECT DISTINCT - 70 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-70

query I rowsort
SELECT ALL + col2 - - 50 FROM tab0 AS cor0
----
149
60
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 62 + - ( - col1 ) col1 FROM tab0 AS cor0
----
143
63
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1865
SELECT - CAST( - col0 AS SIGNED ) * + 24 + + 70 FROM tab1 AS cor0
----
1294
2110
2254

skipif mysql # not compatible
query I rowsort label-1865
SELECT - CAST ( - col0 AS INTEGER ) * + 24 + + 70 FROM tab1 AS cor0
----
1294
2110
2254

query I rowsort
SELECT DISTINCT ( + 86 ) - - 60 + + + 99 * + 42 FROM tab2 AS cor0
----
4304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1867
SELECT DISTINCT 32 * ( + 44 ) * + CAST( + - COUNT( * ) AS SIGNED ) * + 67 AS col1 FROM tab1 AS cor0
----
-283008

skipif mysql # not compatible
query I rowsort label-1867
SELECT DISTINCT 32 * ( + 44 ) * + CAST ( + - COUNT ( * ) AS INTEGER ) * + 67 AS col1 FROM tab1 AS cor0
----
-283008

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1868
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( col1 AS SIGNED ) * + - col1 * - col2 - - + 72 = ( col2 )
----

skipif mysql # not compatible
query III rowsort label-1868
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( col1 AS INTEGER ) * + - col1 * - col2 - - + 72 = ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT DISTINCT + MIN( DISTINCT - 48 ) AS col0 FROM tab1 WHERE NOT - + col1 IS NULL
----
-48

skipif mysql # not compatible
query I rowsort label-1869
SELECT DISTINCT + MIN ( DISTINCT - 48 ) AS col0 FROM tab1 WHERE NOT - + col1 IS NULL
----
-48

query I rowsort
SELECT DISTINCT - ( + 74 ) * + col0 AS col0 FROM tab1
----
-3774
-6290
-6734

query III rowsort
SELECT * FROM tab1 WHERE + + col2 + - col2 + + 95 + 84 / - - col0 <> - col0 * + col2 + - col0 + - 68
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT + MIN( col0 ) - - + 57 AS col1 FROM tab2
----
103

skipif mysql # not compatible
query I rowsort label-1872
SELECT + MIN ( col0 ) - - + 57 AS col1 FROM tab2
----
103

query I rowsort
SELECT DISTINCT 60 * - + col2 * - col0 AS col1 FROM tab1
----
293760
300900
371280

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT + MAX( col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-1874
SELECT + MAX ( col0 ) AS col1 FROM tab0
----
97

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE + - col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1876
SELECT col1 DIV + 74 * - - col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1876
SELECT col1 / + 74 * - - col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1877
SELECT 1 * - - col0 DIV 97 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1877
SELECT 1 * - - col0 / 97 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1878
SELECT + ( + + CAST( + 2 AS SIGNED ) ) FROM tab1 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1878
SELECT + ( + + CAST ( + 2 AS INTEGER ) ) FROM tab1 AS cor0
----
2
2
2

query I rowsort
SELECT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 * - + 42 / - - col0 + - col0 * + col0 - + - ( col0 ) <= + 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1880
SELECT COUNT( - col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1880
SELECT COUNT ( - col2 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT DISTINCT + + SUM( + 99 ) FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT + + SUM ( + 99 ) FROM tab0 AS cor0
----
297

query I rowsort
SELECT DISTINCT - 90 + - 4 AS col2 FROM tab1 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1883
SELECT ALL 82 * - MIN( + col0 ) AS col0 FROM tab2 cor0
----
-3772

skipif mysql # not compatible
query I rowsort label-1883
SELECT ALL 82 * - MIN ( + col0 ) AS col0 FROM tab2 cor0
----
-3772

query II rowsort
SELECT col1, - 82 FROM tab1
----
14
-82
47
-82
5
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-1885
SELECT ALL 51 + + COUNT( * ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL 51 + + COUNT ( * ) FROM tab0
----
54

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 41 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IS NULL AND ( ( - 20 ) ) = - + 33
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1888
SELECT - + 82 DIV COUNT( - + 99 ) + + + SUM( DISTINCT + col1 ) + + 43 DIV - ( - - MAX( DISTINCT + col1 ) ) AS col1 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-1888
SELECT - + 82 / COUNT ( - + 99 ) + + + SUM ( DISTINCT + col1 ) + + 43 / - ( - - MAX ( DISTINCT + col1 ) ) AS col1 FROM tab1 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-1889
SELECT ALL + 85 + - - 17 + + 55 col0, + 80 - + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
157
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1889
SELECT ALL + 85 + - - 17 + + 55 col0, + 80 - + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
157
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT ALL + MAX( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1890
SELECT ALL + MAX ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT ALL COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-1891
SELECT ALL COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1892
SELECT + col0 DIV col1 DIV + col2 * + - col2 * col0 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1892
SELECT + col0 / col1 / + col2 * + - col2 * col0 AS col0 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - 38 FROM tab1, tab0 AS cor0
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

query I rowsort
SELECT DISTINCT + ( - + 2 ) AS col1 FROM tab1 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT ALL - 55 - - SUM( - col2 ) FROM tab1 AS cor0
----
-278

skipif mysql # not compatible
query I rowsort label-1895
SELECT ALL - 55 - - SUM ( - col2 ) FROM tab1 AS cor0
----
-278

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 - - col2 FROM tab2 cor0
----
104
133
69

query I rowsort
SELECT DISTINCT - col1 - - col1 * + 61 FROM tab0 AS cor0
----
1260
4860
60

query I rowsort
SELECT ALL - + 95 - col0 FROM tab0 AS cor0
----
-110
-182
-192

onlyif mysql # DIV for integer division: 
query I rowsort label-1900
SELECT DISTINCT 3 DIV + col2 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1900
SELECT DISTINCT 3 / + col2 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - - col2 + - col2 + - col2 - + col0 AS col0 FROM tab1 AS cor0
----
-144
-147
-159

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN 85 + + - ( - - 32 ) AND + col1
----

query I rowsort
SELECT + - col1 + - 96 AS col2 FROM tab2 AS cor0
----
-147
-163
-173

query I rowsort
SELECT col1 + + + col0 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1905
SELECT + MAX( - col1 ) FROM tab2 AS cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1905
SELECT + MAX ( - col1 ) FROM tab2 AS cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT - col1 * + - col0 FROM tab0
----
1215
1827
97

query I rowsort
SELECT ALL - col2 * + + 11 FROM tab1
----
-1056
-649
-748

query II rowsort
SELECT + col0, - col0 AS col2 FROM tab1
----
51
-51
85
-85
91
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 83 AS col1, 88 * - + col1 col0 FROM tab2
----
83
-4488
83
-5896
83
-6776

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT ALL MIN( + col1 ) col0 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1910
SELECT ALL MIN ( + col1 ) col0 FROM tab1
----
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - col0 ) + + 36 + - 79 AND NULL
----

query I rowsort
SELECT DISTINCT 26 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
26

query I rowsort
SELECT ALL + 10 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query II rowsort
SELECT ALL - - col1, col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT 28 * + ( col0 ) AS col1 FROM tab0 AS cor0
----
2436
2716
420

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1916
SELECT CAST( NULL AS SIGNED ), + col0 col2 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-1916
SELECT CAST ( NULL AS INTEGER ), + col0 col2 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT 63 + + col1 + + 34 AS col1 FROM tab0 AS cor0
----
118
178
98

query I rowsort
SELECT + col1 + + 9 - + - col2 AS col1 FROM tab1 AS cor0
----
119
124
73

query I rowsort
SELECT 39 + - 76 * - col0 AS col2 FROM tab0
----
1179
6651
7411

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1920
SELECT COUNT( + + CAST( - ( ( + 87 ) ) AS SIGNED ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1920
SELECT COUNT ( + + CAST ( - ( ( + 87 ) ) AS INTEGER ) ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT - ( - + col2 ) AS col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1922
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) + + 62 AS col2 FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-1922
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) + + 62 AS col2 FROM tab2
----
71

query I rowsort
SELECT ALL + - 75 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT DISTINCT - 87 * - - col0 + - 5 AS col2 FROM tab1
----
-4442
-7400
-7922

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= + 22 * - - col2
----

query II rowsort
SELECT DISTINCT - 68 AS col1, col2 * 76 * - col1 AS col0 FROM tab0 AS cor0
----
-68
-15960
-68
-289332
-68
-7524

query II rowsort
SELECT - col1 AS col2, - 98 AS col2 FROM tab0 AS cor0
----
-1
-98
-21
-98
-81
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT ALL - COUNT( * ) - - 3 - - COUNT( * ) FROM tab2 WHERE + + 28 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1928
SELECT ALL - COUNT ( * ) - - 3 - - COUNT ( * ) FROM tab2 WHERE + + 28 IS NOT NULL
----
3

query I rowsort
SELECT - ( - col0 ) * - 31 AS col1 FROM tab0
----
-2697
-3007
-465

query I rowsort
SELECT DISTINCT + 46 AS col1 FROM tab1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-1931
SELECT + COUNT( * ) * + + ( - 94 ) AS col2 FROM tab1
----
-282

skipif mysql # not compatible
query I rowsort label-1931
SELECT + COUNT ( * ) * + + ( - 94 ) AS col2 FROM tab1
----
-282

query I rowsort
SELECT + col2 * + - col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT DISTINCT + COUNT( ALL + col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1933
SELECT DISTINCT + COUNT ( ALL + col2 ) AS col2 FROM tab2
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 0 ) + - col1 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1935
SELECT - + col2 * - col1 / + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1935
SELECT - + col2 * - col1 / + - CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + + 4 ) FROM tab2
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT DISTINCT + 23 + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
14

skipif mysql # not compatible
query I rowsort label-1937
SELECT DISTINCT + 23 + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
14

query I rowsort
SELECT + - 32 AS col0 FROM tab0 AS cor0
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT DISTINCT + + COUNT( ALL 81 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1939
SELECT DISTINCT + + COUNT ( ALL 81 ) col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT - ( COUNT( * ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1940
SELECT - ( COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 10 * + 41 * - + col2 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT DISTINCT + 70 * + 75 FROM tab1 AS cor0
----
5250

query I rowsort
SELECT - ( + col2 ) * - 90 FROM tab1 AS cor0
----
5310
6120
8640

query I rowsort
SELECT ALL 47 AS col0 FROM tab0 AS cor0 WHERE NOT + 68 BETWEEN - col0 AND + col1
----
47
47

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE col0 * - col2 IN ( + + col2, + 86 )
----

query II rowsort
SELECT ALL + col1 AS col2, - 50 FROM tab2 cor0
----
51
-50
67
-50
77
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-1947
SELECT - 44 DIV 51 * - 4 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1947
SELECT - 44 / 51 * - 4 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1948
SELECT + + col0 DIV + col0 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1948
SELECT + + col0 / + col0 AS col2 FROM tab0 AS cor0
----
1
1
1

query II rowsort
SELECT ALL 25 + - col2 * + col0 + - col0 AS col0, col2 * - + col0 * + col1 FROM tab2
----
-1079
-53958
-2599
-197120
-4400
-291450

query I rowsort
SELECT - - col1 AS col2 FROM tab1 WHERE - col0 = + col0
----

query I rowsort
SELECT + col0 + - + col1 AS col0 FROM tab1
----
37
44
80

query II rowsort
SELECT + col2 + + 69 AS col1, col1 * ( col2 ) FROM tab1
----
128
295
137
3196
165
1344

query I rowsort
SELECT - 73 * - 33 + + col2 AS col1 FROM tab1 AS cor0
----
2468
2477
2505

query I rowsort
SELECT ALL 26 * - 9 + + + 96 * - - col0 FROM tab0 AS cor0
----
1206
8118
9078

query II rowsort
SELECT + - col1 AS col2, col1 FROM tab2 cor0
----
-51
51
-67
67
-77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 col2 FROM tab1 cor0 WHERE NULL IS NULL
----
32
32
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1957
SELECT col1 DIV - col2 - 22 FROM tab1 AS cor0
----
-22
-22
-22

skipif mysql # not compatible
query I rowsort label-1957
SELECT col1 / - col2 - 22 FROM tab1 AS cor0
----
-22
-22
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col0 - - - col1 col2 FROM tab0
----
-1296
-1848
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1959
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 35 col1 FROM tab1 AS cor0
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT ALL - - COUNT( - col1 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1961
SELECT ALL - - COUNT ( - col1 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT - 8 + COUNT( * ) AS col0 FROM tab1, tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1962
SELECT - 8 + COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT - COUNT( - - col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1963
SELECT - COUNT ( - - col2 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1964
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1965
SELECT DISTINCT - COUNT( * ), SUM( DISTINCT + + col2 ) / - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-1965
SELECT DISTINCT - COUNT ( * ), SUM ( DISTINCT + + col2 ) / - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-3
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 <= + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( NOT + - col0 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 88 < 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1969
SELECT DISTINCT + CAST( + - col2 AS SIGNED ) * col2 FROM tab2
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-1969
SELECT DISTINCT + CAST ( + - col2 AS INTEGER ) * col2 FROM tab2
----
-1600
-3364
-529

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT ALL COUNT( DISTINCT + col0 ) * + 96 FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-1970
SELECT ALL COUNT ( DISTINCT + col0 ) * + 96 FROM tab2 AS cor0
----
288

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 5 IS NULL
----

query I rowsort
SELECT ALL + col0 * - - 18 FROM tab1 AS cor0
----
1530
1638
918

query I rowsort
SELECT DISTINCT + + col2 * - - 98 AS col1 FROM tab0 AS cor0
----
4606
9702
980

onlyif mysql # DIV for integer division: 
query II rowsort label-1974
SELECT + col2, + 10 DIV col2 FROM tab1 AS cor0
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-1974
SELECT + col2, + 10 / col2 FROM tab1 AS cor0
----
59
0
68
0
96
0

query I rowsort
SELECT - 52 + - col1 AS col1 FROM tab0
----
-133
-53
-73

query I rowsort
SELECT 19 AS col0 FROM tab2 WHERE col0 IN ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 59 BETWEEN - col2 + - col1 AND 49
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 1 * 32 AS col1 FROM tab1 WHERE NOT NULL <> ( col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 IN ( + col1 )
----

query I rowsort
SELECT 20 + + col0 AS col2 FROM tab1
----
105
111
71

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN col1 * + 46 AND col2 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT + 42 + COUNT( * ) AS col2 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-1982
SELECT + 42 + COUNT ( * ) AS col2 FROM tab1
----
45

query III rowsort
SELECT * FROM tab0 WHERE NOT + 22 + - col0 * 15 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1984
SELECT DISTINCT CAST( - col2 AS SIGNED ) * - col2 FROM tab1
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * - col2 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT col1 + 69 AS col2 FROM tab1
----
116
74
83

query I rowsort
SELECT 32 + col2 * col0 FROM tab1
----
4928
5047
6220

query I rowsort
SELECT ALL - col2 + col0 AS col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( 73 + + col0 )
----

query I rowsort
SELECT col1 * + 52 FROM tab2 WHERE NOT col0 IS NULL
----
2652
3484
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT DISTINCT - 32 * COUNT( * ) AS col2 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-1989
SELECT DISTINCT - 32 * COUNT ( * ) AS col2 FROM tab0
----
-96

query I rowsort
SELECT + col1 * - 68 AS col2 FROM tab0
----
-1428
-5508
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1991
SELECT + CAST( - 7 AS SIGNED ) * 49 AS col1 FROM tab1
----
-343
-343
-343

skipif mysql # not compatible
query I rowsort label-1991
SELECT + CAST ( - 7 AS INTEGER ) * 49 AS col1 FROM tab1
----
-343
-343
-343

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1992
SELECT ALL * FROM tab2 WHERE ( + CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1992
SELECT ALL * FROM tab2 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 11 * col0 AS col1 FROM tab2
----
506
704
825

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 * col1 - col2 >= - 88 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT DISTINCT - COUNT( * ) - - 72 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-1995
SELECT DISTINCT - COUNT ( * ) - - 72 FROM tab2
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 * + col0 col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT ALL 12 * COUNT( * ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL 12 * COUNT ( * ) FROM tab2
----
36

query I rowsort
SELECT DISTINCT col1 + col0 * 52 FROM tab0
----
4545
5045
861

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND ( - col0 ) + col1
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 35 * - ( - col2 ) AS col1 FROM tab1
----
-2065
-2380
-3360

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2002
SELECT - AVG ( col2 ) - CAST( NULL AS DECIMAL ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2002
SELECT - AVG ( col2 ) - CAST ( NULL AS REAL ) col1 FROM tab1
----
NULL

query I rowsort
SELECT + ( col0 ) * - 23 - col0 FROM tab2
----
-1104
-1536
-1800

query I rowsort
SELECT DISTINCT - col1 * + col0 + - ( col0 ) FROM tab1
----
-4368
-510
-765

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 95 ) <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + col1 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 29 = - 64
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + AVG ( ALL - 87 ) AS col0 FROM tab2 WHERE NULL > col1 + col2
----
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND 67
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2010
SELECT DISTINCT + 44 DIV col0 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2010
SELECT DISTINCT + 44 / col0 AS col2 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 62 * + 8 col1 FROM tab1
----
496
496
496

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 78 / col0 + 69 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT ALL - COUNT( DISTINCT + 84 ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2013
SELECT ALL - COUNT ( DISTINCT + 84 ) FROM tab1 cor0
----
-1

query I rowsort
SELECT ALL - col0 + - ( 18 - ( - col1 ) ) AS col2 FROM tab0 AS cor0 WHERE NOT 49 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2015
SELECT DISTINCT - col2 FROM tab2 WHERE NOT + 71 * CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2015
SELECT DISTINCT - col2 FROM tab2 WHERE NOT + 71 * CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( 85 * col1 ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT DISTINCT - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 )
----
-9

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab0 )
----
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 6 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # aggregate syntax: 
query I rowsort label-2020
SELECT COUNT( DISTINCT + 50 ) FROM tab0 AS cor0 CROSS JOIN tab0
----
1

skipif mysql # not compatible
query I rowsort label-2020
SELECT COUNT ( DISTINCT + 50 ) FROM tab0 AS cor0 CROSS JOIN tab0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2021
SELECT DISTINCT - 68 DIV COUNT( * ) FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-2021
SELECT DISTINCT - 68 / COUNT ( * ) FROM tab2 AS cor0
----
-22

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 IN ( - ( - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * 92 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 15 AS col2 FROM tab0 cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2025
SELECT ALL + - MAX( - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL + - MAX ( - col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2026
SELECT ALL - COUNT( - col1 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2026
SELECT ALL - COUNT ( - col1 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT - + ( + MIN( + col0 ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2028
SELECT - + ( + MIN ( + col0 ) ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT DISTINCT - col2 + - col0 AS col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE NOT 20 BETWEEN ( col0 ) AND ( col1 * 76 )
----
1
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2031
SELECT - MIN( DISTINCT + CAST( + col0 AS SIGNED ) ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2031
SELECT - MIN ( DISTINCT + CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab0
----
-15

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 < + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 * col2 * - col1 col2 FROM tab1
----
-22848
-5015
-54332

query I rowsort
SELECT DISTINCT ( col0 ) * 40 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE NOT ( col0 * col2 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2035
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( col0 * col2 ) IS NULL
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2036
SELECT CAST( - + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2036
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT 2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 <> col1
----

query I rowsort
SELECT DISTINCT + 87 * col1 AS col2 FROM tab1
----
1218
4089
435

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT 51 * + SUM( col2 ) FROM tab1
----
11373

skipif mysql # not compatible
query I rowsort label-2040
SELECT 51 * + SUM ( col2 ) FROM tab1
----
11373

query I rowsort
SELECT DISTINCT + col2 * + col1 AS col1 FROM tab1 cor0
----
1344
295
3196

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 = + col0 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2044
SELECT - 50 + + CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
1
35
41

skipif mysql # not compatible
query I rowsort label-2044
SELECT - 50 + + CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
1
35
41

query I rowsort
SELECT ALL ( ( - col1 ) ) AS col2 FROM tab0 AS cor0 WHERE - 33 NOT IN ( - col2 )
----
-1
-21
-81

query I rowsort
SELECT col2 + - + 66 AS col1 FROM tab2 cor0
----
-26
-43
-8

query I rowsort
SELECT col0 + col0 FROM tab0 WHERE ( NOT col2 IS NULL )
----
174
194
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2048
SELECT + ( CAST( NULL AS SIGNED ) ) + - CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2048
SELECT + ( CAST ( NULL AS INTEGER ) ) + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT - COUNT( * ) + + 56 AS col0 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-2049
SELECT - COUNT ( * ) + + 56 AS col0 FROM tab2
----
53

query I rowsort
SELECT DISTINCT + ( + col1 ) + + col0 FROM tab1
----
138
65
90

query I rowsort
SELECT DISTINCT + 69 * 6 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
414

query I rowsort
SELECT ALL + 90 * - ( - 19 ) + 36 * 58 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to eb29017a21b2eeef81538ae7b0c97454

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE ( col1 ) NOT BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE ( col1 ) NOT BETWEEN NULL AND ( NULL )
----
0

query I rowsort
SELECT - col2 * + 88 * col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-62040
-76560
-845064

query II rowsort
SELECT ALL + + col1, - col2 AS col0 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2056
SELECT DISTINCT - - COUNT( ALL - CAST( + 75 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2056
SELECT DISTINCT - - COUNT ( ALL - CAST ( + 75 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + ( + + col1 ) - - + 94 * - col1 FROM tab1 AS cor0
----
-1302
-4371
-465

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + col0 + - - 5 ) BETWEEN ( - col2 ) AND ( + 53 )
----
46
51
23

query I rowsort
SELECT ALL - col2 * + 39 AS col1 FROM tab1 AS cor0
----
-2301
-2652
-3744

onlyif mysql # aggregate syntax: 
query I rowsort label-2060
SELECT + + COUNT( * ) - 76 FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-2060
SELECT + + COUNT ( * ) - 76 FROM tab2 AS cor0
----
-73

query I rowsort
SELECT 25 - + + 60 FROM tab0 AS cor0
----
-35
-35
-35

query I rowsort
SELECT + col2 + - col2 + - - col0 AS col1 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT ALL - MAX( ALL - 77 ) * 25 AS col2 FROM tab2
----
1925

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL - MAX ( ALL - 77 ) * 25 AS col2 FROM tab2
----
1925

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT + COUNT( * ) + + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2064
SELECT + COUNT ( * ) + + COUNT ( * ) FROM tab1
----
6

query I rowsort
SELECT DISTINCT - 37 + + col0 * 43 FROM tab1
----
2156
3618
3876

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2066
SELECT ALL + col2 * - CAST( + col1 AS SIGNED ) + - + CAST( col1 AS SIGNED ) + col2 FROM tab1
----
-1262
-241
-3175

skipif mysql # not compatible
query I rowsort label-2066
SELECT ALL + col2 * - CAST ( + col1 AS INTEGER ) + - + CAST ( col1 AS INTEGER ) + col2 FROM tab1
----
-1262
-241
-3175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2067
SELECT CAST( NULL AS SIGNED ) FROM tab2 WHERE ( + + col1 - - - col2 ) IN ( CAST( 20 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2067
SELECT CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( + + col1 - - - col2 ) IN ( CAST ( 20 AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2068
SELECT ALL + 54 + CAST( + ( COUNT( * ) ) AS SIGNED ) * + MAX( ALL + col2 ) AS col2 FROM tab0
----
351

skipif mysql # not compatible
query I rowsort label-2068
SELECT ALL + 54 + CAST ( + ( COUNT ( * ) ) AS INTEGER ) * + MAX ( ALL + col2 ) AS col2 FROM tab0
----
351

query I rowsort
SELECT + + col2 * col2 FROM tab1 WHERE NULL IS NULL
----
3481
4624
9216

query III rowsort
SELECT * FROM tab0 WHERE ( + + 58 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE ( ( + - 84 ) ) IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2072
SELECT ALL + 91 - + - COUNT( * ) + 30 FROM tab1 cor0
----
124

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL + 91 - + - COUNT ( * ) + 30 FROM tab1 cor0
----
124

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 38 - + 19 NOT BETWEEN col2 AND ( - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 >= - 8 - + 66 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 83 col2 FROM tab0 AS cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT ( + - COUNT( * ) ) * - 84 - 27 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
729

skipif mysql # not compatible
query I rowsort label-2076
SELECT ( + - COUNT ( * ) ) * - 84 - 27 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
729

query I rowsort
SELECT DISTINCT 32 * + 95 AS col2 FROM tab1
----
3040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 8 col0, + col0 * - col2 FROM tab1
----
8
-4896
8
-5015
8
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 col1 FROM tab0
----
28
28
28

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 99 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2081
SELECT DISTINCT + 86 - - COUNT( * ) + COUNT( * ) DIV COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
96

skipif mysql # not compatible
query I rowsort label-2081
SELECT DISTINCT + 86 - - COUNT ( * ) + COUNT ( * ) / COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2082
SELECT DISTINCT ( - - MIN( col2 ) ) AS col2, - 76 FROM tab1
----
59
-76

skipif mysql # not compatible
query II rowsort label-2082
SELECT DISTINCT ( - - MIN ( col2 ) ) AS col2, - 76 FROM tab1
----
59
-76

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 IN ( 41 * + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 36 col0 FROM tab2 AS cor0
----
-1440
-2088
-828

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT DISTINCT - MIN( + + col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT - MIN ( + + col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2086
SELECT CAST( NULL AS DECIMAL ) / + COUNT( * ) FROM tab1 cor0 WHERE NOT + ( + col2 ) = + col0 * - col0 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2086
SELECT CAST ( NULL AS REAL ) / + COUNT ( * ) FROM tab1 cor0 WHERE NOT + ( + col2 ) = + col0 * - col0 * col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT - + ( - + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2087
SELECT - + ( - + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT MAX( ALL + col2 ) FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-2088
SELECT MAX ( ALL + col2 ) FROM tab0 cor0
----
99

query I rowsort
SELECT ALL + - 70 AS col2 FROM tab1 AS cor0
----
-70
-70
-70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2090
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, + col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-2090
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + 75 col1 FROM tab1
----
122
80
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2092
SELECT ( + COUNT( DISTINCT + col2 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2092
SELECT ( + COUNT ( DISTINCT + col2 ) ) AS col2 FROM tab2
----
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 cor0 WHERE NOT ( + + 68 + 78 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT DISTINCT MIN( DISTINCT + 85 ) * + 98 * COUNT( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
24990

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT MIN ( DISTINCT + 85 ) * + 98 * COUNT ( * ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
24990

query II rowsort
SELECT DISTINCT - - col1 AS col1, 35 FROM tab0 AS cor0
----
1
35
21
35
81
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2096
SELECT + COUNT( * ) * - - 68 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
612

skipif mysql # not compatible
query I rowsort label-2096
SELECT + COUNT ( * ) * - - 68 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
612

onlyif mysql # aggregate syntax: 
query II rowsort label-2097
SELECT DISTINCT - - COUNT( - col2 ) AS col2, 5 AS col1 FROM tab2 AS cor0
----
3
5

skipif mysql # not compatible
query II rowsort label-2097
SELECT DISTINCT - - COUNT ( - col2 ) AS col2, 5 AS col1 FROM tab2 AS cor0
----
3
5

query I rowsort
SELECT ALL - ( - 64 ) + + 79 AS col1 FROM tab0 AS cor0 WHERE - col0 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2099
SELECT ALL COUNT( * ) col0, 48 FROM tab1 cor0
----
3
48

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2099
SELECT ALL COUNT ( * ) col0, 48 FROM tab1 cor0
----
3
48

query I rowsort
SELECT ALL + + ( col2 ) + - col0 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT DISTINCT col2 + col0 - + 97 + - 19 + - col2 * + + col2 AS col0 FROM tab1
----
-3453
-4581
-9185

query I rowsort
SELECT 25 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2103
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( + - col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2103
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( + - col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT DISTINCT + 18 * - COUNT( - - 0 ) AS col1 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-2104
SELECT DISTINCT + 18 * - COUNT ( - - 0 ) AS col1 FROM tab1 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-2105
SELECT 14 + + + MIN( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2105
SELECT 14 + + + MIN ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-2106
SELECT ALL + ( + col1 ) DIV + - col2 + col1 + - + 31 * col1 - - col1 + + col1 DIV col1 FROM tab1 AS cor0
----
-1362
-144
-405

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL + ( + col1 ) / + - col2 + col1 + - + 31 * col1 - - col1 + + col1 / col1 FROM tab1 AS cor0
----
-1362
-144
-405

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2107
SELECT * FROM tab2 AS cor0 WHERE 0 NOT BETWEEN - col0 * CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2107
SELECT * FROM tab2 AS cor0 WHERE 0 NOT BETWEEN - col0 * CAST ( NULL AS INTEGER ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 * - - 30 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2110
SELECT ALL - SUM( DISTINCT col1 ), COUNT( * ) AS col2 FROM tab2 cor0
----
-195
3

skipif mysql # not compatible
query II rowsort label-2110
SELECT ALL - SUM ( DISTINCT col1 ), COUNT ( * ) AS col2 FROM tab2 cor0
----
-195
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2111
SELECT ALL - + col0 * - 42 + - CAST( NULL AS DECIMAL ) * + + col0 AS col0 FROM tab1 WHERE 80 >= NULL OR NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-2111
SELECT ALL - + col0 * - 42 + - CAST ( NULL AS REAL ) * + + col0 AS col0 FROM tab1 WHERE 80 >= NULL OR NULL >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 19 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT 62 * - COUNT( * ) FROM tab0
----
-186

skipif mysql # not compatible
query I rowsort label-2113
SELECT 62 * - COUNT ( * ) FROM tab0
----
-186

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 18 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 27 * + 44 FROM tab0
----
1188

query I rowsort
SELECT + ( 2 ) AS col1 FROM tab2
----
2
2
2

query III rowsort
SELECT * FROM tab2 WHERE + col1 / + 83 NOT IN ( 25 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 29 - + + col0 FROM tab0
----
-116
-126
-44

query I rowsort
SELECT ALL - - 69 AS col0 FROM tab1 WHERE + + 48 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2120
SELECT ALL + COUNT( ALL - 48 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL + COUNT ( ALL - 48 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + col2 + - 49 AS col1 FROM tab2 AS cor0 WHERE + col0 * - 53 IS NULL
----

query II rowsort
SELECT + col0 * 93 AS col1, + col1 + - - 71 FROM tab0
----
1395
152
8091
92
9021
72

query I rowsort
SELECT - 71 * col1 FROM tab0 WHERE NOT + 41 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT ALL 82 * COUNT( * ) * COUNT( - + col0 ) FROM tab1 AS cor0
----
738

skipif mysql # not compatible
query I rowsort label-2125
SELECT ALL 82 * COUNT ( * ) * COUNT ( - + col0 ) FROM tab1 AS cor0
----
738

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 62 < - 81 + + col1 / 92
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-2127
SELECT DISTINCT ( + - 54 ), col2 DIV - + 90 AS col1 FROM tab0 cor0
----
-54
-1
-54
0

skipif mysql # not compatible
query II rowsort label-2127
SELECT DISTINCT ( + - 54 ), col2 / - + 90 AS col1 FROM tab0 cor0
----
-54
-1
-54
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT + MIN( ALL col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-2128
SELECT + MIN ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2129
SELECT ( - - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2129
SELECT ( - - CAST ( NULL AS REAL ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2130
SELECT ALL - MAX( DISTINCT - + col0 ) DIV + 92 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL - MAX ( DISTINCT - + col0 ) / + 92 AS col2 FROM tab0 AS cor0
----
0

query II rowsort
SELECT - 83 * - col1 AS col2, col2 AS col0 FROM tab2 AS cor0
----
4233
23
5561
58
6391
40

onlyif mysql # DIV for integer division: 
query II rowsort label-2132
SELECT DISTINCT 60 DIV + ( - 95 ), 26 AS col0 FROM tab1
----
0
26

skipif mysql # not compatible
query II rowsort label-2132
SELECT DISTINCT 60 / + ( - 95 ), 26 AS col0 FROM tab1
----
0
26

query I rowsort
SELECT DISTINCT + 87 + col2 FROM tab0
----
134
186
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 + - - ( - col2 ) col2 FROM tab2
----
-10
25
8

query I rowsort
SELECT ALL - 94 - + 62 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT 11 AS col2, + col0 + - 30 * col0 AS col1 FROM tab2
----
11
-1334
11
-1856
11
-2175

query I rowsort
SELECT ALL + col2 + 26 FROM tab2
----
49
66
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2138
SELECT + + AVG ( col1 ) AS col2, + MAX( + col2 ) + + ( 80 ) * - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT + 17 IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-2138
SELECT + + AVG ( col1 ) AS col2, + MAX ( + col2 ) + + ( 80 ) * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT + 17 IS NOT NULL
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT - MIN( - + col1 ) AS col0 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2139
SELECT - MIN ( - + col1 ) AS col0 FROM tab0
----
81

query II rowsort
SELECT + col0 AS col1, ( - col1 ) FROM tab2
----
46
-51
64
-77
75
-67

query I rowsort
SELECT ALL + 32 FROM tab2 WHERE NOT NULL IS NOT NULL
----
32
32
32

query I rowsort
SELECT - col1 FROM tab2 WHERE col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2143
SELECT 30 + + COUNT( * ) FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-2143
SELECT 30 + + COUNT ( * ) FROM tab0 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT DISTINCT + - ( + - COUNT( * ) ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2144
SELECT DISTINCT + - ( + - COUNT ( * ) ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT - 67 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

onlyif mysql # aggregate syntax: 
query I rowsort label-2146
SELECT + MIN( col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2146
SELECT + MIN ( col0 ) FROM tab2
----
46

query I rowsort
SELECT DISTINCT - + 27 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-27

query I rowsort
SELECT - + 11 - - col2 AS col2 FROM tab2 AS cor0
----
12
29
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT ALL + COUNT( * ) + + 79 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-2149
SELECT ALL + COUNT ( * ) + + 79 FROM tab0 AS cor0
----
82

query II rowsort
SELECT ALL - 34 AS col1, 79 + - col1 AS col2 FROM tab1 cor0
----
-34
32
-34
65
-34
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT ALL COUNT( + ( - 41 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2151
SELECT ALL COUNT ( + ( - 41 ) ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2152
SELECT + col2 + - col1 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2152
SELECT + col2 + - col1 * - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 12 * - col1 + col1 + + col2 AS col0 FROM tab2 AS cor0
----
1041
686
929

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2154
SELECT DISTINCT * FROM tab2 WHERE NOT 18 * - - CAST( NULL AS SIGNED ) < + 27 - col1
----

skipif mysql # not compatible
query III rowsort label-2154
SELECT DISTINCT * FROM tab2 WHERE NOT 18 * - - CAST ( NULL AS INTEGER ) < + 27 - col1
----

query I rowsort
SELECT ALL + col0 * col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
2346
4928
5025

query III rowsort
SELECT * FROM tab0 WHERE ( + 60 ) IS NULL
----

query I rowsort
SELECT + 46 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 99 * + col0 + - - 31 - + + 61 FROM tab0
----
-1515
-8643
-9633

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2159
SELECT ALL CAST( 69 AS SIGNED ) FROM tab1
----
69
69
69

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL CAST ( 69 AS INTEGER ) FROM tab1
----
69
69
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2160
SELECT DISTINCT + 88 DIV - 6 AS col2, - SUM( ALL - - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
-14
NULL

skipif mysql # not compatible
query II rowsort label-2160
SELECT DISTINCT + 88 / - 6 AS col2, - SUM ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
-14
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 60 col2 FROM tab1
----
2820
300
840

onlyif mysql # DIV for integer division: 
query I rowsort label-2162
SELECT - ( + ( + 64 ) ) * col2 DIV 4 - - - 65 DIV - 92 AS col0 FROM tab1
----
-1088
-1536
-944

skipif mysql # not compatible
query I rowsort label-2162
SELECT - ( + ( + 64 ) ) * col2 / 4 - - - 65 / - 92 AS col0 FROM tab1
----
-1088
-1536
-944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2163
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 WHERE NOT + col2 + + + 69 > - + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE NOT + col2 + + + 69 > - + CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT + col2 * + - 86 FROM tab2
----
-1978
-3440
-4988

onlyif mysql # DIV for integer division: 
query I rowsort label-2165
SELECT - 76 DIV + - col2 + + - col2 DIV - col2 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-2165
SELECT - 76 / + - col2 + + - col2 / - col2 FROM tab1 AS cor0
----
1
2
2

query I rowsort
SELECT + - 83 * - col2 + + 74 + + 24 * + - 91 FROM tab0 AS cor0
----
-1280
1791
6107

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL BETWEEN col1 AND NULL
----

query II rowsort
SELECT DISTINCT - 28 AS col2, 47 AS col1 FROM tab0 AS cor0
----
-28
47

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col0 < NULL )
----

query I rowsort
SELECT DISTINCT - + ( + - col0 ) + + col0 AS col1 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # aggregate syntax: 
query II rowsort label-2171
SELECT DISTINCT COUNT( + + col1 ) AS col2, COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-2171
SELECT DISTINCT COUNT ( + + col1 ) AS col2, COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT DISTINCT + COUNT( * ) + 42 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-2172
SELECT DISTINCT + COUNT ( * ) + 42 FROM tab0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2173
SELECT DISTINCT * FROM tab0 WHERE + CAST( + - 95 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2173
SELECT DISTINCT * FROM tab0 WHERE + CAST ( + - 95 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2174
SELECT ALL - 59 + + MIN( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2174
SELECT ALL - 59 + + MIN ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT + col0 * - 42 AS col2, col1 FROM tab1
----
-2142
14
-3570
5
-3822
47

query I rowsort
SELECT ALL ( col1 ) * + - col0 + col2 AS col1 FROM tab1
----
-366
-4209
-618

onlyif mysql # DIV for integer division: 
query I rowsort label-2177
SELECT ALL 31 DIV - - 69 * - col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2177
SELECT ALL 31 / - - 69 * - col2 FROM tab0
----
0
0
0

query I rowsort
SELECT + col2 * col1 + - col0 AS col1 FROM tab0 AS cor0
----
123
2
3792

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2179
SELECT DISTINCT + - ( + COUNT( * ) ) - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2179
SELECT DISTINCT + - ( + COUNT ( * ) ) - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2180
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2, tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + col2 + + 25 + + col2 * ( + col2 ) * - - 8 * - 30 FROM tab2
----
-126912
-383935
-807277

onlyif mysql # DIV for integer division: 
query I rowsort label-2182
SELECT ALL + - col2 - 44 DIV - col0 + - col0 AS col2 FROM tab1 AS cor0
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-2182
SELECT ALL + - col2 - 44 / - col0 + - col0 AS col2 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT ALL + 81 * + - 35 FROM tab1 cor0 WHERE + col2 + - col1 - - col0 + - col0 IS NOT NULL
----
-2835
-2835
-2835

query I rowsort
SELECT DISTINCT - + col2 - + - col2 + - ( - - 70 ) AS col1 FROM tab0 AS cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT + SUM( ALL - 4 ) FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2185
SELECT + SUM ( ALL - 4 ) FROM tab1 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT DISTINCT MIN( - 53 ) AS col1 FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT MIN ( - 53 ) AS col1 FROM tab2 AS cor0
----
-53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT - + COUNT( * ) FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - - 51, col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2188
SELECT - + COUNT ( * ) FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - - 51, col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT DISTINCT - + COUNT( + 58 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2189
SELECT DISTINCT - + COUNT ( + 58 ) col1 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2190
SELECT col2 DIV - + col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2190
SELECT col2 / - + col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2191
SELECT ( + CAST( NULL AS SIGNED ) ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2191
SELECT ( + CAST ( NULL AS INTEGER ) ) col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT ALL COUNT( + col1 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2192
SELECT ALL COUNT ( + col1 ) col1 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 NOT BETWEEN NULL AND - col0 / col2 / + col0
----

query II rowsort
SELECT ALL - col0 AS col1, col1 FROM tab1
----
-51
14
-85
5
-91
47

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 * 5 <> ( col2 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT DISTINCT - + ( MAX( 79 ) ) AS col0 FROM tab0 cor0
----
-79

skipif mysql # not compatible
query I rowsort label-2196
SELECT DISTINCT - + ( MAX ( 79 ) ) AS col0 FROM tab0 cor0
----
-79

query II rowsort
SELECT ALL + col2 AS col1, + col2 AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT ALL - - col0 FROM tab1 WHERE - col0 * - 42 * 50 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 44 >= NULL
----

query I rowsort
SELECT DISTINCT + 2 FROM tab2 cor0
----
2

query I rowsort
SELECT ALL - + 34 AS col1 FROM tab1 AS cor0
----
-34
-34
-34

query I rowsort
SELECT DISTINCT + - ( + col1 ) * - - col2 / 38 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT + - ( + col2 ), col0 AS col0 FROM tab2 cor0
----
-23
46
-40
64
-58
75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2204
SELECT ALL CAST( NULL AS DECIMAL ) + + COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2204
SELECT ALL CAST ( NULL AS REAL ) + + COUNT ( * ) AS col2 FROM tab2
----
NULL

query II rowsort
SELECT + 61 AS col2, 94 + col1 AS col0 FROM tab0
----
61
115
61
175
61
95

query III rowsort
SELECT * FROM tab1 WHERE + + 31 * - 78 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT - SUM( + 12 ) + + + 11 * - + COUNT( * ) AS col2 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-2207
SELECT - SUM ( + 12 ) + + + 11 * - + COUNT ( * ) AS col2 FROM tab2
----
-69

query I rowsort
SELECT col0 + + 5 * 85 FROM tab1
----
476
510
516

query I rowsort
SELECT + col0 + + 51 AS col1 FROM tab2
----
115
126
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2210
SELECT - COUNT( * ) + - 81 AS col1 FROM tab1 WHERE ( NULL ) BETWEEN col1 * + col2 / 88 AND NULL
----
-81

skipif mysql # not compatible
query I rowsort label-2210
SELECT - COUNT ( * ) + - 81 AS col1 FROM tab1 WHERE ( NULL ) BETWEEN col1 * + col2 / 88 AND NULL
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT + SUM( - - col2 ) + + - 77 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2211
SELECT + SUM ( - - col2 ) + + - 77 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * - col1 + - - col2 FROM tab2
----
-2578
-4431
-5889

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT ALL - MIN( - 96 ) FROM tab1 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2213
SELECT ALL - MIN ( - 96 ) FROM tab1 WHERE NOT NULL >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2214
SELECT ALL + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL <> - 2
----
0

skipif mysql # not compatible
query I rowsort label-2214
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL <> - 2
----
0

query I rowsort
SELECT ALL col0 * + col2 - + + ( 28 ) * col2 AS col2 FROM tab0 AS cor0
----
-611
590
6831

query I rowsort
SELECT 80 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT DISTINCT + col0 + + ( + + col1 ) FROM tab0
----
108
96
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2218
SELECT ALL - - col0 * - col1 + 38 + - + col2, col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
-1224
NULL
-158
NULL
-1799
NULL

skipif mysql # not compatible
query II rowsort label-2218
SELECT ALL - - col0 * - col1 + 38 + - + col2, col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
-1224
NULL
-158
NULL
-1799
NULL

query I rowsort
SELECT ALL - - 14 - + + col0 + - + col1 - - + col2 * - 8 AS col0 FROM tab2 AS cor0
----
-267
-447
-592

query I rowsort
SELECT DISTINCT + - 24 FROM tab2 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2221
SELECT + + CAST( col1 AS SIGNED ) FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2221
SELECT + + CAST ( col1 AS INTEGER ) FROM tab1 cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT ALL - + MAX( - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL - + MAX ( - col2 ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT - 15 AS col2 FROM tab2 cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT + 93 * COUNT( * ) AS col0 FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-2224
SELECT + 93 * COUNT ( * ) AS col0 FROM tab1
----
279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2225
SELECT DISTINCT COUNT( * ) DIV + SUM( ALL - - col1 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT COUNT ( * ) / + SUM ( ALL - - col1 ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2226
SELECT COUNT( * ) AS col2, - 23 AS col0 FROM tab2
----
3
-23

skipif mysql # not compatible
query II rowsort label-2226
SELECT COUNT ( * ) AS col2, - 23 AS col0 FROM tab2
----
3
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2227
SELECT DISTINCT MAX( DISTINCT 73 ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-2227
SELECT DISTINCT MAX ( DISTINCT 73 ) FROM tab0
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - col2 col2 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT ALL + COUNT( ALL - - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2229
SELECT ALL + COUNT ( ALL - - col1 ) FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 7 IS NOT NULL
----

query II rowsort
SELECT - - 14 AS col0, - 56 + col2 * col2 * + col0 + - col2 FROM tab1 cor0
----
14
295770
14
420660
14
469864

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 col0, + col2 - col1 + + col0 - - col0 * + 84 FROM tab1 AS cor0
----
51
4417
85
7279
91
7756

query II rowsort
SELECT - 18, 17 * - - 31 AS col0 FROM tab1 AS cor0
----
-18
527
-18
527
-18
527

query I rowsort
SELECT - 93 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT - 12 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query II rowsort
SELECT DISTINCT col0 * - 50, col2 AS col1 FROM tab0
----
-4350
10
-4850
99
-750
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT ALL + MIN( + col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL + MIN ( + col2 ) AS col0 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-2239
SELECT DISTINCT 79, 11 + 34 * + ( - COUNT( * ) ) col2 FROM tab1 AS cor0
----
79
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2239
SELECT DISTINCT 79, 11 + 34 * + ( - COUNT ( * ) ) col2 FROM tab1 AS cor0
----
79
-91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 96 NOT IN ( + col2, + col1, col0 * col1 / 14 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2241
SELECT + - 79 + + 98 DIV col0 FROM tab1 AS cor0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-2241
SELECT + - 79 + + 98 / col0 FROM tab1 AS cor0
----
-78
-78
-78

query II rowsort
SELECT 21 + + - col0, - 16 AS col0 FROM tab2 AS cor0
----
-25
-16
-43
-16
-54
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col2, col1 * - col2 col1 FROM tab2 AS cor0
----
46
-1173
64
-3080
75
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT + MIN( - 40 ) + - 62 * COUNT( ALL + 29 ) col1 FROM tab2 AS cor0
----
-226

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2244
SELECT + MIN ( - 40 ) + - 62 * COUNT ( ALL + 29 ) col1 FROM tab2 AS cor0
----
-226

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2245
SELECT - ( 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-2245
SELECT - ( CAST ( NULL AS INTEGER ) ) + - col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + - + col1 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query II rowsort label-2247
SELECT DISTINCT - + COUNT( * ) AS col2, SUM( ALL 52 ) * MIN( - + ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-3
7176

skipif mysql # not compatible
query II rowsort label-2247
SELECT DISTINCT - + COUNT ( * ) AS col2, SUM ( ALL 52 ) * MIN ( - + ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-3
7176

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 + + col2 * - col2 * - - ( 79 ) AS col0 FROM tab0
----
-174526
-774376
-7987

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 WHERE NULL >= + 26
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * + + col1 + + - col1 AS col1, - ( + col1 ) col0 FROM tab0
----
1134
-81
1806
-21
96
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col0 BETWEEN - col2 AND 12
----
15
81
47
97
1
99

query III rowsort
SELECT * FROM tab0 WHERE - + 37 NOT BETWEEN col1 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 38 * 93 AS col2 FROM tab0
----
3534

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT COUNT( DISTINCT + + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2255
SELECT COUNT ( DISTINCT + + col2 ) FROM tab0
----
3

query I rowsort
SELECT ALL 65 + + 8 FROM tab2
----
73
73
73

query I rowsort
SELECT ALL + col2 + + 74 * + 67 + col0 FROM tab0
----
5020
5055
5154

onlyif mysql # aggregate syntax: 
query I rowsort label-2258
SELECT COUNT( + col0 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2258
SELECT COUNT ( + col0 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE + 88 IS NULL
----

query II rowsort
SELECT ALL col0 * - 18, - col2 + + ( + col1 ) * - - 4 AS col1 FROM tab2 cor0
----
-1152
268
-1350
210
-828
181

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT DISTINCT COUNT( DISTINCT - + 92 ) * 6 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2261
SELECT DISTINCT COUNT ( DISTINCT - + 92 ) * 6 FROM tab1
----
6

query I rowsort
SELECT ALL - 59 * - - col1 FROM tab1
----
-2773
-295
-826

query I rowsort
SELECT - 37 + - col1 FROM tab2
----
-104
-114
-88

query I rowsort
SELECT DISTINCT - 11 + 68 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
57

query I rowsort
SELECT ALL - col2 * - 88 FROM tab0 AS cor0
----
4136
8712
880

query I rowsort
SELECT ALL - col2 * + 63 FROM tab2 AS cor0
----
-1449
-2520
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-2267
SELECT ALL - MIN( col1 ) FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2267
SELECT ALL - MIN ( col1 ) FROM tab0 cor0
----
-1

query I rowsort
SELECT ALL col1 * - + 67 + + - col2 FROM tab0 AS cor0 WHERE - 85 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT ALL - 54 + COUNT( * ) FROM tab2 AS cor0 WHERE - 45 NOT BETWEEN col2 AND NULL
----
-51

skipif mysql # not compatible
query I rowsort label-2269
SELECT ALL - 54 + COUNT ( * ) FROM tab2 AS cor0 WHERE - 45 NOT BETWEEN col2 AND NULL
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, + col2 AS col0 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2271
SELECT DISTINCT + 51 * COUNT( * ) FROM tab0 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-2271
SELECT DISTINCT + 51 * COUNT ( * ) FROM tab0 AS cor0
----
153

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 99 AND - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2273
SELECT ALL - - col0 * - col0 DIV - col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL - - col0 * - col0 / - col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - col1 * - col1 * - + col1 AS col1 FROM tab2
----
-132651
-300763
-456533

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT ALL ( - SUM( - 48 ) ) FROM tab0
----
144

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL ( - SUM ( - 48 ) ) FROM tab0
----
144

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * - col2 NOT BETWEEN - 13 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col2 AND 27
----

query I rowsort
SELECT 88 + - - col2 * - 31 AS col0 FROM tab0 AS cor0
----
-1369
-222
-2981

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2279
SELECT DISTINCT COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2279
SELECT DISTINCT COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT col1 + + col1 * + - 48 AS col0 FROM tab1
----
-2209
-235
-658

query I rowsort
SELECT DISTINCT + 73 * + 98 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
7154

query I rowsort
SELECT + - 37 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT - col2 * + col0 * - - col0 FROM tab1
----
-249696
-426275
-563108

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE ( - 72 IS NOT NULL )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT + COUNT( * ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2285
SELECT + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

query II rowsort
SELECT 10 * - 68 * - - 94 AS col1, 90 FROM tab1 cor0
----
-63920
90
-63920
90
-63920
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT 66 + + - COUNT( * ) AS col1 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-2287
SELECT 66 + + - COUNT ( * ) AS col1 FROM tab1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2288
SELECT + 91 * - COUNT( 78 ) + + 32 FROM tab1
----
-241

skipif mysql # not compatible
query I rowsort label-2288
SELECT + 91 * - COUNT ( 78 ) + + 32 FROM tab1
----
-241

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2289
SELECT * FROM tab1 WHERE + col1 NOT BETWEEN ( + ( + col2 ) + CAST( NULL AS SIGNED ) + - - col0 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2289
SELECT * FROM tab1 WHERE + col1 NOT BETWEEN ( + ( + col2 ) + CAST ( NULL AS INTEGER ) + - - col0 ) AND NULL
----

query I rowsort
SELECT 14 + - + col2 AS col0 FROM tab2
----
-26
-44
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2291
SELECT ALL * FROM tab1 WHERE CAST( + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2291
SELECT ALL * FROM tab1 WHERE CAST ( + col2 AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 69 col2 FROM tab2
----
-23
-5
6

query I rowsort
SELECT + col2 * col1 + - 31 AS col1 FROM tab2
----
1142
3049
3855

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2294
SELECT * FROM tab0 WHERE - CAST( + - 8 AS SIGNED ) + 26 <> ( 34 * + col1 )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-2294
SELECT * FROM tab0 WHERE - CAST ( + - 8 AS INTEGER ) + 26 <> ( 34 * + col1 )
----
15
81
47
87
21
10

query I rowsort
SELECT ALL - ( + - ( col1 ) ) * + col1 - + col0 FROM tab0 AS cor0
----
-96
354
6546

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT COUNT( * ) * + 43 AS col0 FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-2296
SELECT COUNT ( * ) * + 43 AS col0 FROM tab1 AS cor0
----
129

query I rowsort
SELECT DISTINCT - col0 * col0 + ( + - col0 ) - col1 FROM tab0 WHERE NOT ( NOT ( NOT ( col2 = ( - col0 ) ) ) )
----
-321
-7677
-9507

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2299
SELECT DISTINCT COUNT( 3 ) AS col0, SUM( + ( + CAST( col1 AS SIGNED ) ) ) FROM tab2 AS cor0
----
3
195

skipif mysql # not compatible
query II rowsort label-2299
SELECT DISTINCT COUNT ( 3 ) AS col0, SUM ( + ( + CAST ( col1 AS INTEGER ) ) ) FROM tab2 AS cor0
----
3
195

onlyif mysql # DIV for integer division: 
query I rowsort label-2300
SELECT - col2 DIV + col2 + + col0 FROM tab1 AS cor0
----
50
84
90

skipif mysql # not compatible
query I rowsort label-2300
SELECT - col2 / + col2 + + col0 FROM tab1 AS cor0
----
50
84
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2301
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 IN ( - ( + - 77 ) + + - 29, + col2, + + 57, + + CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2301
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 IN ( - ( + - 77 ) + + - 29, + col2, + + 57, + + CAST ( - col2 AS INTEGER ) )
----

query I rowsort
SELECT - ( - - 27 ) FROM tab1 AS cor0
----
-27
-27
-27

query II rowsort
SELECT ALL col2 * - 73, + col0 AS col0 FROM tab0 AS cor0
----
-3431
15
-7227
97
-730
87

onlyif mysql # DIV for integer division: 
query I rowsort label-2304
SELECT ALL col2 DIV - 51 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2304
SELECT ALL col2 / - 51 FROM tab1 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT BETWEEN + col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2306
SELECT ALL col2 DIV + 34 AS col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL col2 / + 34 AS col0 FROM tab0
----
0
1
2

query I rowsort
SELECT DISTINCT + ( - 32 ) AS col0 FROM tab2
----
-32

query I rowsort
SELECT + col1 * 54 * col2 * + + col1 FROM tab1
----
1016064
79650
8111448

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2309
SELECT ALL * FROM tab1 WHERE NOT + col0 NOT BETWEEN + col2 * 72 + + + col1 / + + col0 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2309
SELECT ALL * FROM tab1 WHERE NOT + col0 NOT BETWEEN + col2 * 72 + + + col1 / + + col0 AND + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT SUM( DISTINCT col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2310
SELECT SUM ( DISTINCT col2 ) FROM tab2
----
121

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( ( NULL BETWEEN - col0 AND + + col2 + col1 ) )
----

query I rowsort
SELECT DISTINCT 2 * - col0 + - col0 FROM tab2 AS cor0
----
-138
-192
-225

query I rowsort
SELECT - + 4 * + 45 AS col2 FROM tab2 WHERE col1 + - col2 * + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2314
SELECT ALL + CAST( col2 AS SIGNED ) + + 88 FROM tab1
----
147
156
184

skipif mysql # not compatible
query I rowsort label-2314
SELECT ALL + CAST ( col2 AS INTEGER ) + + 88 FROM tab1
----
147
156
184

onlyif mysql # DIV for integer division: 
query I rowsort label-2315
SELECT + col1 DIV + - ( - - col0 ) + + - ( - col1 ) AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2315
SELECT + col1 / + - ( - - col0 ) + + - ( - col1 ) AS col1 FROM tab1
----
14
47
5

query I rowsort
SELECT ALL - col0 + + + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 + col1 + + - 35 FROM tab2 AS cor0
----
119
67
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT - SUM( - col2 ) col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2318
SELECT - SUM ( - col2 ) col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT MIN( DISTINCT - - col2 ) + 89 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2319
SELECT MIN ( DISTINCT - - col2 ) + 89 FROM tab0 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - + 39 col1 FROM tab1 AS cor0
----
20
29
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 39 + - - col1 col2 FROM tab2 cor0
----
106
116
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT COUNT( * ) + + COUNT( * ) + 27 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-2322
SELECT COUNT ( * ) + + COUNT ( * ) + 27 FROM tab1 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT - + COUNT( * ) col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2323
SELECT - + COUNT ( * ) col2 FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT 11 + - - 51 FROM tab2
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2325
SELECT 53 DIV - ( + COUNT( * ) ) AS col2, + COUNT( * ) AS col1 FROM tab2
----
-17
3

skipif mysql # not compatible
query II rowsort label-2325
SELECT 53 / - ( + COUNT ( * ) ) AS col2, + COUNT ( * ) AS col1 FROM tab2
----
-17
3

query I rowsort
SELECT DISTINCT + col0 * + 50 AS col0 FROM tab0 WHERE - + 43 + + 93 >= NULL
----

query I rowsort
SELECT DISTINCT 57 + + 83 FROM tab1
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT - MAX( ALL + col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-2328
SELECT - MAX ( ALL + col2 ) AS col0 FROM tab0
----
-99

query I rowsort
SELECT ALL col2 + + + 3 + col1 FROM tab0
----
103
131
34

query I rowsort
SELECT DISTINCT + ( col2 ) + + 42 AS col0 FROM tab0
----
141
52
89

query I rowsort
SELECT - col2 * - 74 + + - col1 + col1 * col1 AS col1 FROM tab2 AS cor0 WHERE col2 - - col1 >= col1
----
4252
8714
8812

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2332
SELECT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) + - 18 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2332
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + - 18 IS NOT NULL
----

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2334
SELECT DISTINCT MAX( ALL - col2 ) FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2334
SELECT DISTINCT MAX ( ALL - col2 ) FROM tab2 cor0
----
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-2335
SELECT ( 25 ) DIV + - col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2335
SELECT ( 25 ) / + - col0 AS col2 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT col0, + col0 * + col2 FROM tab2
----
46
1058
64
2560
75
4350

query I rowsort
SELECT - - 80 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL BETWEEN NULL AND 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2338
SELECT DISTINCT - 7 * - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-2338
SELECT DISTINCT - 7 * - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
21

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 88 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + AVG ( DISTINCT + - col0 ) FROM tab0 AS cor0 WHERE NULL BETWEEN col1 AND 0
----
NULL

query I rowsort
SELECT - + 41 AS col0 FROM tab1 WHERE NOT + - 11 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT DISTINCT + ( - ( - COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2342
SELECT DISTINCT + ( - ( - COUNT ( * ) ) ) FROM tab0
----
3

query I rowsort
SELECT ( + 6 ) FROM tab2
----
6
6
6

query I rowsort
SELECT col2 * + - 18 AS col0 FROM tab1
----
-1062
-1224
-1728

query I rowsort
SELECT DISTINCT - col0 * 56 AS col0 FROM tab1
----
-2856
-4760
-5096

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT + COUNT( * ) + 38 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-2346
SELECT + COUNT ( * ) + 38 FROM tab1 AS cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2347
SELECT col0 FROM tab0 AS cor0 WHERE ( NULL ) IN ( - + col0 * - col0 - ( CAST( NULL AS SIGNED ) ) / col1 + + 41, + ( + - col0 ) )
----

skipif mysql # not compatible
query I rowsort label-2347
SELECT col0 FROM tab0 AS cor0 WHERE ( NULL ) IN ( - + col0 * - col0 - ( CAST ( NULL AS INTEGER ) ) / col1 + + 41, + ( + - col0 ) )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 ) NOT BETWEEN + - col0 * + col2 * 73 + - + col1 + - 63 - - + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - 7 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL <= - 56 )
----

query I rowsort
SELECT ALL - col1 + + + col2 AS col1 FROM tab0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE + 96 NOT IN ( + 90 * + - 1 )
----
3

skipif mysql # not compatible
query I rowsort label-2352
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE + 96 NOT IN ( + 90 * + - 1 )
----
3

query I rowsort
SELECT DISTINCT + col2 - + col2 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col1 + 81 AS col0 FROM tab0 AS cor0
----
0
60
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col0 + + col1 + - col2 * - col1 - + col1 col1 FROM tab2
----
3519
8008
8911

query I rowsort
SELECT ALL - col0 * col0 AS col0 FROM tab2 WHERE + 95 / - + col0 IS NOT NULL
----
-2116
-4096
-5625

query I rowsort
SELECT 11 FROM tab0 WHERE + col2 - - col2 * + + col1 / - ( 58 ) NOT BETWEEN - col2 AND ( col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE col1 BETWEEN NULL AND + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2359
SELECT DISTINCT + COUNT( * ) * + - ( + 6 ) + - CAST( + 48 AS SIGNED ) FROM tab0 WHERE - col2 <> NULL
----
-48

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT + COUNT ( * ) * + - ( + 6 ) + - CAST ( + 48 AS INTEGER ) FROM tab0 WHERE - col2 <> NULL
----
-48

query III rowsort
SELECT * FROM tab2 WHERE col1 BETWEEN col2 * col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT DISTINCT + MAX( 53 ) AS col2 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT + MAX ( 53 ) AS col2 FROM tab2 AS cor0
----
53

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 88 * + + col0 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 WHERE NOT ( - ( - col1 ) ) = NULL
----

query I rowsort
SELECT ALL 60 * - col2 FROM tab2
----
-1380
-2400
-3480

onlyif mysql # aggregate syntax: 
query I rowsort label-2365
SELECT ALL + ( + MAX( DISTINCT + col1 ) ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2365
SELECT ALL + ( + MAX ( DISTINCT + col1 ) ) AS col2 FROM tab0
----
81

query I rowsort
SELECT ALL + + 2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col2 FROM tab0 AS cor0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT ALL - SUM( col1 ) AS col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL - SUM ( col1 ) AS col1 FROM tab2 AS cor0
----
-195

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 11 >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT ALL + + COUNT( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL + + COUNT ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 11 col1 FROM tab1 AS cor0
----
11
11
11

query I rowsort
SELECT DISTINCT + 70 + + + ( + + ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
-11
49
69

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE + 14 IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 + 32 FROM tab2
----
109
83
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col0, + col2 AS col1 FROM tab0
----
-15
47
-87
10
-97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2378
SELECT COUNT( * ) * - + 37 AS col0 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-2378
SELECT COUNT ( * ) * - + 37 AS col0 FROM tab0
----
-111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 col1 FROM tab2 cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2380
SELECT ALL - + 91 * CAST( NULL AS SIGNED ) * + 97 + 66 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2380
SELECT ALL - + 91 * CAST ( NULL AS INTEGER ) * + 97 + 66 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2381
SELECT COUNT( * ) DIV + + 73 * + MAX( ALL + - col2 ) + + + COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2381
SELECT COUNT ( * ) / + + 73 * + MAX ( ALL + - col2 ) + + + COUNT ( * ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2382
SELECT ALL 65 - - COUNT( * ) AS col1 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-2382
SELECT ALL 65 - - COUNT ( * ) AS col1 FROM tab1
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2383
SELECT - col1 + - CAST( - 4 AS SIGNED ) + 65 + - col0 * - col0 * 16 AS col2 FROM tab0 AS cor0
----
121152
150612
3588

skipif mysql # not compatible
query I rowsort label-2383
SELECT - col1 + - CAST ( - 4 AS INTEGER ) + 65 + - col0 * - col0 * 16 AS col2 FROM tab0 AS cor0
----
121152
150612
3588

query I rowsort
SELECT ALL + 34 + + - 60 FROM tab0 AS cor0
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT ALL + MAX( - col2 ) * - 68 AS col0 FROM tab1 AS cor0
----
4012

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL + MAX ( - col2 ) * - 68 AS col0 FROM tab1 AS cor0
----
4012

onlyif mysql # DIV for integer division: 
query I rowsort label-2386
SELECT 85 * + 67 + col0 * col2 DIV col1 + 3 AS col0 FROM tab2 AS cor0
----
5718
5731
5762

skipif mysql # not compatible
query I rowsort label-2386
SELECT 85 * + 67 + col0 * col2 / col1 + 3 AS col0 FROM tab2 AS cor0
----
5718
5731
5762

query I rowsort
SELECT DISTINCT col0 * - - col0 + + 64 - 19 AS col1 FROM tab2 AS cor0
----
2161
4141
5670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) * col0 + - col2 col2 FROM tab2 AS cor0
----
1035
2520
4292

query I rowsort
SELECT + 57 FROM tab0 AS cor0 WHERE ( + - ( - col2 ) <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT ALL - 6 * - MAX( - col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-90

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL - 6 * - MAX ( - col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-90

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 64 * + + col0 <> 8 * + 43 * 71 + - + col2 * + 56 + ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT DISTINCT + + COUNT( ALL + + 42 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT + + COUNT ( ALL + + 42 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - - ( + 6 ) * + + 32 FROM tab2 cor0
----
192
192
192

query I rowsort
SELECT ALL + - 68 AS col0 FROM tab2 WHERE NOT NULL <= - col0 / + 86
----

query I rowsort
SELECT - col1 - + + 96 AS col1 FROM tab1
----
-101
-110
-143

onlyif mysql # DIV for integer division: 
query I rowsort label-2396
SELECT 35 - + 17 DIV - - col1 AS col2 FROM tab0
----
18
35
35

skipif mysql # not compatible
query I rowsort label-2396
SELECT 35 - + 17 / - - col1 AS col2 FROM tab0
----
18
35
35

query I rowsort
SELECT ALL + 0 * col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2398
SELECT 42 DIV - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2398
SELECT 42 / - col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT - COUNT( + 81 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2399
SELECT - COUNT ( + 81 ) FROM tab0
----
-3

query I rowsort
SELECT - col2 * + + ( + - col0 ) AS col2 FROM tab1
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query II rowsort label-2401
SELECT DISTINCT + col1 AS col2, col0 DIV col1 FROM tab2
----
51
0
67
1
77
0

skipif mysql # not compatible
query II rowsort label-2401
SELECT DISTINCT + col1 AS col2, col0 / col1 FROM tab2
----
51
0
67
1
77
0

query II rowsort
SELECT DISTINCT - 1 AS col1, col1 FROM tab1
----
-1
14
-1
47
-1
5

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT ALL - ( COUNT( * ) ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL - ( COUNT ( * ) ) AS col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT + col2 * 19 * + col2 AS col2 FROM tab2
----
10051
30400
63916

query I rowsort
SELECT DISTINCT + - 40 FROM tab2 WHERE NOT + - 83 / - 91 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT + + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 45 + - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2407
SELECT + + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 45 + - col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2408
SELECT + MAX( DISTINCT - col0 ) AS col2, 28 AS col0 FROM tab1 AS cor0
----
-51
28

skipif mysql # not compatible
query II rowsort label-2408
SELECT + MAX ( DISTINCT - col0 ) AS col2, 28 AS col0 FROM tab1 AS cor0
----
-51
28

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT COUNT( * ) AS col0 FROM tab0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2410
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE col2 IS NULL
----
0

query I rowsort
SELECT - col2 + + col0 + + - 87 FROM tab0
----
-10
-119
-89

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT DISTINCT + SUM( DISTINCT 97 ) col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2413
SELECT DISTINCT + SUM ( DISTINCT 97 ) col0 FROM tab0 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2414
SELECT DISTINCT - 57 DIV - col1 + - 71 AS col2 FROM tab0
----
-14
-69
-71

skipif mysql # not compatible
query I rowsort label-2414
SELECT DISTINCT - 57 / - col1 + - 71 AS col2 FROM tab0
----
-14
-69
-71

query I rowsort
SELECT DISTINCT 89 - - col2 * + col2 AS col0 FROM tab0 cor0
----
189
2298
9890

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT - + 93 + + + 79 - - 59 * - + COUNT( * ) FROM tab1 AS cor0
----
-191

skipif mysql # not compatible
query I rowsort label-2416
SELECT - + 93 + + + 79 - - 59 * - + COUNT ( * ) FROM tab1 AS cor0
----
-191

query I rowsort
SELECT DISTINCT - + 20 - - col1 AS col2 FROM tab2 AS cor0
----
31
47
57

query I rowsort
SELECT 97 * - - ( + col1 ) FROM tab1 AS cor0
----
1358
4559
485

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT ALL + COUNT( * ) * COUNT( * ) col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2419
SELECT ALL + COUNT ( * ) * COUNT ( * ) col1 FROM tab1 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 83 * 49 col1 FROM tab0
----
4067

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL <> - 79 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT MAX( ALL + col0 ) col1 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2422
SELECT MAX ( ALL + col0 ) col1 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2423
SELECT + COUNT( DISTINCT - + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2423
SELECT + COUNT ( DISTINCT - + col2 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT DISTINCT + MIN( 39 ) * - 58 + + COUNT( * ) * + 80 FROM tab2, tab2 AS cor0
----
-1542

skipif mysql # not compatible
query I rowsort label-2424
SELECT DISTINCT + MIN ( 39 ) * - 58 + + COUNT ( * ) * + 80 FROM tab2, tab2 AS cor0
----
-1542

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2425
SELECT ALL - CAST( NULL AS DECIMAL ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2425
SELECT ALL - CAST ( NULL AS REAL ) col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2426
SELECT DISTINCT COUNT( DISTINCT + col2 ), MAX( ALL - col2 ) col0 FROM tab2 AS cor0
----
3
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2426
SELECT DISTINCT COUNT ( DISTINCT + col2 ), MAX ( ALL - col2 ) col0 FROM tab2 AS cor0
----
3
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT - - COUNT( - + 74 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2427
SELECT - - COUNT ( - + 74 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT 50 * - 7 FROM tab2 cor0
----
-350
-350
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT DISTINCT + - SUM( + + col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2429
SELECT DISTINCT + - SUM ( + + col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2430
SELECT ALL - ( - ( 53 ) ) col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col0 AND CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2430
SELECT ALL - ( - ( 53 ) ) col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col0 AND CAST ( col0 AS INTEGER )
----

query I rowsort
SELECT DISTINCT 80 * - + col2 AS col2 FROM tab1
----
-4720
-5440
-7680

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 * col1 * + 83 <= 41
----

query I rowsort
SELECT + + 89 + + ( + 61 ) AS col0 FROM tab1 AS cor0
----
150
150
150

query I rowsort
SELECT DISTINCT col1 * - col0 * col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-107916
-315392
-376875

query I rowsort
SELECT - - col0 + + 30 FROM tab1 AS cor0
----
115
121
81

query I rowsort
SELECT ALL col0 * 9 * - 75 FROM tab2 AS cor0
----
-31050
-43200
-50625

query II rowsort
SELECT DISTINCT + ( + ( 96 ) ), 77 AS col2 FROM tab1 cor0
----
96
77

query I rowsort
SELECT - col2 + - 92 FROM tab0 cor0
----
-102
-139
-191

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab0 WHERE - - 55 >= - col0
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE 78 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 - + col2 * + 88 AS col0 FROM tab2
----
-2001
-3480
-5046

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2442
SELECT DISTINCT + col1 + - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2442
SELECT DISTINCT + col1 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( col0 * - col0 IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 39 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-39

query I rowsort
SELECT col1 * - 66 FROM tab0
----
-1386
-5346
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT + MAX( - ( col1 ) ) FROM tab1 AS cor0 WHERE NOT + col1 * - 62 <> - + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2446
SELECT + MAX ( - ( col1 ) ) FROM tab1 AS cor0 WHERE NOT + col1 * - 62 <> - + col2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 NOT IN ( + 80 )
----

query I rowsort
SELECT DISTINCT col1 * - - 22 FROM tab2
----
1122
1474
1694

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT + MIN( + col2 ) AS col1 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-2449
SELECT + MIN ( + col2 ) AS col1 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT + COUNT( ALL 46 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2450
SELECT + COUNT ( ALL 46 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT - 11 * - col2 FROM tab0
----
1089
110
517

query II rowsort
SELECT - col1, - 48 AS col2 FROM tab2
----
-51
-48
-67
-48
-77
-48

query II rowsort
SELECT col0, col1 AS col1 FROM tab0
----
15
81
87
21
97
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2455
SELECT COUNT( * ) * + 97 * + - 9 AS col2 FROM tab0 AS cor0
----
-2619

skipif mysql # not compatible
query I rowsort label-2455
SELECT COUNT ( * ) * + 97 * + - 9 AS col2 FROM tab0 AS cor0
----
-2619

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2456
SELECT DISTINCT - col2 * - ( - + ( + 52 ) ) / - + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2456
SELECT DISTINCT - col2 * - ( - + ( + 52 ) ) / - + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 74 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2458
SELECT ALL col0 DIV ( - - 20 ) FROM tab1 AS cor0
----
2
4
4

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL col0 / ( - - 20 ) FROM tab1 AS cor0
----
2
4
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2459
SELECT ALL col1 DIV - - 36 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2459
SELECT ALL col1 / - - 36 AS col2 FROM tab1 AS cor0
----
0
0
1

query II rowsort
SELECT DISTINCT + 5 AS col0, ( + 14 ) FROM tab0 cor0
----
5
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2461
SELECT ALL + CAST( - - 8 AS SIGNED ) FROM tab0 WHERE NOT NULL IN ( + - col2 + - ( - 41 ) * - + col1, - col0, col2 )
----

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL + CAST ( - - 8 AS INTEGER ) FROM tab0 WHERE NOT NULL IN ( + - col2 + - ( - 41 ) * - + col1, - col0, col2 )
----

query I rowsort
SELECT ALL 44 * - 1 AS col2 FROM tab2
----
-44
-44
-44

query I rowsort
SELECT ALL - + col2 + - col1 - + - 55 * + + 73 * - - col1 + + + col1 AS col0 FROM tab2 AS cor0
----
204742
268947
309115

query I rowsort
SELECT + - 63 * + col2 FROM tab2 AS cor0
----
-1449
-2520
-3654

query I rowsort
SELECT DISTINCT - + 35 FROM tab2 cor0
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2466
SELECT - COUNT( * ) DIV SUM( ALL + 38 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2466
SELECT - COUNT ( * ) / SUM ( ALL + 38 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT DISTINCT ( SUM( DISTINCT - col2 ) ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2467
SELECT DISTINCT ( SUM ( DISTINCT - col2 ) ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT COUNT( * ) * - 60 + + 99 AS col1 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2468
SELECT COUNT ( * ) * - 60 + + 99 AS col1 FROM tab1 AS cor0
----
-81

query I rowsort
SELECT ( col1 ) + - col2 AS col2 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT DISTINCT + COUNT( * ) + - 24 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT + COUNT ( * ) + - 24 FROM tab0
----
-21

query I rowsort
SELECT 57 + col0 AS col1 FROM tab2
----
103
121
132

query I rowsort
SELECT - 99 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2473
SELECT 60 DIV 94 * 90 DIV + 31 + col2 AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2473
SELECT 60 / 94 * 90 / + 31 + col2 AS col1 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2474
SELECT DISTINCT + - CAST( NULL AS SIGNED ), + 65 + - - col2 col2 FROM tab0 AS cor0
----
NULL
112
NULL
164
NULL
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2474
SELECT DISTINCT + - CAST ( NULL AS INTEGER ), + 65 + - - col2 col2 FROM tab0 AS cor0
----
NULL
112
NULL
164
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT DISTINCT - + COUNT( * ) - - - MAX( + col2 ) AS col0 FROM tab1 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2475
SELECT DISTINCT - + COUNT ( * ) - - - MAX ( + col2 ) AS col0 FROM tab1 AS cor0
----
-99

query I rowsort
SELECT 39 - - - col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-12
-46
-52

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN col1 * + 54 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT + MIN( DISTINCT 34 ) AS col1 FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-2478
SELECT + MIN ( DISTINCT 34 ) AS col1 FROM tab1
----
34

query I rowsort
SELECT DISTINCT ( - 29 ) * 46 AS col1 FROM tab2
----
-1334

query I rowsort
SELECT ALL 79 - - col0 FROM tab0 WHERE NULL IN ( - 98 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT ALL - COUNT( * ) * COUNT( * ) + COUNT( - 87 ) AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-2481
SELECT ALL - COUNT ( * ) * COUNT ( * ) + COUNT ( - 87 ) AS col0 FROM tab0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-2482
SELECT 44 DIV + col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2482
SELECT 44 / + col0 FROM tab0
----
0
0
2

query I rowsort
SELECT DISTINCT 85 + 52 FROM tab2
----
137

query I rowsort
SELECT col1 + 30 AS col1 FROM tab2
----
107
81
97

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( + col0 ) AND col1 * col0
----

query I rowsort
SELECT DISTINCT - col2 + 38 FROM tab0
----
-61
-9
28

query III rowsort
SELECT * FROM tab0 WHERE + col0 BETWEEN + 77 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 41 * 30 + - 59 <> + 66 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2489
SELECT - CAST( - col1 AS SIGNED ) + 47 * 50 FROM tab1
----
2355
2364
2397

skipif mysql # not compatible
query I rowsort label-2489
SELECT - CAST ( - col1 AS INTEGER ) + 47 * 50 FROM tab1
----
2355
2364
2397

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT + col2 - + ( + col1 ) / col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2491
SELECT - MAX( col1 ) * SUM( ALL 76 ) + COUNT( DISTINCT 89 ) * 78 AS col2 FROM tab0
----
-18390

skipif mysql # not compatible
query I rowsort label-2491
SELECT - MAX ( col1 ) * SUM ( ALL 76 ) + COUNT ( DISTINCT 89 ) * 78 AS col2 FROM tab0
----
-18390

onlyif mysql # DIV for integer division: 
query I rowsort label-2492
SELECT col0 + col1 DIV col0 AS col0 FROM tab2
----
47
65
75

skipif mysql # not compatible
query I rowsort label-2492
SELECT col0 + col1 / col0 AS col0 FROM tab2
----
47
65
75

query III rowsort
SELECT * FROM tab0 WHERE NOT - 91 / - 80 - - ( - 76 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2494
SELECT * FROM tab0 WHERE NOT + col0 BETWEEN ( + 54 ) + CAST( NULL AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2494
SELECT * FROM tab0 WHERE NOT + col0 BETWEEN ( + 54 ) + CAST ( NULL AS INTEGER ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE 13 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2496
SELECT + CAST( MIN( ALL - 83 ) AS SIGNED ) FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-2496
SELECT + CAST ( MIN ( ALL - 83 ) AS INTEGER ) FROM tab2
----
-83

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 70 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT COUNT( DISTINCT + col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2499
SELECT COUNT ( DISTINCT + col1 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2500
SELECT ( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2500
SELECT ( CAST ( NULL AS REAL ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2501
SELECT ALL CAST( NULL AS SIGNED ) - + COUNT( DISTINCT col2 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL CAST ( NULL AS INTEGER ) - + COUNT ( DISTINCT col2 ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2502
SELECT DISTINCT col1 + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2502
SELECT DISTINCT col1 + - CAST ( NULL AS REAL ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 2 col2 FROM tab2
----
-2
-2
-2

query I rowsort
SELECT ALL + ( 0 ) + - ( - col0 + col2 ) FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT - COUNT( * ) + 99 FROM tab2 WHERE NOT + col2 IS NULL
----
96

skipif mysql # not compatible
query I rowsort label-2506
SELECT - COUNT ( * ) + 99 FROM tab2 WHERE NOT + col2 IS NULL
----
96

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col2 + + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2508
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2509
SELECT DISTINCT - col0 DIV 66 AS col0 FROM tab1 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT - col0 / 66 AS col0 FROM tab1 cor0
----
-1
0

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT NULL IN ( col2 + + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT 45 DIV + ( + col0 ) AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2511
SELECT 45 / + ( + col0 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 13 - 16 * - 48 FROM tab0 cor0 WHERE + 38 IS NULL
----

query I rowsort
SELECT + ( col2 ) * 96 FROM tab2 AS cor0
----
2208
3840
5568

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2514
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( CAST( col0 AS SIGNED ) ) AND - 58
----

skipif mysql # not compatible
query III rowsort label-2514
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( CAST ( col0 AS INTEGER ) ) AND - 58
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( - 18 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( + 23 ) AS col0 FROM tab2 AS cor0
----
23

query I rowsort
SELECT 76 AS col0 FROM tab2 AS cor0 WHERE NOT - col2 * col2 IS NOT NULL
----

query I rowsort
SELECT 49 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT DISTINCT + 57 + - SUM( DISTINCT ( + col1 ) + col0 ) FROM tab1
----
-236

skipif mysql # not compatible
query I rowsort label-2519
SELECT DISTINCT + 57 + - SUM ( DISTINCT ( + col1 ) + col0 ) FROM tab1
----
-236

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2520
SELECT DISTINCT - col2 * + ( CAST( NULL AS SIGNED ) * 80 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2520
SELECT DISTINCT - col2 * + ( CAST ( NULL AS INTEGER ) * 80 ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2521
SELECT ( CAST( NULL AS SIGNED ) ) + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2521
SELECT ( CAST ( NULL AS INTEGER ) ) + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 35 + + col1 AS col2 FROM tab2 AS cor0
----
16
32
42

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE 18 IS NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT ( - 5 ) NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT - 20 * COUNT( * ) + - 85 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2525
SELECT - 20 * COUNT ( * ) + - 85 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2526
SELECT + AVG ( - col2 ) + 36 AS col0 FROM tab2 AS cor0 WHERE col2 IN ( - CAST( NULL AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2526
SELECT + AVG ( - col2 ) + 36 AS col0 FROM tab2 AS cor0 WHERE col2 IN ( - CAST ( NULL AS INTEGER ) )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 15 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT SUM( ALL 97 ) + COUNT( * ) FROM tab2 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-2528
SELECT SUM ( ALL 97 ) + COUNT ( * ) FROM tab2 AS cor0
----
294

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 IN ( col0 / col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2530
SELECT ALL + 47 AS col0 FROM tab2 AS cor0 WHERE NOT ( 56 ) BETWEEN ( + CAST( NULL AS SIGNED ) ) AND - col0
----
47
47
47

skipif mysql # not compatible
query I rowsort label-2530
SELECT ALL + 47 AS col0 FROM tab2 AS cor0 WHERE NOT ( 56 ) BETWEEN ( + CAST ( NULL AS INTEGER ) ) AND - col0
----
47
47
47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 52 = 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT col1 - 11 IS NULL
----
14
47
5

query I rowsort
SELECT ALL col2 * col0 AS col2 FROM tab0 WHERE NULL IS NULL
----
705
870
9603

query I rowsort
SELECT ALL - 10 AS col2 FROM tab0 WHERE ( col2 * col1 ) IN ( 52 )
----

query I rowsort
SELECT ALL 72 + + + col2 + col2 AS col0 FROM tab2
----
118
152
188

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE ( + col0 ) NOT IN ( col0 + col1 )
----
-46
-64
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2537
SELECT DISTINCT SUM( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab2 WHERE ( col2 ) IN ( col2 + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2537
SELECT DISTINCT SUM ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab2 WHERE ( col2 ) IN ( col2 + col2 )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + 31 > ( + col0 - - 69 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 + - col1 * col2 <> ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col1 + + - col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT 18 - + - ( col0 ) * - ( col1 ) FROM tab2
----
-2328
-4910
-5007

query I rowsort
SELECT ALL 76 * + ( col2 ) FROM tab1 WHERE ( col0 ) IN ( col2 )
----

query I rowsort
SELECT + 40 - ( - 80 ) + col2 AS col1 FROM tab0
----
130
167
219

query I rowsort
SELECT 36 - + col2 - col2 * 91 AS col0 FROM tab1
----
-5392
-6220
-8796

query I rowsort
SELECT - col2 - col2 + - ( - col2 + - 67 ) FROM tab0 AS cor0
----
-32
20
57

query I rowsort
SELECT ALL + 77 AS col1 FROM tab2 AS cor0 WHERE NOT ( 91 ) BETWEEN 2 AND NULL AND NOT - 29 * + ( 73 / - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT DISTINCT SUM( - - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2547
SELECT DISTINCT SUM ( - - col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT DISTINCT COUNT( ALL + 38 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2548
SELECT DISTINCT COUNT ( ALL + 38 ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2549
SELECT + col2 FROM tab2 AS cor0 WHERE + col0 > 33 + + CAST( col1 + - 66 * col2 AS DECIMAL )
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2549
SELECT + col2 FROM tab2 AS cor0 WHERE + col0 > 33 + + CAST ( col1 + - 66 * col2 AS REAL )
----
23
40
58

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE ( NULL ) > + 78
----

query I rowsort
SELECT - ( ( - 94 ) ) AS col0 FROM tab2
----
94
94
94

query II rowsort
SELECT - + 90 AS col0, col0 - + 22 FROM tab1 AS cor0
----
-90
29
-90
63
-90
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT DISTINCT SUM( DISTINCT - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT SUM ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT DISTINCT SUM( ALL 5 ) + + 54 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0 * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT SUM ( ALL 5 ) + + 54 AS col2 FROM tab1 AS cor0 WHERE NULL NOT IN ( + col0 * col2 )
----
NULL

query I rowsort
SELECT ALL ( 9 ) * col2 FROM tab0 AS cor0 WHERE NOT col2 / + 64 + - 52 IN ( col1 )
----
423
891
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 4 col1 FROM tab2 cor0
----
4

query II rowsort
SELECT - col1, + col0 AS col2 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2558
SELECT COUNT( * ) - - 36 FROM tab0 AS cor0 WHERE NOT NULL <> + 80 * - col0 + CAST( NULL AS SIGNED )
----
36

skipif mysql # not compatible
query I rowsort label-2558
SELECT COUNT ( * ) - - 36 FROM tab0 AS cor0 WHERE NOT NULL <> + 80 * - col0 + CAST ( NULL AS INTEGER )
----
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2559
SELECT 60 * - 86 * - CAST( col0 AS SIGNED ) * col0 AS col2 FROM tab1
----
13421160
37281000
42729960

skipif mysql # not compatible
query I rowsort label-2559
SELECT 60 * - 86 * - CAST ( col0 AS INTEGER ) * col0 AS col2 FROM tab1
----
13421160
37281000
42729960

query III rowsort
SELECT ALL * FROM tab0 WHERE 45 + - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( - col1 ) ) NOT BETWEEN - 40 * + 85 AND - col2 * col2
----

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT + - col2 >= ( - 87 / + col1 )
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2563
SELECT COUNT( - col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2563
SELECT COUNT ( - col1 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2564
SELECT DISTINCT - col2 / - ( - 27 ) + - col2 AS col0 FROM tab2 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN + col1 AND 72
----

skipif mysql # not compatible
query I rowsort label-2564
SELECT DISTINCT - col2 / - ( - 27 ) + - col2 AS col0 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN + col1 AND 72
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 98 col2 FROM tab1
----
98
98
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2566
SELECT DISTINCT * FROM tab1 WHERE NOT + + 11 BETWEEN ( CAST( NULL AS SIGNED ) ) AND col1
----
85
5
59

skipif mysql # not compatible
query III rowsort label-2566
SELECT DISTINCT * FROM tab1 WHERE NOT + + 11 BETWEEN ( CAST ( NULL AS INTEGER ) ) AND col1
----
85
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 col1 FROM tab0
----
100
2209
9801

query I rowsort
SELECT DISTINCT + col0 + + col0 AS col2 FROM tab1 WHERE NOT ( + 41 ) = - 85
----
102
170
182

query I rowsort
SELECT ALL col1 FROM tab1 WHERE + + col2 * + ( + col2 ) * - col2 = NULL
----

query I rowsort
SELECT ALL - col1 * + 45 * + - col1 FROM tab0
----
19845
295245
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2571
SELECT DISTINCT + 17 DIV col2 FROM tab2 AS cor0 WHERE NOT ( ( - col0 ) DIV + 22 + col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2571
SELECT DISTINCT + 17 / col2 FROM tab2 AS cor0 WHERE NOT ( ( - col0 ) / + 22 + col2 ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( 62 ) + - - ( ( col1 ) ) * + ( 98 ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT 10 + 23 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 NOT IN ( - 14 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 < - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2575
SELECT - - 64 + - CAST( NULL AS SIGNED ) + 18 - - 74 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2575
SELECT - - 64 + - CAST ( NULL AS INTEGER ) + 18 - - 74 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT DISTINCT + MIN( + 49 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
49

skipif mysql # not compatible
query I rowsort label-2576
SELECT DISTINCT + MIN ( + 49 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + ( - col2 ) AND + + 57 - + 25
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 78 + + 72 col1 FROM tab0 cor0
----
150
150
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2579
SELECT ALL - CAST( - + 15 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 > NULL
----

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL - CAST ( - + 15 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT DISTINCT SUM( ALL + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-2580
SELECT DISTINCT SUM ( ALL + col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2581
SELECT 90 - - col1 + col0 * + CAST( - - 2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
201
285
285

skipif mysql # not compatible
query I rowsort label-2581
SELECT 90 - - col1 + col0 * + CAST ( - - 2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
201
285
285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 * - - col1 + - 56 AS col1, + 42 col2 FROM tab2 cor0
----
2545
42
4433
42
5873
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT - COUNT( col1 ) + - 98 * + 64 AS col0 FROM tab0 cor0
----
-6275

skipif mysql # not compatible
query I rowsort label-2583
SELECT - COUNT ( col1 ) + - 98 * + 64 AS col0 FROM tab0 cor0
----
-6275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2584
SELECT CAST( NULL AS SIGNED ) + - col2 + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2584
SELECT CAST ( NULL AS INTEGER ) + - col2 + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT DISTINCT - COUNT( * ) * + - 26 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-2585
SELECT DISTINCT - COUNT ( * ) * + - 26 FROM tab2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT COUNT( * ) + 11 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-2586
SELECT COUNT ( * ) + 11 FROM tab2
----
14

query I rowsort
SELECT col0 + + ( - 99 ) * - - col0 * - col1 AS col2 FROM tab0
----
120300
180960
9700

query I rowsort
SELECT col0 + + 44 * col2 AS col1 FROM tab2
----
1058
1824
2627

query I rowsort
SELECT - col1 FROM tab0 WHERE - - 88 - + col2 IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT ALL - 53 + - - COUNT( * ) - 67 AS col0 FROM tab1 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-2590
SELECT ALL - 53 + - - COUNT ( * ) - 67 AS col0 FROM tab1 AS cor0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-2591
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2591
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE col2 / 56 <> ( + 21 )
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2593
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2593
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 12 AS col1 FROM tab0
----
-12

query I rowsort
SELECT 42 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NOT NULL
----

query I rowsort
SELECT - 90 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-90
-90
-90

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN 75 AND NULL
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 AS cor0 WHERE ( NOT + col0 IS NULL )
----
15
87
97

query I rowsort
SELECT ALL + + 77 AS col2 FROM tab0 cor0
----
77
77
77

query II rowsort
SELECT ALL - col0 AS col2, - ( + 99 ) AS col1 FROM tab1
----
-51
-99
-85
-99
-91
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT DISTINCT MAX( col0 ) + COUNT( * ) - 90 FROM tab1 WHERE 40 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2601
SELECT DISTINCT MAX ( col0 ) + COUNT ( * ) - 90 FROM tab1 WHERE 40 IS NULL
----
NULL

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT NULL NOT BETWEEN 13 * col0 AND + col1 + + + col0 + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + 1, col0 - - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2605
SELECT DISTINCT COUNT( DISTINCT + 35 ) AS col0 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2605
SELECT DISTINCT COUNT ( DISTINCT + 35 ) AS col0 FROM tab1 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab2 WHERE - col0 <= col1 + - 58
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - col2 * 82 + col1 - col0 AS col2 FROM tab0
----
-3788
-8214
-886

query I rowsort
SELECT ALL + - 90 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT DISTINCT + 23 FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN + - col2 + + col0 AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 + - col1 col2 FROM tab1 AS cor0
----
-100
-58
-67

query I rowsort
SELECT ALL - 26 FROM tab0 AS cor0 WHERE NOT NULL IN ( - col1 )
----

query I rowsort
SELECT ALL - + 22 - + - col2 FROM tab0 AS cor0
----
-12
25
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2613
SELECT MIN( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT MIN ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NULL <= NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 * + 92 <> - 61 * + 79
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * + - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 30 * + + ( - + col0 ) FROM tab2 AS cor0
----
1380
1920
2250

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( - ( + col1 ) ) * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE col1 BETWEEN + - 70 + col2 AND + col1
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT - col0 * + + 7 AS col0 FROM tab2 WHERE + 73 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2620
SELECT DISTINCT col1 FROM tab2 WHERE col1 * + CAST( NULL AS DECIMAL ) * + + 7 - col0 - - col0 * - + col0 NOT BETWEEN ( + col2 + col2 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2620
SELECT DISTINCT col1 FROM tab2 WHERE col1 * + CAST ( NULL AS REAL ) * + + 7 - col0 - - col0 * - + col0 NOT BETWEEN ( + col2 + col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2621
SELECT DISTINCT - col2 * + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2621
SELECT DISTINCT - col2 * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 - - + col1 col0 FROM tab1
----
101
134
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * 68 col2 FROM tab2
----
3128
4352
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-2624
SELECT ALL + COUNT( * ) + - - 87 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL + COUNT ( * ) + - - 87 FROM tab1
----
90

query I rowsort
SELECT col2 - - col0 + + col2 AS col1 FROM tab2
----
144
191
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2626
SELECT DISTINCT + 83 + 28 * - SUM( + col0 ) - - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2626
SELECT DISTINCT + 83 + 28 * - SUM ( + col0 ) - - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2627
SELECT - ( CAST( col1 AS SIGNED ) ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2627
SELECT - ( CAST ( col1 AS INTEGER ) ) FROM tab0
----
-1
-21
-81

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - ( + + col2 ) FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - + 22 * 14 FROM tab1 AS cor0
----
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT ALL + SUM( ALL + - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL + SUM ( ALL + - col1 ) FROM tab0 AS cor0
----
-103

query II rowsort
SELECT DISTINCT + col2 AS col2, - col0 FROM tab1
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT - + SUM( 3 ) - + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-36

skipif mysql # not compatible
query I rowsort label-2633
SELECT - + SUM ( 3 ) - + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2634
SELECT DISTINCT SUM( - 66 ) FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-2634
SELECT DISTINCT SUM ( - 66 ) FROM tab1
----
-198

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < + + col0
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * - 90 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL col1, col0 + - col2 * 62 FROM tab1 AS cor0
----
14
-5901
47
-4125
5
-3573

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 col0, - col2 FROM tab0 cor0
----
-10
-10
-47
-47
-99
-99

query II rowsort
SELECT 70 AS col0, col2 FROM tab1 AS cor0
----
70
59
70
68
70
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT ALL + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2642
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-2642
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2643
SELECT DISTINCT - ( CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2643
SELECT DISTINCT - ( CAST ( NULL AS REAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT ALL - MAX( ALL - col2 ) * 51 + - 60 + - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
1110

skipif mysql # not compatible
query I rowsort label-2644
SELECT ALL - MAX ( ALL - col2 ) * 51 + - 60 + - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1110

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT - MIN( + + col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2645
SELECT - MIN ( + + col1 ) AS col1 FROM tab2
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 83 ) col0 FROM tab0
----
-83
-83
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 58 col0 FROM tab1
----
117
126
154

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 * + + 43 NOT IN ( - + ( + col0 ) * + + col1, - ( - + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + ( - col2 ) + + - col0 AS col0 FROM tab2 AS cor0
----
-104
-133
-69

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2650
SELECT DISTINCT CAST( NULL AS DECIMAL ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2650
SELECT DISTINCT CAST ( NULL AS REAL ) col0 FROM tab0
----
NULL

query I rowsort
SELECT + ( + 64 ) FROM tab1
----
64
64
64

query II rowsort
SELECT - col2, col2 AS col2 FROM tab0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT DISTINCT 47 + - - COUNT( * ) FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-2653
SELECT DISTINCT 47 + - - COUNT ( * ) FROM tab0 AS cor0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2654
SELECT * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + col0
----

skipif mysql # not compatible
query III rowsort label-2654
SELECT * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 <= - 39
----

query I rowsort
SELECT DISTINCT - 39 - col0 AS col1 FROM tab2 AS cor0
----
-103
-114
-85

query I rowsort
SELECT - col0 + + 17 * + col1 * + 57 AS col1 FROM tab1 cor0
----
13515
45452
4760

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 / - 47 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT COUNT( * ) + - - 82 AS col2 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-2659
SELECT COUNT ( * ) + - - 82 AS col2 FROM tab0 AS cor0
----
85

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 = col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2661
SELECT DISTINCT COUNT( * ) - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2661
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT - col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2663
SELECT + ( SUM( DISTINCT + 79 ) ) + - CAST( COUNT( * ) AS SIGNED ) col2 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2663
SELECT + ( SUM ( DISTINCT + 79 ) ) + - CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab0 AS cor0
----
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 col2 FROM tab2 AS cor0 WHERE NOT ( + + 66 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT ALL - ( COUNT( * ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL - ( COUNT ( * ) ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT - + col2 * col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT + 96 * col1 AS col2 FROM tab1 AS cor0
----
1344
4512
480

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 16 + 15 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT - COUNT( - 31 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2670
SELECT - COUNT ( - 31 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query III rowsort label-2671
SELECT 74 AS col1, - col0 DIV 41, col1 + - - col0 AS col0 FROM tab0 cor0
----
9 values hashing to 3d003ef697b6e7f5627b97ce5078f64c

skipif mysql # not compatible
query III rowsort label-2671
SELECT 74 AS col1, - col0 / 41, col1 + - - col0 AS col0 FROM tab0 cor0
----
9 values hashing to 3d003ef697b6e7f5627b97ce5078f64c

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 72 * + 21 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col1 col2 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT + SUM( col1 ) * - 93 col1 FROM tab0 AS cor0
----
-9579

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2674
SELECT + SUM ( col1 ) * - 93 col1 FROM tab0 AS cor0
----
-9579

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2675
SELECT DISTINCT + 95 * + 55 + + - CAST( - col2 AS SIGNED ) FROM tab1 AS cor0
----
5284
5293
5321

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT + 95 * + 55 + + - CAST ( - col2 AS INTEGER ) FROM tab1 AS cor0
----
5284
5293
5321

query I rowsort
SELECT ALL - col0 * - 75 AS col0 FROM tab0 cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT MAX( col1 ) + - - 76 AS col0 FROM tab1 cor0
----
123

skipif mysql # not compatible
query I rowsort label-2677
SELECT MAX ( col1 ) + - - 76 AS col0 FROM tab1 cor0
----
123

query I rowsort
SELECT DISTINCT + + col0 + + - 51 FROM tab1 AS cor0
----
0
34
40

query II rowsort
SELECT ALL - col1 * - col0, - col2 * 11 FROM tab0 WHERE NULL NOT IN ( + 21, col1 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2680
SELECT DISTINCT + COUNT( * ) + 72 + + COUNT( * ) - + ( + 24 ) AS col1 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-2680
SELECT DISTINCT + COUNT ( * ) + 72 + + COUNT ( * ) - + ( + 24 ) AS col1 FROM tab2
----
54

query I rowsort
SELECT ALL 35 + + + col0 FROM tab2
----
110
81
99

query I rowsort
SELECT ALL - col2 + - + col0 + - col0 FROM tab1
----
-198
-229
-250

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 48 <> NULL
----

query I rowsort
SELECT - + 79 * - 72 AS col0 FROM tab0 WHERE NULL < + 42
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2685
SELECT col0 * + col1 DIV + col1 AS col1 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-2685
SELECT col0 * + col1 / + col1 AS col1 FROM tab0
----
15
87
97

query II rowsort
SELECT col2 AS col0, + col1 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT COUNT( ALL - + 58 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2687
SELECT COUNT ( ALL - + 58 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + ( + col2 ) * + col0 AS col0 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2689
SELECT - + ( CAST( - - col1 AS SIGNED ) ) AS col0 FROM tab0 AS cor0 WHERE ( ( ( NOT col0 IS NOT NULL ) ) )
----

skipif mysql # not compatible
query I rowsort label-2689
SELECT - + ( CAST ( - - col1 AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE ( ( ( NOT col0 IS NOT NULL ) ) )
----

query I rowsort
SELECT ( + col2 ) + ( - ( - + col0 ) ) * - - 78 * + col2 AS col2 FROM tab0 AS cor0
----
55037
67870
749133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2691
SELECT DISTINCT + COUNT( ALL + + CAST( - - 98 AS SIGNED ) ) AS col0 FROM tab2 AS cor0 WHERE + 28 NOT BETWEEN NULL AND - col1
----
3

skipif mysql # not compatible
query I rowsort label-2691
SELECT DISTINCT + COUNT ( ALL + + CAST ( - - 98 AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE + 28 NOT BETWEEN NULL AND - col1
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-2692
SELECT 41 DIV + col1 + 68 AS col0, - col0 FROM tab0
----
109
-97
68
-15
69
-87

skipif mysql # not compatible
query II rowsort label-2692
SELECT 41 / + col1 + 68 AS col0, - col0 FROM tab0
----
109
-97
68
-15
69
-87

query I rowsort
SELECT 31 + col0 AS col2 FROM tab0
----
118
128
46

onlyif mysql # DIV for integer division: 
query I rowsort label-2694
SELECT ALL col2 + + - col0 DIV - + col2 col0 FROM tab2
----
25
41
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2694
SELECT ALL col2 + + - col0 / - + col2 col0 FROM tab2
----
25
41
59

query I rowsort
SELECT DISTINCT col1 * col2 + ( - col2 ) AS col1 FROM tab1 AS cor0
----
1248
236
3128

query I rowsort
SELECT ALL + + col1 - + 59 AS col1 FROM tab0 AS cor0
----
-38
-58
22

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2698
SELECT SUM( + 10 ) FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2698
SELECT SUM ( + 10 ) FROM tab1 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT ALL MAX( - 17 ) FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL MAX ( - 17 ) FROM tab2 AS cor0
----
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * - - col1 col2 FROM tab2 WHERE NOT NULL NOT BETWEEN ( - 87 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT DISTINCT MIN( ALL + 12 ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-2701
SELECT DISTINCT MIN ( ALL + 12 ) FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2702
SELECT ALL + SUM( DISTINCT - col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL + SUM ( DISTINCT - col0 ) AS col2 FROM tab1
----
-227

query III rowsort
SELECT * FROM tab1 WHERE NOT + + ( + 25 ) <> ( + col0 )
----

query II rowsort
SELECT col0 AS col0, 44 FROM tab0
----
15
44
87
44
97
44

onlyif mysql # DIV for integer division: 
query I rowsort label-2705
SELECT - 88 DIV - col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2705
SELECT - 88 / - col0 FROM tab1
----
0
1
1

query I rowsort
SELECT DISTINCT ( - col1 ) * - + 70 AS col1 FROM tab2
----
3570
4690
5390

query II rowsort
SELECT col0, 42 FROM tab1
----
51
42
85
42
91
42

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 / col0 * + + col0 * - - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT - ( + MAX( - col2 ) ) * - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - 44 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2709
SELECT - ( + MAX ( - col2 ) ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - 44 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + col1 + - col2 AS col2 FROM tab0 AS cor0 WHERE 46 - + ( + col0 ) / col1 >= 79
----

query II rowsort
SELECT ALL - col2, + 99 + - + col0 + 73 / col1 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT - 59 * + + 53 AS col0 FROM tab2
----
-3127
-3127
-3127

query I rowsort
SELECT + 14 * - - 43 + + + ( col0 ) FROM tab0 AS cor0
----
617
689
699

onlyif mysql # DIV for integer division: 
query I rowsort label-2714
SELECT ALL - col1 DIV + col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2714
SELECT ALL - col1 / + col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2715
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2715
SELECT ALL * FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2716
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col1 + - col0 + - col0 * + col1 / + ( col0 ) BETWEEN NULL AND - 57
----
0

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col1 + - col0 + - col0 * + col1 / + ( col0 ) BETWEEN NULL AND - 57
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2717
SELECT ALL - col0 AS col0, + CAST( NULL AS SIGNED ) FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-2717
SELECT ALL - col0 AS col0, + CAST ( NULL AS INTEGER ) FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

query I rowsort
SELECT DISTINCT 51 + col1 AS col0 FROM tab1
----
56
65
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 91 + 31 + - 32 col2, col1 AS col1 FROM tab0
----
90
1
90
21
90
81

onlyif mysql # DIV for integer division: 
query I rowsort label-2720
SELECT - 59 DIV - col1 + - col2 + + 69 FROM tab1
----
-23
2
21

skipif mysql # not compatible
query I rowsort label-2720
SELECT - 59 / - col1 + - col2 + + 69 FROM tab1
----
-23
2
21

query I rowsort
SELECT - col1 + + 41 FROM tab2
----
-10
-26
-36

query I rowsort
SELECT DISTINCT 17 + - + 5 FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query II rowsort label-2723
SELECT ( + COUNT( * ) ) + + + 85, - 93 AS col0 FROM tab0
----
88
-93

skipif mysql # not compatible
query II rowsort label-2723
SELECT ( + COUNT ( * ) ) + + + 85, - 93 AS col0 FROM tab0
----
88
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - col1 col2 FROM tab1
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2725
SELECT ( + 81 ) + COUNT( * ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-2725
SELECT ( + 81 ) + COUNT ( * ) FROM tab1
----
84

query I rowsort
SELECT DISTINCT - - col1 AS col2 FROM tab2 WHERE + 90 >= - col1
----
51
67
77

query I rowsort
SELECT 39 + + col0 AS col2 FROM tab1
----
124
130
90

query I rowsort
SELECT - 46 * + col2 FROM tab2 AS cor0
----
-1058
-1840
-2668

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + col1 * + + col1 * + + col1 - - - col1 * - 55 col1 FROM tab2 AS cor0
----
-22553540
-29213877
-6099141

query II rowsort
SELECT - - 98 AS col0, col0 FROM tab1 cor0
----
98
51
98
85
98
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2731
SELECT ALL - col0 AS col2, col1 * + + col0 * + CAST( NULL AS SIGNED ) col1 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2731
SELECT ALL - col0 AS col2, col1 * + + col0 * + CAST ( NULL AS INTEGER ) col1 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT 51 + + 54 - - col2 FROM tab0
----
115
152
204

query I rowsort
SELECT ALL - ( + + col2 ) - - col0 FROM tab0
----
-2
-32
77

query II rowsort
SELECT col2 + 94, col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
104
21
141
81
193
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2736
SELECT DISTINCT + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 89 FROM tab2 AS cor0 WHERE NOT 88 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2, - col1 * - 54 col2 FROM tab2 AS cor0
----
-23
2754
-40
4158
-58
3618

query I rowsort
SELECT DISTINCT + + col1 + col1 AS col0 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT + + 92 AS col2 FROM tab1 AS cor0
----
92

query I rowsort
SELECT + col1 * col1 * - + 68 FROM tab0 AS cor0
----
-29988
-446148
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 col1 FROM tab2 cor0
----
-39
-39
-39

query I rowsort
SELECT - - col0 FROM tab1 AS cor0 WHERE - 12 NOT BETWEEN + col0 - - + col0 + + col1 AND col0 OR NULL IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2744
SELECT 87 * + col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2744
SELECT 87 * + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT DISTINCT + MIN( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT + MIN ( DISTINCT - col1 ) AS col2 FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL + col0 * + col2 * - col0 * + + col1 AS col1 FROM tab1 AS cor0
----
-2131375
-26466076
-3495744

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT - 81 * - MIN( DISTINCT + - 19 ) FROM tab2 AS cor0
----
-1539

skipif mysql # not compatible
query I rowsort label-2747
SELECT - 81 * - MIN ( DISTINCT + - 19 ) FROM tab2 AS cor0
----
-1539

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT DISTINCT SUM( 54 ) AS col1 FROM tab0 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-2748
SELECT DISTINCT SUM ( 54 ) AS col1 FROM tab0 AS cor0
----
162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2749
SELECT DISTINCT - CAST( - ( - SUM( + - col1 ) ) AS SIGNED ) col1 FROM tab0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2749
SELECT DISTINCT - CAST ( - ( - SUM ( + - col1 ) ) AS INTEGER ) col1 FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT DISTINCT MAX( DISTINCT - col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2750
SELECT DISTINCT MAX ( DISTINCT - col1 ) AS col2 FROM tab0
----
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT - SUM( DISTINCT + 1 ) AS col1 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2752
SELECT - SUM ( DISTINCT + 1 ) AS col1 FROM tab1
----
-1

query I rowsort
SELECT ALL + ( - - col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 51 AS col0, + col2 col0 FROM tab2
----
51
23
51
40
51
58

query II rowsort
SELECT DISTINCT - ( - + col1 ) + + col0 AS col1, 90 FROM tab0
----
108
90
96
90
98
90

query II rowsort
SELECT col0 + col2 * - col0 AS col0, + col2 - - 38 AS col0 FROM tab1 AS cor0
----
-4845
134
-4930
97
-6097
106

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2757
SELECT col1 + + CAST( col2 AS SIGNED ) AS col2, 56 * - col1 FROM tab2 AS cor0
----
117
-4312
125
-3752
74
-2856

skipif mysql # not compatible
query II rowsort label-2757
SELECT col1 + + CAST ( col2 AS INTEGER ) AS col2, 56 * - col1 FROM tab2 AS cor0
----
117
-4312
125
-3752
74
-2856

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT - - SUM( ALL 45 ) * - + COUNT( * ) + + 31 FROM tab2 cor0
----
-374

skipif mysql # not compatible
query I rowsort label-2758
SELECT - - SUM ( ALL 45 ) * - + COUNT ( * ) + + 31 FROM tab2 cor0
----
-374

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2759
SELECT CAST( NULL AS SIGNED ) * + - col2 + - 14 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2759
SELECT CAST ( NULL AS INTEGER ) * + - col2 + - 14 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 + + + col2 AND + 65
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 <= - - col0
----

query I rowsort
SELECT ALL + col2 + + - col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2763
SELECT - - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL > col0 * col1
----

skipif mysql # not compatible
query I rowsort label-2763
SELECT - - CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NULL > col0 * col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL <> 65
----

query II rowsort
SELECT ALL col0 + - col0, + col2 * - - col0 AS col2 FROM tab1
----
0
4896
0
5015
0
6188

query I rowsort
SELECT DISTINCT col1 + + - ( col2 ) AS col1 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT DISTINCT + col1 - - col2 AS col0 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT + 7 * + COUNT( * ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-2768
SELECT + 7 * + COUNT ( * ) FROM tab1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT DISTINCT - + COUNT( * ) - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT - + COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 col1 FROM tab2 AS cor0 WHERE NOT - col2 = NULL
----

query I rowsort
SELECT + col1 + - - ( col1 ) AS col0 FROM tab2 AS cor0
----
102
134
154

onlyif mysql # DIV for integer division: 
query I rowsort label-2772
SELECT DISTINCT - - col0 DIV - + 60 + - col2 FROM tab1 AS cor0
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-2772
SELECT DISTINCT - - col0 / - + 60 + - col2 FROM tab1 AS cor0
----
-60
-69
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT ALL ( - - ( - 26 ) ) * - 84 AS col2 FROM tab2
----
2184
2184
2184

query II rowsort
SELECT - 30 AS col0, - col1 FROM tab2 AS cor0 WHERE NOT + col1 > NULL
----

query I rowsort
SELECT ALL + col0 * - - 78 FROM tab1 cor0
----
3978
6630
7098

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2777
SELECT DISTINCT 82 DIV + - col1 * + CAST( NULL AS SIGNED ) col0, col1 DIV + col0 AS col1 FROM tab2 AS cor0
----
NULL
0
NULL
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2777
SELECT DISTINCT 82 / + - col1 * + CAST ( NULL AS INTEGER ) col0, col1 / + col0 AS col1 FROM tab2 AS cor0
----
NULL
0
NULL
1

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2778
SELECT ALL + CAST( NULL AS SIGNED ) col2, - col0 DIV 13 AS col2 FROM tab1
----
NULL
-3
NULL
-6
NULL
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2778
SELECT ALL + CAST ( NULL AS INTEGER ) col2, - col0 / 13 AS col2 FROM tab1
----
NULL
-3
NULL
-6
NULL
-7

query II rowsort
SELECT 8 AS col1, - 0 + - 3 AS col2 FROM tab0
----
8
-3
8
-3
8
-3

query II rowsort
SELECT col2 AS col0, + 75 + + col1 AS col0 FROM tab2
----
23
126
40
152
58
142

query II rowsort
SELECT DISTINCT - col1 AS col0, 55 FROM tab1
----
-14
55
-47
55
-5
55

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 77 col1, col0 AS col1 FROM tab1
----
-77
51
-77
85
-77
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2784
SELECT DISTINCT ( + SUM( ALL + col1 ) ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2784
SELECT DISTINCT ( + SUM ( ALL + col1 ) ) FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT - + ( + ( - COUNT( - col2 ) ) ) + + 31 FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-2785
SELECT - + ( + ( - COUNT ( - col2 ) ) ) + + 31 FROM tab1 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT ALL + + ( + + COUNT( * ) ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2786
SELECT ALL + + ( + + COUNT ( * ) ) col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2787
SELECT + - col2 + - CAST( col0 AS SIGNED ) + + col0 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2787
SELECT + - col2 + - CAST ( col0 AS INTEGER ) + + col0 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + - 73 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + col2 < NULL
----

query I rowsort
SELECT - ( + col1 ) * col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT + col0 - - 33 + - + 20 AS col1 FROM tab0 AS cor0
----
100
110
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2792
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE col1 >= NULL
----
0

query I rowsort
SELECT + 86 + + + 68 + col2 FROM tab2
----
177
194
212

query I rowsort
SELECT DISTINCT col1 + + + col1 AS col1 FROM tab0
----
162
2
42

query I rowsort
SELECT DISTINCT - col2 + - 72 AS col2 FROM tab0
----
-119
-171
-82

query I rowsort
SELECT + col0 + - + col1 FROM tab0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 41 col2 FROM tab1 WHERE 69 / - - col1 IS NULL
----

query I rowsort
SELECT ALL + col0 - + 4 AS col1 FROM tab1
----
47
81
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND 32 * + + 15
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2800
SELECT + - 96 col0, + CAST( NULL AS SIGNED ) + - col1 FROM tab1 AS cor0
----
-96
NULL
-96
NULL
-96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2800
SELECT + - 96 col0, + CAST ( NULL AS INTEGER ) + - col1 FROM tab1 AS cor0
----
-96
NULL
-96
NULL
-96
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2801
SELECT 1, col0 DIV col1 + - + 39 + + - col1 AS col1 FROM tab0 AS cor0
----
1
-120
1
-56
1
57

skipif mysql # not compatible
query II rowsort label-2801
SELECT 1, col0 / col1 + - + 39 + + - col1 AS col1 FROM tab0 AS cor0
----
1
-120
1
-56
1
57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 72 * - - 76 * - - col0 >= NULL
----

query II rowsort
SELECT 13, + 32 AS col1 FROM tab1 AS cor0
----
13
32
13
32
13
32

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( col2, 74 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2805
SELECT ALL - SUM( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 WHERE + 52 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL - SUM ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 WHERE + 52 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2806
SELECT ALL + col2 * col1 AS col0, - 84 + + 71 DIV + col1 AS col1 FROM tab1
----
1344
-79
295
-70
3196
-83

skipif mysql # not compatible
query II rowsort label-2806
SELECT ALL + col2 * col1 AS col0, - 84 + + 71 / + col1 AS col1 FROM tab1
----
1344
-79
295
-70
3196
-83

query I rowsort
SELECT ALL - 45 * - - 13 * + + 82 FROM tab0 cor0
----
-47970
-47970
-47970

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 11 + - col0 IS NOT NULL
----

query II rowsort
SELECT ALL 61 AS col0, - 75 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2810
SELECT + COUNT( ALL + col2 ), - COUNT( * ) AS col2 FROM tab2 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-2810
SELECT + COUNT ( ALL + col2 ), - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3
-3

query I rowsort
SELECT DISTINCT 36 * + col0 AS col1 FROM tab2 AS cor0
----
1656
2304
2700

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 46
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2813
SELECT + + ( - + 27 ) * + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2813
SELECT + + ( - + 27 ) * + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2814
SELECT ALL - COUNT( * ) DIV MAX( DISTINCT - + 6 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2814
SELECT ALL - COUNT ( * ) / MAX ( DISTINCT - + 6 ) AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2816
SELECT DISTINCT + - col0 DIV - col1 AS col1 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT + - col0 / - col1 AS col1 FROM tab1 AS cor0
----
1
17
3

query I rowsort
SELECT ALL - 49 AS col1 FROM tab0 cor0
----
-49
-49
-49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NOT NULL IN ( + col2, + col0 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + 79 * - + col2 AS col2 FROM tab0
----
-3713
-7821
-790

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT ALL + + COUNT( * ) FROM tab0 WHERE NOT - col0 * + col1 * + + col2 - + + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL + + COUNT ( * ) FROM tab0 WHERE NOT - col0 * + col1 * + + col2 - + + col1 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2822
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( + 32 AS SIGNED ) * - + col2 = NULL
----

skipif mysql # not compatible
query III rowsort label-2822
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( + 32 AS INTEGER ) * - + col2 = NULL
----

query II rowsort
SELECT - col1 AS col1, + col1 AS col0 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2824
SELECT ALL - COUNT( * ) AS col0, - SUM( + - 75 ) AS col0 FROM tab2 AS cor0
----
-3
225

skipif mysql # not compatible
query II rowsort label-2824
SELECT ALL - COUNT ( * ) AS col0, - SUM ( + - 75 ) AS col0 FROM tab2 AS cor0
----
-3
225

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 * ( col1 ) AS col1 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT - col1 - + - 63 AS col0 FROM tab2 AS cor0 WHERE ( col1 NOT BETWEEN col1 AND NULL )
----

query II rowsort
SELECT ALL col1 * col1 * 3 + + 61, - col1 + - - col2 AS col1 FROM tab0 AS cor0
----
1384
-11
19744
-34
64
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT ALL + + COUNT( * ) FROM tab2 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2829
SELECT ALL + + COUNT ( * ) FROM tab2 WHERE NOT NULL <= NULL
----
0

query I rowsort
SELECT DISTINCT col1 + + 45 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
112
122
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2831
SELECT + col2 / - + CAST( NULL AS SIGNED ) col0, col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2831
SELECT + col2 / - + CAST ( NULL AS INTEGER ) col0, col0 AS col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2832
SELECT ALL CAST( NULL AS SIGNED ) - + col2 * + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2832
SELECT ALL CAST ( NULL AS INTEGER ) - + col2 * + col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT 52 - SUM( - - col0 ) AS col2 FROM tab2
----
-133

skipif mysql # not compatible
query I rowsort label-2833
SELECT 52 - SUM ( - - col0 ) AS col2 FROM tab2
----
-133

query I rowsort
SELECT DISTINCT + col2 * - + col0 + - col0 FROM tab0
----
-720
-957
-9700

query I rowsort
SELECT ALL - col1 * - 80 + + col1 + + - col1 AS col1 FROM tab2
----
4080
5360
6160

query I rowsort
SELECT DISTINCT 21 - col1 FROM tab2
----
-30
-46
-56

query I rowsort
SELECT DISTINCT - 69 - + 93 FROM tab1
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT + MAX( col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-2838
SELECT + MAX ( col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT 27 * + 69 + - ( col2 ) AS col2 FROM tab1 AS cor0
----
1767
1795
1804

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 86 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2841
SELECT col2 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2841
SELECT col2 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( 18 ) FROM tab2
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2843
SELECT - COUNT( + CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2843
SELECT - COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2844
SELECT ALL COUNT( * ) AS col1, 93 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2844
SELECT ALL COUNT ( * ) AS col1, 93 col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT ALL COUNT( * ) * - 35 AS col2 FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-2845
SELECT ALL COUNT ( * ) * - 35 AS col2 FROM tab2
----
-105

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 - + col1 IS NULL
----

query I rowsort
SELECT ALL + - col0 * 36 AS col2 FROM tab2 cor0
----
-1656
-2304
-2700

onlyif mysql # DIV for integer division: 
query I rowsort label-2848
SELECT ALL ( + + col0 ) DIV col2 FROM tab0 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-2848
SELECT ALL ( + + col0 ) / col2 FROM tab0 cor0
----
0
0
8

query I rowsort
SELECT DISTINCT + col0 * col2 * + - col1 AS col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query II rowsort label-2850
SELECT DISTINCT - COUNT( * ) AS col0, COUNT( * ) * - MAX( DISTINCT col2 ) FROM tab0 AS cor0
----
-3
-297

skipif mysql # not compatible
query II rowsort label-2850
SELECT DISTINCT - COUNT ( * ) AS col0, COUNT ( * ) * - MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
-3
-297

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 44 IS NOT NULL
----

query I rowsort
SELECT + - 19 AS col2 FROM tab1 AS cor0 WHERE NOT + 81 IS NULL
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT ALL + COUNT( - col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2853
SELECT ALL + COUNT ( - col2 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT + col2 * + + col1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT + 7 * - col2 FROM tab1
----
-413
-476
-672

query I rowsort
SELECT DISTINCT - col0 * ( + + col0 ) FROM tab2
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2857
SELECT - CAST( + col1 AS SIGNED ) * col1 * col2 AS col0 FROM tab2
----
-237160
-260362
-59823

skipif mysql # not compatible
query I rowsort label-2857
SELECT - CAST ( + col1 AS INTEGER ) * col1 * col2 AS col0 FROM tab2
----
-237160
-260362
-59823

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 73 * - col2, - 11 * - 69 col1 FROM tab2
----
1679
759
2920
759
4234
759

query I rowsort
SELECT DISTINCT 55 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
55

query I rowsort
SELECT ALL - ( - 5 ) * - + col1 AS col2 FROM tab2 AS cor0
----
-255
-335
-385

query II rowsort
SELECT 7, + col2 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
7
59
7
68
7
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2862
SELECT DISTINCT - - CAST( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) / + ( + + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2862
SELECT DISTINCT - - CAST ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) / + ( + + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2863
SELECT + COUNT( * ) + + - COUNT( * ) AS col0, SUM( DISTINCT + col2 ) FROM tab1 cor0
----
0
223

skipif mysql # not compatible
query II rowsort label-2863
SELECT + COUNT ( * ) + + - COUNT ( * ) AS col0, SUM ( DISTINCT + col2 ) FROM tab1 cor0
----
0
223

query I rowsort
SELECT + 69 * - - col2 FROM tab0 AS cor0
----
3243
6831
690

query I rowsort
SELECT DISTINCT - 22 + + 84 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2866
SELECT ALL - CAST( NULL AS SIGNED ) + - col1 * 10 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2866
SELECT ALL - CAST ( NULL AS INTEGER ) + - col1 * 10 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * - col2 * 5 FROM tab2 WHERE NOT - + 78 IS NULL
----
16820
2645
8000

query I rowsort
SELECT DISTINCT - col2 - - - col2 - - col2 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ( - col0 ) + + + 21 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - - col0 * col2 * 55 + - col1 + + col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT - - col0 + - ( - col1 ) + + - 82 * - - col0 * - 12 AS col1 FROM tab0 AS cor0
----
14856
85716
95546

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT ALL - SUM( + col0 ) FROM tab1 cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2872
SELECT ALL - SUM ( + col0 ) FROM tab1 cor0
----
-227

onlyif mysql # DIV for integer division: 
query I rowsort label-2873
SELECT + 90 * + col1 + + col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
1261
4231
451

skipif mysql # not compatible
query I rowsort label-2873
SELECT + 90 * + col1 + + col2 / + col2 AS col1 FROM tab1 AS cor0
----
1261
4231
451

query I rowsort
SELECT ALL + + 15 AS col2 FROM tab2 AS cor0
----
15
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT DISTINCT ( + SUM( + col1 ) ) AS col0 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT ( + SUM ( + col1 ) ) AS col0 FROM tab1
----
66

onlyif mysql # DIV for integer division: 
query II rowsort label-2876
SELECT DISTINCT 28 col0, - col0 DIV + - col0 FROM tab2
----
28
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2876
SELECT DISTINCT 28 col0, - col0 / + - col0 FROM tab2
----
28
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2877
SELECT COUNT( * ), - SUM( + - col0 ) - + + ( + + SUM( ALL - col0 ) ) AS col2 FROM tab0
----
3
398

skipif mysql # not compatible
query II rowsort label-2877
SELECT COUNT ( * ), - SUM ( + - col0 ) - + + ( + + SUM ( ALL - col0 ) ) AS col2 FROM tab0
----
3
398

query I rowsort
SELECT DISTINCT 19 * + col1 AS col1 FROM tab2 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT DISTINCT - + ( + col0 ) + + - col2 * 20 + col2 FROM tab2 AS cor0 WHERE NULL >= ( + - col1 ) + + col2 / + - 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT ALL - MAX( ALL - - 2 ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL - MAX ( ALL - - 2 ) FROM tab2 AS cor0
----
-2

query I rowsort
SELECT DISTINCT + + 12 AS col0 FROM tab1 cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2882
SELECT DISTINCT + - MAX( + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2882
SELECT DISTINCT + - MAX ( + col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL col0 * - col0 + - 73 FROM tab0 AS cor0
----
-298
-7642
-9482

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT ALL SUM( ALL - 22 ) FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2884
SELECT ALL SUM ( ALL - 22 ) FROM tab2 AS cor0
----
-66

query I rowsort
SELECT - - 22 AS col2 FROM tab0 AS cor0
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2886
SELECT - SUM( - col0 ) * + 77 FROM tab1 AS cor0
----
17479

skipif mysql # not compatible
query I rowsort label-2886
SELECT - SUM ( - col0 ) * + 77 FROM tab1 AS cor0
----
17479

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 2 + - col1, - col1 col1 FROM tab0 AS cor0
----
-23
-21
-3
-1
-83
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2888
SELECT ALL 69 DIV - - col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL 69 / - - col0 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT - 6 + + col0 FROM tab2 cor0
----
40
58
69

query I rowsort
SELECT + - col1 * 26 + + 50 AS col2 FROM tab1 AS cor0
----
-1172
-314
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT DISTINCT + SUM( + 81 ) FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-2891
SELECT DISTINCT + SUM ( + 81 ) FROM tab1 AS cor0
----
243

query I rowsort
SELECT DISTINCT + 58 + + ( - col0 ) FROM tab0 AS cor0
----
-29
-39
43

query I rowsort
SELECT - col1 + - - 72 * - col2 FROM tab2
----
-1707
-2957
-4243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2894
SELECT ALL - CAST( - 14 AS SIGNED ) + + - ( + - COUNT( * ) ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-2894
SELECT ALL - CAST ( - 14 AS INTEGER ) + + - ( + - COUNT ( * ) ) FROM tab1
----
17

query I rowsort
SELECT ALL - 82 + - + col2 AS col2 FROM tab0 WHERE + col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2896
SELECT ALL col1 DIV 57 AS col0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL col1 / 57 AS col0 FROM tab2
----
0
1
1

query I rowsort
SELECT 53 * 31 AS col0 FROM tab0
----
1643
1643
1643

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2898
SELECT DISTINCT - - 99 * - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2898
SELECT DISTINCT - - 99 * - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 32
----

query I rowsort
SELECT ALL ( - 99 ) FROM tab0 AS cor0
----
-99
-99
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2901
SELECT DISTINCT - col1 * col1 DIV + 86 - + col0 + - CAST( col0 AS SIGNED ) FROM tab1 AS cor0
----
-104
-170
-207

skipif mysql # not compatible
query I rowsort label-2901
SELECT DISTINCT - col1 * col1 / + 86 - + col0 + - CAST ( col0 AS INTEGER ) FROM tab1 AS cor0
----
-104
-170
-207

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <> + + 65
----

query III rowsort
SELECT * FROM tab0 WHERE + + col0 <= NULL
----

query I rowsort
SELECT 26 * 4 + - col2 FROM tab1
----
36
45
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT + + COUNT( * ) * + 98 + - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
873

skipif mysql # not compatible
query I rowsort label-2906
SELECT + + COUNT ( * ) * + 98 + - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
873

query I rowsort
SELECT + col0 + - col0 + - col0 * col2 AS col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT col0 + - + 86 + + + col0 FROM tab1 cor0
----
16
84
96

query I rowsort
SELECT ALL 80 - - - 93 AS col1 FROM tab2 AS cor0
----
-13
-13
-13

query I rowsort
SELECT 6 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
6
6
6

query I rowsort
SELECT - - col2 * - + 26 * - col2 AS col2 FROM tab1 AS cor0
----
120224
239616
90506

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT DISTINCT - ( MAX( - col1 ) ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2912
SELECT DISTINCT - ( MAX ( - col1 ) ) FROM tab0 cor0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2913
SELECT - SUM( DISTINCT - 22 ) * - ( COUNT( * ) ) AS col2, - 91 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
-66
NULL

skipif mysql # not compatible
query II rowsort label-2913
SELECT - SUM ( DISTINCT - 22 ) * - ( COUNT ( * ) ) AS col2, - 91 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
-66
NULL

query II rowsort
SELECT ALL col1 - + col0 AS col2, col2 FROM tab0 AS cor0
----
-66
10
-96
99
66
47

query I rowsort
SELECT + + col2 FROM tab0 AS cor0 WHERE 66 = - 31
----

query I rowsort
SELECT ALL + col1 * + + 19 AS col0 FROM tab2 cor0
----
1273
1463
969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2917
SELECT ALL CAST( NULL AS SIGNED ) * + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2917
SELECT ALL CAST ( NULL AS INTEGER ) * + + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + col0 * - 6 FROM tab1
----
2550
25662
4284

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT DISTINCT MAX( ALL + col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2919
SELECT DISTINCT MAX ( ALL + col0 ) AS col1 FROM tab0
----
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 28 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT + COUNT( + ( col1 ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2921
SELECT + COUNT ( + ( col1 ) ) AS col1 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 <> - col2 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2, 47 * + - col0 - + ( - 99 ) + - col0 col2 FROM tab1 AS cor0
----
-59
-3981
-68
-4269
-96
-2349

onlyif mysql # aggregate syntax: 
query II rowsort label-2924
SELECT ALL + + 25 AS col2, + ( 56 ) + + + COUNT( * ) AS col2 FROM tab1 cor0
----
25
59

skipif mysql # not compatible
query II rowsort label-2924
SELECT ALL + + 25 AS col2, + ( 56 ) + + + COUNT ( * ) AS col2 FROM tab1 cor0
----
25
59

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2926
SELECT SUM( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2926
SELECT SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2927
SELECT ALL - COUNT( + - CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2927
SELECT ALL - COUNT ( + - CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 79 ) col1 FROM tab1 AS cor0
----
79

query II rowsort
SELECT + - col1 AS col1, + col0 + col1 + + - col0 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( 50 ) col2, 6 * - + col2 FROM tab1 AS cor0
----
-50
-354
-50
-408
-50
-576

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT 74 * COUNT( * ) * + - 67 col0 FROM tab0
----
-14874

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2931
SELECT 74 * COUNT ( * ) * + - 67 col0 FROM tab0
----
-14874

query III rowsort
SELECT ALL * FROM tab0 WHERE + + ( + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 * + col1 col2 FROM tab0
----
-1008
-3888
-48

query I rowsort
SELECT DISTINCT - 42 + + 69 + - 61 * col1 FROM tab2
----
-3084
-4060
-4670

query I rowsort
SELECT ALL 46 + 21 AS col0 FROM tab2
----
67
67
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2936
SELECT 51 + - + CAST( - col2 AS SIGNED ) + - + col1 DIV 92 * 88 FROM tab2
----
109
74
91

skipif mysql # not compatible
query I rowsort label-2936
SELECT 51 + - + CAST ( - col2 AS INTEGER ) + - + col1 / 92 * 88 FROM tab2
----
109
74
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT - 1 * col1 AS col2, col2 AS col0 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT ALL + + 32 * col2 + + - col2 * - col1 AS col0 FROM tab0 AS cor0
----
3267
530
5311

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT + SUM( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2940
SELECT + SUM ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT DISTINCT - 46 + - + 87 - - MIN( ALL - col2 ) FROM tab1
----
-229

skipif mysql # not compatible
query I rowsort label-2941
SELECT DISTINCT - 46 + - + 87 - - MIN ( ALL - col2 ) FROM tab1
----
-229

query I rowsort
SELECT ALL + - col2 * - col2 FROM tab1 cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-2943
SELECT + COUNT( * ) * 84 col0 FROM tab2 AS cor0
----
252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2943
SELECT + COUNT ( * ) * 84 col0 FROM tab2 AS cor0
----
252

query I rowsort
SELECT - col1 * + + col2 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 43 * - - col0 * + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT MAX( - 22 ) FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-2946
SELECT MAX ( - 22 ) FROM tab2 AS cor0
----
-22

query III rowsort
SELECT * FROM tab1 WHERE NOT - 11 + 86 * - 16 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2948
SELECT 21 DIV - 56 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2948
SELECT 21 / - 56 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT + SUM( ALL + - col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-2949
SELECT + SUM ( ALL + - col1 ) AS col1 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL + + col0 * - col1 FROM tab0 AS cor0 WHERE NOT 88 IS NULL
----
-1215
-1827
-97

query II rowsort
SELECT ALL + - 54 AS col0, col2 AS col1 FROM tab0 AS cor0
----
-54
10
-54
47
-54
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 46 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2953
SELECT DISTINCT - + CAST( col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2953
SELECT DISTINCT - + CAST ( col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2954
SELECT + 37 + col0 + + + CAST( + col1 AS SIGNED ) FROM tab1 cor0
----
102
127
175

skipif mysql # not compatible
query I rowsort label-2954
SELECT + 37 + col0 + + + CAST ( + col1 AS INTEGER ) FROM tab1 cor0
----
102
127
175

query I rowsort
SELECT - 42 + - + ( - col2 ) AS col0 FROM tab1 cor0
----
17
26
54

query I rowsort
SELECT DISTINCT - ( 31 ) FROM tab2 AS cor0
----
-31

query I rowsort
SELECT DISTINCT 89 * col0 + col1 + col1 FROM tab1
----
4567
7575
8193

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2958
SELECT - col0 * - CAST( + ( + col0 ) AS DECIMAL ) / 80 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2958
SELECT - col0 * - CAST ( + ( + col0 ) AS REAL ) / 80 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2959
SELECT DISTINCT - CAST( col0 AS SIGNED ) * - col1 + - + col0 FROM tab1
----
340
4186
663

skipif mysql # not compatible
query I rowsort label-2959
SELECT DISTINCT - CAST ( col0 AS INTEGER ) * - col1 + - + col0 FROM tab1
----
340
4186
663

query II rowsort
SELECT - 69, 80 + + 52 AS col1 FROM tab1
----
-69
132
-69
132
-69
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2961
SELECT DISTINCT + 46 + + - CAST( - AVG ( + 36 ) AS SIGNED ) col1 FROM tab0
----
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2961
SELECT DISTINCT + 46 + + - CAST ( - AVG ( + 36 ) AS INTEGER ) col1 FROM tab0
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 14 col0 FROM tab2
----
14
14
14

query III rowsort
SELECT * FROM tab2 WHERE + - 66 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( - 96 ) * - + 21 AS col2 FROM tab2
----
2016
2016
2016

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2965
SELECT + CAST( NULL AS DECIMAL ), + col0 + + col0 AS col2 FROM tab2 AS cor0
----
NULL
128
NULL
150
NULL
92

skipif mysql # not compatible
query II rowsort label-2965
SELECT + CAST ( NULL AS REAL ), + col0 + + col0 AS col2 FROM tab2 AS cor0
----
NULL
128
NULL
150
NULL
92

query I rowsort
SELECT ALL + + 39 + col0 + ( col1 ) FROM tab1 AS cor0
----
104
129
177

query I rowsort
SELECT ALL col1 + - + col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2968
SELECT * FROM tab2 AS cor0 WHERE NULL < col1 * ( 72 ) * - + CAST( - 51 AS DECIMAL ) * + col1 - - - ( - + col2 )
----

skipif mysql # not compatible
query III rowsort label-2968
SELECT * FROM tab2 AS cor0 WHERE NULL < col1 * ( 72 ) * - + CAST ( - 51 AS REAL ) * + col1 - - - ( - + col2 )
----

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-46
-64
-75

query II rowsort
SELECT ALL 22 AS col0, 98 * + col1 AS col0 FROM tab1 AS cor0
----
22
1372
22
4606
22
490

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT ALL MIN( + + col2 ) + COUNT( * ) AS col1 FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL MIN ( + + col2 ) + COUNT ( * ) AS col1 FROM tab1
----
62

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 87 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query I rowsort
SELECT - 4 AS col2 FROM tab0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT ALL MAX( - + col1 ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2974
SELECT ALL MAX ( - + col1 ) AS col0 FROM tab2 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 col0 FROM tab1 AS cor0
----
-95

query I rowsort
SELECT ALL + 38 * + + col1 + + col2 * col2 AS col0 FROM tab0 AS cor0
----
5287
898
9839

query I rowsort
SELECT ALL + col2 * + col1 * - - col0 AS col2 FROM tab0 AS cor0
----
18270
57105
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 31 col1 FROM tab0 AS cor0 WHERE ( col1 ) IS NOT NULL
----
31
31
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2979
SELECT ALL - + CAST( NULL AS SIGNED ) * - 64 col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2979
SELECT ALL - + CAST ( NULL AS INTEGER ) * - 64 col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2980
SELECT ALL SUM( - col0 ) DIV - + MAX( ALL - 17 ) FROM tab1 cor0
----
-13

skipif mysql # not compatible
query I rowsort label-2980
SELECT ALL SUM ( - col0 ) / - + MAX ( ALL - 17 ) FROM tab1 cor0
----
-13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - 54 ) AS col2, 15 col2 FROM tab0 AS cor0 WHERE NOT 11 * + + col2 IS NULL
----
-54
15
-54
15
-54
15

query II rowsort
SELECT - 53, col0 FROM tab1
----
-53
51
-53
85
-53
91

query II rowsort
SELECT col1 * - col2 * - - 55 AS col1, - 23 AS col1 FROM tab1
----
-16225
-23
-175780
-23
-73920
-23

query I rowsort
SELECT + 96 * 2 AS col1 FROM tab2
----
192
192
192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 22, - col0 * - 41 + + 96 col0 FROM tab1
----
22
2187
22
3581
22
3827

query I rowsort
SELECT DISTINCT col1 * - + ( + col1 ) FROM tab2
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2987
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + CAST( NULL AS SIGNED ) * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2987
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + CAST ( NULL AS INTEGER ) * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2988
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT + 92 + col0 * col0 FROM tab0
----
317
7661
9501

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT ALL 82 + COUNT( * ) AS col2 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL 82 + COUNT ( * ) AS col2 FROM tab0
----
85

query III rowsort
SELECT * FROM tab1 WHERE NOT 54 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab0 WHERE + col1 * col2 + + 33 >= col0
----
15
87
97

query I rowsort
SELECT col2 + + col1 FROM tab0 WHERE col2 BETWEEN ( col1 ) AND NULL
----

query I rowsort
SELECT + 28 * col2 + - col1 * 20 AS col2 FROM tab2
----
-376
-420
284

query I rowsort
SELECT DISTINCT - 18 FROM tab0 WHERE + 41 IS NOT NULL
----
-18

query I rowsort
SELECT + 27 * col2 FROM tab2 WHERE ( ( col2 ) ) BETWEEN + col0 AND ( + col2 + 2 )
----

query I rowsort
SELECT - col1 * col1 + 57 FROM tab1
----
-139
-2152
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT - COUNT( * ) FROM tab0 WHERE ( col1 - - col0 / col0 ) IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2998
SELECT - COUNT ( * ) FROM tab0 WHERE ( col1 - - col0 / col0 ) IN ( col0 )
----
0

query I rowsort
SELECT DISTINCT - col1 + 64 FROM tab0
----
-17
43
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3000
SELECT DISTINCT MIN( 95 ) FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-3000
SELECT DISTINCT MIN ( 95 ) FROM tab2
----
95

query I rowsort
SELECT DISTINCT + 95 * + 51 AS col0 FROM tab2
----
4845

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 54 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( col0 + ( 46 ) ) IS NOT NULL
----

query I rowsort
SELECT + 28 * col1 - col0 AS col0 FROM tab1
----
1225
341
55

query I rowsort
SELECT DISTINCT 45 + - col0 * col0 AS col2 FROM tab0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT ALL ( - 32 ) AS col2 FROM tab2
----
-32
-32
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-3008
SELECT DISTINCT + col2 DIV - 52 - 73 AS col2 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-3008
SELECT DISTINCT + col2 / - 52 - 73 AS col2 FROM tab1
----
-74

query I rowsort
SELECT - col0 * + 16 AS col1 FROM tab2
----
-1024
-1200
-736

query I rowsort
SELECT + 65 * ( - col1 ) AS col2 FROM tab1
----
-3055
-325
-910

query I rowsort
SELECT DISTINCT - 92 * - col2 AS col2 FROM tab2
----
2116
3680
5336

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT - 55 * - COUNT( ALL - col1 / col1 ) FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-3012
SELECT - 55 * - COUNT ( ALL - col1 / col1 ) FROM tab0
----
165

query I rowsort
SELECT - ( - col1 ) * - col2 AS col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE + col1 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3015
SELECT DISTINCT + 7 DIV col0 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT + 7 / col0 AS col1 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 30 / - 10 ) NOT BETWEEN + col1 * + col2 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE col0 = ( col1 * - col0 )
----

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE ( - col2 * + ( - 8 ) ) < - 99 + + 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3019
SELECT DISTINCT MIN( col0 ) col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3019
SELECT DISTINCT MIN ( col0 ) col2 FROM tab2 AS cor0
----
46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 84 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 14 < NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 28 + - col1 BETWEEN ( 86 * col0 ) AND NULL
----

query I rowsort
SELECT DISTINCT + 15 AS col0 FROM tab0 cor0
----
15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 89 / col1 ) BETWEEN ( - ( - ( + col1 ) ) ) AND col1 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3025
SELECT ALL - CAST( NULL AS SIGNED ) * 43 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-3025
SELECT ALL - CAST ( NULL AS INTEGER ) * 43 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * col1 AS col2 FROM tab2 AS cor0 WHERE ( - 34 ) NOT BETWEEN - 35 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT SUM( DISTINCT col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3027
SELECT SUM ( DISTINCT col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL ( - ( - 1 ) ) FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT NULL IN ( col0 + + 39 )
----

query I rowsort
SELECT DISTINCT - + 36 * + 88 AS col0 FROM tab1 AS cor0
----
-3168

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3031
SELECT - 16 + 30 FROM tab0 AS cor0 WHERE NOT ( + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) IS NOT NULL
----
14
14
14

skipif mysql # not compatible
query I rowsort label-3031
SELECT - 16 + 30 FROM tab0 AS cor0 WHERE NOT ( + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) IS NOT NULL
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3032
SELECT - SUM( + 91 ) * - COUNT( * ) col1 FROM tab2 AS cor0
----
819

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3032
SELECT - SUM ( + 91 ) * - COUNT ( * ) col1 FROM tab2 AS cor0
----
819

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * + col0 + + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> ( + 73 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT DISTINCT + SUM( 10 ) AS col2 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT + SUM ( 10 ) AS col2 FROM tab1
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3036
SELECT - ( + 20 ) DIV - 36 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3036
SELECT - ( + 20 ) / - 36 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 27 - - 74 NOT IN ( + col0 )
----

query I rowsort
SELECT - col1 * + col0 * 81 FROM tab2
----
-190026
-399168
-407025

query I rowsort
SELECT DISTINCT + 86 * - + 70 * - col1 AS col0 FROM tab0 AS cor0
----
126420
487620
6020

query I rowsort
SELECT - col1 AS col1 FROM tab0 cor0 WHERE NOT 34 / - 35 NOT BETWEEN ( col1 ) AND ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3041
SELECT - 39 DIV - + col2 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3041
SELECT - 39 / - + col2 FROM tab2 cor0
----
0
0
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - col1 ) AND NULL
----

query I rowsort
SELECT + 53 * + col1 * col1 + 66 FROM tab0 AS cor0
----
119
23439
347799

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT - + COUNT( * ) + 17 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
8

skipif mysql # not compatible
query I rowsort label-3044
SELECT - + COUNT ( * ) + 17 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
8

query I rowsort
SELECT - 35 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT ALL - - 10 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT col2 + - + 80 AS col2 FROM tab2
----
-22
-40
-57

query II rowsort
SELECT ALL - + 14 AS col0, - 15 FROM tab1 AS cor0
----
-14
-15
-14
-15
-14
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-3049
SELECT DISTINCT ( - + col0 ) DIV 79 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT ( - + col0 ) / 79 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT - col0 + + + col2 FROM tab0 cor0
----
-77
2
32

query II rowsort
SELECT ALL col1, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query II rowsort
SELECT ALL + 78 AS col2, + col0 FROM tab1 AS cor0
----
78
51
78
85
78
91

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 78 FROM tab2 AS cor0 WHERE NOT ( - 35 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3055
SELECT DISTINCT - COUNT( * ), - 68 col0 FROM tab2 cor0
----
-3
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3055
SELECT DISTINCT - COUNT ( * ), - 68 col0 FROM tab2 cor0
----
-3
-68

query I rowsort
SELECT - + col2 * - - 92 FROM tab1 AS cor0
----
-5428
-6256
-8832

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT DISTINCT COUNT( + - 31 ) AS col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3057
SELECT DISTINCT COUNT ( + - 31 ) AS col2 FROM tab1 cor0
----
3

query I rowsort
SELECT ALL + - col2 * + 85 AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT - col0 * - + ( 61 ) * + 65 FROM tab0
----
344955
384605
59475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3060
SELECT ALL CAST( NULL AS SIGNED ) * 19 + COUNT( * ) col1 FROM tab2 WHERE + col0 - - col0 - - 80 * col1 > ( - ( col0 ) - 52 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3060
SELECT ALL CAST ( NULL AS INTEGER ) * 19 + COUNT ( * ) col1 FROM tab2 WHERE + col0 - - col0 - - 80 * col1 > ( - ( col0 ) - 52 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3061
SELECT MAX( DISTINCT + + CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3061
SELECT MAX ( DISTINCT + + CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT DISTINCT COUNT( * ) + - 20 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-3062
SELECT DISTINCT COUNT ( * ) + - 20 FROM tab2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT - COUNT( * ) - + 15 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-3063
SELECT - COUNT ( * ) - + 15 FROM tab2
----
-18

query I rowsort
SELECT col1 - + col0 + + col2 * - - col0 AS col0 FROM tab1 cor0
----
4859
4935
6144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3065
SELECT col2 + - 14 FROM tab2 AS cor0 WHERE 38 NOT BETWEEN + CAST( NULL AS SIGNED ) + col0 + + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3065
SELECT col2 + - 14 FROM tab2 AS cor0 WHERE 38 NOT BETWEEN + CAST ( NULL AS INTEGER ) + col0 + + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3066
SELECT DISTINCT + col1 col2 FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) + + + col2 IS NOT NULL
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3066
SELECT DISTINCT + col1 col2 FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + + col2 IS NOT NULL
----
1
21
81

query I rowsort
SELECT + col0 * + col2 + + col0 + + + col0 FROM tab2 AS cor0
----
1150
2688
4500

onlyif mysql # aggregate syntax: 
query I rowsort label-3068
SELECT ALL MIN( - - 18 ) AS col0 FROM tab2 cor0
----
18

skipif mysql # not compatible
query I rowsort label-3068
SELECT ALL MIN ( - - 18 ) AS col0 FROM tab2 cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT ALL SUM( ALL + - 69 ) FROM tab2
----
-207

skipif mysql # not compatible
query I rowsort label-3069
SELECT ALL SUM ( ALL + - 69 ) FROM tab2
----
-207

query III rowsort
SELECT * FROM tab0 WHERE NOT + 45 = - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT ( - col2 ) NOT BETWEEN ( NULL ) AND - col0
----

query II rowsort
SELECT col1 AS col0, col1 AS col2 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3073
SELECT + 43 + + ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND ( - col2 * - + col2 + col2 )
----
43

skipif mysql # not compatible
query I rowsort label-3073
SELECT + 43 + + ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND ( - col2 * - + col2 + col2 )
----
43

query II rowsort
SELECT col1, - 27 FROM tab0 AS cor0
----
1
-27
21
-27
81
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT - - MIN( + + 9 ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3075
SELECT - - MIN ( + + 9 ) AS col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT - 85 * - col0 * col1 - - col1 - col0 FROM tab2 AS cor0
----
199415
418893
427117

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 74 / - col2 - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-3078
SELECT + + 88 AS col2, COUNT( * ) FROM tab0 AS cor0
----
88
3

skipif mysql # not compatible
query II rowsort label-3078
SELECT + + 88 AS col2, COUNT ( * ) FROM tab0 AS cor0
----
88
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 52 col2 FROM tab0
----
52
52
52

query I rowsort
SELECT - + 13 FROM tab0 WHERE NOT ( + col2 ) = ( + col0 )
----
-13
-13
-13

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT + col0 NOT BETWEEN ( - col1 * - - col1 ) AND - col0
----

query I rowsort
SELECT 16 * + col1 AS col1 FROM tab0
----
1296
16
336

onlyif mysql # aggregate syntax: 
query I rowsort label-3083
SELECT - 43 * + ( - 62 ) * + COUNT( * ) AS col0 FROM tab0
----
7998

skipif mysql # not compatible
query I rowsort label-3083
SELECT - 43 * + ( - 62 ) * + COUNT ( * ) AS col0 FROM tab0
----
7998

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL - col0 * 51 FROM tab1
----
-2601
-4335
-4641

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 23 col0, col2 FROM tab2
----
-23
23
-23
40
-23
58

query I rowsort
SELECT + + 6 * col2 FROM tab2 WHERE NOT - col1 NOT BETWEEN ( - col0 ) AND - 21
----
348

query I rowsort
SELECT ALL 88 + + col1 FROM tab1
----
102
135
93

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 41 BETWEEN + - col2 AND NULL
----
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 BETWEEN + - ( col0 ) AND ( 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT MIN( - 69 ) FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-3091
SELECT MIN ( - 69 ) FROM tab0
----
-69

query I rowsort
SELECT + AVG ( - 35 ) + - 47 AS col2 FROM tab2 WHERE NOT + col0 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3093
SELECT - col2 DIV 31 AS col0, + col1 FROM tab0
----
-1
81
-3
1
0
21

skipif mysql # not compatible
query II rowsort label-3093
SELECT - col2 / 31 AS col0, + col1 FROM tab0
----
-1
81
-3
1
0
21

query I rowsort
SELECT 56 * + - col1 AS col1 FROM tab2 AS cor0
----
-2856
-3752
-4312

query I rowsort
SELECT DISTINCT - col1 + + col1 * - col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3096
SELECT col0 * col0 DIV - + col2 AS col1 FROM tab0
----
-4
-756
-95

skipif mysql # not compatible
query I rowsort label-3096
SELECT col0 * col0 / - + col2 AS col1 FROM tab0
----
-4
-756
-95

query I rowsort
SELECT DISTINCT 28 + - ( + + col0 ) + col2 + - col0 * 44 + + ( 60 ) * 94 FROM tab2
----
2351
2828
3621

query I rowsort
SELECT + 49 FROM tab1 AS cor0 WHERE 6 IS NOT NULL
----
49
49
49

query I rowsort
SELECT DISTINCT - col2 + - - col2 + - - col1 FROM tab0 cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT ALL + ( + MIN( + 69 ) ) FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-3100
SELECT ALL + ( + MIN ( + 69 ) ) FROM tab1 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT ALL + 97 * - COUNT( * ) FROM tab2 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-3101
SELECT ALL + 97 * - COUNT ( * ) FROM tab2 AS cor0
----
-291

onlyif mysql # DIV for integer division: 
query I rowsort label-3102
SELECT DISTINCT ( + col0 ) + col2 + ( + 82 ) DIV 86 - col2 AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3102
SELECT DISTINCT ( + col0 ) + col2 + ( + 82 ) / 86 - col2 AS col1 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3103
SELECT - col1 + + col1 / + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT - col1 + + col1 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3104
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3104
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT + col2 + + + 87 * - col2 * + + col1 FROM tab2
----
-102028
-267920
-338024

query III rowsort
SELECT * FROM tab1 WHERE - - 97 < ( - col1 * 49 + col2 - 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT DISTINCT MAX( DISTINCT - 47 ) + SUM( - 6 ) FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-3107
SELECT DISTINCT MAX ( DISTINCT - 47 ) + SUM ( - 6 ) FROM tab0
----
-65

query I rowsort
SELECT ALL - col0 + - 41 FROM tab2
----
-105
-116
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT DISTINCT MAX( + col2 ) AS col2 FROM tab2 WHERE NOT - + col0 * + col0 + 22 + + 90 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT MAX ( + col2 ) AS col2 FROM tab2 WHERE NOT - + col0 * + col0 + 22 + + 90 IS NOT NULL
----
NULL

query I rowsort
SELECT + + 45 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 10 AS col1 FROM tab2 AS cor0 WHERE NULL <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT + MAX( ALL col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3112
SELECT + MAX ( ALL col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3113
SELECT ALL COUNT( * ) + CAST( NULL AS SIGNED ) - - 99 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3113
SELECT ALL COUNT ( * ) + CAST ( NULL AS INTEGER ) - - 99 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - - col1 * - 1 + - col2 FROM tab2 AS cor0
----
-117
-125
-74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <> 35 + + ( - - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2 + + - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3117
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > + col1 + 50 + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-3117
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > + col1 + 50 + + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT ALL + COUNT( * ) FROM tab0 WHERE ( + - 27 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL + COUNT ( * ) FROM tab0 WHERE ( + - 27 ) IS NOT NULL
----
3

query I rowsort
SELECT + 8 FROM tab0 WHERE NOT 17 <> - 45
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - + 82 AND NULL
----

query I rowsort
SELECT col2 * + col1 FROM tab2 WHERE NOT + 60 NOT BETWEEN - ( + - col0 ) AND col2 * + 1
----

query I rowsort
SELECT col1 FROM tab0 WHERE NOT - + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 NOT BETWEEN col1 + col1 - col2 AND + col2 - - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3124
SELECT DISTINCT COUNT( * ) col2, - 32 col2 FROM tab0
----
3
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3124
SELECT DISTINCT COUNT ( * ) col2, - 32 col2 FROM tab0
----
3
-32

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 * col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT ( - + ( - + 77 ) ) NOT IN ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3127
SELECT MIN( + - col1 ) * - COUNT( * ) * - 98 + - COUNT( * ) * - 0 FROM tab0 AS cor0
----
-23814

skipif mysql # not compatible
query I rowsort label-3127
SELECT MIN ( + - col1 ) * - COUNT ( * ) * - 98 + - COUNT ( * ) * - 0 FROM tab0 AS cor0
----
-23814

query I rowsort
SELECT ALL + + col1 - - col1 AS col2 FROM tab0 AS cor0 WHERE + col1 - col1 < - col1
----

query I rowsort
SELECT col0 + 22 FROM tab2
----
68
86
97

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE + 35 + + col1 IS NOT NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 4 + ( + 50 ) NOT IN ( col0, + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 62 + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - + 53, col1 + - col2 AS col2 FROM tab0 AS cor0
----
-53
-98
-53
11
-53
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3134
SELECT CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0 WHERE 63 * col1 <> ( - col2 * + 13 / - col2 + + col2 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3134
SELECT CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0 WHERE 63 * col1 <> ( - col2 * + 13 / - col2 + + col2 )
----
NULL
NULL
NULL

query II rowsort
SELECT col1 AS col0, - col2 AS col2 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3136
SELECT CAST( NULL AS SIGNED ) AS col0, col1 * + 84 FROM tab0 AS cor0
----
NULL
1764
NULL
6804
NULL
84

skipif mysql # not compatible
query II rowsort label-3136
SELECT CAST ( NULL AS INTEGER ) AS col0, col1 * + 84 FROM tab0 AS cor0
----
NULL
1764
NULL
6804
NULL
84

query I rowsort
SELECT 9 * + 15 + + col0 * - + col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3138
SELECT ALL col0 DIV 25 * - col1 * + col2 FROM tab0
----
-297
-630
0

skipif mysql # not compatible
query I rowsort label-3138
SELECT ALL col0 / 25 * - col1 * + col2 FROM tab0
----
-297
-630
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3139
SELECT COUNT( * ) - - + 42 AS col2, + MIN( ALL + 66 ) FROM tab0
----
45
66

skipif mysql # not compatible
query II rowsort label-3139
SELECT COUNT ( * ) - - + 42 AS col2, + MIN ( ALL + 66 ) FROM tab0
----
45
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT DISTINCT COUNT( * ) + - MIN( ALL - 1 ) FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-3140
SELECT DISTINCT COUNT ( * ) + - MIN ( ALL - 1 ) FROM tab2
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 col2 FROM tab2, tab0 cor0
----
4

query I rowsort
SELECT col1 - col1 - - col1 + col1 AS col2 FROM tab1
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3143
SELECT DISTINCT - 41 + - CAST( + col2 AS SIGNED ) FROM tab1
----
-100
-109
-137

skipif mysql # not compatible
query I rowsort label-3143
SELECT DISTINCT - 41 + - CAST ( + col2 AS INTEGER ) FROM tab1
----
-100
-109
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT ALL COUNT( * ) + - - ( COUNT( * ) ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL COUNT ( * ) + - - ( COUNT ( * ) ) AS col1 FROM tab1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3145
SELECT ALL + - MIN( - CAST( - - col1 AS SIGNED ) ) * + CAST( MAX( DISTINCT - ( - - col2 ) ) AS SIGNED ) FROM tab1 AS cor0
----
-2773

skipif mysql # not compatible
query I rowsort label-3145
SELECT ALL + - MIN ( - CAST ( - - col1 AS INTEGER ) ) * + CAST ( MAX ( DISTINCT - ( - - col2 ) ) AS INTEGER ) FROM tab1 AS cor0
----
-2773

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 54 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 29 * - + col2 AS col1 FROM tab0
----
1363
2871
290

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT COUNT( * ) * 64 * + 35 AS col2 FROM tab1
----
6720

skipif mysql # not compatible
query I rowsort label-3148
SELECT COUNT ( * ) * 64 * + 35 AS col2 FROM tab1
----
6720

query I rowsort
SELECT ALL 2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT DISTINCT MAX( - col2 ) col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3150
SELECT DISTINCT MAX ( - col2 ) col1 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT 54 * + col0 FROM tab2 AS cor0
----
2484
3456
4050

query I rowsort
SELECT + ( + 51 ) FROM tab2 AS cor0
----
51
51
51

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 50 * - 60 - + 16 NOT BETWEEN - col0 AND - 16 + 84
----

query I rowsort
SELECT - + 33 + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 4
----

query I rowsort
SELECT 72 FROM tab2 cor0
----
72
72
72

query II rowsort
SELECT DISTINCT - 47, col2 AS col1 FROM tab0 AS cor0
----
-47
10
-47
47
-47
99

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 WHERE ( ( - + col1 ) - col1 * - + col2 * + 24 * - + col2 ) > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - - 52 ) IS NOT NULL
----

query I rowsort
SELECT 23 + col0 * 94 FROM tab0
----
1433
8201
9141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) + + col2 col0 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT ALL - COUNT( * ) + 39 AS col0 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-3161
SELECT ALL - COUNT ( * ) + 39 AS col0 FROM tab0
----
36

query I rowsort
SELECT ALL ( 71 ) FROM tab2
----
71
71
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3163
SELECT * FROM tab2 AS cor0 WHERE 61 * - CAST( CAST( + col1 AS SIGNED ) AS SIGNED ) + - - CAST( + + 94 AS SIGNED ) - 18 <= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3163
SELECT * FROM tab2 AS cor0 WHERE 61 * - CAST ( CAST ( + col1 AS INTEGER ) AS INTEGER ) + - - CAST ( + + 94 AS INTEGER ) - 18 <= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN + col2 AND 30
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT ALL + + 9 + + COUNT( * ) FROM tab2 cor0
----
12

skipif mysql # not compatible
query I rowsort label-3165
SELECT ALL + + 9 + + COUNT ( * ) FROM tab2 cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT COUNT( + col1 ) + + 57 col2 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3166
SELECT COUNT ( + col1 ) + + 57 col2 FROM tab2 AS cor0
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - col1 + + 25 + + + 69 * - col2 * + + col2 col2 FROM tab1 AS cor0
----
-240254
-319169
-635944

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT DISTINCT COUNT( - col2 ) * - MAX( ALL + - 97 ) FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT COUNT ( - col2 ) * - MAX ( ALL + - 97 ) FROM tab0 AS cor0
----
291

query I rowsort
SELECT - col1 + + 77 AS col0 FROM tab2 AS cor0
----
0
10
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3170
SELECT CAST( NULL AS SIGNED ) + col2 + - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3170
SELECT CAST ( NULL AS INTEGER ) + col2 + - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3171
SELECT - col1 + - - CAST( NULL AS DECIMAL ) + - + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3171
SELECT - col1 + - - CAST ( NULL AS REAL ) + - + col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 7 + - col1 FROM tab1
----
-40
-7
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 71 + - col2 <= + 42 - 3
----

query I rowsort
SELECT - ( + 96 ) FROM tab0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3175
SELECT ALL - COUNT( + 84 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3175
SELECT ALL - COUNT ( + 84 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 89 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + + 95 FROM tab0
----
4465
9405
950

query II rowsort
SELECT ALL col2, col1 + col1 FROM tab0
----
10
42
47
162
99
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT ALL + SUM( + + 11 ) col0 FROM tab2
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3180
SELECT ALL + SUM ( + + 11 ) col0 FROM tab2
----
33

query I rowsort
SELECT ALL ( - 97 ) * - + col1 + 59 FROM tab1
----
1417
4618
544

query I rowsort
SELECT DISTINCT - col1 * + 26 * + + col0 AS col0 FROM tab2 AS cor0
----
-128128
-130650
-60996

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT DISTINCT + MIN( 25 ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3183
SELECT DISTINCT + MIN ( 25 ) col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 17 col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-17

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 14 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT + - col2 <= + 87 * + ( col0 ) / col2 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT ALL COUNT( * ) * 28 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL COUNT ( * ) * 28 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
252

onlyif mysql # aggregate syntax: 
query I rowsort label-3188
SELECT ALL MIN( DISTINCT - 8 ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-3188
SELECT ALL MIN ( DISTINCT - 8 ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-24

query I rowsort
SELECT DISTINCT + col0 * + - col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3190
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + - AVG ( DISTINCT col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + - AVG ( DISTINCT col2 ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 72 * + - col0 col2 FROM tab0 AS cor0
----
-1080
-6264
-6984

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT + 94 + + + SUM( ALL + - col0 ) col2 FROM tab1 AS cor0
----
-133

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3192
SELECT + 94 + + + SUM ( ALL + - col0 ) col2 FROM tab1 AS cor0
----
-133

query I rowsort
SELECT + col1 + + - 60 + col2 + ( - 54 ) AS col1 FROM tab2 AS cor0
----
-40
11
3

query I rowsort
SELECT + col0 + - - 82 * 33 * - 54 * + 54 AS col2 FROM tab1 AS cor0
----
-7890605
-7890611
-7890645

query II rowsort
SELECT - ( + ( - 15 ) ), col2 AS col2 FROM tab2 AS cor0
----
15
23
15
40
15
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT ALL + MAX( - - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3197
SELECT ALL + MAX ( - - col0 ) FROM tab0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + + ( + - col1 ) ) + + + ( - + ( ( ( col2 ) ) ) ) + - col0 col0, - col0 * + col1 AS col0 FROM tab1
----
-149
-425
-161
-714
-206
-4277

query III rowsort
SELECT * FROM tab0 WHERE col2 > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT DISTINCT - COUNT( * ) + - - MIN( + - col2 ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-3200
SELECT DISTINCT - COUNT ( * ) + - - MIN ( + - col2 ) FROM tab2 AS cor0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT DISTINCT - MAX( + - col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3201
SELECT DISTINCT - MAX ( + - col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3202
SELECT - col0 + ( - CAST( col1 AS DECIMAL ) ) + - - col1 + + col1 * + col2 * + ( + col0 ) * - col2 * + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3202
SELECT - col0 + ( - CAST ( col1 AS REAL ) ) + - - col1 + + col1 * + col2 * + ( + col0 ) * - col2 * + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3203
SELECT ALL + AVG ( ALL + ( + CAST( NULL AS SIGNED ) ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3203
SELECT ALL + AVG ( ALL + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab1
----
NULL

query I rowsort
SELECT 44 - + col0 FROM tab1 WHERE col1 BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT + col0 * + col1 - - col2 AS col2 FROM tab2 cor0
----
2369
4968
5083

onlyif mysql # DIV for integer division: 
query I rowsort label-3206
SELECT ALL 39 DIV + col0 - col0 - + - col2 FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL 39 / + col0 - col0 - + - col2 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT ALL + 81 AS col2 FROM tab0 cor0
----
81
81
81

query I rowsort
SELECT - col1 * + + col1 AS col2 FROM tab2
----
-2601
-4489
-5929

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3209
SELECT + col2 * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3209
SELECT + col2 * + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 58 AS col2 FROM tab0
----
-58

query I rowsort
SELECT - col0 * col1 * - + 96 * - col2 FROM tab1
----
-2407200
-27920256
-6580224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3212
SELECT DISTINCT + CAST( col0 AS SIGNED ) * + - 0 * col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3212
SELECT DISTINCT + CAST ( col0 AS INTEGER ) * + - 0 * col1 FROM tab2
----
0

query II rowsort
SELECT col0 * + 83 * + col2 AS col2, - col1 FROM tab0
----
58515
-81
72210
-21
797049
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3214
SELECT ALL * FROM tab2 WHERE - col1 IN ( - CAST( - col0 AS SIGNED ) / + ( col1 ), col0 + + 95 + - 45 )
----

skipif mysql # not compatible
query III rowsort label-3214
SELECT ALL * FROM tab2 WHERE - col1 IN ( - CAST ( - col0 AS INTEGER ) / + ( col1 ), col0 + + 95 + - 45 )
----

query I rowsort
SELECT + 17 * col0 FROM tab1
----
1445
1547
867

query I rowsort
SELECT DISTINCT - 31 * - + col2 FROM tab0 AS cor0
----
1457
3069
310

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - 62 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3218
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + CAST( NULL AS SIGNED ), col1 * + 97 + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3218
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + CAST ( NULL AS INTEGER ), col1 * + 97 + - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL col1 * 23 AS col0 FROM tab2 AS cor0
----
1173
1541
1771

query I rowsort
SELECT DISTINCT + 39 AS col0 FROM tab1 cor0
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 * - col0 + - 35 AS col1, - col1 col2 FROM tab0 AS cor0
----
-1250
-81
-132
-1
-1862
-21

query II rowsort
SELECT - col1, col0 * + - 83 AS col0 FROM tab1
----
-14
-4233
-47
-7553
-5
-7055

query I rowsort
SELECT DISTINCT 36 * + col1 AS col1 FROM tab1
----
1692
180
504

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT DISTINCT - MIN( 4 ) AS col1 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT - MIN ( 4 ) AS col1 FROM tab2 AS cor0
----
-4

query I rowsort
SELECT ALL col2 * + 35 * - 26 AS col2 FROM tab2 cor0
----
-20930
-36400
-52780

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 80 * + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3227
SELECT ALL - + SUM( DISTINCT + - CAST( + col0 AS SIGNED ) ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL - + SUM ( DISTINCT + - CAST ( + col0 AS INTEGER ) ) FROM tab1 AS cor0
----
227

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3229
SELECT - CAST( NULL AS SIGNED ) * + col0 / + col0 / + col1 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN 22 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3229
SELECT - CAST ( NULL AS INTEGER ) * + col0 / + col0 / + col1 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN 22 AND NULL
----

query II rowsort
SELECT ALL + col2, - col2 + - col2 FROM tab0 cor0
----
10
-20
47
-94
99
-198

query I rowsort
SELECT DISTINCT - col1 * - 70 * col1 * + 40 + + - 88 FROM tab1 cor0
----
548712
6185112
69912

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT - ( - + MAX( DISTINCT - col0 ) ) + + COUNT( * ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-3232
SELECT - ( - + MAX ( DISTINCT - col0 ) ) + + COUNT ( * ) FROM tab0
----
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3233
SELECT col1 + - CAST( - col2 AS SIGNED ) FROM tab2
----
117
125
74

skipif mysql # not compatible
query I rowsort label-3233
SELECT col1 + - CAST ( - col2 AS INTEGER ) FROM tab2
----
117
125
74

query I rowsort
SELECT ALL + col0 + + + col1 AS col1 FROM tab0
----
108
96
98

query I rowsort
SELECT + col0 + + + ( 50 ) AS col0 FROM tab2
----
114
125
96

query I rowsort
SELECT ALL - col2 AS col2 FROM tab2 WHERE NULL IS NULL AND 12 > col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 55 + - 80 > + col2 * + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT + CAST( NULL AS SIGNED ) * + col0 + - + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT + CAST ( NULL AS INTEGER ) * + col0 + - + col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT 46 = NULL AND NULL >= NULL
----

query I rowsort
SELECT + 3 + + - ( + - col2 ) * - - 80 FROM tab2
----
1843
3203
4643

query I rowsort
SELECT ALL + 56 + - - 56 FROM tab1 AS cor0
----
112
112
112

query I rowsort
SELECT ALL + 26 - + 90 + col1 + + + col2 * col2 * + 36 + + 23 FROM tab0 AS cor0
----
352796
3580
79564

query II rowsort
SELECT DISTINCT + - col1 - - 89 AS col2, - 49 AS col2 FROM tab2 AS cor0
----
12
-49
22
-49
38
-49

query I rowsort
SELECT ALL 22 - + col0 FROM tab2 cor0
----
-24
-42
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT COUNT( * ) - 7 AS col0 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-3245
SELECT COUNT ( * ) - 7 AS col0 FROM tab1
----
-4

query III rowsort
SELECT * FROM tab0 WHERE + 11 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( - + 54 ) AS col0 FROM tab2 AS cor0
----
-54

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + - 69 AS col0, + ( - + col2 ) FROM tab2 cor0
----
-69
-23
-69
-40
-69
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3250
SELECT ALL - - 14 DIV + 78 DIV COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3250
SELECT ALL - - 14 / + 78 / COUNT ( * ) FROM tab1 AS cor0
----
0

query II rowsort
SELECT + - 84, + col1 FROM tab2 AS cor0
----
-84
51
-84
67
-84
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN - col2 / 91 AND NULL
----

query I rowsort
SELECT - col1 * + + 86 FROM tab2
----
-4386
-5762
-6622

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 32 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 46 + + 96 AS col2 FROM tab0 WHERE NOT ( ( NULL ) > NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3256
SELECT DISTINCT ( col1 ), + ( col1 ) + + + CAST( + 51 AS SIGNED ) * - CAST( + - 82 AS SIGNED ) FROM tab1
----
14
4196
47
4229
5
4187

skipif mysql # not compatible
query II rowsort label-3256
SELECT DISTINCT ( col1 ), + ( col1 ) + + + CAST ( + 51 AS INTEGER ) * - CAST ( + - 82 AS INTEGER ) FROM tab1
----
14
4196
47
4229
5
4187

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> 58 / col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * + + col2 <= - 49 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 58 AS col0 FROM tab2 AS cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT DISTINCT + SUM( ALL - 1 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3260
SELECT DISTINCT + SUM ( ALL - 1 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 98 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 0 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT COUNT( * ) + 54 col2 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3263
SELECT COUNT ( * ) + 54 col2 FROM tab1 AS cor0
----
57

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col1 <= NULL )
----

query I rowsort
SELECT - + 18 + col1 FROM tab0 AS cor0
----
-17
3
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3266
SELECT - COUNT( * ) * - 87 + + MAX( DISTINCT + col0 ) FROM tab2 AS cor0
----
336

skipif mysql # not compatible
query I rowsort label-3266
SELECT - COUNT ( * ) * - 87 + + MAX ( DISTINCT + col0 ) FROM tab2 AS cor0
----
336

query II rowsort
SELECT 49 * + - 62 + 11 AS col0, + col0 * col0 * + 84 FROM tab0 AS cor0
----
-3027
18900
-3027
635796
-3027
790356

query I rowsort
SELECT col1 + + col1 * + col0 AS col0 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # aggregate syntax: 
query I rowsort label-3269
SELECT + COUNT( * ) * + - ( - + 35 ) FROM tab0 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-3269
SELECT + COUNT ( * ) * + - ( - + 35 ) FROM tab0 AS cor0
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-3270
SELECT DISTINCT col2 + col0 DIV + 44 FROM tab0 AS cor0
----
101
11
47

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT col2 + col0 / + 44 FROM tab0 AS cor0
----
101
11
47

query III rowsort
SELECT * FROM tab2 WHERE ( - 28 ) + 14 + + + col2 = NULL
----

query II rowsort
SELECT DISTINCT ( - + col0 ), - col2 + col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * + col1 * - col1 + - + 78 FROM tab1
----
200941
2047
9918

query III rowsort
SELECT col2, - ( + ( - - 14 ) ) AS col0, col1 - - - col2 AS col0 FROM tab0
----
9 values hashing to cf674fa5e6acf341e99973afee830e15

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT DISTINCT - - COUNT( * ) + - 48 FROM tab0 WHERE - - col1 + + col1 <= - + ( + col1 )
----
-48

skipif mysql # not compatible
query I rowsort label-3275
SELECT DISTINCT - - COUNT ( * ) + - 48 FROM tab0 WHERE - - col1 + + col1 <= - + ( + col1 )
----
-48

query I rowsort
SELECT 81 * + 40 AS col2 FROM tab1 WHERE - col2 IS NOT NULL
----
3240
3240
3240

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT DISTINCT + + MIN( + 12 ) - + - MAX( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT + + MIN ( + 12 ) - + - MAX ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0
----
-39

query I rowsort
SELECT ALL + + 80 - - - 2 FROM tab1 AS cor0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3279
SELECT - 13 + - COUNT( - + col2 ) * + ( - COUNT( * ) ) AS col1 FROM tab0 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3279
SELECT - 13 + - COUNT ( - + col2 ) * + ( - COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-4

query II rowsort
SELECT DISTINCT + col0, + col0 AS col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3281
SELECT DISTINCT + CAST( + col1 AS SIGNED ) - - + col0 AS col1 FROM tab0 cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-3281
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) - - + col0 AS col1 FROM tab0 cor0
----
108
96
98

query I rowsort
SELECT DISTINCT + col2 + - 50 FROM tab2
----
-10
-27
8

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE NULL NOT BETWEEN + 62 AND NULL
----

query II rowsort
SELECT col1 * + - 98 * + - 28 * + ( - col1 ), - 66 AS col2 FROM tab0
----
-1210104
-66
-18003384
-66
-2744
-66

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3286
SELECT DISTINCT + col2 DIV + col0 AS col2, col0 col1 FROM tab0 AS cor0
----
0
87
1
97
3
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3286
SELECT DISTINCT + col2 / + col0 AS col2, col0 col1 FROM tab0 AS cor0
----
0
87
1
97
3
15

query II rowsort
SELECT ALL + + col0 AS col0, col1 FROM tab2 AS cor0 WHERE col2 + col0 + col0 IS NOT NULL
----
46
51
64
77
75
67

query I rowsort
SELECT ALL + - 70 FROM tab1 cor0
----
-70
-70
-70

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 * - col2 * 55 / - col2 < - - ( col2 ) - - + col0
----

query I rowsort
SELECT DISTINCT + 68 FROM tab2 WHERE NULL = col1
----

query I rowsort
SELECT ALL - ( - 69 ) FROM tab1
----
69
69
69

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 * - 33 IN ( - 20, 48 * + 28 * + 20, + 46 / + 47 * + col2 - - + col0, - 19 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 * + - col1 AS col1 FROM tab1
----
425
4277
714

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3296
SELECT + 77 DIV - 76 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3296
SELECT + 77 / - 76 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3297
SELECT + COUNT( * ) * + ( + MAX( - 8 ) ) DIV COUNT( * ) DIV - - 23 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3297
SELECT + COUNT ( * ) * + ( + MAX ( - 8 ) ) / COUNT ( * ) / - - 23 FROM tab0
----
0

query I rowsort
SELECT ALL - ( + + 84 ) FROM tab2
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT + COUNT( DISTINCT + col1 ) * + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-3299
SELECT + COUNT ( DISTINCT + col1 ) * + COUNT ( * ) FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3300
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-3300
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) < NULL
----

query I rowsort
SELECT ( + 38 ) FROM tab1 cor0
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT - 56 * SUM( + + 53 ) FROM tab0
----
-8904

skipif mysql # not compatible
query I rowsort label-3302
SELECT - 56 * SUM ( + + 53 ) FROM tab0
----
-8904

query I rowsort
SELECT - 43 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3304
SELECT DISTINCT CAST( col2 AS SIGNED ) + + col2 AS col1 FROM tab0
----
198
20
94

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT CAST ( col2 AS INTEGER ) + + col2 AS col1 FROM tab0
----
198
20
94

query I rowsort
SELECT + 97 FROM tab0 AS cor0 WHERE 89 IS NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE col1 <= + col0 * - col1 * col0 * col1
----

query I rowsort
SELECT + col2 * 60 FROM tab2 AS cor0 WHERE ( NULL ) >= - col1 / + col0 - + 56 * + col0 + + + col2
----

query I rowsort
SELECT ALL - 73 * col1 AS col2 FROM tab2 AS cor0
----
-3723
-4891
-5621

query I rowsort
SELECT DISTINCT + + 12 * - 35 FROM tab1 AS cor0
----
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT ALL - COUNT( * ) * - MIN( DISTINCT + - col0 ) AS col1 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-3310
SELECT ALL - COUNT ( * ) * - MIN ( DISTINCT + - col0 ) AS col1 FROM tab2 AS cor0
----
-225

query I rowsort
SELECT DISTINCT 48 + + + 30 FROM tab0
----
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3312
SELECT MAX( DISTINCT + 71 ) + + + ( - CAST( NULL AS SIGNED ) ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3312
SELECT MAX ( DISTINCT + 71 ) + + + ( - CAST ( NULL AS INTEGER ) ) col0 FROM tab1
----
NULL

query I rowsort
SELECT col0 * col1 + 19 FROM tab0
----
116
1234
1846

query I rowsort
SELECT DISTINCT + col1 + - 63 FROM tab2
----
-12
14
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3315
SELECT ALL COUNT( * ) + COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 12 col0 FROM tab1, tab0 AS cor0
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL - 37 - - + col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 92 * col2 + 10 FROM tab2
----
-2106
-3670
-5326

query I rowsort
SELECT ALL + + col2 * + - col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT DISTINCT + - COUNT( col0 ) * - MAX( ALL + + 9 ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3321
SELECT DISTINCT + - COUNT ( col0 ) * - MAX ( ALL + + 9 ) FROM tab2 AS cor0
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-3322
SELECT ALL + COUNT( * ) AS col1, + MIN( - col1 ) AS col2 FROM tab0
----
3
-81

skipif mysql # not compatible
query II rowsort label-3322
SELECT ALL + COUNT ( * ) AS col1, + MIN ( - col1 ) AS col2 FROM tab0
----
3
-81

query I rowsort
SELECT DISTINCT col1 * + + col1 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3324
SELECT ALL + + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL + + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3325
SELECT + + col0, col0 DIV + col2 FROM tab1 cor0
----
51
0
85
1
91
1

skipif mysql # not compatible
query II rowsort label-3325
SELECT + + col0, col0 / + col2 FROM tab1 cor0
----
51
0
85
1
91
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, - col2 AS col0 FROM tab0 cor0
----
10
-10
47
-47
99
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col1 AS col0, + 53, - col0 col0 FROM tab2 AS cor0
----
9 values hashing to 68d0fe511a8aad40db60cc515a19a1cf

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN + 73 AND - col0 / - + 20
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 63 col0, + 68 * + 17 FROM tab0 AS cor0
----
-63
1156
-63
1156
-63
1156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3330
SELECT CAST( - col1 AS SIGNED ) * + + col0 AS col2 FROM tab0 cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-3330
SELECT CAST ( - col1 AS INTEGER ) * + + col0 AS col2 FROM tab0 cor0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3331
SELECT DISTINCT - col0 DIV + - col1 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-3331
SELECT DISTINCT - col0 / + - col1 FROM tab1 AS cor0
----
1
17
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, col2 col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT DISTINCT - + 14 AS col0 FROM tab0 cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3334
SELECT - SUM( + col2 ) col0 FROM tab0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3334
SELECT - SUM ( + col2 ) col0 FROM tab0
----
-156

query I rowsort
SELECT 65 AS col1 FROM tab0 WHERE NOT + + 91 IS NOT NULL
----

query I rowsort
SELECT ALL ( + col1 ) * - - 67 AS col2 FROM tab0
----
1407
5427
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3337
SELECT DISTINCT 68 DIV + COUNT( * ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-3337
SELECT DISTINCT 68 / + COUNT ( * ) FROM tab2
----
22

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * - - col1 + + col2 * + 38 >= - 24
----
15
81
47
87
21
10

query I rowsort
SELECT ALL - 37 * + col2 * + - 34 FROM tab0
----
124542
12580
59126

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 - - - ( 21 ) IS NOT NULL
----

query I rowsort
SELECT 78 * + col2 AS col0 FROM tab1
----
4602
5304
7488

onlyif mysql # DIV for integer division: 
query I rowsort label-3342
SELECT - + col0 DIV + 62 col2 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3342
SELECT - + col0 / + 62 col2 FROM tab2 cor0
----
-1
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3343
SELECT + + 54 DIV col2 * + ( - col1 ) FROM tab2 AS cor0
----
-102
-77
0

skipif mysql # not compatible
query I rowsort label-3343
SELECT + + 54 / col2 * + ( - col1 ) FROM tab2 AS cor0
----
-102
-77
0

query I rowsort
SELECT ALL + col2 * 77 FROM tab1 AS cor0
----
4543
5236
7392

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT DISTINCT - 64 + + + COUNT( * ) FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-3345
SELECT DISTINCT - 64 + + + COUNT ( * ) FROM tab0 AS cor0
----
-61

query I rowsort
SELECT + ( - 65 ) AS col2 FROM tab0 AS cor0
----
-65
-65
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3347
SELECT ALL - + CAST( NULL AS SIGNED ) + + 18 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3347
SELECT ALL - + CAST ( NULL AS INTEGER ) + + 18 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN col2 - col1 / - col0 AND + col1 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - col1 ) * col1 col2 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT ALL 5 * + COUNT( * ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-3350
SELECT ALL 5 * + COUNT ( * ) FROM tab1 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3351
SELECT ALL + 65 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-3351
SELECT ALL + 65 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
62

query I rowsort
SELECT - 42 + + col0 AS col0 FROM tab1 cor0 WHERE ( NULL ) IN ( - ( + col1 ) )
----

query I rowsort
SELECT + col1 * - + ( + 74 ) FROM tab0 AS cor0 WHERE + 43 + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 + + col0 * - col1 - - col2 + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3355
SELECT DISTINCT - - col2 DIV + col0, col1 AS col2 FROM tab0 WHERE - 0 <= col2 + - - col1
----
0
21
1
1
3
81

skipif mysql # not compatible
query II rowsort label-3355
SELECT DISTINCT - - col2 / + col0, col1 AS col2 FROM tab0 WHERE - 0 <= col2 + - - col1
----
0
21
1
1
3
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3356
SELECT DISTINCT + CAST( 48 AS SIGNED ) + + 42 + - CAST( - 17 AS SIGNED ) FROM tab0
----
107

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT + CAST ( 48 AS INTEGER ) + + 42 + - CAST ( - 17 AS INTEGER ) FROM tab0
----
107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3357
SELECT CAST( NULL AS SIGNED ) - + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3357
SELECT CAST ( NULL AS INTEGER ) - + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT DISTINCT - COUNT( * ) + - SUM( DISTINCT + - 23 ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-3358
SELECT DISTINCT - COUNT ( * ) + - SUM ( DISTINCT + - 23 ) FROM tab2
----
20

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 64 / + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 22 * + - col1 FROM tab1 AS cor0
----
-1034
-110
-308

query III rowsort
SELECT * FROM tab1 WHERE NOT 62 IS NOT NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL - - col2 * + col1 FROM tab1 cor0
----
1344
295
3196

query I rowsort
SELECT DISTINCT + col2 * - + col1 AS col0 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL - + 84 * col1 AS col1 FROM tab1 AS cor0
----
-1176
-3948
-420

onlyif mysql # DIV for integer division: 
query I rowsort label-3366
SELECT DISTINCT col0 DIV + col1 + col1 FROM tab0 cor0
----
25
81
98

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT col0 / + col1 + col1 FROM tab0 cor0
----
25
81
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + + col1 ) / + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, 48 FROM tab1
----
59
48
68
48
96
48

query III rowsort
SELECT * FROM tab1 WHERE NOT - 85 * + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 54, col0 AS col2 FROM tab0
----
-54
15
-54
87
-54
97

query III rowsort
SELECT + col2, col0, col0 AS col1 FROM tab1
----
9 values hashing to fac72031e6708b60b9a8d3361c93bc0c

onlyif mysql # DIV for integer division: 
query I rowsort label-3372
SELECT DISTINCT + col2 DIV col0 * - col1 FROM tab1
----
-14
0

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT + col2 / col0 * - col1 FROM tab1
----
-14
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3373
SELECT CAST( NULL AS DECIMAL ) * + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3373
SELECT CAST ( NULL AS REAL ) * + col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 47 + + + col0 FROM tab0
----
134
144
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - col2 col1 FROM tab0
----
100
128
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3376
SELECT - MIN( + col0 ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3376
SELECT - MIN ( + col0 ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE 8 / col0 NOT BETWEEN NULL AND - col1 + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3378
SELECT DISTINCT + - 38 DIV col2 + + col0 FROM tab2 AS cor0
----
45
64
75

skipif mysql # not compatible
query I rowsort label-3378
SELECT DISTINCT + - 38 / col2 + + col0 FROM tab2 AS cor0
----
45
64
75

query I rowsort
SELECT col2 + - - col0 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT DISTINCT MIN( + 82 ) * COUNT( * ) + + COUNT( * ) AS col2 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-3380
SELECT DISTINCT MIN ( + 82 ) * COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2
----
249

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IS NULL OR - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT ALL SUM( + ( + col0 ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-3382
SELECT ALL SUM ( + ( + col0 ) ) FROM tab2
----
185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3383
SELECT - COUNT( * ) DIV ( - 63 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3383
SELECT - COUNT ( * ) / ( - 63 ) AS col2 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3384
SELECT + col0 DIV + - 62 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3384
SELECT + col0 / + - 62 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3385
SELECT DISTINCT * FROM tab0 WHERE + col1 IN ( col0, + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3385
SELECT DISTINCT * FROM tab0 WHERE + col1 IN ( col0, + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = - col2
----

query I rowsort
SELECT DISTINCT ( + 2 ) FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT - + MAX( DISTINCT - col0 ) FROM tab1 cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3388
SELECT - + MAX ( DISTINCT - col0 ) FROM tab1 cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3389
SELECT + + CAST( - 66 AS SIGNED ) FROM tab1 AS cor0
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-3389
SELECT + + CAST ( - 66 AS INTEGER ) FROM tab1 AS cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT DISTINCT COUNT( * ) * + 72 FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-3390
SELECT DISTINCT COUNT ( * ) * + 72 FROM tab1
----
216

query I rowsort
SELECT ALL 80 * - + 53 * col2 FROM tab0 AS cor0
----
-199280
-419760
-42400

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 + - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3392
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 + - col0 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3393
SELECT ALL + col2 * - col1 DIV - col1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3393
SELECT ALL + col2 * - col1 / - col1 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - 62 * - 2 + - - col0 AS col1 FROM tab0 AS cor0
----
139
211
221

query I rowsort
SELECT DISTINCT + 76 AS col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
76

query I rowsort
SELECT + + col1 + col1 * + 31 FROM tab1 AS cor0
----
1504
160
448

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT DISTINCT + MIN( + col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3397
SELECT DISTINCT + MIN ( + col2 ) AS col1 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT + - MAX( DISTINCT + col1 ) + - + 70 FROM tab1 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-3398
SELECT + - MAX ( DISTINCT + col1 ) + - + 70 FROM tab1 AS cor0
----
-117

onlyif mysql # aggregate syntax: 
query II rowsort label-3399
SELECT DISTINCT ( - COUNT( * ) ) AS col0, - 98 FROM tab0 AS cor0
----
-3
-98

skipif mysql # not compatible
query II rowsort label-3399
SELECT DISTINCT ( - COUNT ( * ) ) AS col0, - 98 FROM tab0 AS cor0
----
-3
-98

query II rowsort
SELECT ALL + 55 AS col2, - ( col1 ) FROM tab2
----
55
-51
55
-67
55
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT - MIN( - + 97 ) FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-3401
SELECT - MIN ( - + 97 ) FROM tab1
----
97

query I rowsort
SELECT DISTINCT col2 + - col2 + ( + ( - col0 ) ) * - 21 FROM tab1
----
1071
1785
1911

onlyif mysql # DIV for integer division: 
query I rowsort label-3403
SELECT DISTINCT col1 DIV ( + - ( + + col1 ) ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT col1 / ( + - ( + + col1 ) ) FROM tab2
----
-1

query I rowsort
SELECT - 13 * + - col0 * + - col1 AS col1 FROM tab1
----
-5525
-55601
-9282

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT MIN( DISTINCT + 4 ) AS col2 FROM tab2 WHERE NULL BETWEEN + - ( - col2 ) + - + col1 * + - col1 AND - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3405
SELECT MIN ( DISTINCT + 4 ) AS col2 FROM tab2 WHERE NULL BETWEEN + - ( - col2 ) + - + col1 * + - col1 AND - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT - - MAX( - - 38 ) AS col0 FROM tab2 WHERE - col1 / - - col1 > 22
----
NULL

skipif mysql # not compatible
query I rowsort label-3406
SELECT - - MAX ( - - 38 ) AS col0 FROM tab2 WHERE - col1 / - - col1 > 22
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3407
SELECT 61 DIV + + 96 + + 14 FROM tab1 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-3407
SELECT 61 / + + 96 + + 14 FROM tab1 AS cor0
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 + + col1 * + col2 * + col2 col1 FROM tab1
----
129068
17449
217372

query I rowsort
SELECT col0 + + - col0 * + 98 * + + col2 FROM tab1
----
-479757
-491385
-606333

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT MIN( + 9 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3410
SELECT MIN ( + 9 ) FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3411
SELECT ALL - - COUNT( DISTINCT 4 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL - - COUNT ( DISTINCT 4 ) FROM tab1 AS cor0
----
1

query II rowsort
SELECT + 78 AS col2, col2 FROM tab1 AS cor0
----
78
59
78
68
78
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3413
SELECT DISTINCT - ( + ( - MIN( ALL - 97 ) ) ) - + MIN( - col1 ) FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-3413
SELECT DISTINCT - ( + ( - MIN ( ALL - 97 ) ) ) - + MIN ( - col1 ) FROM tab1 AS cor0
----
-50

onlyif mysql # DIV for integer division: 
query II rowsort label-3414
SELECT DISTINCT + col1 AS col0, col1 DIV - col2 AS col2 FROM tab0 AS cor0
----
1
0
21
-2
81
-1

skipif mysql # not compatible
query II rowsort label-3414
SELECT DISTINCT + col1 AS col0, col1 / - col2 AS col2 FROM tab0 AS cor0
----
1
0
21
-2
81
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3415
SELECT CAST( COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3415
SELECT CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT - col1 AS col0, - 72 AS col1 FROM tab0 AS cor0
----
-1
-72
-21
-72
-81
-72

query I rowsort
SELECT ALL + + 25 * + col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3418
SELECT ALL + 21 FROM tab0 WHERE NOT CAST( 98 AS SIGNED ) / + - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL + 21 FROM tab0 WHERE NOT CAST ( 98 AS INTEGER ) / + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT - SUM( DISTINCT - col1 ) FROM tab2 WHERE NOT ( NOT - 28 * ( + col1 ) * + col2 IS NOT NULL )
----
195

skipif mysql # not compatible
query I rowsort label-3419
SELECT - SUM ( DISTINCT - col1 ) FROM tab2 WHERE NOT ( NOT - 28 * ( + col1 ) * + col2 IS NOT NULL )
----
195

query I rowsort
SELECT DISTINCT - col0 * + - col0 AS col1 FROM tab0
----
225
7569
9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3421
SELECT - COUNT( * ) DIV - COUNT( * ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3421
SELECT - COUNT ( * ) / - COUNT ( * ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT ALL + ( - - COUNT( * ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3422
SELECT ALL + ( - - COUNT ( * ) ) AS col1 FROM tab1
----
3

query II rowsort
SELECT DISTINCT - col2 AS col1, col0 + - col0 + - - col1 FROM tab1
----
-59
5
-68
47
-96
14

query I rowsort
SELECT ( - + 83 ) FROM tab2
----
-83
-83
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 * + col1 col2 FROM tab0
----
-3078
-38
-798

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3426
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3426
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) = NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 26 col2 FROM tab2 cor0
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT - - COUNT( + - col0 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3428
SELECT - - COUNT ( + - col0 ) col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT DISTINCT - COUNT( 59 ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3429
SELECT DISTINCT - COUNT ( 59 ) AS col1 FROM tab0 cor0
----
-3

query I rowsort
SELECT + - 83 * + + 57 AS col1 FROM tab1 AS cor0
----
-4731
-4731
-4731

query I rowsort
SELECT DISTINCT col2 + ( + + 99 ) FROM tab0
----
109
146
198

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN col0 * - - 97 AND - - col1 + 52
----

query I rowsort
SELECT + 5 + + ( - col2 ) FROM tab2
----
-18
-35
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-3434
SELECT DISTINCT - 32 + + - col1 DIV + - ( 41 ) FROM tab1
----
-31
-32

skipif mysql # not compatible
query I rowsort label-3434
SELECT DISTINCT - 32 + + - col1 / + - ( 41 ) FROM tab1
----
-31
-32

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3435
SELECT ALL col2 + - CAST( NULL AS SIGNED ) col1, - 58 * - col0 + - - col1 FROM tab0
----
NULL
5067
NULL
5627
NULL
951

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3435
SELECT ALL col2 + - CAST ( NULL AS INTEGER ) col1, - 58 * - col0 + - - col1 FROM tab0
----
NULL
5067
NULL
5627
NULL
951

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3436
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN + CAST( + + col2 AS SIGNED ) * - col1 - 13 AND - 17 + + + col2
----

skipif mysql # not compatible
query III rowsort label-3436
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN + CAST ( + + col2 AS INTEGER ) * - col1 - 13 AND - 17 + + + col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 15 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3438
SELECT + ( - - col0 ) AS col2, CAST( NULL AS DECIMAL ) * - + col1 AS col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-3438
SELECT + ( - - col0 ) AS col2, CAST ( NULL AS REAL ) * - + col1 AS col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3439
SELECT + SUM( col0 ), + COUNT( * ) AS col2 FROM tab1 AS cor0
----
227
3

skipif mysql # not compatible
query II rowsort label-3439
SELECT + SUM ( col0 ), + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
227
3

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3440
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE ( + 42 ) NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-3440
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE ( + 42 ) NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + 29 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT ALL 61 - - + ( + COUNT( * ) ) AS col1 FROM tab2 cor0
----
64

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL 61 - - + ( + COUNT ( * ) ) AS col1 FROM tab2 cor0
----
64

query I rowsort
SELECT ALL - - 54 * + ( + + col2 ) * + col2 + col1 AS col0 FROM tab1 AS cor0
----
187979
249743
497678

query I rowsort
SELECT + 43 * 25 * + col1 * + + 9 * col2 AS col2 FROM tab0 AS cor0
----
2031750
36832725
957825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3446
SELECT ALL + + 45 FROM tab1 AS cor0 WHERE NULL NOT IN ( - CAST( NULL AS SIGNED ), - col0, col1 )
----

skipif mysql # not compatible
query I rowsort label-3446
SELECT ALL + + 45 FROM tab1 AS cor0 WHERE NULL NOT IN ( - CAST ( NULL AS INTEGER ), - col0, col1 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 39 * col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3448
SELECT DISTINCT + 85 col1, 81 DIV + col2 AS col0 FROM tab2 AS cor0
----
85
1
85
2
85
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3448
SELECT DISTINCT + 85 col1, 81 / + col2 AS col0 FROM tab2 AS cor0
----
85
1
85
2
85
3

query II rowsort
SELECT 49 AS col2, - col0 + + + col1 FROM tab0
----
49
-66
49
-96
49
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3450
SELECT CAST( + 26 AS SIGNED ) FROM tab0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-3450
SELECT CAST ( + 26 AS INTEGER ) FROM tab0
----
26
26
26

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * - + 50 + - col2 IS NOT NULL
----

query III rowsort
SELECT ALL col2, 20, col1 AS col0 FROM tab1
----
9 values hashing to 991f922daa55f1ce39d34a6d5a5e0cf5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col2 - + 0 * col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3454
SELECT ALL * FROM tab0 AS cor0 WHERE + 88 - - - col1 * + col2 * - ( CAST( NULL AS SIGNED ) ) IN ( - 97 )
----

skipif mysql # not compatible
query III rowsort label-3454
SELECT ALL * FROM tab0 AS cor0 WHERE + 88 - - - col1 * + col2 * - ( CAST ( NULL AS INTEGER ) ) IN ( - 97 )
----

query I rowsort
SELECT DISTINCT - ( + - col1 ) AS col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3456
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( + - 4 ) - + col2 = - 13 * - + col2 + - CAST( 38 AS SIGNED )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3456
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( + - 4 ) - + col2 = - 13 * - + col2 + - CAST ( 38 AS INTEGER )
----
15
87
97

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT - + COUNT( * ) + - + 85 + 33 + 97 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
36

skipif mysql # not compatible
query I rowsort label-3458
SELECT - + COUNT ( * ) + - + 85 + 33 + 97 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
36

query I rowsort
SELECT DISTINCT + - ( - 31 ) FROM tab2 AS cor0
----
31

query I rowsort
SELECT ALL - + 19 FROM tab2 AS cor0
----
-19
-19
-19

query I rowsort
SELECT col2 * - col2 + + col0 + + + col0 AS col1 FROM tab1 AS cor0
----
-3311
-4442
-9114

onlyif mysql # DIV for integer division: 
query I rowsort label-3462
SELECT - col0 DIV col0 * col2 + + col1 * ( - col0 ) AS col0 FROM tab2 AS cor0
----
-2369
-4968
-5083

skipif mysql # not compatible
query I rowsort label-3462
SELECT - col0 / col0 * col2 + + col1 * ( - col0 ) AS col0 FROM tab2 AS cor0
----
-2369
-4968
-5083

query II rowsort
SELECT + + col2 + col0 AS col1, col0 FROM tab1 cor0
----
144
85
147
51
159
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3464
SELECT col1 + + - 10 + col0 * + 81 * + - CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-171355
-331709
-455568

skipif mysql # not compatible
query I rowsort label-3464
SELECT col1 + + - 10 + col0 * + 81 * + - CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-171355
-331709
-455568

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT ALL - 65 + - + COUNT( * ) col0 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3465
SELECT ALL - 65 + - + COUNT ( * ) col0 FROM tab2 AS cor0
----
-68

query II rowsort
SELECT + + col2 * + col0, + 81 AS col1 FROM tab0 AS cor0
----
705
81
870
81
9603
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 / col0 + - - col2 + + col2 * - col2 * + col2 * - - col0 <= NULL
----

query II rowsort
SELECT col2, + col0 AS col1 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT ALL col1 + + + col1 AS col0 FROM tab2
----
102
134
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - - col0 * - - 22 col0 FROM tab1
----
-1108
-1865
-1955

query II rowsort
SELECT DISTINCT + 21, + col0 FROM tab1 AS cor0
----
21
51
21
85
21
91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN - col0 + - - ( - 19 ) AND + 16
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3473
SELECT DISTINCT + col2 * - CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3473
SELECT DISTINCT + col2 * - CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT + 82 * col2 FROM tab2
----
1886
3280
4756

query I rowsort
SELECT 11 + - col2 FROM tab2
----
-12
-29
-47

query I rowsort
SELECT + col0 * col1 + - col1 FROM tab2
----
2295
4851
4958

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT DISTINCT SUM( DISTINCT 78 ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-3477
SELECT DISTINCT SUM ( DISTINCT 78 ) FROM tab1
----
78

query I rowsort
SELECT - 24 AS col1 FROM tab0 WHERE NULL < col2 * col1 - - col2
----

query I rowsort
SELECT ALL 58 * - col0 FROM tab0
----
-5046
-5626
-870

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 * 40 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col0 * 14 AS col0 FROM tab0
----
1218
1358
210

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT DISTINCT - MAX( ALL 6 ) col2 FROM tab2
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3482
SELECT DISTINCT - MAX ( ALL 6 ) col2 FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3483
SELECT ALL - ( - COUNT( * ) ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3483
SELECT ALL - ( - COUNT ( * ) ) col0 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT 61 / col1 + 91 NOT IN ( - 15 )
----

query I rowsort
SELECT - 64 FROM tab2 WHERE + ( col2 ) NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT 83 AS col1 FROM tab0 WHERE NULL BETWEEN ( 96 * col0 + 56 ) AND 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT ALL + MAX( col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL + MAX ( col0 ) FROM tab0
----
97

query I rowsort
SELECT 89 - + col1 AS col0 FROM tab0
----
68
8
88

query I rowsort
SELECT - 49 AS col0 FROM tab0 WHERE ( NULL ) = col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3490
SELECT ALL 66 / - CAST( NULL AS DECIMAL ) + + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL 66 / - CAST ( NULL AS REAL ) + + col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 39 + + ( + col2 + + col2 ) NOT IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3492
SELECT ALL - CAST( 77 AS SIGNED ) * col0 + - col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL - CAST ( 77 AS INTEGER ) * col0 + - col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 13 >= 38 + - 50
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE col2 * 54 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3495
SELECT - COUNT( * ) FROM tab0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3495
SELECT - COUNT ( * ) FROM tab0 WHERE col0 IS NULL
----
0

query I rowsort
SELECT ALL + 32 FROM tab0 WHERE - ( col1 ) IS NOT NULL
----
32
32
32

query III rowsort
SELECT ALL * FROM tab2 WHERE 98 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( col1 - + 1 / - col0 ) IS NULL
----

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - 90 * + 89 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT + MIN( ALL 9 ) - - COUNT( * ) AS col0 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-3500
SELECT + MIN ( ALL 9 ) - - COUNT ( * ) AS col0 FROM tab2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT - ( - 5 ) + - SUM( DISTINCT 19 ) FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-3501
SELECT - ( - 5 ) + - SUM ( DISTINCT 19 ) FROM tab0
----
-14

query I rowsort
SELECT col0 - col2 * - ( - col2 ) FROM tab0
----
-13
-2194
-9704

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 / col2 IS NULL
----

query I rowsort
SELECT - col2 * + col0 AS col2 FROM tab0 cor0 WHERE NOT ( + 87 * 47 ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3505
SELECT MAX( col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3505
SELECT MAX ( col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 12 * + 62 AS col2 FROM tab0 AS cor0
----
744

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab2 AS cor0 WHERE col0 / + col0 <> NULL
----

query I rowsort
SELECT ALL - col0 + - col2 * - 84 AS col2 FROM tab1 AS cor0
----
4871
5621
8013

query I rowsort
SELECT ALL + - 23 * + 70 + col2 FROM tab1 AS cor0
----
-1514
-1542
-1551

onlyif mysql # aggregate syntax: 
query I rowsort label-3511
SELECT ALL COUNT( ALL col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3511
SELECT ALL COUNT ( ALL col0 ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 ) * 18 > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + ( + col1 ) AND ( ( col2 ) - - 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT ALL - COUNT( ALL 21 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL - COUNT ( ALL 21 ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3515
SELECT + - SUM( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-3515
SELECT + - SUM ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
-227

onlyif mysql # DIV for integer division: 
query I rowsort label-3516
SELECT + - 13 DIV - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3516
SELECT + - 13 / - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( + 89 ) * - 95 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col0 + + col2 AND - 49 + 76
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 30 / + 35 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3520
SELECT * FROM tab2 AS cor0 WHERE ( CAST( - col0 AS SIGNED ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3520
SELECT * FROM tab2 AS cor0 WHERE ( CAST ( - col0 AS INTEGER ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * + ( - ( col0 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - + 70 + col1 * col2 FROM tab1
----
-2226
-3174
-5655

query III rowsort
SELECT * FROM tab1 WHERE col0 + col1 IS NULL
----

query I rowsort
SELECT col0 + - ( 72 ) * col0 AS col0 FROM tab2
----
-3266
-4544
-5325

onlyif mysql # aggregate syntax: 
query I rowsort label-3525
SELECT DISTINCT 41 * - COUNT( DISTINCT + 26 ) + + COUNT( * ) AS col2 FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-3525
SELECT DISTINCT 41 * - COUNT ( DISTINCT + 26 ) + + COUNT ( * ) AS col2 FROM tab1
----
-38

onlyif mysql # DIV for integer division: 
query I rowsort label-3526
SELECT col0 + - 46 DIV + 12 FROM tab0
----
12
84
94

skipif mysql # not compatible
query I rowsort label-3526
SELECT col0 + - 46 / + 12 FROM tab0
----
12
84
94

query I rowsort
SELECT ALL + ( - col1 ) + 45 FROM tab2
----
-22
-32
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT - MAX( ALL col0 ) col2 FROM tab0 WHERE col1 / + col0 BETWEEN NULL AND col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3528
SELECT - MAX ( ALL col0 ) col2 FROM tab0 WHERE col1 / + col0 BETWEEN NULL AND col1
----
NULL

query I rowsort
SELECT col1 + col0 - + col0 * 34 AS col2 FROM tab0
----
-2850
-3200
-414

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3530
SELECT - col0 * col1 AS col0 FROM tab1 AS cor0 WHERE col1 BETWEEN col1 - - 84 AND ( ( - col0 ) + col2 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3530
SELECT - col0 * col1 AS col0 FROM tab1 AS cor0 WHERE col1 BETWEEN col1 - - 84 AND ( ( - col0 ) + col2 * CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT DISTINCT + + COUNT( DISTINCT col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT + + COUNT ( DISTINCT col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3532
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3532
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
3

query I rowsort
SELECT ALL - - col0 * + + col1 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT - ( - 71 ) * 67 - + col1 AS col2 FROM tab0 AS cor0
----
4676
4736
4756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3535
SELECT + CAST( NULL AS SIGNED ) - + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3535
SELECT + CAST ( NULL AS INTEGER ) - + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3536
SELECT DISTINCT CAST( - 45 AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-45

skipif mysql # not compatible
query I rowsort label-3536
SELECT DISTINCT CAST ( - 45 AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-45

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > 7
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE + 94 * + 34 < NULL
----

query I rowsort
SELECT DISTINCT - 43 * - - 92 * 70 FROM tab2 AS cor0
----
-276920

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + + col2 + - col2 / col1 = ( col2 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col2 * + col0 * 49 * + col1 AS col1 FROM tab1 AS cor0
----
1228675
14250964
3358656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 28 col0 FROM tab0 cor0
----
-28
-28
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-3543
SELECT DISTINCT col1 DIV col1 - + 84 AS col0 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT col1 / col1 - + 84 AS col0 FROM tab1 AS cor0
----
-83

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 38 * 84 NOT BETWEEN NULL AND - 54
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ALL - SUM( DISTINCT - 18 ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL - SUM ( DISTINCT - 18 ) FROM tab0 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-3547
SELECT SUM( DISTINCT + - col1 ) FROM tab1 cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3547
SELECT SUM ( DISTINCT + - col1 ) FROM tab1 cor0
----
-66

query I rowsort
SELECT - - 85 * col2 AS col1 FROM tab0 AS cor0
----
3995
8415
850

query II rowsort
SELECT ALL + + col0, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query I rowsort
SELECT + col0 + col1 * + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col1 - + col1 )
----

query I rowsort
SELECT - - 79 AS col2 FROM tab1 AS cor0
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 AS cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 + col0 FROM tab1 WHERE NOT ( - col2 ) > ( col1 - col0 )
----
147
159

query III rowsort
SELECT ALL * FROM tab1 WHERE - + col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 18 NOT BETWEEN + col1 AND + 20 + ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT + 65 + ( 83 ) >= + col1
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT - - ( + 18 ) NOT IN ( col2 - - col2 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col1 < ( + 7 )
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT - COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3559
SELECT - COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3560
SELECT ALL CAST( + + col0 AS SIGNED ) * - CAST( - - col2 AS SIGNED ) * - col2 FROM tab0 AS cor0
----
33135
8700
950697

skipif mysql # not compatible
query I rowsort label-3560
SELECT ALL CAST ( + + col0 AS INTEGER ) * - CAST ( - - col2 AS INTEGER ) * - col2 FROM tab0 AS cor0
----
33135
8700
950697

query I rowsort
SELECT ALL + ( - col1 ) * - col2 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT ALL - 72 + - col1 * - col0 * - - col1 AS col1 FROM tab0
----
25
38295
98343

query II rowsort
SELECT + col0 * + col0 + - col0 AS col2, - col2 * col0 FROM tab1
----
2550
-4896
7140
-5015
8190
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT - COUNT( * ) + - + 56 * COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-3564
SELECT - COUNT ( * ) + - + 56 * COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT + 84 + + COUNT( * ) + - - 57 AS col0 FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-3565
SELECT + 84 + + COUNT ( * ) + - - 57 AS col0 FROM tab1 AS cor0
----
144

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - + col2 NOT IN ( 14 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 53 + - col0 AS col0 FROM tab0 cor0
----
-34
-44
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3569
SELECT col2 * + col0 * - col2 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-33135
-8700
-950697

skipif mysql # not compatible
query I rowsort label-3569
SELECT col2 * + col0 * - col2 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-33135
-8700
-950697

query I rowsort
SELECT col2 * + - ( col1 ) FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - col0 * - col1 + 27 AND NULL
----

query I rowsort
SELECT + col1 * 7 FROM tab0 AS cor0
----
147
567
7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 62 IS NOT NULL
----

query I rowsort
SELECT col2 * col1 * + col1 AS col1 FROM tab2 AS cor0
----
237160
260362
59823

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3575
SELECT 4 DIV + COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3575
SELECT 4 / + COUNT ( * ) FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3576
SELECT ALL + col0 DIV ( col2 ) + + col2 + - + col0 * col1 FROM tab2 AS cor0
----
-2321
-4887
-4966

skipif mysql # not compatible
query I rowsort label-3576
SELECT ALL + col0 / ( col2 ) + + col2 + - + col0 * col1 FROM tab2 AS cor0
----
-2321
-4887
-4966

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col2 <> - - col2 * + col2
----

query I rowsort
SELECT DISTINCT + + 82 FROM tab0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL + - 8 + + ( - col0 ) + + 13 - col1 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col2 AS col2, - col1 + col2 * col1 FROM tab2
----
23
1122
40
3003
58
3819

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 + - col1 - col0 * + col1 IN ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3582
SELECT ( COUNT( * ) ) + 35 AS col2 FROM tab0 WHERE ( NOT + CAST( + + 38 AS SIGNED ) - + col0 * 8 <= ( 25 ) )
----
35

skipif mysql # not compatible
query I rowsort label-3582
SELECT ( COUNT ( * ) ) + 35 AS col2 FROM tab0 WHERE ( NOT + CAST ( + + 38 AS INTEGER ) - + col0 * 8 <= ( 25 ) )
----
35

query I rowsort
SELECT ALL 81 * - - col0 * - col0 * - 67 + - ( col2 ) FROM tab1
----
14115531
39210016
44940919

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, - col0 FROM tab2 WHERE NOT ( + col0 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col0 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3586
SELECT ALL + col1 + CAST( + col2 AS SIGNED ) - + + 11 * 21 FROM tab2
----
-106
-114
-157

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL + col1 + CAST ( + col2 AS INTEGER ) - + + 11 * 21 FROM tab2
----
-106
-114
-157

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 NOT IN ( 86, + col2 * col2 * col1 + + ( col2 + col0 * + col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 29 + col1 + 35 + + + 67, - col1 * + col0 + + col2 AS col2 FROM tab1
----
136
-366
145
-618
178
-4209

query I rowsort
SELECT col1 - - col1 * + - col0 - - 95 FROM tab0
----
-1
-1039
-1711

query III rowsort
SELECT * FROM tab0 WHERE ( + + col2 ) < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 * - + col2 IN ( + col1 * - - 98 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NULL >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3594
SELECT ALL + MAX( DISTINCT + + col1 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3594
SELECT ALL + MAX ( DISTINCT + + col1 ) AS col1 FROM tab0 AS cor0
----
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 IN ( - - 15 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 86 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3597
SELECT + col2 + - 22 DIV + ( + col1 ) + + 28 DIV - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
55
68
95

skipif mysql # not compatible
query I rowsort label-3597
SELECT + col2 + - 22 / + ( + col1 ) + + 28 / - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
55
68
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3598
SELECT col1 * ( - CAST( - col2 AS SIGNED ) ) AS col1 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-3598
SELECT col1 * ( - CAST ( - col2 AS INTEGER ) ) AS col1 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT - SUM( DISTINCT + 1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3599
SELECT - SUM ( DISTINCT + 1 ) AS col1 FROM tab0
----
-1

query I rowsort
SELECT ( - - ( + col0 ) ) AS col2 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query II rowsort label-3601
SELECT + 54 AS col0, - col2 DIV - col0 AS col0 FROM tab2
----
54
0
54
0
54
0

skipif mysql # not compatible
query II rowsort label-3601
SELECT + 54 AS col0, - col2 / - col0 AS col0 FROM tab2
----
54
0
54
0
54
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 70, 79 col2 FROM tab2
----
-70
79
-70
79
-70
79

query I rowsort
SELECT ( 34 ) FROM tab1 WHERE NOT + col1 BETWEEN + - col1 + 96 AND - 43
----
34
34
34

query I rowsort
SELECT + 19 + - col2 FROM tab2 WHERE NOT 73 <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT ALL SUM( + + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL SUM ( + + col1 ) FROM tab0
----
103

query I rowsort
SELECT DISTINCT + 69 * + + ( + 70 ) + + col2 + + col2 AS col1 FROM tab0
----
4850
4924
5028

query I rowsort
SELECT DISTINCT 47 * + col2 * ( col0 ) AS col0 FROM tab2
----
120320
204450
49726

query I rowsort
SELECT ALL - 85 + + col0 FROM tab2 WHERE NOT + col1 / - col0 + - + col1 - 97 <> col2
----

query II rowsort
SELECT ALL - - col1 AS col0, col1 FROM tab1 AS cor0 WHERE 90 + col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * - 13 * - + ( + + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT + 75 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

onlyif mysql # aggregate syntax: 
query II rowsort label-3613
SELECT - 7 + COUNT( * ) + 22 AS col2, MAX( DISTINCT + - col2 ) FROM tab0 AS cor0 WHERE col0 IS NULL
----
15
NULL

skipif mysql # not compatible
query II rowsort label-3613
SELECT - 7 + COUNT ( * ) + 22 AS col2, MAX ( DISTINCT + - col2 ) FROM tab0 AS cor0 WHERE col0 IS NULL
----
15
NULL

query I rowsort
SELECT DISTINCT 82 - - col2 + 2 FROM tab2 cor0
----
107
124
142

query II rowsort
SELECT ALL - 62, - ( + col0 ) * + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( col0, col1 + - + 11, 62 )
----

query I rowsort
SELECT + col2 + + 55 AS col1 FROM tab1 AS cor0 WHERE NULL IN ( 73 * - 63 )
----

query I rowsort
SELECT col2 * col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT ALL + + 35 - + COUNT( * ) FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL + + 35 - + COUNT ( * ) FROM tab2 AS cor0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3619
SELECT + - MAX( + 33 ) * COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3619
SELECT + - MAX ( + 33 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3620
SELECT 89 DIV 87 * - + col2 + 71 FROM tab2 AS cor0
----
13
31
48

skipif mysql # not compatible
query I rowsort label-3620
SELECT 89 / 87 * - + col2 + 71 FROM tab2 AS cor0
----
13
31
48

query I rowsort
SELECT DISTINCT + + ( - - col2 ) AS col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT + + 21 * - - col2 + col1 * + 7 * + 94 * col0 FROM tab1 AS cor0
----
280889
2815694
471828

onlyif mysql # DIV for integer division: 
query I rowsort label-3623
SELECT - col1 DIV ( col1 ) + - col1 AS col1 FROM tab2 AS cor0
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-3623
SELECT - col1 / ( col1 ) + - col1 AS col1 FROM tab2 AS cor0
----
-52
-68
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT ALL COUNT( + col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL COUNT ( + col1 ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( col2 ) + - + 42 col2, - col1 AS col2 FROM tab1
----
17
-5
26
-47
54
-14

query I rowsort
SELECT - col2 + - + 37 FROM tab0
----
-136
-47
-84

query I rowsort
SELECT 32 + - - col0 * ( + - col1 ) AS col2 FROM tab0
----
-1183
-1795
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT - COUNT( * ) + + COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3628
SELECT - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL + 54 * - - 49 * + col0 + + col2 FROM tab0
----
230212
256761
39737

query III rowsort
SELECT ALL * FROM tab2 WHERE 55 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT ALL + 27 + + COUNT( * ) AS col0 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-3631
SELECT ALL + 27 + + COUNT ( * ) AS col0 FROM tab2
----
30

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - + col0 )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IN ( + 72 )
----

query II rowsort
SELECT DISTINCT - ( 75 ), + col1 FROM tab2 AS cor0
----
-75
51
-75
67
-75
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3635
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE + 41 NOT IN ( + 51 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3635
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE + 41 NOT IN ( + 51 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3636
SELECT ALL col2 * + col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3636
SELECT ALL col2 * + col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) < CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL - col0 AS col0, - 95 AS col1 FROM tab1 AS cor0
----
-51
-95
-85
-95
-91
-95

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * - col2 + + 32 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT - COUNT( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3639
SELECT - COUNT ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + col0 + + 22 FROM tab1 AS cor0
----
107
113
73

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 * col1 < - + 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3642
SELECT SUM( - col1 ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3642
SELECT SUM ( - col1 ) AS col1 FROM tab2
----
-195

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = + - col1 * + + 52 + + ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3644
SELECT ALL - col0 + + CAST( NULL AS SIGNED ) * col1 + - - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3644
SELECT ALL - col0 + + CAST ( NULL AS INTEGER ) * col1 + - - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL ( col2 ), col1 FROM tab0
----
10
21
47
81
99
1

query II rowsort
SELECT DISTINCT col1 + col1 AS col1, col2 FROM tab0
----
162
47
2
99
42
10

query I rowsort
SELECT + ( ( 5 ) ) FROM tab1 AS cor0
----
5
5
5

query I rowsort
SELECT - col1 * 42 * 85 FROM tab2 AS cor0
----
-182070
-239190
-274890

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col1 * + - col0 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 <> - - col0 / 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3651
SELECT DISTINCT COUNT( ALL + col1 ) + + 90 col1 FROM tab1
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3651
SELECT DISTINCT COUNT ( ALL + col1 ) + + 90 col1 FROM tab1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT DISTINCT - SUM( DISTINCT - 47 ) * - COUNT( * ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT - SUM ( DISTINCT - 47 ) * - COUNT ( * ) FROM tab1
----
-141

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3653
SELECT ALL CAST( NULL AS SIGNED ) + + + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3653
SELECT ALL CAST ( NULL AS INTEGER ) + + + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 + - + col1 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT + SUM( - 78 ) AS col0 FROM tab0 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-3655
SELECT + SUM ( - 78 ) AS col0 FROM tab0 AS cor0
----
-234

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 21 * - + 61 * + - 71 + col1 + - + ( - 63 ) * + col1 + 99 + - 80 / + - col1 > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 60 * + col2 + + col0 * - 28 col0 FROM tab2 AS cor0
----
1380
608
92

query I rowsort
SELECT ALL - col0 * + + col1 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT ALL + 98 AS col2 FROM tab2 AS cor0 WHERE NULL <= + col2 + + 0 + + - 39 + - - 94 * - + 66 * - - col2
----

query I rowsort
SELECT DISTINCT 16 * + 84 AS col1 FROM tab0 cor0
----
1344

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT DISTINCT - COUNT( * ) * SUM( DISTINCT - col2 ) AS col1 FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT - COUNT ( * ) * SUM ( DISTINCT - col2 ) AS col1 FROM tab2
----
363

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT DISTINCT MAX( col2 ) + + 12 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT MAX ( col2 ) + + 12 FROM tab1
----
108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3663
SELECT DISTINCT + COUNT( * ) DIV - - COUNT( * ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3663
SELECT DISTINCT + COUNT ( * ) / - - COUNT ( * ) AS col1 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3664
SELECT DISTINCT + CAST( + - col1 AS SIGNED ) AS col0 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-3664
SELECT DISTINCT + CAST ( + - col1 AS INTEGER ) AS col0 FROM tab0
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-3665
SELECT ALL - col2 DIV + ( 34 ) FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-3665
SELECT ALL - col2 / + ( 34 ) FROM tab0
----
-1
-2
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3666
SELECT + CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3666
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT ( - 27 ) + - ( - - COUNT( + 12 ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < + col2
----
-27

skipif mysql # not compatible
query I rowsort label-3667
SELECT ( - 27 ) + - ( - - COUNT ( + 12 ) ) FROM tab2 AS cor0 WHERE NOT ( NULL ) < + col2
----
-27

query I rowsort
SELECT DISTINCT - ( + col0 ) * col1 + - + 86 AS col0 FROM tab1
----
-4363
-511
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT - COUNT( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-3669
SELECT - COUNT ( * ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3670
SELECT + MAX( - + 72 ) AS col2 FROM tab2, tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-3670
SELECT + MAX ( - + 72 ) AS col2 FROM tab2, tab1 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3671
SELECT COUNT( - 94 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3671
SELECT COUNT ( - 94 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query I rowsort
SELECT DISTINCT + 85 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
85

query I rowsort
SELECT 94 AS col2 FROM ( tab0 cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT + + ( - col1 ) * - col1 FROM tab1 AS cor0
----
196
2209
25

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 55 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT ALL + MAX( 28 ) FROM tab2 cor0
----
28

skipif mysql # not compatible
query I rowsort label-3676
SELECT ALL + MAX ( 28 ) FROM tab2 cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT SUM( DISTINCT + - 74 ) FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-3677
SELECT SUM ( DISTINCT + - 74 ) FROM tab1 AS cor0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3678
SELECT * FROM tab2 cor0 WHERE NOT col2 + - col0 > + + CAST( + + col0 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3678
SELECT * FROM tab2 cor0 WHERE NOT col2 + - col0 > + + CAST ( + + col0 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 < 27 / col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3680
SELECT + CAST( COUNT( * ) AS SIGNED ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3680
SELECT + CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL + - ( + - col2 ) + col1 AS col0 FROM tab2 cor0
----
117
125
74

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3683
SELECT COUNT( DISTINCT 35 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3683
SELECT COUNT ( DISTINCT 35 ) FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3684
SELECT 39 DIV - - 68 * + - 84 + + - col2 AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3684
SELECT 39 / - - 68 * + - 84 + + - col2 AS col1 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3685
SELECT CAST( + 9 AS SIGNED ) + col1 FROM tab2
----
60
76
86

skipif mysql # not compatible
query I rowsort label-3685
SELECT CAST ( + 9 AS INTEGER ) + col1 FROM tab2
----
60
76
86

query I rowsort
SELECT DISTINCT col2 + - 43 AS col1 FROM tab1
----
16
25
53

query I rowsort
SELECT DISTINCT col0 * - ( + col1 ) + - - col0 + 16 * - - 14 FROM tab2
----
-2076
-4640
-4726

query I rowsort
SELECT col0 + + + col1 + col1 FROM tab2
----
148
209
218

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, - 29 col0 FROM tab1
----
14
-29
47
-29
5
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT DISTINCT COUNT( * ) col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3690
SELECT DISTINCT COUNT ( * ) col2 FROM tab1 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT DISTINCT - col2 AS col1, col1 + + 99 FROM tab1
----
-59
104
-68
146
-96
113

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL <= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3693
SELECT + CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3693
SELECT + CAST ( CAST ( NULL AS INTEGER ) AS REAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2, - 4 col0 FROM tab1 cor0
----
59
-4
68
-4
96
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT - MAX( + 90 ) FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-3695
SELECT - MAX ( + 90 ) FROM tab2
----
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-3696
SELECT + MIN( DISTINCT + ( col2 ) ) AS col0, COUNT( * ) AS col0 FROM tab2
----
23
3

skipif mysql # not compatible
query II rowsort label-3696
SELECT + MIN ( DISTINCT + ( col2 ) ) AS col0, COUNT ( * ) AS col0 FROM tab2
----
23
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3697
SELECT ALL + CAST( - col0 AS SIGNED ) AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3697
SELECT ALL + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT col1 + col2 * - col2 AS col0 FROM tab1
----
-3476
-4577
-9202

query I rowsort
SELECT 27 - + col2 AS col2 FROM tab2
----
-13
-31
4

query I rowsort
SELECT DISTINCT col2 * - col2 + + col0 FROM tab0
----
-13
-2194
-9704

query I rowsort
SELECT ALL - + 86 * - + col1 * col0 FROM tab0 AS cor0
----
104490
157122
8342

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 72 IS NOT NULL AND NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - 88 - - col0 * - col0 FROM tab0 AS cor0
----
-313
-7657
-9497

query I rowsort
SELECT + col0 + - - 89 * - + col1 AS col2 FROM tab1 AS cor0
----
-1195
-360
-4092

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3705
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + - CAST( NULL AS DECIMAL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3705
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 + - CAST ( NULL AS REAL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 + + col0 * + col2 + - 24 FROM tab2 AS cor0
----
1080
2600
4401

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE + col0 + + + 85 / + - col0 * col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3708
SELECT + AVG ( ALL - CAST( NULL AS SIGNED ) ) * 15 col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3708
SELECT + AVG ( ALL - CAST ( NULL AS INTEGER ) ) * 15 col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3709
SELECT + - col1 DIV - col0 + - + col1 col1 FROM tab2 AS cor0
----
-50
-67
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3709
SELECT + - col1 / - col0 + - + col1 col1 FROM tab2 AS cor0
----
-50
-67
-76

query I rowsort
SELECT ALL ( - + col2 ) FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT DISTINCT + 39 * + COUNT( * ) FROM tab1
----
117

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT + 39 * + COUNT ( * ) FROM tab1
----
117

query I rowsort
SELECT col0 * - + col1 AS col0 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT ALL 45 * + col1 AS col0 FROM tab0
----
3645
45
945

query I rowsort
SELECT 95 * ( - col0 ) FROM tab2
----
-4370
-6080
-7125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3715
SELECT ALL - COUNT( - - CAST( - - col0 AS SIGNED ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL - COUNT ( - - CAST ( - - col0 AS INTEGER ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3716
SELECT ALL - 54 AS col0, - COUNT( * ) AS col2 FROM tab1
----
-54
-3

skipif mysql # not compatible
query II rowsort label-3716
SELECT ALL - 54 AS col0, - COUNT ( * ) AS col2 FROM tab1
----
-54
-3

query II rowsort
SELECT ALL - 42 AS col0, + 67 AS col1 FROM tab0 cor0
----
-42
67
-42
67
-42
67

query I rowsort
SELECT + - 68 FROM tab0 AS cor0 WHERE NOT NULL = - 73
----

query II rowsort
SELECT 89 AS col0, col1 + - + col0 FROM tab2 AS cor0
----
89
-8
89
13
89
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT ALL - + COUNT( * ) * - - 76 FROM tab1 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-3720
SELECT ALL - + COUNT ( * ) * - - 76 FROM tab1 AS cor0
----
-228

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + col1 + 89 - - + col2 * + 22 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - 95 + col0 * - + 61 - ( - + col1 ) FROM tab1 AS cor0
----
-3192
-5275
-5599

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * + col1 col1, + col2 AS col2 FROM tab2 AS cor0
----
-1173
23
-3080
40
-3886
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT 61 + - 31 + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-3724
SELECT 61 + - 31 + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
33

onlyif mysql # aggregate syntax: 
query II rowsort label-3725
SELECT DISTINCT - 76 * + 38 col0, - COUNT( * ) FROM tab2 AS cor0
----
-2888
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3725
SELECT DISTINCT - 76 * + 38 col0, - COUNT ( * ) FROM tab2 AS cor0
----
-2888
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / + - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3727
SELECT - col0 DIV - 58 AS col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3727
SELECT - col0 / - 58 AS col1 FROM tab2 AS cor0
----
0
1
1

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NOT ( NULL NOT BETWEEN + 69 * + col0 AND - - 8 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3729
SELECT - SUM( 40 ) AS col2 FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-3729
SELECT - SUM ( 40 ) AS col2 FROM tab1
----
-120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3730
SELECT ALL - CAST( - 77 AS SIGNED ) + 68 * - COUNT( * ) + + 7 + COUNT( * ) FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-3730
SELECT ALL - CAST ( - 77 AS INTEGER ) + 68 * - COUNT ( * ) + + 7 + COUNT ( * ) FROM tab2
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT ALL + 39 + + - COUNT( * ) col1 FROM tab2
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3731
SELECT ALL + 39 + + - COUNT ( * ) col1 FROM tab2
----
36

query I rowsort
SELECT ALL 63 + - col0 AS col0 FROM tab2
----
-1
-12
17

query I rowsort
SELECT ALL 62 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - ( + col1 ) + col1 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3735
SELECT COUNT( * ) * - COUNT( * ) * MAX( DISTINCT col0 ) DIV COUNT( * ), + COUNT( ALL - + col2 ) AS col0 FROM tab0
----
-291
3

skipif mysql # not compatible
query II rowsort label-3735
SELECT COUNT ( * ) * - COUNT ( * ) * MAX ( DISTINCT col0 ) / COUNT ( * ), + COUNT ( ALL - + col2 ) AS col0 FROM tab0
----
-291
3

query I rowsort
SELECT ALL 61 FROM tab2 WHERE NOT NULL >= - col1
----

query I rowsort
SELECT col2 + + col2 - col1 * - + col1 * + col0 * + col0 * col2 + - 80 AS col1 FROM tab2 AS cor0
----
126585434
1464536286
971407360

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IS NOT NULL AND + col1 IS NULL
----

query I rowsort
SELECT DISTINCT 30 + + 68 FROM tab1 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3740
SELECT DISTINCT + COUNT( * ) + + 24 * + COUNT( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3740
SELECT DISTINCT + COUNT ( * ) + + 24 * + COUNT ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
75

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( - col1 ) * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( + - col0 ) AS col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT col0 + - 51 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
0
34
40

query II rowsort
SELECT + col2 AS col1, + 15 FROM tab0 AS cor0
----
10
15
47
15
99
15

query I rowsort
SELECT + ( - - col1 ) FROM tab1 cor0
----
14
47
5

query II rowsort
SELECT DISTINCT + 10, - col2 AS col0 FROM tab1 AS cor0
----
10
-59
10
-68
10
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT DISTINCT COUNT( + col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3747
SELECT DISTINCT COUNT ( + col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3748
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( CAST( 93 AS DECIMAL ) * + col1 )
----

skipif mysql # not compatible
query III rowsort label-3748
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( CAST ( 93 AS REAL ) * + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + col2 + col1 * - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3750
SELECT ALL - COUNT( * ), 1 AS col1 FROM tab1 AS cor0
----
-3
1

skipif mysql # not compatible
query II rowsort label-3750
SELECT ALL - COUNT ( * ), 1 AS col1 FROM tab1 AS cor0
----
-3
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 27 * + col2 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3752
SELECT DISTINCT + MAX( - 19 ) AS col1, 94 AS col0 FROM tab0
----
-19
94

skipif mysql # not compatible
query II rowsort label-3752
SELECT DISTINCT + MAX ( - 19 ) AS col1, 94 AS col0 FROM tab0
----
-19
94

query III rowsort
SELECT * FROM tab2 WHERE NOT - 13 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT MAX( - - ( - 58 ) ) FROM tab1
----
-58

skipif mysql # not compatible
query I rowsort label-3754
SELECT MAX ( - - ( - 58 ) ) FROM tab1
----
-58

query I rowsort
SELECT col1 * + + 54 FROM tab0
----
1134
4374
54

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < - col0 + - + 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT ALL + + 64 * + + ( COUNT( * ) ) col2 FROM tab2 AS cor0
----
192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3757
SELECT ALL + + 64 * + + ( COUNT ( * ) ) col2 FROM tab2 AS cor0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT ALL + + COUNT( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3758
SELECT ALL + + COUNT ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT ( - SUM( ALL + col1 ) ) col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3759
SELECT ( - SUM ( ALL + col1 ) ) col0 FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3760
SELECT + + CAST( NULL AS SIGNED ) + + col2 + + - 22 * - + col0 AS col0, 56 col2 FROM tab2 WHERE NOT 21 + col0 IS NULL
----
NULL
56
NULL
56
NULL
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3760
SELECT + + CAST ( NULL AS INTEGER ) + + col2 + + - 22 * - + col0 AS col0, 56 col2 FROM tab2 WHERE NOT 21 + col0 IS NULL
----
NULL
56
NULL
56
NULL
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT - 60 * COUNT( * ) AS col0 FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-3761
SELECT - 60 * COUNT ( * ) AS col0 FROM tab1
----
-180

query I rowsort
SELECT DISTINCT 61 * 43 AS col0 FROM tab1
----
2623

query I rowsort
SELECT DISTINCT - 1 * + - col1 FROM tab0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3764
SELECT DISTINCT col2 DIV + - 46 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-3764
SELECT DISTINCT col2 / + - 46 FROM tab2
----
-1
0

query I rowsort
SELECT DISTINCT col0 * + 13 FROM tab0
----
1131
1261
195

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT + 81 * + COUNT( * ) FROM tab0 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-3766
SELECT + 81 * + COUNT ( * ) FROM tab0 AS cor0
----
243

onlyif mysql # aggregate syntax: 
query I rowsort label-3767
SELECT + 86 * - - COUNT( * ) FROM tab0 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-3767
SELECT + 86 * - - COUNT ( * ) FROM tab0 AS cor0
----
258

query I rowsort
SELECT + col0 FROM tab2 cor0 WHERE ( + col2 ) IS NULL
----

query I rowsort
SELECT ALL - - 63 AS col2 FROM tab0 cor0
----
63
63
63

query I rowsort
SELECT DISTINCT - col1 * 21 FROM tab1 cor0
----
-105
-294
-987

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 12 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT DISTINCT + MIN( + ( + 34 ) ) FROM tab2 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-3772
SELECT DISTINCT + MIN ( + ( + 34 ) ) FROM tab2 AS cor0
----
34

query I rowsort
SELECT ALL 64 * + col0 + col0 + col1 FROM tab1
----
3329
5530
5962

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3774
SELECT DISTINCT COUNT( * ) * CAST( COUNT( * ) AS SIGNED ), MAX( ALL + 83 ) * + ( 60 ) - - 23 AS col2 FROM tab1, tab1 cor0
----
81
5003

skipif mysql # not compatible
query II rowsort label-3774
SELECT DISTINCT COUNT ( * ) * CAST ( COUNT ( * ) AS INTEGER ), MAX ( ALL + 83 ) * + ( 60 ) - - 23 AS col2 FROM tab1, tab1 cor0
----
81
5003

query I rowsort
SELECT DISTINCT 46 + + col0 FROM tab0
----
133
143
61

query I rowsort
SELECT - col0 + col0 + - - col1 AS col2 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT + ( + col0 ) FROM tab0 WHERE + col1 IS NOT NULL
----
15
87
97

query I rowsort
SELECT - col1 + + 19 AS col1 FROM tab2
----
-32
-48
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT ALL + ( - 65 ) + - MIN( - + 82 ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL + ( - 65 ) + - MIN ( - + 82 ) FROM tab2
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 + - 85 + - + col0 col0 FROM tab2
----
-60
-78
-89

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3781
SELECT ALL * FROM tab0 WHERE ( - 64 * - CAST( NULL AS SIGNED ) NOT BETWEEN + 33 AND + col1 )
----

skipif mysql # not compatible
query III rowsort label-3781
SELECT ALL * FROM tab0 WHERE ( - 64 * - CAST ( NULL AS INTEGER ) NOT BETWEEN + 33 AND + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT DISTINCT + COUNT( * ) - - - 25 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT + COUNT ( * ) - - - 25 FROM tab2 AS cor0
----
-22

query I rowsort
SELECT ALL col1 * - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3784
SELECT DISTINCT - + MAX( DISTINCT - + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3784
SELECT DISTINCT - + MAX ( DISTINCT - + col0 ) FROM tab1 AS cor0
----
51

query II rowsort
SELECT DISTINCT col0, 35 FROM tab1 AS cor0 WHERE - 37 <> NULL
----

query I rowsort
SELECT DISTINCT - + 10 AS col1 FROM tab0 AS cor0 WHERE col1 * - col1 > - col1
----

query II rowsort
SELECT - - 64, col1 FROM tab2 AS cor0
----
64
51
64
67
64
77

query II rowsort
SELECT 65 * - col1 * + col0 * + 71 * col1, + col1 FROM tab0 cor0
----
-177063705
21
-447655
1
-454185225
81

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 AS cor0 WHERE + col2 * - col0 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-3790
SELECT ALL - + COUNT( * ) col2, COUNT( * ) FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3790
SELECT ALL - + COUNT ( * ) col2, COUNT ( * ) FROM tab1 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT + COUNT( + col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3791
SELECT + COUNT ( + col2 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT + 50 <= - col2 * - - 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT col2, col0 AS col0, + 24 FROM tab2
----
9 values hashing to 7ecf3fffe0c7724a1a343818ea20a5c1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 1 + - ( col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * - - col1 BETWEEN - - 21 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 WHERE NOT + col0 NOT IN ( + 83, col2 / + + 18, + - col1, + ( - col0 ) * + col1 + - 33 + col2, - 17 + - 34 * - 90, + col0 + - - 82 )
----

query I rowsort
SELECT 62 * - col0 AS col1 FROM tab2
----
-2852
-3968
-4650

query II rowsort
SELECT ALL + col0 AS col0, 25 FROM tab2
----
46
25
64
25
75
25

query I rowsort
SELECT DISTINCT + 13 AS col2 FROM tab0 WHERE NOT - col0 <= + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT - MAX( ALL + - col2 ) FROM tab0 WHERE NOT - 31 NOT BETWEEN col0 + - ( + 64 ) AND - - col1 + - col0
----
47

skipif mysql # not compatible
query I rowsort label-3800
SELECT - MAX ( ALL + - col2 ) FROM tab0 WHERE NOT - 31 NOT BETWEEN col0 + - ( + 64 ) AND - - col1 + - col0
----
47

query II rowsort
SELECT 10, - 10 AS col2 FROM tab0
----
10
-10
10
-10
10
-10

query I rowsort
SELECT col1 * - ( + + col1 ) FROM tab1
----
-196
-2209
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - 6 col1 FROM tab2 cor0
----
-138
-240
-348

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 41 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3805
SELECT ALL + + col1, CAST( + + col2 AS SIGNED ) FROM tab2 AS cor0
----
51
23
67
58
77
40

skipif mysql # not compatible
query II rowsort label-3805
SELECT ALL + + col1, CAST ( + + col2 AS INTEGER ) FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT + MAX( + - col0 ) col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3806
SELECT + MAX ( + - col0 ) col1 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT + + col1 + + col0 + + - col0 AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT ALL + - ( SUM( ALL + 9 ) ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3808
SELECT ALL + - ( SUM ( ALL + 9 ) ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 * + - col1 col1 FROM tab2 cor0 WHERE NOT NULL <> ( NULL )
----

query I rowsort
SELECT + ( 31 ) AS col1 FROM tab0
----
31
31
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3811
SELECT - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3811
SELECT - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT + col1 + + col2 * - col2 AS col0 FROM tab2
----
-1523
-3297
-478

query I rowsort
SELECT ALL + 4 AS col0 FROM tab2 cor0
----
4
4
4

query I rowsort
SELECT ALL - + 37 * col1 * - col0 - + + col1 + 10 + + - col0 + col0 * col2 FROM tab0 AS cor0
----
13104
45574
68371

query I rowsort
SELECT + 40 * - - ( - 82 ) + - col1 + + 84 FROM tab1 AS cor0
----
-3201
-3210
-3243

query I rowsort
SELECT - 60 + + 16 + + col2 FROM tab0 AS cor0
----
-34
3
55

query I rowsort
SELECT ALL - 66 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3818
SELECT + col2 * - - col2 * + col2 * col0 DIV col0 FROM tab1 AS cor0
----
205379
314432
884736

skipif mysql # not compatible
query I rowsort label-3818
SELECT + col2 * - - col2 * + col2 * col0 / col0 FROM tab1 AS cor0
----
205379
314432
884736

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT - COUNT( * ) * - ( + 54 ) * 46 FROM tab1 AS cor0
----
7452

skipif mysql # not compatible
query I rowsort label-3819
SELECT - COUNT ( * ) * - ( + 54 ) * 46 FROM tab1 AS cor0
----
7452

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT - MAX( + ( - - col1 ) ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3820
SELECT - MAX ( + ( - - col1 ) ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT + 16 + - - 73 AS col0 FROM tab0 WHERE 57 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT ALL - COUNT( * ) col0 FROM tab1 WHERE + 94 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3822
SELECT ALL - COUNT ( * ) col0 FROM tab1 WHERE + 94 IS NULL
----
0

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE NOT 86 IS NULL
----
14
47
5

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT SUM( DISTINCT - + ( - - col1 ) ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-3825
SELECT SUM ( DISTINCT - + ( - - col1 ) ) AS col2 FROM tab0
----
-103

query II rowsort
SELECT 11 AS col0, + 83 FROM tab1 WHERE NULL IS NULL
----
11
83
11
83
11
83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3827
SELECT CAST( NULL AS SIGNED ) - - MIN( - col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3827
SELECT CAST ( NULL AS INTEGER ) - - MIN ( - col0 ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3828
SELECT ALL col2 DIV - - 25 + col1 * col2 AS col0 FROM tab0
----
102
210
3808

skipif mysql # not compatible
query I rowsort label-3828
SELECT ALL col2 / - - 25 + col1 * col2 AS col0 FROM tab0
----
102
210
3808

query I rowsort
SELECT ALL - 32 * - 82 - - col2 * - col0 * + col0 FROM tab2
----
-161216
-323626
-46044

query I rowsort
SELECT DISTINCT col0 - + 31 FROM tab1
----
20
54
60

query I rowsort
SELECT ALL - - col0 - - ( + - 73 ) + + - 92 + + - col1 * - 33 * - ( col2 ) + - col0 FROM tab1 cor0
----
-105633
-44517
-9900

query I rowsort
SELECT DISTINCT col0 * col0 * + 52 FROM tab1
----
135252
375700
430612

onlyif mysql # DIV for integer division: 
query I rowsort label-3833
SELECT col0 DIV + + col1 AS col0 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-3833
SELECT col0 / + + col1 AS col0 FROM tab1
----
1
17
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3834
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) * + - 74 * + CAST( - 62 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) * + - 74 * + CAST ( - 62 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT - - MIN( DISTINCT - 11 ) FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-3835
SELECT - - MIN ( DISTINCT - 11 ) FROM tab0 AS cor0
----
-11

query II rowsort
SELECT col2 + - - col1 + + 26 + + col1, + col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT - SUM( ALL + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> - 1 * col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3837
SELECT - SUM ( ALL + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> - 1 * col0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 95 < NULL
----

query I rowsort
SELECT + 82 * 59 FROM tab2
----
4838
4838
4838

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE NOT ( 63 >= NULL )
----

query I rowsort
SELECT + col0 * col2 + - - 74 AS col0 FROM tab0 AS cor0
----
779
944
9677

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + col2 AND NULL
----

query II rowsort
SELECT col1 AS col2, + 60 + + 24 FROM tab0
----
1
84
21
84
81
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3844
SELECT - MAX( - + 2 ) * + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3844
SELECT - MAX ( - + 2 ) * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3845
SELECT - 95 + 9 + - col2 / - 21 * + col2 + - col1 + + col1 / - ( + + 65 ) - + - 84 FROM tab1 WHERE + + 36 * + CAST( NULL AS SIGNED ) NOT BETWEEN - 60 AND NULL
----

skipif mysql # not compatible
query I rowsort label-3845
SELECT - 95 + 9 + - col2 / - 21 * + col2 + - col1 + + col1 / - ( + + 65 ) - + - 84 FROM tab1 WHERE + + 36 * + CAST ( NULL AS INTEGER ) NOT BETWEEN - 60 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT ( + 74 ) * COUNT( * ) FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-3846
SELECT ( + 74 ) * COUNT ( * ) FROM tab2
----
222

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 18 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3848
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 20 / 91 * col0 / + 21 + - + col0 BETWEEN + col2 + col0 + col0 * - 40 + - + 38 AND - CAST( NULL AS DECIMAL ) / + - 99 + + + col2
----

skipif mysql # not compatible
query III rowsort label-3848
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 20 / 91 * col0 / + 21 + - + col0 BETWEEN + col2 + col0 + col0 * - 40 + - + 38 AND - CAST ( NULL AS REAL ) / + - 99 + + + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= + 27
----

query I rowsort
SELECT DISTINCT + + col2 * + col0 * col0 AS col1 FROM tab2 AS cor0
----
163840
326250
48668

query I rowsort
SELECT DISTINCT + 74 AS col1 FROM tab1 AS cor0 WHERE NOT col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT + MIN( ( 75 ) ) + 29 AS col0 FROM tab0
----
104

skipif mysql # not compatible
query I rowsort label-3852
SELECT + MIN ( ( 75 ) ) + 29 AS col0 FROM tab0
----
104

query I rowsort
SELECT col1 FROM tab2 WHERE + + col1 / - col0 IS NOT NULL
----
51
67
77

query I rowsort
SELECT + col0 + - + ( - col0 ) AS col2 FROM tab2
----
128
150
92

query I rowsort
SELECT DISTINCT + col1 * - + col0 * - col1 AS col2 FROM tab2
----
119646
336675
379456

query I rowsort
SELECT + col1 + ( - + col1 ) FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col0 + ( col2 ) AS col2 FROM tab2
----
104
133
69

query I rowsort
SELECT ALL + col2 - col2 + col0 AS col0 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3859
SELECT DISTINCT + COUNT( * ) - - ( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3859
SELECT DISTINCT + COUNT ( * ) - - ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3860
SELECT - SUM( ALL - col1 ), CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
66
NULL

skipif mysql # not compatible
query II rowsort label-3860
SELECT - SUM ( ALL - col1 ), CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
66
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 col2 FROM tab1 AS cor0
----
-69
-69
-69

query II rowsort
SELECT DISTINCT col1, - col0 AS col1 FROM tab2
----
51
-46
67
-75
77
-64

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( + + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3864
SELECT - 20 DIV - COUNT( + - ( col2 ) ) AS col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3864
SELECT - 20 / - COUNT ( + - ( col2 ) ) AS col1 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3865
SELECT CAST( NULL AS SIGNED ) AS col1, + 48 AS col1 FROM tab0 AS cor0
----
NULL
48
NULL
48
NULL
48

skipif mysql # not compatible
query II rowsort label-3865
SELECT CAST ( NULL AS INTEGER ) AS col1, + 48 AS col1 FROM tab0 AS cor0
----
NULL
48
NULL
48
NULL
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT - COUNT( 94 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3866
SELECT - COUNT ( 94 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT DISTINCT + SUM( - col1 ) AS col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT + SUM ( - col1 ) AS col0 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN + col1 * + col2 AND NULL
----

query I rowsort
SELECT ALL 8 * + - 30 FROM tab1 AS cor0
----
-240
-240
-240

query II rowsort
SELECT - col0, + col2 AS col0 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query II rowsort
SELECT - 72, - ( - 5 ) + - + col0 * - col2 AS col2 FROM tab0 AS cor0
----
-72
710
-72
875
-72
9608

query I rowsort
SELECT + col1 * + 52 AS col2 FROM tab0 AS cor0
----
1092
4212
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3873
SELECT ALL + + col2 DIV - - col0 + + col0 + - 24 * + - col1 FROM tab2 AS cor0
----
1270
1683
1912

skipif mysql # not compatible
query I rowsort label-3873
SELECT ALL + + col2 / - - col0 + + col0 + - 24 * + - col1 FROM tab2 AS cor0
----
1270
1683
1912

query I rowsort
SELECT DISTINCT col1 * + col0 * + ( + - col0 ) FROM tab0
----
-158949
-18225
-9409

query I rowsort
SELECT ALL col2 FROM tab1 WHERE + col0 + 42 * col0 * - col1 + - col0 < + - col2
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3876
SELECT ALL + CAST( col1 AS SIGNED ) + - - 69 FROM tab1
----
116
74
83

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL + CAST ( col1 AS INTEGER ) + - - 69 FROM tab1
----
116
74
83

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3877
SELECT DISTINCT * FROM tab1 WHERE NOT + 70 / + ( - + CAST( + col1 AS DECIMAL ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3877
SELECT DISTINCT * FROM tab1 WHERE NOT + 70 / + ( - + CAST ( + col1 AS REAL ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3878
SELECT ALL + 46 * + col1, - col2 * - CAST( + + col1 AS SIGNED ) + col1 AS col2 FROM tab1 AS cor0
----
2162
3243
230
300
644
1358

skipif mysql # not compatible
query II rowsort label-3878
SELECT ALL + 46 * + col1, - col2 * - CAST ( + + col1 AS INTEGER ) + col1 AS col2 FROM tab1 AS cor0
----
2162
3243
230
300
644
1358

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 78 + + col0 = NULL
----

query II rowsort
SELECT - + col1 * + col1 AS col1, + col2 FROM tab1 AS cor0
----
-196
96
-2209
68
-25
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - + 72 ) col2, + 95 AS col1 FROM tab1 AS cor0
----
-72
95
-72
95
-72
95

query I rowsort
SELECT ALL - 8 + - + col1 FROM tab1 AS cor0
----
-13
-22
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT DISTINCT CAST( NULL AS SIGNED ) + col1 FROM tab1 WHERE + + col2 < - col0
----

skipif mysql # not compatible
query I rowsort label-3883
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col1 FROM tab1 WHERE + + col2 < - col0
----

query I rowsort
SELECT - ( - 32 ) + 14 FROM tab1 AS cor0
----
46
46
46

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + + ( 14 ) + col0 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 87 + + 87 * - col2 FROM tab2 AS cor0
----
-2088
-3567
-5133

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 + + col1 IS NOT NULL
----

query I rowsort
SELECT - + col0 * - + 62 FROM tab1 cor0
----
3162
5270
5642

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - - col1, col2 AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT DISTINCT - + col1 - 97 AS col2 FROM tab0 AS cor0
----
-118
-178
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT ALL + SUM( DISTINCT 46 ) FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-3892
SELECT ALL + SUM ( DISTINCT 46 ) FROM tab2 cor0
----
46

query I rowsort
SELECT ALL - 52 - - - col0 FROM tab1
----
-103
-137
-143

query I rowsort
SELECT 17 - + 83 FROM tab2
----
-66
-66
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3895
SELECT 7 + - - CAST( NULL AS SIGNED ) AS col2, + COUNT( * ) AS col1 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3895
SELECT 7 + - - CAST ( NULL AS INTEGER ) AS col2, + COUNT ( * ) AS col1 FROM tab2
----
NULL
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3896
SELECT DISTINCT + col1 + CAST( + - col2 AS SIGNED ) * col0 + col1 FROM tab1
----
-4868
-5005
-6094

skipif mysql # not compatible
query I rowsort label-3896
SELECT DISTINCT + col1 + CAST ( + - col2 AS INTEGER ) * col0 + col1 FROM tab1
----
-4868
-5005
-6094

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3897
SELECT - col2 * CAST( NULL AS SIGNED ) - - col1 * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3897
SELECT - col2 * CAST ( NULL AS INTEGER ) - - col1 * col0 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col1 * 25 * + + col1 + - - col0 AS col2 FROM tab2 AS cor0
----
112300
148289
65071

query I rowsort
SELECT ALL + + AVG ( 21 ) / - - 21 FROM tab2 AS cor0 WHERE + col2 * + - col2 / + col0 IS NULL
----
NULL

query I rowsort
SELECT 85 * + col2 AS col1 FROM tab0 cor0 WHERE NOT - col2 IN ( + col2 / - 82 )
----
3995
8415
850

query I rowsort
SELECT 21 * + - col1 FROM tab1
----
-105
-294
-987

query I rowsort
SELECT ALL + col1 * + 79 AS col2 FROM tab2 AS cor0
----
4029
5293
6083

onlyif mysql # DIV for integer division: 
query II rowsort label-3903
SELECT - - col1 DIV col0, 98 * + col0 AS col1 FROM tab2 AS cor0
----
0
7350
1
4508
1
6272

skipif mysql # not compatible
query II rowsort label-3903
SELECT - - col1 / col0, 98 * + col0 AS col1 FROM tab2 AS cor0
----
0
7350
1
4508
1
6272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 col1 FROM tab1 AS cor0
----
-49
-49
-49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3905
SELECT DISTINCT + + col1 * + - 94 / 68 + - - 48 + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3905
SELECT DISTINCT + + col1 * + - 94 / 68 + - - 48 + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3906
SELECT - 91 DIV - col1 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3906
SELECT - 91 / - col1 FROM tab2 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT DISTINCT + COUNT( * ) * MIN( + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3907
SELECT DISTINCT + COUNT ( * ) * MIN ( + col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT DISTINCT COUNT( * ) * - - MAX( - ( + col1 ) ) FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-3908
SELECT DISTINCT COUNT ( * ) * - - MAX ( - ( + col1 ) ) FROM tab2 AS cor0
----
-153

onlyif mysql # aggregate syntax: 
query II rowsort label-3909
SELECT DISTINCT COUNT( * ) AS col1, + COUNT( ALL - 55 ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-3909
SELECT DISTINCT COUNT ( * ) AS col1, + COUNT ( ALL - 55 ) FROM tab0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3910
SELECT ALL * FROM tab2 WHERE NOT CAST( + col2 AS SIGNED ) NOT IN ( + - col0 )
----

skipif mysql # not compatible
query III rowsort label-3910
SELECT ALL * FROM tab2 WHERE NOT CAST ( + col2 AS INTEGER ) NOT IN ( + - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 + - 16 * 37 * col1 col1 FROM tab2
----
-30250
-39722
-45642

query I rowsort
SELECT ALL 53 + - 56 FROM tab2
----
-3
-3
-3

query I rowsort
SELECT + col2 + + + 25 AS col2 FROM tab0
----
124
35
72

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 >= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 * - 70 * 7 + + 52 - - 25 col1 FROM tab0
----
21147
21147
21147

onlyif mysql # DIV for integer division: 
query I rowsort label-3916
SELECT ALL + col2 * - + col1 DIV col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL + col2 * - + col1 / col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT col2 + - 68 FROM tab1
----
-9
0
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3918
SELECT - COUNT( * ) col0 FROM tab0 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3918
SELECT - COUNT ( * ) col0 FROM tab0 cor0
----
-3

query I rowsort
SELECT DISTINCT - col2 + - col1 FROM tab2 AS cor0 WHERE NOT + ( - col1 ) IS NULL
----
-117
-125
-74

query I rowsort
SELECT ALL - 35 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT ALL - col0 + col0 - + col1 * + col0 * col0 AS col2 FROM tab1
----
-36125
-36414
-389207

query I rowsort
SELECT DISTINCT col1 + col2 * + col2 AS col1 FROM tab0
----
121
2290
9802

query I rowsort
SELECT ALL - 41 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT + COUNT( ALL col0 ) + + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3924
SELECT + COUNT ( ALL col0 ) + + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL col0 - + - 45 AS col2 FROM tab0 AS cor0
----
132
142
60

query I rowsort
SELECT ALL - ( + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col1 AND + col0
----

query I rowsort
SELECT DISTINCT + 95 - col1 FROM tab2 AS cor0
----
18
28
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3928
SELECT DISTINCT - COUNT( ALL - + CAST( + col1 AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3928
SELECT DISTINCT - COUNT ( ALL - + CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE 25 IS NULL
----

query I rowsort
SELECT - + 96 * - + 6 + + col2 AS col1 FROM tab1 AS cor0
----
635
644
672

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT DISTINCT MIN( - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT MIN ( - col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT col1 + + - col2 FROM tab1 cor0
----
-21
-54
-82

query I rowsort
SELECT ( - 10 ) + - 65 FROM tab2
----
-75
-75
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-3934
SELECT 89 DIV col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-3934
SELECT 89 / col2 FROM tab2
----
1
2
3

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT 92 * - col0 BETWEEN - col0 AND NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3936
SELECT + MAX( - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3936
SELECT + MAX ( - col1 ) FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT DISTINCT + COUNT( + - col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3937
SELECT DISTINCT + COUNT ( + - col2 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT col0 * + - col1 - col2 - - col0 + + 87 FROM tab1 AS cor0
----
-312
-4167
-672

query I rowsort
SELECT DISTINCT + ( 50 ) AS col1 FROM tab2 AS cor0
----
50

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 80 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col2, + 62 AS col0 FROM tab0 cor0
----
10
62
47
62
99
62

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 / + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT + COUNT( * ) + 42 AS col2 FROM tab0 cor0
----
45

skipif mysql # not compatible
query I rowsort label-3943
SELECT + COUNT ( * ) + 42 AS col2 FROM tab0 cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT + - SUM( DISTINCT - 1 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-3944
SELECT + - SUM ( DISTINCT - 1 ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT MIN( ALL + col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-3945
SELECT MIN ( ALL + col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3946
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + CAST( col2 AS SIGNED ) * col1 * + col2 + + col0 + 35 * - ( + col2 ) AND col0
----

skipif mysql # not compatible
query III rowsort label-3946
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN + CAST ( col2 AS INTEGER ) * col1 * + col2 + + col0 + 35 * - ( + col2 ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT - COUNT( * ) * - 54 * + - 0 FROM tab1, tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3947
SELECT - COUNT ( * ) * - 54 * + - 0 FROM tab1, tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT ALL 96 + COUNT( * ) FROM tab1 WHERE NOT ( + col2 / + col2 < + col1 + + - col2 )
----
99

skipif mysql # not compatible
query I rowsort label-3948
SELECT ALL 96 + COUNT ( * ) FROM tab1 WHERE NOT ( + col2 / + col2 < + col1 + + - col2 )
----
99

query I rowsort
SELECT ALL + col0 + col0 + - col2 + + 40 AS col1 FROM tab1
----
151
154
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT ALL SUM( ALL 20 ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-3950
SELECT ALL SUM ( ALL 20 ) FROM tab0
----
60

query II rowsort
SELECT DISTINCT - ( + - col1 ) AS col2, col2 AS col0 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT + + col1 + - + 84 AS col2 FROM tab0 AS cor0
----
-3
-63
-83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 ) < - 11 OR NOT col1 + - ( - col2 ) * + col1 * + 45 >= col2
----

query I rowsort
SELECT ALL + col1 + 87 AS col2 FROM tab1 cor0 WHERE NOT + ( col2 ) IS NULL
----
101
134
92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN NULL AND - col2 * + - 30 * + col0 - + + 52
----

query II rowsort
SELECT col1 AS col2, + col1 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3957
SELECT ALL + - 82 + ( - + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3957
SELECT ALL + - 82 + ( - + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3958
SELECT - CAST( + col1 AS SIGNED ) * + col0 AS col1 FROM tab0 cor0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-3958
SELECT - CAST ( + col1 AS INTEGER ) * + col0 AS col1 FROM tab0 cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-3959
SELECT DISTINCT 52 - - MAX( col0 ) AS col0, + 74 * - SUM( ( + ( - + col0 ) ) ) AS col1 FROM tab1 AS cor0
----
143
16798

skipif mysql # not compatible
query II rowsort label-3959
SELECT DISTINCT 52 - - MAX ( col0 ) AS col0, + 74 * - SUM ( ( + ( - + col0 ) ) ) AS col1 FROM tab1 AS cor0
----
143
16798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - col0 col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3961
SELECT ALL + col0 - ( - + col2 ) DIV + + CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
52
85
91

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL + col0 - ( - + col2 ) / + + CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
52
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3962
SELECT - SUM( - col2 ) AS col1 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-3962
SELECT - SUM ( - col2 ) AS col1 FROM tab0 cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT DISTINCT + COUNT( + + 68 ) + - ( COUNT( * ) ) * - ( + COUNT( * ) ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3963
SELECT DISTINCT + COUNT ( + + 68 ) + - ( COUNT ( * ) ) * - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col1, 54 AS col0 FROM tab0 AS cor0
----
15
54
87
54
97
54

query I rowsort
SELECT ALL + col1 - + col1 * - + 3 * 64 * - 54 FROM tab0 AS cor0
----
-10367
-217707
-839727

query I rowsort
SELECT - 36 - - col1 + - - col0 * + - col0 * + col0 + - 40 AS col1 FROM tab2 AS cor0
----
-262143
-421884
-97361

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT ( - - col0 ) AS col1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3969
SELECT 58 DIV + 90 * col0 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3969
SELECT 58 / + 90 * col0 col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3970
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN ( CAST( NULL AS SIGNED ) * - + col0 ) AND ( - col1 ) * 55 - + col1
----

skipif mysql # not compatible
query III rowsort label-3970
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN ( CAST ( NULL AS INTEGER ) * - + col0 ) AND ( - col1 ) * 55 - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT - 56 * - COUNT( * ) FROM tab2
----
168

skipif mysql # not compatible
query I rowsort label-3971
SELECT - 56 * - COUNT ( * ) FROM tab2
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3972
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + - 98 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - - 73 - - col2 - col0 * - col2
----

query I rowsort
SELECT DISTINCT - - 49 * - 97 AS col1 FROM tab1 AS cor0
----
-4753

query I rowsort
SELECT - - 21 FROM tab2 cor0
----
21
21
21

query I rowsort
SELECT ALL + + 18 AS col2 FROM tab1 cor0
----
18
18
18

query I rowsort
SELECT + col2 + - 46 FROM tab2
----
-23
-6
12

query I rowsort
SELECT ALL - 62 + + col2 FROM tab1
----
-3
34
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3979
SELECT - CAST( 42 AS SIGNED ) + + col1 AS col2 FROM tab0
----
-21
-41
39

skipif mysql # not compatible
query I rowsort label-3979
SELECT - CAST ( 42 AS INTEGER ) + + col1 AS col2 FROM tab0
----
-21
-41
39

query I rowsort
SELECT DISTINCT col1 + - 31 FROM tab1
----
-17
-26
16

query II rowsort
SELECT DISTINCT col0 AS col1, col1 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT 5 + + - 67 FROM tab2
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT DISTINCT - MIN( 70 ) + + + ( COUNT( * ) ) FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT - MIN ( 70 ) + + + ( COUNT ( * ) ) FROM tab2
----
-67

query I rowsort
SELECT - col2 AS col1 FROM tab2 cor0 WHERE - col1 IS NOT NULL
----
-23
-40
-58

query II rowsort
SELECT - - col1, - col2 AS col1 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3986
SELECT CAST( NULL AS SIGNED ) - - - CAST( + col2 AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3986
SELECT CAST ( NULL AS INTEGER ) - - - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT + COUNT( * ) - - COUNT( * ) AS col0 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3987
SELECT + COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab0
----
6

query III rowsort
SELECT * FROM tab2 WHERE - - 76 + + 58 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3989
SELECT + + col0 DIV 23 + + - 0 FROM tab1 AS cor0
----
2
3
3

skipif mysql # not compatible
query I rowsort label-3989
SELECT + + col0 / 23 + + - 0 FROM tab1 AS cor0
----
2
3
3

query I rowsort
SELECT DISTINCT + 45 FROM tab2 cor0
----
45

query I rowsort
SELECT ALL + 41 * col0 AS col2 FROM tab1 AS cor0
----
2091
3485
3731

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 15 * + col0 + col1 + + ( 33 ) col0, col2 FROM tab2 AS cor0
----
-1025
58
-606
23
-850
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT + COUNT( * ) * 58 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-3993
SELECT + COUNT ( * ) * 58 FROM tab2
----
174

onlyif mysql # DIV for integer division: 
query I rowsort label-3994
SELECT - col1 DIV 23 * + col1 col2 FROM tab2
----
-102
-134
-231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3994
SELECT - col1 / 23 * + col1 col2 FROM tab2
----
-102
-134
-231

onlyif mysql # DIV for integer division: 
query I rowsort label-3995
SELECT ALL - 29 DIV + col1 FROM tab1
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL - 29 / + col1 FROM tab1
----
-2
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT MIN( - ( - 69 ) ) FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-3996
SELECT MIN ( - ( - 69 ) ) FROM tab0
----
69

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NOT - col2 IS NULL
----
-51
-67
-77

query I rowsort
SELECT - col2 * - + 50 FROM tab1 AS cor0
----
2950
3400
4800

query II rowsort
SELECT ALL 71 AS col2, 93 AS col0 FROM tab1 cor0
----
71
93
71
93
71
93

query II rowsort
SELECT col1, + col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4001
SELECT DISTINCT - CAST( - - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4001
SELECT DISTINCT - CAST ( - - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4002
SELECT * FROM tab0 WHERE - col1 + + 38 BETWEEN - CAST( + col2 AS SIGNED ) AND - col2 - 98
----

skipif mysql # not compatible
query III rowsort label-4002
SELECT * FROM tab0 WHERE - col1 + + 38 BETWEEN - CAST ( + col2 AS INTEGER ) AND - col2 - 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4003
SELECT DISTINCT + ( COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4003
SELECT DISTINCT + ( COUNT ( * ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT SUM( 64 ) FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-4004
SELECT SUM ( 64 ) FROM tab2
----
192

query I rowsort
SELECT col0 + 12 AS col2 FROM tab0
----
109
27
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4006
SELECT DISTINCT CAST( NULL AS SIGNED ) col0 FROM tab2 WHERE NOT + 0 IN ( col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4006
SELECT DISTINCT CAST ( NULL AS INTEGER ) col0 FROM tab2 WHERE NOT + 0 IN ( col0 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 6 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT SUM( col0 ) AS col0 FROM tab1 WHERE NOT ( + col1 ) IS NULL
----
227

skipif mysql # not compatible
query I rowsort label-4008
SELECT SUM ( col0 ) AS col0 FROM tab1 WHERE NOT ( + col1 ) IS NULL
----
227

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NULL BETWEEN ( NULL ) AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 72 * + 11 + 29 col2 FROM tab0
----
-763
-763
-763

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4011
SELECT + CAST( - col0 AS SIGNED ) * 34 AS col0 FROM tab0
----
-2958
-3298
-510

skipif mysql # not compatible
query I rowsort label-4011
SELECT + CAST ( - col0 AS INTEGER ) * 34 AS col0 FROM tab0
----
-2958
-3298
-510

query I rowsort
SELECT - col0 * 29 FROM tab1
----
-1479
-2465
-2639

onlyif mysql # DIV for integer division: 
query I rowsort label-4013
SELECT 39 * ( + col1 ) + + col1 DIV + col0 FROM tab2
----
1990
2613
3004

skipif mysql # not compatible
query I rowsort label-4013
SELECT 39 * ( + col1 ) + + col1 / + col0 FROM tab2
----
1990
2613
3004

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 ) < + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 58 + - 15 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT ALL + ( ( + COUNT( * ) ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4016
SELECT ALL + ( ( + COUNT ( * ) ) ) AS col0 FROM tab2
----
3

query I rowsort
SELECT col2 + ( col0 ) AS col0 FROM tab1
----
144
147
159

onlyif mysql # DIV for integer division: 
query I rowsort label-4018
SELECT col1 DIV + col2 + - 57 AS col2 FROM tab2
----
-55
-56
-56

skipif mysql # not compatible
query I rowsort label-4018
SELECT col1 / + col2 + - 57 AS col2 FROM tab2
----
-55
-56
-56

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 ) NOT BETWEEN - 16 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < col1 * - col2
----

query I rowsort
SELECT DISTINCT - 69 * col0 AS col0 FROM tab2
----
-3174
-4416
-5175

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT DISTINCT + 90 * COUNT( * ) AS col0 FROM tab2 WHERE NOT col0 / col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4022
SELECT DISTINCT + 90 * COUNT ( * ) AS col0 FROM tab2 WHERE NOT col0 / col0 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4023
SELECT - MIN( - 20 ) - + 44 AS col1 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-4023
SELECT - MIN ( - 20 ) - + 44 AS col1 FROM tab2
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4024
SELECT ALL 74 * + COUNT( * ) FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-4024
SELECT ALL 74 * + COUNT ( * ) FROM tab2
----
222

query I rowsort
SELECT ALL + 33 * - 9 FROM tab2
----
-297
-297
-297

query III rowsort
SELECT * FROM tab2 WHERE ( 88 ) IN ( - col2 )
----

query I rowsort
SELECT ALL + 14 FROM tab1 WHERE NULL BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT - COUNT( DISTINCT col0 ) + - MIN( DISTINCT + col2 ) * 63 FROM tab2
----
-1452

skipif mysql # not compatible
query I rowsort label-4028
SELECT - COUNT ( DISTINCT col0 ) + - MIN ( DISTINCT + col2 ) * 63 FROM tab2
----
-1452

query I rowsort
SELECT col0 / - col0 FROM tab0 WHERE NOT col0 * + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 NOT BETWEEN col0 AND + col1
----
15
81
47

query I rowsort
SELECT ALL 8 + + 62 FROM tab0
----
70
70
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4032
SELECT 13 / + CAST( NULL AS SIGNED ) + MAX( + col1 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4032
SELECT 13 / + CAST ( NULL AS INTEGER ) + MAX ( + col1 ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4033
SELECT DISTINCT ( MIN( + col1 ) ) * 48 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-4033
SELECT DISTINCT ( MIN ( + col1 ) ) * 48 FROM tab0 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT - COUNT( * ) + 14 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-4034
SELECT - COUNT ( * ) + 14 FROM tab1 AS cor0
----
11

query I rowsort
SELECT DISTINCT 61 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
61

query I rowsort
SELECT ALL - 32 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( 74 / col2 ) AND ( - 36 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4038
SELECT DISTINCT + 72 * + col2 + col1 / + 41 FROM tab1 AS cor0 WHERE - 24 + col0 <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4038
SELECT DISTINCT + 72 * + col2 + col1 / + 41 FROM tab1 AS cor0 WHERE - 24 + col0 <= + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND ( col0 )
----

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT NULL >= 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT DISTINCT SUM( 66 ) * - COUNT( * ) FROM tab0 cor0
----
-594

skipif mysql # not compatible
query I rowsort label-4041
SELECT DISTINCT SUM ( 66 ) * - COUNT ( * ) FROM tab0 cor0
----
-594

query I rowsort
SELECT DISTINCT 17 FROM tab2 WHERE NOT NULL >= - col1 / 17
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4043
SELECT ALL 50 DIV - COUNT( * ) col1 FROM tab2
----
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4043
SELECT ALL 50 / - COUNT ( * ) col1 FROM tab2
----
-16

query I rowsort
SELECT + 98 * 91 AS col2 FROM tab0
----
8918
8918
8918

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT MAX( - col2 ) * 90 AS col2 FROM tab2
----
-2070

skipif mysql # not compatible
query I rowsort label-4045
SELECT MAX ( - col2 ) * 90 AS col2 FROM tab2
----
-2070

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * 99 col2 FROM tab1
----
1386
4653
495

query I rowsort
SELECT - col1 * + ( col1 ) * - col0 AS col1 FROM tab1
----
201019
2125
9996

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4048
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4048
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT + ( - 9 ) * col0 IS NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( col2 ) AND col1 / col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4051
SELECT - ( + 10 ) DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4051
SELECT - ( + 10 ) / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 96 AS col2 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
96
96
96

query I rowsort
SELECT ALL + 6 * + 57 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to da198491545fc16b9c915c89eb6e16a9

query I rowsort
SELECT - AVG ( ALL col0 ) AS col1 FROM tab0 WHERE - col0 * col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT SUM( + + 16 ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-4056
SELECT SUM ( + + 16 ) FROM tab0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT ALL + MIN( ALL - 89 ) AS col2 FROM tab2 cor0
----
-89

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL + MIN ( ALL - 89 ) AS col2 FROM tab2 cor0
----
-89

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL > 25
----

query I rowsort
SELECT DISTINCT col2 * + - 30 AS col2 FROM tab2 cor0
----
-1200
-1740
-690

query I rowsort
SELECT DISTINCT 92 AS col1 FROM tab1 cor0
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 + - col2 + - + 99 * 55 col1 FROM tab1 AS cor0
----
-5579
-5588
-5616

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN NULL AND ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT - COUNT( * ) + - - MIN( + + col0 ) + + 21 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4063
SELECT - COUNT ( * ) + - - MIN ( + + col0 ) + + 21 FROM tab1 AS cor0
----
69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - + col0 ) + + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4065
SELECT + COUNT( * ) + - 23 * - - SUM( - CAST( 61 AS SIGNED ) ) FROM tab0 AS cor0
----
4212

skipif mysql # not compatible
query I rowsort label-4065
SELECT + COUNT ( * ) + - 23 * - - SUM ( - CAST ( 61 AS INTEGER ) ) FROM tab0 AS cor0
----
4212

query I rowsort
SELECT - - col1 FROM tab0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT DISTINCT - COUNT( * ) * 96 FROM tab1 WHERE + col0 + + 83 NOT IN ( col2 )
----
-288

skipif mysql # not compatible
query I rowsort label-4067
SELECT DISTINCT - COUNT ( * ) * 96 FROM tab1 WHERE + col0 + + 83 NOT IN ( col2 )
----
-288

query I rowsort
SELECT + col0 + 70 + + + col2 * - col0 + col2 * 17 FROM tab1
----
-3143
-3857
-4871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4069
SELECT ALL COUNT( * ) DIV 92 AS col2 FROM tab1 WHERE - CAST( NULL AS SIGNED ) IN ( col2 + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL COUNT ( * ) / 92 AS col2 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IN ( col2 + + col1 )
----
0

query I rowsort
SELECT ALL 68 + - 74 + + - 85 AS col2 FROM tab0
----
-91
-91
-91

query III rowsort
SELECT * FROM tab1 WHERE ( ( + col1 ) / + 50 ) IS NULL
----

query I rowsort
SELECT 21 + - - col2 * - - ( - 54 ) FROM tab2
----
-1221
-2139
-3111

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT + COUNT( * ) + - SUM( DISTINCT - + 2 ) AS col2 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-4073
SELECT + COUNT ( * ) + - SUM ( DISTINCT - + 2 ) AS col2 FROM tab0
----
5

query I rowsort
SELECT DISTINCT col1 * + + col0 + 64 FROM tab0
----
1279
161
1891

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 * + - col2 = col1 / 38
----

query III rowsort
SELECT * FROM tab0 WHERE + - 17 < + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT DISTINCT + MIN( DISTINCT col1 ) + COUNT( + 16 ) AS col0 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT + MIN ( DISTINCT col1 ) + COUNT ( + 16 ) AS col0 FROM tab2
----
54

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4080
SELECT ALL 48 * + 14, ( + col1 ) * CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
672
1173
672
3080
672
3886

skipif mysql # not compatible
query II rowsort label-4080
SELECT ALL 48 * + 14, ( + col1 ) * CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
672
1173
672
3080
672
3886

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * - col1 + col2 + 43 * - 38 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4082
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - - ( col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4082
SELECT DISTINCT + CAST ( NULL AS REAL ) * - - ( col2 ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 + - col0 - 49 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT ALL 62 + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT 43 >= - - 71
----
59

skipif mysql # not compatible
query I rowsort label-4084
SELECT ALL 62 + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 43 >= - - 71
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4085
SELECT + CAST( NULL AS SIGNED ) AS col1, + col1 AS col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-4085
SELECT + CAST ( NULL AS INTEGER ) AS col1, + col1 AS col2 FROM tab0
----
NULL
1
NULL
21
NULL
81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 38 <= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4087
SELECT DISTINCT + ( + + col0 ) * - col2 * + CAST( col0 AS SIGNED ) * - col1 + col1 AS col1 FROM tab2
----
12615757
21858817
2482119

skipif mysql # not compatible
query I rowsort label-4087
SELECT DISTINCT + ( + + col0 ) * - col2 * + CAST ( col0 AS INTEGER ) * - col1 + col1 AS col1 FROM tab2
----
12615757
21858817
2482119

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4088
SELECT DISTINCT 98 AS col0 FROM tab1 AS cor0 WHERE + ( - CAST( NULL AS SIGNED ) ) - ( ( col2 ) ) + - col0 * col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT 98 AS col0 FROM tab1 AS cor0 WHERE + ( - CAST ( NULL AS INTEGER ) ) - ( ( col2 ) ) + - col0 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4089
SELECT ALL - MIN( ALL + col2 ) col2 FROM tab2 cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4089
SELECT ALL - MIN ( ALL + col2 ) col2 FROM tab2 cor0
----
-23

query I rowsort
SELECT ALL + - 60 AS col1 FROM tab1 AS cor0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT + MIN( + 51 ) AS col2 FROM tab0 cor0
----
51

skipif mysql # not compatible
query I rowsort label-4091
SELECT + MIN ( + 51 ) AS col2 FROM tab0 cor0
----
51

query I rowsort
SELECT col0 AS col0 FROM tab1 cor0 WHERE NOT col0 IN ( + - 27 )
----
51
85
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 20 NOT BETWEEN NULL AND + 91
----

query I rowsort
SELECT ( - + 63 ) AS col1 FROM tab2 cor0
----
-63
-63
-63

query I rowsort
SELECT DISTINCT - + 75 AS col0 FROM tab2 AS cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + 50 * - + 55 col0 FROM tab0 AS cor0
----
-239250
-266750
-41250

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 >= - 89
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 * 1 col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * - 55 * - - col2 FROM tab2 AS cor0
----
140800
239250
58190

onlyif mysql # aggregate syntax: 
query II rowsort label-4100
SELECT DISTINCT COUNT( * ) AS col2, - MIN( DISTINCT col2 ) AS col1 FROM tab0
----
3
-10

skipif mysql # not compatible
query II rowsort label-4100
SELECT DISTINCT COUNT ( * ) AS col2, - MIN ( DISTINCT col2 ) AS col1 FROM tab0
----
3
-10

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT ( NOT + col2 = ( + 98 ) ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query III rowsort label-4102
SELECT DISTINCT COUNT( * ), COUNT( * ) AS col2, 98 AS col1 FROM tab1
----
3
3
98

skipif mysql # not compatible
query III rowsort label-4102
SELECT DISTINCT COUNT ( * ), COUNT ( * ) AS col2, 98 AS col1 FROM tab1
----
3
3
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4103
SELECT ALL + COUNT( ( 44 ) ) AS col2 FROM tab0 WHERE NOT - + col2 IN ( + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-4103
SELECT ALL + COUNT ( ( 44 ) ) AS col2 FROM tab0 WHERE NOT - + col2 IN ( + col0 )
----
3

query I rowsort
SELECT col2 * + + col2 * + 95 * + - 29 AS col0 FROM tab0
----
-27001755
-275500
-6085795

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + + - col2 + 26 + col0 / - col1 <> 81 + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4106
SELECT DISTINCT - col1 * - col2 + + CAST( - 81 AS DECIMAL ) col2 FROM tab0 AS cor0 WHERE NOT ( col0 ) IN ( col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4106
SELECT DISTINCT - col1 * - col2 + + CAST ( - 81 AS REAL ) col2 FROM tab0 AS cor0 WHERE NOT ( col0 ) IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 81 NOT IN ( + 84 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4108
SELECT DISTINCT 32 + + 67 DIV + ( - 45 ) col1 FROM tab0
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4108
SELECT DISTINCT 32 + + 67 / + ( - 45 ) col1 FROM tab0
----
31

query I rowsort
SELECT 21 + - col1 + + + 1 FROM tab0
----
-59
1
21

query I rowsort
SELECT - 94 FROM tab2 WHERE - col1 >= ( + - 72 + col1 )
----

query I rowsort
SELECT col2 * - col1 * 25 + - + col0 AS col0 FROM tab1 AS cor0
----
-33651
-7460
-79991

onlyif mysql # DIV for integer division: 
query I rowsort label-4112
SELECT + 61 DIV + 17 FROM tab2 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-4112
SELECT + 61 / + 17 FROM tab2 AS cor0
----
3
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4113
SELECT DISTINCT + + 78 DIV + col0 FROM tab0 AS cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-4113
SELECT DISTINCT + + 78 / + col0 FROM tab0 AS cor0
----
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT ALL - SUM( DISTINCT + 39 ) AS col0 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-4114
SELECT ALL - SUM ( DISTINCT + 39 ) AS col0 FROM tab2 AS cor0
----
-39

query I rowsort
SELECT ALL + ( - + 72 ) FROM tab1 AS cor0
----
-72
-72
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col2 col1 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4117
SELECT DISTINCT + MAX( - - 15 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-4117
SELECT DISTINCT + MAX ( - - 15 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4118
SELECT DISTINCT - col0 * - - col0 + - 5, CAST( - col1 AS SIGNED ) AS col1 FROM tab2
----
-2121
-51
-4101
-77
-5630
-67

skipif mysql # not compatible
query II rowsort label-4118
SELECT DISTINCT - col0 * - - col0 + - 5, CAST ( - col1 AS INTEGER ) AS col1 FROM tab2
----
-2121
-51
-4101
-77
-5630
-67

query III rowsort
SELECT * FROM tab2 WHERE - 60 + + - col0 <> + col2 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4120
SELECT ALL - COUNT( * ) + + - MIN( DISTINCT - + col2 ) * + 62 FROM tab1
----
5949

skipif mysql # not compatible
query I rowsort label-4120
SELECT ALL - COUNT ( * ) + + - MIN ( DISTINCT - + col2 ) * + 62 FROM tab1
----
5949

query III rowsort
SELECT * FROM tab1 WHERE NULL <> - col1
----

query I rowsort
SELECT ALL col0 * + col0 + + + col2 AS col0 FROM tab0
----
272
7579
9508

query I rowsort
SELECT + col1 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 25 col1 FROM tab1 AS cor0
----
25
25
25

query I rowsort
SELECT DISTINCT 50 * + col2 FROM tab1
----
2950
3400
4800

query I rowsort
SELECT - 99 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND 73 + + + col0 + + 33
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + + - col1 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT ALL + ( - ( + - COUNT( * ) ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL + ( - ( + - COUNT ( * ) ) ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL IN ( 69 )
----

query II rowsort
SELECT ALL 90 AS col2, + col0 AS col0 FROM tab0
----
90
15
90
87
90
97

query I rowsort
SELECT DISTINCT + ( + - col0 ) AS col1 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL - + col1 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 ) = + 14 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( - ( - 34 ) ) FROM tab1
----
-34
-34
-34

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 95 <= + col0
----
15
81
47
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4137
SELECT - - col1 DIV 49 FROM tab0 WHERE NOT + 52 <= + col1
----
0
0

skipif mysql # not compatible
query I rowsort label-4137
SELECT - - col1 / 49 FROM tab0 WHERE NOT + 52 <= + col1
----
0
0

query I rowsort
SELECT ALL 69 + col0 FROM tab0
----
156
166
84

query III rowsort
SELECT * FROM tab1 WHERE 35 + - col2 * ( + col1 ) IS NULL AND NOT ( NULL ) NOT BETWEEN NULL AND col1 + 64 + - col2 * + 74
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4140
SELECT col2 + - CAST( NULL AS SIGNED ) * + + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4140
SELECT col2 + - CAST ( NULL AS INTEGER ) * + + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 11 * + col0 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - 98 + col1 + col2 + - ( - col2 ) AS col0 FROM tab1 cor0
----
108
25
85

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 38 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4144
SELECT ALL CAST( + col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT col2 * - col1 AS col2 FROM tab2 AS cor0 WHERE + col1 IN ( + 48 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4146
SELECT ALL - CAST( - col2 AS SIGNED ) FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4146
SELECT ALL - CAST ( - col2 AS INTEGER ) FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT ALL + + MIN( + + 25 ) AS col2 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-4147
SELECT ALL + + MIN ( + + 25 ) AS col2 FROM tab1 AS cor0
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col2 col1 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT DISTINCT ( + COUNT( - 65 ) ) * 38 + 81 AS col1 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT ( + COUNT ( - 65 ) ) * 38 + 81 AS col1 FROM tab1
----
195

query I rowsort
SELECT ALL - 95 + - + 67 - + - 11 FROM tab0
----
-151
-151
-151

query III rowsort
SELECT * FROM tab0 WHERE + ( - col2 ) * - - col1 + + - col1 IN ( - 48 * + - col0 * col1 )
----

query I rowsort
SELECT + col2 - + 44 FROM tab2
----
-21
-4
14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + 60 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT - COUNT( ALL col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4154
SELECT - COUNT ( ALL col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - col0 * + col2 + - - col1 * col1 FROM tab0 AS cor0
----
-429
-9602
5856

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN + 23 * col0 / + col2 + + + col0 AND NULL
----

query I rowsort
SELECT + col2 + - 77 - - col2 + 46 AS col0 FROM tab1
----
105
161
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL - ( + COUNT( * ) ) FROM tab0 WHERE NOT ( NOT col1 * 29 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL - ( + COUNT ( * ) ) FROM tab0 WHERE NOT ( NOT col1 * 29 IS NULL )
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col2 + col1 IS NOT NULL )
----

query I rowsort
SELECT 20 * 37 * + - col0 AS col1 FROM tab1
----
-37740
-62900
-67340

query I rowsort
SELECT + AVG ( - + col1 ) * - + 40 FROM tab1 WHERE + col0 * - 58 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4162
SELECT ALL ( - 90 ) + + ( + col2 ) DIV + col1 * + col2 FROM tab2
----
-90
-90
-90

skipif mysql # not compatible
query I rowsort label-4162
SELECT ALL ( - 90 ) + + ( + col2 ) / + col1 * + col2 FROM tab2
----
-90
-90
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT ALL 14 - + SUM( col2 ) * - 54 AS col1 FROM tab1
----
12056

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL 14 - + SUM ( col2 ) * - 54 AS col1 FROM tab1
----
12056

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT ALL + - ( - - COUNT( + + 71 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL + - ( - - COUNT ( + + 71 ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4165
SELECT + - SUM( ALL - 65 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4165
SELECT + - SUM ( ALL - 65 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT - 68 * - 27 + - - col2 FROM tab0 AS cor0
----
1846
1883
1935

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 18 col0 FROM tab1 WHERE NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
59
68
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 84 + + 15 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT - COUNT( + col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4170
SELECT - COUNT ( + col0 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + + 11 AS col1 FROM tab1 AS cor0
----
11
11
11

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + col0 ) + + + col2 NOT IN ( col1, - col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IS NOT NULL OR NULL < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 80 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 69 FROM tab1 WHERE NOT NULL IS NOT NULL
----
69

query I rowsort
SELECT DISTINCT col1 * 27 * col1 * 27 + + col0 FROM tab1
----
142935
1610452
18310

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 0 / - - col2 + - col1 * - col2 / 79 * - col1 * + col0 NOT BETWEEN NULL AND + col2 + + - 9
----

query I rowsort
SELECT DISTINCT 53 / + + col0 + + - col0 * - + 18 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN - col1 * 6 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( ( - col0 ) ) + - - 62 col1 FROM tab1
----
-23
-29
11

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NULL IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT 54 + + col0 * col0 FROM tab0
----
279
7623
9463

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4182
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 24 * + - col2 IN ( + + 16 + CAST( + col0 AS DECIMAL ), - 82 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4182
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 24 * + - col2 IN ( + + 16 + CAST ( + col0 AS REAL ), - 82 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 68 AS col1 FROM tab1 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4184
SELECT - MIN( ALL + col2 ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4184
SELECT - MIN ( ALL + col2 ) AS col0 FROM tab2
----
-23

query I rowsort
SELECT ALL + - col0 - + col1 AS col1 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT ALL - COUNT( * ) + + 66 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL - COUNT ( * ) + + 66 FROM tab0 AS cor0
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4187
SELECT DISTINCT MIN( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4188
SELECT DISTINCT ( - - 18 ) - + CAST( NULL AS SIGNED ) - + col1 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT DISTINCT ( - - 18 ) - + CAST ( NULL AS INTEGER ) - + col1 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT DISTINCT - - MIN( ALL - 46 ) col2 FROM tab1 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4189
SELECT DISTINCT - - MIN ( ALL - 46 ) col2 FROM tab1 AS cor0
----
-46

query I rowsort
SELECT DISTINCT + 61 * + 82 FROM tab0 AS cor0
----
5002

query I rowsort
SELECT DISTINCT 24 * col1 FROM tab2
----
1224
1608
1848

query I rowsort
SELECT 41 - + col1 + - col2 FROM tab0
----
-59
-87
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4193
SELECT ALL COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab1
----
-1

query II rowsort
SELECT DISTINCT 52, col0 FROM tab0
----
52
15
52
87
52
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4195
SELECT ALL - col0 DIV 36 col2 FROM tab1
----
-1
-2
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4195
SELECT ALL - col0 / 36 col2 FROM tab1
----
-1
-2
-2

query I rowsort
SELECT 89 * - 79 FROM tab1
----
-7031
-7031
-7031

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT ALL COUNT( ALL 24 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4197
SELECT ALL COUNT ( ALL 24 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT + MAX( 1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4198
SELECT + MAX ( 1 ) FROM tab0
----
1

query II rowsort
SELECT + 98 AS col0, - col0 AS col1 FROM tab1
----
98
-51
98
-85
98
-91

query I rowsort
SELECT + - ( 63 ) FROM tab1 AS cor0
----
-63
-63
-63

onlyif mysql # DIV for integer division: 
query I rowsort label-4201
SELECT + + col0 DIV - - col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4201
SELECT + + col0 / - - col2 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4202
SELECT - + CAST( 57 AS SIGNED ) AS col2, COUNT( * ) * - MIN( ALL + 61 ) FROM tab0 AS cor0
----
-57
-183

skipif mysql # not compatible
query II rowsort label-4202
SELECT - + CAST ( 57 AS INTEGER ) AS col2, COUNT ( * ) * - MIN ( ALL + 61 ) FROM tab0 AS cor0
----
-57
-183

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL < + - col0 )
----

query I rowsort
SELECT ALL - 24 AS col1 FROM tab0 WHERE col2 <> NULL
----

query I rowsort
SELECT col0 * + 55 * + col0 FROM tab0
----
12375
416295
517495

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + 90 col2, - 28 * col1 AS col2 FROM tab1
----
5310
-140
6120
-1316
8640
-392

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4207
SELECT - 46 / - col1 * ( - CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4207
SELECT - 46 / - col1 * ( - CAST ( NULL AS REAL ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT 86 * + + ( - + ( COUNT( + col0 ) ) ) * + + COUNT( * ) AS col2 FROM tab1
----
-774

skipif mysql # not compatible
query I rowsort label-4208
SELECT 86 * + + ( - + ( COUNT ( + col0 ) ) ) * + + COUNT ( * ) AS col2 FROM tab1
----
-774

query I rowsort
SELECT col1 * 45 FROM tab2
----
2295
3015
3465

query I rowsort
SELECT - + 15 AS col1 FROM tab2 AS cor0
----
-15
-15
-15

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NOT 3 = NULL
----

query I rowsort
SELECT - col1 AS col0 FROM tab2 cor0 WHERE NOT NULL = col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 col2 FROM tab0 AS cor0
----
-10
-10
-10

query I rowsort
SELECT DISTINCT + col2 + + 9 * + col0 AS col0 FROM tab2 AS cor0
----
437
616
733

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT ALL + - MAX( DISTINCT col2 ) FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL + - MAX ( DISTINCT col2 ) FROM tab0 cor0
----
-99

query I rowsort
SELECT + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = 43
----

query I rowsort
SELECT + col0 + + 76 + + col2 FROM tab2
----
145
180
209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col1 + col1 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col1 + col1 AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE + col2 / - + col1 IS NULL
----

query I rowsort
SELECT ALL - col2 + - - 12 + col0 * + + col0 FROM tab0
----
190
7571
9322

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT + COUNT( * ) * - 4 + 37 + - COUNT( * ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-4221
SELECT + COUNT ( * ) * - 4 + 37 + - COUNT ( * ) FROM tab1
----
22

onlyif mysql # DIV for integer division: 
query II rowsort label-4222
SELECT + col2 * - - col2 + - col1 AS col2, col1 DIV - col2 AS col2 FROM tab0
----
2128
-1
79
-2
9800
0

skipif mysql # not compatible
query II rowsort label-4222
SELECT + col2 * - - col2 + - col1 AS col2, col1 / - col2 AS col2 FROM tab0
----
2128
-1
79
-2
9800
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4223
SELECT ALL col0 + + - col1 DIV + col0 * - col2 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4223
SELECT ALL col0 + + - col1 / + col0 * - col2 AS col1 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT - - 51 * - 10 AS col1 FROM tab1 AS cor0
----
-510

query I rowsort
SELECT DISTINCT + - 49 FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 33 + + col1 col1 FROM tab2
----
-1632
-2144
-2464

onlyif mysql # aggregate syntax: 
query I rowsort label-4227
SELECT DISTINCT - MAX( - 53 ) * 25 * + + COUNT( ALL - + 75 ) * - 74 col0 FROM tab1 AS cor0 WHERE - 9 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4227
SELECT DISTINCT - MAX ( - 53 ) * 25 * + + COUNT ( ALL - + 75 ) * - 74 col0 FROM tab1 AS cor0 WHERE - 9 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT ALL 85 - + ( - COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-4228
SELECT ALL 85 - + ( - COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
88

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4229
SELECT DISTINCT + COUNT( ALL ( CAST( NULL AS DECIMAL ) ) ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4229
SELECT DISTINCT + COUNT ( ALL ( CAST ( NULL AS REAL ) ) ) FROM tab0 cor0
----
0

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT - COUNT( DISTINCT - 81 ) FROM tab2 AS cor0 WHERE NOT 65 NOT BETWEEN - col1 AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-4231
SELECT - COUNT ( DISTINCT - 81 ) FROM tab2 AS cor0 WHERE NOT 65 NOT BETWEEN - col1 AND + col2
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - 80 * col1 - + ( - 25 ) )
----

query I rowsort
SELECT ALL col2 * + 14 AS col2 FROM tab1 AS cor0
----
1344
826
952

onlyif mysql # DIV for integer division: 
query I rowsort label-4234
SELECT col1 DIV ( col1 ) * - 72 FROM tab1
----
-72
-72
-72

skipif mysql # not compatible
query I rowsort label-4234
SELECT col1 / ( col1 ) * - 72 FROM tab1
----
-72
-72
-72

query I rowsort
SELECT ALL ( 99 ) AS col0 FROM tab0
----
99
99
99

query II rowsort
SELECT ALL col1, ( ( + 95 ) ) AS col0 FROM tab2
----
51
95
67
95
77
95

onlyif mysql # DIV for integer division: 
query II rowsort label-4237
SELECT DISTINCT + col0, 74 DIV + ( + - ( - col1 ) ) FROM tab0
----
15
0
87
3
97
74

skipif mysql # not compatible
query II rowsort label-4237
SELECT DISTINCT + col0, 74 / + ( + - ( - col1 ) ) FROM tab0
----
15
0
87
3
97
74

query I rowsort
SELECT DISTINCT + + col0 * - - 60 FROM tab1 AS cor0
----
3060
5100
5460

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4239
SELECT + - COUNT( * ) DIV 28 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4239
SELECT + - COUNT ( * ) / 28 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4240
SELECT 72 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 - 40 / + 21 > NULL
----

skipif mysql # not compatible
query I rowsort label-4240
SELECT 72 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT col0 - 40 / + 21 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4241
SELECT DISTINCT 20 DIV - col2 FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT 20 / - col2 FROM tab0 AS cor0
----
-2
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4242
SELECT - COUNT( * ), CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-4242
SELECT - COUNT ( * ), CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3
3

query I rowsort
SELECT ALL + - col1 AS col1 FROM tab2 WHERE ( NOT ( NULL ) IS NOT NULL )
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4244
SELECT + CAST( - 85 AS SIGNED ) FROM tab1, tab1 cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

skipif mysql # not compatible
query I rowsort label-4244
SELECT + CAST ( - 85 AS INTEGER ) FROM tab1, tab1 cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

onlyif mysql # aggregate syntax: 
query II rowsort label-4245
SELECT DISTINCT - COUNT( * ) + - + 53, - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-62
-9

skipif mysql # not compatible
query II rowsort label-4245
SELECT DISTINCT - COUNT ( * ) + - + 53, - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-62
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4246
SELECT ALL MAX( ALL + + col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4246
SELECT ALL MAX ( ALL + + col1 ) FROM tab2
----
77

query II rowsort
SELECT 23 + - + col0 AS col1, col2 FROM tab2 AS cor0
----
-23
23
-41
40
-52
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4248
SELECT ALL - CAST( NULL AS SIGNED ) * + MIN( DISTINCT + CAST( NULL AS SIGNED ) ) + + MIN( ALL + + col1 ) * - - 53 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL - CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + MIN ( ALL + + col1 ) * - - 53 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4249
SELECT + 75 DIV + - col1 col2 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4249
SELECT + 75 / + - col1 col2 FROM tab2 cor0
----
-1
-1
0

query II rowsort
SELECT ALL col2 * - col1 + 2 * + col1 AS col0, col1 AS col2 FROM tab0 AS cor0
----
-168
21
-3645
81
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4251
SELECT DISTINCT SUM( ( + 64 ) ) AS col1 FROM tab1 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-4251
SELECT DISTINCT SUM ( ( + 64 ) ) AS col1 FROM tab1 AS cor0
----
192

query II rowsort
SELECT - - 10 AS col1, - col2 FROM tab1 AS cor0
----
10
-59
10
-68
10
-96

query I rowsort
SELECT DISTINCT ( 54 ) * col0 + - + 50 * + col2 + + - col1 - - col2 * col2 AS col0 FROM tab0
----
10088
4277
588

query III rowsort
SELECT * FROM tab1 WHERE col1 <> - - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND + 43
----

query I rowsort
SELECT DISTINCT - col0 * + 71 + + col0 + + 88 FROM tab0
----
-6002
-6702
-962

query I rowsort
SELECT ALL + col2 - + 16 AS col1 FROM tab1 AS cor0
----
43
52
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 86 * - col0 * 18 + + col2 - + col2 * - - ( - 82 ) + + + col2 col0 FROM tab2 AS cor0
----
102432
120972
73140

query I rowsort
SELECT - - col1 + - col2 AS col2 FROM tab0 cor0
----
-98
11
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4260
SELECT - - col1 + - - CAST( NULL AS DECIMAL ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4260
SELECT - - col1 + - - CAST ( NULL AS REAL ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 77 NOT IN ( - 5, + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( col0 ) + col1 AS col2 FROM tab2 AS cor0 WHERE NOT 85 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4263
SELECT ALL CAST( - 20 AS SIGNED ) FROM tab1 AS cor0
----
-20
-20
-20

skipif mysql # not compatible
query I rowsort label-4263
SELECT ALL CAST ( - 20 AS INTEGER ) FROM tab1 AS cor0
----
-20
-20
-20

query I rowsort
SELECT - col0 * 66 * - - 15 + - 29 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4265
SELECT ALL * FROM tab2 WHERE + ( - - col2 ) + - - col1 NOT BETWEEN + 2 / + + CAST( NULL AS SIGNED ) AND ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4265
SELECT ALL * FROM tab2 WHERE + ( - - col2 ) + - - col1 NOT BETWEEN + 2 / + + CAST ( NULL AS INTEGER ) AND ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * - + 98 FROM tab1
----
-4998
-8330
-8918

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4267
SELECT + ( - CAST( col1 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4267
SELECT + ( - CAST ( col1 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query II rowsort
SELECT DISTINCT + col2, + col1 + col0 FROM tab1 AS cor0 WHERE NULL BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT ALL - COUNT( ALL + - col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL - COUNT ( ALL + - col1 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col2 + - 52 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 71 AS col1 FROM tab0 AS cor0
----
-71
-71
-71

query I rowsort
SELECT ALL + col1 * - 32 AS col2 FROM tab0 AS cor0
----
-2592
-32
-672

query I rowsort
SELECT + + 11 * + + col2 FROM tab0 AS cor0
----
1089
110
517

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 7 IS NULL
----

query II rowsort
SELECT + 33, col0 * - - ( col1 ) * - + col2 AS col0 FROM tab0 AS cor0
----
33
-18270
33
-57105
33
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT - - 9 + + 13 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT - - 9 + + 13 IS NOT NULL
----
0

query II rowsort
SELECT + 52 * - - col2, + col1 FROM tab2
----
1196
51
2080
77
3016
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT DISTINCT - MIN( ALL col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-4278
SELECT DISTINCT - MIN ( ALL col1 ) FROM tab1
----
-5

query I rowsort
SELECT 87 FROM tab0 cor0
----
87
87
87

query I rowsort
SELECT 22 AS col1 FROM tab1 AS cor0 WHERE NOT col0 * col2 NOT IN ( col1 - col1 * - ( + col0 ) )
----

query I rowsort
SELECT DISTINCT 38 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
38

query I rowsort
SELECT ALL col1 * - col0 FROM tab0 WHERE NOT ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT + 81 * + 47 AS col0 FROM tab2 AS cor0
----
3807
3807
3807

onlyif mysql # DIV for integer division: 
query I rowsort label-4284
SELECT ALL + - col2 DIV - + col1 + - col1 FROM tab0 AS cor0
----
-21
-81
98

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL + - col2 / - + col1 + - col1 FROM tab0 AS cor0
----
-21
-81
98

onlyif mysql # DIV for integer division: 
query II rowsort label-4285
SELECT ALL + 9, col0 DIV - + 42 AS col1 FROM tab0 AS cor0
----
9
-2
9
-2
9
0

skipif mysql # not compatible
query II rowsort label-4285
SELECT ALL + 9, col0 / - + 42 AS col1 FROM tab0 AS cor0
----
9
-2
9
-2
9
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4286
SELECT DISTINCT COUNT( * ) col2, 81 FROM tab2 AS cor0
----
3
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4286
SELECT DISTINCT COUNT ( * ) col2, 81 FROM tab2 AS cor0
----
3
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - 35 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + - + col0 IS NOT NULL
----

query I rowsort
SELECT - col1 + - 62 + + col0 FROM tab0
----
-128
34
4

query I rowsort
SELECT - 57 + - col2 + col1 * + - 99 * - - col0 FROM tab0
----
-120389
-180940
-9759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4292
SELECT - col1 + - CAST( + col2 AS SIGNED ) FROM tab2
----
-117
-125
-74

skipif mysql # not compatible
query I rowsort label-4292
SELECT - col1 + - CAST ( + col2 AS INTEGER ) FROM tab2
----
-117
-125
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4293
SELECT SUM( + CAST( + + col2 AS SIGNED ) ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-4293
SELECT SUM ( + CAST ( + + col2 AS INTEGER ) ) AS col0 FROM tab0
----
156

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE - ( - - col0 ) NOT IN ( - 36 + + 92, + col2 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT DISTINCT COUNT( DISTINCT + + col0 ) - - 70 AS col0 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT COUNT ( DISTINCT + + col0 ) - - 70 AS col0 FROM tab0
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 0 col0 FROM tab2 cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col0 ) * + col2 * + 49 - - col1 col1 FROM tab0
----
-34464
-42609
-470546

query II rowsort
SELECT col2 + - col2, + col2 FROM tab1
----
0
59
0
68
0
96

query I rowsort
SELECT - + ( + - 21 ) FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 - - 95 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4302
SELECT - COUNT( ALL - col2 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4302
SELECT - COUNT ( ALL - col2 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT - + col1 * + ( - 41 ) FROM tab2 AS cor0
----
2091
2747
3157

query I rowsort
SELECT - + col1 * - col2 * + col0 FROM tab1 cor0
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT DISTINCT + + SUM( ALL + - 8 ) FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT + + SUM ( ALL + - 8 ) FROM tab0 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4306
SELECT + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4306
SELECT + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 69 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT ALL - col2 AS col1, - col1 FROM tab2
----
-23
-51
-40
-77
-58
-67

query I rowsort
SELECT + col2 * + + 22 FROM tab2
----
1276
506
880

onlyif mysql # aggregate syntax: 
query I rowsort label-4310
SELECT DISTINCT - + MAX( DISTINCT - - col0 ) FROM tab1 WHERE NOT col0 IS NULL
----
-91

skipif mysql # not compatible
query I rowsort label-4310
SELECT DISTINCT - + MAX ( DISTINCT - - col0 ) FROM tab1 WHERE NOT col0 IS NULL
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 76 col2 FROM tab1
----
76
76
76

query I rowsort
SELECT ALL 29 * - + 22 * - - col1 FROM tab2
----
-32538
-42746
-49126

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT + col0 * - col2 = NULL
----

query I rowsort
SELECT + col1 * col0 * - + ( - 8 ) AS col0 FROM tab2
----
18768
39424
40200

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT DISTINCT + 89 * - MIN( 86 ) + - 50 + 98 - - COUNT( * ) AS col2 FROM tab0
----
-7603

skipif mysql # not compatible
query I rowsort label-4315
SELECT DISTINCT + 89 * - MIN ( 86 ) + - 50 + 98 - - COUNT ( * ) AS col2 FROM tab0
----
-7603

query I rowsort
SELECT - + col1 * + col0 * + col1 FROM tab2 AS cor0
----
-119646
-336675
-379456

query I rowsort
SELECT ALL - - 30 AS col0 FROM tab2 AS cor0
----
30
30
30

query I rowsort
SELECT ( + + col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 0 - + col2 + - 25 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4320
SELECT - col2 DIV 80 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4320
SELECT - col2 / 80 col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT ALL MAX( + + col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL MAX ( + + col0 ) FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4322
SELECT + CAST( - col2 AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL <= - col0 - + col0 - + + col2 / + + col1
----

skipif mysql # not compatible
query I rowsort label-4322
SELECT + CAST ( - col2 AS REAL ) FROM tab2 AS cor0 WHERE NULL <= - col0 - + col0 - + + col2 / + + col1
----

query I rowsort
SELECT DISTINCT - col2 * 50 + ( + col1 ) * - 38 FROM tab2 AS cor0
----
-3088
-4926
-5446

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT ALL - + SUM( ALL + col2 ) AS col1 FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4324
SELECT ALL - + SUM ( ALL + col2 ) AS col1 FROM tab0 cor0
----
-156

query III rowsort
SELECT ALL * FROM tab1 WHERE + 63 * - + col0 + col0 IS NULL
----

query I rowsort
SELECT + col0 * - col1 AS col0 FROM tab2 WHERE NULL = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4327
SELECT ALL * FROM tab1 WHERE CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query III rowsort label-4327
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS REAL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT + 54 - - ( - + COUNT( * ) ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4328
SELECT + 54 - - ( - + COUNT ( * ) ) AS col0 FROM tab2
----
51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + col0 + + 37 AND - + 52
----

query I rowsort
SELECT DISTINCT 32 + + col1 AS col1 FROM tab0
----
113
33
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4331
SELECT DISTINCT col1 / - col1 - - col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4331
SELECT DISTINCT col1 / - col1 - - col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT ALL - COUNT( * ) + + - COUNT( * ) AS col1 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL - COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4333
SELECT DISTINCT CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) * - 85 + - + MAX( - col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4333
SELECT DISTINCT CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) * - 85 + - + MAX ( - col0 ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 0 + + col2 AS col1 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT ALL - 9 AS col1, + col2 * + - col0 * + col1 * + col2 FROM tab2 AS cor0
----
-9
-1241034
-9
-16904100
-9
-7884800

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT COUNT( * ) * 51 AS col1 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-4336
SELECT COUNT ( * ) * 51 AS col1 FROM tab0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4337
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL = NULL
----
0

query II rowsort
SELECT 1 AS col0, 17 FROM tab1
----
1
17
1
17
1
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT ALL + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4339
SELECT ALL + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4340
SELECT DISTINCT - 97 DIV + 34 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT - 97 / + 34 FROM tab0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-4341
SELECT - col1 DIV + - col1 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4341
SELECT - col1 / + - col1 AS col2 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT + MIN( + col2 ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4342
SELECT + MIN ( + col2 ) AS col2 FROM tab1
----
59

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4344
SELECT + col0 AS col0, + col0 - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-4344
SELECT + col0 AS col0, + col0 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4345
SELECT ALL + + col2, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-4345
SELECT ALL + + col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

query II rowsort
SELECT col2 * - - col1 * + 86 AS col0, - 67 FROM tab0
----
18060
-67
327402
-67
8514
-67

query III rowsort
SELECT col1 * col0 AS col2, + col0, + 25 FROM tab0
----
9 values hashing to e9c8dc8dcdf2d1cde8377e7304a358cd

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + ( col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + - - ( - ( - 34 ) ) + col0 + col2 * - ( - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT ALL - MAX( DISTINCT + - 39 ) * - + COUNT( * ) AS col2 FROM tab1
----
-117

skipif mysql # not compatible
query I rowsort label-4350
SELECT ALL - MAX ( DISTINCT + - 39 ) * - + COUNT ( * ) AS col2 FROM tab1
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4351
SELECT + col2 * CAST( - col2 AS SIGNED ) AS col1 FROM tab2 cor0 WHERE NOT col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-4351
SELECT + col2 * CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 cor0 WHERE NOT col2 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 8 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT COUNT( - 0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4353
SELECT COUNT ( - 0 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT 12 + + 57 + + col2 - + 4 AS col2 FROM tab1
----
124
133
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4355
SELECT + 70 * - 73 + col0 / + - col0 AS col2 FROM tab0 WHERE NULL IN ( + CAST( NULL AS SIGNED ), + col1, col0 + col1, + + ( col0 ) / + 19 + 21, col2 )
----

skipif mysql # not compatible
query I rowsort label-4355
SELECT + 70 * - 73 + col0 / + - col0 AS col2 FROM tab0 WHERE NULL IN ( + CAST ( NULL AS INTEGER ), + col1, col0 + col1, + + ( col0 ) / + 19 + 21, col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN + 8 AND - 15 + + - 67
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4357
SELECT DISTINCT + MIN( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4357
SELECT DISTINCT + MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - 77 * - 60 AS col1 FROM tab2 cor0
----
4620
4620
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT DISTINCT + COUNT( * ) + - ( SUM( ALL + col2 ) ) FROM tab1 AS cor0
----
-220

skipif mysql # not compatible
query I rowsort label-4359
SELECT DISTINCT + COUNT ( * ) + - ( SUM ( ALL + col2 ) ) FROM tab1 AS cor0
----
-220

query I rowsort
SELECT DISTINCT - + 13 AS col0 FROM tab1 cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4361
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4362
SELECT ALL + 92 * 46 * - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL + 92 * 46 * - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 10 * - 34 + + 73 FROM tab2
----
413
413
413

query I rowsort
SELECT ALL - + col0 * - col2 - - 21 FROM tab2 WHERE NOT + col0 < + + col0
----
1079
2581
4371

query I rowsort
SELECT 14 + col0 AS col0 FROM tab1
----
105
65
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4366
SELECT ALL - MAX( ALL - col0 ) DIV 54 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL - MAX ( ALL - col0 ) / 54 FROM tab1
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN - col0 AND - + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4368
SELECT ALL - CAST( - + MAX( DISTINCT col1 ) AS SIGNED ) - + 96 * - 14 col1 FROM tab2
----
1421

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4368
SELECT ALL - CAST ( - + MAX ( DISTINCT col1 ) AS INTEGER ) - + 96 * - 14 col1 FROM tab2
----
1421

query II rowsort
SELECT ALL col0 + + + col2, col0 FROM tab2
----
104
64
133
75
69
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 84 col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL - + 93 * col1 * + - 86 FROM tab0 AS cor0
----
167958
647838
7998

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT DISTINCT SUM( 99 ) * - 63 AS col0 FROM tab2 AS cor0
----
-18711

skipif mysql # not compatible
query I rowsort label-4372
SELECT DISTINCT SUM ( 99 ) * - 63 AS col0 FROM tab2 AS cor0
----
-18711

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4373
SELECT ALL - col1 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4373
SELECT ALL - col1 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4374
SELECT DISTINCT ( MAX( DISTINCT col0 ) ) AS col2, MAX( ALL - col2 ) AS col0 FROM tab2
----
75
-23

skipif mysql # not compatible
query II rowsort label-4374
SELECT DISTINCT ( MAX ( DISTINCT col0 ) ) AS col2, MAX ( ALL - col2 ) AS col0 FROM tab2
----
75
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 49 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 col1 FROM tab2 cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT ALL - ( + + 1 ) * + - MAX( - + col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4377
SELECT ALL - ( + + 1 ) * + - MAX ( - + col0 ) AS col0 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT 71 * 17 * col2 + - col0 FROM tab1 AS cor0
----
115821
71128
81985

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4379
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 < + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4379
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 < + - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4380
SELECT DISTINCT - CAST( NULL AS SIGNED ) / col2 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / col2 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4381
SELECT ALL ( + + COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4381
SELECT ALL ( + + COUNT ( * ) ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT - col1, 2 AS col2 FROM tab0 AS cor0
----
-1
2
-21
2
-81
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, 32 * - col2 AS col0 FROM tab1
----
59
-1888
68
-2176
96
-3072

query I rowsort
SELECT 80 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT + COUNT( * ) FROM tab2 WHERE NOT ( NOT col2 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4385
SELECT + COUNT ( * ) FROM tab2 WHERE NOT ( NOT col2 IS NULL )
----
0

query I rowsort
SELECT + 8 AS col2 FROM tab1 WHERE NOT ( NOT - col1 BETWEEN 86 AND - col1 )
----

query II rowsort
SELECT - col1, - col1 + + + ( - - 46 ) + - + 68 AS col1 FROM tab1 AS cor0
----
-14
-36
-47
-69
-5
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 col1 FROM tab2 AS cor0
----
90
90
90

query I rowsort
SELECT - 26 + - + 80 AS col2 FROM tab2 AS cor0
----
-106
-106
-106

query I rowsort
SELECT DISTINCT 6 + - col2 FROM tab0 AS cor0
----
-4
-41
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT - MIN( - 51 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4391
SELECT - MIN ( - 51 ) FROM tab1
----
51

query I rowsort
SELECT - - col0 * + 88 + - col1 + + col1 * ( + col0 ) * + col1 + 96 + - col0 - - col2 + - 62 AS col1 FROM tab2 cor0
----
123654
343225
385021

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4393
SELECT ALL col1, + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-4393
SELECT ALL col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - + 97 * - col0 - - - 0 FROM tab0 AS cor0
----
1455
8439
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT ALL - ( COUNT( * ) ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL - ( COUNT ( * ) ) AS col1 FROM tab2 cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 63 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4397
SELECT col0 - 54 + + - CAST( + + 65 AS SIGNED ) DIV col2, 92 + + col1 AS col0 FROM tab1 AS cor0
----
-3
106
30
97
37
139

skipif mysql # not compatible
query II rowsort label-4397
SELECT col0 - 54 + + - CAST ( + + 65 AS INTEGER ) / col2, 92 + + col1 AS col0 FROM tab1 AS cor0
----
-3
106
30
97
37
139

query I rowsort
SELECT - 35 AS col0 FROM tab2 cor0 WHERE ( NOT - col2 BETWEEN NULL AND - 35 )
----
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4399
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * col2 + + 31 + col1 * col2 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4399
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * col2 + + 31 + col1 * col2 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 + - 71 + - col1 FROM tab1 AS cor0
----
-17
-50
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4401
SELECT DISTINCT 88 + + 37 * + CAST( + - 69 AS SIGNED ) FROM tab0
----
-2465

skipif mysql # not compatible
query I rowsort label-4401
SELECT DISTINCT 88 + + 37 * + CAST ( + - 69 AS INTEGER ) FROM tab0
----
-2465

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * + col2 * + 73 * + + 54 + + col0 IS NULL
----

query I rowsort
SELECT - + 41 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - ( + 68 ) + + col1 AS col0 FROM tab1
----
-21
-54
-63

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT col2 NOT BETWEEN + 93 * + col2 AND NULL OR NOT NULL <> + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, col1 * + + col0 FROM tab0
----
-15
1215
-87
1827
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT - MAX( + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4407
SELECT - MAX ( + col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4408
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * col2 * + 25 + - col0 * + col2 <> - 18 + + + col1 - - col2 + 87
----

skipif mysql # not compatible
query III rowsort label-4408
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * col2 * + 25 + - col0 * + col2 <> - 18 + + + col1 - - col2 + 87
----

query I rowsort
SELECT ALL 33 + col2 + + + 46 * - 41 * + + col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4410
SELECT ALL - 76 DIV - col1 AS col2 FROM tab0 AS cor0
----
0
3
76

skipif mysql # not compatible
query I rowsort label-4410
SELECT ALL - 76 / - col1 AS col2 FROM tab0 AS cor0
----
0
3
76

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 / + 28 * - 19 * + 38 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4412
SELECT - - CAST( 34 AS SIGNED ) * - 25 FROM tab2 AS cor0
----
-850
-850
-850

skipif mysql # not compatible
query I rowsort label-4412
SELECT - - CAST ( 34 AS INTEGER ) * - 25 FROM tab2 AS cor0
----
-850
-850
-850

query I rowsort
SELECT - 43 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT DISTINCT + 20 * + col1 FROM tab2
----
1020
1340
1540

onlyif mysql # aggregate syntax: 
query I rowsort label-4415
SELECT - 38 * - COUNT( * ) * - 23 FROM tab1 WHERE NOT ( - - 55 / - col1 + - 75 - + col0 + + + col1 * + + ( - 47 ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4415
SELECT - 38 * - COUNT ( * ) * - 23 FROM tab1 WHERE NOT ( - - 55 / - col1 + - 75 - + col0 + + + col1 * + + ( - 47 ) ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT SUM( ALL - 64 ) col0 FROM tab0 AS cor0
----
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4417
SELECT SUM ( ALL - 64 ) col0 FROM tab0 AS cor0
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-4418
SELECT - MAX( DISTINCT - col2 ) * - + 36 AS col1 FROM tab1 cor0
----
-2124

skipif mysql # not compatible
query I rowsort label-4418
SELECT - MAX ( DISTINCT - col2 ) * - + 36 AS col1 FROM tab1 cor0
----
-2124

query I rowsort
SELECT DISTINCT + + col2 * col2 - col1 AS col0 FROM tab0 AS cor0
----
2128
79
9800

onlyif mysql # DIV for integer division: 
query II rowsort label-4420
SELECT ALL col2 DIV + col1 AS col1, ( - + col1 ) FROM tab2 cor0
----
0
-51
0
-67
0
-77

skipif mysql # not compatible
query II rowsort label-4420
SELECT ALL col2 / + col1 AS col1, ( - + col1 ) FROM tab2 cor0
----
0
-51
0
-67
0
-77

query II rowsort
SELECT col0 * + col2 + col0 * col2 * + - col2 * + 28 - - col0 AS col0, col2 * + col1 FROM tab2 AS cor0
----
-2864576
3080
-680248
1173
-7059975
3886

query I rowsort
SELECT - ( col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL - 91 + - col0 * - - col1 FROM tab1
----
-4368
-516
-805

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT + COUNT( * ) * - - 96 * - 28 + COUNT( * ) + - COUNT( - col2 ) AS col0 FROM tab0
----
-8064

skipif mysql # not compatible
query I rowsort label-4424
SELECT + COUNT ( * ) * - - 96 * - 28 + COUNT ( * ) + - COUNT ( - col2 ) AS col0 FROM tab0
----
-8064

query I rowsort
SELECT DISTINCT col0 + + - col2 + - - col1 FROM tab2
----
101
74
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4426
SELECT 94 * - + COUNT( * ) + + 2 AS col2 FROM tab2
----
-280

skipif mysql # not compatible
query I rowsort label-4426
SELECT 94 * - + COUNT ( * ) + + 2 AS col2 FROM tab2
----
-280

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4427
SELECT ALL - col0 * - CAST( + - col0 AS SIGNED ) * - col2 AS col2 FROM tab2
----
163840
326250
48668

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL - col0 * - CAST ( + - col0 AS INTEGER ) * - col2 AS col2 FROM tab2
----
163840
326250
48668

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4428
SELECT COUNT( * ) * CAST( - COUNT( * ) AS SIGNED ) + + + COUNT( DISTINCT - col2 ) + - 44 AS col0, - SUM( ALL 49 ) AS col2 FROM tab2
----
-50
-147

skipif mysql # not compatible
query II rowsort label-4428
SELECT COUNT ( * ) * CAST ( - COUNT ( * ) AS INTEGER ) + + + COUNT ( DISTINCT - col2 ) + - 44 AS col0, - SUM ( ALL 49 ) AS col2 FROM tab2
----
-50
-147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 + col0 col2 FROM tab1
----
115
121
81

query II rowsort
SELECT - - 26 + ( - + col0 ) AS col1, + 6 FROM tab2 AS cor0
----
-20
6
-38
6
-49
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4431
SELECT * FROM tab2 AS cor0 WHERE - 55 = + col0 * 55 + + col2 + - CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4431
SELECT * FROM tab2 AS cor0 WHERE - 55 = + col0 * 55 + + col2 + - CAST ( + col0 AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL >= col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4433
SELECT - col0 DIV - - 95 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4433
SELECT - col0 / - - 95 AS col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT - 64 AS col1, - col0 FROM tab0
----
-64
-15
-64
-87
-64
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT DISTINCT COUNT( * ) + + + COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4435
SELECT DISTINCT COUNT ( * ) + + + COUNT ( * ) AS col1 FROM tab2
----
6

query II rowsort
SELECT DISTINCT + col0 AS col1, 78 AS col2 FROM tab1 AS cor0
----
51
78
85
78
91
78

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 18 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 41 - + 99 + + 92 * + col1 * 34 FROM tab1 AS cor0
----
146958
15582
43734

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT ALL - - ( - ( COUNT( * ) ) ) FROM tab1 AS cor0 WHERE 38 * col0 - - col0 * col2 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4439
SELECT ALL - - ( - ( COUNT ( * ) ) ) FROM tab1 AS cor0 WHERE 38 * col0 - - col0 * col2 > NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT ALL ( + + ( - SUM( ALL 62 ) ) ) AS col0 FROM tab0 cor0
----
-186

skipif mysql # not compatible
query I rowsort label-4440
SELECT ALL ( + + ( - SUM ( ALL 62 ) ) ) AS col0 FROM tab0 cor0
----
-186

onlyif mysql # aggregate syntax: 
query II rowsort label-4441
SELECT - 83 AS col0, COUNT( * ) FROM tab0 AS cor0
----
-83
3

skipif mysql # not compatible
query II rowsort label-4441
SELECT - 83 AS col0, COUNT ( * ) FROM tab0 AS cor0
----
-83
3

query II rowsort
SELECT col1 * + + col0 AS col0, + 59 FROM tab2
----
2346
59
4928
59
5025
59

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4444
SELECT + CAST( ( - col0 ) AS SIGNED ) * 76 AS col0 FROM tab2
----
-3496
-4864
-5700

skipif mysql # not compatible
query I rowsort label-4444
SELECT + CAST ( ( - col0 ) AS INTEGER ) * 76 AS col0 FROM tab2
----
-3496
-4864
-5700

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4446
SELECT ALL COUNT( 23 ) AS col2, 77 FROM tab2
----
3
77

skipif mysql # not compatible
query II rowsort label-4446
SELECT ALL COUNT ( 23 ) AS col2, 77 FROM tab2
----
3
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4447
SELECT DISTINCT + - COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4447
SELECT DISTINCT + - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4448
SELECT - - MIN( - col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4448
SELECT - - MIN ( - col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4449
SELECT - 67 * COUNT( * ) FROM tab0 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-4449
SELECT - 67 * COUNT ( * ) FROM tab0 AS cor0
----
-201

query I rowsort
SELECT DISTINCT col1 * - - col2 * 25 AS col0 FROM tab1
----
33600
7375
79900

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = + - col0 / + + ( + col2 )
----

query I rowsort
SELECT DISTINCT 52 * + col0 AS col0 FROM tab2 AS cor0
----
2392
3328
3900

query I rowsort
SELECT - + col0 * + col0 * + - col1 + col2 + - + 91 FROM tab1 AS cor0
----
36093
36419
389184

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4454
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - ( + 72 ) - + CAST( NULL AS SIGNED ) + col0 NOT BETWEEN - - col2 AND NULL )
----

skipif mysql # not compatible
query III rowsort label-4454
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT - ( + 72 ) - + CAST ( NULL AS INTEGER ) + col0 NOT BETWEEN - - col2 AND NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4455
SELECT MAX( - col2 ) DIV COUNT( * ) AS col1 FROM tab2 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-4455
SELECT MAX ( - col2 ) / COUNT ( * ) AS col1 FROM tab2 cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT ALL + ( MIN( ALL - col0 ) ) * - 3 FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL + ( MIN ( ALL - col0 ) ) * - 3 FROM tab1 AS cor0
----
273

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4457
SELECT + col1 AS col1, - CAST( NULL AS SIGNED ) - - - col1 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-4457
SELECT + col1 AS col1, - CAST ( NULL AS INTEGER ) - - - col1 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT ALL 66 * - ( col1 ) * - col2 + - - col1 FROM tab1 AS cor0
----
19475
210983
88718

query II rowsort
SELECT + - col0 AS col1, - col0 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

query II rowsort
SELECT ALL - - col1 AS col2, 29 AS col2 FROM tab2 AS cor0
----
51
29
67
29
77
29

query I rowsort
SELECT DISTINCT 89 + + + col1 FROM tab0
----
110
170
90

onlyif mysql # DIV for integer division: 
query I rowsort label-4462
SELECT ALL col0 * + + col2 + - col2 DIV - col0 + col0 AS col0 FROM tab0
----
723
957
9701

skipif mysql # not compatible
query I rowsort label-4462
SELECT ALL col0 * + + col2 + - col2 / - col0 + col0 AS col0 FROM tab0
----
723
957
9701

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 col0 FROM tab2 WHERE - + col0 * - - 68 * + col0 + + 91 < 84
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-4464
SELECT DISTINCT 61 DIV + + col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4464
SELECT DISTINCT 61 / + + col0 FROM tab1
----
0
1

query I rowsort
SELECT + 63 * - ( - col1 ) AS col0 FROM tab2
----
3213
4221
4851

query I rowsort
SELECT - col1 - - col1 AS col2 FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - col2 * + 92 + - + 87 * - 12
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 + col1 col0 FROM tab2 AS cor0
----
-1122
-3003
-3819

query I rowsort
SELECT DISTINCT + ( + 74 ) AS col1 FROM tab0 AS cor0
----
74

query I rowsort
SELECT col2 FROM tab0 WHERE ( - 23 ) IS NOT NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * col1 + 53 * + col2 col2 FROM tab2
----
3565
5662
6156

onlyif mysql # aggregate syntax: 
query I rowsort label-4471
SELECT DISTINCT + 89 * + COUNT( * ) * - 94 - - 13 + + 93 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE + 72 IS NOT NULL
----
-75188

skipif mysql # not compatible
query I rowsort label-4471
SELECT DISTINCT + 89 * + COUNT ( * ) * - 94 - - 13 + + 93 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE + 72 IS NOT NULL
----
-75188

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT + + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4472
SELECT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT - 21 + + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-12

skipif mysql # not compatible
query I rowsort label-4473
SELECT - 21 + + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-12

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL - - 60 - col2 FROM tab0 AS cor0
----
-39
13
50

query I rowsort
SELECT - col0 - - 33 + - col1 FROM tab1 cor0
----
-105
-32
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT - COUNT( + - col2 ) - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4477
SELECT - COUNT ( + - col2 ) - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4478
SELECT + + 36 - - ( - SUM( ALL - 77 ) ) col0 FROM tab0 AS cor0
----
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4478
SELECT + + 36 - - ( - SUM ( ALL - 77 ) ) col0 FROM tab0 AS cor0
----
267

query I rowsort
SELECT col2 * - 83 AS col1 FROM tab0 AS cor0
----
-3901
-8217
-830

query I rowsort
SELECT DISTINCT + - 19 FROM tab1 cor0
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, - 9 FROM tab1
----
14
-9
47
-9
5
-9

query II rowsort
SELECT DISTINCT 58, + col1 + - 53 AS col1 FROM tab0
----
58
-32
58
-52
58
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4483
SELECT - SUM( ALL - ( col0 ) ) DIV 86 DIV + + 68 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4483
SELECT - SUM ( ALL - ( col0 ) ) / 86 / + + 68 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + 14 * + col1 * col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4485
SELECT DISTINCT col2 * - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT col2 * - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 16 * - 1 NOT BETWEEN + col2 AND + col1
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4487
SELECT DISTINCT + + CAST( - - col1 AS SIGNED ) FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4487
SELECT DISTINCT + + CAST ( - - col1 AS INTEGER ) FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT DISTINCT - 78 AS col1, - col2 FROM tab2 AS cor0
----
-78
-23
-78
-40
-78
-58

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + + col0 <= - col1
----

query II rowsort
SELECT col0 AS col2, + col0 AS col0 FROM tab1 WHERE NOT 53 NOT BETWEEN - col2 - - col1 * col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT SUM( 78 ) * + - 53 FROM tab0
----
-12402

skipif mysql # not compatible
query I rowsort label-4491
SELECT SUM ( 78 ) * + - 53 FROM tab0
----
-12402

query II rowsort
SELECT DISTINCT col1 + 91 * + - col0, 98 AS col0 FROM tab2
----
-4135
98
-5747
98
-6758
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4493
SELECT ALL - COUNT( * ) + - - 27 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-4493
SELECT ALL - COUNT ( * ) + - - 27 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
15
87
97

query I rowsort
SELECT ALL - col1 + 48 + - + col2 * col1 * col0 AS col1 FROM tab0 AS cor0
----
-18243
-57138
-9556

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4496
SELECT - 14 + + CAST( COUNT( + - col1 ) AS SIGNED ) + + 14 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4496
SELECT - 14 + + CAST ( COUNT ( + - col1 ) AS INTEGER ) + + 14 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + col0 - + + col1 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - - col2 FROM tab2 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT - 20 + + 15 FROM tab2
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4500
SELECT + CAST( NULL AS DECIMAL ) + + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4500
SELECT + CAST ( NULL AS REAL ) + + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 5 * ( col0 ) + + ( 36 ) + - - 71 + col1 AS col1 FROM tab0
----
263
563
593

query I rowsort
SELECT 45 + - + col2 * - 27 * col0 FROM tab1
----
132237
135450
167121

query I rowsort
SELECT DISTINCT ( + 8 ) + - 45 AS col1 FROM tab0
----
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-4504
SELECT ALL COUNT( * ) AS col0, 41 FROM tab2
----
3
41

skipif mysql # not compatible
query II rowsort label-4504
SELECT ALL COUNT ( * ) AS col0, 41 FROM tab2
----
3
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 + - + col2 col1 FROM tab0
----
-59
-7
30

query III rowsort
SELECT * FROM tab0 WHERE + + 80 - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT ALL - COUNT( * ) AS col1 FROM tab2 WHERE ( NOT + col0 BETWEEN + col1 AND - col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 WHERE ( NOT + col0 BETWEEN + col1 AND - col2 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT DISTINCT + COUNT( * ) * + + 93 + COUNT( * ) FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-4508
SELECT DISTINCT + COUNT ( * ) * + + 93 + COUNT ( * ) FROM tab1
----
282

onlyif mysql # DIV for integer division: 
query I rowsort label-4509
SELECT col0 DIV - - 83 + 6 FROM tab2 cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-4509
SELECT col0 / - - 83 + 6 FROM tab2 cor0
----
6
6
6

query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab2 WHERE ( + col1 - - 33 ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4511
SELECT 83 DIV 80 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4511
SELECT 83 / 80 FROM tab0
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4512
SELECT ALL * FROM tab0 WHERE NULL <> CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4512
SELECT ALL * FROM tab0 WHERE NULL <> CAST ( NULL AS REAL )
----

query I rowsort
SELECT 27 + + col1 AS col1 FROM tab0
----
108
28
48

query I rowsort
SELECT DISTINCT 98 * - col2 FROM tab2
----
-2254
-3920
-5684

onlyif mysql # DIV for integer division: 
query I rowsort label-4515
SELECT col1 DIV ( + col2 ) FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4515
SELECT col1 / ( + col2 ) FROM tab2
----
1
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4516
SELECT ( + COUNT( * ) ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4516
SELECT ( + COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4517
SELECT CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( 32 )
----

skipif mysql # not compatible
query I rowsort label-4517
SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL BETWEEN NULL AND ( 32 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4518
SELECT DISTINCT - CAST( NULL AS SIGNED ) / col1 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / col1 AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT MIN( DISTINCT col1 ) FROM tab1 WHERE ( + col2 ) <= ( col2 )
----
5

skipif mysql # not compatible
query I rowsort label-4519
SELECT MIN ( DISTINCT col1 ) FROM tab1 WHERE ( + col2 ) <= ( col2 )
----
5

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT - 30 + col1 NOT BETWEEN NULL AND 31 - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4521
SELECT + COUNT( * ) * ( - COUNT( * ) ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4521
SELECT + COUNT ( * ) * ( - COUNT ( * ) ) FROM tab2
----
-9

query I rowsort
SELECT + ( - col2 ) * + col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT - col2 + - 15 FROM tab1
----
-111
-74
-83

query I rowsort
SELECT + col0 + + 18 FROM tab2
----
64
82
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT DISTINCT - MIN( DISTINCT col0 ) col2 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4525
SELECT DISTINCT - MIN ( DISTINCT col0 ) col2 FROM tab1
----
-51

query I rowsort
SELECT + col2 + + ( - 89 ) FROM tab0
----
-42
-79
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4527
SELECT DISTINCT col0 DIV col0 + col2 * - 88 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-5191
-5983
-8447

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT col0 / col0 + col2 * - 88 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-5191
-5983
-8447

onlyif mysql # DIV for integer division: 
query I rowsort label-4528
SELECT + col1 + 53 DIV - col2 FROM tab0
----
1
16
80

skipif mysql # not compatible
query I rowsort label-4528
SELECT + col1 + 53 / - col2 FROM tab0
----
1
16
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 col2 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4530
SELECT ALL - MIN( 42 ) FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL - MIN ( 42 ) FROM tab1
----
-42

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4531
SELECT CAST( col2 AS SIGNED ) + ( col2 ) DIV + col2 AS col1 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-4531
SELECT CAST ( col2 AS INTEGER ) + ( col2 ) / + col2 AS col1 FROM tab0
----
100
11
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT DISTINCT ( + SUM( ( ( - col1 ) ) ) ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT ( + SUM ( ( ( - col1 ) ) ) ) AS col2 FROM tab1
----
-66

query III rowsort
SELECT * FROM tab2 WHERE NOT + 1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4534
SELECT ALL MIN( DISTINCT col1 ) FROM tab1 WHERE - 7 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4534
SELECT ALL MIN ( DISTINCT col1 ) FROM tab1 WHERE - 7 IS NULL
----
NULL

query I rowsort
SELECT ALL 77 FROM tab1 WHERE ( NULL ) < + col2
----

query I rowsort
SELECT col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE + 21 IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT COUNT( + col0 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4538
SELECT COUNT ( + col0 ) AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4539
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE col1 + col0 * - 68 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4539
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE col1 + col0 * - 68 IS NOT NULL
----
-3

query I rowsort
SELECT ALL 71 - 81 FROM tab2
----
-10
-10
-10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4541
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN ( 98 ) AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4541
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN ( 98 ) AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4542
SELECT - MAX( ( col1 ) ) col2 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4542
SELECT - MAX ( ( col1 ) ) col2 FROM tab0
----
-81

query I rowsort
SELECT ALL 94 + 61 AS col2 FROM tab2
----
155
155
155

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT ALL + ( + MAX( ALL + 46 ) ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4544
SELECT ALL + ( + MAX ( ALL + 46 ) ) AS col0 FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4545
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE NULL NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4545
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE NULL NOT IN ( + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 85 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 5 * - col0 + 96 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT COUNT( ALL - 86 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4548
SELECT COUNT ( ALL - 86 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col1 / + col2 ) NOT BETWEEN + 74 AND col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col2 ) + 32 = NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab0 ) WHERE 53 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4552
SELECT - COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4552
SELECT - COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0
----
-9

query I rowsort
SELECT ALL 0 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4554
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN col1 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4554
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN col1 AND - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4555
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1
----
-9

query I rowsort
SELECT - col2 * - 15 + - col2 AS col1 FROM tab1 AS cor0
----
1344
826
952

onlyif mysql # DIV for integer division: 
query I rowsort label-4557
SELECT + col2 DIV 50 + - col0 FROM tab0 AS cor0
----
-15
-87
-96

skipif mysql # not compatible
query I rowsort label-4557
SELECT + col2 / 50 + - col0 FROM tab0 AS cor0
----
-15
-87
-96

query I rowsort
SELECT 48 * col0 FROM tab2 AS cor0
----
2208
3072
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT DISTINCT SUM( DISTINCT + ( 69 ) ) - + 63 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 53 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT SUM ( DISTINCT + ( 69 ) ) - + 63 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 53 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4560
SELECT ALL MAX( ALL col2 ) AS col2 FROM tab0 cor0 WHERE NOT - CAST( NULL AS SIGNED ) + col2 * col1 BETWEEN col2 * 57 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4560
SELECT ALL MAX ( ALL col2 ) AS col2 FROM tab0 cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + col2 * col1 BETWEEN col2 * 57 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT ALL + MIN( col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL + MIN ( col1 ) FROM tab1 AS cor0
----
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 90 * + ( + col2 ) < - 67
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4563
SELECT - + 32 DIV + 17 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4563
SELECT - + 32 / + 17 AS col2 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( - ( - col1 ) * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4565
SELECT + ( CAST( - col2 AS SIGNED ) ) * col1 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-4565
SELECT + ( CAST ( - col2 AS INTEGER ) ) * col1 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL + col1 + - 61 + col2 * + 3 * col2 AS col1 FROM tab0
----
260
29343
6647

onlyif mysql # aggregate syntax: 
query I rowsort label-4567
SELECT ALL - MAX( DISTINCT - 59 ) FROM tab0 WHERE NOT NULL > col2 * - 99
----
NULL

skipif mysql # not compatible
query I rowsort label-4567
SELECT ALL - MAX ( DISTINCT - 59 ) FROM tab0 WHERE NOT NULL > col2 * - 99
----
NULL

query I rowsort
SELECT ALL - col0 + col0 * + col2 AS col0 FROM tab2
----
1012
2496
4275

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 + - col1 NOT BETWEEN ( + 50 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT DISTINCT + MAX( DISTINCT - + col1 ) + 65 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT + MAX ( DISTINCT - + col1 ) + 65 FROM tab2
----
14

query III rowsort
SELECT * FROM tab0 WHERE ( 82 * 3 ) BETWEEN - 16 AND + col0
----

query III rowsort
SELECT * FROM tab1 WHERE ( 30 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4573
SELECT SUM( col0 ) * - ( COUNT( * ) - ( ( - 29 ) ) ) AS col0 FROM tab0 WHERE + 75 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4573
SELECT SUM ( col0 ) * - ( COUNT ( * ) - ( ( - 29 ) ) ) AS col0 FROM tab0 WHERE + 75 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4574
SELECT DISTINCT CAST( + col1 AS SIGNED ) - + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT CAST ( + col1 AS INTEGER ) - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT - COUNT( * ) + - 96 AS col2 FROM tab1 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4575
SELECT - COUNT ( * ) + - 96 AS col2 FROM tab1 cor0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4576
SELECT DISTINCT - col2 DIV + - col0 + - 85 * 94 - 66 * 94 AS col2 FROM tab2 AS cor0
----
-14194

skipif mysql # not compatible
query I rowsort label-4576
SELECT DISTINCT - col2 / + - col0 + - 85 * 94 - 66 * 94 AS col2 FROM tab2 AS cor0
----
-14194

query I rowsort
SELECT ALL + 76 * + 57 * col1 AS col1 FROM tab0 AS cor0
----
350892
4332
90972

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4578
SELECT col0 + CAST( 73 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
119
137
148

skipif mysql # not compatible
query I rowsort label-4578
SELECT col0 + CAST ( 73 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
119
137
148

onlyif mysql # DIV for integer division: 
query I rowsort label-4579
SELECT + 67 DIV 70 + 66 FROM tab1 AS cor0
----
66
66
66

skipif mysql # not compatible
query I rowsort label-4579
SELECT + 67 / 70 + 66 FROM tab1 AS cor0
----
66
66
66

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN col1 + + col2 AND + col1 + + 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT ALL - MIN( DISTINCT - - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4581
SELECT ALL - MIN ( DISTINCT - - col2 ) FROM tab2 AS cor0
----
-23

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL >= NULL OR NOT col2 >= NULL
----

query I rowsort
SELECT 31 AS col1 FROM tab0 cor0
----
31
31
31

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4585
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 < ( - + CAST( NULL AS SIGNED ) + + col2 )
----

skipif mysql # not compatible
query III rowsort label-4585
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 < ( - + CAST ( NULL AS INTEGER ) + + col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - + col1 ) = + 25
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4587
SELECT DISTINCT - col1 DIV + col1 col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4587
SELECT DISTINCT - col1 / + col1 col2 FROM tab0 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT ALL - COUNT( * ) * - - 63 + 83 FROM tab0 cor0
----
-106

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL - COUNT ( * ) * - - 63 + 83 FROM tab0 cor0
----
-106

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * + - 19 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT ( - col2 ) IN ( - 72 )
----
14
47
5

query III rowsort
SELECT * FROM tab0 WHERE NOT + 48 + + col2 * 31 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT col0 + - + col2 < - col0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT + 88 * + COUNT( * ) AS col0 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-4593
SELECT + 88 * + COUNT ( * ) AS col0 FROM tab0
----
264

query I rowsort
SELECT col0 * - 83 FROM tab0
----
-1245
-7221
-8051

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4595
SELECT DISTINCT 54 * - MAX( - col1 ) * CAST( + SUM( - col2 ) AS SIGNED ) + + COUNT( * ) AS col0 FROM tab2
----
-333231

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT 54 * - MAX ( - col1 ) * CAST ( + SUM ( - col2 ) AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab2
----
-333231

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 WHERE NOT ( + 95 ) IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-4596
SELECT COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( + 95 ) IS NULL
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4597
SELECT CAST( 34 AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col2 IN ( + + col1 )
----
34
34
34

skipif mysql # not compatible
query I rowsort label-4597
SELECT CAST ( 34 AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col2 IN ( + + col1 )
----
34
34
34

query I rowsort
SELECT DISTINCT 51 AS col1 FROM tab1 AS cor0 WHERE ( NULL BETWEEN - 36 * - ( col0 ) + col0 * + col0 AND - col0 )
----

query I rowsort
SELECT ALL - col0 + - col1 + - - col1 * - col2 - - col0 FROM tab0 cor0
----
-100
-231
-3888

query I rowsort
SELECT ALL + + 16 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT + ( + + col0 ) FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4602
SELECT ALL - - COUNT( * ) DIV - - 38 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4602
SELECT ALL - - COUNT ( * ) / - - 38 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT + col2 + + col0 + - col1 + 59 + - col2 FROM tab0 AS cor0
----
-7
125
155

onlyif mysql # aggregate syntax: 
query I rowsort label-4604
SELECT DISTINCT - COUNT( * ) + + - 61 FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT - COUNT ( * ) + + - 61 FROM tab2 AS cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT DISTINCT ( MIN( ALL + + ( + + col1 ) ) ) AS col2 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-4605
SELECT DISTINCT ( MIN ( ALL + + ( + + col1 ) ) ) AS col2 FROM tab1 cor0
----
5

query I rowsort
SELECT ALL 16 AS col0 FROM tab0 cor0
----
16
16
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT ( COUNT( + col2 ) ) + 54 AS col0 FROM tab2 AS cor0 WHERE ( - 61 ) BETWEEN ( ( - col1 ) ) AND ( NULL )
----
54

skipif mysql # not compatible
query I rowsort label-4607
SELECT ( COUNT ( + col2 ) ) + 54 AS col0 FROM tab2 AS cor0 WHERE ( - 61 ) BETWEEN ( ( - col1 ) ) AND ( NULL )
----
54

query I rowsort
SELECT ALL + + col1 * col0 + + - col2 FROM tab1 cor0
----
366
4209
618

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT DISTINCT + COUNT( * ) * 0 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4609
SELECT DISTINCT + COUNT ( * ) * 0 AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL 59 + - col1 AS col2 FROM tab1
----
12
45
54

query I rowsort
SELECT 97 + - - 43 AS col2 FROM tab1
----
140
140
140

query I rowsort
SELECT 4 + - 1 * - 13 AS col2 FROM tab2
----
17
17
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 43 col2, 85 FROM tab2
----
43
85
43
85
43
85

query I rowsort
SELECT ALL col2 + + col2 - col1 FROM tab2
----
-5
3
49

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) >= col1 * + 66
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4616
SELECT - 16 AS col2, COUNT( ALL - col2 ) FROM tab1
----
-16
3

skipif mysql # not compatible
query II rowsort label-4616
SELECT - 16 AS col2, COUNT ( ALL - col2 ) FROM tab1
----
-16
3

query I rowsort
SELECT ALL + col1 - - ( + col1 ) * - col2 AS col1 FROM tab0
----
-189
-3726
-98

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - 91 * + 83 * + 99 AND NULL
----

query I rowsort
SELECT + - 49 FROM tab2 AS cor0 WHERE col0 >= col0
----
-49
-49
-49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4620
SELECT * FROM tab1 AS cor0 WHERE col0 NOT IN ( + col1 - - CAST( + 23 AS SIGNED ) + - + 36 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4620
SELECT * FROM tab1 AS cor0 WHERE col0 NOT IN ( + col1 - - CAST ( + 23 AS INTEGER ) + - + 36 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 15 * + 69 + - - col2 - + - col1 FROM tab1 cor0
----
1099
1145
1150

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4622
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4622
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4623
SELECT + col2 DIV + col2, + 45 AS col0 FROM tab2
----
1
45
1
45
1
45

skipif mysql # not compatible
query II rowsort label-4623
SELECT + col2 / + col2, + 45 AS col0 FROM tab2
----
1
45
1
45
1
45

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 15 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4625
SELECT - 64 * SUM( CAST( + - 95 AS SIGNED ) ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
54720

skipif mysql # not compatible
query I rowsort label-4625
SELECT - 64 * SUM ( CAST ( + - 95 AS INTEGER ) ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
54720

query I rowsort
SELECT DISTINCT + 95 AS col0 FROM tab1 WHERE NULL IS NULL
----
95

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN + 4 * - - ( 23 ) AND ( ( + - 78 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + + col1 - + 13 FROM tab2 AS cor0
----
1160
3067
3873

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 * + col1 IN ( + - ( + col0 ) * col1 - col2 )
----

query II rowsort
SELECT ALL + col1 * - 86 AS col0, 64 AS col0 FROM tab1 AS cor0
----
-1204
64
-4042
64
-430
64

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND col1 * + 88
----

query I rowsort
SELECT DISTINCT + 67 FROM tab0 AS cor0 WHERE col1 * - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 23 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4634
SELECT DISTINCT col2 DIV col0 - + - col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4634
SELECT DISTINCT col2 / col0 - + - col2 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 IN ( - - col0 - - 60, col0 / + + 64 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ( + col1 ), + 30 - - + col2 AS col2 FROM tab0 AS cor0
----
1
129
21
40
81
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT - + MAX( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4637
SELECT - + MAX ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 39 IS NOT NULL
----

query I rowsort
SELECT - 44 FROM tab0 WHERE NOT - 99 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4640
SELECT ALL SUM( ALL 76 ) + COUNT( * ) AS col2 FROM tab2 WHERE NOT ( - 35 * - + 65 + + CAST( NULL AS SIGNED ) + - col0 + col0 ) < - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4640
SELECT ALL SUM ( ALL 76 ) + COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( - 35 * - + 65 + + CAST ( NULL AS INTEGER ) + - col0 + col0 ) < - col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4641
SELECT DISTINCT col1 col1, + CAST( - - col0 AS SIGNED ) AS col2 FROM tab2
----
51
46
67
75
77
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4641
SELECT DISTINCT col1 col1, + CAST ( - - col0 AS INTEGER ) AS col2 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4642
SELECT DISTINCT - MIN( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4642
SELECT DISTINCT - MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4643
SELECT ALL col0 + - - col0 + - col0 * col0 DIV - ( - 96 ) - + + col2 * ( - col1 ) + - col2 * - col2 FROM tab2
----
1772
4766
7342

skipif mysql # not compatible
query I rowsort label-4643
SELECT ALL col0 + - - col0 + - col0 * col0 / - ( - 96 ) - + + col2 * ( - col1 ) + - col2 * - col2 FROM tab2
----
1772
4766
7342

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( col2 ) > - + col1
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT ALL - MAX( - - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL - MAX ( - - col2 ) FROM tab1
----
-96

query I rowsort
SELECT ALL + col0 * + + col0 FROM tab0
----
225
7569
9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4647
SELECT - - 64 * - COUNT( - CAST( + + 53 AS SIGNED ) ) + - MIN( - col1 ) AS col1 FROM tab1 cor0
----
-145

skipif mysql # not compatible
query I rowsort label-4647
SELECT - - 64 * - COUNT ( - CAST ( + + 53 AS INTEGER ) ) + - MIN ( - col1 ) AS col1 FROM tab1 cor0
----
-145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, - col1 * + 83 * - col0 AS col2 FROM tab0 AS cor0
----
1
8051
21
151641
81
100845

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4650
SELECT - CAST( NULL AS SIGNED ) * 33 + - + col0 + col2 / + + 94 - + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4650
SELECT - CAST ( NULL AS INTEGER ) * 33 + - + col0 + col2 / + + 94 - + - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 74 AS col0, - 99 + col1 FROM tab1 AS cor0
----
74
-52
74
-85
74
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT ALL SUM( ALL - + col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-4652
SELECT ALL SUM ( ALL - + col2 ) FROM tab2
----
-121

query I rowsort
SELECT DISTINCT 94 * - 6 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-564

onlyif mysql # aggregate syntax: 
query I rowsort label-4654
SELECT COUNT( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4654
SELECT COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query I rowsort
SELECT + 0 + + 19 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT DISTINCT - MIN( col2 ) AS col2 FROM tab1 WHERE NOT ( ( + col1 IN ( + ( + col2 ) * - - 66 ) ) )
----
-59

skipif mysql # not compatible
query I rowsort label-4656
SELECT DISTINCT - MIN ( col2 ) AS col2 FROM tab1 WHERE NOT ( ( + col1 IN ( + ( + col2 ) * - - 66 ) ) )
----
-59

query I rowsort
SELECT + 83 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4658
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4658
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT col2 * + + col0 * + col1 AS col2 FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # DIV for integer division: 
query II rowsort label-4660
SELECT - - col0 * 19 * col2 DIV + col0 AS col0, 34 col1 FROM tab0 AS cor0
----
1881
34
190
34
893
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4660
SELECT - - col0 * 19 * col2 / + col0 AS col0, 34 col1 FROM tab0 AS cor0
----
1881
34
190
34
893
34

onlyif mysql # DIV for integer division: 
query I rowsort label-4661
SELECT 82 DIV col0 DIV col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4661
SELECT 82 / col0 / col0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT DISTINCT - 28 + - ( - + SUM( ALL - col0 ) ) + + COUNT( * ) + + 50 FROM tab2 AS cor0
----
-160

skipif mysql # not compatible
query I rowsort label-4662
SELECT DISTINCT - 28 + - ( - + SUM ( ALL - col0 ) ) + + COUNT ( * ) + + 50 FROM tab2 AS cor0
----
-160

query I rowsort
SELECT DISTINCT - col0 + + 90 FROM tab0
----
-7
3
75

query II rowsort
SELECT ALL + col1 * - 47 - + col2 AS col1, col1 FROM tab2
----
-2420
51
-3207
67
-3659
77

query I rowsort
SELECT ALL 42 - - col1 AS col1 FROM tab2
----
109
119
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT 14 + COUNT( * ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-4666
SELECT 14 + COUNT ( * ) FROM tab0
----
17

query I rowsort
SELECT 71 AS col0 FROM tab1 WHERE NULL < + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4668
SELECT + CAST( - + ( - COUNT( * ) ) AS SIGNED ) + + 84 + 35 AS col0, + 76 AS col1 FROM tab0
----
122
76

skipif mysql # not compatible
query II rowsort label-4668
SELECT + CAST ( - + ( - COUNT ( * ) ) AS INTEGER ) + + 84 + 35 AS col0, + 76 AS col1 FROM tab0
----
122
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 - + + col1 + 68 col0, 47 * + + 43 FROM tab1
----
68
2021

query I rowsort
SELECT ALL - col0 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT 81, + col2 FROM tab0 AS cor0
----
81
10
81
47
81
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 22 col0 FROM tab2 AS cor0
----
22

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( + ( - - col1 ) ) + - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 74, ( + 54 ) AS col1 FROM tab2
----
74
54

query I rowsort
SELECT DISTINCT col1 * col0 + + 5 AS col1 FROM tab1 WHERE NOT col2 + 97 <= ( NULL )
----

query I rowsort
SELECT + + col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col2
----

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4678
SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND + CAST( + + 40 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4678
SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND + CAST ( + + 40 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT MIN( - - col1 ) FROM tab2 AS cor0 WHERE NOT col2 + 37 IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-4679
SELECT MIN ( - - col1 ) FROM tab2 AS cor0 WHERE NOT col2 + 37 IS NULL
----
51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT - COUNT( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4681
SELECT - COUNT ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT + + MAX( + col1 ) FROM tab2 cor0 WHERE NOT + col0 IS NULL
----
77

skipif mysql # not compatible
query I rowsort label-4682
SELECT + + MAX ( + col1 ) FROM tab2 cor0 WHERE NOT + col0 IS NULL
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT ALL COUNT( * ) + + AVG ( - col0 ) AS col2 FROM tab1 cor0 WHERE NOT NULL <> col0 * - col0 * + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL COUNT ( * ) + + AVG ( - col0 ) AS col2 FROM tab1 cor0 WHERE NOT NULL <> col0 * - col0 * + col0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - ( ( + - col2 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col2 AS col2, + 90 + + col1 FROM tab2 AS cor0
----
-23
141
-40
167
-58
157

query I rowsort
SELECT DISTINCT + AVG ( - - ( col2 ) ) AS col0 FROM tab1 WHERE + col2 * 69 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4687
SELECT COUNT( 66 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4687
SELECT COUNT ( 66 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT - COUNT( * ) + 50 AS col2 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-4688
SELECT - COUNT ( * ) + 50 AS col2 FROM tab2
----
47

query II rowsort
SELECT DISTINCT + col1 * - col2 AS col2, - col2 * + col2 FROM tab2
----
-1173
-529
-3080
-1600
-3886
-3364

query I rowsort
SELECT ALL col1 + + - 63 AS col0 FROM tab2
----
-12
14
4

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - ( + 59 ) )
----

query I rowsort
SELECT col0 - col0 + col1 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4693
SELECT ALL * FROM tab1 WHERE - 3 NOT BETWEEN + + 37 AND CAST( + + col1 AS SIGNED ) * + + 93 * + CAST( NULL AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4693
SELECT ALL * FROM tab1 WHERE - 3 NOT BETWEEN + + 37 AND CAST ( + + col1 AS INTEGER ) * + + 93 * + CAST ( NULL AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT COUNT( * ) - 87 AS col1 FROM tab1 WHERE - + col0 * + 90 NOT BETWEEN - + col2 AND NULL
----
-84

skipif mysql # not compatible
query I rowsort label-4694
SELECT COUNT ( * ) - 87 AS col1 FROM tab1 WHERE - + col0 * + 90 NOT BETWEEN - + col2 AND NULL
----
-84

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + 64 * 28 AND NULL = NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 16 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4698
SELECT ALL + - ( - CAST( NULL AS DECIMAL ) ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL + - ( - CAST ( NULL AS REAL ) ) FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 + + + col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4700
SELECT ALL ( + - COUNT( * ) ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL ( + - COUNT ( * ) ) AS col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT ALL - col2 + + + 5 - - - 82 * 65 + - + col0 FROM tab0 AS cor0
----
-5387
-5422
-5521

query II rowsort
SELECT - ( + + 76 ) * + ( + 51 ), - col2 AS col2 FROM tab1
----
-3876
-59
-3876
-68
-3876
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-4703
SELECT + 87 * - - 71 AS col0, + COUNT( DISTINCT + 4 ) - - 25 FROM tab1
----
6177
26

skipif mysql # not compatible
query II rowsort label-4703
SELECT + 87 * - - 71 AS col0, + COUNT ( DISTINCT + 4 ) - - 25 FROM tab1
----
6177
26

query II rowsort
SELECT - col1 * col1 AS col1, - col1 AS col0 FROM tab2
----
-2601
-51
-4489
-67
-5929
-77

query I rowsort
SELECT DISTINCT ( - ( + col1 ) ) AS col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT col1 * + - ( col0 ) AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT - 23 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - col0 * - 89 ) BETWEEN col1 AND - 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col2 AS col1 FROM tab0 AS cor0 WHERE NOT 70 * + 86 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 60 * col1 * - + 68 * + 32 + col0 + - - 96 FROM tab1 AS cor0
----
1827987
6136507
652981

query I rowsort
SELECT 88 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
88
88
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, - 0 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4713
SELECT + COUNT( * ) AS col2, 60 AS col0 FROM tab2 AS cor0
----
3
60

skipif mysql # not compatible
query II rowsort label-4713
SELECT + COUNT ( * ) AS col2, 60 AS col0 FROM tab2 AS cor0
----
3
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4714
SELECT + ( + + 24 ), + col2 * + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
24
NULL
24
NULL
24
NULL

skipif mysql # not compatible
query II rowsort label-4714
SELECT + ( + + 24 ), + col2 * + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
24
NULL
24
NULL
24
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4715
SELECT CAST( + SUM( ALL + col1 ) AS SIGNED ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-4715
SELECT CAST ( + SUM ( ALL + col1 ) AS INTEGER ) AS col0 FROM tab0
----
103

query II rowsort
SELECT ALL + col2 AS col1, - col0 FROM tab0
----
10
-87
47
-15
99
-97

query II rowsort
SELECT 50 AS col0, - col2 * + 51 * - col0 FROM tab2
----
50
130560
50
221850
50
53958

query I rowsort
SELECT ALL col0 + + + col0 * - - col2 FROM tab1
----
4947
5100
6279

query I rowsort
SELECT + col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 12 * + 4 FROM tab0
----
-48
-48
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + 78 col1 FROM tab0 cor0
----
165
175
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT + COUNT( * ) + COUNT( * ) - + 79 AS col2 FROM tab2 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-4722
SELECT + COUNT ( * ) + COUNT ( * ) - + 79 AS col2 FROM tab2 cor0
----
-73

query I rowsort
SELECT ALL - 37 + col2 FROM tab1 AS cor0
----
22
31
59

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT + col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4725
SELECT DISTINCT - - COUNT( + ( + + col1 ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4725
SELECT DISTINCT - - COUNT ( + ( + + col1 ) ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT col1 + - col2 + + 46 * - col1 + + col1 AS col2 FROM tab0
----
-143
-3611
-934

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT MIN( - 9 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-4727
SELECT MIN ( - 9 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4728
SELECT + - ( AVG ( + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4728
SELECT + - ( AVG ( + CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 - col2 * 56 FROM tab1 AS cor0
----
-3363
-3876
-5472

onlyif mysql # aggregate syntax: 
query II rowsort label-4730
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) + + + COUNT( * ) AS col1, - COUNT( * ) FROM tab0 AS cor0
----
12
-3

skipif mysql # not compatible
query II rowsort label-4730
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) + + + COUNT ( * ) AS col1, - COUNT ( * ) FROM tab0 AS cor0
----
12
-3

query I rowsort
SELECT DISTINCT - ( - col2 ) * + col0 + col1 FROM tab0 AS cor0
----
786
891
9604

query I rowsort
SELECT ALL col2 * col1 + - + 6 FROM tab2 AS cor0
----
1167
3074
3880

query III rowsort
SELECT * FROM tab1 WHERE NOT + 14 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-4734
SELECT ALL CAST( NULL AS DECIMAL ), - COUNT( * ) AS col2 FROM tab2
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-4734
SELECT ALL CAST ( NULL AS REAL ), - COUNT ( * ) AS col2 FROM tab2
----
NULL
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT DISTINCT MIN( DISTINCT ( ( - col0 ) ) ) AS col0 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-4735
SELECT DISTINCT MIN ( DISTINCT ( ( - col0 ) ) ) AS col0 FROM tab1
----
-91

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 31 + 12 / col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col2, + 76 FROM tab1
----
59
76
68
76
96
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4738
SELECT + + CAST( + 17 AS SIGNED ) FROM tab0 AS cor0
----
17
17
17

skipif mysql # not compatible
query I rowsort label-4738
SELECT + + CAST ( + 17 AS INTEGER ) FROM tab0 AS cor0
----
17
17
17

query II rowsort
SELECT - col1 AS col0, 33 * - 90 FROM tab0 AS cor0
----
-1
-2970
-21
-2970
-81
-2970

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN - - 10 * + col2 + - col2 * - 99 AND - col2 + + col2
----

query I rowsort
SELECT DISTINCT - col2 * + col0 + + 86 AS col0 FROM tab1 cor0
----
-4810
-4929
-6102

query I rowsort
SELECT 53 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

onlyif mysql # DIV for integer division: 
query I rowsort label-4743
SELECT col0 DIV - + col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4743
SELECT col0 / - + col1 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT DISTINCT SUM( - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT SUM ( - col1 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-66

query II rowsort
SELECT DISTINCT - col2, col1 AS col2 FROM tab1 AS cor0 WHERE - col2 NOT IN ( ( col2 ) * + col0 + + col2 )
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4746
SELECT DISTINCT - MIN( 4 ) FROM tab2 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-4746
SELECT DISTINCT - MIN ( 4 ) FROM tab2 cor0
----
-4

query I rowsort
SELECT DISTINCT 51 + + col0 + - 25 FROM tab1 AS cor0
----
111
117
77

query I rowsort
SELECT + - col0 + + col0 + + 6 FROM tab2 cor0
----
6
6
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4749
SELECT - COUNT( * ) + - 48 + + CAST( NULL AS SIGNED ) - + COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT - COUNT ( * ) + - 48 + + CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT - 22 + + COUNT( * ) FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-4750
SELECT - 22 + + COUNT ( * ) FROM tab0
----
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT - 45 * SUM( - ( - 98 ) ) FROM tab0 WHERE NULL BETWEEN NULL AND - col2 - + col2 + - - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4751
SELECT - 45 * SUM ( - ( - 98 ) ) FROM tab0 WHERE NULL BETWEEN NULL AND - col2 - + col2 + - - col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4752
SELECT + + 48 / - col1 + - - 66 + - 66 - - 1 * - col1 * - col1 * - col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE - 12 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4752
SELECT + + 48 / - col1 + - - 66 + - 66 - - 1 * - col1 * - col1 * - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE - 12 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 + ( + col0 ) col0 FROM tab2
----
24
35
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4754
SELECT DISTINCT CAST( NULL AS SIGNED ) + + + col0 + + 29 * + col2 + + - col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4754
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + + col0 + + 29 * + col2 + + - col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT 57 + - COUNT( * ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-4755
SELECT 57 + - COUNT ( * ) FROM tab2
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4756
SELECT 80 + - MIN( - ( - - 45 ) ) col0 FROM tab1
----
125

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4756
SELECT 80 + - MIN ( - ( - - 45 ) ) col0 FROM tab1
----
125

query I rowsort
SELECT ALL + col1 + + 55 - 88 FROM tab1
----
-19
-28
14

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 58 <> col1
----

query I rowsort
SELECT 1 * - 97 AS col2 FROM tab0 AS cor0
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT ALL - SUM( - 64 ) AS col0 FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-4760
SELECT ALL - SUM ( - 64 ) AS col0 FROM tab0 AS cor0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT ALL + SUM( - - 67 ) FROM tab2 cor0
----
201

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL + SUM ( - - 67 ) FROM tab2 cor0
----
201

query II rowsort
SELECT 70 AS col1, - col2 * - - col2 FROM tab2 cor0
----
70
-1600
70
-3364
70
-529

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 <= - col0 + + 95
----
46
51
23

query I rowsort
SELECT ALL - ( - 0 ) - + col1 + col2 AS col2 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query II rowsort label-4765
SELECT DISTINCT + MAX( DISTINCT + col2 ) AS col2, + 89 FROM tab0 cor0
----
99
89

skipif mysql # not compatible
query II rowsort label-4765
SELECT DISTINCT + MAX ( DISTINCT + col2 ) AS col2, + 89 FROM tab0 cor0
----
99
89

query I rowsort
SELECT col2 / col2 * 97 FROM tab0 AS cor0 WHERE NOT NULL >= col1
----

query I rowsort
SELECT ALL + col1 * - 91 FROM tab2 AS cor0
----
-4641
-6097
-7007

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4768
SELECT ALL COUNT( * ) + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - 61 * - 89 + col2 / col2 + col2 + + 89 + - + col0 - col2 AND 44 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-4768
SELECT ALL COUNT ( * ) + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - 61 * - 89 + col2 / col2 + col2 + + 89 + - + col0 - col2 AND 44 * + col1
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 > + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 33 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4771
SELECT + COUNT( * ) * - 54 AS col0 FROM tab1 cor0
----
-162

skipif mysql # not compatible
query I rowsort label-4771
SELECT + COUNT ( * ) * - 54 AS col0 FROM tab1 cor0
----
-162

onlyif mysql # DIV for integer division: 
query I rowsort label-4772
SELECT + - 46 DIV + 4 AS col2 FROM tab2 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-4772
SELECT + - 46 / + 4 AS col2 FROM tab2 AS cor0
----
-11
-11
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4773
SELECT ALL 74 / col1 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4773
SELECT ALL 74 / col1 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 85 AS col2 FROM tab1 WHERE NOT NULL IN ( + + 5, - 90, + col1, col2 + - + col1 + 57 )
----

query I rowsort
SELECT col0 * - - 36 FROM tab1
----
1836
3060
3276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4776
SELECT ALL - + col1 col1 FROM tab1 WHERE NOT CAST( - col1 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4776
SELECT ALL - + col1 col1 FROM tab1 WHERE NOT CAST ( - col1 AS INTEGER ) <= NULL
----

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE NOT + col2 NOT BETWEEN - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + + 37 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT + COUNT( * ) + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> col2
----
0

skipif mysql # not compatible
query I rowsort label-4779
SELECT + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> col2
----
0

query I rowsort
SELECT ALL - col0 * col2 * + + col2 + - col0 AS col2 FROM tab0 cor0
----
-33150
-8787
-950794

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT - + SUM( + - ( + col1 ) ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4781
SELECT - + SUM ( + - ( + col1 ) ) FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT - MAX( + col1 ) * + 39 FROM tab0
----
-3159

skipif mysql # not compatible
query I rowsort label-4782
SELECT - MAX ( + col1 ) * + 39 FROM tab0
----
-3159

query I rowsort
SELECT + col1 + - col0 + - + col0 + ( - col1 ) FROM tab1
----
-102
-170
-182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4784
SELECT ALL - COUNT( * ) * CAST( + - 26 AS SIGNED ) FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4784
SELECT ALL - COUNT ( * ) * CAST ( + - 26 AS INTEGER ) FROM tab0 AS cor0
----
78

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 34 = - - 69
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4786
SELECT - COUNT( * ) * + - CAST( NULL AS SIGNED ) - + MIN( col2 ) / - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4786
SELECT - COUNT ( * ) * + - CAST ( NULL AS INTEGER ) - + MIN ( col2 ) / - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN + col0 * + 98 AND + + 23
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( 88, + 11, 58 )
----

query II rowsort
SELECT + 51, + col2 FROM tab0 AS cor0
----
51
10
51
47
51
99

query II rowsort
SELECT 0, col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

query I rowsort
SELECT ALL col1 + - - 27 FROM tab2
----
104
78
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT 49 + COUNT( + + col1 ) FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-4792
SELECT 49 + COUNT ( + + col1 ) FROM tab1
----
52

query II rowsort
SELECT + - col1 + col1 AS col0, + col0 AS col1 FROM tab2 AS cor0
----
0
46
0
64
0
75

query I rowsort
SELECT ALL 60 * + - col2 + + + col2 - - col2 AS col0 FROM tab1
----
-3422
-3944
-5568

onlyif mysql # aggregate syntax: 
query I rowsort label-4795
SELECT ( + + MAX( + 0 ) ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4795
SELECT ( + + MAX ( + 0 ) ) AS col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0, col2 col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 59 col1 FROM tab2 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT - MAX( + - 20 ) col1 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4798
SELECT - MAX ( + - 20 ) col1 FROM tab1 AS cor0
----
20

query II rowsort
SELECT + col1 AS col2, + col0 FROM tab0 cor0
----
1
97
21
87
81
15

query I rowsort
SELECT DISTINCT 33 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - - 1 * - + col1 AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - col2 * col2 - - col1 FROM tab0 cor0
----
-2128
-79
-9800

query I rowsort
SELECT + ( 16 ) FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4804
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + AVG ( ALL 46 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4804
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + AVG ( ALL 46 ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT col2 * ( col1 ) AS col1 FROM tab2
----
1173
3080
3886

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= 95 * col0 + col1 * + col1
----

query II rowsort
SELECT + 91, col2 AS col2 FROM tab1
----
91
59
91
68
91
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT DISTINCT COUNT( col2 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT COUNT ( col2 ) FROM tab1
----
3

query I rowsort
SELECT ALL - col0 * + 0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4810
SELECT ALL - 0 AS col0, CAST( - - col2 AS SIGNED ) FROM tab0 AS cor0
----
0
10
0
47
0
99

skipif mysql # not compatible
query II rowsort label-4810
SELECT ALL - 0 AS col0, CAST ( - - col2 AS INTEGER ) FROM tab0 AS cor0
----
0
10
0
47
0
99

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) NOT IN ( ( col1 ) )
----

query II rowsort
SELECT DISTINCT col2, + col0 AS col0 FROM tab0 cor0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4813
SELECT ALL + CAST( NULL AS DECIMAL ) / + - col0 * + col2 * col1 + + - 64 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT ALL + CAST ( NULL AS REAL ) / + - col0 * + col2 * col1 + + - 64 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4814
SELECT + MAX( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT + MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query II rowsort
SELECT col1 * + col1 AS col2, 49 AS col0 FROM tab0
----
1
49
441
49
6561
49

onlyif mysql # aggregate syntax: 
query II rowsort label-4816
SELECT 34 * COUNT( * ), + COUNT( DISTINCT - + 26 ) + + + 19 AS col1 FROM tab0
----
102
20

skipif mysql # not compatible
query II rowsort label-4816
SELECT 34 * COUNT ( * ), + COUNT ( DISTINCT - + 26 ) + + + 19 AS col1 FROM tab0
----
102
20

query I rowsort
SELECT 43 + 74 * - - col1 * - + 27 FROM tab1 AS cor0
----
-27929
-93863
-9947

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4818
SELECT * FROM tab2 AS cor0 WHERE + CAST( + - col1 AS DECIMAL ) - col0 * ( - + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4818
SELECT * FROM tab2 AS cor0 WHERE + CAST ( + - col1 AS REAL ) - col0 * ( - + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4819
SELECT + col0 * col0 + - + col2 DIV 57 * + - col2 AS col2, CAST( - - 23 AS SIGNED ) - 21 FROM tab1 AS cor0
----
2697
2
7284
2
8349
2

skipif mysql # not compatible
query II rowsort label-4819
SELECT + col0 * col0 + - + col2 / 57 * + - col2 AS col2, CAST ( - - 23 AS INTEGER ) - 21 FROM tab1 AS cor0
----
2697
2
7284
2
8349
2

query I rowsort
SELECT col0 * 15 + 10 FROM tab2
----
1135
700
970

query I rowsort
SELECT DISTINCT + col0 + + col0 + - 27 FROM tab2
----
101
123
65

query I rowsort
SELECT ALL ( col2 ) * 91 + ( col2 ) FROM tab0
----
4324
9108
920

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT MAX( ( - 53 ) ) FROM tab1 WHERE NULL IS NULL
----
-53

skipif mysql # not compatible
query I rowsort label-4823
SELECT MAX ( ( - 53 ) ) FROM tab1 WHERE NULL IS NULL
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT + 42 + - COUNT( * ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-4824
SELECT + 42 + - COUNT ( * ) FROM tab2
----
39

query I rowsort
SELECT ALL + col0 + 34 AS col1 FROM tab1
----
119
125
85

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4826
SELECT DISTINCT col0 + 19 DIV - - 61 AS col0, + col1 - + CAST( NULL AS DECIMAL ) DIV + col2 + - col2 AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-4826
SELECT DISTINCT col0 + 19 / - - 61 AS col0, + col1 - + CAST ( NULL AS REAL ) / + col2 + - col2 AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT ALL + col0 - + 94 AS col0 FROM tab2
----
-19
-30
-48

query I rowsort
SELECT ALL + 1 FROM tab2 AS cor0 WHERE ( col0 ) = + col1
----

query I rowsort
SELECT - col0 - + 35 AS col0 FROM tab2 cor0
----
-110
-81
-99

query I rowsort
SELECT - + 6 - + col1 FROM tab0 AS cor0
----
-27
-7
-87

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 42 BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL + + ( + + col1 ) AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4833
SELECT DISTINCT + COUNT( * ) * COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4833
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 18 FROM tab0 cor0
----
18
18
18

query II rowsort
SELECT - - col1 * col2, + col2 AS col0 FROM tab1 AS cor0
----
1344
96
295
59
3196
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4836
SELECT col1 * + CAST( + col2 AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4836
SELECT col1 * + CAST ( + col2 AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col0 AS col0, + col1 AS col2 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4838
SELECT CAST( NULL AS SIGNED ) * + - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4838
SELECT CAST ( NULL AS INTEGER ) * + - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4839
SELECT ALL + 84 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL + 84 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT + - col1 IN ( 59 + - 65 )
----
-3

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT + - col1 IN ( 59 + - 65 )
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 62 col2 FROM tab2 AS cor0
----
-62
-62
-62

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 <> col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4843
SELECT + + 98 DIV + + ( - col1 ) col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4843
SELECT + + 98 / + + ( - col1 ) col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4844
SELECT SUM( ALL col2 ) * + 47 * - - SUM( + + col2 ) + + - 91 FROM tab2
----
688036

skipif mysql # not compatible
query I rowsort label-4844
SELECT SUM ( ALL col2 ) * + 47 * - - SUM ( + + col2 ) + + - 91 FROM tab2
----
688036

query II rowsort
SELECT ALL - 96 AS col1, + col2 FROM tab1 AS cor0
----
-96
59
-96
68
-96
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, + 50 FROM tab1 AS cor0
----
-59
50
-68
50
-96
50

query I rowsort
SELECT col0 * + + 83 AS col1 FROM tab1 AS cor0
----
4233
7055
7553

query II rowsort
SELECT - - col2, - col1 AS col0 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 95 + - + col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * col1 - + col1 IS NULL
----

query I rowsort
SELECT ALL 43 FROM tab2 WHERE + - 84 BETWEEN - - col2 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4852
SELECT CAST( NULL AS SIGNED ) * - col1 FROM tab0 WHERE - col2 NOT IN ( ( - col0 ) * - 12 - col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4852
SELECT CAST ( NULL AS INTEGER ) * - col1 FROM tab0 WHERE - col2 NOT IN ( ( - col0 ) * - 12 - col1 )
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col1 - - 86, col2 FROM tab1
----
100
96
133
68
91
59

query I rowsort
SELECT ALL + col1 * - col2 + + col0 AS col2 FROM tab1
----
-1293
-210
-3105

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4855
SELECT ALL col0 - - - col0 AS col1, CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-4855
SELECT ALL col0 - - - col0 AS col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
0
NULL
0
NULL
0
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4856
SELECT - + ( + col2 ) AS col0, CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE + - col0 IS NULL
----

skipif mysql # not compatible
query II rowsort label-4856
SELECT - + ( + col2 ) AS col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE + - col0 IS NULL
----

query I rowsort
SELECT + col0 + - 83 FROM tab1 AS cor0
----
-32
2
8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - + col0 / + + ( - + col0 ) + - col0 )
----

query I rowsort
SELECT DISTINCT + - col1 - col2 + + col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT + + 56 + - + COUNT( * ) FROM tab2 WHERE NOT ( NOT ( NULL ) NOT BETWEEN - ( col1 ) + 10 + - 39 AND NULL )
----
56

skipif mysql # not compatible
query I rowsort label-4860
SELECT + + 56 + - + COUNT ( * ) FROM tab2 WHERE NOT ( NOT ( NULL ) NOT BETWEEN - ( col1 ) + 10 + - 39 AND NULL )
----
56

query I rowsort
SELECT + col0 * + - col2 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT - ( - + 44 ) FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT - 30 AS col1 FROM tab0 cor0
----
-30
-30
-30

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT ALL COUNT( - + col2 ) col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4865
SELECT ALL COUNT ( - + col2 ) col1 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL + ( 63 ) FROM tab0
----
63
63
63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4867
SELECT * FROM tab2 WHERE NOT - - 6 + - col0 + - - CAST( NULL AS SIGNED ) * + col1 + - CAST( - + 40 AS SIGNED ) NOT IN ( + col1, 43 + - 42, col0 )
----

skipif mysql # not compatible
query III rowsort label-4867
SELECT * FROM tab2 WHERE NOT - - 6 + - col0 + - - CAST ( NULL AS INTEGER ) * + col1 + - CAST ( - + 40 AS INTEGER ) NOT IN ( + col1, 43 + - 42, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4868
SELECT ALL CAST( - - 94 AS SIGNED ) * + col1 AS col0 FROM tab1
----
1316
4418
470

skipif mysql # not compatible
query I rowsort label-4868
SELECT ALL CAST ( - - 94 AS INTEGER ) * + col1 AS col0 FROM tab1
----
1316
4418
470

query I rowsort
SELECT ALL col1 * - 72 FROM tab1
----
-1008
-3384
-360

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + - 69 + col2 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT 70 + + COUNT( * ) FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-4871
SELECT 70 + + COUNT ( * ) FROM tab1
----
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - - col1 * + - col1 * + col1 col0 FROM tab1
----
-103891
-184
-2840

onlyif mysql # DIV for integer division: 
query I rowsort label-4873
SELECT 78 DIV - 37 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-4873
SELECT 78 / - 37 FROM tab2
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4874
SELECT ALL CAST( NULL AS SIGNED ) * + - 91 + + + col0 * + 2 * - col1, col2 + + - ( + 96 ) AS col1 FROM tab0
----
NULL
-49
NULL
-86
NULL
3

skipif mysql # not compatible
query II rowsort label-4874
SELECT ALL CAST ( NULL AS INTEGER ) * + - 91 + + + col0 * + 2 * - col1, col2 + + - ( + 96 ) AS col1 FROM tab0
----
NULL
-49
NULL
-86
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT + MAX( col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4875
SELECT + MAX ( col1 ) FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4876
SELECT ALL + col1 - - - CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4876
SELECT ALL + col1 - - - CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - ( - + 47 ) AS col2 FROM tab1 AS cor0
----
47

query I rowsort
SELECT ALL - col2 * - 58 AS col0 FROM tab0 AS cor0
----
2726
5742
580

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT col1 <= NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4880
SELECT - 36 + - 96 + + + col1 DIV - col0 FROM tab2
----
-132
-133
-133

skipif mysql # not compatible
query I rowsort label-4880
SELECT - 36 + - 96 + + + col1 / - col0 FROM tab2
----
-132
-133
-133

query I rowsort
SELECT ALL + 34 + - - col0 AS col1 FROM tab1
----
119
125
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4882
SELECT ALL 56 + + CAST( NULL AS SIGNED ) * - + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4882
SELECT ALL 56 + + CAST ( NULL AS INTEGER ) * - + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4883
SELECT + MAX( - 74 ) col1 FROM tab1
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4883
SELECT + MAX ( - 74 ) col1 FROM tab1
----
-74

query II rowsort
SELECT + 48 AS col0, - col0 FROM tab0
----
48
-15
48
-87
48
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4885
SELECT DISTINCT col0 FROM tab0 WHERE NULL BETWEEN ( + col1 / - + 49 ) AND + CAST( + - col2 AS SIGNED ) / + 43
----

skipif mysql # not compatible
query I rowsort label-4885
SELECT DISTINCT col0 FROM tab0 WHERE NULL BETWEEN ( + col1 / - + 49 ) AND + CAST ( + - col2 AS INTEGER ) / + 43
----

query I rowsort
SELECT DISTINCT - col2 + - ( + col0 ) FROM tab2
----
-104
-133
-69

query I rowsort
SELECT ALL col0 - - 92 * + 78 FROM tab1 cor0
----
7227
7261
7267

query I rowsort
SELECT - col2 - + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 - + 44 = - - 73 / - ( - + col0 )
----
-104
-133
-69

query II rowsort
SELECT col1 AS col0, - ( - - 49 ) * + col2 FROM tab1 cor0
----
14
-4704
47
-3332
5
-2891

query I rowsort
SELECT ( 84 ) * - 95 FROM tab0
----
-7980
-7980
-7980

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT DISTINCT COUNT( - 31 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4891
SELECT DISTINCT COUNT ( - 31 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query I rowsort
SELECT DISTINCT - 40 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND - + col2
----

query I rowsort
SELECT DISTINCT 5 AS col0 FROM tab2 cor0
----
5

query I rowsort
SELECT ALL + 61 * col2 - - col1 AS col0 FROM tab1 AS cor0
----
3604
4195
5870

query I rowsort
SELECT DISTINCT - col1 * + col2 * col1 AS col1 FROM tab0 AS cor0
----
-308367
-4410
-99

query I rowsort
SELECT 40 FROM tab2 AS cor0 WHERE NOT 86 NOT IN ( - - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + 42 col0 FROM tab1 AS cor0
----
101
110
138

query I rowsort
SELECT - col2 * + - col0 FROM tab0
----
705
870
9603

query I rowsort
SELECT ALL - 15 + - - col2 FROM tab0
----
-5
32
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4900
SELECT DISTINCT CAST( 82 AS SIGNED ) FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-4900
SELECT DISTINCT CAST ( 82 AS INTEGER ) FROM tab2
----
82

query I rowsort
SELECT ALL + 89 + col1 AS col1 FROM tab2
----
140
156
166

onlyif mysql # DIV for integer division: 
query I rowsort label-4902
SELECT - 32 DIV col1 + + col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4902
SELECT - 32 / col1 + + col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4903
SELECT + col1 + + col1 + - col2 DIV + 56 FROM tab2 AS cor0
----
102
133
154

skipif mysql # not compatible
query I rowsort label-4903
SELECT + col1 + + col1 + - col2 / + 56 FROM tab2 AS cor0
----
102
133
154

query I rowsort
SELECT ALL + 57 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

onlyif mysql # DIV for integer division: 
query I rowsort label-4905
SELECT ALL - col1 DIV + col1 + + col2 FROM tab1
----
58
67
95

skipif mysql # not compatible
query I rowsort label-4905
SELECT ALL - col1 / + col1 + + col2 FROM tab1
----
58
67
95

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col0 * + 52 + - - col1 * - 35 FROM tab1
----
2162
3087
4245

query I rowsort
SELECT DISTINCT - 60 AS col2 FROM tab2 WHERE + col0 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT + 38 <> 48 )
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT - col1 * 15 FROM tab0
----
-1215
-15
-315

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) + - - ( + 22 ) - + + ( col0 ) * + col1 + - ( + col1 ) col2 FROM tab2 AS cor0
----
-2352
-4943
-5012

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + col1 <> NULL
----

query I rowsort
SELECT ALL - - 82 - - col0 * + col1 FROM tab1 AS cor0
----
4359
507
796

query I rowsort
SELECT + AVG ( + col1 ) FROM tab0 AS cor0 WHERE 83 >= 87 + col1 * + col1
----
NULL

query I rowsort
SELECT + - col2 * 55 * - col1 FROM tab1 cor0
----
16225
175780
73920

query I rowsort
SELECT - + 98 * - col0 FROM tab1 AS cor0
----
4998
8330
8918

query I rowsort
SELECT ALL col1 * - col2 * + + col1 AS col0 FROM tab2 AS cor0
----
-237160
-260362
-59823

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 < col0 * col2 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 * + - col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT + - col0 - + ( + + 41 ) + + 23 * - col2 AS col1 FROM tab0 AS cor0
----
-1137
-2415
-358

query I rowsort
SELECT + 11 - + col1 AS col1 FROM tab1
----
-3
-36
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT DISTINCT - 82 + COUNT( * ) FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-4922
SELECT DISTINCT - 82 + COUNT ( * ) FROM tab2
----
-79

query I rowsort
SELECT + + col0 FROM tab2 WHERE + + col1 * - + col1 + - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4924
SELECT DISTINCT col1 * CAST( col0 AS SIGNED ) * + + col2 AS col1 FROM tab2
----
197120
291450
53958

skipif mysql # not compatible
query I rowsort label-4924
SELECT DISTINCT col1 * CAST ( col0 AS INTEGER ) * + + col2 AS col1 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-4925
SELECT ALL - 73 * + + COUNT( * ) AS col0 FROM tab2
----
-219

skipif mysql # not compatible
query I rowsort label-4925
SELECT ALL - 73 * + + COUNT ( * ) AS col0 FROM tab2
----
-219

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 + - + col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 > 12 * + + 42
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 23 AS col0, - 38 FROM tab1 AS cor0
----
23
-38
23
-38
23
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT + SUM( DISTINCT - 26 ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-4929
SELECT + SUM ( DISTINCT - 26 ) FROM tab2
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-4930
SELECT DISTINCT + 51 DIV + + col2 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4930
SELECT DISTINCT + 51 / + + col2 col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT ALL 98 * MAX( - + col1 ) * + COUNT( DISTINCT - col1 ) - + 52 * ( + SUM( - ( - - col0 ) ) ) FROM tab2
----
-5374

skipif mysql # not compatible
query I rowsort label-4931
SELECT ALL 98 * MAX ( - + col1 ) * + COUNT ( DISTINCT - col1 ) - + 52 * ( + SUM ( - ( - - col0 ) ) ) FROM tab2
----
-5374

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 21 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4933
SELECT + col0 DIV 40 AS col0 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4933
SELECT + col0 / 40 AS col0 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT - SUM( 91 ) FROM tab1 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-4934
SELECT - SUM ( 91 ) FROM tab1 AS cor0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-4935
SELECT ALL - COUNT( * ) * - 29 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-4935
SELECT ALL - COUNT ( * ) * - 29 FROM tab0 AS cor0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4936
SELECT - col1 DIV + 85 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4936
SELECT - col1 / + 85 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * + 65 FROM tab0 AS cor0 WHERE NOT NULL <> 55 * - - col1
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN 40 AND NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT - 35 * - col0 * - 8 + - col1 IS NOT NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab0 cor0 WHERE NOT - col2 BETWEEN + + col0 AND NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4941
SELECT DISTINCT 54 DIV - 46 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4941
SELECT DISTINCT 54 / - 46 FROM tab0 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4942
SELECT ALL - ( - + col0 ) DIV + col0 + 2 FROM tab2
----
3
3
3

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL - ( - + col0 ) / + col0 + 2 FROM tab2
----
3
3
3

query I rowsort
SELECT 22 + - + col1 FROM tab2
----
-29
-45
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT ( + - COUNT( * ) ) + - COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-4944
SELECT ( + - COUNT ( * ) ) + - COUNT ( * ) FROM tab2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4945
SELECT + + 80 / + 95 * 60 - - CAST( NULL AS SIGNED ) - + 88 * + - col0 FROM tab0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4945
SELECT + + 80 / + 95 * 60 - - CAST ( NULL AS INTEGER ) - + 88 * + - col0 FROM tab0 WHERE col1 IS NULL
----

query I rowsort
SELECT col1 + + - 89 + + 6 AS col2 FROM tab2
----
-16
-32
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col0 FROM tab1
----
9
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4948
SELECT ALL col1 * col2 + + CAST( NULL AS SIGNED ) / col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4948
SELECT ALL col1 * col2 + + CAST ( NULL AS INTEGER ) / col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - col2 - - col1 AS col2 FROM tab2 AS cor0
----
117
125
74

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( ( NULL <= NULL ) )
----

query I rowsort
SELECT DISTINCT + col0 * - col0 - + - col1 * col2 FROM tab2 AS cor0
----
-1016
-1739
-943

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + ( + col0 ) ) * + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4953
SELECT - MAX( + col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-4953
SELECT - MAX ( + col0 ) FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4954
SELECT ALL - MAX( + col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4954
SELECT ALL - MAX ( + col1 ) AS col0 FROM tab0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4955
SELECT 61 DIV col1 * + 0 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4955
SELECT 61 / col1 * + 0 AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4956
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL <> - 61 * - CAST( - ( - col0 ) AS SIGNED ) + + - col1
----
0

skipif mysql # not compatible
query I rowsort label-4956
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL <> - 61 * - CAST ( - ( - col0 ) AS INTEGER ) + + - col1
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 48 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4958
SELECT 66 * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4958
SELECT 66 * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT ALL MAX( ALL col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL MAX ( ALL col2 ) AS col1 FROM tab1
----
96

query I rowsort
SELECT - col1 + + + col2 FROM tab1 WHERE NOT + - ( + col0 ) = + 34
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT DISTINCT + - MAX( + col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT + - MAX ( + col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4962
SELECT 45 AS col1, CAST( 14 AS SIGNED ) FROM tab2 AS cor0
----
45
14
45
14
45
14

skipif mysql # not compatible
query II rowsort label-4962
SELECT 45 AS col1, CAST ( 14 AS INTEGER ) FROM tab2 AS cor0
----
45
14
45
14
45
14

onlyif mysql # aggregate syntax: 
query I rowsort label-4963
SELECT - + MIN( + 8 ) FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-4963
SELECT - + MIN ( + 8 ) FROM tab1 AS cor0
----
-8

query I rowsort
SELECT ALL 13 * - col2 AS col2 FROM tab2 AS cor0
----
-299
-520
-754

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4966
SELECT COUNT( ALL - col0 ) * + 42 FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-4966
SELECT COUNT ( ALL - col0 ) * + 42 FROM tab1 AS cor0
----
126

query I rowsort
SELECT ALL + 39 + - col0 + 2 FROM tab0
----
-46
-56
26

query I rowsort
SELECT ALL col1 + - + col0 * - 71 AS col2 FROM tab0
----
1146
6198
6888

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4969
SELECT + 9 / + 79 AS col1, col2 AS col0 FROM tab0 WHERE NULL <> col0 * - - CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-4969
SELECT + 9 / + 79 AS col1, col2 AS col0 FROM tab0 WHERE NULL <> col0 * - - CAST ( col1 AS INTEGER )
----

query II rowsort
SELECT DISTINCT + 46 * + 92 + + col2 * 95 AS col2, - 81 - + ( - 9 ) - + col1 FROM tab2
----
6417
-123
8032
-149
9742
-139

query I rowsort
SELECT ALL col2 * col1 * 71 + + 83 AS col0 FROM tab1
----
21028
226999
95507

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4972
SELECT 45 + - CAST( COUNT( col2 ) AS SIGNED ) AS col2, COUNT( * ) AS col2 FROM tab1 AS cor0
----
42
3

skipif mysql # not compatible
query II rowsort label-4972
SELECT 45 + - CAST ( COUNT ( col2 ) AS INTEGER ) AS col2, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
42
3

query I rowsort
SELECT DISTINCT - - 82 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT ALL - COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-4974
SELECT ALL - COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 - - 66 col0 FROM tab0 AS cor0
----
-21
-31
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4976
SELECT ALL - 59 / + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4976
SELECT ALL - 59 / + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 4 * 12 * col1 + - - col0 AS col1 FROM tab0 AS cor0
----
-3873
-921
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4978
SELECT DISTINCT MAX( ALL - col0 ) DIV + - SUM( + 35 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4978
SELECT DISTINCT MAX ( ALL - col0 ) / + - SUM ( + 35 ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( + col1 ) / col2 * + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( + col1 ) / col2 * + col0 IS NULL
----
3

query II rowsort
SELECT + col0 * - 61 AS col0, - col2 AS col0 FROM tab1 AS cor0
----
-3111
-96
-5185
-59
-5551
-68

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - ( - 33 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 84 AS col0 FROM tab0 AS cor0
----
-84
-84
-84

query II rowsort
SELECT ALL col2 AS col2, - col0 AS col0 FROM tab0
----
10
-87
47
-15
99
-97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 + + - col0 - - 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT ALL + MAX( DISTINCT + - col0 ) + - - COUNT( * ) - 7 * + 79 * + COUNT( * ) FROM tab2 WHERE NOT - col1 * - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL + MAX ( DISTINCT + - col0 ) + - - COUNT ( * ) - 7 * + 79 * + COUNT ( * ) FROM tab2 WHERE NOT - col1 * - col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4986
SELECT DISTINCT SUM( ALL - 10 ) FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-4986
SELECT DISTINCT SUM ( ALL - 10 ) FROM tab1
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-4987
SELECT - 58 DIV + col1 AS col0 FROM tab1
----
-1
-11
-4

skipif mysql # not compatible
query I rowsort label-4987
SELECT - 58 / + col1 AS col0 FROM tab1
----
-1
-11
-4

query II rowsort
SELECT DISTINCT + 5 AS col0, col1 * + ( col1 ) + - - 15 AS col2 FROM tab0
----
5
16
5
456
5
6576

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + ( - + 84 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2 AS col0, - col2 + - col0 * 16 * + - col1 * + col1 AS col1 FROM tab0
----
10
613862
47
1574593
99
1453

query II rowsort
SELECT + 51 AS col2, 0 FROM tab0 AS cor0
----
51
0
51
0
51
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 34 AND NULL
----

query I rowsort
SELECT DISTINCT 58 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * - 64 FROM tab1 WHERE + col1 BETWEEN ( 28 ) AND + col1 * col1
----
5824

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4995
SELECT * FROM tab1 WHERE 46 IN ( + CAST( NULL AS SIGNED ) * col1 )
----

skipif mysql # not compatible
query III rowsort label-4995
SELECT * FROM tab1 WHERE 46 IN ( + CAST ( NULL AS INTEGER ) * col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) NOT IN ( - 16 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 43 + col1 AS col1 FROM tab2
----
110
120
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + ( + 84 ) col1 FROM tab1
----
135
169
175

query I rowsort
SELECT DISTINCT col0 * - 33 FROM tab2
----
-1518
-2112
-2475

query III rowsort
SELECT * FROM tab0 WHERE 42 * col2 + - col1 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( 80 )
----

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT 33 * + 14 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT - COUNT( * ) - - 15 AS col0 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-5003
SELECT - COUNT ( * ) - - 15 AS col0 FROM tab0
----
12

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col1 - + col1 ) BETWEEN ( 60 ) AND ( + 10 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - col1 ) + + col1 * - col1 AS col0 FROM tab1
----
-210
-2256
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5006
SELECT CAST( NULL AS SIGNED ) - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT CAST ( NULL AS INTEGER ) - col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NOT - ( col1 ) BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT - ( col0 ) + + 36 FROM tab0
----
-51
-61
21

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5009
SELECT CAST( + col1 AS SIGNED ) DIV col0 + - 0 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5009
SELECT CAST ( + col1 AS INTEGER ) / col0 + - 0 FROM tab2
----
0
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5010
SELECT ( col2 ) * - 97 + 13 DIV + col0 FROM tab1
----
-5723
-6596
-9312

skipif mysql # not compatible
query I rowsort label-5010
SELECT ( col2 ) * - 97 + 13 / + col0 FROM tab1
----
-5723
-6596
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-5011
SELECT DISTINCT AVG ( ALL + col1 ) * COUNT( * ) AS col2 FROM tab2 WHERE 33 * - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5011
SELECT DISTINCT AVG ( ALL + col1 ) * COUNT ( * ) AS col2 FROM tab2 WHERE 33 * - col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT - COUNT( * ) * 93 AS col1 FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-5012
SELECT - COUNT ( * ) * 93 AS col1 FROM tab1
----
-279

query I rowsort
SELECT DISTINCT - col1 + + col0 * - 52 FROM tab0
----
-4545
-5045
-861

query I rowsort
SELECT ALL - 51 * 99 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT - COUNT( * ) + + 66 AS col2 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-5015
SELECT - COUNT ( * ) + + 66 AS col2 FROM tab1
----
63

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5016
SELECT col2 FROM tab2 WHERE NOT col0 * + col0 IN ( CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-5016
SELECT col2 FROM tab2 WHERE NOT col0 * + col0 IN ( CAST ( CAST ( NULL AS INTEGER ) AS REAL ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) - 34 col2 FROM tab1 WHERE NOT NULL BETWEEN - col0 AND + col0 * - 63
----

query I rowsort
SELECT DISTINCT 68 - col1 AS col1 FROM tab2 WHERE NOT ( 25 * + 3 ) IN ( - col2 )
----
-9
1
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5019
SELECT ( + CAST( NULL AS SIGNED ) ) * + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5019
SELECT ( + CAST ( NULL AS INTEGER ) ) * + col1 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT ALL + 19 * COUNT( * ) AS col0 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL + 19 * COUNT ( * ) AS col0 FROM tab0
----
57

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 * - col1 + - 33 > ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE col0 - - 94 < + col0 + col0 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 22 FROM tab2 WHERE NOT - col1 + col0 IS NULL
----
22

query I rowsort
SELECT DISTINCT + 77 * - col0 - + col1 FROM tab0 AS cor0
----
-1236
-6720
-7470

onlyif mysql # DIV for integer division: 
query I rowsort label-5025
SELECT - 50 DIV + col1 FROM tab0 AS cor0
----
-2
-50
0

skipif mysql # not compatible
query I rowsort label-5025
SELECT - 50 / + col1 FROM tab0 AS cor0
----
-2
-50
0

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE - col2 > + col1
----

query III rowsort
SELECT * FROM tab2 WHERE 73 < col0 + - col0
----

query I rowsort
SELECT col0 - 16 AS col0 FROM tab0
----
-1
71
81

query I rowsort
SELECT 98 + col1 FROM tab1
----
103
112
145

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col0 + + col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5031
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE CAST( NULL AS SIGNED ) > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE CAST ( NULL AS INTEGER ) > ( NULL )
----

query I rowsort
SELECT 79 / + col1 FROM tab1 AS cor0 WHERE NOT - col1 / col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 + + 73 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5035
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND col1 + CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5035
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND col1 + CAST ( col1 AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > + 12
----

query I rowsort
SELECT + 87 * + col0 FROM tab2 cor0
----
4002
5568
6525

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 + + col0 BETWEEN ( + ( + col2 ) * col1 ) AND NULL
----
-15
-87
-97

query I rowsort
SELECT - ( + + 74 ) * col2 FROM tab0
----
-3478
-7326
-740

query I rowsort
SELECT DISTINCT col1 + col2 FROM tab0 WHERE NOT ( + col2 ) IS NULL
----
100
128
31

query I rowsort
SELECT + ( - col0 ) * + col0 AS col0 FROM tab0
----
-225
-7569
-9409

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * col0 - - col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5043
SELECT ALL 37 DIV + 15 AS col0 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5043
SELECT ALL 37 / + 15 AS col0 FROM tab2
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT + COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL > col2 * - 38
----
0

skipif mysql # not compatible
query I rowsort label-5044
SELECT + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL > col2 * - 38
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT DISTINCT MIN( col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT MIN ( col0 ) FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT DISTINCT - MAX( ALL - 31 ) FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-5046
SELECT DISTINCT - MAX ( ALL - 31 ) FROM tab1 AS cor0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5047
SELECT DISTINCT + + CAST( col2 AS SIGNED ) + + 33 AS col0 FROM tab0 cor0
----
132
43
80

skipif mysql # not compatible
query I rowsort label-5047
SELECT DISTINCT + + CAST ( col2 AS INTEGER ) + + 33 AS col0 FROM tab0 cor0
----
132
43
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT - SUM( + 63 ) * - 70 FROM tab1 cor0
----
13230

skipif mysql # not compatible
query I rowsort label-5048
SELECT - SUM ( + 63 ) * - 70 FROM tab1 cor0
----
13230

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( - col2 ) ) = col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col2 FROM tab0 AS cor0
----
24
24
24

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT NULL > + + col2
----

query I rowsort
SELECT DISTINCT col1 + - 97 FROM tab1
----
-50
-83
-92

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 37 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 * 65 + - 67 * col0 AS col0 FROM tab2
----
-1255
-1587
-1688

query I rowsort
SELECT + + col1 + col0 FROM tab1 AS cor0 WHERE 60 IS NULL
----

query I rowsort
SELECT ALL col2 - - col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 47 AND col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5058
SELECT DISTINCT + col2 AS col0, - col1 + + col0 DIV col1 AS col0 FROM tab0 AS cor0
----
10
-17
47
-81
99
96

skipif mysql # not compatible
query II rowsort label-5058
SELECT DISTINCT + col2 AS col0, - col1 + + col0 / col1 AS col0 FROM tab0 AS cor0
----
10
-17
47
-81
99
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5059
SELECT - COUNT( * ) * + - COUNT( * ) col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5059
SELECT - COUNT ( * ) * + - COUNT ( * ) col1 FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5060
SELECT 96 DIV - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-5060
SELECT 96 / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-32

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 / + - col0 ) >= ( NULL )
----

query I rowsort
SELECT - 84 * + col1 FROM tab0 cor0 WHERE - 55 <= + col1
----
-1764
-6804
-84

query II rowsort
SELECT col2, + col2 AS col0 FROM tab1 cor0
----
59
59
68
68
96
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 49 ) <> ( 60 * - col2 )
----

query II rowsort
SELECT ALL + col1 * - col0, 20 AS col0 FROM tab0
----
-1215
20
-1827
20
-97
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5066
SELECT MAX( + + col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5066
SELECT MAX ( + + col1 ) AS col2 FROM tab2
----
77

query I rowsort
SELECT DISTINCT + ( col0 ) + - - col1 AS col0 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT COUNT( ALL - ( - col1 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5068
SELECT COUNT ( ALL - ( - col1 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT - MAX( ALL col2 ) - - - 87 FROM tab0
----
-186

skipif mysql # not compatible
query I rowsort label-5069
SELECT - MAX ( ALL col2 ) - - - 87 FROM tab0
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT SUM( ALL col2 ) FROM tab2 WHERE ( col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5070
SELECT SUM ( ALL col2 ) FROM tab2 WHERE ( col1 ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 83 * - col0 + - - col0 FROM tab1
----
-4182
-6970
-7462

query I rowsort
SELECT 89 * + col2 + col0 FROM tab1
----
5336
6143
8595

query I rowsort
SELECT DISTINCT + col1 - - col1 * - col0 AS col2 FROM tab2 AS cor0
----
-2295
-4851
-4958

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - col0 + - 57 * + col2
----

query I rowsort
SELECT - 64 FROM tab1 AS cor0 WHERE NULL BETWEEN 34 AND NULL
----

query I rowsort
SELECT 55 + + col1 FROM tab0 AS cor0
----
136
56
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT ALL + - ( + COUNT( * ) ) * - 48 AS col1 FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-5077
SELECT ALL + - ( + COUNT ( * ) ) * - 48 AS col1 FROM tab1 AS cor0
----
144

query I rowsort
SELECT ( - + 64 ) AS col0 FROM tab0 AS cor0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT col2 - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT + 85 + + col0 * + col2 <> + col1 )
----
0

query I rowsort
SELECT DISTINCT ( - + col1 ) * - - col1 - + col0 - 78 FROM tab0
----
-176
-606
-6654

query I rowsort
SELECT DISTINCT - + 25 * + - 24 FROM tab2 AS cor0
----
600

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT MAX( - col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5082
SELECT MAX ( - col2 ) AS col1 FROM tab1 AS cor0
----
-59

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL > ( - col2 )
----

query I rowsort
SELECT - ( + + col1 ) * + + ( + + col1 ) AS col1 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT ALL 70 * - - 96 FROM tab1 cor0
----
6720
6720
6720

query I rowsort
SELECT ( - - 37 ) AS col1 FROM tab2 AS cor0
----
37
37
37

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT - 63 + - col2 > col1
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5088
SELECT DISTINCT + ( + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5088
SELECT DISTINCT + ( + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + + col1 NOT IN ( + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5090
SELECT DISTINCT - COUNT( * ) DIV + + COUNT( * ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5090
SELECT DISTINCT - COUNT ( * ) / + + COUNT ( * ) AS col0 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT ALL - MAX( - ( + col2 ) ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL - MAX ( - ( + col2 ) ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT - + COUNT( * ) FROM tab2 WHERE NOT ( NOT - col1 > NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5092
SELECT - + COUNT ( * ) FROM tab2 WHERE NOT ( NOT - col1 > NULL )
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( col0 - - 66, + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + col0 col1 FROM tab1
----
-425
-4277
-714

query II rowsort
SELECT DISTINCT col2, - ( col0 ) FROM tab1
----
59
-85
68
-91
96
-51

query I rowsort
SELECT DISTINCT col2 FROM tab1 cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT ALL + COUNT( - col0 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5097
SELECT ALL + COUNT ( - col0 ) col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 97 NOT BETWEEN NULL AND ( + 10 * + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5099
SELECT + 31 DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5099
SELECT + 31 / + col0 FROM tab1
----
0
0
0

query II rowsort
SELECT + ( + col1 ), col2 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT - 76 AS col0 FROM tab0 cor0 WHERE NULL <> - 50 * 36
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT 38 + col2 * - col0 + - - col1 NOT BETWEEN col0 - 92 * 25 AND ( + col1 ) )
----
64
77
40
75
67
58

query I rowsort
SELECT DISTINCT col2 + col0 * + 36 FROM tab2 AS cor0 WHERE NOT ( NOT - 64 IN ( + - col0, col2 + col0 ) )
----
2344

query II rowsort
SELECT + + col2 + + 27 + + 69 AS col0, - col2 FROM tab0 AS cor0
----
106
-10
143
-47
195
-99

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab2 AS cor0 WHERE NOT col2 + - 26 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5106
SELECT - CAST( NULL AS SIGNED ) + - 66 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5106
SELECT - CAST ( NULL AS INTEGER ) + - 66 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 37 * - - 92 AS col1 FROM tab0
----
-3404
-3404
-3404

query II rowsort
SELECT + col2 AS col2, - 68 FROM tab2
----
23
-68
40
-68
58
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5109
SELECT - + CAST( - - col0 AS SIGNED ) FROM tab1 WHERE ( NULL ) >= - col1
----

skipif mysql # not compatible
query I rowsort label-5109
SELECT - + CAST ( - - col0 AS INTEGER ) FROM tab1 WHERE ( NULL ) >= - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5110
SELECT + + COUNT( ALL - 80 ) * - COUNT( * ) AS col2, COUNT( * ) * + - COUNT( ALL 4 ) col1 FROM tab1 WHERE NULL = - col2
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5110
SELECT + + COUNT ( ALL - 80 ) * - COUNT ( * ) AS col2, COUNT ( * ) * + - COUNT ( ALL 4 ) col1 FROM tab1 WHERE NULL = - col2
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT DISTINCT - MAX( col0 ) FROM tab0 WHERE + 78 + + + col1 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5111
SELECT DISTINCT - MAX ( col0 ) FROM tab0 WHERE + 78 + + + col1 <> NULL
----
NULL

query I rowsort
SELECT DISTINCT - col2 * - 79 FROM tab0 AS cor0
----
3713
7821
790

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT COUNT( * ) - + + 5 AS col1 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5113
SELECT COUNT ( * ) - + + 5 AS col1 FROM tab2 AS cor0
----
-2

query I rowsort
SELECT ( - 29 ) FROM tab0 cor0
----
-29
-29
-29

query I rowsort
SELECT ALL ( 41 ) FROM tab0
----
41
41
41

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * + + col0 + - - 59 * + - col2 + - col2 + + col2 * - - col0 * col0 < col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( col2 * - col1 * + + 2 ) NOT BETWEEN 67 / col2 + + col0 AND - 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5118
SELECT ALL + MAX( DISTINCT - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL + MAX ( DISTINCT - col2 ) FROM tab1 AS cor0
----
-59

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 16 + + 56 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5120
SELECT ALL + - col1 DIV - + col2 AS col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5120
SELECT ALL + - col1 / - + col2 AS col2 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5121
SELECT ALL + CAST( NULL AS SIGNED ) * - 91 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5121
SELECT ALL + CAST ( NULL AS INTEGER ) * - 91 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5122
SELECT - 43 * - MIN( DISTINCT + 34 ) FROM tab2
----
1462

skipif mysql # not compatible
query I rowsort label-5122
SELECT - 43 * - MIN ( DISTINCT + 34 ) FROM tab2
----
1462

query II rowsort
SELECT DISTINCT + 77, 9 AS col0 FROM tab2
----
77
9

query I rowsort
SELECT + col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 WHERE NOT - 20 - - 68 > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT + SUM( + 68 ) AS col0 FROM tab1 cor0
----
204

skipif mysql # not compatible
query I rowsort label-5126
SELECT + SUM ( + 68 ) AS col0 FROM tab1 cor0
----
204

query I rowsort
SELECT - col2 AS col0 FROM tab0 cor0 WHERE NULL BETWEEN 34 * - col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5128
SELECT DISTINCT - 38 * - COUNT( * ) * CAST( - SUM( ALL col2 ) AS SIGNED ) + COUNT( * ) + 35 FROM tab2 AS cor0
----
-13756

skipif mysql # not compatible
query I rowsort label-5128
SELECT DISTINCT - 38 * - COUNT ( * ) * CAST ( - SUM ( ALL col2 ) AS INTEGER ) + COUNT ( * ) + 35 FROM tab2 AS cor0
----
-13756

onlyif mysql # DIV for integer division: 
query I rowsort label-5129
SELECT col2 * col1 DIV col0 + + col2 + col2 + col2 * 35 col0 FROM tab2 AS cor0
----
1528
2197
876

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5129
SELECT col2 * col1 / col0 + + col2 + col2 + col2 * 35 col0 FROM tab2 AS cor0
----
1528
2197
876

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 7 / 95 + + - 27 * col1 * - 79 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5131
SELECT col0 + - - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5131
SELECT col0 + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 83 * + col0 * + col0 * - 5 + 41 AS col1 FROM tab0
----
-3141094
-3904694
-93334

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5133
SELECT SUM( + CAST( - col1 AS SIGNED ) ) DIV - - 52 col0 FROM tab2 WHERE - 84 <= + col2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5133
SELECT SUM ( + CAST ( - col1 AS INTEGER ) ) / - - 52 col0 FROM tab2 WHERE - 84 <= + col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT DISTINCT COUNT( * ) * 65 + COUNT( * ) - COUNT( * ) * + + COUNT( * ) FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-5134
SELECT DISTINCT COUNT ( * ) * 65 + COUNT ( * ) - COUNT ( * ) * + + COUNT ( * ) FROM tab1
----
189

onlyif mysql # aggregate syntax: 
query II rowsort label-5135
SELECT - COUNT( * ), + 20 col2 FROM tab0 AS cor0
----
-3
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5135
SELECT - COUNT ( * ), + 20 col2 FROM tab0 AS cor0
----
-3
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5136
SELECT + MAX( - col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5136
SELECT + MAX ( - col2 ) AS col1 FROM tab1 AS cor0
----
-59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN + col0 - - col0 AND - 25
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5138
SELECT + 33 DIV + COUNT( * ) AS col0 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-5138
SELECT + 33 / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-5139
SELECT ALL 43 DIV - 82 * 44 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL 43 / - 82 * 44 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5140
SELECT + + ( - + 39 ) DIV col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5140
SELECT + + ( - + 39 ) / col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5141
SELECT + + ( + col0 ) - - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5141
SELECT + + ( + col0 ) - - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 2 * - 65 - - + col2 * + 50 AS col0 FROM tab2
----
1020
1870
2770

query III rowsort
SELECT * FROM tab1 WHERE ( ( - col1 BETWEEN NULL AND NULL ) )
----

query III rowsort
SELECT * FROM tab2 WHERE col1 + + 40 > NULL
----

query I rowsort
SELECT 90 + + - col1 FROM tab1
----
43
76
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5146
SELECT ALL * FROM tab1 AS cor0 WHERE + 3 IS NULL OR CAST( + col1 AS SIGNED ) IS NULL AND NULL <> NULL
----

skipif mysql # not compatible
query III rowsort label-5146
SELECT ALL * FROM tab1 AS cor0 WHERE + 3 IS NULL OR CAST ( + col1 AS INTEGER ) IS NULL AND NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT - + ( + + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5147
SELECT - + ( + + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - + 88 + + 56 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5149
SELECT ALL MAX( + CAST( NULL AS SIGNED ) ) * - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5149
SELECT ALL MAX ( + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 * + + col2 FROM tab2
----
1600
3364
529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5151
SELECT ALL - COUNT( * ) * + 44 * CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2 cor0 WHERE ( NOT NULL IS NOT NULL )
----
-396

skipif mysql # not compatible
query I rowsort label-5151
SELECT ALL - COUNT ( * ) * + 44 * CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 cor0 WHERE ( NOT NULL IS NOT NULL )
----
-396

query II rowsort
SELECT ALL - + col0 AS col2, col0 * col0 FROM tab1 AS cor0
----
-51
2601
-85
7225
-91
8281

query II rowsort
SELECT - - col0, ( + + col1 ) FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5154
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * + CAST( NULL AS DECIMAL ) + + - 57 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5154
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * + CAST ( NULL AS REAL ) + + - 57 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 * - col2 - - 49 NOT BETWEEN NULL AND + 34
----

query I rowsort
SELECT - - col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5157
SELECT ALL + CAST( NULL AS SIGNED ) + + 44 AS col2, + 90 AS col1 FROM tab0
----
NULL
90
NULL
90
NULL
90

skipif mysql # not compatible
query II rowsort label-5157
SELECT ALL + CAST ( NULL AS INTEGER ) + + 44 AS col2, + 90 AS col1 FROM tab0
----
NULL
90
NULL
90
NULL
90

query I rowsort
SELECT + 58 + + ( - 55 ) AS col1 FROM tab1
----
3
3
3

query I rowsort
SELECT DISTINCT - col0 * - - 68 * + + col2 FROM tab2
----
-174080
-295800
-71944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5160
SELECT ALL col0 * - + col1 * - CAST( CAST( + col1 AS SIGNED ) AS SIGNED ) col0 FROM tab2
----
119646
336675
379456

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5160
SELECT ALL col0 * - + col1 * - CAST ( CAST ( + col1 AS INTEGER ) AS INTEGER ) col0 FROM tab2
----
119646
336675
379456

query I rowsort
SELECT DISTINCT + 47 + - + col1 FROM tab2
----
-20
-30
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT COUNT( * ) + + - SUM( + col0 ) * + 66 AS col2 FROM tab1
----
-14979

skipif mysql # not compatible
query I rowsort label-5162
SELECT COUNT ( * ) + + - SUM ( + col0 ) * + 66 AS col2 FROM tab1
----
-14979

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 2 + + col1 * + col2 col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + 80, col1 AS col1 FROM tab2
----
80
51
80
67
80
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT DISTINCT 44 + + - COUNT( ALL + - col0 ) col2 FROM tab1
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5165
SELECT DISTINCT 44 + + - COUNT ( ALL + - col0 ) col2 FROM tab1
----
41

query I rowsort
SELECT + col0 + + col1 + + + 7 * + + col1 * - 9 AS col2 FROM tab0
----
-1215
-5007
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5167
SELECT - CAST( + CAST( COUNT( * ) AS SIGNED ) AS SIGNED ) col0 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-5167
SELECT - CAST ( + CAST ( COUNT ( * ) AS INTEGER ) AS INTEGER ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5168
SELECT DISTINCT - 6 FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( + + col0 / + - 67, + 60 * CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5168
SELECT DISTINCT - 6 FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( + + col0 / + - 67, + 60 * CAST ( col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5169
SELECT + COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5169
SELECT + COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT COUNT( DISTINCT - - col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5170
SELECT COUNT ( DISTINCT - - col2 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5171
SELECT ALL 47 AS col0, + MIN( DISTINCT + col1 ) FROM tab0
----
47
1

skipif mysql # not compatible
query II rowsort label-5171
SELECT ALL 47 AS col0, + MIN ( DISTINCT + col1 ) FROM tab0
----
47
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5172
SELECT ALL + CAST( NULL AS SIGNED ) + - - SUM( ALL + 3 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5172
SELECT ALL + CAST ( NULL AS INTEGER ) + - - SUM ( ALL + 3 ) AS col2 FROM tab2
----
NULL

query II rowsort
SELECT col0, col0 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5174
SELECT + 63 DIV + col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5174
SELECT + 63 / + col1 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL - 81 * - 38 + - col2 * 30 FROM tab1
----
1038
1308
198

onlyif mysql # aggregate syntax: 
query II rowsort label-5176
SELECT + COUNT( * ) AS col2, COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-5176
SELECT + COUNT ( * ) AS col2, COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5177
SELECT DISTINCT + ( + - col0 ) * + - CAST( NULL AS SIGNED ) / col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5177
SELECT DISTINCT + ( + - col0 ) * + - CAST ( NULL AS INTEGER ) / col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col0, col0 col0 FROM tab0
----
15
15
87
87
97
97

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 * - 52 IS NOT NULL
----

query I rowsort
SELECT - + col2 * - col1 + - col0 * 71 FROM tab2 AS cor0
----
-1439
-1464
-2093

onlyif mysql # aggregate syntax: 
query I rowsort label-5181
SELECT - + SUM( - col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5181
SELECT - + SUM ( - col2 ) AS col2 FROM tab0 AS cor0
----
156

query I rowsort
SELECT + col1 * - + 18 FROM tab2 AS cor0
----
-1206
-1386
-918

onlyif mysql # aggregate syntax: 
query II rowsort label-5183
SELECT - 63 AS col1, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-63
-3

skipif mysql # not compatible
query II rowsort label-5183
SELECT - 63 AS col1, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-63
-3

query II rowsort
SELECT + col0 AS col2, - 58 + + col1 FROM tab0 cor0
----
15
23
87
-37
97
-57

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 81 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 cor0 JOIN tab0 AS cor1 ON NOT + 2 <> NULL
----

query I rowsort
SELECT + + ( - - 41 ) AS col2 FROM tab1 AS cor0
----
41
41
41

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5188
SELECT + COUNT( * ) DIV + 65 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5188
SELECT + COUNT ( * ) / + 65 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 94 ) col0 FROM tab0 cor0
----
-94
-94
-94

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 13 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5191
SELECT + CAST( + 35 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-5191
SELECT + CAST ( + 35 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
35
35
35

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - 83 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col0 + + 9 FROM tab2 AS cor0
----
-37
-55
-66

query I rowsort
SELECT DISTINCT col2 * - 53 AS col2 FROM tab2
----
-1219
-2120
-3074

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5195
SELECT DISTINCT - CAST( - + col0 AS SIGNED ) - - col0 AS col1 FROM tab2 AS cor0
----
128
150
92

skipif mysql # not compatible
query I rowsort label-5195
SELECT DISTINCT - CAST ( - + col0 AS INTEGER ) - - col0 AS col1 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT ALL - + 94 AS col0 FROM tab1 AS cor0
----
-94
-94
-94

query I rowsort
SELECT col2 * - col2 - - + col2 FROM tab0 AS cor0
----
-2162
-90
-9702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5198
SELECT - 74 - - - CAST( NULL AS SIGNED ) - + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5198
SELECT - 74 - - - CAST ( NULL AS INTEGER ) - + col0 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5199
SELECT DISTINCT + - 23 * - ( - ( + 17 ) ), MAX( + col1 ) AS col2 FROM tab0 AS cor0
----
-391
81

skipif mysql # not compatible
query II rowsort label-5199
SELECT DISTINCT + - 23 * - ( - ( + 17 ) ), MAX ( + col1 ) AS col2 FROM tab0 AS cor0
----
-391
81

query I rowsort
SELECT col2 - - 50 FROM tab2 AS cor0
----
108
73
90

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - - 84 + + + col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5202
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5202
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5203
SELECT DISTINCT - - COUNT( * ) + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT + col2 / 25 = - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5203
SELECT DISTINCT - - COUNT ( * ) + CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NOT + col2 / 25 = - col2
----
NULL

query I rowsort
SELECT + + ( - 93 ) FROM tab1 AS cor0
----
-93
-93
-93

query II rowsort
SELECT DISTINCT + 83 AS col2, col2 AS col0 FROM tab1
----
83
59
83
68
83
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5206
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + + 99 * - + col1, 48 + + + col2 * + + col2 / - col1 * + CAST( - + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5206
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + + 99 * - + col1, 48 + + + col2 * + + col2 / - col1 * + CAST ( - + col0 AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - - col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab2 AS cor0 WHERE NOT ( - + col0 ) >= NULL AND NOT ( NULL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT DISTINCT + - COUNT( * ) * - 59 + - + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
522

skipif mysql # not compatible
query I rowsort label-5209
SELECT DISTINCT + - COUNT ( * ) * - 59 + - + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
522

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT ALL + SUM( ALL 56 ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
504

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL + SUM ( ALL 56 ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
504

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT 51 * + COUNT( * ) AS col0 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-5211
SELECT 51 * + COUNT ( * ) AS col0 FROM tab1
----
153

query I rowsort
SELECT DISTINCT - - col1 AS col1 FROM tab2 WHERE NOT col2 IS NULL
----
51
67
77

query I rowsort
SELECT + col1 * + col1 * + col1 AS col2 FROM tab2 AS cor0
----
132651
300763
456533

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5214
SELECT - 61 * - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT - 61 * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, col2 + - col2 col2 FROM tab1 cor0
----
-14
0
-47
0
-5
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5216
SELECT ALL + COUNT( * ) AS col1, - 89 col0 FROM tab0 AS cor0
----
3
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5216
SELECT ALL + COUNT ( * ) AS col1, - 89 col0 FROM tab0 AS cor0
----
3
-89

query II rowsort
SELECT ALL + col2, col1 * - + 17 FROM tab0 AS cor0
----
10
-357
47
-1377
99
-17

query I rowsort
SELECT + - col2 + col2 * + col0 * + 59 * 60 - 34 + - col1 + + 40 FROM tab1 AS cor0
----
17331736
17753042
21905411

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( - 48 + - col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5220
SELECT ALL * FROM tab2 WHERE + - ( CAST( NULL AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5220
SELECT ALL * FROM tab2 WHERE + - ( CAST ( NULL AS REAL ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + col1 * - col2 AS col2 FROM tab0
----
-189
-3726
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT + 12 + - - COUNT( * ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5222
SELECT + 12 + - - COUNT ( * ) AS col0 FROM tab0
----
15

query I rowsort
SELECT 63 + + 8 * - col1 FROM tab2
----
-345
-473
-553

query I rowsort
SELECT DISTINCT 99 * + + col1 + + col2 + - + col2 FROM tab0
----
2079
8019
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT + COUNT( DISTINCT - - col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5225
SELECT + COUNT ( DISTINCT - - col1 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT DISTINCT + 51 + MIN( + col0 ) AS col1 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-5226
SELECT DISTINCT + 51 + MIN ( + col0 ) AS col1 FROM tab1
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5227
SELECT DISTINCT * FROM tab1 WHERE ( - - CAST( + 60 AS SIGNED ) ) >= + 17
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5227
SELECT DISTINCT * FROM tab1 WHERE ( - - CAST ( + 60 AS INTEGER ) ) >= + 17
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5228
SELECT + COUNT( - - col1 ), COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-5228
SELECT + COUNT ( - - col1 ), COUNT ( * ) FROM tab1
----
3
3

query I rowsort
SELECT DISTINCT - col2 + - + col2 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5230
SELECT ALL - CAST( NULL AS DECIMAL ) + + 50 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5230
SELECT ALL - CAST ( NULL AS REAL ) + + 50 col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + + col1 + - + 6 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * - col2 * - - col2 + - + 26 FROM tab0
----
-1026
-103849
-970325

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE + 6 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT ALL MAX( - col1 ) - + + MIN( col1 ) AS col2 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-5234
SELECT ALL MAX ( - col1 ) - + + MIN ( col1 ) AS col2 FROM tab0 AS cor0
----
-2

query II rowsort
SELECT 8 AS col0, + 65 * - - col2 FROM tab0 AS cor0
----
8
3055
8
6435
8
650

query I rowsort
SELECT + - 78 * col0 FROM tab1 AS cor0
----
-3978
-6630
-7098

query I rowsort
SELECT ALL + 39 * - - 39 FROM tab1 AS cor0
----
1521
1521
1521

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5238
SELECT + 76 col1, CAST( NULL AS SIGNED ) + + + MAX( - 70 ) AS col2 FROM tab1 AS cor0
----
76
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5238
SELECT + 76 col1, CAST ( NULL AS INTEGER ) + + + MAX ( - 70 ) AS col2 FROM tab1 AS cor0
----
76
NULL

query I rowsort
SELECT ALL col1 * col2 * 35 AS col2 FROM tab2
----
107800
136010
41055

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 14 col0 FROM tab0
----
1134
14
294

onlyif mysql # aggregate syntax: 
query I rowsort label-5241
SELECT DISTINCT - SUM( 36 ) AS col1 FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-5241
SELECT DISTINCT - SUM ( 36 ) AS col1 FROM tab1
----
-108

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5243
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 79 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5243
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 79 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE + col1 IS NOT NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 92 * - col0 col1, ( col2 ) FROM tab2 AS cor0
----
-4232
23
-5888
40
-6900
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT + 34 * SUM( - + col1 ) FROM tab2 AS cor0
----
-6630

skipif mysql # not compatible
query I rowsort label-5246
SELECT + 34 * SUM ( - + col1 ) FROM tab2 AS cor0
----
-6630

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 = + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5248
SELECT DISTINCT - + 65 + + - col0 * col0 DIV + col2 AS col1 FROM tab2 AS cor0
----
-157
-161
-167

skipif mysql # not compatible
query I rowsort label-5248
SELECT DISTINCT - + 65 + + - col0 * col0 / + col2 AS col1 FROM tab2 AS cor0
----
-157
-161
-167

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( + col1 > ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5250
SELECT MAX( DISTINCT + - col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-5250
SELECT MAX ( DISTINCT + - col2 ) AS col2 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL + col0 * + col2 FROM tab1 WHERE NULL < + 50
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, + col1 FROM tab1
----
14
14
47
47
5
5

query III rowsort
SELECT * FROM tab1 WHERE 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5254
SELECT + COUNT( * ) * 96 AS col0 FROM tab1 WHERE NULL IS NULL
----
288

skipif mysql # not compatible
query I rowsort label-5254
SELECT + COUNT ( * ) * 96 AS col0 FROM tab1 WHERE NULL IS NULL
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5255
SELECT * FROM tab1 WHERE ( NULL ) < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5255
SELECT * FROM tab1 WHERE ( NULL ) < CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT ALL 75 + + MIN( - + 61 ) AS col2 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-5256
SELECT ALL 75 + + MIN ( - + 61 ) AS col2 FROM tab1
----
14

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col0 / 45 * + col2 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5258
SELECT ALL 42 + - CAST( - col0 AS SIGNED ) AS col2 FROM tab1
----
127
133
93

skipif mysql # not compatible
query I rowsort label-5258
SELECT ALL 42 + - CAST ( - col0 AS INTEGER ) AS col2 FROM tab1
----
127
133
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5259
SELECT DISTINCT - COUNT( + col2 ) + - 33 AS col0 FROM tab0 WHERE NOT col2 NOT BETWEEN + col1 / - + col1 AND NULL
----
-33

skipif mysql # not compatible
query I rowsort label-5259
SELECT DISTINCT - COUNT ( + col2 ) + - 33 AS col0 FROM tab0 WHERE NOT col2 NOT BETWEEN + col1 / - + col1 AND NULL
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT ALL MAX( + - 16 ) AS col2 FROM tab0 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL MAX ( + - 16 ) AS col2 FROM tab0 AS cor0
----
-16

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 + - 59
----

query II rowsort
SELECT ALL - col0, col2 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT - col0 + + ( + - 60 ) AS col1 FROM tab1 AS cor0
----
-111
-145
-151

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) + + + col1 col2 FROM tab2 cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT MIN( DISTINCT - 72 ) AS col0 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-5266
SELECT MIN ( DISTINCT - 72 ) AS col0 FROM tab2 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT DISTINCT - COUNT( * ) * 2 * - COUNT( * ) AS col1 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-5267
SELECT DISTINCT - COUNT ( * ) * 2 * - COUNT ( * ) AS col1 FROM tab0
----
18

query I rowsort
SELECT - 55 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 60 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL 24 * + col1, 11 AS col0 FROM tab1 AS cor0
----
1128
11
120
11
336
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5271
SELECT DISTINCT + 50 * + ( + col2 ) * + CAST( NULL AS SIGNED ) * 97 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5271
SELECT DISTINCT + 50 * + ( + col2 ) * + CAST ( NULL AS INTEGER ) * 97 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT - ( - + SUM( 39 ) ) FROM tab0 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-5272
SELECT - ( - + SUM ( 39 ) ) FROM tab0 AS cor0
----
117

query I rowsort
SELECT - - 67 * col0 + 36 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT - col1 * - 91 AS col0 FROM tab0
----
1911
7371
91

query I rowsort
SELECT + 0 * - 92 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 AS col1 FROM tab0 WHERE NOT col1 * 51 > col2 + col2
----
1

query I rowsort
SELECT ALL - 70 * - col2 AS col0 FROM tab0
----
3290
6930
700

query I rowsort
SELECT + col2 * + 4 AS col1 FROM tab1
----
236
272
384

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5279
SELECT col2, - CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
10
-21
47
-81
99
-1

skipif mysql # not compatible
query II rowsort label-5279
SELECT col2, - CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT - - ( ( - col0 ) ) * + col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 4 * col0 * col2 + - col2 BETWEEN col2 * col0 AND col2 + col1
----
10
47
99

query I rowsort
SELECT DISTINCT - col2 + 3 FROM tab1
----
-56
-65
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT DISTINCT 67 + - - MAX( - col2 ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-5283
SELECT DISTINCT 67 + - - MAX ( - col2 ) FROM tab1
----
8

query I rowsort
SELECT ALL + 96 * - 68 * 41 FROM tab1
----
-267648
-267648
-267648

query II rowsort
SELECT - col1 + 34 AS col1, col1 AS col1 FROM tab2 AS cor0
----
-17
51
-33
67
-43
77

query I rowsort
SELECT ALL - - 53 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL AND NOT - 76 * - col0 IS NULL
----
53
53
53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5287
SELECT ALL MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) / + 55 + + + 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-5287
SELECT ALL MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) / + 55 + + + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT COUNT( * ) + + - MAX( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5288
SELECT COUNT ( * ) + + - MAX ( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5289
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + + ( + CAST( col0 AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-5289
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN + + ( + CAST ( col0 AS INTEGER ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT DISTINCT + 2 + + COUNT( - col1 ) - + - ( - - 73 ) AS col0 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-5290
SELECT DISTINCT + 2 + + COUNT ( - col1 ) - + - ( - - 73 ) AS col0 FROM tab2
----
78

query I rowsort
SELECT + col0 FROM tab1 WHERE ( + col2 = + 45 )
----

query I rowsort
SELECT DISTINCT col0 + - + col1 AS col0 FROM tab1
----
37
44
80

query II rowsort
SELECT + col2, col1 AS col0 FROM tab2
----
23
51
40
77
58
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - + col1 col0 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT DISTINCT + + 72 AS col1 FROM tab1 cor0
----
72

query I rowsort
SELECT DISTINCT - 92 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 WHERE NOT - col2 * ( + 96 ) * - col2 + + col1 + - col2 IS NULL AND NULL IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5298
SELECT ALL + + col1 FROM tab2 AS cor0 WHERE + col2 * + - col1 - CAST( NULL AS SIGNED ) + - col1 >= + ( + + 67 ) + - col0
----

skipif mysql # not compatible
query I rowsort label-5298
SELECT ALL + + col1 FROM tab2 AS cor0 WHERE + col2 * + - col1 - CAST ( NULL AS INTEGER ) + - col1 >= + ( + + 67 ) + - col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 - + col2 + - 43 ) < 44
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5300
SELECT ALL COUNT( * ) AS col1, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5300
SELECT ALL COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
3
NULL

query II rowsort
SELECT - ( + 4 ), + col2 AS col2 FROM tab2 AS cor0
----
-4
23
-4
40
-4
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5302
SELECT - COUNT( * ) + - 43 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
-43

skipif mysql # not compatible
query I rowsort label-5302
SELECT - COUNT ( * ) + - 43 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
-43

query I rowsort
SELECT ALL ( + - col1 ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT - + ( ( COUNT( - 56 ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5304
SELECT - + ( ( COUNT ( - 56 ) ) ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 18 IS NOT NULL
----

query II rowsort
SELECT + - col2 AS col1, + col0 AS col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT + 92 * + 75 AS col0 FROM tab2 AS cor0
----
6900
6900
6900

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT DISTINCT + MIN( DISTINCT + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5308
SELECT DISTINCT + MIN ( DISTINCT + col1 ) FROM tab2 AS cor0
----
51

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 50 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( + ( + - 87 ) ) FROM tab1
----
-87
-87
-87

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col2 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT 18 * - MIN( DISTINCT - ( + col2 ) ) * COUNT( ALL + col2 ) AS col0 FROM tab0
----
5346

skipif mysql # not compatible
query I rowsort label-5312
SELECT 18 * - MIN ( DISTINCT - ( + col2 ) ) * COUNT ( ALL + col2 ) AS col0 FROM tab0
----
5346

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL >= + + 71
----

query I rowsort
SELECT DISTINCT ( - col0 ) + col0 FROM tab1 WHERE NOT NULL <= - 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT MAX( + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5315
SELECT MAX ( + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT ALL col2 * - + col2, + col2 FROM tab0 AS cor0
----
-100
10
-2209
47
-9801
99

query I rowsort
SELECT DISTINCT - + 78 AS col2 FROM tab0 AS cor0
----
-78

query I rowsort
SELECT DISTINCT - 39 AS col1 FROM tab2 cor0
----
-39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * + 33 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL <> 40
----

query II rowsort
SELECT 34 + col2 AS col0, + 36 * col2 AS col1 FROM tab2 AS cor0
----
57
828
74
1440
92
2088

query II rowsort
SELECT DISTINCT - - col0 + + col1, col1 FROM tab0 AS cor0
----
108
21
96
81
98
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5323
SELECT ALL 31 DIV + col0 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5323
SELECT ALL 31 / + col0 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + 73 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 2 * + col2 + - col1 - + 76 * - - 7 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT - + SUM( - - col0 ) col0 FROM tab1 cor0 WHERE + 87 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5326
SELECT - + SUM ( - - col0 ) col0 FROM tab1 cor0 WHERE + 87 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5327
SELECT DISTINCT + - col0 AS col2 FROM tab1 AS cor0 WHERE NOT - 60 * col1 * - col1 / CAST( NULL AS SIGNED ) * - col0 / - col1 >= + 28
----

skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT + - col0 AS col2 FROM tab1 AS cor0 WHERE NOT - 60 * col1 * - col1 / CAST ( NULL AS INTEGER ) * - col0 / - col1 >= + 28
----

query I rowsort
SELECT + col0 * - - col0 AS col2 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT ALL - - col0 - col0 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5330
SELECT ALL - + MAX( ( - col2 ) ) col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5330
SELECT ALL - + MAX ( ( - col2 ) ) col0 FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL 70 + + 6 FROM tab2 AS cor0
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT + MAX( ALL + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5332
SELECT + MAX ( ALL + col1 ) FROM tab2 AS cor0
----
77

query II rowsort
SELECT - col2, + 84 AS col2 FROM tab1 AS cor0
----
-59
84
-68
84
-96
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5334
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( + - CAST( + + col2 AS SIGNED ) ) * + col1 + + + 3 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5334
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( + - CAST ( + + col2 AS INTEGER ) ) * + col1 + + + 3 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT ALL - COUNT( * ) + + 61 AS col2 FROM tab0 AS cor0 WHERE 40 IS NULL
----
61

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL - COUNT ( * ) + + 61 AS col2 FROM tab0 AS cor0 WHERE 40 IS NULL
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-5336
SELECT ALL 63 * col2 + - + ( - - col2 ) DIV + col1 FROM tab0
----
2961
6138
630

skipif mysql # not compatible
query I rowsort label-5336
SELECT ALL 63 * col2 + - + ( - - col2 ) / + col1 FROM tab0
----
2961
6138
630

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT COUNT( * ) - 26 AS col0 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-5337
SELECT COUNT ( * ) - 26 AS col0 FROM tab0
----
-23

query I rowsort
SELECT DISTINCT ( - - 41 ) + col2 FROM tab0
----
140
51
88

query III rowsort
SELECT * FROM tab1 WHERE + col0 NOT BETWEEN NULL AND 32
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 + - col1 * - ( - + 5 ) FROM tab1
----
-188
-20
-56

query I rowsort
SELECT col0 * + - 55 * + + col1 + - col1 * + col0 FROM tab2
----
-131376
-275968
-281400

onlyif mysql # DIV for integer division: 
query I rowsort label-5342
SELECT DISTINCT + col2 DIV + - col1 - + + 48 - - - col0 col2 FROM tab2 AS cor0
----
-112
-123
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5342
SELECT DISTINCT + col2 / + - col1 - + + 48 - - - col0 col2 FROM tab2 AS cor0
----
-112
-123
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5343
SELECT - MIN( + col2 ) DIV + 70 col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5343
SELECT - MIN ( + col2 ) / + 70 col2 FROM tab0
----
0

query I rowsort
SELECT - col0 * - + col2 AS col1 FROM tab2 cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query II rowsort label-5345
SELECT ALL - 49, + COUNT( * ) AS col1 FROM tab0
----
-49
3

skipif mysql # not compatible
query II rowsort label-5345
SELECT ALL - 49, + COUNT ( * ) AS col1 FROM tab0
----
-49
3

query I rowsort
SELECT DISTINCT col0 + + col2 - - col2 AS col1 FROM tab1
----
203
227
243

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + - + col2 + + + col2 - col1 col0, col1 FROM tab2
----
-102
51
-134
67
-154
77

query II rowsort
SELECT DISTINCT + col1 AS col2, col1 AS col2 FROM tab2
----
51
51
67
67
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 39 col0 FROM tab2 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT DISTINCT - + COUNT( * ) + - - 56 AS col0 FROM tab1 cor0
----
53

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT - + COUNT ( * ) + - - 56 AS col0 FROM tab1 cor0
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + col1 + + + 76 * - 92 * col2 * - col2 col2 FROM tab0
----
15445424
68528690
699308

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5352
SELECT ALL col1 * - CAST( NULL AS SIGNED ) + + + col2 + - 64 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5352
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) + + + col2 + - 64 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT + col0 + + col2 * - col1 * + col1 AS col2 FROM tab2 AS cor0
----
-237096
-260287
-59777

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5355
SELECT ALL + - CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5355
SELECT ALL + - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5356
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT NULL BETWEEN + + CAST( NULL AS DECIMAL ) AND NULL )
----

skipif mysql # not compatible
query III rowsort label-5356
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT NULL BETWEEN + + CAST ( NULL AS REAL ) AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-5357
SELECT ALL - col0 DIV 99 + col0 col1, - CAST( NULL AS SIGNED ), ( + 27 ) AS col0 FROM tab0
----
9 values hashing to 1f47f912fd73a20b438b6253df99fec7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5357
SELECT ALL - col0 / 99 + col0 col1, - CAST ( NULL AS INTEGER ), ( + 27 ) AS col0 FROM tab0
----
9 values hashing to 1f47f912fd73a20b438b6253df99fec7

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT + 93 * - COUNT( * ) col2 FROM tab2
----
-279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5358
SELECT + 93 * - COUNT ( * ) col2 FROM tab2
----
-279

query I rowsort
SELECT ALL - 80 + - col2 + 51 * - col2 AS col0 FROM tab0
----
-2524
-5228
-600

query III rowsort
SELECT * FROM tab1 WHERE - 76 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 97 + col1 FROM tab1
----
-50
-83
-92

query I rowsort
SELECT - ( + 15 ) AS col2 FROM tab0 AS cor0
----
-15
-15
-15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 71 / + 41 IS NULL AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + 64 * - col2 FROM tab1 AS cor0
----
-3776
-4352
-6144

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT - - ( - MAX( ALL - 15 ) ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
15

skipif mysql # not compatible
query I rowsort label-5365
SELECT - - ( - MAX ( ALL - 15 ) ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
15

query I rowsort
SELECT ALL + ( + + col1 ) AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT + 69 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5368
SELECT ALL COUNT( * ) DIV 37 * + - MIN( DISTINCT + col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5368
SELECT ALL COUNT ( * ) / 37 * + - MIN ( DISTINCT + col1 ) FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col1 col1 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT + + 73 AS col2 FROM tab2 AS cor0
----
73
73
73

query I rowsort
SELECT ( - - 84 ) FROM tab0 AS cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT SUM( ALL + - ( + 90 ) ) col2 FROM tab0
----
-270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5372
SELECT SUM ( ALL + - ( + 90 ) ) col2 FROM tab0
----
-270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - col2 ) * col1 + + - col1 * 51 col1, col1 FROM tab1
----
-2058
14
-550
5
-5593
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5374
SELECT MAX( - 88 ) FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-5374
SELECT MAX ( - 88 ) FROM tab0
----
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col0 FROM tab1
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5376
SELECT DISTINCT * FROM tab0 WHERE ( + CAST( + col0 AS SIGNED ) ) = NULL
----

skipif mysql # not compatible
query III rowsort label-5376
SELECT DISTINCT * FROM tab0 WHERE ( + CAST ( + col0 AS INTEGER ) ) = NULL
----

query I rowsort
SELECT + col2 * col0 * - - col2 FROM tab0
----
33135
8700
950697

query III rowsort
SELECT * FROM tab1 WHERE + col0 + - + 44 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE + 88 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + + + col2 FROM tab2 cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5381
SELECT DISTINCT - MIN( DISTINCT col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5381
SELECT DISTINCT - MIN ( DISTINCT col0 ) FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-5382
SELECT DISTINCT - COUNT( - col1 ) AS col2, + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE - col0 + - col2 + - 32 NOT IN ( 68, - col0 )
----
-3
3

skipif mysql # not compatible
query II rowsort label-5382
SELECT DISTINCT - COUNT ( - col1 ) AS col2, + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE - col0 + - col2 + - 32 NOT IN ( 68, - col0 )
----
-3
3

query I rowsort
SELECT 46 + - col0 + + - 50 FROM tab1
----
-55
-89
-95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5384
SELECT DISTINCT COUNT( * ) + + CAST( - + COUNT( * ) AS SIGNED ) - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT COUNT ( * ) + + CAST ( - + COUNT ( * ) AS INTEGER ) - COUNT ( * ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + - ( - 12 ) - - col1 FROM tab1 AS cor0
----
17
26
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5386
SELECT - + col2 AS col2, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-5386
SELECT - + col2 AS col2, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

query I rowsort
SELECT - 30 * + 38 FROM tab2 AS cor0
----
-1140
-1140
-1140

query I rowsort
SELECT col2 - - col0 - + 28 AS col1 FROM tab0 AS cor0
----
168
34
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT ALL + - 59 - - 99 * + MIN( DISTINCT - - col0 ) * - MIN( col1 ) + + 28 col2 FROM tab2 AS cor0
----
-232285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5389
SELECT ALL + - 59 - - 99 * + MIN ( DISTINCT - - col0 ) * - MIN ( col1 ) + + 28 col2 FROM tab2 AS cor0
----
-232285

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5390
SELECT COUNT( * ) - + CAST( NULL AS SIGNED ) + + + COUNT( * ) * + + 40 * - 9 col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5390
SELECT COUNT ( * ) - + CAST ( NULL AS INTEGER ) + + + COUNT ( * ) * + + 40 * - 9 col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 * col1 * - col0 AS col2 FROM tab0
----
158949
18225
9409

query III rowsort
SELECT * FROM tab0 WHERE NOT 88 BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5393
SELECT DISTINCT - MAX( ALL col1 ) FROM tab1 WHERE NOT ( - col2 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5393
SELECT DISTINCT - MAX ( ALL col1 ) FROM tab1 WHERE NOT ( - col2 ) < NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - 12 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT ALL + COUNT( DISTINCT + col1 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5395
SELECT ALL + COUNT ( DISTINCT + col1 ) col0 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 70 + col0 + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT ALL COUNT( * ) * + 30 col1 FROM tab2
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5397
SELECT ALL COUNT ( * ) * + 30 col1 FROM tab2
----
90

query I rowsort
SELECT DISTINCT - ( 2 ) * + col1 AS col2 FROM tab2 AS cor0
----
-102
-134
-154

query II rowsort
SELECT - col2, - 21 + col0 AS col1 FROM tab1
----
-59
64
-68
70
-96
30

query I rowsort
SELECT ALL - col0 + + col0 FROM tab2 WHERE NOT NULL <> ( col1 * col0 + - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT - SUM( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5401
SELECT - SUM ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-195

query II rowsort
SELECT ALL col1, col0 + + ( col0 ) AS col0 FROM tab0 AS cor0
----
1
194
21
174
81
30

query II rowsort
SELECT - col0 * + col2 * + col1, 4 AS col2 FROM tab1 AS cor0
----
-25075
4
-290836
4
-68544
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT DISTINCT - - ( + COUNT( * ) ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5404
SELECT DISTINCT - - ( + COUNT ( * ) ) col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 51 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + - col1 ) * + - col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT ALL + col0 * - + 77 AS col1 FROM tab1 AS cor0
----
-3927
-6545
-7007

query I rowsort
SELECT DISTINCT - col2 * - 64 AS col0 FROM tab0 AS cor0
----
3008
6336
640

query I rowsort
SELECT DISTINCT + + col2 * - col2 AS col0 FROM tab0 cor0
----
-100
-2209
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-5410
SELECT ALL - col0 DIV - 77 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5410
SELECT ALL - col0 / - 77 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE 61 >= NULL
----

query I rowsort
SELECT ALL + col1 + + col0 - col1 AS col1 FROM tab2
----
46
64
75

query I rowsort
SELECT + col1 * col0 + - + 5 FROM tab2
----
2341
4923
5020

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT DISTINCT + COUNT( + col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5414
SELECT DISTINCT + COUNT ( + col0 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5415
SELECT + SUM( + + col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5415
SELECT + SUM ( + + col1 ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5416
SELECT COUNT( * ) * - MAX( ALL + + col0 ) FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-5416
SELECT COUNT ( * ) * - MAX ( ALL + + col0 ) FROM tab0
----
-291

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - - col0 * + - col1 col1 FROM tab1
----
36125
36414
389207

query I rowsort
SELECT ALL - col2 * 4 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 59 >= - col1 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT ALL - ( SUM( + col1 ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5420
SELECT ALL - ( SUM ( + col1 ) ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT 15 - - COUNT( * ) col2 FROM tab1
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5421
SELECT 15 - - COUNT ( * ) col2 FROM tab1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT ALL 11 * + ( + SUM( DISTINCT col0 ) ) + - MIN( DISTINCT - col0 ) FROM tab0
----
2286

skipif mysql # not compatible
query I rowsort label-5422
SELECT ALL 11 * + ( + SUM ( DISTINCT col0 ) ) + - MIN ( DISTINCT - col0 ) FROM tab0
----
2286

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT - + COUNT( * ) - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-5423
SELECT - + COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

query I rowsort
SELECT + col1 + + 90 FROM tab1
----
104
137
95

query I rowsort
SELECT ALL 13 - - + col0 + + col2 * + col0 + - - col1 AS col1 FROM tab0 AS cor0
----
814
9714
991

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT MIN( DISTINCT - 34 ) FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-5426
SELECT MIN ( DISTINCT - 34 ) FROM tab0 AS cor0
----
-34

query I rowsort
SELECT col0 * col0 * + 99 AS col0 FROM tab1
----
257499
715275
819819

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT DISTINCT + MAX( ALL col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-5428
SELECT DISTINCT + MAX ( ALL col0 ) AS col1 FROM tab0
----
97

query II rowsort
SELECT ALL - col1 AS col2, col2 FROM tab0 WHERE NOT ( + col2 ) IN ( 5 + + - col2 * + - col1, col1 )
----
-1
99
-21
10
-81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5430
SELECT ALL CAST( 72 AS SIGNED ) col2 FROM tab0
----
72
72
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5430
SELECT ALL CAST ( 72 AS INTEGER ) col2 FROM tab0
----
72
72
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 30 col2 FROM tab2
----
1380
1920
2250

query I rowsort
SELECT DISTINCT + 94 FROM tab2 WHERE NOT - - col1 <= NULL
----

query I rowsort
SELECT + 99 * col2 AS col0 FROM tab2
----
2277
3960
5742

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - 41 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5435
SELECT DISTINCT - 70 DIV - col1 AS col2 FROM tab1 AS cor0
----
1
14
5

skipif mysql # not compatible
query I rowsort label-5435
SELECT DISTINCT - 70 / - col1 AS col2 FROM tab1 AS cor0
----
1
14
5

query I rowsort
SELECT DISTINCT + 91 * - + col0 AS col1 FROM tab2
----
-4186
-5824
-6825

query I rowsort
SELECT ALL col1 * - col0 * - col1 FROM tab2
----
119646
336675
379456

query II rowsort
SELECT ALL + col2 * - 21 AS col2, - 95 FROM tab1
----
-1239
-95
-1428
-95
-2016
-95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5439
SELECT - + CAST( - col1 AS SIGNED ) col1, col2 AS col1 FROM tab1 AS cor0
----
14
96
47
68
5
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5439
SELECT - + CAST ( - col1 AS INTEGER ) col1, col2 AS col1 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT - + 65 * + + col0 * + - col2 FROM tab2 AS cor0
----
166400
282750
68770

query I rowsort
SELECT ALL col2 * + col0 + + + 91 FROM tab0 AS cor0
----
796
961
9694

query I rowsort
SELECT DISTINCT - + col0 * - + 97 AS col0 FROM tab2 AS cor0 WHERE 4 IS NULL
----

query I rowsort
SELECT ALL + col1 * + ( - ( 15 ) ) FROM tab2 cor0
----
-1005
-1155
-765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5444
SELECT - col1 * + col1 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5444
SELECT - col1 * + col1 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE 4 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5446
SELECT + + MIN( + - col0 ) AS col2 FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5446
SELECT + + MIN ( + - col0 ) AS col2 FROM tab1 cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5447
SELECT DISTINCT 30 * + col2 + 59 - ( - col2 ) * - col1 + - col2 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5447
SELECT DISTINCT 30 * + col2 + 59 - ( - col2 ) * - col1 + - col2 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query II rowsort
SELECT + 60, col2 FROM tab2
----
60
23
60
40
60
58

onlyif mysql # DIV for integer division: 
query I rowsort label-5449
SELECT DISTINCT col0 DIV + 72 col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5449
SELECT DISTINCT col0 / + 72 col1 FROM tab2 AS cor0
----
0
1

query II rowsort
SELECT + + col2 + - + col0 + + + 83 + - 53, - col2 AS col0 FROM tab0 AS cor0
----
-47
-10
32
-99
62
-47

query I rowsort
SELECT - + col0 + + 56 FROM tab1 AS cor0
----
-29
-35
5

query I rowsort
SELECT - col0 * col1 + 28 FROM tab1
----
-397
-4249
-686

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 71 < col1
----

query I rowsort
SELECT DISTINCT - col1 * 94 AS col2 FROM tab2
----
-4794
-6298
-7238

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ( COUNT( * ) ) + + 96 AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-5455
SELECT ( COUNT ( * ) ) + + 96 AS col2 FROM tab0
----
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5456
SELECT COUNT( * ) DIV COUNT( * ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5456
SELECT COUNT ( * ) / COUNT ( * ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5457
SELECT * FROM tab1 WHERE NOT NULL < ( CAST( - col0 AS SIGNED ) * col0 )
----

skipif mysql # not compatible
query III rowsort label-5457
SELECT * FROM tab1 WHERE NOT NULL < ( CAST ( - col0 AS INTEGER ) * col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 * + 20 ) NOT IN ( 57 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5459
SELECT - COUNT( * ) DIV 18 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5459
SELECT - COUNT ( * ) / 18 AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL col1 * col2 AS col2 FROM tab0 WHERE col0 NOT IN ( col2 )
----
210
3807
99

query I rowsort
SELECT 8 FROM tab0 WHERE NOT col1 NOT BETWEEN col2 + + col2 AND col0 * + col1
----
8

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NULL BETWEEN 89 AND ( col0 + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT ALL 85 * COUNT( * ) AS col2 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-5463
SELECT ALL 85 * COUNT ( * ) AS col2 FROM tab0
----
255

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 95 + 87 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5465
SELECT ALL + col1 FROM tab1 WHERE CAST( 63 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL + col1 FROM tab1 WHERE CAST ( 63 AS REAL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5466
SELECT DISTINCT + ( - ( col2 ) ) + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-5466
SELECT DISTINCT + ( - ( col2 ) ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NULL > NULL
----

query I rowsort
SELECT ( + col1 ) + col2 AS col1 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT SUM( DISTINCT + col0 ) AS col1 FROM tab2 WHERE NOT + col0 NOT IN ( col1 * - 67 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5468
SELECT SUM ( DISTINCT + col0 ) AS col1 FROM tab2 WHERE NOT + col0 NOT IN ( col1 * - 67 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5469
SELECT DISTINCT + CAST( + COUNT( * ) AS SIGNED ) + 89 col1 FROM tab1
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5469
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) + 89 col1 FROM tab1
----
92

query I rowsort
SELECT col1 FROM tab0 WHERE col0 IS NOT NULL
----
1
21
81

query I rowsort
SELECT col1 * + col0 - col2 AS col2 FROM tab2
----
2323
4888
4967

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5472
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5472
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT 30 * col0 - 43 AS col0 FROM tab2
----
1337
1877
2207

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 / ( 1 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col1 ) BETWEEN + 31 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5476
SELECT ALL + SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ALL SUM( 43 ) col1 FROM tab2
----
129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5477
SELECT ALL SUM ( 43 ) col1 FROM tab2
----
129

onlyif mysql # DIV for integer division: 
query I rowsort label-5478
SELECT - col2 DIV col2 + + 52 col1 FROM tab1
----
51
51
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5478
SELECT - col2 / col2 + + 52 col1 FROM tab1
----
51
51
51

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( + col2 ) + 30 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT + SUM( + col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5480
SELECT + SUM ( + col2 ) AS col1 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT DISTINCT + SUM( + col1 ) + 76 AS col2 FROM tab2
----
271

skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT + SUM ( + col1 ) + 76 AS col2 FROM tab2
----
271

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5482
SELECT AVG ( ALL CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5482
SELECT AVG ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT - 81 * col1 FROM tab1
----
-1134
-3807
-405

onlyif mysql # DIV for integer division: 
query I rowsort label-5484
SELECT + + 2 DIV + col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5484
SELECT + + 2 / + col0 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5485
SELECT DISTINCT - ( COUNT( * ) ) * - 52 col2 FROM tab2 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5485
SELECT DISTINCT - ( COUNT ( * ) ) * - 52 col2 FROM tab2 AS cor0
----
156

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 >= - 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5487
SELECT ALL SUM( 63 ) FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL SUM ( 63 ) FROM tab0 AS cor0
----
189

query I rowsort
SELECT col0 * col1 AS col1 FROM tab0 AS cor0 WHERE + 89 IS NOT NULL
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) col0 FROM tab0 AS cor0 WHERE NULL IN ( col0 )
----

query I rowsort
SELECT + col0 + - ( 58 + col0 * col0 ) AS col0 FROM tab0 AS cor0
----
-268
-7540
-9370

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5491
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = ( CAST( NULL AS SIGNED ) ) / 86
----

skipif mysql # not compatible
query III rowsort label-5491
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = ( CAST ( NULL AS INTEGER ) ) / 86
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5492
SELECT ALL - - col0 * - CAST( - ( 87 ) AS SIGNED ) + col0 FROM tab1 AS cor0
----
4488
7480
8008

skipif mysql # not compatible
query I rowsort label-5492
SELECT ALL - - col0 * - CAST ( - ( 87 ) AS INTEGER ) + col0 FROM tab1 AS cor0
----
4488
7480
8008

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5493
SELECT ALL + MAX( DISTINCT - col1 ) FROM tab1 AS cor0 WHERE NULL BETWEEN col1 + ( col0 ) AND ( col2 + CAST( - col0 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-5493
SELECT ALL + MAX ( DISTINCT - col1 ) FROM tab1 AS cor0 WHERE NULL BETWEEN col1 + ( col0 ) AND ( col2 + CAST ( - col0 AS INTEGER ) )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5494
SELECT DISTINCT col1 FROM tab0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT col1 FROM tab0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) = - 41
----

query I rowsort
SELECT ALL - 35 + col0 FROM tab1
----
16
50
56

query I rowsort
SELECT ALL + 29 + + + col0 * - 23 AS col2 FROM tab2
----
-1029
-1443
-1696

onlyif mysql # aggregate syntax: 
query I rowsort label-5498
SELECT MAX( ALL + 8 ) FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-5498
SELECT MAX ( ALL + 8 ) FROM tab2
----
8

query I rowsort
SELECT 21 * + col1 AS col2 FROM tab0
----
1701
21
441

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) BETWEEN ( - 37 ) AND ( - col2 - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5501
SELECT ALL - 2 - - 44 * CAST( col1 DIV - col0 AS SIGNED ) AS col1 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-5501
SELECT ALL - 2 - - 44 * CAST ( col1 / - col0 AS INTEGER ) AS col1 FROM tab1
----
-2
-2
-2

query I rowsort
SELECT ALL - col1 + + 13 FROM tab1
----
-1
-34
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5503
SELECT - + 59 DIV + col0 + + 30 - - ( 79 ) * 85 AS col1 FROM tab0 AS cor0
----
6742
6745
6745

skipif mysql # not compatible
query I rowsort label-5503
SELECT - + 59 / + col0 + + 30 - - ( 79 ) * 85 AS col1 FROM tab0 AS cor0
----
6742
6745
6745

query I rowsort
SELECT 94 - - - col1 FROM tab0 AS cor0
----
13
73
93

query I rowsort
SELECT 74 + - + col2 FROM tab0
----
-25
27
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5506
SELECT ALL - col1 * + col1 * + col2 * - CAST( col1 AS SIGNED ) AS col0 FROM tab2
----
17444254
18261320
3050973

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL - col1 * + col1 * + col2 * - CAST ( col1 AS INTEGER ) AS col0 FROM tab2
----
17444254
18261320
3050973

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 4 IS NOT NULL
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query I rowsort
SELECT DISTINCT + 29 * - + 87 FROM tab2
----
-2523

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT DISTINCT + MIN( DISTINCT + + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5510
SELECT DISTINCT + MIN ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5511
SELECT ALL + - 71 DIV - 3 AS col0 FROM tab1 AS cor0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL + - 71 / - 3 AS col0 FROM tab1 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT ALL - + MAX( ALL - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL - + MAX ( ALL - col0 ) FROM tab0 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, 74 + 52 + - col1 col2 FROM tab2 AS cor0
----
-23
75
-40
49
-58
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT DISTINCT + MIN( DISTINCT - + 49 ) FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT + MIN ( DISTINCT - + 49 ) FROM tab2 AS cor0
----
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, col2 AS col1 FROM tab2 cor0
----
46
23
64
40
75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col0, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT ALL + COUNT( * ) * COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5517
SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5518
SELECT + CAST( - - ( + col1 ) AS SIGNED ) AS col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5518
SELECT + CAST ( - - ( + col1 ) AS INTEGER ) AS col0 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5519
SELECT 50 DIV COUNT( * ) AS col0 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-5519
SELECT 50 / COUNT ( * ) AS col0 FROM tab1
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT DISTINCT + ( + COUNT( ALL - - 31 ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5520
SELECT DISTINCT + ( + COUNT ( ALL - - 31 ) ) AS col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 + + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + ( - + ( + col2 ) ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT ALL - ( - MIN( DISTINCT - col2 ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL - ( - MIN ( DISTINCT - col2 ) ) FROM tab0
----
-99

query I rowsort
SELECT ALL + col0 + + col0 FROM tab0 WHERE NOT ( col2 ) IS NULL
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT ALL + MIN( - 95 ) FROM tab1 cor0
----
-95

skipif mysql # not compatible
query I rowsort label-5526
SELECT ALL + MIN ( - 95 ) FROM tab1 cor0
----
-95

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5528
SELECT DISTINCT col2 * + col1 AS col1 FROM tab1 WHERE col2 BETWEEN ( + + 7 ) AND + CAST( col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5528
SELECT DISTINCT col2 * + col1 AS col1 FROM tab1 WHERE col2 BETWEEN ( + + 7 ) AND + CAST ( col1 AS INTEGER )
----

query I rowsort
SELECT DISTINCT 31 + - col2 AS col0 FROM tab0
----
-16
-68
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT ALL COUNT( * ) * + 11 AS col2 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL COUNT ( * ) * + 11 AS col2 FROM tab2
----
33

query I rowsort
SELECT ALL - + 25 AS col0 FROM tab0 WHERE - 85 <> col0
----
-25
-25
-25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 44 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5533
SELECT + - 25 DIV - 76 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5533
SELECT + - 25 / - 76 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT 26 * - + MAX( + 70 ) FROM tab2 AS cor0
----
-1820

skipif mysql # not compatible
query I rowsort label-5534
SELECT 26 * - + MAX ( + 70 ) FROM tab2 AS cor0
----
-1820

query I rowsort
SELECT 61 * + col0 + - col0 + 90 FROM tab2 AS cor0
----
2850
3930
4590

query I rowsort
SELECT ALL col2 + - col2 * + ( col1 ) AS col0 FROM tab1 AS cor0
----
-1248
-236
-3128

query I rowsort
SELECT 41 * 22 FROM tab2 AS cor0
----
902
902
902

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5538
SELECT + col0 * col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 WHERE NULL = ( ( - 44 ) + - col0 + - 42 * col1 )
----

skipif mysql # not compatible
query I rowsort label-5538
SELECT + col0 * col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 WHERE NULL = ( ( - 44 ) + - col0 + - 42 * col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL > + 35
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5540
SELECT CAST( + COUNT( * ) AS SIGNED ) FROM tab0, tab2 AS cor0 WHERE + - 19 IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-5540
SELECT CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0, tab2 AS cor0 WHERE + - 19 IS NOT NULL
----
9

query I rowsort
SELECT col0 - + 97 * col1 AS col2 FROM tab1
----
-1307
-400
-4468

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT ALL + 12 + + AVG ( DISTINCT 76 - + 48 ) * COUNT( * ) FROM tab2 WHERE ( NOT col1 NOT BETWEEN + col1 AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5542
SELECT ALL + 12 + + AVG ( DISTINCT 76 - + 48 ) * COUNT ( * ) FROM tab2 WHERE ( NOT col1 NOT BETWEEN + col1 AND NULL )
----
NULL

query I rowsort
SELECT + + col0 AS col2 FROM tab2 WHERE - - ( - col1 ) IS NULL
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT - ( - 86 ) + - 83 * + col1 * - + col0 AS col2 FROM tab0
----
100931
151727
8137

query I rowsort
SELECT DISTINCT + 33 * 36 * col0 AS col2 FROM tab2 AS cor0 WHERE 52 IS NOT NULL
----
54648
76032
89100

onlyif mysql # DIV for integer division: 
query I rowsort label-5547
SELECT ALL + col1 DIV + - ( + col0 ) FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-5547
SELECT ALL + col1 / + - ( + col0 ) FROM tab0
----
-5
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5548
SELECT + SUM( ALL - + col1 ) DIV - COUNT( * ) AS col0 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-5548
SELECT + SUM ( ALL - + col1 ) / - COUNT ( * ) AS col0 FROM tab2
----
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 5 col2 FROM tab2 AS cor0
----
-5
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5550
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 > - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5550
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 > - - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5551
SELECT - CAST( NULL AS SIGNED ) + COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT + col1 = col1 + + - ( - 19 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5551
SELECT - CAST ( NULL AS INTEGER ) + COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT + col1 = col1 + + - ( - 19 )
----
NULL

query I rowsort
SELECT ALL - AVG ( - - 21 ) AS col1 FROM tab0 cor0 WHERE col2 >= NULL
----
NULL

query I rowsort
SELECT ALL - col0 + - + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query II rowsort
SELECT col0, col1 AS col0 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT DISTINCT + MIN( ALL 95 ) FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-5555
SELECT DISTINCT + MIN ( ALL 95 ) FROM tab0
----
95

query II rowsort
SELECT + col0 AS col0, col0 + - - col0 FROM tab1
----
51
102
85
170
91
182

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col0 IS NOT NULL
----

query I rowsort
SELECT + col1 * + + 52 FROM tab1
----
2444
260
728

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5559
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 + - ( + - CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 + - ( + - CAST ( NULL AS INTEGER ) ) IS NULL
----

query II rowsort
SELECT ALL 16, col1 FROM tab1 AS cor0
----
16
14
16
47
16
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + ( 22 ) ) <= - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 98 <> + ( - + 49 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 42 BETWEEN NULL AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT + SUM( - + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-5564
SELECT + SUM ( - + col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT 12 - MAX( - 8 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
20

skipif mysql # not compatible
query I rowsort label-5565
SELECT 12 - MAX ( - 8 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
20

query I rowsort
SELECT - col1 + - col0 + + + 53 FROM tab1
----
-12
-37
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT + COUNT( * ) + - COUNT( * ) * - COUNT( * ) col0 FROM tab1
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5567
SELECT + COUNT ( * ) + - COUNT ( * ) * - COUNT ( * ) col0 FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT ALL MIN( ALL + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL MIN ( ALL + col0 ) FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5569
SELECT DISTINCT - - ( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5569
SELECT DISTINCT - - ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT COUNT( * ) FROM tab2 cor0 WHERE - 90 + - 54 NOT BETWEEN col2 AND - col1 OR - + 13 / - 71 <> ( ( 12 ) ) / + col1
----
3

skipif mysql # not compatible
query I rowsort label-5571
SELECT COUNT ( * ) FROM tab2 cor0 WHERE - 90 + - 54 NOT BETWEEN col2 AND - col1 OR - + 13 / - 71 <> ( ( 12 ) ) / + col1
----
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL = 95 + + 6
----

query I rowsort
SELECT - 18 + + col2 + - - ( 32 ) * - col2 AS col2 FROM tab0 AS cor0
----
-1475
-3087
-328

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5574
SELECT ALL - col2 * CAST( 25 AS SIGNED ) AS col1, col2 - - - col1 AS col1 FROM tab0
----
-1175
-34
-2475
98
-250
-11

skipif mysql # not compatible
query II rowsort label-5574
SELECT ALL - col2 * CAST ( 25 AS INTEGER ) AS col1, col2 - - - col1 AS col1 FROM tab0
----
-1175
-34
-2475
98
-250
-11

query I rowsort
SELECT DISTINCT - ( - col2 ) - - ( + col1 ) FROM tab1
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5576
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) * + CAST( NULL AS SIGNED ) + + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5576
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) * + CAST ( NULL AS INTEGER ) + + col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col1 - + + 11 + 61 - + + col1 FROM tab0
----
-112
48
8

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE - col1 * + - col2 NOT IN ( + 74 )
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT + COUNT( ALL + + col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5579
SELECT + COUNT ( ALL + + col1 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5580
SELECT + COUNT( DISTINCT + 6 ) * + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5580
SELECT + COUNT ( DISTINCT + 6 ) * + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----
0

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NOT - col0 * + - col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5582
SELECT ALL - ( - SUM( - col1 ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5582
SELECT ALL - ( - SUM ( - col1 ) ) FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5583
SELECT + 43 * - COUNT( * ) col2 FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5583
SELECT + 43 * - COUNT ( * ) col2 FROM tab1 AS cor0
----
-129

query II rowsort
SELECT DISTINCT 48 AS col1, - col1 AS col2 FROM tab0
----
48
-1
48
-21
48
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5585
SELECT DISTINCT + CAST( col2 AS SIGNED ) * col2 FROM tab1
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-5585
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * col2 FROM tab1
----
3481
4624
9216

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5587
SELECT ALL - CAST( 38 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-5587
SELECT ALL - CAST ( 38 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-38
-38
-38

query II rowsort
SELECT + col0, col1 * - - col1 FROM tab0 AS cor0
----
15
6561
87
441
97
1

query I rowsort
SELECT ALL + - 82 * col2 AS col2 FROM tab2 AS cor0
----
-1886
-3280
-4756

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5590
SELECT DISTINCT - col0 + ( + + col2 ) * + col1 AS col0 FROM tab1 AS cor0 WHERE CAST( + - col1 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-5590
SELECT DISTINCT - col0 + ( + + col2 ) * + col1 AS col0 FROM tab1 AS cor0 WHERE CAST ( + - col1 AS INTEGER ) <> NULL
----

query I rowsort
SELECT DISTINCT - 36 * + + 53 AS col1 FROM tab1 AS cor0
----
-1908

query I rowsort
SELECT - 85 * + - col0 AS col0 FROM tab0 AS cor0
----
1275
7395
8245

onlyif mysql # DIV for integer division: 
query I rowsort label-5593
SELECT DISTINCT col2 DIV + + 89 * + - col1 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5593
SELECT DISTINCT col2 / + + 89 * + - col1 FROM tab0
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 col0 FROM tab2
----
-60

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5596
SELECT ALL * FROM tab1 WHERE + col2 NOT IN ( + 17 * - col1, 76, ( + + 48 ) * - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5596
SELECT ALL * FROM tab1 WHERE + col2 NOT IN ( + 17 * - col1, 76, ( + + 48 ) * - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5597
SELECT - MAX( - 49 ) FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-5597
SELECT - MAX ( - 49 ) FROM tab0
----
49

query I rowsort
SELECT ALL + ( + col0 ) * - col2 AS col1 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT ALL + 65 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT 33 + - + 39 * - - ( + col1 ) + - - col0 + - 1 + - 15 AS col0 FROM tab1 AS cor0
----
-1725
-478
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5601
SELECT ALL * FROM tab1 cor0 WHERE CAST( - col2 AS SIGNED ) <> - - col0 * + + col2 * - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5601
SELECT ALL * FROM tab1 cor0 WHERE CAST ( - col2 AS INTEGER ) <> - - col0 * + + col2 * - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT DISTINCT - COUNT( * ) + + 1 col1 FROM tab0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5602
SELECT DISTINCT - COUNT ( * ) + + 1 col1 FROM tab0
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col2, col0 col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5604
SELECT CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-5604
SELECT CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5605
SELECT + CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE + 8 - - - col0 + 53 NOT IN ( - col0 + ( + 75 ), + 58 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5605
SELECT + CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE + 8 - - - col0 + 53 NOT IN ( - col0 + ( + 75 ), + 58 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5606
SELECT + MAX( - 96 ) - - + 93 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5606
SELECT + MAX ( - 96 ) - - + 93 FROM tab1 cor0
----
-3

query I rowsort
SELECT - + 98 - + 4 FROM tab0 AS cor0
----
-102
-102
-102

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 / - 98 - - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 9 * - 65 + - - 70 + - col2 FROM tab0
----
-525
-562
-614

query III rowsort
SELECT * FROM tab1 WHERE NULL > + 1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - col1 col0 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT + col2 + col2 + - - 96 + + - 71 AS col2 FROM tab1
----
143
161
217

query I rowsort
SELECT ALL + + 36 AS col1 FROM tab1 AS cor0
----
36
36
36

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 15 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5615
SELECT ALL - - SUM( DISTINCT + 43 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
43

skipif mysql # not compatible
query I rowsort label-5615
SELECT ALL - - SUM ( DISTINCT + 43 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
43

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 NOT IN ( col0, - ( + col2 ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 NOT IN ( - - 22 + + 8 + + col1, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5619
SELECT - col1 + + - col0 FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) * + col0 BETWEEN + - col1 + - col0 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5619
SELECT - col1 + + - col0 FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + col0 BETWEEN + - col1 + - col0 AND + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - ( - col0 ) + - 90 FROM tab1 cor0
----
-39
-5
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT + + ( MAX( DISTINCT - - 90 ) ) FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-5621
SELECT + + ( MAX ( DISTINCT - - 90 ) ) FROM tab0 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5622
SELECT ALL * FROM tab0 WHERE col1 NOT IN ( + 95, + CAST( NULL AS SIGNED ), col2 * 32 - - col1 / - + col0, col2 * 46 + + - col1 * + - col1 )
----

skipif mysql # not compatible
query III rowsort label-5622
SELECT ALL * FROM tab0 WHERE col1 NOT IN ( + 95, + CAST ( NULL AS INTEGER ), col2 * 32 - - col1 / - + col0, col2 * 46 + + - col1 * + - col1 )
----

query I rowsort
SELECT DISTINCT 17 * - 13 AS col1 FROM tab2
----
-221

query I rowsort
SELECT col0 + + - col1 AS col0 FROM tab0
----
-66
66
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5625
SELECT ALL - col1 * col0 DIV + col2 AS col0 FROM tab1
----
-62
-7
-7

skipif mysql # not compatible
query I rowsort label-5625
SELECT ALL - col1 * col0 / + col2 AS col0 FROM tab1
----
-62
-7
-7

query II rowsort
SELECT col2 * - 6 AS col0, + col2 FROM tab1
----
-354
59
-408
68
-576
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT DISTINCT COUNT( * ) * + 17 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-5627
SELECT DISTINCT COUNT ( * ) * + 17 FROM tab0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5628
SELECT col1 * + CAST( 19 AS SIGNED ) AS col1 FROM tab0
----
1539
19
399

skipif mysql # not compatible
query I rowsort label-5628
SELECT col1 * + CAST ( 19 AS INTEGER ) AS col1 FROM tab0
----
1539
19
399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5629
SELECT ALL - CAST( NULL AS SIGNED ) * - - col1 * - col1 * + - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5629
SELECT ALL - CAST ( NULL AS INTEGER ) * - - col1 * - col1 * + - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5630
SELECT ALL 51 DIV - - col2 FROM tab2
----
0
1
2

skipif mysql # not compatible
query I rowsort label-5630
SELECT ALL 51 / - - col2 FROM tab2
----
0
1
2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5632
SELECT DISTINCT - 4 + - MIN( - 34 ) AS col1 FROM tab0 cor0
----
30

skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT - 4 + - MIN ( - 34 ) AS col1 FROM tab0 cor0
----
30

query I rowsort
SELECT DISTINCT - + 91 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-5634
SELECT - ( 53 ), COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN col2 / + col1 - - 0 AND NULL
----
-53
0

skipif mysql # not compatible
query II rowsort label-5634
SELECT - ( 53 ), COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN col2 / + col1 - - 0 AND NULL
----
-53
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT DISTINCT + MIN( DISTINCT - + 95 ) AS col2 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-5635
SELECT DISTINCT + MIN ( DISTINCT - + 95 ) AS col2 FROM tab1 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT + ( + COUNT( ALL - - col0 ) ) * - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5636
SELECT + ( + COUNT ( ALL - - col0 ) ) * - COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-5637
SELECT 23 DIV + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5637
SELECT 23 / + col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT - 59 * - SUM( + 90 ) col2 FROM tab0 cor0
----
15930

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5638
SELECT - 59 * - SUM ( + 90 ) col2 FROM tab0 cor0
----
15930

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5639
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 2 * + col2 * + 14 NOT BETWEEN CAST( + col2 AS SIGNED ) * + - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-5639
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 2 * + col2 * + 14 NOT BETWEEN CAST ( + col2 AS INTEGER ) * + - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5640
SELECT col0 DIV + 73 AS col0 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5640
SELECT col0 / + 73 AS col0 FROM tab0
----
0
1
1

query III rowsort
SELECT * FROM tab1 WHERE NOT + 16 >= 99 * 31 / 97 * + col2 * + - col0 + + col1 * + col2
----

query I rowsort
SELECT - 35 * + + col2 AS col0 FROM tab2
----
-1400
-2030
-805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, + ( + col1 ) * - col1 col0 FROM tab1
----
51
-196
85
-25
91
-2209

query II rowsort
SELECT DISTINCT - 10 AS col2, + col0 AS col0 FROM tab2
----
-10
46
-10
64
-10
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5645
SELECT + CAST( - col1 AS SIGNED ) col0 FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5645
SELECT + CAST ( - col1 AS INTEGER ) col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - 48 AS col0 FROM tab1 AS cor0 WHERE NULL = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5647
SELECT - 53 * + CAST( NULL AS SIGNED ) AS col2, - col0 * - + col2 FROM tab1
----
NULL
4896
NULL
5015
NULL
6188

skipif mysql # not compatible
query II rowsort label-5647
SELECT - 53 * + CAST ( NULL AS INTEGER ) AS col2, - col0 * - + col2 FROM tab1
----
NULL
4896
NULL
5015
NULL
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-5648
SELECT 48 DIV + 91 * + 88 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5648
SELECT 48 / + 91 * + 88 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + ( - col2 ) * + col0 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - + ( - ( + col2 ) ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT DISTINCT 51 + COUNT( * ) - ( - ( - + 69 ) ) AS col1 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5651
SELECT DISTINCT 51 + COUNT ( * ) - ( - ( - + 69 ) ) AS col1 FROM tab2 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5652
SELECT + MIN( - - 49 ) FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-5652
SELECT + MIN ( - - 49 ) FROM tab1 AS cor0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5653
SELECT DISTINCT + - 41 / col2 * - col0 * - 58 + + col0 AS col1 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN NULL AND - + col0
----

skipif mysql # not compatible
query I rowsort label-5653
SELECT DISTINCT + - 41 / col2 * - col0 * - 58 + + col0 AS col1 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN NULL AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT - + ( + + MAX( + 57 ) ) FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-5654
SELECT - + ( + + MAX ( + 57 ) ) FROM tab0 AS cor0
----
-57

query I rowsort
SELECT DISTINCT - 82 * + - col2 + - - 10 - - - col1 FROM tab2
----
1845
3213
4699

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT + COUNT( - + ( 67 ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5656
SELECT + COUNT ( - + ( 67 ) ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL - ( - col1 ) * + + col0 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT ALL COUNT( * ) + 79 AS col2 FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL COUNT ( * ) + 79 AS col2 FROM tab2
----
82

query I rowsort
SELECT ALL + 65 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 65 * + col0 + + 12 AS col1, 51 FROM tab1
----
3327
51
5537
51
5927
51

query I rowsort
SELECT DISTINCT ( + 88 ) AS col1 FROM tab2 AS cor0
----
88

query I rowsort
SELECT ( + 97 ) * - - col2 + - col1 FROM tab2 AS cor0
----
2180
3803
5559

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT 41 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-5663
SELECT 41 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
38

query I rowsort
SELECT DISTINCT - col0 + 90 AS col0 FROM tab1
----
-1
39
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 56 col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 79 IS NULL
----

query I rowsort
SELECT col0 - + - col2 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5668
SELECT + col1 DIV + + col0 - - 21 * col1 * col0 DIV 8 AS col0 FROM tab1 AS cor0
----
1115
11227
1874

skipif mysql # not compatible
query I rowsort label-5668
SELECT + col1 / + + col0 - - 21 * col1 * col0 / 8 AS col0 FROM tab1 AS cor0
----
1115
11227
1874

onlyif mysql # aggregate syntax: 
query I rowsort label-5669
SELECT DISTINCT COUNT( * ) - + MAX( col2 ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5669
SELECT DISTINCT COUNT ( * ) - + MAX ( col2 ) FROM tab1 AS cor0
----
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 col1, - 33 * col2 + + + col0 - - 54 AS col1 FROM tab0 AS cor0
----
15
-1482
87
-189
97
-3116

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + + col0 - + col2 - col1 col1 FROM tab0 AS cor0
----
-833
-901
-9703

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > col0 * + 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5673
SELECT ALL - MIN( DISTINCT col1 ) AS col2 FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5673
SELECT ALL - MIN ( DISTINCT col1 ) AS col2 FROM tab2 cor0
----
-51

query I rowsort
SELECT + ( - 15 ) * col1 FROM tab2 cor0
----
-1005
-1155
-765

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5675
SELECT ALL 64 * - + col1 / + - CAST( NULL AS DECIMAL ) * + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL 64 * - + col1 / + - CAST ( NULL AS REAL ) * + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - - col2 ) * + 54 * - 91 FROM tab0
----
-230958
-486486
-49140

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 AND col2 * col2 + - - col2
----

query I rowsort
SELECT ALL - col0 * - ( col2 ) FROM tab0
----
705
870
9603

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 86 * - col0 + - 11 ) >= ( NULL )
----

query I rowsort
SELECT + 7 AS col1 FROM tab0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT ALL + 53 * - COUNT( * ) FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL + 53 * - COUNT ( * ) FROM tab1 AS cor0
----
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 16 col2 FROM tab1 AS cor0
----
-16
-16
-16

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5683
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5683
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - ( col1 ) * - - col0 * + col1 AS col1 FROM tab1
----
-201019
-2125
-9996

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 + - + 31 + + col2 - col0 + col2 <> - + 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT + - COUNT( - + col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5686
SELECT + - COUNT ( - + col0 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - - 53 * 73 FROM tab1 AS cor0
----
3869
3869
3869

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT ALL SUM( + - 9 ) AS col1 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5688
SELECT ALL SUM ( + - 9 ) AS col1 FROM tab0 AS cor0
----
-27

query I rowsort
SELECT 73 + + col2 AS col0 FROM tab2 AS cor0
----
113
131
96

query II rowsort
SELECT DISTINCT - col2, - col2 AS col2 FROM tab2 AS cor0
----
-23
-23
-40
-40
-58
-58

query I rowsort
SELECT 18 FROM tab2 cor0 WHERE col2 + col0 < ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 66 BETWEEN + 89 AND ( - - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE - 81 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5694
SELECT - SUM( - CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5694
SELECT - SUM ( - CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) ) col2 FROM tab0
----
NULL

query I rowsort
SELECT + 90 AS col1 FROM tab0, tab1 cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query II rowsort
SELECT col2 * + 36 AS col2, 19 FROM tab0
----
1692
19
3564
19
360
19

query I rowsort
SELECT DISTINCT - - col2 + + - ( - 83 ) FROM tab0 AS cor0
----
130
182
93

onlyif mysql # DIV for integer division: 
query I rowsort label-5698
SELECT ALL + + col2 * + - col2 + - col0 - - col1 * 77 DIV col2 + 96 FROM tab2 AS cor0
----
-1420
-309
-3255

skipif mysql # not compatible
query I rowsort label-5698
SELECT ALL + + col2 * + - col2 + - col0 - - col1 * 77 / col2 + 96 FROM tab2 AS cor0
----
-1420
-309
-3255

query I rowsort
SELECT 95 * - col1 FROM tab0 AS cor0
----
-1995
-7695
-95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 >= NULL
----

query I rowsort
SELECT DISTINCT - col2 * 64 * - col2 + - + 92 + - 17 FROM tab1 AS cor0
----
222675
295827
589715

onlyif mysql # aggregate syntax: 
query II rowsort label-5702
SELECT + - 71 AS col1, COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-71
9

skipif mysql # not compatible
query II rowsort label-5702
SELECT + - 71 AS col1, COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-71
9

query III rowsort
SELECT * FROM tab2 WHERE - - col0 NOT IN ( + col0 * - col2 * col1, 88, - col0, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5704
SELECT CAST( + col0 AS SIGNED ) + + 66 + + ( + col1 ) + - - col0 DIV - 98 AS col0 FROM tab1
----
131
156
204

skipif mysql # not compatible
query I rowsort label-5704
SELECT CAST ( + col0 AS INTEGER ) + + 66 + + ( + col1 ) + - - col0 / - 98 AS col0 FROM tab1
----
131
156
204

onlyif mysql # DIV for integer division: 
query I rowsort label-5705
SELECT col2 DIV + col0 + 85 - + - 51 - - col2 col2 FROM tab0
----
146
186
236

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5705
SELECT col2 / + col0 + 85 - + - 51 - - col2 col2 FROM tab0
----
146
186
236

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5706
SELECT DISTINCT ( ( ( - COUNT( * ) ) ) ) + - + ( + CAST( + + SUM( DISTINCT + 33 ) AS SIGNED ) ) AS col2 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT ( ( ( - COUNT ( * ) ) ) ) + - + ( + CAST ( + + SUM ( DISTINCT + 33 ) AS INTEGER ) ) AS col2 FROM tab1
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5707
SELECT DISTINCT COUNT( * ) * - COUNT( * ) DIV - 95 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5707
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) / - 95 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5708
SELECT + COUNT( * ) * 25 FROM tab2 AS cor0 WHERE NOT col2 * + col0 > - + col1 * - ( 84 )
----
75

skipif mysql # not compatible
query I rowsort label-5708
SELECT + COUNT ( * ) * 25 FROM tab2 AS cor0 WHERE NOT col2 * + col0 > - + col1 * - ( 84 )
----
75

query I rowsort
SELECT DISTINCT - 30 * 47 - 47 + - 0 * 86 + - - 90 * + 9 FROM tab2 AS cor0
----
-647

query I rowsort
SELECT + 62 * + col2 * - + 20 AS col0 FROM tab1 cor0 WHERE NOT col1 NOT BETWEEN - col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5711
SELECT + + col2 DIV col2 * + col0 + - col1 FROM tab1 AS cor0
----
37
44
80

skipif mysql # not compatible
query I rowsort label-5711
SELECT + + col2 / col2 * + col0 + - col1 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT col2 < - col0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT COUNT( * ) * + 70 AS col1 FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-5713
SELECT COUNT ( * ) * + 70 AS col1 FROM tab1 AS cor0
----
210

query I rowsort
SELECT ALL + col0 * + + 93 AS col1 FROM tab0 AS cor0
----
1395
8091
9021

query I rowsort
SELECT ALL 27 * + col2 AS col2 FROM tab2 AS cor0
----
1080
1566
621

query I rowsort
SELECT + 95 * + - col2 AS col1 FROM tab0
----
-4465
-9405
-950

query I rowsort
SELECT 95 * - col0 * + 12 AS col0 FROM tab1
----
-103740
-58140
-96900

query I rowsort
SELECT - 61 * + col1 AS col1 FROM tab0
----
-1281
-4941
-61

query II rowsort
SELECT + col2, - 92 FROM tab2
----
23
-92
40
-92
58
-92

query I rowsort
SELECT - 27 * - + 16 FROM tab0
----
432
432
432

query I rowsort
SELECT col2 * col0 * - 26 FROM tab2
----
-113100
-27508
-66560

query I rowsort
SELECT 43 * - - 42 AS col2 FROM tab2
----
1806
1806
1806

onlyif mysql # aggregate syntax: 
query I rowsort label-5723
SELECT ALL 10 * + COUNT( * ) AS col0 FROM tab1 WHERE ( - - col0 ) IS NOT NULL
----
30

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL 10 * + COUNT ( * ) AS col0 FROM tab1 WHERE ( - - col0 ) IS NOT NULL
----
30

query II rowsort
SELECT + col0 AS col0, 22 FROM tab0
----
15
22
87
22
97
22

query I rowsort
SELECT - col1 * + 59 AS col0 FROM tab2 AS cor0 WHERE NOT col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * 6 col2 FROM tab0 AS cor0
----
282
594
60

query II rowsort
SELECT DISTINCT + col0 AS col0, + 9 AS col2 FROM tab1 AS cor0
----
51
9
85
9
91
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5728
SELECT + MAX( ALL col0 ) col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5728
SELECT + MAX ( ALL col0 ) col0 FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5729
SELECT + - col2 col1, + CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT + 64 <= - col2
----
-23
51
-40
77
-58
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5729
SELECT + - col2 col1, + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + 64 <= - col2
----
-23
51
-40
77
-58
67

query I rowsort
SELECT - - ( + 33 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query III rowsort
SELECT ALL * FROM tab2 WHERE - 53 + - 85 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5732
SELECT 71 + - ( MIN( col0 ) ) + - + COUNT( * ) * - + COUNT( * ) AS col1 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-5732
SELECT 71 + - ( MIN ( col0 ) ) + - + COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab1
----
29

query I rowsort
SELECT ALL 62 * + col2 * + - 15 + + 75 + col1 FROM tab2
----
-21264
-37048
-53798

query I rowsort
SELECT DISTINCT + 80 FROM ( tab0 AS cor0 CROSS JOIN tab2 cor1 )
----
80

query II rowsort
SELECT + - col2 * + - col1 AS col1, + col0 AS col2 FROM tab2 AS cor0
----
1173
46
3080
64
3886
75

query I rowsort
SELECT DISTINCT + + col0 * 56 AS col2 FROM tab0 AS cor0
----
4872
5432
840

query II rowsort
SELECT DISTINCT - col1 + + 57 AS col2, - 43 FROM tab2 AS cor0
----
-10
-43
-20
-43
6
-43

query I rowsort
SELECT DISTINCT - ( - - 31 ) AS col1 FROM tab2 AS cor0
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-5739
SELECT ALL - 32 DIV + col2 + + 18 - 3 FROM tab2
----
14
15
15

skipif mysql # not compatible
query I rowsort label-5739
SELECT ALL - 32 / + col2 + + 18 - 3 FROM tab2
----
14
15
15

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT MAX( col1 ) + - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-5740
SELECT MAX ( col1 ) + - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5741
SELECT - SUM( ALL - col2 ) col1 FROM tab1 cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5741
SELECT - SUM ( ALL - col2 ) col1 FROM tab1 cor0
----
223

query I rowsort
SELECT ALL + ( + + col1 ) * + col2 + 59 * 24 FROM tab0 AS cor0
----
1515
1626
5223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5743
SELECT DISTINCT col2 + CAST( - 10 AS SIGNED ) FROM tab2 AS cor0
----
13
30
48

skipif mysql # not compatible
query I rowsort label-5743
SELECT DISTINCT col2 + CAST ( - 10 AS INTEGER ) FROM tab2 AS cor0
----
13
30
48

query III rowsort
SELECT * FROM tab2 WHERE - 56 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5745
SELECT + SUM( DISTINCT col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-5745
SELECT + SUM ( DISTINCT col0 ) FROM tab0 cor0
----
199

query II rowsort
SELECT ALL col1 AS col0, col2 FROM tab2 cor0 WHERE 3 BETWEEN + ( + col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5747
SELECT ( - + COUNT( * ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5747
SELECT ( - + COUNT ( * ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - 53 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5749
SELECT ALL 58 * + COUNT( * ) AS col0 FROM tab1
----
174

skipif mysql # not compatible
query I rowsort label-5749
SELECT ALL 58 * + COUNT ( * ) AS col0 FROM tab1
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT ALL - 59 * - COUNT( * ) FROM tab2
----
177

skipif mysql # not compatible
query I rowsort label-5750
SELECT ALL - 59 * - COUNT ( * ) FROM tab2
----
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 84 * col2 col1 FROM tab1 AS cor0
----
-4956
-5712
-8064

onlyif mysql # DIV for integer division: 
query I rowsort label-5752
SELECT ALL + - col2 DIV + col0 * - col0 DIV + col0 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL + - col2 / + col0 * - col0 / + col0 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5753
SELECT DISTINCT - COUNT( 97 ) * + - 47, COUNT( * ) * - 65 AS col2 FROM tab1 cor0
----
141
-195

skipif mysql # not compatible
query II rowsort label-5753
SELECT DISTINCT - COUNT ( 97 ) * + - 47, COUNT ( * ) * - 65 AS col2 FROM tab1 cor0
----
141
-195

query I rowsort
SELECT DISTINCT col2 * + col0 * - - col0 + - + col2 FROM tab1
----
249600
426216
563040

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT ALL 27 * + - COUNT( * ) * + + 49 + + MIN( col0 ) FROM tab0
----
-3954

skipif mysql # not compatible
query I rowsort label-5755
SELECT ALL 27 * + - COUNT ( * ) * + + 49 + + MIN ( col0 ) FROM tab0
----
-3954

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT 40 * + COUNT( * ) col1 FROM tab2
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5757
SELECT 40 * + COUNT ( * ) col1 FROM tab2
----
120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 61 col0 FROM tab2
----
2806
3904
4575

query I rowsort
SELECT 89 + + 10 FROM tab0
----
99
99
99

query I rowsort
SELECT DISTINCT col1 * ( + col1 ) * + 4 AS col0 FROM tab2 AS cor0
----
10404
17956
23716

query I rowsort
SELECT - 21 + - 0 + 25 * col0 * + - col0 AS col1 FROM tab2 AS cor0
----
-102421
-140646
-52921

onlyif mysql # aggregate syntax: 
query I rowsort label-5762
SELECT DISTINCT 89 * - MAX( + + col0 ) FROM tab0 cor0
----
-8633

skipif mysql # not compatible
query I rowsort label-5762
SELECT DISTINCT 89 * - MAX ( + + col0 ) FROM tab0 cor0
----
-8633

query I rowsort
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT DISTINCT 96 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-5764
SELECT DISTINCT 96 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
288

query I rowsort
SELECT ALL - 85 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-85
-85
-85

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NULL BETWEEN - ( - ( col0 ) ) + + col2 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 33 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5769
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5769
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT DISTINCT - + MIN( ALL + col1 ) + COUNT( + 28 ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5770
SELECT DISTINCT - + MIN ( ALL + col1 ) + COUNT ( + 28 ) FROM tab2 AS cor0
----
-48

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query II rowsort label-5772
SELECT + col2 DIV 60, col1 + + col1 AS col0 FROM tab0
----
0
162
0
42
1
2

skipif mysql # not compatible
query II rowsort label-5772
SELECT + col2 / 60, col1 + + col1 AS col0 FROM tab0
----
0
162
0
42
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT DISTINCT 31 + - - COUNT( * ) FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-5773
SELECT DISTINCT 31 + - - COUNT ( * ) FROM tab1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-5774
SELECT ALL - COUNT( * ) + - 90 - - + 45 AS col1 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-5774
SELECT ALL - COUNT ( * ) + - 90 - - + 45 AS col1 FROM tab1
----
-48

query I rowsort
SELECT DISTINCT - 50 * - col2 + + 46 - + - 8 AS col1 FROM tab0
----
2404
5004
554

query II rowsort
SELECT ( col0 ) AS col1, col0 * + col0 + + - col1 FROM tab2
----
46
2065
64
4019
75
5558

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 47 + - + col2 > ( + ( 7 ) * + 70 + + ( + col1 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5778
SELECT DISTINCT COUNT( * ) - 65 * - 4 AS col0, CAST( NULL AS DECIMAL ) col1 FROM tab2
----
263
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5778
SELECT DISTINCT COUNT ( * ) - 65 * - 4 AS col0, CAST ( NULL AS REAL ) col1 FROM tab2
----
263
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5779
SELECT COUNT( ALL ( - col2 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5779
SELECT COUNT ( ALL ( - col2 ) ) FROM tab2
----
3

query I rowsort
SELECT ALL - col0 + 52 + + col0 FROM tab2
----
52
52
52

query III rowsort
SELECT * FROM tab2 WHERE - col2 NOT BETWEEN ( + 26 ) / - col0 AND - 80 + - - col0 * - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col0 FROM tab2 AS cor0 WHERE - col0 + - - 9 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT - + col0 + - col0 + ( 37 ) + + 34 * col0 + - 39 + - col1 * - col0 FROM tab0 AS cor0
----
1693
3199
4609

query I rowsort
SELECT ALL - 68 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT - - 59 * - col0 + + col2 FROM tab2 WHERE NOT ( ( NULL ) IS NOT NULL )
----
-2691
-3736
-4367

onlyif mysql # aggregate syntax: 
query II rowsort label-5786
SELECT DISTINCT SUM( DISTINCT + 44 ), 20 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - 46
----
NULL
20

skipif mysql # not compatible
query II rowsort label-5786
SELECT DISTINCT SUM ( DISTINCT + 44 ), 20 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - 46
----
NULL
20

query I rowsort
SELECT ALL + 23 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col1 * + col0, ( - 97 ), - 83 + col1, + - col0 )
----

query I rowsort
SELECT DISTINCT - - col0 * - 92 FROM tab1 cor0
----
-4692
-7820
-8372

query II rowsort
SELECT ALL - col0 AS col0, + 81 FROM tab0 cor0
----
-15
81
-87
81
-97
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 26 < NULL
----

query I rowsort
SELECT ALL + + 7 * - col0 + - 74 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5792
SELECT - SUM( - 18 ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-5792
SELECT - SUM ( - 18 ) FROM tab1
----
54

query I rowsort
SELECT + col2 * 90 AS col2 FROM tab2
----
2070
3600
5220

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5794
SELECT * FROM tab2 WHERE NOT - ( + + 17 ) >= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5794
SELECT * FROM tab2 WHERE NOT - ( + + 17 ) >= + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col0 AND + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 55 - 94 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 / - 78 AS col2 FROM tab2 WHERE NOT - ( + 19 ) + + 43 < NULL
----

query I rowsort
SELECT DISTINCT 53 * - col0 FROM tab1
----
-2703
-4505
-4823

query II rowsort
SELECT - 93, + col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - + col2 * + 28 AS col1 FROM tab1 AS cor0
----
-1652
-1904
-2688

query I rowsort
SELECT DISTINCT + - col2 * - col0 + col1 * col1 FROM tab0 AS cor0
----
1311
7266
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-5802
SELECT ALL 4 + - SUM( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
-191

skipif mysql # not compatible
query I rowsort label-5802
SELECT ALL 4 + - SUM ( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
-191

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 60 + 42 col0 FROM tab1
----
-3498
-4038
-5718

query I rowsort
SELECT DISTINCT - 94 + + - col1 + 6 - + 73 * col0 + - col1 + - - col0 + col1 + ( - col2 ) * + 72 AS col0 FROM tab1
----
-10461
-10686
-11583

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT 48 * + 93 * - - COUNT( * ) FROM tab0 AS cor0
----
13392

skipif mysql # not compatible
query I rowsort label-5805
SELECT 48 * + 93 * - - COUNT ( * ) FROM tab0 AS cor0
----
13392

onlyif mysql # DIV for integer division: 
query I rowsort label-5806
SELECT DISTINCT + col2 DIV + 44 FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-5806
SELECT DISTINCT + col2 / + 44 FROM tab1 AS cor0
----
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5807
SELECT - CAST( NULL AS SIGNED ) / - - ( - 47 ) * - col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5807
SELECT - CAST ( NULL AS INTEGER ) / - - ( - 47 ) * - col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5808
SELECT DISTINCT - - COUNT( * ) col0, COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5808
SELECT DISTINCT - - COUNT ( * ) col0, COUNT ( * ) FROM tab2 AS cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5809
SELECT - col2 * + - 11 - - CAST( NULL AS SIGNED ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5809
SELECT - col2 * + - 11 - - CAST ( NULL AS INTEGER ) + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( + 96 ) * - col0 - col2 FROM tab1 cor0
----
-4992
-8219
-8804

onlyif mysql # aggregate syntax: 
query I rowsort label-5811
SELECT ALL MAX( DISTINCT col2 ) + + 16 FROM tab0
----
115

skipif mysql # not compatible
query I rowsort label-5811
SELECT ALL MAX ( DISTINCT col2 ) + + 16 FROM tab0
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-5812
SELECT ALL COUNT( * ) col1 FROM tab0, tab1 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5812
SELECT ALL COUNT ( * ) col1 FROM tab0, tab1 cor0
----
9

query III rowsort
SELECT * FROM tab1 WHERE - + col2 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5814
SELECT DISTINCT - 65 + 80 - - COUNT( * ) DIV - 93 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5814
SELECT DISTINCT - 65 + 80 - - COUNT ( * ) / - 93 FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5815
SELECT ALL col2 * col2 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5815
SELECT ALL col2 * col2 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - 71 AS col1 FROM tab2 WHERE - + 94 <> + col2
----
71
71
71

onlyif mysql # DIV for integer division: 
query I rowsort label-5817
SELECT + 92 + + - col1 DIV + + col0 + - + col0 col2 FROM tab0
----
-5
5
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5817
SELECT + 92 + + - col1 / + + col0 + - + col0 col2 FROM tab0
----
-5
5
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5818
SELECT col0 AS col2, - CAST( + col1 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

skipif mysql # not compatible
query II rowsort label-5818
SELECT col0 AS col2, - CAST ( + col1 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT - ( - 99 ) / - col0 + + - col0 + col2 - col0 FROM tab0 AS cor0 WHERE NOT + 20 IS NOT NULL
----

query I rowsort
SELECT - - ( 79 ) * col1 FROM tab0 AS cor0
----
1659
6399
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5821
SELECT DISTINCT + col2 / + col0 + CAST( - - col0 AS SIGNED ) + - 10 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) < + 1 * - col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5821
SELECT DISTINCT + col2 / + col0 + CAST ( - - col0 AS INTEGER ) + - 10 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) < + 1 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5822
SELECT DISTINCT + - ( + - 67 ) + 74 FROM tab2 AS cor0 WHERE col0 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5822
SELECT DISTINCT + - ( + - 67 ) + 74 FROM tab2 AS cor0 WHERE col0 = - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT - 66 IS NULL
----
-51
-67
-77

query I rowsort
SELECT ALL - + 71 AS col0 FROM tab2 AS cor0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT + - 41 AS col0 FROM tab0 AS cor0
----
-41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5826
SELECT DISTINCT * FROM tab1 WHERE NOT 40 BETWEEN - + 65 + + CAST( - + col1 AS SIGNED ) * - + col1 AND 17
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5826
SELECT DISTINCT * FROM tab1 WHERE NOT 40 BETWEEN - + 65 + + CAST ( - + col1 AS INTEGER ) * - + col1 AND 17
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 78 * col0 AS col1 FROM tab2
----
3588
4992
5850

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT DISTINCT COUNT( * ) * - 13 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-5828
SELECT DISTINCT COUNT ( * ) * - 13 FROM tab0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT DISTINCT + 88 * + COUNT( * ) AS col1 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-5829
SELECT DISTINCT + 88 * + COUNT ( * ) AS col1 FROM tab0
----
264

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5830
SELECT - + MIN( - col1 ) + COUNT( * ) DIV COUNT( * ) * 13 FROM tab0 WHERE NOT + 97 + - col2 IS NULL
----
94

skipif mysql # not compatible
query I rowsort label-5830
SELECT - + MIN ( - col1 ) + COUNT ( * ) / COUNT ( * ) * 13 FROM tab0 WHERE NOT + 97 + - col2 IS NULL
----
94

query II rowsort
SELECT ALL 51, col2 FROM tab2 AS cor0
----
51
23
51
40
51
58

query I rowsort
SELECT - AVG ( - - col1 ) FROM tab1 AS cor0 WHERE ( NULL ) >= 86 + col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5833
SELECT ALL col1 + - col2 DIV + col1 AS col0 FROM tab0
----
-98
21
81

skipif mysql # not compatible
query I rowsort label-5833
SELECT ALL col1 + - col2 / + col1 AS col0 FROM tab0
----
-98
21
81

query I rowsort
SELECT + col0 + - col1 - - + col0 AS col1 FROM tab0
----
-51
153
193

query I rowsort
SELECT DISTINCT + ( + + col1 ) AS col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL col0 - - - col1 + - col0 * + 16 FROM tab2 AS cor0
----
-1037
-1192
-741

onlyif mysql # aggregate syntax: 
query I rowsort label-5837
SELECT + + ( - + 32 ) + - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-5837
SELECT + + ( - + 32 ) + - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-35

query I rowsort
SELECT DISTINCT 42 * - - col0 AS col2 FROM tab0 AS cor0
----
3654
4074
630

onlyif mysql # aggregate syntax: 
query I rowsort label-5839
SELECT ALL + COUNT( col0 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5839
SELECT ALL + COUNT ( col0 ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL 53 + + ( - - col2 ) AS col2 FROM tab2 AS cor0
----
111
76
93

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT DISTINCT + + COUNT( DISTINCT + + col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5841
SELECT DISTINCT + + COUNT ( DISTINCT + + col2 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + + col2 AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND - 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT COUNT( + col0 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5843
SELECT COUNT ( + col0 ) col0 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 49 + - + col1 col2 FROM tab0
----
-32
28
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5845
SELECT + col0 DIV col2 * + ( 36 ) FROM tab0
----
0
0
288

skipif mysql # not compatible
query I rowsort label-5845
SELECT + col0 / col2 * + ( 36 ) FROM tab0
----
0
0
288

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= col1 + + col0 * + col1
----

query I rowsort
SELECT ALL 51 - 44 FROM tab2
----
7
7
7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 54 / + 3 NOT BETWEEN 40 * 8 * - 97 + col1 AND NULL
----

query I rowsort
SELECT - 69 - - + col0 FROM tab0
----
-54
18
28

query I rowsort
SELECT col1 - 58 AS col0 FROM tab2
----
-7
19
9

query I rowsort
SELECT - ( - col0 ) - - col1 FROM tab0
----
108
96
98

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 >= NULL
----

query I rowsort
SELECT 65 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5854
SELECT DISTINCT + col1 * + CAST( col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-5854
SELECT DISTINCT + col1 * + CAST ( col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT col2 * 89 * + col0 FROM tab0 AS cor0
----
62745
77430
854667

query I rowsort
SELECT ALL - - 74 AS col2 FROM tab0 AS cor0
----
74
74
74

onlyif mysql # DIV for integer division: 
query I rowsort label-5857
SELECT + ( - 6 ) DIV col1 AS col0 FROM tab0
----
-6
0
0

skipif mysql # not compatible
query I rowsort label-5857
SELECT + ( - 6 ) / col1 AS col0 FROM tab0
----
-6
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5858
SELECT DISTINCT 88, COUNT( * ) * + 9 AS col2 FROM tab2
----
88
27

skipif mysql # not compatible
query II rowsort label-5858
SELECT DISTINCT 88, COUNT ( * ) * + 9 AS col2 FROM tab2
----
88
27

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT DISTINCT + + ( - COUNT( * ) ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5859
SELECT DISTINCT + + ( - COUNT ( * ) ) AS col1 FROM tab2 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + + + 50 NOT BETWEEN NULL AND - - 76 + col2
----

query I rowsort
SELECT DISTINCT 44 * - 65 FROM tab2 AS cor0
----
-2860

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + + 5 + - col1 col1 FROM tab1 AS cor0
----
290
293
466

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT + COUNT( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5863
SELECT + COUNT ( ALL + col1 ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT col0 * + col2, col2 FROM tab1
----
4896
96
5015
59
6188
68

query III rowsort
SELECT * FROM tab2 WHERE + + 98 BETWEEN + 20 * 58 AND + + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5866
SELECT ALL - col0 + 30 col0, + col2 DIV - col2 FROM tab0
----
-57
-1
-67
-1
15
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5866
SELECT ALL - col0 + 30 col0, + col2 / - col2 FROM tab0
----
-57
-1
-67
-1
15
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 * col1 + + - 25 <= NULL
----

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE - - 12 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT - col1 + - col2 * + 19 AS col0 FROM tab0 AS cor0
----
-1882
-211
-974

onlyif mysql # aggregate syntax: 
query II rowsort label-5870
SELECT COUNT( * ) + + COUNT( * ) AS col1, COUNT( * ) FROM tab0 AS cor0
----
6
3

skipif mysql # not compatible
query II rowsort label-5870
SELECT COUNT ( * ) + + COUNT ( * ) AS col1, COUNT ( * ) FROM tab0 AS cor0
----
6
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5871
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5871
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT - + COUNT( * ) - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-18

skipif mysql # not compatible
query I rowsort label-5872
SELECT - + COUNT ( * ) - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-18

query II rowsort
SELECT DISTINCT - 11 AS col0, 31 * 89 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-11
2759

onlyif mysql # DIV for integer division: 
query I rowsort label-5874
SELECT ALL - col2 + + col2 DIV - 48 AS col1 FROM tab2
----
-23
-40
-59

skipif mysql # not compatible
query I rowsort label-5874
SELECT ALL - col2 + + col2 / - 48 AS col1 FROM tab2
----
-23
-40
-59

query I rowsort
SELECT - ( - col0 ) * 10 + + col2 + - + 46 + + col1 AS col1 FROM tab1
----
574
868
979

query I rowsort
SELECT + col0 - + 86 FROM tab1 AS cor0
----
-1
-35
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT - 20 * COUNT( + ( + col0 ) ) - + + 10 AS col0 FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-5877
SELECT - 20 * COUNT ( + ( + col0 ) ) - + + 10 AS col0 FROM tab1 AS cor0
----
-70

query I rowsort
SELECT - col1 - + 40 FROM tab1 AS cor0
----
-45
-54
-87

query I rowsort
SELECT - + col2 - 65 AS col2 FROM tab1 cor0
----
-124
-133
-161

query I rowsort
SELECT DISTINCT 14 AS col2 FROM tab1 cor0
----
14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5881
SELECT - - CAST( NULL AS DECIMAL ) + + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5881
SELECT - - CAST ( NULL AS REAL ) + + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5882
SELECT - CAST( 55 AS SIGNED ) AS col1 FROM tab1 cor0
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-5882
SELECT - CAST ( 55 AS INTEGER ) AS col1 FROM tab1 cor0
----
-55
-55
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5883
SELECT ALL + ( - ( - 93 ) ) * - - 69 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL + ( - ( - 93 ) ) * - - 69 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 74 * - 99 FROM tab0 AS cor0
----
-7326
-7326
-7326

query I rowsort
SELECT DISTINCT 34 * - 8 * col2 FROM tab0
----
-12784
-26928
-2720

query I rowsort
SELECT ALL + 51 * + 53 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b31394d760545ad4bdccb203f1da750b

query I rowsort
SELECT + 16 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # aggregate syntax: 
query I rowsort label-5888
SELECT ALL + MAX( + col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5888
SELECT ALL + MAX ( + col0 ) AS col0 FROM tab1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5889
SELECT DISTINCT + CAST( - 59 AS SIGNED ) FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5889
SELECT DISTINCT + CAST ( - 59 AS INTEGER ) FROM tab2 AS cor0
----
-59

query I rowsort
SELECT DISTINCT - 24 * col1 * + 22 FROM tab1 AS cor0
----
-24816
-2640
-7392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5891
SELECT - CAST( NULL AS SIGNED ) / + + ( + col1 ) * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5891
SELECT - CAST ( NULL AS INTEGER ) / + + ( + col1 ) * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - ( + 75 ) * - + col1 AS col2 FROM tab0 AS cor0
----
-1575
-6075
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 95 + - col1 >= + - col2 * - 34 * 97 + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > + ( col1 )
----

query I rowsort
SELECT 38 * + 32 AS col2 FROM tab1
----
1216
1216
1216

query III rowsort
SELECT * FROM tab1 WHERE + 5 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 75 * col1 + - - col1 AS col2 FROM tab2
----
3876
5092
5852

query II rowsort
SELECT + col2 AS col2, + col2 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # DIV for integer division: 
query II rowsort label-5899
SELECT + col0 DIV - 30 AS col1, - 53 FROM tab1
----
-1
-53
-2
-53
-3
-53

skipif mysql # not compatible
query II rowsort label-5899
SELECT + col0 / - 30 AS col1, - 53 FROM tab1
----
-1
-53
-2
-53
-3
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT DISTINCT MAX( + col0 ) * - COUNT( * ) AS col1 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-5900
SELECT DISTINCT MAX ( + col0 ) * - COUNT ( * ) AS col1 FROM tab1
----
-273

query I rowsort
SELECT DISTINCT col2 + + col0 / - - col1 FROM tab2 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5902
SELECT DISTINCT COUNT( * ) + - 37 AS col1 FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-5902
SELECT DISTINCT COUNT ( * ) + - 37 AS col1 FROM tab1
----
-34

query I rowsort
SELECT 79 * + - col0 + col1 FROM tab1
----
-4015
-6710
-7142

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 * + - col1 - + - col0 = - - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5905
SELECT DISTINCT CAST( NULL AS DECIMAL ) - + col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5905
SELECT DISTINCT CAST ( NULL AS REAL ) - + col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5906
SELECT DISTINCT MAX( ALL + ( - + col0 ) ) - - 57 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5906
SELECT DISTINCT MAX ( ALL + ( - + col0 ) ) - - 57 FROM tab1 AS cor0
----
6

query II rowsort
SELECT DISTINCT + col1, col2 * + 58 * + + 2 * - col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 78 * - col2 FROM tab2 AS cor0
----
-1794
-3120
-4524

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT + MIN( DISTINCT col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-5909
SELECT + MIN ( DISTINCT col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT DISTINCT 76 * - COUNT( * ) AS col0 FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-5910
SELECT DISTINCT 76 * - COUNT ( * ) AS col0 FROM tab1
----
-228

onlyif mysql # DIV for integer division: 
query I rowsort label-5911
SELECT 75 DIV - col1 FROM tab0
----
-3
-75
0

skipif mysql # not compatible
query I rowsort label-5911
SELECT 75 / - col1 FROM tab0
----
-3
-75
0

query I rowsort
SELECT + + 35 FROM tab0 WHERE NOT + col2 + 95 - + col2 * - - col1 IS NULL
----
35
35
35

query I rowsort
SELECT DISTINCT - 44 AS col1 FROM tab2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5914
SELECT - SUM( + 38 ) FROM tab1
----
-114

skipif mysql # not compatible
query I rowsort label-5914
SELECT - SUM ( + 38 ) FROM tab1
----
-114

query I rowsort
SELECT DISTINCT col1 * + - 57 AS col1 FROM tab0
----
-1197
-4617
-57

query I rowsort
SELECT DISTINCT + col1 * - - col1 AS col1 FROM tab1 AS cor0
----
196
2209
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + col1 ) col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5918
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) * + 98 FROM tab2 WHERE NOT NULL = ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5918
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) * + 98 FROM tab2 WHERE NOT NULL = ( - col2 )
----
0

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT col1 IS NULL
----
-14
-47
-5

query I rowsort
SELECT col0 * + col1 AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( 82 * + col1 ) NOT IN ( + ( + col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT ALL COUNT( DISTINCT ( col0 ) ) + + 49 FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-5922
SELECT ALL COUNT ( DISTINCT ( col0 ) ) + + 49 FROM tab0
----
52

query I rowsort
SELECT ALL - 3 - col1 AS col1 FROM tab1
----
-17
-50
-8

onlyif mysql # DIV for integer division: 
query I rowsort label-5924
SELECT col2 DIV col1 + + col1 FROM tab0
----
100
21
81

skipif mysql # not compatible
query I rowsort label-5924
SELECT col2 / col1 + + col1 FROM tab0
----
100
21
81

query I rowsort
SELECT ( + col1 ) + col1 AS col0 FROM tab1
----
10
28
94

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( + col1 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL = 81 / col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5928
SELECT ALL * FROM tab0 WHERE CAST( col0 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query III rowsort label-5928
SELECT ALL * FROM tab0 WHERE CAST ( col0 AS INTEGER ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 ) BETWEEN NULL AND 94
----

query I rowsort
SELECT DISTINCT ( - col1 ) FROM tab0 WHERE NOT col2 * - col0 NOT BETWEEN ( col1 ) AND - col0
----

query I rowsort
SELECT 58 + 68 * col0 FROM tab0
----
1078
5974
6654

query I rowsort
SELECT - 27 AS col1 FROM tab0 WHERE NOT col0 * 67 > + col0 + + 17
----

query I rowsort
SELECT AVG ( col0 ) AS col0 FROM tab2 WHERE col0 <> NULL
----
NULL

query I rowsort
SELECT ALL col2 - 46 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-36
1
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5935
SELECT * FROM tab2 WHERE ( - col2 + CAST( NULL AS SIGNED ) ) NOT BETWEEN ( NULL ) AND ( - 6 )
----

skipif mysql # not compatible
query III rowsort label-5935
SELECT * FROM tab2 WHERE ( - col2 + CAST ( NULL AS INTEGER ) ) NOT BETWEEN ( NULL ) AND ( - 6 )
----

query I rowsort
SELECT DISTINCT 97 * + 16 AS col0 FROM tab0
----
1552

onlyif mysql # aggregate syntax: 
query I rowsort label-5937
SELECT - 80 + COUNT( * ) AS col1 FROM tab0 WHERE NULL > ( + 53 )
----
-80

skipif mysql # not compatible
query I rowsort label-5937
SELECT - 80 + COUNT ( * ) AS col1 FROM tab0 WHERE NULL > ( + 53 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5938
SELECT + 86 + - COUNT( * ) AS col1 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-5938
SELECT + 86 + - COUNT ( * ) AS col1 FROM tab2
----
83

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT - 17 * + 33 FROM tab2
----
-561

onlyif mysql # aggregate syntax: 
query I rowsort label-5941
SELECT COUNT( ALL 34 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5941
SELECT COUNT ( ALL 34 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5942
SELECT DISTINCT + CAST( ( col1 ) AS SIGNED ) * col0 AS col0 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT + CAST ( ( col1 ) AS INTEGER ) * col0 AS col0 FROM tab1
----
425
4277
714

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN ( - 54 + col2 ) AND NULL
----

query I rowsort
SELECT ALL - 30 FROM tab0 WHERE ( + col2 ) BETWEEN NULL AND ( - 95 * + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - col1 col2 FROM tab0
----
-162
-2
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 94 col0 FROM tab0
----
4418
9306
940

query I rowsort
SELECT 61 * col0 AS col0 FROM tab1
----
3111
5185
5551

query I rowsort
SELECT col2 + - col1 * 6 FROM tab1 AS cor0
----
-214
12
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT MAX( col1 ) + - COUNT( + col0 + col2 ) FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-5949
SELECT MAX ( col1 ) + - COUNT ( + col0 + col2 ) FROM tab1 AS cor0
----
44

onlyif mysql # DIV for integer division: 
query I rowsort label-5950
SELECT - col2 DIV + 1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-5950
SELECT - col2 / + 1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT 86 AS col0 FROM tab1 cor0
----
86

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 32 IS NULL
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE - 64 * 27 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5955
SELECT ALL * FROM tab2 WHERE - 57 / - CAST( col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5955
SELECT ALL * FROM tab2 WHERE - 57 / - CAST ( col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL - col0 + 52 AS col0 FROM tab1
----
-33
-39
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5957
SELECT DISTINCT COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE ( + col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5957
SELECT DISTINCT COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE ( + col2 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5958
SELECT DISTINCT + MIN( - col2 ) FROM tab0 AS cor0 WHERE + col0 <> col1 - + 15 * - 63
----
-99

skipif mysql # not compatible
query I rowsort label-5958
SELECT DISTINCT + MIN ( - col2 ) FROM tab0 AS cor0 WHERE + col0 <> col1 - + 15 * - 63
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT + MIN( DISTINCT col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5959
SELECT + MIN ( DISTINCT col1 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5960
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5961
SELECT DISTINCT CAST( AVG ( ( + col1 ) ) AS SIGNED ) DIV - 15 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-2

skipif mysql # not compatible
query I rowsort label-5961
SELECT DISTINCT CAST ( AVG ( ( + col1 ) ) AS INTEGER ) / - 15 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5962
SELECT + AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5962
SELECT + AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5963
SELECT COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT ( + col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5963
SELECT COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT ( + col0 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5964
SELECT MIN( ALL - col0 ) AS col0 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5964
SELECT MIN ( ALL - col0 ) AS col0 FROM tab2 cor0
----
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5966
SELECT - COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT ( NULL ) <= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5966
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT ( NULL ) <= col2
----
NULL

query I rowsort
SELECT ALL - ( + col1 ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-5968
SELECT col1 DIV 14 AS col2 FROM tab0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-5968
SELECT col1 / 14 AS col2 FROM tab0
----
0
1
5

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN 66 AND + col1
----

query I rowsort
SELECT DISTINCT + ( - + col2 ) * - col0 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT col1 FROM tab0 WHERE NOT - col0 IN ( 73 * col2 + 2 )
----
1
21
81

query I rowsort
SELECT - col1 * - 22 FROM tab0
----
1782
22
462

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5973
SELECT + 46 DIV + SUM( col1 ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5973
SELECT + 46 / + SUM ( col1 ) AS col1 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT DISTINCT + ( 66 ) * COUNT( * ) FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-5974
SELECT DISTINCT + ( 66 ) * COUNT ( * ) FROM tab2
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT DISTINCT MIN( + 58 ) + - + COUNT( * ) FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-5975
SELECT DISTINCT MIN ( + 58 ) + - + COUNT ( * ) FROM tab1
----
55

query I rowsort
SELECT - 46 * - 87 FROM tab1
----
4002
4002
4002

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT + col1 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5978
SELECT - 19 DIV + 70 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-5978
SELECT - 19 / + 70 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5979
SELECT ALL + + 63 AS col0, col0 + + - CAST( 33 AS SIGNED ) + - col1 FROM tab0 cor0
----
63
-99
63
33
63
63

skipif mysql # not compatible
query II rowsort label-5979
SELECT ALL + + 63 AS col0, col0 + + - CAST ( 33 AS INTEGER ) + - col1 FROM tab0 cor0
----
63
-99
63
33
63
63

query I rowsort
SELECT ALL 63 FROM tab0 AS cor0 WHERE ( + col2 ) = NULL
----

query I rowsort
SELECT 97 + + col2 AS col0 FROM tab2 cor0
----
120
137
155

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE - ( col1 ) IS NOT NULL
----
14
47
5

query II rowsort
SELECT ALL + + col0, + 55 AS col1 FROM tab0 AS cor0
----
15
55
87
55
97
55

query I rowsort
SELECT ( col2 ) * + 16 + col0 AS col0 FROM tab0 AS cor0
----
1681
247
767

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * - 43 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5986
SELECT + MAX( col1 ) FROM tab2 AS cor0 WHERE col0 + col0 IS NOT NULL
----
77

skipif mysql # not compatible
query I rowsort label-5986
SELECT + MAX ( col1 ) FROM tab2 AS cor0 WHERE col0 + col0 IS NOT NULL
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT ALL - 61 + - - COUNT( * ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5987
SELECT ALL - 61 + - - COUNT ( * ) FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-5988
SELECT DISTINCT - COUNT( * ) AS col0, - MAX( DISTINCT + - 6 ) AS col2 FROM tab2 cor0
----
-3
6

skipif mysql # not compatible
query II rowsort label-5988
SELECT DISTINCT - COUNT ( * ) AS col0, - MAX ( DISTINCT + - 6 ) AS col2 FROM tab2 cor0
----
-3
6

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5990
SELECT ALL col0 * + col1 * - 56 + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5990
SELECT ALL col0 * + col1 * - 56 + - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5991
SELECT COUNT( * ) * MIN( - 37 ) col2 FROM tab2 WHERE 88 + - 46 > NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5991
SELECT COUNT ( * ) * MIN ( - 37 ) col2 FROM tab2 WHERE 88 + - 46 > NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5992
SELECT COUNT( * ) * + + 13 * - SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) * COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5992
SELECT COUNT ( * ) * + + 13 * - SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + col1 + - 73 FROM tab2
----
-22
-6
4

query I rowsort
SELECT ALL col1 * col0 AS col0 FROM tab1 WHERE NULL >= - + 0 + col1
----

query I rowsort
SELECT DISTINCT 31 + + col2 FROM tab2
----
54
71
89

onlyif mysql # aggregate syntax: 
query II rowsort label-5996
SELECT COUNT( + col0 ) AS col0, + 51 FROM tab0
----
3
51

skipif mysql # not compatible
query II rowsort label-5996
SELECT COUNT ( + col0 ) AS col0, + 51 FROM tab0
----
3
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5997
SELECT DISTINCT 58 + + col1 DIV - 27 AS col0 FROM tab1
----
57
58

skipif mysql # not compatible
query I rowsort label-5997
SELECT DISTINCT 58 + + col1 / - 27 AS col0 FROM tab1
----
57
58

query I rowsort
SELECT ( + + col1 ) AS col0 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL col2 - + - 69 FROM tab0
----
116
168
79

onlyif mysql # DIV for integer division: 
query I rowsort label-6000
SELECT col1 * - - 80 * + col2 DIV ( + col2 ) * col0 + col1 * + col1 AS col2 FROM tab1
----
34025
344369
57316

skipif mysql # not compatible
query I rowsort label-6000
SELECT col1 * - - 80 * + col2 / ( + col2 ) * col0 + col1 * + col1 AS col2 FROM tab1
----
34025
344369
57316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6001
SELECT ALL + COUNT( * ) DIV + - 77 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6001
SELECT ALL + COUNT ( * ) / + - 77 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE + 23 BETWEEN NULL AND - 13 * + 48 * - col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 + - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 86 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab1 AS cor0 WHERE NULL IN ( 30 )
----

query II rowsort
SELECT 59 * + col2 * - col2 AS col1, + 8 AS col1 FROM tab2 AS cor0
----
-198476
8
-31211
8
-94400
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6007
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 48 BETWEEN - CAST( NULL AS SIGNED ) AND ( + + 31 - - + col0 )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-6007
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 48 BETWEEN - CAST ( NULL AS INTEGER ) AND ( + + 31 - - + col0 )
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT ( - + COUNT( ALL + col1 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6008
SELECT ( - + COUNT ( ALL + col1 ) ) FROM tab1
----
-3

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 WHERE NOT + 85 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, 2 AS col2 FROM tab0
----
15
2
87
2
97
2

query II rowsort
SELECT ALL col1, - col1 AS col1 FROM tab2
----
51
-51
67
-67
77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6012
SELECT COUNT( + 43 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6012
SELECT COUNT ( + 43 ) FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6013
SELECT DISTINCT - CAST( - MAX( + + col2 ) AS SIGNED ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-6013
SELECT DISTINCT - CAST ( - MAX ( + + col2 ) AS INTEGER ) AS col0 FROM tab2
----
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL = - col2 * - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6015
SELECT + ( - + CAST( NULL AS DECIMAL ) ) * col2 FROM tab2 WHERE NOT NULL > - col0
----

skipif mysql # not compatible
query I rowsort label-6015
SELECT + ( - + CAST ( NULL AS REAL ) ) * col2 FROM tab2 WHERE NOT NULL > - col0
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT 98 / - 90 NOT BETWEEN ( - 62 ) AND ( 51 )
----
1
21
81

query I rowsort
SELECT DISTINCT + col2 * 94 FROM tab0
----
4418
9306
940

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT DISTINCT - ( - MAX( ALL - col1 ) ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-6018
SELECT DISTINCT - ( - MAX ( ALL - col1 ) ) AS col0 FROM tab2
----
-51

query II rowsort
SELECT DISTINCT col1, - col2 AS col1 FROM tab2 cor0
----
51
-23
67
-58
77
-40

query I rowsort
SELECT - - col2 * - + col1 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query II rowsort label-6021
SELECT ALL col2, - col1 DIV - - col1 FROM tab1 AS cor0
----
59
-1
68
-1
96
-1

skipif mysql # not compatible
query II rowsort label-6021
SELECT ALL col2, - col1 / - - col1 FROM tab1 AS cor0
----
59
-1
68
-1
96
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6022
SELECT CAST( NULL AS SIGNED ) * - - 7 + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6022
SELECT CAST ( NULL AS INTEGER ) * - - 7 + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 LEFT OUTER JOIN tab1 AS cor1 ON NOT NULL BETWEEN NULL AND NULL
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( - col2 ) AND NULL
----

query I rowsort
SELECT + col2 / - col0 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6026
SELECT ALL - MAX( ALL col0 ) FROM tab1 WHERE NOT + - ( - - 27 ) < + col2 / - 35 * + + col2 / - 30
----
NULL

skipif mysql # not compatible
query I rowsort label-6026
SELECT ALL - MAX ( ALL col0 ) FROM tab1 WHERE NOT + - ( - - 27 ) < + col2 / - 35 * + + col2 / - 30
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 / - col0 NOT IN ( - col2 + - col1 + + col2 + - col1 * 63 )
----

query I rowsort
SELECT + + 3 * 61 FROM tab0 AS cor0
----
183
183
183

query I rowsort
SELECT - 4 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6030
SELECT ALL - SUM( ALL + ( 33 ) ) col1, - COUNT( * ) FROM tab2 AS cor0
----
-99
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6030
SELECT ALL - SUM ( ALL + ( 33 ) ) col1, - COUNT ( * ) FROM tab2 AS cor0
----
-99
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT DISTINCT + + SUM( DISTINCT + 41 ) FROM tab1 AS cor0 WHERE NOT - col1 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6031
SELECT DISTINCT + + SUM ( DISTINCT + 41 ) FROM tab1 AS cor0 WHERE NOT - col1 >= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 71 * + 25 col1 FROM tab2 AS cor0 WHERE ( col0 BETWEEN NULL AND + 24 + 22 )
----

query I rowsort
SELECT - col1 * 59 AS col0 FROM tab2 cor0
----
-3009
-3953
-4543

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6034
SELECT DISTINCT col0, CAST( - 80 AS SIGNED ) FROM tab2
----
46
-80
64
-80
75
-80

skipif mysql # not compatible
query II rowsort label-6034
SELECT DISTINCT col0, CAST ( - 80 AS INTEGER ) FROM tab2
----
46
-80
64
-80
75
-80

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 <= + 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6036
SELECT - CAST( - 76 AS SIGNED ) + - col0 + + col2 FROM tab0
----
-1
108
78

skipif mysql # not compatible
query I rowsort label-6036
SELECT - CAST ( - 76 AS INTEGER ) + - col0 + + col2 FROM tab0
----
-1
108
78

query III rowsort
SELECT * FROM tab2 WHERE - col1 * col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6038
SELECT * FROM tab2 WHERE + col1 IN ( + CAST( + + col1 AS SIGNED ) * - col2 + + CAST( - - 60 AS DECIMAL ) + col2 * - 39 )
----

skipif mysql # not compatible
query III rowsort label-6038
SELECT * FROM tab2 WHERE + col1 IN ( + CAST ( + + col1 AS INTEGER ) * - col2 + + CAST ( - - 60 AS REAL ) + col2 * - 39 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 + col0 col1 FROM tab0
----
-45
27
37

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > - 15 + - + 48 - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT ALL + + 62 - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6041
SELECT ALL + + 62 - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6042
SELECT ALL - SUM( ALL - 17 ) DIV 42 - + 19 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-6042
SELECT ALL - SUM ( ALL - 17 ) / 42 - + 19 FROM tab0 AS cor0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6043
SELECT DISTINCT CAST( - CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6043
SELECT DISTINCT CAST ( - CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) col0 FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6044
SELECT COUNT( * ) AS col2 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6044
SELECT COUNT ( * ) AS col2 FROM tab1, tab1 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT DISTINCT + 70 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
70

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL <= col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + col0 ) col1 FROM tab2 cor0
----
-46
-64
-75

query II rowsort
SELECT ( 47 ) AS col0, col2 * - 69 FROM tab1 cor0
----
47
-4071
47
-4692
47
-6624

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT + SUM( 79 ) FROM tab2 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-6050
SELECT + SUM ( 79 ) FROM tab2 AS cor0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-6051
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <> col0
----
0

skipif mysql # not compatible
query I rowsort label-6051
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <> col0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND 64
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6053
SELECT - col2 FROM tab1 AS cor0 WHERE NOT - col1 * + col2 <> ( + - ( - CAST( - - col2 AS SIGNED ) ) + + col2 )
----

skipif mysql # not compatible
query I rowsort label-6053
SELECT - col2 FROM tab1 AS cor0 WHERE NOT - col1 * + col2 <> ( + - ( - CAST ( - - col2 AS INTEGER ) ) + + col2 )
----

query I rowsort
SELECT ALL - col2 + + col1 AS col1 FROM tab2 AS cor0 WHERE + col2 + - col0 + + col2 / + + 45 * - col0 = NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 40 <> + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6056
SELECT ALL - + 34 DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL - + 34 / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-11

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE NOT + - col1 BETWEEN - + col2 AND + - col2 * - 60 * - ( + - col2 ) + + + col1 + + col1 * col2
----
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-6058
SELECT DISTINCT 45 AS col2, MIN( + 40 ) FROM tab0
----
45
40

skipif mysql # not compatible
query II rowsort label-6058
SELECT DISTINCT 45 AS col2, MIN ( + 40 ) FROM tab0
----
45
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT SUM( DISTINCT - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-6059
SELECT SUM ( DISTINCT - col0 ) FROM tab2
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6060
SELECT + CAST( NULL AS SIGNED ) / + 41 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6060
SELECT + CAST ( NULL AS INTEGER ) / + 41 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6061
SELECT 36 * + COUNT( * ) AS col1 FROM tab2
----
108

skipif mysql # not compatible
query I rowsort label-6061
SELECT 36 * + COUNT ( * ) AS col1 FROM tab2
----
108

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IS NULL AND NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6063
SELECT ALL col1 DIV col2 * - col1 AS col2, ( + col2 ) + + col0 + + col0 FROM tab1
----
0
198
0
229
0
250

skipif mysql # not compatible
query II rowsort label-6063
SELECT ALL col1 / col2 * - col1 AS col2, ( + col2 ) + + col0 + + col0 FROM tab1
----
0
198
0
229
0
250

onlyif mysql # aggregate syntax: 
query I rowsort label-6064
SELECT + MAX( ALL + col2 ) col1 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6064
SELECT + MAX ( ALL + col2 ) col1 FROM tab0
----
99

query I rowsort
SELECT DISTINCT col2 + + - col0 AS col2 FROM tab0 cor0
----
-77
2
32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6066
SELECT SUM( ALL + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6066
SELECT SUM ( ALL + CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6067
SELECT - col2 DIV + col1 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6067
SELECT - col2 / + col1 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - 30 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT - col1 + - 36 FROM tab1 cor0
----
-41
-50
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6070
SELECT ALL + 25, ( + CAST( + COUNT( ALL 54 ) AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
25
3

skipif mysql # not compatible
query II rowsort label-6070
SELECT ALL + 25, ( + CAST ( + COUNT ( ALL 54 ) AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
25
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN col2 + - - ( - - col2 ) * + col1 AND - + col0
----

query I rowsort
SELECT ALL - - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6073
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - CAST( 83 AS SIGNED ) ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6073
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - CAST ( 83 AS INTEGER ) ) = ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6074
SELECT ALL MAX( - CAST( + col0 AS SIGNED ) ) + COUNT( * ) FROM tab0 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6074
SELECT ALL MAX ( - CAST ( + col0 AS INTEGER ) ) + COUNT ( * ) FROM tab0 cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-6075
SELECT - MAX( ALL 87 ) FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-6075
SELECT - MAX ( ALL 87 ) FROM tab1
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6076
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - col0 AS col1, 49 AS col2 FROM tab2 WHERE NOT ( 79 < + - col1 + col2 )
----
NULL
49

skipif mysql # not compatible
query II rowsort label-6076
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - col0 AS col1, 49 AS col2 FROM tab2 WHERE NOT ( 79 < + - col1 + col2 )
----
NULL
49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 43 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6078
SELECT DISTINCT col1 + + col1 DIV + col0 col0 FROM tab2
----
52
67
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6078
SELECT DISTINCT col1 + + col1 / + col0 col0 FROM tab2
----
52
67
78

query I rowsort
SELECT + 5 * + + ( - ( + + col0 ) ) * - 38 * - ( 8 ) FROM tab0
----
-132240
-147440
-22800

query I rowsort
SELECT ALL + 48 * 96 + col2 + - 84 FROM tab1
----
4583
4592
4620

onlyif mysql # DIV for integer division: 
query I rowsort label-6081
SELECT - col0 DIV - ( - 90 ) * - + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6081
SELECT - col0 / - ( - 90 ) * - + col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6082
SELECT - SUM( col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-6082
SELECT - SUM ( col0 ) AS col1 FROM tab1
----
-227

query I rowsort
SELECT DISTINCT 51 + - + col0 FROM tab0
----
-36
-46
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6084
SELECT DISTINCT col0 - col1, - CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab2
----
-13
NULL
-5
NULL
8
NULL

skipif mysql # not compatible
query II rowsort label-6084
SELECT DISTINCT col0 - col1, - CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab2
----
-13
NULL
-5
NULL
8
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col2 = col1 / + col0 + col2 * - col2 * col2 / - col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6086
SELECT ALL - SUM( ALL + col2 ) AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-6086
SELECT ALL - SUM ( ALL + col2 ) AS col1 FROM tab0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + 11 col2 FROM tab2
----
-506
-704
-825

query III rowsort
SELECT * FROM tab1 WHERE NOT 93 * - 89 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6089
SELECT DISTINCT 70 AS col2, - ( - CAST( - col0 AS SIGNED ) ) + - col2 FROM tab2
----
70
-104
70
-133
70
-69

skipif mysql # not compatible
query II rowsort label-6089
SELECT DISTINCT 70 AS col2, - ( - CAST ( - col0 AS INTEGER ) ) + - col2 FROM tab2
----
70
-104
70
-133
70
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6090
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT ALL 54 + col1 FROM tab1 WHERE NOT + col2 IS NULL
----
101
59
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 + - + ( - col1 ) + col0 + - + col2 * - + col1 col2 FROM tab0 AS cor0 WHERE NOT + 82 * - - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 51 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6094
SELECT ALL + col2 DIV + 53 AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6094
SELECT ALL + col2 / + 53 AS col0 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT + ( 65 ) AS col0 FROM tab2 cor0
----
65
65
65

query I rowsort
SELECT - 91 * 92 AS col2 FROM tab1 AS cor0
----
-8372
-8372
-8372

query I rowsort
SELECT ( + - 52 ) AS col1 FROM tab1
----
-52
-52
-52

query II rowsort
SELECT DISTINCT col1 * col2 AS col0, + 77 FROM tab1
----
1344
77
295
77
3196
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + - col0 col2, + col0 AS col2 FROM tab0 cor0
----
0
15
0
87
0
97

query II rowsort
SELECT + + col0 * + + 35 * + + 87 + - col0 AS col1, col2 AS col2 FROM tab1 AS cor0
----
155244
96
258740
59
277004
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6101
SELECT - COUNT( * ) + - 0 * + 41 AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6101
SELECT - COUNT ( * ) + - 0 * + 41 AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + 25 + 69 FROM tab0 AS cor0
----
94
94
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 8 - - 92 col2 FROM tab2 AS cor0
----
123
140
158

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT - COUNT( ALL + 96 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6104
SELECT - COUNT ( ALL + 96 ) AS col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6105
SELECT ALL - - AVG ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6105
SELECT ALL - - AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query II rowsort
SELECT col0, + ( + col2 ) AS col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6108
SELECT DISTINCT - SUM( + 18 ) AS col1 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-6108
SELECT DISTINCT - SUM ( + 18 ) AS col1 FROM tab1 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT - + COUNT( * ) - SUM( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
118

skipif mysql # not compatible
query I rowsort label-6109
SELECT - + COUNT ( * ) - SUM ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
118

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col1 - + ( - col1 ) * - + 43
----

query I rowsort
SELECT col2 - + + col1 AS col0 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT col0 - - 81 * - - 12 - - 71 AS col2 FROM tab2 AS cor0
----
1089
1107
1118

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND + - col0
----

query I rowsort
SELECT ALL + col2 * - ( + col1 ) FROM tab2 AS cor0
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 * - col0 + - 83 col0, + col0 * + col1 AS col0 FROM tab1 AS cor0
----
342
425
4194
4277
631
714

query I rowsort
SELECT ALL 48 * col0 FROM tab1
----
2448
4080
4368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6117
SELECT + 21 * + - 67 * col1 + col2 AS col1 FROM tab1 WHERE NOT - col0 * + + 21 + + 68 < - col2 + - ( CAST( - col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6117
SELECT + 21 * + - 67 * col1 + col2 AS col1 FROM tab1 WHERE NOT - col0 * + + 21 + + 68 < - col2 + - ( CAST ( - col1 AS INTEGER ) )
----

query II rowsort
SELECT col0, + col0 - - + 70 FROM tab1
----
51
121
85
155
91
161

onlyif mysql # aggregate syntax: 
query II rowsort label-6119
SELECT DISTINCT 22 AS col0, + MAX( - col0 ) - + + 98 AS col2 FROM tab0 AS cor0
----
22
-113

skipif mysql # not compatible
query II rowsort label-6119
SELECT DISTINCT 22 AS col0, + MAX ( - col0 ) - + + 98 AS col2 FROM tab0 AS cor0
----
22
-113

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 * col0 ) >= NULL
----

query I rowsort
SELECT ALL + col2 * - 53 AS col0 FROM tab2 AS cor0
----
-1219
-2120
-3074

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT ALL + MIN( DISTINCT - ( + + col2 ) ) col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6122
SELECT ALL + MIN ( DISTINCT - ( + + col2 ) ) col1 FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6123
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - CAST( col1 AS SIGNED ), 79 )
----

skipif mysql # not compatible
query III rowsort label-6123
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - CAST ( col1 AS INTEGER ), 79 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT ALL - + COUNT( ALL col0 ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL - + COUNT ( ALL col0 ) AS col2 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6125
SELECT DISTINCT CAST( col2 AS SIGNED ) AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6125
SELECT DISTINCT CAST ( col2 AS INTEGER ) AS col1 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL ( + col0 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 70 * + col1 AS col0 FROM tab0 AS cor0
----
1470
5670
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6129
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - col0 ) / + + col1 IN ( + col2 + col2 - 96, CAST( NULL AS SIGNED ), - 3, + - col2 )
----

skipif mysql # not compatible
query III rowsort label-6129
SELECT * FROM tab1 AS cor0 WHERE NOT + ( - col0 ) / + + col1 IN ( + col2 + col2 - 96, CAST ( NULL AS INTEGER ), - 3, + - col2 )
----

query II rowsort
SELECT DISTINCT + col2, col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6131
SELECT - 52 + COUNT( * ) DIV + SUM( col0 ) AS col0 FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-6131
SELECT - 52 + COUNT ( * ) / + SUM ( col0 ) AS col0 FROM tab2 AS cor0
----
-52

query II rowsort
SELECT ALL + col2 * 8 + - col0, col2 FROM tab0
----
-7
10
361
47
695
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + 47 * + col0, + 52 )
----

query I rowsort
SELECT DISTINCT col1 + - 5 + - col1 * - - 67 FROM tab1
----
-3107
-335
-929

query III rowsort
SELECT * FROM tab0 WHERE - col1 - - col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT 36 * COUNT( * ) AS col2 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-6136
SELECT 36 * COUNT ( * ) AS col2 FROM tab1
----
108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6137
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6137
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query II rowsort
SELECT + col2 AS col1, - ( + 2 ) + + col2 AS col2 FROM tab2 WHERE ( col1 NOT BETWEEN NULL AND + - col2 )
----
23
21
40
38
58
56

query I rowsort
SELECT - 53 * 77 FROM tab2
----
-4081
-4081
-4081

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, + 46 AS col2 FROM tab1 AS cor0
----
-14
46
-47
46
-5
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6141
SELECT ALL col1 DIV - 7 AS col0 FROM tab0 AS cor0
----
-11
-3
0

skipif mysql # not compatible
query I rowsort label-6141
SELECT ALL col1 / - 7 AS col0 FROM tab0 AS cor0
----
-11
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT DISTINCT + SUM( + - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-6142
SELECT DISTINCT + SUM ( + - col2 ) FROM tab2 AS cor0
----
-121

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6144
SELECT - COUNT( * ) - COUNT( * ) - + 20 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-6144
SELECT - COUNT ( * ) - COUNT ( * ) - + 20 FROM tab2
----
-26

query I rowsort
SELECT + col2 + + - 32 + - col1 AS col1 FROM tab0
----
-43
-66
66

query II rowsort
SELECT + col0 + + - col2 + + - 24 + + - col1 AS col1, col1 AS col0 FROM tab1
----
-3
5
-48
47
-83
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT DISTINCT 39 + COUNT( * ) AS col0 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-6147
SELECT DISTINCT 39 + COUNT ( * ) AS col0 FROM tab0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-6148
SELECT col1 + - 71 + - 89 DIV 65 * - 82 AS col0 FROM tab1
----
16
25
58

skipif mysql # not compatible
query I rowsort label-6148
SELECT col1 + - 71 + - 89 / 65 * - 82 AS col0 FROM tab1
----
16
25
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6149
SELECT - col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6149
SELECT - col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + - col2 ) - col1 FROM tab1
----
-110
-115
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) + + + col2 col0 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT ALL 26 * - col2 + - col1 - - 94 - - col1 * - col2 AS col2 FROM tab0 AS cor0
----
-2580
-397
-5016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6153
SELECT ALL + + CAST( - 35 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-35
-35
-35

skipif mysql # not compatible
query I rowsort label-6153
SELECT ALL + + CAST ( - 35 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-35
-35
-35

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 31 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 81 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 >= + col2 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * + col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT DISTINCT + + COUNT( * ) - COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT + + COUNT ( * ) - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 87 + col1 AND + 59
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6160
SELECT 67 DIV 76 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6160
SELECT 67 / 76 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col2 + + col0 AND NULL
----

query I rowsort
SELECT ALL 36 FROM tab0 cor0
----
36
36
36

query II rowsort
SELECT ALL - 9, col1 FROM tab1
----
-9
14
-9
47
-9
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT ALL + COUNT( DISTINCT - col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6164
SELECT ALL + COUNT ( DISTINCT - col0 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT - MIN( - 54 ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-6165
SELECT - MIN ( - 54 ) FROM tab2
----
54

query I rowsort
SELECT DISTINCT + col1 * + 91 AS col0 FROM tab1
----
1274
4277
455

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT + SUM( ALL col0 ) * 66 + - - 75 AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL OR ( NOT NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6167
SELECT + SUM ( ALL col0 ) * 66 + - - 75 AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL OR ( NOT NULL IS NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6168
SELECT DISTINCT MAX( + 48 ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6168
SELECT DISTINCT MAX ( + 48 ) FROM tab2 AS cor0
----
48

query II rowsort
SELECT DISTINCT col1, - 87 FROM tab0
----
1
-87
21
-87
81
-87

query I rowsort
SELECT - + 64 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 / - col2 * col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6172
SELECT - COUNT( * ) + + + 29 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
20

skipif mysql # not compatible
query I rowsort label-6172
SELECT - COUNT ( * ) + + + 29 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6173
SELECT + CAST( + - 95 AS SIGNED ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6173
SELECT + CAST ( + - 95 AS INTEGER ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 > - col0 - - + col2 + - col0
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6175
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----
0

query II rowsort
SELECT - col1, 28 AS col0 FROM tab2 AS cor0
----
-51
28
-67
28
-77
28

query I rowsort
SELECT ALL + 90 + - 45 * - col1 FROM tab2 AS cor0
----
2385
3105
3555

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT SUM( DISTINCT 55 ) FROM tab0 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-6178
SELECT SUM ( DISTINCT 55 ) FROM tab0 AS cor0
----
55

query I rowsort
SELECT DISTINCT col1 + - 10 * + 28 FROM tab1 AS cor0
----
-233
-266
-275

query I rowsort
SELECT DISTINCT col1 + - - col1 FROM tab1
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6181
SELECT DISTINCT + col2 + + col2 * - + CAST( NULL AS SIGNED ) * col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6181
SELECT DISTINCT + col2 + + col2 * - + CAST ( NULL AS INTEGER ) * col2 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - col1 * col1 + + col1 + + 42 FROM tab2 WHERE + 79 + - 99 >= NULL
----

query I rowsort
SELECT col2 FROM tab1 WHERE NULL NOT BETWEEN - ( - col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6184
SELECT + COUNT( ALL - - col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6184
SELECT + COUNT ( ALL - - col2 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE - col1 BETWEEN - + col2 * + - col1 + col0 AND - + 78
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * + col0 BETWEEN - 80 AND + 78 AND NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL col1 * col2 * + col1 * - 28 AS col0 FROM tab1
----
-41300
-4205936
-526848

query I rowsort
SELECT col2 * 65 - + col0 + - 12 + - col2 + col0 * + col0 FROM tab0 AS cor0
----
15636
3206
8110

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( col1, col2 )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NOT + col0 + - + 86 * + col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 99 + - + col0 FROM tab0 AS cor0
----
-114
-186
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT SUM( DISTINCT 84 ) + + MIN( col1 ) + + - 68 AS col1 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-6192
SELECT SUM ( DISTINCT 84 ) + + MIN ( col1 ) + + - 68 AS col1 FROM tab0 AS cor0
----
17

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - - 50 FROM tab2 cor0
----
50
50
50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6195
SELECT DISTINCT - col1 + - col1 + col1 * - CAST( + 26 AS SIGNED ) * - 55 + + 77 DIV + col2 FROM tab2 AS cor0
----
109957
72831
95677

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT - col1 + - col1 + col1 * - CAST ( + 26 AS INTEGER ) * - 55 + + 77 / + col2 FROM tab2 AS cor0
----
109957
72831
95677

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - - 1 + col2 col2 FROM tab1
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT - 30 + + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-21

skipif mysql # not compatible
query I rowsort label-6197
SELECT - 30 + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6198
SELECT DISTINCT - CAST( col1 AS SIGNED ) - + col0 FROM tab2
----
-141
-142
-97

skipif mysql # not compatible
query I rowsort label-6198
SELECT DISTINCT - CAST ( col1 AS INTEGER ) - + col0 FROM tab2
----
-141
-142
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 13 AS col1, 56 col0 FROM tab0 AS cor0
----
13
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6200
SELECT - - 75 - + + MIN( ALL + CAST( NULL AS SIGNED ) ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6200
SELECT - - 75 - + + MIN ( ALL + CAST ( NULL AS INTEGER ) ) col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT - MAX( - + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6201
SELECT - MAX ( - + col1 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT + 46 * - col1 * col2 FROM tab0 AS cor0
----
-175122
-4554
-9660

query I rowsort
SELECT 8 * + + col0 AS col0 FROM tab1 AS cor0
----
408
680
728

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT ALL - MIN( ALL - - 60 ) FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-6204
SELECT ALL - MIN ( ALL - - 60 ) FROM tab1 AS cor0
----
-60

query I rowsort
SELECT ALL - 26 * col2 FROM tab0 AS cor0
----
-1222
-2574
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-6206
SELECT DISTINCT - 77 * - MIN( - col2 ) FROM tab1 AS cor0
----
-7392

skipif mysql # not compatible
query I rowsort label-6206
SELECT DISTINCT - 77 * - MIN ( - col2 ) FROM tab1 AS cor0
----
-7392

query I rowsort
SELECT ALL - ( + + 89 ) FROM tab2
----
-89
-89
-89

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( NOT ( NOT NULL IS NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT DISTINCT - ( - + COUNT( * ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6209
SELECT DISTINCT - ( - + COUNT ( * ) ) AS col0 FROM tab1
----
3

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT + 61 * - col1 * + - col2 * + col1 - + col0 >= col2 * col0 * 54
----
59

query I rowsort
SELECT - col0 * - 84 * - + col1 AS col1 FROM tab2
----
-197064
-413952
-422100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 93 AS col1 FROM tab2 AS cor0 WHERE - col2 > + + col2 + + col0 + - col2 * + col2
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6214
SELECT 46 - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
46

skipif mysql # not compatible
query I rowsort label-6214
SELECT 46 - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
46

query II rowsort
SELECT ALL + col2 AS col2, col0 FROM tab1
----
59
85
68
91
96
51

query II rowsort
SELECT DISTINCT col2 AS col2, col2 AS col1 FROM tab2
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query II rowsort label-6217
SELECT DISTINCT - + 77 + - 17 AS col2, MAX( + + 79 ) AS col2 FROM tab2 WHERE NOT ( - + 6 ) IS NULL
----
-94
79

skipif mysql # not compatible
query II rowsort label-6217
SELECT DISTINCT - + 77 + - 17 AS col2, MAX ( + + 79 ) AS col2 FROM tab2 WHERE NOT ( - + 6 ) IS NULL
----
-94
79

query I rowsort
SELECT col1 * + - col2 FROM tab2 cor0
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, - col2 * + col2 + + + 95 + + + col2 col1 FROM tab0 AS cor0
----
1
-9607
21
5
81
-2067

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6220
SELECT 81 + CAST( + ( + COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-6220
SELECT 81 + CAST ( + ( + COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab1 cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6222
SELECT ALL - + COUNT( * ) AS col0, COUNT( * ) FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-6222
SELECT ALL - + COUNT ( * ) AS col0, COUNT ( * ) FROM tab2 AS cor0
----
-3
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * + - 98 * - col2 < col0
----

query II rowsort
SELECT DISTINCT col0 AS col2, - 28 * + + 64 + - col1 + + + 3 * 29 FROM tab1 cor0
----
51
-1719
85
-1710
91
-1752

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 AS cor0 WHERE NULL > + col2 * + 31
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - - 17 IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col0 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT COUNT( 80 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6228
SELECT COUNT ( 80 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT DISTINCT 28 + + 51 AS col0 FROM tab1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6230
SELECT SUM( DISTINCT + col0 ) AS col1 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-6230
SELECT SUM ( DISTINCT + col0 ) AS col1 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT - MAX( + - ( - col1 ) ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-6231
SELECT - MAX ( + - ( - col1 ) ) FROM tab2
----
-77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * - ( + - 25 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + + + 61 * col2 FROM tab2
----
1426
2480
3596

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6234
SELECT - CAST( NULL AS DECIMAL ) + + 41 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6234
SELECT - CAST ( NULL AS REAL ) + + 41 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + 64 * - - col0 + 39 * + ( + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 * + + col0 + + col0 AS col2 FROM tab1
----
-4845
-4930
-6097

query I rowsort
SELECT DISTINCT - 73 - + 16 FROM tab0
----
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-6238
SELECT ALL 46 - COUNT( * ), - COUNT( * ) AS col2 FROM tab2
----
43
-3

skipif mysql # not compatible
query II rowsort label-6238
SELECT ALL 46 - COUNT ( * ), - COUNT ( * ) AS col2 FROM tab2
----
43
-3

query I rowsort
SELECT + + 96 AS col0 FROM tab0 AS cor0
----
96
96
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6240
SELECT ALL + ( + 62 ), + MAX( + + col1 ) AS col0 FROM tab2 AS cor0
----
62
77

skipif mysql # not compatible
query II rowsort label-6240
SELECT ALL + ( + 62 ), + MAX ( + + col1 ) AS col0 FROM tab2 AS cor0
----
62
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6242
SELECT + col0 * - + CAST( + col1 AS SIGNED ) FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-6242
SELECT + col0 * - + CAST ( + col1 AS INTEGER ) FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-6243
SELECT ALL 89 DIV - 23 + + - 47 FROM tab2 AS cor0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL 89 / - 23 + + - 47 FROM tab2 AS cor0
----
-50
-50
-50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6244
SELECT - - col0 * 6 * CAST( - 36 AS SIGNED ) DIV + - col1 + - + col0 AS col0 FROM tab2 AS cor0
----
115
148
166

skipif mysql # not compatible
query I rowsort label-6244
SELECT - - col0 * 6 * CAST ( - 36 AS INTEGER ) / + - col1 + - + col0 AS col0 FROM tab2 AS cor0
----
115
148
166

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 NOT IN ( - col2 * - col0, 4 * + col2, - 14 * - - 36 * - - 74 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 84 AS col1, col1 + + col1 AS col2 FROM tab0
----
84
162
84
2
84
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col0, - 43 + + col2 + col2 FROM tab0
----
10
-23
47
51
99
155

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - col2, + 21, - + 36 - 21 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT + MIN( + - 72 ) col1 FROM tab2
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6249
SELECT + MIN ( + - 72 ) col1 FROM tab2
----
-72

query I rowsort
SELECT DISTINCT + ( col1 ) AS col1 FROM tab1 WHERE NOT + col0 / + - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + col1 + + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6252
SELECT - - 95 + COUNT( * ) col0 FROM tab2 cor0
----
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6252
SELECT - - 95 + COUNT ( * ) col0 FROM tab2 cor0
----
98

query I rowsort
SELECT - 25 * - col2 AS col2 FROM tab2
----
1000
1450
575

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( - - col1 ) = NULL
----

query I rowsort
SELECT ALL - 41 + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6256
SELECT DISTINCT - ( + CAST( col2 AS SIGNED ) ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-6256
SELECT DISTINCT - ( + CAST ( col2 AS INTEGER ) ) FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT ALL COUNT( * ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6257
SELECT ALL COUNT ( * ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6258
SELECT DISTINCT COUNT( * ) + - + CAST( NULL AS SIGNED ) + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6258
SELECT DISTINCT COUNT ( * ) + - + CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6259
SELECT col0 - + 56 + 1 + - + 2 * CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6259
SELECT col0 - + 56 + 1 + - + 2 * CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 42 / + col0 IN ( col1 )
----

query I rowsort
SELECT ALL - 72 AS col2 FROM tab1 WHERE NOT - col2 * - col2 * + - col0 + - col0 IS NULL
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-6263
SELECT + COUNT( * ) * - - COUNT( * ) - 49 AS col0 FROM tab2 WHERE - - col1 / - col0 <= + + col2 + col1
----
-40

skipif mysql # not compatible
query I rowsort label-6263
SELECT + COUNT ( * ) * - - COUNT ( * ) - 49 AS col0 FROM tab2 WHERE - - col1 / - col0 <= + + col2 + col1
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6264
SELECT ALL CAST( + 14 AS SIGNED ) FROM tab1, tab0 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

skipif mysql # not compatible
query I rowsort label-6264
SELECT ALL CAST ( + 14 AS INTEGER ) FROM tab1, tab0 AS cor0
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query I rowsort
SELECT - col2 + + 27 FROM tab0 AS cor0
----
-20
-72
17

query I rowsort
SELECT - 51 * col2 FROM tab0 AS cor0
----
-2397
-5049
-510

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - col1 + + + col0 + col0 / col0, - col2, col2, - 69 - - 60 * + 45 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT ALL - COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT col1 + col2 <> - - col1
----
0

skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT col1 + col2 <> - - col1
----
0

query I rowsort
SELECT DISTINCT - 43 AS col0 FROM tab0 AS cor0
----
-43

query I rowsort
SELECT DISTINCT 83 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
83

query II rowsort
SELECT ALL col2, + col1 FROM tab1
----
59
5
68
47
96
14

query II rowsort
SELECT - col2 AS col1, col2 FROM tab2 cor0
----
-23
23
-40
40
-58
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6273
SELECT + col0 AS col1, - col2 + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-6273
SELECT + col0 AS col1, - col2 + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT SUM( - 94 ) AS col0 FROM tab0 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-6274
SELECT SUM ( - 94 ) AS col0 FROM tab0 AS cor0
----
-282

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( - - col1 ) > NULL
----

query I rowsort
SELECT DISTINCT 72 + 94 AS col1 FROM tab0 cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT - + 42 * + COUNT( ALL + 93 ) FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-6277
SELECT - + 42 * + COUNT ( ALL + 93 ) FROM tab1 AS cor0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT - MIN( DISTINCT + 9 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6278
SELECT - MIN ( DISTINCT + 9 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab2 WHERE NOT - 46 * + 33 <= NULL
----

query I rowsort
SELECT DISTINCT 34 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6281
SELECT ALL + COUNT( * ) * 89 AS col0 FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-6281
SELECT ALL + COUNT ( * ) * 89 AS col0 FROM tab2
----
267

query I rowsort
SELECT + 52 AS col0 FROM tab2 cor0
----
52
52
52

query I rowsort
SELECT ALL - 67 * + ( - 42 ) + - - col1 AS col1 FROM tab0 AS cor0
----
2815
2835
2895

query I rowsort
SELECT DISTINCT col2 * - - col0 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6285
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE - 84 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6285
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE - 84 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6286
SELECT 65 + COUNT( + 89 ) + COUNT( * ) FROM tab2
----
71

skipif mysql # not compatible
query I rowsort label-6286
SELECT 65 + COUNT ( + 89 ) + COUNT ( * ) FROM tab2
----
71

query I rowsort
SELECT + + 76 + - 49 FROM tab1 AS cor0
----
27
27
27

query I rowsort
SELECT + + 61 + - - col1 FROM tab0 AS cor0
----
142
62
82

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 13 < col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT DISTINCT + SUM( col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-6290
SELECT DISTINCT + SUM ( col2 ) AS col2 FROM tab1 AS cor0
----
223

query I rowsort
SELECT - + 7 + 80 FROM tab0 cor0
----
73
73
73

query I rowsort
SELECT + - col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - 29, col0 )
----

query I rowsort
SELECT DISTINCT + col2 + - col0 AS col0 FROM tab0 cor0
----
-77
2
32

query II rowsort
SELECT ALL 53 AS col0, + 56 AS col0 FROM tab0 AS cor0
----
53
56
53
56
53
56

query I rowsort
SELECT DISTINCT - 75 * + 20 - - + col2 + + ( - col2 ) FROM tab1 AS cor0
----
-1500

onlyif mysql # DIV for integer division: 
query II rowsort label-6296
SELECT col1 DIV - col1 AS col1, col2 * - 85 * - - col0 col1 FROM tab1
----
-1
-416160
-1
-426275
-1
-525980

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6296
SELECT col1 / - col1 AS col1, col2 * - 85 * - - col0 col1 FROM tab1
----
-1
-416160
-1
-426275
-1
-525980

query I rowsort
SELECT DISTINCT + col2 + + col0 - - + col1 FROM tab0
----
118
143
197

query I rowsort
SELECT - ( + + col2 ) FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT ALL 21 + - - MAX( ALL + col2 ) + + ( - 77 ) FROM tab0
----
43

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL 21 + - - MAX ( ALL + col2 ) + + ( - 77 ) FROM tab0
----
43

query II rowsort
SELECT DISTINCT col2 + - col1 AS col2, col2 * + col0 FROM tab0
----
-11
870
-34
705
98
9603

query I rowsort
SELECT ALL + 90 + - + ( - col2 ) AS col2 FROM tab0
----
100
137
189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 - - - 59 + + col0 col1 FROM tab2
----
-10
19
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT COUNT( * ) - 63 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-6303
SELECT COUNT ( * ) - 63 FROM tab0
----
-60

query I rowsort
SELECT 56 * + - col0 AS col0 FROM tab2
----
-2576
-3584
-4200

query I rowsort
SELECT - ( - - 64 ) FROM tab1
----
-64
-64
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-6306
SELECT ALL - MIN( DISTINCT + 61 ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-6306
SELECT ALL - MIN ( DISTINCT + 61 ) FROM tab2 AS cor0
----
-61

query I rowsort
SELECT ALL col0 * + + col2 + col1 - + 72 FROM tab1 AS cor0
----
4838
4948
6163

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6309
SELECT ALL + col0 DIV - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6309
SELECT ALL + col0 / - col0 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT ALL SUM( + 38 ) FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-6310
SELECT ALL SUM ( + 38 ) FROM tab2 AS cor0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-6311
SELECT + 60 * - 10 * ( + COUNT( * ) ) FROM tab1 cor0
----
-1800

skipif mysql # not compatible
query I rowsort label-6311
SELECT + 60 * - 10 * ( + COUNT ( * ) ) FROM tab1 cor0
----
-1800

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6312
SELECT DISTINCT ( col1 ), - col2 * - col1 * - 89 * + - 9 + - CAST( - ( + - col1 ) AS SIGNED ) * ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-6312
SELECT DISTINCT ( col1 ), - col2 * - col1 * - 89 * + - 9 + - CAST ( - ( + - col1 ) AS INTEGER ) * ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT 30 = NULL
----

query I rowsort
SELECT - col0 + + - col0 AS col0 FROM tab0 cor0
----
-174
-194
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab0 WHERE + col2 + 51 = - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6316
SELECT ALL COUNT( * ) DIV - ( + COUNT( * ) ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-6316
SELECT ALL COUNT ( * ) / - ( + COUNT ( * ) ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT + 61 - ( - COUNT( * ) ) + + 47 FROM tab1 AS cor0 WHERE ( NULL ) <> ( + col1 )
----
108

skipif mysql # not compatible
query I rowsort label-6317
SELECT + 61 - ( - COUNT ( * ) ) + + 47 FROM tab1 AS cor0 WHERE ( NULL ) <> ( + col1 )
----
108

onlyif mysql # DIV for integer division: 
query I rowsort label-6318
SELECT DISTINCT + - 38 DIV - col2 AS col2 FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query I rowsort label-6318
SELECT DISTINCT + - 38 / - col2 AS col2 FROM tab0 AS cor0
----
0
3

query I rowsort
SELECT + col1 * + + col0 - col2 FROM tab1 AS cor0
----
366
4209
618

onlyif mysql # aggregate syntax: 
query II rowsort label-6320
SELECT + 47 - - - COUNT( * ) AS col0, + COUNT( * ) * 64 AS col1 FROM tab0 AS cor0
----
44
192

skipif mysql # not compatible
query II rowsort label-6320
SELECT + 47 - - - COUNT ( * ) AS col0, + COUNT ( * ) * 64 AS col1 FROM tab0 AS cor0
----
44
192

onlyif mysql # DIV for integer division: 
query I rowsort label-6321
SELECT + col0 DIV col1 - 68 FROM tab0 AS cor0
----
-64
-68
29

skipif mysql # not compatible
query I rowsort label-6321
SELECT + col0 / col1 - 68 FROM tab0 AS cor0
----
-64
-68
29

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6323
SELECT DISTINCT COUNT( * ) DIV - + 88 + - ( - COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6323
SELECT DISTINCT COUNT ( * ) / - + 88 + - ( - COUNT ( * ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL col2 + + - 16 AS col1 FROM tab0 AS cor0
----
-6
31
83

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6325
SELECT ALL col1 / - 62 AS col0, - ( - - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 73, - col2, col2 + - - 35 )
----

skipif mysql # not compatible
query II rowsort label-6325
SELECT ALL col1 / - 62 AS col0, - ( - - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 73, - col2, col2 + - - 35 )
----

query I rowsort
SELECT DISTINCT + col0 * col2 + + col1 AS col1 FROM tab2 AS cor0
----
1109
2637
4417

query I rowsort
SELECT col1 + + - col2 AS col0 FROM tab1
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-6328
SELECT DISTINCT col1 + 2 DIV - + ( + - col0 ) + - 22 AS col0 FROM tab2
----
29
45
55

skipif mysql # not compatible
query I rowsort label-6328
SELECT DISTINCT col1 + 2 / - + ( + - col0 ) + - 22 AS col0 FROM tab2
----
29
45
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab1 WHERE NULL <= + + 67
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6330
SELECT DISTINCT CAST( - col2 AS SIGNED ) + + + col1 FROM tab0
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-6330
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + + + col1 FROM tab0
----
-98
11
34

query I rowsort
SELECT ALL 18 + - col1 * + + 36 FROM tab1
----
-162
-1674
-486

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col2 FROM tab1 WHERE - col0 <> - col1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT 36 + - col2 * - col0 * + - 20 AS col1 FROM tab1
----
-100264
-123724
-97884

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > col2 * 44
----

query III rowsort
SELECT * FROM tab1 WHERE NULL > 26
----

query I rowsort
SELECT col0 + - - 48 FROM tab0
----
135
145
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6337
SELECT + COUNT( * ) * MIN( - col0 ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-6337
SELECT + COUNT ( * ) * MIN ( - col0 ) FROM tab2
----
-225

onlyif mysql # DIV for integer division: 
query I rowsort label-6338
SELECT DISTINCT col1 DIV col2 - + col0 FROM tab2 AS cor0
----
-44
-63
-74

skipif mysql # not compatible
query I rowsort label-6338
SELECT DISTINCT col1 / col2 - + col0 FROM tab2 AS cor0
----
-44
-63
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6339
SELECT ALL COUNT( + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6339
SELECT ALL COUNT ( + col1 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT - 33 AS col2, col2 FROM tab2 AS cor0
----
-33
23
-33
40
-33
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT ALL - MIN( DISTINCT - 30 ) col0 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6341
SELECT ALL - MIN ( DISTINCT - 30 ) col0 FROM tab1 AS cor0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6342
SELECT - + CAST( col2 AS SIGNED ) FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6342
SELECT - + CAST ( col2 AS INTEGER ) FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT - - COUNT( * ) * + 46 FROM tab0 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-6343
SELECT - - COUNT ( * ) * + 46 FROM tab0 AS cor0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT DISTINCT - COUNT( * ) * 14 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-126

skipif mysql # not compatible
query I rowsort label-6344
SELECT DISTINCT - COUNT ( * ) * 14 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-126

query I rowsort
SELECT + ( - - 65 ) + 63 + - col1 * col2 AS col0 FROM tab0 WHERE NOT ( NOT 56 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6346
SELECT ( + MAX( - 74 ) ) FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-6346
SELECT ( + MAX ( - 74 ) ) FROM tab2 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-6347
SELECT ALL 29 * - - COUNT( * ) FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-6347
SELECT ALL 29 * - - COUNT ( * ) FROM tab2 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT 89 * - COUNT( * ) FROM tab2 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-6348
SELECT 89 * - COUNT ( * ) FROM tab2 AS cor0
----
-267

query I rowsort
SELECT + 92 AS col0 FROM tab0 cor0
----
92
92
92

onlyif mysql # aggregate syntax: 
query II rowsort label-6350
SELECT - MIN( - col0 ) AS col2, 68 FROM tab0 AS cor0
----
97
68

skipif mysql # not compatible
query II rowsort label-6350
SELECT - MIN ( - col0 ) AS col2, 68 FROM tab0 AS cor0
----
97
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6351
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6351
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * + col1 * col1 AS col0 FROM tab1
----
103823
125
2744

query I rowsort
SELECT col0 * - + 50 FROM tab0
----
-4350
-4850
-750

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 > - ( col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 - - + 78 + + col0 / - - 73 / - + 53 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col0, - 79 FROM tab1
----
51
-79
85
-79
91
-79

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 34 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6359
SELECT DISTINCT - col0 + + + CAST( - 57 AS SIGNED ) FROM tab2
----
-103
-121
-132

skipif mysql # not compatible
query I rowsort label-6359
SELECT DISTINCT - col0 + + + CAST ( - 57 AS INTEGER ) FROM tab2
----
-103
-121
-132

query III rowsort
SELECT * FROM tab0 WHERE - 16 = 36
----

query I rowsort
SELECT 48 AS col2 FROM tab1 cor0 WHERE ( 67 ) IS NOT NULL
----
48
48
48

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 17 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6363
SELECT ALL - col1 * + col2 DIV ( + col2 ) - 22 * + col2 * + col1 * col0 FROM tab1 cor0
----
-1507982
-551655
-6398439

skipif mysql # not compatible
query I rowsort label-6363
SELECT ALL - col1 * + col2 / ( + col2 ) - 22 * + col2 * + col1 * col0 FROM tab1 cor0
----
-1507982
-551655
-6398439

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6364
SELECT DISTINCT + col1 - - col2 + CAST( + - CAST( + 20 AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1, - col0 )
----

skipif mysql # not compatible
query I rowsort label-6364
SELECT DISTINCT + col1 - - col2 + CAST ( + - CAST ( + 20 AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1, - col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= + col1 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT DISTINCT + MIN( ALL - col1 ) * + 88 + + - 76 FROM tab1
----
-4212

skipif mysql # not compatible
query I rowsort label-6366
SELECT DISTINCT + MIN ( ALL - col1 ) * + 88 + + - 76 FROM tab1
----
-4212

onlyif mysql # DIV for integer division: 
query I rowsort label-6367
SELECT 92 DIV 75 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6367
SELECT 92 / 75 FROM tab0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT ( + 35 IS NULL ) )
----

query I rowsort
SELECT col1 - + col0 + - col1 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6370
SELECT + col2 * col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6370
SELECT + col2 * col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT SUM( ALL 37 ) AS col1 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-6371
SELECT SUM ( ALL 37 ) AS col1 FROM tab2
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6372
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) * - 13, COUNT( - col0 ) + - 98 col0 FROM tab1
----
-39
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6372
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) * - 13, COUNT ( - col0 ) + - 98 col0 FROM tab1
----
-39
-95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6373
SELECT col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6373
SELECT col0 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col2 * + + 38 AS col0 FROM tab1
----
2242
2584
3648

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT ALL MAX( - + col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL MAX ( - + col2 ) FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT ALL + + COUNT( * ) * + 39 FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-6376
SELECT ALL + + COUNT ( * ) * + 39 FROM tab1 AS cor0
----
117

query II rowsort
SELECT ALL + col2 AS col1, col1 - col2 FROM tab1 cor0
----
59
-54
68
-21
96
-82

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 64 IS NOT NULL
----

query II rowsort
SELECT ALL - col1, - col2 AS col1 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

query I rowsort
SELECT - ( + col0 ) FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, + col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 71 col1, 43 AS col1 FROM tab1 AS cor0
----
71
43
71
43
71
43

query I rowsort
SELECT DISTINCT - ( - 71 ) FROM tab1 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query II rowsort label-6384
SELECT + COUNT( * ) AS col1, - COUNT( * ) - - ( COUNT( + col2 ) ) + + + COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6384
SELECT + COUNT ( * ) AS col1, - COUNT ( * ) - - ( COUNT ( + col2 ) ) + + + COUNT ( * ) FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT ( + 88 ) FROM tab0 AS cor0
----
88

onlyif mysql # DIV for integer division: 
query II rowsort label-6386
SELECT ALL - col2 * 12 col1, - ( + col2 ) DIV - 17 AS col1 FROM tab1
----
-1152
5
-708
3
-816
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6386
SELECT ALL - col2 * 12 col1, - ( + col2 ) / - 17 AS col1 FROM tab1
----
-1152
5
-708
3
-816
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT + MAX( DISTINCT + col0 ) * + + 90 AS col1 FROM tab0
----
8730

skipif mysql # not compatible
query I rowsort label-6387
SELECT + MAX ( DISTINCT + col0 ) * + + 90 AS col1 FROM tab0
----
8730

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + + 71 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6389
SELECT * FROM tab2 WHERE - CAST( + col1 AS DECIMAL ) BETWEEN + + 15 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6389
SELECT * FROM tab2 WHERE - CAST ( + col1 AS REAL ) BETWEEN + + 15 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 * - 92 + - 7 AS col0 FROM tab0 AS cor0
----
-4331
-9115
-927

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6392
SELECT DISTINCT + col2 * - - 74 + + ( CAST( NULL AS SIGNED ) ), - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
query II rowsort label-6392
SELECT DISTINCT + col2 * - - 74 + + ( CAST ( NULL AS INTEGER ) ), - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6393
SELECT - + 36 + 5 DIV + col0 AS col2 FROM tab2 AS cor0
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-6393
SELECT - + 36 + 5 / + col0 AS col2 FROM tab2 AS cor0
----
-36
-36
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-6394
SELECT + - col2 DIV + col1 AS col0 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-6394
SELECT + - col2 / + col1 AS col0 FROM tab0 AS cor0
----
-99
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6395
SELECT + CAST( NULL AS SIGNED ) * + - col1 * 94 * + col2 AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6395
SELECT + CAST ( NULL AS INTEGER ) * + - col1 * 94 * + col2 AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - ( 98 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

onlyif mysql # aggregate syntax: 
query I rowsort label-6397
SELECT DISTINCT - COUNT( * ) - + + 21 AS col0 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT - COUNT ( * ) - + + 21 AS col0 FROM tab0 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6398
SELECT ALL - + COUNT( * ) - + - 31 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-6398
SELECT ALL - + COUNT ( * ) - + - 31 FROM tab0 AS cor0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6399
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + - CAST( - col1 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6399
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - CAST ( - col1 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 - + - col2 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT DISTINCT - - col1 - + - 45 AS col2 FROM tab2 AS cor0
----
112
122
96

query I rowsort
SELECT + col1 + - 36 AS col1 FROM tab2 AS cor0
----
15
31
41

query I rowsort
SELECT + + 57 + + col0 FROM tab2 AS cor0
----
103
121
132

onlyif mysql # DIV for integer division: 
query I rowsort label-6404
SELECT - col1 DIV + - 59 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6404
SELECT - col1 / + - 59 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6405
SELECT ALL - col1 / - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6405
SELECT ALL - col1 / - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT COUNT( * ) FROM tab2 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6406
SELECT COUNT ( * ) FROM tab2 WHERE NOT + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT ALL - COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6407
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT col0 FROM tab2 WHERE NOT + - 19 * - col0 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6409
SELECT - CAST( - COUNT( * ) AS SIGNED ) * COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-6409
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * COUNT ( * ) FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6410
SELECT ALL 33 AS col2, + ( col1 ) * - CAST( NULL AS SIGNED ) * - 53 * + col0 + - col1 FROM tab2
----
33
NULL
33
NULL
33
NULL

skipif mysql # not compatible
query II rowsort label-6410
SELECT ALL 33 AS col2, + ( col1 ) * - CAST ( NULL AS INTEGER ) * - 53 * + col0 + - col1 FROM tab2
----
33
NULL
33
NULL
33
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6411
SELECT - MIN( ALL col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-6411
SELECT - MIN ( ALL col1 ) FROM tab2
----
-51

query I rowsort
SELECT DISTINCT - 62 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col1, - col1 FROM tab2
----
-46
-51
-64
-77
-75
-67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6414
SELECT ALL - COUNT( * ) * + CAST( + 63 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-6414
SELECT ALL - COUNT ( * ) * + CAST ( + 63 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-6415
SELECT + - MAX( - - ( 25 ) ) FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-6415
SELECT + - MAX ( - - ( 25 ) ) FROM tab1 AS cor0
----
-25

query I rowsort
SELECT - 37 * - col2 FROM tab0 AS cor0
----
1739
3663
370

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT ALL ( + - MAX( col2 ) ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-6417
SELECT ALL ( + - MAX ( col2 ) ) AS col2 FROM tab0
----
-99

query II rowsort
SELECT - ( + + col0 ) AS col1, col1 * - col0 FROM tab2 AS cor0
----
-46
-2346
-64
-4928
-75
-5025

query I rowsort
SELECT DISTINCT - 26 * - + 83 FROM tab1 AS cor0
----
2158

onlyif mysql # DIV for integer division: 
query II rowsort label-6420
SELECT - 7 + - - col0 + + + ( - + ( - - col0 ) ) AS col0, ( ( - col0 ) ) * - col0 DIV col0 FROM tab1 AS cor0
----
-7
51
-7
85
-7
91

skipif mysql # not compatible
query II rowsort label-6420
SELECT - 7 + - - col0 + + + ( - + ( - - col0 ) ) AS col0, ( ( - col0 ) ) * - col0 / col0 FROM tab1 AS cor0
----
-7
51
-7
85
-7
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6421
SELECT - ( col0 ) FROM tab0 AS cor0 WHERE + col2 + - + CAST( 90 AS DECIMAL ) IN ( - col1 * - col2 + - 6 )
----

skipif mysql # not compatible
query I rowsort label-6421
SELECT - ( col0 ) FROM tab0 AS cor0 WHERE + col2 + - + CAST ( 90 AS REAL ) IN ( - col1 * - col2 + - 6 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 62
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - + col2 - - col1 + + + 52 col2 FROM tab1
----
-126
-37
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT + ( - + 61 ) * + 75 + COUNT( ALL - - col0 ) AS col1 FROM tab2
----
-4572

skipif mysql # not compatible
query I rowsort label-6424
SELECT + ( - + 61 ) * + 75 + COUNT ( ALL - - col0 ) AS col1 FROM tab2
----
-4572

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6425
SELECT ALL col1 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col1, + col1 + col2 FROM tab2
----
23
74
40
117
58
125

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT + 96 + + COUNT( * ) AS col0 FROM tab0 WHERE - 97 IS NULL
----
96

skipif mysql # not compatible
query I rowsort label-6427
SELECT + 96 + + COUNT ( * ) AS col0 FROM tab0 WHERE - 97 IS NULL
----
96

query I rowsort
SELECT DISTINCT - col1 * - 93 - col2 AS col2 FROM tab0 AS cor0
----
-6
1943
7486

onlyif mysql # aggregate syntax: 
query I rowsort label-6429
SELECT ( + COUNT( * ) ) * + SUM( + 42 ) FROM tab2
----
378

skipif mysql # not compatible
query I rowsort label-6429
SELECT ( + COUNT ( * ) ) * + SUM ( + 42 ) FROM tab2
----
378

query III rowsort
SELECT * FROM tab1 WHERE col1 BETWEEN + col1 AND NULL
----

query I rowsort
SELECT DISTINCT 62 * - col0 AS col2 FROM tab1
----
-3162
-5270
-5642

onlyif mysql # DIV for integer division: 
query I rowsort label-6432
SELECT col0 DIV + col0 + - 18 DIV + col0 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6432
SELECT col0 / + col0 + - 18 / + col0 AS col2 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL - col0 + col2 * 32 AS col2 FROM tab0
----
1489
233
3071

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 ) >= ( col1 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 24 + + col0 FROM tab1
----
109
115
75

query I rowsort
SELECT + ( col2 ) + + col0 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6437
SELECT DISTINCT + 13 DIV - COUNT( * ) AS col0 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-6437
SELECT DISTINCT + 13 / - COUNT ( * ) AS col0 FROM tab1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT MAX( ALL col1 ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6438
SELECT MAX ( ALL col1 ) AS col0 FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6439
SELECT ALL CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT NULL NOT IN ( 97 )
----

query I rowsort
SELECT DISTINCT col0 / - ( ( - col1 ) ) FROM tab1 WHERE NOT + col1 NOT IN ( - col2 * + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6442
SELECT ALL + col0 DIV - 63 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6442
SELECT ALL + col0 / - 63 FROM tab0
----
-1
-1
0

query III rowsort
SELECT * FROM tab1 WHERE - col1 * + col0 IN ( col0 * col1 + + 70 )
----

query I rowsort
SELECT col0 + col0 * - col1 AS col2 FROM tab0
----
-1200
-1740
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6445
SELECT col1 + + col2 DIV col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6445
SELECT col1 + + col2 / col0 FROM tab2
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-6446
SELECT DISTINCT 67 * + 89 + - col1 DIV col1 AS col0 FROM tab1
----
5962

skipif mysql # not compatible
query I rowsort label-6446
SELECT DISTINCT 67 * + 89 + - col1 / col1 AS col0 FROM tab1
----
5962

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab2 WHERE NOT ( + ( + 67 ) * + 3 ) IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT ALL + COUNT( * ) + 50 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL + COUNT ( * ) + 50 FROM tab1
----
53

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 + + 74 > - 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6450
SELECT ALL MAX( col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL MAX ( col0 ) AS col0 FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6451
SELECT ALL ( COUNT( * ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6451
SELECT ALL ( COUNT ( * ) ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6452
SELECT DISTINCT CAST( NULL AS DECIMAL ) * col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6452
SELECT DISTINCT CAST ( NULL AS REAL ) * col0 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6453
SELECT ALL AVG ( + col1 ) / - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-6453
SELECT ALL AVG ( + col1 ) / - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT MIN( DISTINCT col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-6454
SELECT MIN ( DISTINCT col2 ) FROM tab2 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-6455
SELECT DISTINCT 41 DIV 18 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-6455
SELECT DISTINCT 41 / 18 FROM tab1
----
2

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( ( 60 ) )
----

query I rowsort
SELECT col2 + col1 FROM tab1 AS cor0 WHERE 13 + + col2 IN ( col2 * + ( 74 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6459
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 AND - col1 * CAST( - 61 / ( + 47 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6459
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 AND - col1 * CAST ( - 61 / ( + 47 ) AS INTEGER )
----

query I rowsort
SELECT + + 5 AS col1 FROM tab1 AS cor0
----
5
5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6461
SELECT - + col1 DIV + ( col1 * col0 + + 80 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6461
SELECT - + col1 / + ( col1 * col0 + + 80 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6462
SELECT ALL + - CAST( 9 AS SIGNED ) * ( col1 ) FROM tab0 AS cor0
----
-189
-729
-9

skipif mysql # not compatible
query I rowsort label-6462
SELECT ALL + - CAST ( 9 AS INTEGER ) * ( col1 ) FROM tab0 AS cor0
----
-189
-729
-9

query I rowsort
SELECT ALL col2 * - + col0 + - col1 AS col2 FROM tab1
----
-4910
-5020
-6235

query I rowsort
SELECT ALL col1 + + + 97 FROM tab2
----
148
164
174

query I rowsort
SELECT ALL + ( 84 ) + 90 FROM tab1
----
174
174
174

query I rowsort
SELECT - 71 + - + 9 AS col2 FROM tab2
----
-80
-80
-80

query III rowsort
SELECT * FROM tab1 WHERE + col1 >= ( NULL )
----

query I rowsort
SELECT DISTINCT 59 + - 93 FROM tab0
----
-34

query I rowsort
SELECT ALL - ( col2 ) + - ( + col1 + col0 ) FROM tab0
----
-118
-143
-197

onlyif mysql # aggregate syntax: 
query I rowsort label-6470
SELECT DISTINCT - MIN( DISTINCT + col0 ) + - COUNT( * ) FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-6470
SELECT DISTINCT - MIN ( DISTINCT + col0 ) + - COUNT ( * ) FROM tab2
----
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6471
SELECT ALL CAST( - COUNT( ALL col1 ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( - 68 ) BETWEEN + 51 AND col2
----
-3

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL CAST ( - COUNT ( ALL col1 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( - 68 ) BETWEEN + 51 AND col2
----
-3

query I rowsort
SELECT ALL + - 84 - + + col1 FROM tab1 AS cor0
----
-131
-89
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6473
SELECT ALL + COUNT( + col1 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6473
SELECT ALL + COUNT ( + col1 ) AS col2 FROM tab2 cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6475
SELECT DISTINCT col1 + - col2 DIV - col1 FROM tab1 AS cor0
----
16
20
48

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT col1 + - col2 / - col1 FROM tab1 AS cor0
----
16
20
48

onlyif mysql # DIV for integer division: 
query I rowsort label-6476
SELECT col1 DIV - + 4 FROM tab2
----
-12
-16
-19

skipif mysql # not compatible
query I rowsort label-6476
SELECT col1 / - + 4 FROM tab2
----
-12
-16
-19

query I rowsort
SELECT + col0 - 89 * col0 AS col2 FROM tab1 WHERE - 94 = col0 * - col0 + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6478
SELECT DISTINCT * FROM tab2 WHERE + - CAST( NULL AS SIGNED ) / + col2 - col2 >= NULL
----

skipif mysql # not compatible
query III rowsort label-6478
SELECT DISTINCT * FROM tab2 WHERE + - CAST ( NULL AS INTEGER ) / + col2 - col2 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 IN ( 86 )
----

query I rowsort
SELECT + col2 * col2 AS col2 FROM tab2 WHERE NOT ( + col0 ) NOT BETWEEN ( NULL ) AND ( + 79 )
----

query I rowsort
SELECT ALL ( + - col2 ) AS col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + + col2 * 29 FROM tab1 AS cor0
----
1711
1972
2784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, - 98 FROM tab0 AS cor0
----
15
-98
87
-98
97
-98

query I rowsort
SELECT DISTINCT + 88 / + col2 FROM tab0 AS cor0 WHERE NOT col0 <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 32 / + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT - ( ( + COUNT( * ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6486
SELECT - ( ( + COUNT ( * ) ) ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + col0, - col2 + 24 + + ( col1 ) AS col2 FROM tab1 cor0
----
51
-58
85
-30
91
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE - col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6488
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE - col2 <> NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 col0 FROM tab0
----
82
82
82

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( + ( col0 ) + + 57 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6491
SELECT 94 DIV + COUNT( * ) AS col0 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-6491
SELECT 94 / + COUNT ( * ) AS col0 FROM tab0
----
31

query I rowsort
SELECT ( - + col1 ) AS col1 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT ALL - COUNT( * ) * - 19 AS col1 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL - COUNT ( * ) * - 19 AS col1 FROM tab1 AS cor0
----
57

query I rowsort
SELECT + col0 + - - ( + + col0 ) FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT - COUNT( * ) + 45 AS col0 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-6495
SELECT - COUNT ( * ) + 45 AS col0 FROM tab1 AS cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6496
SELECT col1 AS col2 FROM tab2 cor0 WHERE ( col1 ) NOT IN ( ( + CAST( NULL AS SIGNED ) ) + - col0 )
----

skipif mysql # not compatible
query I rowsort label-6496
SELECT col1 AS col2 FROM tab2 cor0 WHERE ( col1 ) NOT IN ( ( + CAST ( NULL AS INTEGER ) ) + - col0 )
----

query I rowsort
SELECT - - col2 * - 90 + - col2 + + col0 FROM tab0 AS cor0
----
-4262
-823
-8912

query I rowsort
SELECT DISTINCT + col0 * 77 AS col0 FROM tab0 AS cor0
----
1155
6699
7469

query I rowsort
SELECT ALL 25 + col0 AS col1 FROM tab1 AS cor0
----
110
116
76

query I rowsort
SELECT DISTINCT + col1 + + - col0 + + col0 + + 74 AS col0 FROM tab0 AS cor0
----
155
75
95

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 + - + col1 <= NULL
----

query I rowsort
SELECT ALL col1 * 0 - + + 82 FROM tab1
----
-82
-82
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-6503
SELECT DISTINCT - 21 DIV + ( + col1 ) + + + col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6503
SELECT DISTINCT - 21 / + ( + col1 ) + + + col2 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT - col2 + - - col1 * 32 FROM tab2
----
1609
2086
2424

query II rowsort
SELECT col2 AS col1, - col1 FROM tab2
----
23
-51
40
-77
58
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 col0 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NULL > 57
----

query I rowsort
SELECT DISTINCT - col2 + - + col2 * col2 * + 13 + - col2 FROM tab2 WHERE NOT - col2 = NULL
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE ( - 91 * - col0 - + col1 - - col2 BETWEEN NULL AND ( NULL ) )
----

query I rowsort
SELECT 62 - - 74 FROM tab1 AS cor0
----
136
136
136

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - 45 )
----

query I rowsort
SELECT - col1 + - col1 + + col1 + - col0 * - 87 AS col2 FROM tab0 AS cor0
----
1224
7548
8438

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6513
SELECT col0 + - CAST( NULL AS DECIMAL ) + + col2 * col2 / + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6513
SELECT col0 + - CAST ( NULL AS REAL ) + + col2 * col2 / + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 4 FROM tab2 AS cor0 WHERE NOT col2 <= - + col2
----
-4
-4
-4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + col1 + + + 76 ) NOT BETWEEN ( - 91 ) AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( ( NOT ( - + ( 37 ) + - 3 * col2 ) <= ( col1 ) ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + ( + 41 ) AS col0 FROM tab2 cor0
----
-41
-41
-41

query I rowsort
SELECT ALL + 19 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN 26 * - - 17 - col1 AND ( - 70 * - - col0 + col2 * 27 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6519
SELECT DISTINCT + 25 * CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 * col2 / CAST( - - 89 AS SIGNED ) IS NULL
----
-75

skipif mysql # not compatible
query I rowsort label-6519
SELECT DISTINCT + 25 * CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 * col2 / CAST ( - - 89 AS INTEGER ) IS NULL
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT DISTINCT ( - MAX( DISTINCT + 63 ) ) AS col2 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-6520
SELECT DISTINCT ( - MAX ( DISTINCT + 63 ) ) AS col2 FROM tab0
----
-63

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 >= - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT COUNT( * ) * + 24 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-6522
SELECT COUNT ( * ) * + 24 FROM tab1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT - 88 * + COUNT( * ) FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-6523
SELECT - 88 * + COUNT ( * ) FROM tab2
----
-264

onlyif mysql # aggregate syntax: 
query II rowsort label-6524
SELECT ALL 86 AS col1, COUNT( * ) AS col0 FROM tab1
----
86
3

skipif mysql # not compatible
query II rowsort label-6524
SELECT ALL 86 AS col1, COUNT ( * ) AS col0 FROM tab1
----
86
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6525
SELECT ALL - col0 AS col2, + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-6525
SELECT ALL - col0 AS col2, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-46
NULL
-64
NULL
-75
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6526
SELECT + + CAST( - col2 AS SIGNED ) AS col2, col1 * - + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-2346
-40
-4928
-58
-5025

skipif mysql # not compatible
query II rowsort label-6526
SELECT + + CAST ( - col2 AS INTEGER ) AS col2, col1 * - + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-2346
-40
-4928
-58
-5025

query II rowsort
SELECT + ( - - col2 ) * col0, ( col2 ) AS col2 FROM tab0 cor0
----
705
47
870
10
9603
99

query II rowsort
SELECT + - col2 AS col0, 70 FROM tab2 AS cor0
----
-23
70
-40
70
-58
70

query II rowsort
SELECT ALL - col2 AS col0, col1 + - + col2 AS col2 FROM tab2 AS cor0
----
-23
28
-40
37
-58
9

query I rowsort
SELECT 61 + + col0 FROM tab2 AS cor0
----
107
125
136

onlyif mysql # DIV for integer division: 
query II rowsort label-6531
SELECT + 47 + + + col0 DIV + col2 + - + col0 AS col2, + 77 FROM tab2 cor0
----
-16
77
-27
77
3
77

skipif mysql # not compatible
query II rowsort label-6531
SELECT + 47 + + + col0 / + col2 + - + col0 AS col2, + 77 FROM tab2 cor0
----
-16
77
-27
77
3
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT DISTINCT 48 * + COUNT( * ) FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-6532
SELECT DISTINCT 48 * + COUNT ( * ) FROM tab1
----
144

query III rowsort
SELECT * FROM tab0 WHERE col0 * - - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 33 * + - 97 * col1 * + - 52 FROM tab0
----
13482612
166452
3495492

query I rowsort
SELECT ALL - - 69 + col1 AS col0 FROM tab0 AS cor0
----
150
70
90

query I rowsort
SELECT DISTINCT + 79 AS col1 FROM tab1 AS cor0
----
79

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT + col2 * 86 FROM tab0 cor0
----
4042
8514
860

query II rowsort
SELECT - col2 * + - ( + 81 ) AS col0, col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 / col1 <> - col0
----

query I rowsort
SELECT + 11 * + ( 38 ) FROM tab0 AS cor0
----
418
418
418

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6542
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6542
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6543
SELECT - 25 + + col0 - + col2 DIV 56 FROM tab1 AS cor0
----
25
59
65

skipif mysql # not compatible
query I rowsort label-6543
SELECT - 25 + + col0 - + col2 / 56 FROM tab1 AS cor0
----
25
59
65

query I rowsort
SELECT ALL 96 + + - col0 FROM tab1 AS cor0
----
11
45
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 98 + 89 ) IS NULL
----

query I rowsort
SELECT ALL + ( + 6 ) + - + 20 + ( - + col2 ) - col2 AS col0 FROM tab2
----
-130
-60
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6547
SELECT ALL + CAST( NULL AS SIGNED ) - - 33 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6547
SELECT ALL + CAST ( NULL AS INTEGER ) - - 33 AS col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col0 * + ( 75 ) AS col2, 19 FROM tab2 AS cor0
----
3450
19
4800
19
5625
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT DISTINCT + - 41 - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-6549
SELECT DISTINCT + - 41 - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT + SUM( - + ( 26 ) ) FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-6550
SELECT + SUM ( - + ( 26 ) ) FROM tab1 AS cor0
----
-78

query I rowsort
SELECT 85 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 48 + - - col1
----

query I rowsort
SELECT DISTINCT - - 39 - - 63 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-6553
SELECT DISTINCT + col2 DIV 33 * - + 75 FROM tab1
----
-150
-75

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT + col2 / 33 * - + 75 FROM tab1
----
-150
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-6554
SELECT ALL col0 AS col2, + col2 DIV 50 col1 FROM tab0
----
15
0
87
0
97
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6554
SELECT ALL col0 AS col2, + col2 / 50 col1 FROM tab0
----
15
0
87
0
97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT ALL - + MAX( DISTINCT - col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6555
SELECT ALL - + MAX ( DISTINCT - col1 ) FROM tab1 AS cor0
----
5

query I rowsort
SELECT + + ( + col1 ) AS col1 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT ( - ( + + ( - col0 ) ) ) * + col0 AS col2 FROM tab2 cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT + SUM( ALL + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6558
SELECT + SUM ( ALL + col2 ) FROM tab0 AS cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6560
SELECT DISTINCT COUNT( 1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6560
SELECT DISTINCT COUNT ( 1 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - - col2 AND ( + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6562
SELECT + MAX( DISTINCT + - ( + + 76 ) ) FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-6562
SELECT + MAX ( DISTINCT + - ( + + 76 ) ) FROM tab0 AS cor0
----
-76

query II rowsort
SELECT DISTINCT - + col1 AS col2, col1 AS col0 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT ALL - 8 + - COUNT( * ) FROM tab1 AS cor0 WHERE 51 * - - col2 * - col1 <> + 32
----
-11

skipif mysql # not compatible
query I rowsort label-6564
SELECT ALL - 8 + - COUNT ( * ) FROM tab1 AS cor0 WHERE 51 * - - col2 * - col1 <> + 32
----
-11

query I rowsort
SELECT ALL - 59 AS col1 FROM tab1 cor0
----
-59
-59
-59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 7 = + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT - 37 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6568
SELECT + col0 DIV + + col2 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6568
SELECT + col0 / + + col2 AS col1 FROM tab1
----
0
1
1

query II rowsort
SELECT + col2 * col1, col0 AS col0 FROM tab1
----
1344
51
295
85
3196
91

query II rowsort
SELECT + col0 * - col0 AS col2, 36 FROM tab0
----
-225
36
-7569
36
-9409
36

query I rowsort
SELECT ALL col1 + + ( + 11 ) FROM tab2 cor0
----
62
78
88

query I rowsort
SELECT DISTINCT ( 54 ) AS col2 FROM tab2 AS cor0
----
54

query I rowsort
SELECT - col1 + - col2 + ( - col2 ) FROM tab2
----
-157
-183
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6574
SELECT ALL SUM( ALL - 98 ) + COUNT( * ) + + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6574
SELECT ALL SUM ( ALL - 98 ) + COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL - - 97 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # DIV for integer division: 
query I rowsort label-6576
SELECT - col1 * + + col2 + - + 2 - + col0 DIV col1 FROM tab2 AS cor0
----
-1175
-3082
-3889

skipif mysql # not compatible
query I rowsort label-6576
SELECT - col1 * + + col2 + - + 2 - + col0 / col1 FROM tab2 AS cor0
----
-1175
-3082
-3889

query II rowsort
SELECT ALL + ( col1 ) AS col0, + col0 AS col2 FROM tab0 cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - col0 + - - ( - 7 ) - + col1 * - 29 + + col0 FROM tab2 cor0
----
1472
1936
2226

query II rowsort
SELECT DISTINCT - 34, + 34 AS col0 FROM tab2 AS cor0
----
-34
34

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT + 99 + - col2 IS NULL )
----

query II rowsort
SELECT ALL - col1 * - col1 - col2 * col0, + 16 AS col1 FROM tab0 AS cor0
----
-429
16
-9602
16
5856
16

query II rowsort
SELECT ALL + col2 + + + col0 * + - col2, - col0 * 94 * col1 + + - col2 AS col0 FROM tab2 AS cor0
----
-1035
-220547
-2520
-463272
-4292
-472408

onlyif mysql # aggregate syntax: 
query I rowsort label-6583
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6583
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN 6 AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col0 FROM tab1
----
78
78
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * + - col0 + - ( 44 ) col2 FROM tab2 WHERE - col2 + - col1 IS NOT NULL
----
-596
-812
-944

query I rowsort
SELECT ALL 7 * + col0 + + col0 + - col2 + - col1 * + col2 FROM tab1
----
-1032
-2536
326

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT - SUM( + 85 ) * + COUNT( * ) - - COUNT( * ) FROM tab1
----
-762

skipif mysql # not compatible
query I rowsort label-6588
SELECT - SUM ( + 85 ) * + COUNT ( * ) - - COUNT ( * ) FROM tab1
----
-762

query I rowsort
SELECT + col0 - col2 + + - 0 * 29 AS col2 FROM tab1
----
-45
23
26

query I rowsort
SELECT + 61 * + col0 - - col1 FROM tab1
----
3125
5190
5598

onlyif mysql # aggregate syntax: 
query I rowsort label-6591
SELECT MIN( ALL + col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-6591
SELECT MIN ( ALL + col2 ) AS col2 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT 21 * - + MAX( - 21 ) AS col2 FROM tab2
----
441

skipif mysql # not compatible
query I rowsort label-6592
SELECT 21 * - + MAX ( - 21 ) AS col2 FROM tab2
----
441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6593
SELECT ALL - CAST( NULL AS SIGNED ) * MAX( 27 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6593
SELECT ALL - CAST ( NULL AS INTEGER ) * MAX ( 27 ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col2 * col1 + col2 * - 54 AS col0 FROM tab2 AS cor0
----
-2415
-5240
-7018

onlyif mysql # aggregate syntax: 
query I rowsort label-6595
SELECT SUM( ALL - 4 ) FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-6595
SELECT SUM ( ALL - 4 ) FROM tab1 AS cor0
----
-12

query I rowsort
SELECT ALL col1 * - col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-210
-3807
-99

query I rowsort
SELECT ( - - col0 ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6598
SELECT MIN( ( + col0 ) ) col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6598
SELECT MIN ( ( + col0 ) ) col0 FROM tab0 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + 90 ) col2 FROM tab2 AS cor0
----
-90
-90
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6600
SELECT + col1 * + + CAST( + col2 AS SIGNED ) FROM tab0 cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-6600
SELECT + col1 * + + CAST ( + col2 AS INTEGER ) FROM tab0 cor0
----
210
3807
99

query II rowsort
SELECT DISTINCT - - col1 - + 84 * 50, col1 AS col1 FROM tab2 WHERE + col0 IS NOT NULL
----
-4123
77
-4133
67
-4149
51

query I rowsort
SELECT DISTINCT - 63 * - - col0 + - 36 FROM tab1
----
-3249
-5391
-5769

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6603
SELECT DISTINCT + ( - col1 ) + - 97 * - - col2, col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
-5728
NULL
-6643
NULL
-9326
NULL

skipif mysql # not compatible
query II rowsort label-6603
SELECT DISTINCT + ( - col1 ) + - 97 * - - col2, col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-5728
NULL
-6643
NULL
-9326
NULL

query II rowsort
SELECT DISTINCT col2, col2 * col1 * + 84 FROM tab0
----
10
17640
47
319788
99
8316

query II rowsort
SELECT col0, ( - col1 ) FROM tab1
----
51
-14
85
-5
91
-47

query I rowsort
SELECT DISTINCT - col1 + - 45 FROM tab2
----
-112
-122
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) IS NULL AND NOT col1 <> col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6608
SELECT DISTINCT - 46 * - COUNT( * ) AS col2, - 3 + 88 col0 FROM tab2 AS cor0
----
138
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6608
SELECT DISTINCT - 46 * - COUNT ( * ) AS col2, - 3 + 88 col0 FROM tab2 AS cor0
----
138
85

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( + 17 * + col1 + 10 * + col0 ) IS NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 72 - - - ( - 7 ) / - 49 / - col0 / col1 + - 37 + col1 BETWEEN NULL AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 54 FROM tab2 WHERE + - 61 IS NOT NULL
----
54
54
54

onlyif mysql # aggregate syntax: 
query II rowsort label-6612
SELECT DISTINCT - COUNT( * ) + - 0 + - COUNT( * ) col1, + COUNT( * ) FROM tab1
----
-6
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6612
SELECT DISTINCT - COUNT ( * ) + - 0 + - COUNT ( * ) col1, + COUNT ( * ) FROM tab1
----
-6
3

query I rowsort
SELECT - 97 - + ( - - 52 ) AS col0 FROM tab0 cor0
----
-149
-149
-149

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 75 <= + col0
----
85
5
59
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6615
SELECT CAST( - + col0 AS SIGNED ) - + - ( - col1 ) + 30 col0 FROM tab2 AS cor0
----
-111
-112
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6615
SELECT CAST ( - + col0 AS INTEGER ) - + - ( - col1 ) + 30 col0 FROM tab2 AS cor0
----
-111
-112
-67

query I rowsort
SELECT - + col0 - col1 + - ( + col0 ) FROM tab1 AS cor0
----
-116
-175
-229

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT + + 52 - COUNT( * ) AS col0 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-6617
SELECT + + 52 - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
49

query I rowsort
SELECT 22 - col0 + - - 5 - + 59 + - - col2 FROM tab1 AS cor0
----
-55
-58
13

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 34 <> + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + - col2 + - col1 * + 23 FROM tab0 AS cor0
----
-122
-1910
-493

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT DISTINCT - COUNT( - - col1 ) * + - COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6621
SELECT DISTINCT - COUNT ( - - col1 ) * + - COUNT ( * ) FROM tab1 AS cor0
----
9

query I rowsort
SELECT - + col2 + - col2 * 13 + + - col0 AS col0 FROM tab0 AS cor0
----
-1483
-227
-673

query I rowsort
SELECT + 19 + - + 81 * col0 * + 49 AS col2 FROM tab1
----
-202400
-337346
-361160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6624
SELECT ALL + CAST( NULL AS SIGNED ) + + ( - MIN( col2 ) ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6624
SELECT ALL + CAST ( NULL AS INTEGER ) + + ( - MIN ( col2 ) ) col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 65 col0, - ( - 43 ) FROM tab0
----
-65
43
-65
43
-65
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, col1 col2 FROM tab2
----
-46
51
-64
77
-75
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6627
SELECT DISTINCT 60, - col0 * CAST( NULL AS SIGNED ) - - + col0 AS col0 FROM tab2
----
60
NULL

skipif mysql # not compatible
query II rowsort label-6627
SELECT DISTINCT 60, - col0 * CAST ( NULL AS INTEGER ) - - + col0 AS col0 FROM tab2
----
60
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6628
SELECT 97 col0, SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6628
SELECT 97 col0, SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
97
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6629
SELECT MAX( - CAST( + 83 AS SIGNED ) ) col0 FROM tab2
----
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6629
SELECT MAX ( - CAST ( + 83 AS INTEGER ) ) col0 FROM tab2
----
-83

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT ALL + ( - - 29 ) * + + col2 FROM tab0 AS cor0
----
1363
2871
290

query I rowsort
SELECT col0 * - 24 * + + col0 * + + col0 FROM tab0 cor0
----
-15804072
-21904152
-81000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6633
SELECT ALL + 93 * - CAST( NULL AS SIGNED ) - 42 * + 65 + - - 36 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6633
SELECT ALL + 93 * - CAST ( NULL AS INTEGER ) - 42 * + 65 + - - 36 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6634
SELECT 80 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT + col0 - + ( 99 ) NOT IN ( + col1 * - + 14 * + ( - CAST( col1 AS SIGNED ) ) ) ) )
----

skipif mysql # not compatible
query I rowsort label-6634
SELECT 80 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT + col0 - + ( 99 ) NOT IN ( + col1 * - + 14 * + ( - CAST ( col1 AS INTEGER ) ) ) ) )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + + 17 - - + 93 NOT IN ( + col0 * + ( - + col0 ) / + col0 )
----

query I rowsort
SELECT + + 2 AS col2 FROM tab2 AS cor0
----
2
2
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6637
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) * - + col2 col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6637
SELECT DISTINCT + + CAST ( NULL AS REAL ) * - + col2 col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - ( + - ( + 14 ) ) AS col2 FROM tab0 cor0 WHERE NOT col1 * - col0 * - col0 NOT IN ( 72, col2 / - col2 + + + ( - - col1 ) + col1 )
----

query I rowsort
SELECT DISTINCT col2 + col1 + + col2 AS col1 FROM tab0 AS cor0
----
175
199
41

query III rowsort
SELECT ALL * FROM tab2 WHERE 83 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT ALL ( + COUNT( * ) ) + ( COUNT( * ) ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6641
SELECT ALL ( + COUNT ( * ) ) + ( COUNT ( * ) ) FROM tab2
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6642
SELECT DISTINCT + 19 + + CAST( NULL AS SIGNED ) * + - SUM( ALL CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6642
SELECT DISTINCT + 19 + + CAST ( NULL AS INTEGER ) * + - SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6643
SELECT - + 14 * col0 DIV - col0 + - CAST( + 36 AS SIGNED ) FROM tab1 WHERE - col2 < + - col0
----
-22

skipif mysql # not compatible
query I rowsort label-6643
SELECT - + 14 * col0 / - col0 + - CAST ( + 36 AS INTEGER ) FROM tab1 WHERE - col2 < + - col0
----
-22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6644
SELECT COUNT( * ) * CAST( - - 34 AS SIGNED ) AS col2 FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-6644
SELECT COUNT ( * ) * CAST ( - - 34 AS INTEGER ) AS col2 FROM tab1
----
102

query I rowsort
SELECT DISTINCT + col2 * - + 10 FROM tab1 AS cor0
----
-590
-680
-960

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 48 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6647
SELECT ALL + + COUNT( * ) * + 5 col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 + + + 45 AND - + 6 * + + 83 * 24
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6647
SELECT ALL + + COUNT ( * ) * + 5 col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 + + + 45 AND - + 6 * + + 83 * 24
----
0

query I rowsort
SELECT ALL + + col1 AS col2 FROM tab2 cor0 WHERE NOT 43 + + - col0 IS NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query II rowsort label-6649
SELECT ALL + 89 DIV 73 * col0 + + 93 * - col1, + col1 AS col1 FROM tab0 AS cor0
----
-1866
21
-7518
81
4
1

skipif mysql # not compatible
query II rowsort label-6649
SELECT ALL + 89 / 73 * col0 + + 93 * - col1, + col1 AS col1 FROM tab0 AS cor0
----
-1866
21
-7518
81
4
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT DISTINCT + 10 + COUNT( ALL + 16 ) col0 FROM tab1 AS cor0
----
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6650
SELECT DISTINCT + 10 + COUNT ( ALL + 16 ) col0 FROM tab1 AS cor0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6651
SELECT DISTINCT + 9 + col0 * - + col1 * - CAST( + - ( ( + - CAST( NULL AS SIGNED ) ) ) AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6651
SELECT DISTINCT + 9 + col0 * - + col1 * - CAST ( + - ( ( + - CAST ( NULL AS INTEGER ) ) ) AS INTEGER ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + 21 < col1 + + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6653
SELECT 27 AS col1, col1 * + - col0 * + + CAST( NULL AS SIGNED ) AS col1, + + col1 AS col2 FROM tab2 AS cor0
----
9 values hashing to 9630c18fbfce4da237a5bb76024480ae

skipif mysql # not compatible
query III rowsort label-6653
SELECT 27 AS col1, col1 * + - col0 * + + CAST ( NULL AS INTEGER ) AS col1, + + col1 AS col2 FROM tab2 AS cor0
----
9 values hashing to 9630c18fbfce4da237a5bb76024480ae

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 * col1 + + col2 <= NULL
----

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE - 12 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6656
SELECT DISTINCT SUM( ALL + CAST( - col1 AS SIGNED ) ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-6656
SELECT DISTINCT SUM ( ALL + CAST ( - col1 AS INTEGER ) ) FROM tab2 AS cor0
----
-195

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN + - col2 AND + ( - - col2 ) + + ( ( - 68 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6658
SELECT DISTINCT - col1 DIV 20 - col1 AS col1 FROM tab1 cor0
----
-14
-49
-5

skipif mysql # not compatible
query I rowsort label-6658
SELECT DISTINCT - col1 / 20 - col1 AS col1 FROM tab1 cor0
----
-14
-49
-5

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NULL >= ( 70 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT ALL + 65 - - - COUNT( * ) FROM tab1 cor0
----
62

skipif mysql # not compatible
query I rowsort label-6660
SELECT ALL + 65 - - - COUNT ( * ) FROM tab1 cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6661
SELECT DISTINCT - CAST( NULL AS SIGNED ) col2, - col0 + + 97 FROM tab0 AS cor0
----
NULL
0
NULL
10
NULL
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6661
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2, - col0 + + 97 FROM tab0 AS cor0
----
NULL
0
NULL
10
NULL
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6662
SELECT DISTINCT - COUNT( DISTINCT + - col0 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6662
SELECT DISTINCT - COUNT ( DISTINCT + - col0 ) FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6663
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, + col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-6663
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, + col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT + 3 * + + COUNT( * ) * 53 AS col1 FROM tab1
----
477

skipif mysql # not compatible
query I rowsort label-6664
SELECT + 3 * + + COUNT ( * ) * 53 AS col1 FROM tab1
----
477

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6665
SELECT CAST( - ( + 59 ) AS SIGNED ) FROM tab1
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-6665
SELECT CAST ( - ( + 59 ) AS INTEGER ) FROM tab1
----
-59
-59
-59

query I rowsort
SELECT - ( + col1 ) * + 56 + + col0 * + col1 FROM tab2
----
-510
1273
616

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col0 - col1 / - col0 + - + col2 + 25 >= + 30
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6668
SELECT ALL + ( - + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL + ( - + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6669
SELECT - COUNT( * ) AS col0, + COUNT( * ) AS col1 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-6669
SELECT - COUNT ( * ) AS col0, + COUNT ( * ) AS col1 FROM tab0
----
-3
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 > + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * - 70 * + 85 FROM tab0
----
-124950
-481950
-5950

query I rowsort
SELECT col1 FROM tab2 WHERE NOT - + 62 > + col1
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6673
SELECT DISTINCT + 81 * + COUNT( * ) AS col0 FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-6673
SELECT DISTINCT + 81 * + COUNT ( * ) AS col0 FROM tab2
----
243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6674
SELECT ALL - + CAST( col1 AS SIGNED ) * + + col2 * + col2 FROM tab2 AS cor0
----
-123200
-225388
-26979

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL - + CAST ( col1 AS INTEGER ) * + + col2 * + col2 FROM tab2 AS cor0
----
-123200
-225388
-26979

query II rowsort
SELECT + col0, 88 FROM tab2 AS cor0
----
46
88
64
88
75
88

query II rowsort
SELECT + 93, - col0 * - col0 AS col1 FROM tab1 AS cor0
----
93
2601
93
7225
93
8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - + 25 ) col2 FROM tab0
----
-25
-25
-25

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE - col1 * - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col1 ) col0 FROM tab2
----
51
67
77

query I rowsort
SELECT 89 + + 22 + col1 FROM tab0
----
112
132
192

onlyif mysql # DIV for integer division: 
query III rowsort label-6681
SELECT DISTINCT * FROM tab2 WHERE ( NOT + 40 < - - 83 DIV - 90 * + 26 + col1 )
----

skipif mysql # not compatible
query III rowsort label-6681
SELECT DISTINCT * FROM tab2 WHERE ( NOT + 40 < - - 83 / - 90 * + 26 + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + + - col1 + - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6683
SELECT ALL 81 DIV - 87 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL 81 / - 87 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + 61 + + - 85 AS col1 FROM tab2 AS cor0
----
-146
-146
-146

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT COUNT( * ) + MIN( DISTINCT - + 72 ) FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-6685
SELECT COUNT ( * ) + MIN ( DISTINCT - + 72 ) FROM tab1 AS cor0
----
-69

query I rowsort
SELECT ALL + - 91 AS col0 FROM tab1 AS cor0
----
-91
-91
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-6687
SELECT DISTINCT + 42 DIV - col2 * + - col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6687
SELECT DISTINCT + 42 / - col2 * + - col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6688
SELECT + MIN( DISTINCT - col2 ) AS col1 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-6688
SELECT + MIN ( DISTINCT - col2 ) AS col1 FROM tab1
----
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-6689
SELECT DISTINCT col2 DIV + - 97 + - + 65 AS col1, col0 AS col0 FROM tab2
----
-65
46
-65
64
-65
75

skipif mysql # not compatible
query II rowsort label-6689
SELECT DISTINCT col2 / + - 97 + - + 65 AS col1, col0 AS col0 FROM tab2
----
-65
46
-65
64
-65
75

query I rowsort
SELECT DISTINCT - - 22 AS col1 FROM tab0 cor0
----
22

query II rowsort
SELECT ALL col1 AS col0, - 26 * col1 FROM tab0 AS cor0 WHERE NULL IN ( 54, col0, - ( - 85 ), 12 * 71 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT - MAX( - + col2 ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-6692
SELECT - MAX ( - + col2 ) FROM tab2 cor0
----
23

query I rowsort
SELECT - 3 * - 22 AS col0 FROM tab1 AS cor0
----
66
66
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + col2 * + - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6695
SELECT - CAST( NULL AS DECIMAL ) * - col0 * - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6695
SELECT - CAST ( NULL AS REAL ) * - col0 * - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6696
SELECT - + COUNT( * ) col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6696
SELECT - + COUNT ( * ) col1 FROM tab1 cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= - 0
----

query II rowsort
SELECT + col2 AS col2, col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6699
SELECT ALL - CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6699
SELECT ALL - CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT NULL = - 28
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6701
SELECT DISTINCT col0 / + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6701
SELECT DISTINCT col0 / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT + MAX( DISTINCT - + col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-6702
SELECT + MAX ( DISTINCT - + col1 ) FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-6703
SELECT DISTINCT - 88 AS col1, + COUNT( * ) FROM tab1
----
-88
3

skipif mysql # not compatible
query II rowsort label-6703
SELECT DISTINCT - 88 AS col1, + COUNT ( * ) FROM tab1
----
-88
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6704
SELECT col1 AS col2, + CAST( + + col0 AS SIGNED ) FROM tab1
----
14
51
47
91
5
85

skipif mysql # not compatible
query II rowsort label-6704
SELECT col1 AS col2, + CAST ( + + col0 AS INTEGER ) FROM tab1
----
14
51
47
91
5
85

query II rowsort
SELECT - + col2 AS col1, 12 AS col0 FROM tab2 AS cor0
----
-23
12
-40
12
-58
12

query II rowsort
SELECT - - col2 AS col0, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query II rowsort
SELECT ALL + col1 AS col1, col0 AS col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE NOT 54 IS NOT NULL
----

query I rowsort
SELECT ( + 44 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query I rowsort
SELECT DISTINCT - 36 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-36

query I rowsort
SELECT + col1 * + 28 * col2 + + + 14 AS col1 FROM tab1 AS cor0
----
37646
8274
89502

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT DISTINCT - + COUNT( + col1 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6712
SELECT DISTINCT - + COUNT ( + col1 ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6713
SELECT - ( + COUNT( * ) ) + - 32 col1 FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6713
SELECT - ( + COUNT ( * ) ) + - 32 col1 FROM tab2 AS cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-6714
SELECT - MIN( DISTINCT col2 ) * - 94 AS col0 FROM tab0 AS cor0 WHERE NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6714
SELECT - MIN ( DISTINCT col2 ) * - 94 AS col0 FROM tab0 AS cor0 WHERE NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT DISTINCT MAX( + 32 ) + - COUNT( * ) FROM tab0 cor0
----
29

skipif mysql # not compatible
query I rowsort label-6715
SELECT DISTINCT MAX ( + 32 ) + - COUNT ( * ) FROM tab0 cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT SUM( - + ( - col2 ) ) AS col0 FROM tab0 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6716
SELECT SUM ( - + ( - col2 ) ) AS col0 FROM tab0 AS cor0 WHERE NULL < NULL
----
NULL

query I rowsort
SELECT ALL - 53 + col2 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
15
43
6

query I rowsort
SELECT 54 FROM tab1 WHERE - 94 = - 50
----

query II rowsort
SELECT col0, - 21 AS col0 FROM tab0
----
15
-21
87
-21
97
-21

query I rowsort
SELECT DISTINCT + 64 / + 56 * - - col1 * - col0 + col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 * + - col1 AS col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT SUM( ALL 83 ) AS col2 FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-6722
SELECT SUM ( ALL 83 ) AS col2 FROM tab1
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT - MAX( - - 53 ) AS col2 FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-6723
SELECT - MAX ( - - 53 ) AS col2 FROM tab0
----
-53

query I rowsort
SELECT ( - 76 ) AS col0 FROM tab0
----
-76
-76
-76

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 / - - col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL < + 14
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 90 AS col2, 6 * + 38 col2 FROM tab1 WHERE 89 IS NOT NULL
----
90
228
90
228
90
228

onlyif mysql # DIV for integer division: 
query I rowsort label-6728
SELECT - 38 DIV - ( - + 95 ) AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6728
SELECT - 38 / - ( - + 95 ) AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 37 IS NULL
----

query I rowsort
SELECT ALL - col2 * 73 AS col0 FROM tab0 AS cor0 WHERE - col1 + col0 IS NOT NULL
----
-3431
-7227
-730

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col0, 17 + + 19 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6732
SELECT + COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <= 83
----
0

skipif mysql # not compatible
query I rowsort label-6732
SELECT + COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL <= 83
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = - 2
----

query I rowsort
SELECT col1 * 34 + + 15 - - col0 * + 51 AS col2 FROM tab0 AS cor0
----
3534
4996
5166

query I rowsort
SELECT DISTINCT - - col2 + - - 44 AS col1 FROM tab0 WHERE NOT ( NOT ( ( ( NOT NULL BETWEEN col2 AND NULL ) ) ) )
----

query I rowsort
SELECT ALL col2 * + + col1 AS col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL col0 * + + col0 AS col1 FROM tab1
----
2601
7225
8281

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * + - 37 FROM tab2
----
-1887
-2479
-2849

query I rowsort
SELECT ALL - 57 + - col0 * + ( col2 ) FROM tab0 AS cor0
----
-762
-927
-9660

query I rowsort
SELECT DISTINCT - + 64 * - ( - 58 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-3712

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT + + col0 * + - col2 < col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + - col2 / + 28 + - col2 AND - col2 * - 32
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, + 72 AS col0 FROM tab2 AS cor0
----
51
72
67
72
77
72

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 9 * - col1 * + ( + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * 17 AS col0 FROM tab0 AS cor0
----
1377
17
357

query I rowsort
SELECT 30 + - - 44 FROM tab2 AS cor0
----
74
74
74

query I rowsort
SELECT ( - 13 ) + + - ( - col2 ) AS col1 FROM tab2
----
10
27
45

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - col2 AND + col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 * + + col0 >= + col1
----

query I rowsort
SELECT 66 + col2 - - ( - col0 ) AS col1 FROM tab0
----
-11
68
98

query III rowsort
SELECT * FROM tab0 WHERE + - col2 * + - col0 + 37 IS NULL
----

query I rowsort
SELECT ALL + + ( + 0 ) AS col2 FROM tab2 WHERE NOT - 27 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6754
SELECT DISTINCT - COUNT( + 14 ) - + + 3 AS col1 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-6754
SELECT DISTINCT - COUNT ( + 14 ) - + + 3 AS col1 FROM tab2
----
-6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6755
SELECT - + ( - ( col1 ) ) * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6755
SELECT - + ( - ( col1 ) ) * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - 66 * - 55 AS col1 FROM tab0
----
3630
3630
3630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6758
SELECT ALL - - CAST( NULL AS SIGNED ) - + 59 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6758
SELECT ALL - - CAST ( NULL AS INTEGER ) - + 59 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, + 50 + 25 col1 FROM tab1
----
-59
75
-68
75
-96
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT MAX( ALL + col2 ) col2 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6760
SELECT MAX ( ALL + col2 ) col2 FROM tab0
----
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 34 - col2 * + - 51 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 43 * - col1 col1 FROM tab2 AS cor0
----
-2193
-2881
-3311

onlyif mysql # DIV for integer division: 
query I rowsort label-6763
SELECT DISTINCT - + col1 DIV col0 FROM tab0 cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-6763
SELECT DISTINCT - + col1 / col0 FROM tab0 cor0
----
-5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 89 col2 FROM tab2 cor0
----
4539
5963
6853

onlyif mysql # aggregate syntax: 
query I rowsort label-6765
SELECT + MAX( + + col2 ) col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6765
SELECT + MAX ( + + col2 ) col2 FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6766
SELECT ALL + SUM( DISTINCT + ( + CAST( NULL AS SIGNED ) ) ) + - + 83 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6766
SELECT ALL + SUM ( DISTINCT + ( + CAST ( NULL AS INTEGER ) ) ) + - + 83 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6767
SELECT DISTINCT + MAX( + col1 ) col1 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6767
SELECT DISTINCT + MAX ( + col1 ) col1 FROM tab2
----
77

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( - ( - col2 ) ) + - 72 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ( - col2 ), - 39 AS col0 FROM tab1
----
-59
-39
-68
-39
-96
-39

query I rowsort
SELECT ALL - - col2 * + - col2 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6771
SELECT ALL - CAST( - 9 AS SIGNED ) * - col2 + + - col2 AS col1 FROM tab0 AS cor0
----
-100
-470
-990

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL - CAST ( - 9 AS INTEGER ) * - col2 + + - col2 AS col1 FROM tab0 AS cor0
----
-100
-470
-990

onlyif mysql # DIV for integer division: 
query I rowsort label-6772
SELECT DISTINCT col2 DIV - - col0 + - col2 * - 75 FROM tab1 AS cor0
----
4425
5100
7201

skipif mysql # not compatible
query I rowsort label-6772
SELECT DISTINCT col2 / - - col0 + - col2 * - 75 FROM tab1 AS cor0
----
4425
5100
7201

query I rowsort
SELECT ALL + 35 FROM tab1 cor0
----
35
35
35

onlyif mysql # DIV for integer division: 
query I rowsort label-6774
SELECT col1 + + + 93 DIV 91 * - col0 FROM tab0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-6774
SELECT col1 + + + 93 / 91 * - col0 FROM tab0
----
-66
-96
66

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 - col2 * - + col2 * - - 46 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6776
SELECT - + CAST( NULL AS DECIMAL ) + - 38 + - - col0 * - - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6776
SELECT - + CAST ( NULL AS REAL ) + - 38 + - - col0 * - - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6777
SELECT DISTINCT - SUM( DISTINCT + col1 ) col1 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6777
SELECT DISTINCT - SUM ( DISTINCT + col1 ) col1 FROM tab2 AS cor0
----
-195

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + - 99 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 26 * + col2 < + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6780
SELECT + col0 + 88 + + + CAST( - col2 AS SIGNED ) + + - 45 FROM tab1 cor0
----
-2
66
69

skipif mysql # not compatible
query I rowsort label-6780
SELECT + col0 + 88 + + + CAST ( - col2 AS INTEGER ) + + - 45 FROM tab1 cor0
----
-2
66
69

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL BETWEEN col2 / - col2 AND + col0
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT + MIN( ALL + 76 ) FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-6783
SELECT + MIN ( ALL + 76 ) FROM tab1
----
76

query III rowsort
SELECT * FROM tab0 WHERE - + ( + 2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-6785
SELECT - 44 DIV col2 * col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6785
SELECT - 44 / col2 * col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6786
SELECT + 67 DIV + col1 - col2 col1 FROM tab2
----
-22
-40
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6786
SELECT + 67 / + col1 - col2 col1 FROM tab2
----
-22
-40
-57

query I rowsort
SELECT + col0 - - - ( + + 33 ) + col0 FROM tab1
----
137
149
69

query I rowsort
SELECT ALL col1 * + + col0 AS col2 FROM tab0
----
1215
1827
97

query I rowsort
SELECT 43 FROM tab1 cor0 WHERE ( NULL ) > + + 74
----

query I rowsort
SELECT ALL - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6791
SELECT DISTINCT - CAST( NULL AS SIGNED ) - col1 * col0 - col0 + + - ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6791
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - col1 * col0 - col0 + + - ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 cor0
----
NULL

query II rowsort
SELECT - col2 * col1 AS col0, col1 + - col2 + 54 AS col2 FROM tab2 cor0
----
-1173
82
-3080
91
-3886
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT + COUNT( * ) * + COUNT( * ) col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6793
SELECT + COUNT ( * ) * + COUNT ( * ) col2 FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL + + 59 * ( ( + - 7 ) ) AS col1 FROM tab0 AS cor0
----
-413
-413
-413

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 IN ( + col0 * + 10 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 25 * + 58 FROM tab1 AS cor0
----
-1450
-1450
-1450

query I rowsort
SELECT DISTINCT - - 51 * - ( + + col2 ) AS col2 FROM tab0 AS cor0
----
-2397
-5049
-510

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 18 / + + col2 IS NULL
----

query I rowsort
SELECT ALL col2 * + col1 * - col0 FROM tab2 cor0
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT DISTINCT SUM( DISTINCT col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6800
SELECT DISTINCT SUM ( DISTINCT col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT - ( - - 32 ) AS col1 FROM tab0 AS cor0
----
-32

query I rowsort
SELECT DISTINCT ( col1 ) + + ( + 63 ) FROM tab0
----
144
64
84

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 / col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * + ( + + col2 ) * col0 col1, - 13 FROM tab0
----
10575
-13
75690
-13
931491
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6805
SELECT ALL - SUM( + col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-6805
SELECT ALL - SUM ( + col1 ) AS col0 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query II rowsort label-6806
SELECT DISTINCT - 0 AS col1, MIN( DISTINCT + 29 ) AS col1 FROM tab1
----
0
29

skipif mysql # not compatible
query II rowsort label-6806
SELECT DISTINCT - 0 AS col1, MIN ( DISTINCT + 29 ) AS col1 FROM tab1
----
0
29

query I rowsort
SELECT - col0 * + col0 AS col0 FROM tab0 WHERE NOT NULL <> col0
----

query I rowsort
SELECT DISTINCT - col2 * + + col0 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-6809
SELECT ALL + MIN( DISTINCT + col2 ) col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6809
SELECT ALL + MIN ( DISTINCT + col2 ) col2 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6810
SELECT ALL - + COUNT( * ) DIV - - MIN( - col2 ) AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-6810
SELECT ALL - + COUNT ( * ) / - - MIN ( - col2 ) AS col2 FROM tab0 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6811
SELECT DISTINCT + + col0 DIV col1 * - + col1 AS col0 FROM tab0 AS cor0
----
-84
-97
0

skipif mysql # not compatible
query I rowsort label-6811
SELECT DISTINCT + + col0 / col1 * - + col1 AS col0 FROM tab0 AS cor0
----
-84
-97
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN col2 * ( + ( 20 ) ) AND + ( + col0 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6813
SELECT DISTINCT * FROM tab2 WHERE - 98 * - col0 = - + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6813
SELECT DISTINCT * FROM tab2 WHERE - 98 * - col0 = - + CAST ( NULL AS REAL )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 INNER JOIN tab1 AS cor1 ON + 28 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6815
SELECT + COUNT( * ) * - 5 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-45

skipif mysql # not compatible
query I rowsort label-6815
SELECT + COUNT ( * ) * - 5 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-45

query I rowsort
SELECT DISTINCT col0 * + col0 + + col1 + - col2 + - - col2 * + - col2 AS col2 FROM tab1 cor0
----
-6697
3636
3690

query I rowsort
SELECT + - 62 - + 11 FROM tab0 AS cor0
----
-73
-73
-73

query I rowsort
SELECT DISTINCT - + 34 AS col2 FROM tab2 AS cor0
----
-34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 42 col2 FROM tab1 AS cor0
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-6820
SELECT DISTINCT - + SUM( ALL + 94 ), COUNT( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-282
3

skipif mysql # not compatible
query II rowsort label-6820
SELECT DISTINCT - + SUM ( ALL + 94 ), COUNT ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-282
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6821
SELECT + col0 + + col1 + + col0 + col0 - - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6821
SELECT + col0 + + col1 + + col0 + col0 - - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - col2 col1 FROM tab2
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6823
SELECT ALL CAST( - + ( + 13 ) AS SIGNED ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN col1 AND - col2
----

skipif mysql # not compatible
query I rowsort label-6823
SELECT ALL CAST ( - + ( + 13 ) AS INTEGER ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN col1 AND - col2
----

query I rowsort
SELECT DISTINCT - col2 FROM tab0 WHERE - col0 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT - 53 + col1 FROM tab2
----
-2
14
24

query I rowsort
SELECT DISTINCT + col1 * - col2 AS col0 FROM tab0 WHERE - 17 NOT BETWEEN 95 AND - - col1
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6827
SELECT + 94 + - + CAST( col0 AS SIGNED ) + + col2 AS col2 FROM tab1
----
139
68
71

skipif mysql # not compatible
query I rowsort label-6827
SELECT + 94 + - + CAST ( col0 AS INTEGER ) + + col2 AS col2 FROM tab1
----
139
68
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6828
SELECT ALL ( + col1 ) / + col0 / - + CAST( NULL AS SIGNED ) - - - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL ( + col1 ) / + col0 / - + CAST ( NULL AS INTEGER ) - - - col0 AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + + col0 AS col1, col1 AS col2 FROM tab1 cor0
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT - COUNT( col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6830
SELECT - COUNT ( col0 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6831
SELECT DISTINCT - - 58 AS col2, COUNT( DISTINCT - ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
58
3

skipif mysql # not compatible
query II rowsort label-6831
SELECT DISTINCT - - 58 AS col2, COUNT ( DISTINCT - ( + col1 ) ) AS col0 FROM tab0 AS cor0
----
58
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > col2 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT ALL MIN( + col1 ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL MIN ( + col1 ) FROM tab1 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6834
SELECT + col0 * 31 - - col0 DIV - 52 AS col0 FROM tab0 cor0
----
2696
3006
465

skipif mysql # not compatible
query I rowsort label-6834
SELECT + col0 * 31 - - col0 / - 52 AS col0 FROM tab0 cor0
----
2696
3006
465

onlyif mysql # aggregate syntax: 
query I rowsort label-6835
SELECT - - SUM( - 84 ) * + - 98 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
74088

skipif mysql # not compatible
query I rowsort label-6835
SELECT - - SUM ( - 84 ) * + - 98 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
74088

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT + COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-6836
SELECT + COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9

query II rowsort
SELECT - + col0, + col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 88 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( - 68 ) * - col2 FROM tab2 cor0
----
1564
2720
3944

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT DISTINCT ( - MAX( + - ( - + 24 ) ) ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-6840
SELECT DISTINCT ( - MAX ( + - ( - + 24 ) ) ) FROM tab2 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT - + SUM( ALL + - 79 ) FROM tab1 cor0
----
237

skipif mysql # not compatible
query I rowsort label-6841
SELECT - + SUM ( ALL + - 79 ) FROM tab1 cor0
----
237

query II rowsort
SELECT - + 22 AS col1, col0 AS col2 FROM tab2 AS cor0
----
-22
46
-22
64
-22
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT ALL - ( + + SUM( - + 71 ) ) AS col0 FROM tab1 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-6843
SELECT ALL - ( + + SUM ( - + 71 ) ) AS col0 FROM tab1 AS cor0
----
213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6844
SELECT ALL - ( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6844
SELECT ALL - ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT ALL + COUNT( ALL - col1 ) col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6845
SELECT ALL + COUNT ( ALL - col1 ) col2 FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT ALL - 3 * + - COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-6847
SELECT ALL - 3 * + - COUNT ( * ) FROM tab1
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL <= - 7 / - 2 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( col1 ) col1, - col0 + + col0 AS col2 FROM tab0 AS cor0
----
-1
0
-21
0
-81
0

query I rowsort
SELECT DISTINCT col1 - + - 26 AS col2 FROM tab0
----
107
27
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - - col1 col2 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # DIV for integer division: 
query II rowsort label-6852
SELECT col0 AS col1, col2 DIV - 88 FROM tab1 cor0
----
51
-1
85
0
91
0

skipif mysql # not compatible
query II rowsort label-6852
SELECT col0 AS col1, col2 / - 88 FROM tab1 cor0
----
51
-1
85
0
91
0

query II rowsort
SELECT DISTINCT + + col1, + col0 AS col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6854
SELECT - 91 DIV - COUNT( * ) FROM tab2 cor0
----
30

skipif mysql # not compatible
query I rowsort label-6854
SELECT - 91 / - COUNT ( * ) FROM tab2 cor0
----
30

query II rowsort
SELECT ALL + col2 * + + ( ( - 69 ) ) + - - col0, 46 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - - ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT - COUNT( * ) - MIN( - col0 ) AS col2 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-6856
SELECT - COUNT ( * ) - MIN ( - col0 ) AS col2 FROM tab1
----
88

query III rowsort
SELECT + 70 - + 18 * + col2 * + col0 AS col2, col1 + - col0 + + - 37, - - 73 AS col2 FROM tab2
----
9 values hashing to 7db45cbcff1393c165b7bbcefff366b8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6858
SELECT CAST( NULL AS DECIMAL ) - + - col0 * col0 - + - col0 + + 69 + - - col2 / col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6858
SELECT CAST ( NULL AS REAL ) - + - col0 * col0 - + - col0 + + 69 + - - col2 / col0 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6859
SELECT + MAX( + col1 ) - + 35 + - COUNT( * ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-6859
SELECT + MAX ( + col1 ) - + 35 + - COUNT ( * ) FROM tab1
----
9

query II rowsort
SELECT ALL col2 AS col1, + 77 + - col1 AS col1 FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6861
SELECT col2 DIV + + 70 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6861
SELECT col2 / + + 70 AS col1 FROM tab0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 / + - 18 col1 FROM tab1 WHERE NOT + - 4 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6863
SELECT ALL MAX( - - col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-6863
SELECT ALL MAX ( - - col1 ) FROM tab1 cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6864
SELECT + col1 * + - ( - 69 ) / col1 + + CAST( NULL AS SIGNED ) + - - 33 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6864
SELECT + col1 * + - ( - 69 ) / col1 + + CAST ( NULL AS INTEGER ) + - - 33 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6865
SELECT DISTINCT - COUNT( - CAST( + + col2 AS SIGNED ) ) AS col2 FROM tab2 AS cor0 WHERE col0 IN ( - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6865
SELECT DISTINCT - COUNT ( - CAST ( + + col2 AS INTEGER ) ) AS col2 FROM tab2 AS cor0 WHERE col0 IN ( - CAST ( NULL AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT SUM( ALL ( col0 ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-6866
SELECT SUM ( ALL ( col0 ) ) FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-6867
SELECT ALL - ( + COUNT( * ) ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL - ( + COUNT ( * ) ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT DISTINCT + COUNT( ALL - - col0 ) FROM tab0 WHERE NOT ( NOT - col1 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6868
SELECT DISTINCT + COUNT ( ALL - - col0 ) FROM tab0 WHERE NOT ( NOT - col1 IS NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 59 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0 )
----

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6872
SELECT SUM( DISTINCT - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-6872
SELECT SUM ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col0 ) col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT DISTINCT - 58 + - MIN( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT - 58 + - MIN ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6875
SELECT CAST( - + 86 AS SIGNED ) AS col0 FROM tab2
----
-86
-86
-86

skipif mysql # not compatible
query I rowsort label-6875
SELECT CAST ( - + 86 AS INTEGER ) AS col0 FROM tab2
----
-86
-86
-86

query I rowsort
SELECT 80 + - col0 AS col1 FROM tab2
----
16
34
5

query I rowsort
SELECT ALL 56 + 13 AS col1 FROM tab0
----
69
69
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6878
SELECT ALL SUM( - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6878
SELECT ALL SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT DISTINCT - COUNT( + - ( - + col1 ) ) col1 FROM tab1 AS cor0 WHERE NOT col1 > + ( + + col1 ) + col1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6879
SELECT DISTINCT - COUNT ( + - ( - + col1 ) ) col1 FROM tab1 AS cor0 WHERE NOT col1 > + ( + + col1 ) + col1
----
-3

query II rowsort
SELECT ALL - col0 AS col0, col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT - 28 + - col0 + + + 38 FROM tab1 AS cor0
----
-41
-75
-81

query I rowsort
SELECT + - 99 * + + ( - 67 ) AS col2 FROM tab2 AS cor0
----
6633
6633
6633

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6883
SELECT DISTINCT col0 * - + 68 + + + CAST( NULL AS SIGNED ) * - - col1 * + col0 + ( col1 ), - col2 AS col1 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-6883
SELECT DISTINCT col0 * - + 68 + + + CAST ( NULL AS INTEGER ) * - - col1 * + col0 + ( col1 ), - col2 AS col1 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6884
SELECT DISTINCT - CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6884
SELECT DISTINCT - CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL 29 + + + col2 * - - col2 FROM tab0
----
129
2238
9830

query I rowsort
SELECT DISTINCT col1 + - 53 * - col0 AS col0 FROM tab0
----
4632
5142
876

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6887
SELECT DISTINCT + CAST( + col1 AS SIGNED ) - + col2 col2 FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6887
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) - + col2 col2 FROM tab1
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6888
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-6888
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 30 * col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
2430
30
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 - - - col1 AS col1, - col2 * - col2 col0 FROM tab0
----
0
100
0
2209
0
9801

query I rowsort
SELECT ALL - 23 + + col1 AS col1 FROM tab0 AS cor0
----
-2
-22
58

query I rowsort
SELECT - + col0 * - 83 - - + 18 + - 65 * + + col1 + - col2 AS col1 FROM tab2 AS cor0
----
1830
285
498

query I rowsort
SELECT DISTINCT + - col2 * col2 + - col0 * - col1 + + col2 - - col2 AS col0 FROM tab2 AS cor0
----
1777
1863
3408

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT - COUNT( * ) + 17 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-6894
SELECT - COUNT ( * ) + 17 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT DISTINCT - - COUNT( * ) * - + MIN( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-6895
SELECT DISTINCT - - COUNT ( * ) * - + MIN ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT ALL - ( MIN( DISTINCT col1 ) ) * - ( - 40 ) AS col0 FROM tab2 AS cor0
----
-2040

skipif mysql # not compatible
query I rowsort label-6896
SELECT ALL - ( MIN ( DISTINCT col1 ) ) * - ( - 40 ) AS col0 FROM tab2 AS cor0
----
-2040

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + 59 * - ( 93 ) col2 FROM tab1 AS cor0
----
-323733
-373116
-526752

query II rowsort
SELECT + - col1 - + col2 AS col2, + ( - col0 ) FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND + col0 * - + col0 - - 28
----

query I rowsort
SELECT ALL - 36 * + 22 FROM tab1
----
-792
-792
-792

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 * - col2 - + col2 + - 84 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 = - + col1 + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6902
SELECT ALL + 9 DIV + 89 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6902
SELECT ALL + 9 / + 89 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6903
SELECT DISTINCT COUNT( * ) DIV + - SUM( DISTINCT 27 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6903
SELECT DISTINCT COUNT ( * ) / + - SUM ( DISTINCT 27 ) AS col0 FROM tab2
----
0

query II rowsort
SELECT ALL + col0 AS col2, - col1 AS col0 FROM tab1
----
51
-14
85
-5
91
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col1 AS col1, + 78 + - - 79 * 58 * + + 48 col0 FROM tab0 AS cor0
----
-1
220014
-21
220014
-81
220014

onlyif mysql # aggregate syntax: 
query I rowsort label-6906
SELECT DISTINCT - COUNT( * ) * - - 89 FROM tab2 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-6906
SELECT DISTINCT - COUNT ( * ) * - - 89 FROM tab2 AS cor0
----
-267

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE + col0 * + + col0 * + 46 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6908
SELECT COUNT( ALL 93 ) + + COUNT( * ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-6908
SELECT COUNT ( ALL 93 ) + + COUNT ( * ) AS col1 FROM tab2
----
6

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6910
SELECT DISTINCT - COUNT( 82 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6910
SELECT DISTINCT - COUNT ( 82 ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab0 WHERE NOT + col0 NOT BETWEEN ( - col1 ) AND ( + 99 - col0 )
----
47

query I rowsort
SELECT - 56 FROM tab2 WHERE NOT NULL IN ( col1 * + 15 )
----

query I rowsort
SELECT + col2 * + col0 + - 84 AS col1 FROM tab2
----
2476
4266
974

onlyif mysql # aggregate syntax: 
query I rowsort label-6914
SELECT + MAX( col1 ) AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-6914
SELECT + MAX ( col1 ) AS col2 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT - COUNT( * ) + MIN( ALL col1 ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-6915
SELECT - COUNT ( * ) + MIN ( ALL col1 ) FROM tab1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6916
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 WHERE NOT - 15 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6916
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 WHERE NOT - 15 IS NOT NULL
----
0

query I rowsort
SELECT col0 * + col2 + col1 AS col2 FROM tab2
----
1109
2637
4417

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 <= ( - col1 )
----

query I rowsort
SELECT DISTINCT 83 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 65 = col0 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 70 col0 FROM tab1 WHERE NULL IS NULL
----
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 38 col0 FROM tab1
----
123
129
89

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT COUNT( * ) + - ( + 82 ) FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-6923
SELECT COUNT ( * ) + - ( + 82 ) FROM tab0
----
-79

query I rowsort
SELECT 36 * + ( + col1 ) AS col1 FROM tab1
----
1692
180
504

onlyif mysql # aggregate syntax: 
query I rowsort label-6925
SELECT DISTINCT - 80 * COUNT( * ) FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-6925
SELECT DISTINCT - 80 * COUNT ( * ) FROM tab1
----
-240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6926
SELECT DISTINCT + col0 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6926
SELECT DISTINCT + col0 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - 47 FROM tab1 WHERE NULL <> ( 4 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6928
SELECT CAST( NULL AS SIGNED ) * col2 FROM tab2 WHERE col2 NOT BETWEEN col0 AND ( col2 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6928
SELECT CAST ( NULL AS INTEGER ) * col2 FROM tab2 WHERE col2 NOT BETWEEN col0 AND ( col2 )
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 col1 FROM tab1
----
-60

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - col2 + 54 AND ( NULL )
----

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + 56 * 91 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6932
SELECT DISTINCT - COUNT( * ) * CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6932
SELECT DISTINCT - COUNT ( * ) * CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 85 * col2 FROM tab1
----
5015
5780
8160

query III rowsort
SELECT * FROM tab2 WHERE ( col2 + + col2 / - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 91 * 17 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6936
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6936
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 * 66 + - col0 AS col1 FROM tab0 AS cor0
----
5655
6305
975

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + col0 * 86 )
----

query I rowsort
SELECT + 92 + col2 AS col0 FROM tab0
----
102
139
191

query I rowsort
SELECT - col2 FROM tab0 WHERE col0 IS NOT NULL
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + col2 col1 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL + col0 * + 9 - + col2 AS col1 FROM tab0 AS cor0
----
773
774
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 * 29 col2 FROM tab0 AS cor0
----
174
174
174

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( + col0 ) >= + ( col0 ) + + 0
----

query I rowsort
SELECT DISTINCT col1 * - col0 AS col1 FROM tab1 cor0
----
-425
-4277
-714

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

query I rowsort
SELECT + AVG ( ALL col1 ) FROM tab0 AS cor0 WHERE NOT ( 49 ) BETWEEN NULL AND ( NULL )
----
NULL

query I rowsort
SELECT 51 * + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + - col0 BETWEEN NULL AND ( col2 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT ALL COUNT( ALL 17 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6950
SELECT ALL COUNT ( ALL 17 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 50 AS col0 FROM tab0 cor0
----
50
50
50

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * 81 NOT BETWEEN ( NULL ) AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT DISTINCT 57 * - COUNT( * ) AS col2 FROM tab0
----
-171

skipif mysql # not compatible
query I rowsort label-6953
SELECT DISTINCT 57 * - COUNT ( * ) AS col2 FROM tab0
----
-171

query I rowsort
SELECT 49 * - col0 AS col1 FROM tab0 WHERE NOT 57 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6955
SELECT DISTINCT AVG ( col2 ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6955
SELECT DISTINCT AVG ( col2 ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - 94 + - col0 * 43 IN ( - 96 * col1 + col2 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 50 col1 FROM tab2
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-6958
SELECT + SUM( DISTINCT + ( + col1 ) ) * COUNT( * ) FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-6958
SELECT + SUM ( DISTINCT + ( + col1 ) ) * COUNT ( * ) FROM tab0
----
309

onlyif mysql # aggregate syntax: 
query I rowsort label-6959
SELECT DISTINCT SUM( - - col1 ) * + 90 AS col0 FROM tab2
----
17550

skipif mysql # not compatible
query I rowsort label-6959
SELECT DISTINCT SUM ( - - col1 ) * + 90 AS col0 FROM tab2
----
17550

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT ALL - COUNT( ( - 0 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6960
SELECT ALL - COUNT ( ( - 0 ) ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + col2 * 16 FROM tab2
----
368
640
928

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT DISTINCT - MAX( - col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-6962
SELECT DISTINCT - MAX ( - col2 ) FROM tab2
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + 86 col0 FROM tab0 AS cor0
----
107
167
87

query I rowsort
SELECT ALL 53 FROM tab1 AS cor0 WHERE col0 NOT IN ( col0 - col1 )
----
53
53
53

query I rowsort
SELECT + col0 * 19 + + col0 AS col1 FROM tab2 AS cor0
----
1280
1500
920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 AS col2, + 53 * - ( + 85 ) col2 FROM tab0
----
-1
-4505
-21
-4505
-81
-4505

query III rowsort
SELECT * FROM tab0 WHERE ( NOT NULL NOT IN ( - col1 * 99 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6968
SELECT DISTINCT + 85 AS col1, COUNT( * ) AS col1 FROM tab0 AS cor0
----
85
3

skipif mysql # not compatible
query II rowsort label-6968
SELECT DISTINCT + 85 AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
85
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col2 - 65 col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 AND - 33 + 38
----

query I rowsort
SELECT ALL - col1 * - + ( - col2 ) - col1 AS col2 FROM tab1 cor0
----
-1358
-300
-3243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6971
SELECT CAST( + col2 AS SIGNED ) * - col2 + col1 AS col2 FROM tab1 AS cor0
----
-3476
-4577
-9202

skipif mysql # not compatible
query I rowsort label-6971
SELECT CAST ( + col2 AS INTEGER ) * - col2 + col1 AS col2 FROM tab1 AS cor0
----
-3476
-4577
-9202

onlyif mysql # DIV for integer division: 
query I rowsort label-6972
SELECT - col2 DIV + - col2 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6972
SELECT - col2 / + - col2 AS col1 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - 99 + col2 AS col2 FROM tab2 AS cor0
----
-41
-59
-76

query I rowsort
SELECT col0 * col0 FROM tab2 AS cor0 WHERE ( + 79 ) IS NULL
----

query I rowsort
SELECT DISTINCT 84 / col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( + 72 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6976
SELECT ALL COUNT( * ) * + - 24 * - SUM( + col1 ) + + 87 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
4839

skipif mysql # not compatible
query I rowsort label-6976
SELECT ALL COUNT ( * ) * + - 24 * - SUM ( + col1 ) + + 87 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
4839

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 + + col0 col0 FROM tab2 AS cor0
----
-3
15
26

query I rowsort
SELECT + 97 + - + 40 * col1 AS col0 FROM tab0
----
-3143
-743
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6979
SELECT + CAST( NULL AS SIGNED ) + col0 + + col0 * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6979
SELECT + CAST ( NULL AS INTEGER ) + col0 + + col0 * col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col0 ) + - col2 + + - 10 + + 23 * col0 AS col0 FROM tab1
----
1118
1971
2106

onlyif mysql # DIV for integer division: 
query I rowsort label-6981
SELECT ALL - 33 DIV + col1 + - col0 AS col1 FROM tab0
----
-130
-15
-88

skipif mysql # not compatible
query I rowsort label-6981
SELECT ALL - 33 / + col1 + - col0 AS col1 FROM tab0
----
-130
-15
-88

onlyif mysql # DIV for integer division: 
query I rowsort label-6982
SELECT DISTINCT ( 83 ) * - + col0 DIV - col0 AS col1 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-6982
SELECT DISTINCT ( 83 ) * - + col0 / - col0 AS col1 FROM tab1
----
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6983
SELECT ALL 36 DIV - SUM( - - col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6983
SELECT ALL 36 / - SUM ( - - col2 ) FROM tab0
----
0

query I rowsort
SELECT 22 + + - 78 + + - col2 + col1 FROM tab0 AS cor0
----
-154
-22
-45

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - ( - 54 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - 10 AS col1 FROM tab1 cor0 WHERE NOT - col1 IS NULL
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-6987
SELECT - SUM( ALL + 26 ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-6987
SELECT - SUM ( ALL + 26 ) FROM tab2 AS cor0
----
-78

onlyif mysql # DIV for integer division: 
query I rowsort label-6988
SELECT 73 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6988
SELECT 73 / - col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col0 NOT BETWEEN ( col1 ) AND ( + 12 ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 5 ) IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6991
SELECT ALL - COUNT( * ) AS col2, 82 + - + 32 AS col1 FROM tab2 AS cor0
----
-3
50

skipif mysql # not compatible
query II rowsort label-6991
SELECT ALL - COUNT ( * ) AS col2, 82 + - + 32 AS col1 FROM tab2 AS cor0
----
-3
50

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - + 23 * + 86 )
----
0

skipif mysql # not compatible
query I rowsort label-6992
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - + 23 * + 86 )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT + MAX( + + 87 ) AS col1 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-6994
SELECT + MAX ( + + 87 ) AS col1 FROM tab1 AS cor0
----
87

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + col2 < NULL
----

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, 71 FROM tab0
----
15
71
87
71
97
71

query II rowsort
SELECT ALL + 96, col0 AS col1 FROM tab0
----
96
15
96
87
96
97

onlyif mysql # DIV for integer division: 
query I rowsort label-6999
SELECT - 8 DIV - 32 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6999
SELECT - 8 / - 32 AS col2 FROM tab0
----
0
0
0

query II rowsort
SELECT ALL + 45, col1 AS col2 FROM tab1
----
45
14
45
47
45
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT + col0 < + + ( - + col1 ) * - col1 )
----
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 89 NOT BETWEEN - col0 AND NULL
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7003
SELECT AVG ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7003
SELECT AVG ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7004
SELECT ALL COUNT( * ) AS col2, + 35 FROM tab0
----
3
35

skipif mysql # not compatible
query II rowsort label-7004
SELECT ALL COUNT ( * ) AS col2, + 35 FROM tab0
----
3
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT - 8 * - COUNT( * ) col1 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7005
SELECT - 8 * - COUNT ( * ) col1 FROM tab0 AS cor0
----
24

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7006
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + - col0 * - col2 * + 74 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7006
SELECT DISTINCT + CAST ( NULL AS REAL ) * + - col0 * - col2 * + 74 AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7007
SELECT + col2 FROM tab1 WHERE ( CAST( + + 61 AS SIGNED ) ) < + col2
----
68
96

skipif mysql # not compatible
query I rowsort label-7007
SELECT + col2 FROM tab1 WHERE ( CAST ( + + 61 AS INTEGER ) ) < + col2
----
68
96

query III rowsort
SELECT * FROM tab0 WHERE + col0 NOT IN ( + + col1 - + 67 + 12 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7009
SELECT + CAST( - 57 AS SIGNED ) + - col2 FROM tab0 cor0
----
-104
-156
-67

skipif mysql # not compatible
query I rowsort label-7009
SELECT + CAST ( - 57 AS INTEGER ) + - col2 FROM tab0 cor0
----
-104
-156
-67

query I rowsort
SELECT ALL + ( 90 ) * + col1 FROM tab1 AS cor0
----
1260
4230
450

query II rowsort
SELECT ALL + 90 * - - 7 AS col0, + 50 AS col0 FROM tab0 AS cor0
----
630
50
630
50
630
50

query I rowsort
SELECT DISTINCT col2 * + col0 * 96 AS col2 FROM tab0 AS cor0
----
67680
83520
921888

onlyif mysql # aggregate syntax: 
query I rowsort label-7013
SELECT ALL + + 75 * - - MIN( 79 ) - COUNT( * ) AS col1 FROM tab2 cor0
----
5922

skipif mysql # not compatible
query I rowsort label-7013
SELECT ALL + + 75 * - - MIN ( 79 ) - COUNT ( * ) AS col1 FROM tab2 cor0
----
5922

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT 27 < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7015
SELECT - - 21 + COUNT( * ) + + + 59 FROM tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-7015
SELECT - - 21 + COUNT ( * ) + + + 59 FROM tab0 AS cor0
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 55 AS col2, col0 + col1 col2 FROM tab1
----
55
138
55
65
55
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7017
SELECT - MIN( - + col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7017
SELECT - MIN ( - + col1 ) AS col1 FROM tab1
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, 28 FROM tab0
----
10
28
47
28
99
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col1 * + col1 col2 FROM tab2
----
2624
4547
5969

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT - ( - COUNT( * ) ) col2 FROM tab1 WHERE 1 < - ( + col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7020
SELECT - ( - COUNT ( * ) ) col2 FROM tab1 WHERE 1 < - ( + col1 )
----
0

query I rowsort
SELECT + 79 - + col2 FROM tab1
----
-17
11
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7022
SELECT + CAST( NULL AS SIGNED ) - + col2 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7022
SELECT + CAST ( NULL AS INTEGER ) - + col2 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 FROM tab0 AS cor0 WHERE + ( + + col0 ) IS NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT 12 * + col0 > ( + col2 )
----

query I rowsort
SELECT - + 28 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c3e7fa3d059fc708f03c60e9cef0c115

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7027
SELECT MIN( + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7027
SELECT MIN ( + col1 ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + + col1 ) <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-7029
SELECT ALL MIN( ALL + + 32 ) AS col0, - 28 FROM tab1 cor0
----
32
-28

skipif mysql # not compatible
query II rowsort label-7029
SELECT ALL MIN ( ALL + + 32 ) AS col0, - 28 FROM tab1 cor0
----
32
-28

query I rowsort
SELECT - 79 + + + ( + + col2 ) FROM tab1 AS cor0 WHERE NOT col1 <= NULL
----

query I rowsort
SELECT DISTINCT - ( - - 9 ) AS col1 FROM tab1
----
-9

query I rowsort
SELECT ALL col1 * - + 22 AS col0 FROM tab1
----
-1034
-110
-308

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 50 col1 FROM tab1
----
-50
-50
-50

query I rowsort
SELECT 14 * + 17 AS col2 FROM tab0
----
238
238
238

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 * col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * - col1 + + 72 + 59 AS col0 FROM tab1 AS cor0
----
-1213
-164
-3065

query I rowsort
SELECT - + col1 * col2 + + col2 AS col0 FROM tab1 AS cor0
----
-1248
-236
-3128

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7040
SELECT ALL - MIN( - col1 ) * CAST( + MIN( + ( - 20 ) ) AS SIGNED ) FROM tab0 AS cor0
----
-1620

skipif mysql # not compatible
query I rowsort label-7040
SELECT ALL - MIN ( - col1 ) * CAST ( + MIN ( + ( - 20 ) ) AS INTEGER ) FROM tab0 AS cor0
----
-1620

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + - 56 * col1 * + col1 + + + col0, col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7042
SELECT - + 86 DIV col1 + - 75 * - - 26 AS col0 FROM tab0 AS cor0
----
-1951
-1954
-2036

skipif mysql # not compatible
query I rowsort label-7042
SELECT - + 86 / col1 + - 75 * - - 26 AS col0 FROM tab0 AS cor0
----
-1951
-1954
-2036

query I rowsort
SELECT DISTINCT - - col0 AS col0 FROM tab2 WHERE + col1 * - col1 IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL - col2 * + - 60 FROM tab1 AS cor0
----
3540
4080
5760

query I rowsort
SELECT - - ( - + 98 ) - + col0 AS col1 FROM tab1 AS cor0
----
-149
-183
-189

query I rowsort
SELECT 14 * - col0 + col1 - + + col2 * col0 AS col0 FROM tab0 AS cor0
----
-10960
-2067
-834

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7047
SELECT ALL col1 col0, col2 + - + CAST( NULL AS SIGNED ) + + col1 AS col0, col2 AS col2 FROM tab2 AS cor0
----
9 values hashing to 8783bc9846f29f79c917d2e9266cdc64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-7047
SELECT ALL col1 col0, col2 + - + CAST ( NULL AS INTEGER ) + + col1 AS col0, col2 AS col2 FROM tab2 AS cor0
----
9 values hashing to 8783bc9846f29f79c917d2e9266cdc64

query I rowsort
SELECT ALL + 69 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - 31 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7050
SELECT ALL - + MIN( ALL - col2 ) col2 FROM tab2 AS cor0 WHERE NOT + CAST( - CAST( col0 AS SIGNED ) AS SIGNED ) + - 74 < - - col0 + - ( + 43 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7050
SELECT ALL - + MIN ( ALL - col2 ) col2 FROM tab2 AS cor0 WHERE NOT + CAST ( - CAST ( col0 AS INTEGER ) AS INTEGER ) + - 74 < - - col0 + - ( + 43 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 3 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7052
SELECT ALL 90 DIV + - 88 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7052
SELECT ALL 90 / + - 88 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query II rowsort
SELECT DISTINCT col2, - col0 AS col1 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7054
SELECT ALL - SUM( DISTINCT + ( + - col0 ) ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL - SUM ( DISTINCT + ( + - col0 ) ) FROM tab2 AS cor0
----
185

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0, - ( - col0 ) FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7057
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( - 84 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-7057
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( - 84 AS INTEGER ) <> NULL
----

query I rowsort
SELECT DISTINCT 40 * - - col0 + - - 86 + + - col1 + + - col0 + col2 AS col1 FROM tab0
----
3468
3967
637

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7059
SELECT CAST( - 16 AS SIGNED ) FROM tab2
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-7059
SELECT CAST ( - 16 AS INTEGER ) FROM tab2
----
-16
-16
-16

query I rowsort
SELECT col0 * + - 78 FROM tab2
----
-3588
-4992
-5850

onlyif mysql # aggregate syntax: 
query I rowsort label-7061
SELECT ALL COUNT( * ) * + MAX( 8 ) FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-7061
SELECT ALL COUNT ( * ) * + MAX ( 8 ) FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7062
SELECT ALL MAX( + col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-7062
SELECT ALL MAX ( + col2 ) AS col0 FROM tab2
----
58

query I rowsort
SELECT DISTINCT - col0 * + col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT ALL + + COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7064
SELECT ALL + + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7065
SELECT ALL CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) + 12 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) + 12 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 62 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7067
SELECT ALL * FROM tab1 WHERE + CAST( NULL AS DECIMAL ) = - - col0 * - - col1 / col1
----

skipif mysql # not compatible
query III rowsort label-7067
SELECT ALL * FROM tab1 WHERE + CAST ( NULL AS REAL ) = - - col0 * - - col1 / col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT DISTINCT MAX( ALL - 64 ) AS col1 FROM tab0, tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-7068
SELECT DISTINCT MAX ( ALL - 64 ) AS col1 FROM tab0, tab0 AS cor0
----
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-7069
SELECT col1 + - 6 DIV - col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7069
SELECT col1 + - 6 / - col1 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 6 NOT BETWEEN + - col0 AND 56
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7071
SELECT - - CAST( - col1 AS SIGNED ) + col1, ( + 50 ) AS col2 FROM tab1 AS cor0
----
0
50
0
50
0
50

skipif mysql # not compatible
query II rowsort label-7071
SELECT - - CAST ( - col1 AS INTEGER ) + col1, ( + 50 ) AS col2 FROM tab1 AS cor0
----
0
50
0
50
0
50

query I rowsort
SELECT ALL 40 AS col0 FROM tab1 AS cor0
----
40
40
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 64 col2 FROM tab0 AS cor0
----
64

query I rowsort
SELECT ALL col2 + + 80 * - ( + col0 ) FROM tab1
----
-3984
-6741
-7212

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7075
SELECT ALL - CAST( NULL AS SIGNED ) - + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7075
SELECT ALL - CAST ( NULL AS INTEGER ) - + col0 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7076
SELECT DISTINCT SUM( DISTINCT + col0 ) + - + 37 AS col2 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-7076
SELECT DISTINCT SUM ( DISTINCT + col0 ) + - + 37 AS col2 FROM tab0
----
162

query I rowsort
SELECT DISTINCT - 38 - + col2 - col0 FROM tab2
----
-107
-142
-171

query I rowsort
SELECT 0 - + col0 + + 16 AS col2 FROM tab0
----
-71
-81
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7079
SELECT DISTINCT + col0 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7079
SELECT DISTINCT + col0 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT - col1 AS col2, - 46 FROM tab1 AS cor0
----
-14
-46
-47
-46
-5
-46

query I rowsort
SELECT ALL + ( - ( - + 48 ) ) * + 3 + + 11 * - col0 + - 41 FROM tab1 AS cor0
----
-458
-832
-898

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 * + 32 / + + 92 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * - col2 * - 70 FROM tab1 AS cor0
----
-20650
-223720
-94080

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 AS cor0 WHERE - 87 / - 53 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 74 * - + 84 col1 FROM tab1 AS cor0
----
-6216
-6216
-6216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7086
SELECT DISTINCT + COUNT( - 83 ) * CAST( NULL AS SIGNED ) + AVG ( 65 ) FROM tab2 WHERE NOT - col0 * 44 * + col0 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7086
SELECT DISTINCT + COUNT ( - 83 ) * CAST ( NULL AS INTEGER ) + AVG ( 65 ) FROM tab2 WHERE NOT - col0 * 44 * + col0 <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7087
SELECT - 54 * - CAST( NULL AS SIGNED ) / + 55 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7087
SELECT - 54 * - CAST ( NULL AS INTEGER ) / + 55 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 * 11 col1 FROM tab1
----
220
220
220

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT - - COUNT( * ) AS col1 FROM tab0 WHERE NOT + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7089
SELECT - - COUNT ( * ) AS col1 FROM tab0 WHERE NOT + col2 IS NULL
----
3

query I rowsort
SELECT + + col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - col2 * - 45 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7091
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7091
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 45 * + - 46 FROM tab2 cor0
----
-2070
-2070
-2070

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7093
SELECT DISTINCT - MIN( ALL - + CAST( NULL AS SIGNED ) ) + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT - MIN ( ALL - + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL - 50 * + 90 AS col1, + 57 FROM tab2 AS cor0
----
-4500
57
-4500
57
-4500
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7095
SELECT ALL - + ( col2 ), - CAST( 84 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-59
-84
-68
-84
-96
-84

skipif mysql # not compatible
query II rowsort label-7095
SELECT ALL - + ( col2 ), - CAST ( 84 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-59
-84
-68
-84
-96
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7096
SELECT DISTINCT - CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7096
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col1 + + + col1 col0 FROM tab1 WHERE ( NULL ) IS NULL
----
185
79
95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + col1 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7099
SELECT + 85 + - - COUNT( * ) + + 17 col0 FROM tab0 AS cor0
----
105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7099
SELECT + 85 + - - COUNT ( * ) + + 17 col0 FROM tab0 AS cor0
----
105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col2, - 31 col0 FROM tab1 AS cor0
----
-59
-31
-68
-31
-96
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT DISTINCT + + ( COUNT( * ) ) + + + 73 AS col1 FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-7101
SELECT DISTINCT + + ( COUNT ( * ) ) + + + 73 AS col1 FROM tab0 AS cor0
----
76

query II rowsort
SELECT DISTINCT + + 11, 62 AS col2 FROM tab0 AS cor0
----
11
62

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 15 + + + col2 * + col0 = + 30
----

query I rowsort
SELECT DISTINCT col1 - + col1 * - col2 AS col0 FROM tab0
----
100
231
3888

query I rowsort
SELECT ALL - + 39 - + 96 AS col0 FROM tab1 AS cor0
----
-135
-135
-135

query I rowsort
SELECT 51 - - col1 FROM tab2 cor0
----
102
118
128

query I rowsort
SELECT + - ( col2 ) - + col1 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT col2 + - ( + col2 ) * col1 AS col0 FROM tab1 AS cor0
----
-1248
-236
-3128

onlyif mysql # aggregate syntax: 
query II rowsort label-7109
SELECT - COUNT( * ) + + COUNT( * ) AS col1, MAX( DISTINCT - 55 ) FROM tab2 AS cor0
----
0
-55

skipif mysql # not compatible
query II rowsort label-7109
SELECT - COUNT ( * ) + + COUNT ( * ) AS col1, MAX ( DISTINCT - 55 ) FROM tab2 AS cor0
----
0
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 93 col2 FROM tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT col0 + 76 + - - 71 AS col1 FROM tab2 AS cor0
----
193
211
222

query I rowsort
SELECT + + 35 FROM tab2 AS cor0 WHERE ( + col0 ) BETWEEN col2 AND - col0 + - + col2
----

query I rowsort
SELECT DISTINCT - 86 * - col0 AS col1 FROM tab0 AS cor0
----
1290
7482
8342

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT DISTINCT COUNT( * ) * 96 FROM tab0
----
288

skipif mysql # not compatible
query I rowsort label-7114
SELECT DISTINCT COUNT ( * ) * 96 FROM tab0
----
288

query I rowsort
SELECT DISTINCT 17 + col0 AS col2 FROM tab2
----
63
81
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 + + - col1 * - + col1 col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 46 col1 FROM tab2
----
-2346
-3082
-3542

query I rowsort
SELECT ALL + AVG ( col1 ) AS col1 FROM tab1 WHERE NOT + col0 NOT BETWEEN - col1 AND - + 77
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - 76 + + - col0 IS NOT NULL
----

query II rowsort
SELECT ALL - col1 AS col1, col1 - col1 FROM tab2
----
-51
0
-67
0
-77
0

query I rowsort
SELECT DISTINCT + 85 * col0 * + col2 FROM tab0 AS cor0
----
59925
73950
816255

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT ALL - MIN( + + col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7122
SELECT ALL - MIN ( + + col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ALL col0 * - + col2 * - col2 FROM tab0 AS cor0
----
33135
8700
950697

query II rowsort
SELECT + col2, col1 * col2 - + - col2 AS col1 FROM tab1 cor0
----
59
354
68
3264
96
1440

query II rowsort
SELECT 17 AS col0, 26 FROM tab0
----
17
26
17
26
17
26

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 * + col0 - + 23 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7127
SELECT MIN( ALL - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7127
SELECT MIN ( ALL - col1 ) FROM tab1 AS cor0
----
-47

query II rowsort
SELECT + col1 AS col0, + col0 AS col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

query II rowsort
SELECT - col2 + - - col2, + col0 AS col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

query I rowsort
SELECT DISTINCT + - col1 * ( + col2 ) - - col1 FROM tab2 AS cor0
----
-1122
-3003
-3819

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT 70 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1 + col2, col2 AS col2 FROM tab0 cor0
----
100
99
128
47
31
10

query I rowsort
SELECT - 24 + + col0 + - col0 * + - col2 FROM tab2 cor0
----
1080
2600
4401

query I rowsort
SELECT DISTINCT + + 78 + + col1 + + col1 AS col2 FROM tab2 cor0
----
180
212
232

onlyif mysql # aggregate syntax: 
query I rowsort label-7135
SELECT - COUNT( - col0 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7135
SELECT - COUNT ( - col0 ) AS col1 FROM tab0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE - 0 + ( + 15 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - col1 ) * + ( - + col1 ) AS col2 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT - 69 * 51 * - 64 AS col1 FROM tab2
----
225216
225216
225216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7139
SELECT 91 DIV COUNT( DISTINCT - 29 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7139
SELECT 91 / COUNT ( DISTINCT - 29 ) FROM tab1
----
91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = - ( 62 )
----

query I rowsort
SELECT ALL + - ( col1 ) * + col1 AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7142
SELECT DISTINCT + ( - col0 ) / + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT + ( - col0 ) / + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT ALL + SUM( - ( - 79 ) ) AS col2 FROM tab2 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-7143
SELECT ALL + SUM ( - ( - 79 ) ) AS col2 FROM tab2 AS cor0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT DISTINCT 54 + + COUNT( * ) AS col1 FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-7144
SELECT DISTINCT 54 + + COUNT ( * ) AS col1 FROM tab0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT ALL - + 44 + - ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-53

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL - + 44 + - ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 20 col0 FROM tab1
----
20
20
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7147
SELECT DISTINCT + CAST( NULL AS SIGNED ) - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7147
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7148
SELECT DISTINCT + CAST( + col1 AS SIGNED ) - col0 FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-7148
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) - col0 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7149
SELECT DISTINCT CAST( + MIN( ALL 26 ) AS SIGNED ) AS col1, - MIN( col1 ) AS col1 FROM tab1 AS cor0
----
26
-5

skipif mysql # not compatible
query II rowsort label-7149
SELECT DISTINCT CAST ( + MIN ( ALL 26 ) AS INTEGER ) AS col1, - MIN ( col1 ) AS col1 FROM tab1 AS cor0
----
26
-5

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 - - col0 / - - col2 * col0 BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7152
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 + - col2 * + + col1 + - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7152
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col0 + - col2 * + + col1 + - col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT ALL + MIN( ALL - 23 ) FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL + MIN ( ALL - 23 ) FROM tab0 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-7154
SELECT - + COUNT( * ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7154
SELECT - + COUNT ( * ) AS col2 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7155
SELECT MIN( DISTINCT + 52 ), - COUNT( * ) AS col1 FROM tab1
----
52
-3

skipif mysql # not compatible
query II rowsort label-7155
SELECT MIN ( DISTINCT + 52 ), - COUNT ( * ) AS col1 FROM tab1
----
52
-3

query II rowsort
SELECT ALL ( - - col2 ) AS col1, col2 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT 1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col2 * + + col2 AS col0 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT col0 * 49 * + col1 AS col1 FROM tab0
----
4753
59535
89523

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7160
SELECT * FROM tab0 WHERE NOT 75 * + 51 * col0 IN ( - - CAST( - + 45 AS SIGNED ), col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7160
SELECT * FROM tab0 WHERE NOT 75 * + 51 * col0 IN ( - - CAST ( - + 45 AS INTEGER ), col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT ALL - 6 * - - COUNT( * ) FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL - 6 * - - COUNT ( * ) FROM tab2
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7162
SELECT ALL - CAST( - CAST( 4 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-7162
SELECT ALL - CAST ( - CAST ( 4 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT - + SUM( ALL - col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-7163
SELECT - + SUM ( ALL - col1 ) FROM tab2 cor0
----
195

query I rowsort
SELECT + - 5 AS col2 FROM tab0 cor0
----
-5
-5
-5

query II rowsort
SELECT ALL - col1 AS col1, 0 FROM tab1
----
-14
0
-47
0
-5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7166
SELECT - ( - + col0 ) DIV col1 * - col2 + + 52 AS col0 FROM tab2
----
-6
52
52

skipif mysql # not compatible
query I rowsort label-7166
SELECT - ( - + col0 ) / col1 * - col2 + + 52 AS col0 FROM tab2
----
-6
52
52

query I rowsort
SELECT ALL 18 + col1 + col2 FROM tab2
----
135
143
92

query I rowsort
SELECT + 97 + 92 * + col0 AS col0 FROM tab1
----
4789
7917
8469

onlyif mysql # aggregate syntax: 
query I rowsort label-7169
SELECT DISTINCT COUNT( * ) + 87 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-7169
SELECT DISTINCT COUNT ( * ) + 87 FROM tab1
----
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7170
SELECT - SUM( - col1 ) AS col0 FROM tab0 WHERE + CAST( - - col1 AS SIGNED ) >= + 6 * - 13
----
103

skipif mysql # not compatible
query I rowsort label-7170
SELECT - SUM ( - col1 ) AS col0 FROM tab0 WHERE + CAST ( - - col1 AS INTEGER ) >= + 6 * - 13
----
103

query I rowsort
SELECT DISTINCT + col2 + + - 49 * - 48 FROM tab1
----
2411
2420
2448

query I rowsort
SELECT ALL - col0 AS col2 FROM tab0 WHERE NOT - 21 IS NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * + col0 - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7174
SELECT + 63 * - + MIN( ALL + 29 ) AS col2 FROM tab1 cor0
----
-1827

skipif mysql # not compatible
query I rowsort label-7174
SELECT + 63 * - + MIN ( ALL + 29 ) AS col2 FROM tab1 cor0
----
-1827

onlyif mysql # aggregate syntax: 
query I rowsort label-7175
SELECT + - 11 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-7175
SELECT + - 11 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT COUNT( DISTINCT - ( col0 ) ) - + 2 + - + COUNT( col2 ) col1 FROM tab1
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7176
SELECT COUNT ( DISTINCT - ( col0 ) ) - + 2 + - + COUNT ( col2 ) col1 FROM tab1
----
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7177
SELECT DISTINCT - + COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT - + COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT - col2 * + ( + col2 ) FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query II rowsort label-7179
SELECT - ( - COUNT( * ) ), 78 AS col1 FROM tab2 cor0
----
3
78

skipif mysql # not compatible
query II rowsort label-7179
SELECT - ( - COUNT ( * ) ), 78 AS col1 FROM tab2 cor0
----
3
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT ALL + - SUM( DISTINCT - + col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-7180
SELECT ALL + - SUM ( DISTINCT - + col2 ) AS col1 FROM tab1 AS cor0
----
223

query I rowsort
SELECT + + 50 AS col0 FROM tab0 AS cor0
----
50
50
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7182
SELECT - CAST( - + col0 AS SIGNED ) * - + col0 + 61 * - col1 * - - ( + col0 ) AS col0 FROM tab1
----
-269178
-33150
-46155

skipif mysql # not compatible
query I rowsort label-7182
SELECT - CAST ( - + col0 AS INTEGER ) * - + col0 + 61 * - col1 * - - ( + col0 ) AS col0 FROM tab1
----
-269178
-33150
-46155

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( - 26 ) * + col0 AS col2, - ( - - col0 ) col2 FROM tab2
----
1196
-46
1664
-64
1950
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7184
SELECT ALL * FROM tab2 WHERE NOT + col1 * CAST( + - col2 AS SIGNED ) BETWEEN NULL AND - col2
----

skipif mysql # not compatible
query III rowsort label-7184
SELECT ALL * FROM tab2 WHERE NOT + col1 * CAST ( + - col2 AS INTEGER ) BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT COUNT( - 97 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7185
SELECT COUNT ( - 97 ) AS col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7186
SELECT DISTINCT * FROM tab2 WHERE NOT col1 - + CAST( + col1 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7186
SELECT DISTINCT * FROM tab2 WHERE NOT col1 - + CAST ( + col1 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - 25, col2 FROM tab2
----
-25
23
-25
40
-25
58

query I rowsort
SELECT ( + 21 ) AS col0 FROM tab2
----
21
21
21

query II rowsort
SELECT DISTINCT 95, + col2 FROM tab2
----
95
23
95
40
95
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 69 BETWEEN NULL AND + 32
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 50 * - col2 FROM tab1 AS cor0
----
-2950
-3400
-4800

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT - - COUNT( DISTINCT - - col1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7192
SELECT - - COUNT ( DISTINCT - - col1 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7193
SELECT ALL + ( - col2 ) * col0 * CAST( NULL AS SIGNED ) + - col1 * col0 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7193
SELECT ALL + ( - col2 ) * col0 * CAST ( NULL AS INTEGER ) + - col1 * col0 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 4 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # aggregate syntax: 
query I rowsort label-7195
SELECT DISTINCT - 89 * - MIN( ALL - col2 ) FROM tab1
----
-8544

skipif mysql # not compatible
query I rowsort label-7195
SELECT DISTINCT - 89 * - MIN ( ALL - col2 ) FROM tab1
----
-8544

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 NOT IN ( - ( col1 ) + - 44 * col1 * + 37 + + 25 + + - col0, - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 * + col2 col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7198
SELECT + + AVG ( CAST( NULL AS SIGNED ) ) + 2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7198
SELECT + + AVG ( CAST ( NULL AS INTEGER ) ) + 2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7199
SELECT DISTINCT - 16 * 15 DIV + - 27 AS col1 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-7199
SELECT DISTINCT - 16 * 15 / + - 27 AS col1 FROM tab0 AS cor0
----
8

query I rowsort
SELECT + - col0 + + col1 + - col2 FROM tab0 AS cor0
----
-195
-76
19

query I rowsort
SELECT + - col1 + + 14 FROM tab1 cor0
----
-33
0
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 col1 FROM tab2 AS cor0 WHERE col0 * - col0 + - 70 <= - col2
----
-23
-40
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + + col1 AND 80
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( NOT NULL IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + - 65 - + col0 col2, col0 + + + 97 - - + 90 * - - ( - - col1 ) AS col2 FROM tab0
----
-127
7402
-162
2074
-261
284

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 ) + - col2 + + col2 + + 18 col2 FROM tab0
----
-69
-79
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7207
SELECT COUNT( DISTINCT + col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7207
SELECT COUNT ( DISTINCT + col0 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT 34 * - COUNT( * ) AS col2 FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-7208
SELECT 34 * - COUNT ( * ) AS col2 FROM tab2
----
-102

query II rowsort
SELECT DISTINCT - 83 * col1 - + col2 AS col1, col0 AS col0 FROM tab1
----
-1258
51
-3969
91
-474
85

query I rowsort
SELECT ALL 60 + + + col0 AS col0 FROM tab2
----
106
124
135

query I rowsort
SELECT DISTINCT - - col2 * - col1 * 85 AS col0 FROM tab1 WHERE 0 IS NULL
----

query I rowsort
SELECT + 41 - - + 54 FROM tab1 AS cor0
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - - col2 col0 FROM tab1 AS cor0
----
118
136
192

query I rowsort
SELECT DISTINCT + 12 AS col2 FROM tab1 cor0
----
12

query I rowsort
SELECT DISTINCT - col1 * - 76 FROM tab0
----
1596
6156
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7216
SELECT ALL 33 * CAST( - 36 AS SIGNED ) FROM tab2
----
-1188
-1188
-1188

skipif mysql # not compatible
query I rowsort label-7216
SELECT ALL 33 * CAST ( - 36 AS INTEGER ) FROM tab2
----
-1188
-1188
-1188

onlyif mysql # aggregate syntax: 
query I rowsort label-7217
SELECT 21 + + COUNT( * ) + + - 49 AS col0 FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-7217
SELECT 21 + + COUNT ( * ) + + - 49 AS col0 FROM tab0
----
-25

query II rowsort
SELECT DISTINCT col1 AS col0, col2 * col2 AS col2 FROM tab0
----
1
9801
21
100
81
2209

onlyif mysql # aggregate syntax: 
query I rowsort label-7219
SELECT ALL ( - SUM( DISTINCT - - col0 ) ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-7219
SELECT ALL ( - SUM ( DISTINCT - - col0 ) ) AS col1 FROM tab2
----
-185

query I rowsort
SELECT DISTINCT - + ( - + 61 ) AS col2 FROM tab2 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-7221
SELECT ALL - - COUNT( * ), + 95 - - COUNT( * ) col2 FROM tab2 AS cor0
----
3
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7221
SELECT ALL - - COUNT ( * ), + 95 - - COUNT ( * ) col2 FROM tab2 AS cor0
----
3
98

query I rowsort
SELECT DISTINCT 48 AS col2 FROM tab2 cor0
----
48

query II rowsort
SELECT DISTINCT - 48 AS col0, ( 89 ) + 74 FROM tab2 AS cor0
----
-48
163

query II rowsort
SELECT ALL - col2 * - + 21 AS col2, col2 AS col1 FROM tab1
----
1239
59
1428
68
2016
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7225
SELECT DISTINCT - 93 DIV + ( + + col0 ) FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-7225
SELECT DISTINCT - 93 / + ( + + col0 ) FROM tab0
----
-1
-6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT - COUNT( DISTINCT - col0 ) * 75 * + 18 col2 FROM tab1
----
-4050

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7226
SELECT - COUNT ( DISTINCT - col0 ) * 75 * + 18 col2 FROM tab1
----
-4050

query I rowsort
SELECT ALL + 66 * col1 FROM tab0
----
1386
5346
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7228
SELECT - COUNT( * ) * 82 AS col0 FROM tab2
----
-246

skipif mysql # not compatible
query I rowsort label-7228
SELECT - COUNT ( * ) * 82 AS col0 FROM tab2
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT ALL MIN( + col2 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7229
SELECT ALL MIN ( + col2 ) FROM tab2
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + col0 col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7231
SELECT + CAST( col0 AS SIGNED ), col1 FROM tab1
----
51
14
85
5
91
47

skipif mysql # not compatible
query II rowsort label-7231
SELECT + CAST ( col0 AS INTEGER ), col1 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT ALL SUM( DISTINCT + col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-7232
SELECT ALL SUM ( DISTINCT + col2 ) FROM tab0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-7233
SELECT + col1 + col1 DIV - col2 + + 76 FROM tab2 AS cor0
----
125
142
152

skipif mysql # not compatible
query I rowsort label-7233
SELECT + col1 + col1 / - col2 + + 76 FROM tab2 AS cor0
----
125
142
152

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL + col1, 4 AS col0 FROM tab1 AS cor0
----
14
4
47
4
5
4

query I rowsort
SELECT - col2 + col0 * col2 + + + col2 FROM tab1 cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7237
SELECT + + ( COUNT( * ) ) + + - 34 DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-7237
SELECT + + ( COUNT ( * ) ) + + - 34 / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-8

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN - 2 - + col2 AND + 42
----

query I rowsort
SELECT + + 16 + 83 AS col0 FROM tab2 cor0
----
99
99
99

query I rowsort
SELECT + 5 + + col2 + + 21 * - - 12 * - col2 AS col1 FROM tab0
----
-11792
-24844
-2505

query I rowsort
SELECT ALL ( + col1 ) * + 15 * col2 + - col1 * 68 AS col0 FROM tab2
----
14127
40964
53734

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 + + + col1 col0 FROM tab1
----
105
63
72

query I rowsort
SELECT ALL - col1 / - - col1 / + - col0 * - col1 AS col1 FROM tab1 WHERE 1 < NULL
----

query I rowsort
SELECT 14 FROM tab1 WHERE + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT ALL COUNT( * ) + - SUM( ALL col1 ) AS col0 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL COUNT ( * ) + - SUM ( ALL col1 ) AS col0 FROM tab1
----
-63

query I rowsort
SELECT - 7 FROM tab1 WHERE NULL BETWEEN + col2 - + col0 AND ( - + 73 + + col1 + - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7247
SELECT ALL + COUNT( * ) - - COUNT( * ) * - 40 AS col0 FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-7247
SELECT ALL + COUNT ( * ) - - COUNT ( * ) * - 40 AS col0 FROM tab2
----
-117

query I rowsort
SELECT DISTINCT - col0 + + - 13 AS col1 FROM tab0
----
-100
-110
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7249
SELECT ALL - col1 - - - 11 + 68 / col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL - col1 - - - 11 + 68 / col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 - + 2 + + + col2 AS col0 FROM tab1 AS cor0
----
116
134
190

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT + + ( MAX( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-7251
SELECT + + ( MAX ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
-46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 / - 13 ) <> ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col0 * col2 / + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7255
SELECT ALL + CAST( NULL AS SIGNED ) * + 0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7255
SELECT ALL + CAST ( NULL AS INTEGER ) * + 0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7256
SELECT - COUNT( 92 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7256
SELECT - COUNT ( 92 ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7257
SELECT ALL SUM( col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-7257
SELECT ALL SUM ( col2 ) FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7258
SELECT DISTINCT - MIN( + col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7258
SELECT DISTINCT - MIN ( + col1 ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 18 - + - 25 <= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + - col0 - + col0 col1 FROM tab2 AS cor0
----
-2392
-4992
-5100

query II rowsort
SELECT 38 * 87 + + col2 AS col0, - col1 FROM tab0 cor0
----
3316
-21
3353
-81
3405
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 70 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7263
SELECT ALL - COUNT( * ) * + - ( + COUNT( * ) ) * 71 AS col0 FROM tab0 AS cor0
----
639

skipif mysql # not compatible
query I rowsort label-7263
SELECT ALL - COUNT ( * ) * + - ( + COUNT ( * ) ) * 71 AS col0 FROM tab0 AS cor0
----
639

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE NOT NULL BETWEEN + ( - + col1 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7265
SELECT + CAST( - ( - 75 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
75
75
75

skipif mysql # not compatible
query I rowsort label-7265
SELECT + CAST ( - ( - 75 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT + - 4 AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7267
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( + col2 AS SIGNED ) <> - col0
----

skipif mysql # not compatible
query III rowsort label-7267
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( + col2 AS INTEGER ) <> - col0
----

query I rowsort
SELECT - + 28 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT col0 < - + col1
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-7270
SELECT ALL + 93 * - 84 + + 21 AS col0, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-7791
3

skipif mysql # not compatible
query II rowsort label-7270
SELECT ALL + 93 * - 84 + + 21 AS col0, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-7791
3

query I rowsort
SELECT col1 * + 6 FROM tab1
----
282
30
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 * 58 col1 FROM tab1
----
5046
5046
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT + MIN( col1 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-7273
SELECT + MIN ( col1 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7274
SELECT + + col2 DIV - 48 AS col0 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-7274
SELECT + + col2 / - 48 AS col0 FROM tab1 AS cor0
----
-1
-1
-2

query II rowsort
SELECT DISTINCT - 95 AS col1, col2 FROM tab1 AS cor0
----
-95
59
-95
68
-95
96

query I rowsort
SELECT ( + ( 71 ) ) AS col1 FROM tab2 AS cor0
----
71
71
71

query I rowsort
SELECT DISTINCT 95 + - - col2 * - ( col1 ) * - 71 + col2 - + col1 + + col0 AS col0 FROM tab2
----
218802
276067
83396

query I rowsort
SELECT col1 * - + col2 + + 97 AS col0 FROM tab0
----
-113
-2
-3710

onlyif mysql # DIV for integer division: 
query I rowsort label-7279
SELECT DISTINCT col1 + - 92 DIV + - 7 FROM tab1
----
18
27
60

skipif mysql # not compatible
query I rowsort label-7279
SELECT DISTINCT col1 + - 92 / + - 7 FROM tab1
----
18
27
60

query I rowsort
SELECT 53 * + col1 + - + 45 FROM tab2
----
2658
3506
4036

query I rowsort
SELECT 12 + + col1 * + 98 AS col1 FROM tab0
----
110
2070
7950

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7282
SELECT 82 DIV - - 55 - CAST( + col0 AS SIGNED ) + - col1 + - 33 FROM tab1 AS cor0
----
-122
-170
-97

skipif mysql # not compatible
query I rowsort label-7282
SELECT 82 / - - 55 - CAST ( + col0 AS INTEGER ) + - col1 + - 33 FROM tab1 AS cor0
----
-122
-170
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7283
SELECT DISTINCT + - col0 / 71 + + + CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7283
SELECT DISTINCT + - col0 / 71 + + + CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 98 + - col2
----

query I rowsort
SELECT col1 + - col0 * + - 23 + + col0 - col1 FROM tab0 AS cor0
----
2088
2328
360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - - col2 ) col2 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-7287
SELECT DISTINCT COUNT( DISTINCT col1 ) AS col1, - 61 * + + ( 88 ) AS col2 FROM tab0 AS cor0
----
3
-5368

skipif mysql # not compatible
query II rowsort label-7287
SELECT DISTINCT COUNT ( DISTINCT col1 ) AS col1, - 61 * + + ( 88 ) AS col2 FROM tab0 AS cor0
----
3
-5368

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE ( ( NOT col1 >= + col1 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 66 ) BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 67 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 17 col0 FROM tab1 AS cor0
----
17
17
17

query II rowsort
SELECT + 61 AS col0, col1 AS col1 FROM tab2
----
61
51
61
67
61
77

query III rowsort
SELECT * FROM tab1 WHERE - + 11 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - - col0 * 44 + + 64
----

query I rowsort
SELECT ALL + col0 + - 35 FROM tab2
----
11
29
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + 62 - + - col1 col2, - 41 - - ( - col1 ) * - col0 FROM tab2
----
-1375
2305
-2403
4887
-3529
4984

query I rowsort
SELECT col0 * - col1 * - col2 - col2 FROM tab1
----
25016
290768
68448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7299
SELECT DISTINCT - 4 + + CAST( NULL AS SIGNED ) * + - col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7299
SELECT DISTINCT - 4 + + CAST ( NULL AS INTEGER ) * + - col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7300
SELECT COUNT( * ) - - MIN( ALL + col0 ) AS col0 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-7300
SELECT COUNT ( * ) - - MIN ( ALL + col0 ) AS col0 FROM tab0
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7301
SELECT DISTINCT 23 - - CAST( - COUNT( ALL - - ( - - 58 ) ) AS SIGNED ) AS col2 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-7301
SELECT DISTINCT 23 - - CAST ( - COUNT ( ALL - - ( - - 58 ) ) AS INTEGER ) AS col2 FROM tab0
----
20

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 17 col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - + ( + - col2 ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT + + MIN( DISTINCT + + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7305
SELECT + + MIN ( DISTINCT + + col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT DISTINCT - 99 + 40 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT - MIN( - col1 ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-7307
SELECT - MIN ( - col1 ) FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-7308
SELECT ALL - 67 * - COUNT( * ) col2, ( 78 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
603
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7308
SELECT ALL - 67 * - COUNT ( * ) col2, ( 78 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
603
78

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN - 27 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7310
SELECT ALL + 48 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-7310
SELECT ALL + 48 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
144

onlyif mysql # DIV for integer division: 
query I rowsort label-7311
SELECT ALL - col2 DIV col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL - col2 / col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7312
SELECT ALL 42 * + CAST( NULL AS DECIMAL ) + + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7312
SELECT ALL 42 * + CAST ( NULL AS REAL ) + + col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 25 * - 32 FROM tab1 AS cor0
----
-800
-800
-800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 32 * + 61 + - - ( + + col1 ) col0, + col0 - + + 79 AS col2 FROM tab1 AS cor0
----
1957
6
1966
-28
1999
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7315
SELECT - - COUNT( * ), + COUNT( * ) DIV + 54 FROM tab1 WHERE NOT + ( - CAST( NULL AS SIGNED ) ) IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-7315
SELECT - - COUNT ( * ), + COUNT ( * ) / + 54 FROM tab1 WHERE NOT + ( - CAST ( NULL AS INTEGER ) ) IS NULL
----
0
0

query I rowsort
SELECT col0 * - + col1 FROM tab2
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 76 col0 FROM tab1
----
-4484
-5168
-7296

onlyif mysql # aggregate syntax: 
query II rowsort label-7318
SELECT 25 * - - COUNT( * ) * - 32 AS col1, 76 FROM tab0
----
-2400
76

skipif mysql # not compatible
query II rowsort label-7318
SELECT 25 * - - COUNT ( * ) * - 32 AS col1, 76 FROM tab0
----
-2400
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7319
SELECT - MIN( + - col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7319
SELECT - MIN ( + - col2 ) AS col1 FROM tab1
----
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col0 <> - - col2 - - col1 + col2 * 2 * - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7321
SELECT 5 * - + COUNT( * ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-7321
SELECT 5 * - + COUNT ( * ) FROM tab0
----
-15

query I rowsort
SELECT - col2 + + 70 FROM tab2
----
12
30
47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NULL >= 7 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7324
SELECT ALL - + 76 DIV col1 * - col2 FROM tab0 cor0
----
0
30
7524

skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL - + 76 / col1 * - col2 FROM tab0 cor0
----
0
30
7524

onlyif mysql # aggregate syntax: 
query I rowsort label-7325
SELECT DISTINCT + COUNT( * ) * - 31 FROM tab1 AS cor0 WHERE NOT ( + 22 + - 84 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7325
SELECT DISTINCT + COUNT ( * ) * - 31 FROM tab1 AS cor0 WHERE NOT ( + 22 + - 84 IS NOT NULL )
----
0

query I rowsort
SELECT DISTINCT col2 + + - col2 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IS NOT NULL OR NOT - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7328
SELECT ALL ( + MIN( ALL - col0 ) ) + + ( COUNT( * ) ) AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-7328
SELECT ALL ( + MIN ( ALL - col0 ) ) + + ( COUNT ( * ) ) AS col2 FROM tab2
----
-72

query I rowsort
SELECT DISTINCT 46 + col2 FROM tab1
----
105
114
142

query I rowsort
SELECT DISTINCT col1 - + + 56 FROM tab2 AS cor0
----
-5
11
21

query II rowsort
SELECT DISTINCT - col0, + col1 * - - col2 AS col0 FROM tab1 AS cor0
----
-51
1344
-85
295
-91
3196

query I rowsort
SELECT - - ( + 11 ) + - ( + ( 98 ) ) AS col2 FROM tab0 AS cor0
----
-87
-87
-87

query I rowsort
SELECT + col0 + + ( - col0 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7334
SELECT ALL - COUNT( * ) AS col1, + COUNT( * ) FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-7334
SELECT ALL - COUNT ( * ) AS col1, + COUNT ( * ) FROM tab0 AS cor0
----
-3
3

query I rowsort
SELECT DISTINCT 78 - - col0 AS col0 FROM tab2
----
124
142
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7336
SELECT CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-7336
SELECT CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7337
SELECT ( + + col2 ), col2 + + 48 - + + col1 * - + 36 + + col2 DIV + col1 FROM tab0 AS cor0
----
10
814
47
3011
99
282

skipif mysql # not compatible
query II rowsort label-7337
SELECT ( + + col2 ), col2 + + 48 - + + col1 * - + 36 + + col2 / + col1 FROM tab0 AS cor0
----
10
814
47
3011
99
282

query I rowsort
SELECT ALL col0 * - + col1 * - 93 AS col2 FROM tab0 AS cor0
----
112995
169911
9021

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 39 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 60 FROM tab2 cor0
----
-60
-60
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7341
SELECT DISTINCT - col1 col0 FROM tab0 WHERE NOT - - col2 >= - - 31 * CAST( + - col1 AS DECIMAL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7341
SELECT DISTINCT - col1 col0 FROM tab0 WHERE NOT - - col2 >= - - 31 * CAST ( + - col1 AS REAL )
----

query II rowsort
SELECT DISTINCT col2 AS col0, + col1 * col1 FROM tab2
----
23
2601
40
5929
58
4489

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 86 IS NOT NULL
----

query I rowsort
SELECT ALL - ( + + col0 ) FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7346
SELECT ALL CAST( NULL AS SIGNED ), 8 AS col0 FROM tab1 AS cor0
----
NULL
8
NULL
8
NULL
8

skipif mysql # not compatible
query II rowsort label-7346
SELECT ALL CAST ( NULL AS INTEGER ), 8 AS col0 FROM tab1 AS cor0
----
NULL
8
NULL
8
NULL
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT - + MAX( + col0 ) AS col0 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7347
SELECT - + MAX ( + col0 ) AS col0 FROM tab2 cor0
----
-75

query I rowsort
SELECT DISTINCT 1 * + - col0 AS col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7349
SELECT - COUNT( - + 89 ) DIV + SUM( - col2 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7349
SELECT - COUNT ( - + 89 ) / + SUM ( - col2 ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7350
SELECT - 57 * - ( - col1 ) - - + CAST( col0 AS SIGNED ) + + col2 + 13 AS col0 FROM tab0 AS cor0
----
-1087
-4542
152

skipif mysql # not compatible
query I rowsort label-7350
SELECT - 57 * - ( - col1 ) - - + CAST ( col0 AS INTEGER ) + + col2 + 13 AS col0 FROM tab0 AS cor0
----
-1087
-4542
152

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND + ( + col0 )
----

query I rowsort
SELECT ALL + col1 + + ( - col2 ) FROM tab1
----
-21
-54
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7353
SELECT ALL 24 + - 74 - + + col2 * - col1 * 13 + - 13 * - CAST( - 51 AS SIGNED ) AS col2 FROM tab0
----
2017
48778
574

skipif mysql # not compatible
query I rowsort label-7353
SELECT ALL 24 + - 74 - + + col2 * - col1 * 13 + - 13 * - CAST ( - 51 AS INTEGER ) AS col2 FROM tab0
----
2017
48778
574

onlyif mysql # aggregate syntax: 
query I rowsort label-7354
SELECT DISTINCT COUNT( ALL - col1 ) * MAX( ALL + + 98 ) * + 35 FROM tab1
----
10290

skipif mysql # not compatible
query I rowsort label-7354
SELECT DISTINCT COUNT ( ALL - col1 ) * MAX ( ALL + + 98 ) * + 35 FROM tab1
----
10290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) * col0 col2 FROM tab0
----
1215
1827
97

query III rowsort
SELECT * FROM tab0 WHERE + + 60 * + 12 < + - 42
----

query I rowsort
SELECT ALL col1 * - + 70 AS col2 FROM tab0
----
-1470
-5670
-70

query III rowsort
SELECT ALL * FROM tab1 WHERE - 54 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7359
SELECT - + col0 DIV - col1 AS col0 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-7359
SELECT - + col0 / - col1 AS col0 FROM tab1 AS cor0
----
1
17
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 = - 81
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( col1 ) col0 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT 42 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT + 80 * - ( 93 ) FROM tab1 WHERE - col0 BETWEEN + col1 AND ( + - col1 * + 44 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7364
SELECT + col0 AS col1, - CAST( NULL AS SIGNED ) / + col0 - - ( + col1 ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-7364
SELECT + col0 AS col1, - CAST ( NULL AS INTEGER ) / + col0 - - ( + col1 ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query II rowsort
SELECT ALL 45 AS col1, col2 * - col0 + col0 + col2 FROM tab0 AS cor0
----
45
-643
45
-773
45
-9407

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT + - MIN( - col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7366
SELECT + - MIN ( - col0 ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NULL <> + 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT ALL MAX( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7368
SELECT ALL MAX ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + 21 * - 78 AS col0 FROM tab2
----
-1638

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT ALL - COUNT( * ) * - 36 col0 FROM tab0
----
108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7370
SELECT ALL - COUNT ( * ) * - 36 col0 FROM tab0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT - 42 * - COUNT( * ) AS col0 FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-7371
SELECT - 42 * - COUNT ( * ) AS col0 FROM tab2
----
126

onlyif mysql # aggregate syntax: 
query II rowsort label-7372
SELECT 31 AS col2, COUNT( * ) AS col2 FROM tab2
----
31
3

skipif mysql # not compatible
query II rowsort label-7372
SELECT 31 AS col2, COUNT ( * ) AS col2 FROM tab2
----
31
3

query I rowsort
SELECT + col2 * + 8 AS col2 FROM tab0
----
376
792
80

query II rowsort
SELECT col1 AS col2, 36 AS col0 FROM tab0
----
1
36
21
36
81
36

query I rowsort
SELECT ALL + ( - ( - col2 ) ) FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7376
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, 1 + COUNT( * ) FROM tab2
----
NULL
4

skipif mysql # not compatible
query II rowsort label-7376
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, 1 + COUNT ( * ) FROM tab2
----
NULL
4

query I rowsort
SELECT + ( col1 ) * - col2 / - ( col0 ) FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7378
SELECT - SUM( CAST( NULL AS SIGNED ) ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7378
SELECT - SUM ( CAST ( NULL AS INTEGER ) ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 94 AS col1 FROM tab1 AS cor0
----
94

query II rowsort
SELECT + col0 AS col0, 78 FROM tab1 AS cor0
----
51
78
85
78
91
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7381
SELECT COUNT( - 97 ) AS col2, SUM( ALL - col0 ) DIV - - COUNT( DISTINCT + + 64 ) + - COUNT( * ) col0 FROM tab2
----
3
-188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7381
SELECT COUNT ( - 97 ) AS col2, SUM ( ALL - col0 ) / - - COUNT ( DISTINCT + + 64 ) + - COUNT ( * ) col0 FROM tab2
----
3
-188

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT SUM( 77 ) AS col2 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-7382
SELECT SUM ( 77 ) AS col2 FROM tab2
----
231

query I rowsort
SELECT DISTINCT - - ( + - 21 ) FROM tab2 cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7384
SELECT ALL - + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7384
SELECT ALL - + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT - 92 + + + MIN( + col1 ) * + 16 col1 FROM tab0 AS cor0 WHERE NOT 63 + + col0 * - 12 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7385
SELECT - 92 + + + MIN ( + col1 ) * + 16 col1 FROM tab0 AS cor0 WHERE NOT 63 + + col0 * - 12 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + - 82 AS col2 FROM tab0 AS cor0
----
-82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7387
SELECT ALL - CAST( + ( SUM( DISTINCT + 64 ) ) AS SIGNED ) FROM tab1 cor0
----
-64

skipif mysql # not compatible
query I rowsort label-7387
SELECT ALL - CAST ( + ( SUM ( DISTINCT + 64 ) ) AS INTEGER ) FROM tab1 cor0
----
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7388
SELECT ALL - COUNT( * ) + + 51 * CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7388
SELECT ALL - COUNT ( * ) + + 51 * CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT - MIN( DISTINCT + + col1 ) col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7389
SELECT - MIN ( DISTINCT + + col1 ) col1 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT 9 AS col0 FROM tab2 AS cor0 WHERE + col1 * - + 23 = - col0
----

query I rowsort
SELECT DISTINCT - + 86 + + 30 - 93 FROM tab2 AS cor0
----
-149

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 13 * + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT + COUNT( + col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7393
SELECT + COUNT ( + col1 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7394
SELECT + col1 FROM tab0 WHERE - col0 NOT BETWEEN + 13 AND - 7 - + 62 + + ( + CAST( NULL AS DECIMAL ) )
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7394
SELECT + col1 FROM tab0 WHERE - col0 NOT BETWEEN + 13 AND - 7 - + 62 + + ( + CAST ( NULL AS REAL ) )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7395
SELECT DISTINCT + MIN( ALL 62 ) * + 64 col1 FROM tab0
----
3968

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7395
SELECT DISTINCT + MIN ( ALL 62 ) * + 64 col1 FROM tab0
----
3968

onlyif mysql # aggregate syntax: 
query I rowsort label-7396
SELECT ALL MIN( + col2 ) + COUNT( * ) * - ( + 70 ) FROM tab2
----
-187

skipif mysql # not compatible
query I rowsort label-7396
SELECT ALL MIN ( + col2 ) + COUNT ( * ) * - ( + 70 ) FROM tab2
----
-187

query I rowsort
SELECT 1 FROM tab0 cor0 WHERE NULL IS NULL
----
1
1
1

query II rowsort
SELECT + col1 * + + col0 + - 29 AS col2, 55 AS col2 FROM tab0 AS cor0
----
1186
55
1798
55
68
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7399
SELECT 45 + col1 * - CAST( + ( - 64 ) + + col2 AS SIGNED ) FROM tab2
----
1893
2136
447

skipif mysql # not compatible
query I rowsort label-7399
SELECT 45 + col1 * - CAST ( + ( - 64 ) + + col2 AS INTEGER ) FROM tab2
----
1893
2136
447

query I rowsort
SELECT ALL 19 * + ( col0 ) AS col1 FROM tab2
----
1216
1425
874

onlyif mysql # aggregate syntax: 
query I rowsort label-7401
SELECT ALL - 35 * - COUNT( * ) FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-7401
SELECT ALL - 35 * - COUNT ( * ) FROM tab1
----
105

query I rowsort
SELECT ( + 18 ) + col0 FROM tab0
----
105
115
33

query I rowsort
SELECT ALL 9 + col1 FROM tab1 WHERE ( - col2 * - col0 ) <> col1
----
14
23
56

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + col0 AND col0 * - col2
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE ( NULL ) IS NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col2 * col1 col1 FROM tab2
----
1219
3144
3961

query I rowsort
SELECT + 88 * col0 FROM tab2
----
4048
5632
6600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7408
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7409
SELECT - col0 + - CAST( - col2 AS SIGNED ) FROM tab0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-7409
SELECT - col0 + - CAST ( - col2 AS INTEGER ) FROM tab0
----
-77
2
32

query I rowsort
SELECT - 26 * col1 FROM tab1 WHERE NOT 65 IS NOT NULL
----

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7412
SELECT + COUNT( * ) * 73 AS col2 FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-7412
SELECT + COUNT ( * ) * 73 AS col2 FROM tab0
----
219

onlyif mysql # DIV for integer division: 
query I rowsort label-7413
SELECT DISTINCT + col1 DIV - 46 col1 FROM tab1
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7413
SELECT DISTINCT + col1 / - 46 col1 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT ALL MAX( col2 ) FROM tab0 WHERE NOT NULL > ( 42 / - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL MAX ( col2 ) FROM tab0 WHERE NOT NULL > ( 42 / - col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7415
SELECT 28 + COUNT( * ) AS col0 FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-7415
SELECT 28 + COUNT ( * ) AS col0 FROM tab1
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT DISTINCT ( + COUNT( * ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7416
SELECT DISTINCT ( + COUNT ( * ) ) AS col0 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 49 ) IN ( + col1 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT ALL + COUNT( 44 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7418
SELECT ALL + COUNT ( 44 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT 25 * + 27 FROM tab1 WHERE col0 IS NOT NULL
----
675
675
675

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 col0 FROM tab1
----
-30
-30
-30

query I rowsort
SELECT 88 * col1 - col0 AS col1 FROM tab0
----
-9
1761
7113

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 + 45 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 + - 25 AS col0 FROM tab2
----
-100
-71
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE ( + 22 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE ( + 22 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT - COUNT( * ) col2 FROM tab1 WHERE NOT ( NULL ) < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7425
SELECT - COUNT ( * ) col2 FROM tab1 WHERE NOT ( NULL ) < NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 BETWEEN - 99 + col2 * + col2 AND col1
----

query III rowsort
SELECT * FROM tab0 WHERE 76 / + 9 < ( 10 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE + 10 / col0 + ( + 0 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7429
SELECT 11 * - col1 FROM tab2 WHERE NOT ( 41 ) NOT BETWEEN 81 + 45 AND - CAST( + ( 75 ) AS SIGNED ) * - col0
----

skipif mysql # not compatible
query I rowsort label-7429
SELECT 11 * - col1 FROM tab2 WHERE NOT ( 41 ) NOT BETWEEN 81 + 45 AND - CAST ( + ( 75 ) AS INTEGER ) * - col0
----

query I rowsort
SELECT 2 FROM tab1 AS cor0 WHERE NOT ( 55 * - 64 + col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col1 > ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT DISTINCT - MAX( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT - MAX ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT ALL COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7433
SELECT ALL COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT + COUNT( * ) * - 34 AS col1 FROM tab0 AS cor0 INNER JOIN tab1 ON NULL IS NULL WHERE NOT - 69 IS NULL
----
-306

skipif mysql # not compatible
query I rowsort label-7434
SELECT + COUNT ( * ) * - 34 AS col1 FROM tab0 AS cor0 INNER JOIN tab1 ON NULL IS NULL WHERE NOT - 69 IS NULL
----
-306

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 1 * col1 ) IN ( 54 * - 26 + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7436
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( 28 AS SIGNED ) * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7436
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( 28 AS INTEGER ) * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 33 / col2 + 40 * col0 FROM tab1 cor0 WHERE NOT col1 * col1 + col0 NOT BETWEEN - 4 * col1 - - col2 * col0 AND + col2 * col0
----

query I rowsort
SELECT - - col2 + 20 * + col2 FROM tab1 AS cor0
----
1239
1428
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT + MAX( col2 ) * COUNT( * ) + 93 AS col2 FROM tab1 AS cor0
----
381

skipif mysql # not compatible
query I rowsort label-7439
SELECT + MAX ( col2 ) * COUNT ( * ) + 93 AS col2 FROM tab1 AS cor0
----
381

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( 54 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT ALL - MIN( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7441
SELECT ALL - MIN ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT - 38 * - col2 FROM tab2 AS cor0
----
1520
2204
874

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 * 87 - + ( col0 ) AND ( NULL )
----

query I rowsort
SELECT - + col1 + - ( + 71 - - col2 ) AS col0 FROM tab0 AS cor0
----
-102
-171
-199

query I rowsort
SELECT + 5 + + 16 FROM tab1 AS cor0 WHERE ( - col0 ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab1 AS cor0 WHERE + col0 / + col2 IS NULL
----

query I rowsort
SELECT col2 FROM tab2 cor0 WHERE ( NULL ) BETWEEN + col0 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( col1 ) BETWEEN col2 * 88 AND col0
----

query I rowsort
SELECT - ( + 42 ) * 32 AS col0 FROM tab0
----
-1344
-1344
-1344

onlyif mysql # DIV for integer division: 
query I rowsort label-7450
SELECT DISTINCT - col0 DIV ( + ( + col2 ) ) + + col2 AS col2 FROM tab2
----
21
39
57

skipif mysql # not compatible
query I rowsort label-7450
SELECT DISTINCT - col0 / ( + ( + col2 ) ) + + col2 AS col2 FROM tab2
----
21
39
57

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - 61 ) <> NULL OR NULL BETWEEN ( NULL ) AND 65
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7452
SELECT * FROM tab2 WHERE + col1 >= - col1 * + ( + CAST( NULL AS SIGNED ) ) + 57 / + 12 OR col0 - 43 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7452
SELECT * FROM tab2 WHERE + col1 >= - col1 * + ( + CAST ( NULL AS INTEGER ) ) + 57 / + 12 OR col0 - 43 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7453
SELECT DISTINCT + 73 * + 95 * + ( 74 ) + - ( 82 + MIN( col2 ) ) FROM tab1
----
513049

skipif mysql # not compatible
query I rowsort label-7453
SELECT DISTINCT + 73 * + 95 * + ( 74 ) + - ( 82 + MIN ( col2 ) ) FROM tab1
----
513049

query I rowsort
SELECT DISTINCT 44 AS col2 FROM tab0 WHERE NOT ( col1 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7455
SELECT ALL col2 DIV col1 + - ( col2 ) AS col1 FROM tab1
----
-48
-67
-90

skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL col2 / col1 + - ( col2 ) AS col1 FROM tab1
----
-48
-67
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT SUM( col2 ) AS col1 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-7456
SELECT SUM ( col2 ) AS col1 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-7457
SELECT COUNT( * ) FROM tab0 WHERE - ( col0 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7457
SELECT COUNT ( * ) FROM tab0 WHERE - ( col0 ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT + MAX( - - col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7458
SELECT + MAX ( - - col2 ) FROM tab1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7459
SELECT - ( CAST( + COUNT( * ) AS SIGNED ) ) AS col2 FROM tab0 WHERE ( col1 ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7459
SELECT - ( CAST ( + COUNT ( * ) AS INTEGER ) ) AS col2 FROM tab0 WHERE ( col1 ) >= NULL
----
0

query I rowsort
SELECT DISTINCT ( - + 41 ) FROM tab0 AS cor0
----
-41

query I rowsort
SELECT ( - col0 ) * - 98 + - col1 AS col0 FROM tab0 AS cor0
----
1389
8505
9505

query I rowsort
SELECT - 90 * col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( col1 + col0 ) AND ( - col2 + + col2 )
----

query I rowsort
SELECT ALL + 89 * - 81 FROM tab2 AS cor0
----
-7209
-7209
-7209

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 BETWEEN ( + 60 ) AND NULL
----

query I rowsort
SELECT 12 + + 44 FROM tab1 AS cor0
----
56
56
56

query III rowsort
SELECT * FROM tab2 WHERE + 95 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - 58 )
----

query I rowsort
SELECT DISTINCT col1 - - 29 AS col1 FROM tab1
----
34
43
76

query I rowsort
SELECT ALL + + 57 AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 - - 77 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT - MIN( col2 ) - - 80 AS col0 FROM tab1 AS cor0 WHERE NOT col1 / + 35 <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7471
SELECT - MIN ( col2 ) - - 80 AS col0 FROM tab1 AS cor0 WHERE NOT col1 / + 35 <= ( NULL )
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + - 62 ) NOT BETWEEN col0 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7473
SELECT DISTINCT CAST( col2 AS SIGNED ) * - 52 * + col0 col2 FROM tab0 AS cor0
----
-36660
-45240
-499356

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7473
SELECT DISTINCT CAST ( col2 AS INTEGER ) * - 52 * + col0 col2 FROM tab0 AS cor0
----
-36660
-45240
-499356

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 <= col0 + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7475
SELECT ALL - 86 * + CAST( + CAST( 94 AS SIGNED ) AS SIGNED ) * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-24252

skipif mysql # not compatible
query I rowsort label-7475
SELECT ALL - 86 * + CAST ( + CAST ( 94 AS INTEGER ) AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-24252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7476
SELECT CAST( + 48 AS SIGNED ) * + 92 AS col1 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col0 AND - 53
----

skipif mysql # not compatible
query I rowsort label-7476
SELECT CAST ( + 48 AS INTEGER ) * + 92 AS col1 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col0 AND - 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT ( + + MIN( + 34 ) ) + 99 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7477
SELECT ( + + MIN ( + 34 ) ) + 99 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT DISTINCT + SUM( DISTINCT + col2 ) * + 77 AS col1 FROM tab2 AS cor0
----
9317

skipif mysql # not compatible
query I rowsort label-7478
SELECT DISTINCT + SUM ( DISTINCT + col2 ) * + 77 AS col1 FROM tab2 AS cor0
----
9317

onlyif mysql # aggregate syntax: 
query I rowsort label-7479
SELECT 64 * - COUNT( * ) col1 FROM tab0 WHERE NOT 97 IS NULL AND col0 BETWEEN ( NULL ) AND ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7479
SELECT 64 * - COUNT ( * ) col1 FROM tab0 WHERE NOT 97 IS NULL AND col0 BETWEEN ( NULL ) AND ( NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7480
SELECT 91 DIV col2 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7480
SELECT 91 / col2 AS col0 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT ALL MAX( ( - + 55 ) ) FROM tab1
----
-55

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL MAX ( ( - + 55 ) ) FROM tab1
----
-55

onlyif mysql # DIV for integer division: 
query II rowsort label-7482
SELECT DISTINCT col1 DIV - - 88, 40 col1 FROM tab2
----
0
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7482
SELECT DISTINCT col1 / - - 88, 40 col1 FROM tab2
----
0
40

query III rowsort
SELECT * FROM tab0 WHERE NOT - 5 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7485
SELECT ALL + MIN( ALL ( + 80 ) ) FROM tab0 WHERE NOT + col0 NOT IN ( + col0 )
----
80

skipif mysql # not compatible
query I rowsort label-7485
SELECT ALL + MIN ( ALL ( + 80 ) ) FROM tab0 WHERE NOT + col0 NOT IN ( + col0 )
----
80

query I rowsort
SELECT DISTINCT col1 * + 64 FROM tab1
----
3008
320
896

onlyif mysql # aggregate syntax: 
query I rowsort label-7487
SELECT DISTINCT + SUM( + - col1 ) col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7487
SELECT DISTINCT + SUM ( + - col1 ) col2 FROM tab2 AS cor0
----
-195

query II rowsort
SELECT ALL 79 * + 36 AS col1, col0 + 5 * + 64 AS col0 FROM tab1 cor0
----
2844
371
2844
405
2844
411

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT - SUM( DISTINCT + - 4 ) + + COUNT( * ) FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-7489
SELECT - SUM ( DISTINCT + - 4 ) + + COUNT ( * ) FROM tab1 AS cor0
----
7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col1 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7491
SELECT COUNT( * ) * - 84 FROM tab1 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-7491
SELECT COUNT ( * ) * - 84 FROM tab1 AS cor0
----
-252

query II rowsort
SELECT - col0, col0 AS col0 FROM tab1
----
-51
51
-85
85
-91
91

query I rowsort
SELECT 47 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL col2 + col1 * + 15 AS col2 FROM tab1
----
134
306
773

onlyif mysql # aggregate syntax: 
query II rowsort label-7495
SELECT DISTINCT COUNT( * ) col2, COUNT( * ) - - 37 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7495
SELECT DISTINCT COUNT ( * ) col2, COUNT ( * ) - - 37 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9
46

query I rowsort
SELECT ALL - 6 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col1 - - col0 FROM tab1 AS cor0 WHERE NOT + 28 NOT BETWEEN ( 51 * + + 20 ) AND ( + col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < col0 + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab1 AS cor0 WHERE NOT col2 + - col2 * - + col1 / col1 IS NULL
----
59
68
96

query II rowsort
SELECT DISTINCT + col0 * col2, + ( - + col1 ) * + col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7501
SELECT ALL + col2 DIV col2 + + + 82 FROM tab0 AS cor0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL + col2 / col2 + + + 82 FROM tab0 AS cor0
----
83
83
83

query I rowsort
SELECT col1 * + col2 - + ( + col0 ) * col2 FROM tab1 AS cor0
----
-2992
-3552
-4720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 79 * + col0 + col2 + col0 col2 FROM tab2 AS cor0
----
-3565
-4952
-5792

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7504
SELECT - + 28 * - col2 + col1 * - CAST( NULL AS SIGNED ) * col1 * - 38 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7504
SELECT - + 28 * - col2 + col1 * - CAST ( NULL AS INTEGER ) * col1 * - 38 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT ALL + 22 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-7505
SELECT ALL + 22 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT - 99 + - ( SUM( ALL - 7 ) ) col0 FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7506
SELECT - 99 + - ( SUM ( ALL - 7 ) ) col0 FROM tab1 AS cor0
----
-78

query I rowsort
SELECT DISTINCT + col1 + - + col1 + - col2 + - ( ( + + 48 ) ) * - 0 AS col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL - 85 * + - 58 + col0 AS col0 FROM tab1
----
4981
5015
5021

query II rowsort
SELECT DISTINCT + 7 + + - col0 AS col0, - col1 AS col0 FROM tab0
----
-8
-81
-80
-21
-90
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT COUNT( * ) + - COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7510
SELECT COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT ALL + SUM( ALL + + col0 ) + - + 82 FROM tab2
----
103

skipif mysql # not compatible
query I rowsort label-7511
SELECT ALL + SUM ( ALL + + col0 ) + - + 82 FROM tab2
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7512
SELECT col0 + + + col2 * - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7512
SELECT col0 + + + col2 * - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + col2 ) - + col2 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT DISTINCT + ( + COUNT( * ) ) + - - 78 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-7514
SELECT DISTINCT + ( + COUNT ( * ) ) + - - 78 FROM tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7515
SELECT ALL - SUM( DISTINCT + col1 ) - - + COUNT( * ) + - - 69 col2 FROM tab1
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7515
SELECT ALL - SUM ( DISTINCT + col1 ) - - + COUNT ( * ) + - - 69 col2 FROM tab1
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= 98 + 62
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7517
SELECT SUM( DISTINCT + col2 ) * 51 / - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NULL <= 31
----
NULL

skipif mysql # not compatible
query I rowsort label-7517
SELECT SUM ( DISTINCT + col2 ) * 51 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NULL <= 31
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 col0 FROM tab2 AS cor0
----
90

query II rowsort
SELECT - - col0, col2 * + + col0 - + 98 AS col2 FROM tab0 AS cor0
----
15
607
87
772
97
9505

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND 65 - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7521
SELECT ALL - + ( COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7521
SELECT ALL - + ( COUNT ( * ) ) FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7522
SELECT col2 FROM tab1 cor0 WHERE NOT + col1 BETWEEN ( - + CAST( + col0 AS SIGNED ) - + col1 ) AND - ( - 11 )
----
68
96

skipif mysql # not compatible
query I rowsort label-7522
SELECT col2 FROM tab1 cor0 WHERE NOT + col1 BETWEEN ( - + CAST ( + col0 AS INTEGER ) - + col1 ) AND - ( - 11 )
----
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7523
SELECT - MIN( + col0 ) col2, - 81 AS col1 FROM tab0 AS cor0
----
-15
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7523
SELECT - MIN ( + col0 ) col2, - 81 AS col1 FROM tab0 AS cor0
----
-15
-81

query I rowsort
SELECT - 6 * 89 FROM tab2 AS cor0
----
-534
-534
-534

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT DISTINCT + + MAX( + - col0 ) * + 61 - + + 87 AS col1 FROM tab2 AS cor0
----
-2893

skipif mysql # not compatible
query I rowsort label-7525
SELECT DISTINCT + + MAX ( + - col0 ) * + 61 - + + 87 AS col1 FROM tab2 AS cor0
----
-2893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7526
SELECT DISTINCT - col2 * - - col2 + ( + CAST( NULL AS SIGNED ) ) + + + col2 / + col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7526
SELECT DISTINCT - col2 * - - col2 + ( + CAST ( NULL AS INTEGER ) ) + + + col2 / + col0 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col2 * - 17 AS col0 FROM tab1 AS cor0
----
-1003
-1156
-1632

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 55 col0 FROM tab0 AS cor0
----
55

query I rowsort
SELECT - col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( col1 ) IS NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT - 88 AS col1 FROM tab2
----
-88

query II rowsort
SELECT ALL 87, - col0 * + + col0 AS col1 FROM tab1
----
87
-2601
87
-7225
87
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7532
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + col0 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7532
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + col0 col0 FROM tab2
----
NULL

query I rowsort
SELECT col0 * - + 72 FROM tab1
----
-3672
-6120
-6552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * + ( - 74 ) col2 FROM tab0 cor0
----
-1554
-5994
-74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7535
SELECT ALL MAX( col2 ), COUNT( * ) + + CAST( + COUNT( * ) AS SIGNED ) + + ( + CAST( AVG ( col2 ) AS SIGNED ) ) * - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7535
SELECT ALL MAX ( col2 ), COUNT ( * ) + + CAST ( + COUNT ( * ) AS INTEGER ) + + ( + CAST ( AVG ( col2 ) AS INTEGER ) ) * - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col1 * - col1 / + - col2 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7537
SELECT ALL - 59 - - - ( COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-68

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL - 59 - - - ( COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7538
SELECT ALL - CAST( NULL AS SIGNED ) + col0 * col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7538
SELECT ALL - CAST ( NULL AS INTEGER ) + col0 * col0 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 52 * col0 FROM tab1 AS cor0
----
2652
4420
4732

onlyif mysql # DIV for integer division: 
query II rowsort label-7540
SELECT ALL - 13 DIV + 69, + col0 AS col1 FROM tab2 cor0
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-7540
SELECT ALL - 13 / + 69, + col0 AS col1 FROM tab2 cor0
----
0
46
0
64
0
75

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN - col2 * + col1 + 64 AND col1 + - - 49 + + - 40 * + 90
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7542
SELECT ( - 85 ) AS col1, + MIN( col0 ) AS col0 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
-85
NULL

skipif mysql # not compatible
query II rowsort label-7542
SELECT ( - 85 ) AS col1, + MIN ( col0 ) AS col0 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
-85
NULL

query II rowsort
SELECT DISTINCT - ( + 89 ) AS col1, col1 FROM tab1 AS cor0
----
-89
14
-89
47
-89
5

query I rowsort
SELECT - - 2 AS col0 FROM tab2 AS cor0 WHERE - col1 * col0 + + 11 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT + + MAX( - + 50 ) AS col2 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-7545
SELECT + + MAX ( - + 50 ) AS col2 FROM tab1 AS cor0
----
-50

query I rowsort
SELECT DISTINCT - 29 AS col1 FROM tab1 WHERE NULL IS NULL
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7547
SELECT ALL + col1 + - - col0 / + CAST( NULL AS SIGNED ) * - col0 + + + CAST( 49 AS SIGNED ) + - + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7547
SELECT ALL + col1 + - - col0 / + CAST ( NULL AS INTEGER ) * - col0 + + + CAST ( 49 AS INTEGER ) + - + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT 10 * + + ( + SUM( DISTINCT + - 55 ) ) AS col1 FROM tab2
----
-550

skipif mysql # not compatible
query I rowsort label-7548
SELECT 10 * + + ( + SUM ( DISTINCT + - 55 ) ) AS col1 FROM tab2
----
-550

onlyif mysql # aggregate syntax: 
query I rowsort label-7549
SELECT COUNT( col2 ) - MAX( - col0 ) AS col0 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-7549
SELECT COUNT ( col2 ) - MAX ( - col0 ) AS col0 FROM tab2
----
49

query I rowsort
SELECT ALL col2 - - 42 FROM tab2
----
100
65
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT DISTINCT - ( + - COUNT( - col0 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7551
SELECT DISTINCT - ( + - COUNT ( - col0 ) ) FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7552
SELECT ALL COUNT( * ) - + CAST( 13 AS SIGNED ) + + + COUNT( * ) FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-7552
SELECT ALL COUNT ( * ) - + CAST ( 13 AS INTEGER ) + + + COUNT ( * ) FROM tab1 AS cor0
----
-7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN NULL AND - 60
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7554
SELECT - 24 DIV 24 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7554
SELECT - 24 / 24 AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT NULL IN ( - - col2, - 93 * - col0 + - - col1 + + + col2 + + col1, - 85 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT DISTINCT COUNT( col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7556
SELECT DISTINCT COUNT ( col1 ) FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT - 76 AS col1 FROM tab1 AS cor0
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT DISTINCT + 0 * COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT + 0 * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query II rowsort
SELECT + col2, - col1 AS col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query I rowsort
SELECT - col2 * - ( col2 ) + - col0 * col2 / - col1 * - + 1 * + col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT - 24 IS NOT NULL
----

query II rowsort
SELECT - + col0, col1 AS col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7563
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7563
SELECT DISTINCT + CAST ( NULL AS REAL ) col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7564
SELECT 98 DIV - - col0, + col0 AS col2 FROM tab1
----
1
51
1
85
1
91

skipif mysql # not compatible
query II rowsort label-7564
SELECT 98 / - - col0, + col0 AS col2 FROM tab1
----
1
51
1
85
1
91

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7566
SELECT DISTINCT - col0 * col2 / + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7566
SELECT DISTINCT - col0 * col2 / + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7567
SELECT * FROM tab2 WHERE NOT - 26 * CAST( - + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7567
SELECT * FROM tab2 WHERE NOT - 26 * CAST ( - + col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7568
SELECT ALL CAST( NULL AS DECIMAL ) * COUNT( + ( + - col2 ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7568
SELECT ALL CAST ( NULL AS REAL ) * COUNT ( + ( + - col2 ) ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 <> NULL
----

query I rowsort
SELECT ALL + ( - col0 ) + - + col2 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT ALL 48 * - col0 AS col2 FROM tab0
----
-4176
-4656
-720

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 > - col2
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT - MAX( + - col1 ) AS col1 FROM tab1 cor0 WHERE 13 IS NOT NULL
----
5

skipif mysql # not compatible
query I rowsort label-7573
SELECT - MAX ( + - col1 ) AS col1 FROM tab1 cor0 WHERE 13 IS NOT NULL
----
5

query I rowsort
SELECT 46 * + col1 - + ( - col2 ) AS col0 FROM tab2 AS cor0
----
2369
3140
3582

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7575
SELECT ALL 0 DIV + COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7575
SELECT ALL 0 / + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT DISTINCT + - ( - + COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7576
SELECT DISTINCT + - ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - 83 + + - col1 FROM tab1 AS cor0
----
-130
-88
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 2 < NULL
----

query I rowsort
SELECT ALL - + 56 AS col1 FROM tab2 AS cor0
----
-56
-56
-56

query I rowsort
SELECT + col2 * + col0 - 24 + col2 AS col2 FROM tab2 cor0
----
1057
2576
4384

query II rowsort
SELECT ALL - col2 AS col1, + 57 FROM tab1 AS cor0
----
-59
57
-68
57
-96
57

query I rowsort
SELECT 89 + + + col1 FROM tab1
----
103
136
94

query I rowsort
SELECT - col1 * - col2 + 99 FROM tab2
----
1272
3179
3985

query I rowsort
SELECT ALL col1 - - col0 * - 98 FROM tab0
----
-1389
-8505
-9505

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT DISTINCT + + MAX( - 24 ) FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-7585
SELECT DISTINCT + + MAX ( - 24 ) FROM tab1 AS cor0
----
-24

query I rowsort
SELECT col0 * - + 43 * + ( - col2 ) AS col0 FROM tab2 AS cor0
----
110080
187050
45494

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # DIV for integer division: 
query I rowsort label-7588
SELECT ALL - ( - ( + col0 ) ) DIV + + col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7588
SELECT ALL - ( - ( + col0 ) ) / + + col1 FROM tab2
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7589
SELECT DISTINCT 5 DIV - col0 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7589
SELECT DISTINCT 5 / - col0 AS col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + ( - + col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL ( - 99 ) FROM tab2 AS cor0
----
-99
-99
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-7592
SELECT + + COUNT( * ) AS col2, + 28 FROM tab0 AS cor0
----
3
28

skipif mysql # not compatible
query II rowsort label-7592
SELECT + + COUNT ( * ) AS col2, + 28 FROM tab0 AS cor0
----
3
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7593
SELECT ALL + 3, - CAST( - ( - + COUNT( - col0 ) ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-7593
SELECT ALL + 3, - CAST ( - ( - + COUNT ( - col0 ) ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT ALL - ( + - MAX( + col1 ) ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-7594
SELECT ALL - ( + - MAX ( + col1 ) ) FROM tab0
----
81

query II rowsort
SELECT DISTINCT col2 AS col2, - 24 FROM tab2
----
23
-24
40
-24
58
-24

onlyif mysql # aggregate syntax: 
query II rowsort label-7596
SELECT ALL MIN( - 76 ), + 33 AS col2 FROM tab1
----
-76
33

skipif mysql # not compatible
query II rowsort label-7596
SELECT ALL MIN ( - 76 ), + 33 AS col2 FROM tab1
----
-76
33

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( 65 - - col0 )
----

query I rowsort
SELECT - col1 * col2 * - col0 AS col1 FROM tab0
----
18270
57105
9603

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + col0, col1 )
----

query II rowsort
SELECT ALL + col1, col0 AS col0 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT ( col1 ) * 16 AS col0 FROM tab1
----
224
752
80

query I rowsort
SELECT + 4 * + col1 * - - col0 AS col2 FROM tab1
----
1700
17108
2856

query II rowsort
SELECT - col0 AS col2, - col0 AS col0 FROM tab2 AS cor0
----
-46
-46
-64
-64
-75
-75

query II rowsort
SELECT DISTINCT - 54 AS col0, col0 AS col1 FROM tab1 AS cor0
----
-54
51
-54
85
-54
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NULL NOT BETWEEN NULL AND NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT ALL - 24 + MAX( ALL col2 ) + 95 AS col1 FROM tab0
----
170

skipif mysql # not compatible
query I rowsort label-7606
SELECT ALL - 24 + MAX ( ALL col2 ) + 95 AS col1 FROM tab0
----
170

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT ALL COUNT( * ) + 80 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL COUNT ( * ) + 80 FROM tab0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT DISTINCT - MAX( DISTINCT - + col1 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7608
SELECT DISTINCT - MAX ( DISTINCT - + col1 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 72 - + col1 FROM tab0
----
-9
51
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7610
SELECT 95 + - COUNT( * ) FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-7610
SELECT 95 + - COUNT ( * ) FROM tab2
----
92

query I rowsort
SELECT DISTINCT + 59 * + col1 * - 98 + + col0 FROM tab1 AS cor0
----
-271663
-28825
-80897

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 51 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7613
SELECT - - col0 * + ( - col2 ) * - CAST( NULL AS SIGNED ) + - ( col2 ) 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-7613
SELECT - - col0 * + ( - col2 ) * - CAST ( NULL AS INTEGER ) + - ( col2 ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * + col1 + + col1 FROM tab1 cor0
----
1358
300
3243

query II rowsort
SELECT - 62 * - col2, - ( 59 ) - + + col2 + - col0 AS col1 FROM tab0 AS cor0
----
2914
-121
6138
-255
620
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT DISTINCT + SUM( ALL col0 ) * - COUNT( * ) AS col2 FROM tab2 cor0
----
-555

skipif mysql # not compatible
query I rowsort label-7616
SELECT DISTINCT + SUM ( ALL col0 ) * - COUNT ( * ) AS col2 FROM tab2 cor0
----
-555

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 / - + 2 * col2 IN ( - 92 * col0, 39 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 * - col2 * - + col0 col2, + 64 * - col2 FROM tab1
----
249696
-6144
426275
-3776
563108
-4352

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 / col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7621
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < 32 * + col2
----

skipif mysql # not compatible
query I rowsort label-7621
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < 32 * + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7622
SELECT - SUM( + - ( + + CAST( - 24 AS SIGNED ) ) ) FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-7622
SELECT - SUM ( + - ( + + CAST ( - 24 AS INTEGER ) ) ) FROM tab0 AS cor0
----
-72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL = 98 + col2
----

query I rowsort
SELECT DISTINCT + 65 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT DISTINCT COUNT( ( - + col0 ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7625
SELECT DISTINCT COUNT ( ( - + col0 ) ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7626
SELECT + + CAST( - + col1 AS SIGNED ) AS col0, col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

skipif mysql # not compatible
query II rowsort label-7626
SELECT + + CAST ( - + col1 AS INTEGER ) AS col0, col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # DIV for integer division: 
query I rowsort label-7627
SELECT col1 DIV + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN ( - 77 + - col0 ) AND + ( + 44 )
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7627
SELECT col1 / + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN ( - 77 + - col0 ) AND + ( + 44 )
----
0
1
1

query I rowsort
SELECT DISTINCT 53 + col0 FROM tab1 AS cor0
----
104
138
144

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT ALL + COUNT( - ( - - col1 ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7629
SELECT ALL + COUNT ( - ( - - col1 ) ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT 21 AS col2 FROM tab0 cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT MAX( DISTINCT - 11 ) FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-7631
SELECT MAX ( DISTINCT - 11 ) FROM tab2
----
-11

query I rowsort
SELECT ( - + col0 ) AS col1 FROM tab0
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7633
SELECT - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) + + 0 AS col0, COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7633
SELECT - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) + + 0 AS col0, COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7634
SELECT - 64 + - COUNT( * ) AS col1 FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-7634
SELECT - 64 + - COUNT ( * ) AS col1 FROM tab1
----
-67

query II rowsort
SELECT ALL 46 AS col2, - col2 AS col1 FROM tab1
----
46
-59
46
-68
46
-96

query I rowsort
SELECT DISTINCT col1 * - + col0 + - ( + col2 ) AS col1 FROM tab2
----
-2369
-4968
-5083

query I rowsort
SELECT - 99 * + + col0 * col1 + - 67 FROM tab2
----
-232321
-487939
-497542

query I rowsort
SELECT + col1 * + 83 AS col2 FROM tab0 cor0
----
1743
6723
83

query III rowsort
SELECT * FROM tab1 WHERE - - col2 - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - + ( + + col1 ) ) FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL - + 64 - 26 AS col1 FROM tab0 cor0
----
-90
-90
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7642
SELECT - - 37 + + CAST( NULL AS SIGNED ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7642
SELECT - - 37 + + CAST ( NULL AS INTEGER ) * - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7643
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) + - col1 + col0 * col1 BETWEEN - 84 AND + - 13
----

skipif mysql # not compatible
query III rowsort label-7643
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) + - col1 + col0 * col1 BETWEEN - 84 AND + - 13
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7644
SELECT + col2 DIV col0 + col0 AS col0 FROM tab1 AS cor0
----
52
85
91

skipif mysql # not compatible
query I rowsort label-7644
SELECT + col2 / col0 + col0 AS col0 FROM tab1 AS cor0
----
52
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7645
SELECT DISTINCT + COUNT( ALL - col2 ) + CAST( + SUM( ALL - col0 ) AS SIGNED ) + - MIN( ALL + col2 ) FROM tab0 AS cor0 WHERE NOT + ( + col1 ) IS NULL
----
-206

skipif mysql # not compatible
query I rowsort label-7645
SELECT DISTINCT + COUNT ( ALL - col2 ) + CAST ( + SUM ( ALL - col0 ) AS INTEGER ) + - MIN ( ALL + col2 ) FROM tab0 AS cor0 WHERE NOT + ( + col1 ) IS NULL
----
-206

query I rowsort
SELECT ALL + 78 + + 60 * 77 AS col0 FROM tab0 AS cor0
----
4698
4698
4698

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7647
SELECT - - 99 + 73 AS col1, CAST( - 8 AS SIGNED ) FROM tab0 AS cor0
----
172
-8
172
-8
172
-8

skipif mysql # not compatible
query II rowsort label-7647
SELECT - - 99 + 73 AS col1, CAST ( - 8 AS INTEGER ) FROM tab0 AS cor0
----
172
-8
172
-8
172
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT DISTINCT + COUNT( - col0 ) + - + 46 * - - COUNT( * ) FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-7648
SELECT DISTINCT + COUNT ( - col0 ) + - + 46 * - - COUNT ( * ) FROM tab2 AS cor0
----
-135

query I rowsort
SELECT ALL + 49 + + - 35 FROM tab2 AS cor0
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 * - + ( + col2 ) col1 FROM tab0
----
-4089
-8613
-870

query I rowsort
SELECT ALL ( - col1 ) * + 4 + + col0 FROM tab0
----
-309
3
93

query I rowsort
SELECT - ( ( + - col2 ) ) AS col0 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7653
SELECT DISTINCT CAST( + COUNT( ALL - 49 ) AS SIGNED ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7653
SELECT DISTINCT CAST ( + COUNT ( ALL - 49 ) AS INTEGER ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7654
SELECT ALL COUNT( * ) FROM tab1 WHERE 98 <= - + 29 / - col1
----
0

skipif mysql # not compatible
query I rowsort label-7654
SELECT ALL COUNT ( * ) FROM tab1 WHERE 98 <= - + 29 / - col1
----
0

query I rowsort
SELECT DISTINCT 55 * 88 AS col0 FROM tab1
----
4840

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7656
SELECT * FROM tab0 WHERE NOT CAST( 92 AS SIGNED ) >= - 3
----

skipif mysql # not compatible
query III rowsort label-7656
SELECT * FROM tab0 WHERE NOT CAST ( 92 AS INTEGER ) >= - 3
----

query I rowsort
SELECT DISTINCT - ( 91 ) * - col2 FROM tab2 WHERE - + col1 - + + 17 + 17 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7658
SELECT ALL + + 96 * - 8 + - - ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-759

skipif mysql # not compatible
query I rowsort label-7658
SELECT ALL + + 96 * - 8 + - - ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-759

query I rowsort
SELECT ALL 27 * - - col2 AS col2 FROM tab1
----
1593
1836
2592

query I rowsort
SELECT ALL - 98 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE ( + 59 ) <= 78 - - - 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7661
SELECT COUNT( * ) * + MAX( DISTINCT 53 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7661
SELECT COUNT ( * ) * + MAX ( DISTINCT 53 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT - SUM( + + col0 ) FROM tab2 WHERE NOT NULL <= - 89
----
NULL

skipif mysql # not compatible
query I rowsort label-7662
SELECT - SUM ( + + col0 ) FROM tab2 WHERE NOT NULL <= - 89
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7664
SELECT DISTINCT + + MAX( col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7664
SELECT DISTINCT + + MAX ( col1 ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT COUNT( * ) + - 73 col2 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7665
SELECT COUNT ( * ) + - 73 col2 FROM tab0 AS cor0
----
-70

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 BETWEEN - - 36 + col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL >= 86
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 4 NOT BETWEEN - col2 + - col0 AND + col0
----

query I rowsort
SELECT + - 94 + - ( - col1 ) AS col1 FROM tab0 AS cor0
----
-13
-73
-93

query I rowsort
SELECT DISTINCT + - col1 + - - col0 * - 88 AS col0 FROM tab0 cor0
----
-1401
-7677
-8537

query I rowsort
SELECT ALL + col1 / + + col2 AS col0 FROM tab0 AS cor0 WHERE 70 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND col2 * + - col2 + - col0
----

query I rowsort
SELECT ALL col0 + - + 16 AS col1 FROM tab1
----
35
69
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT ALL + COUNT( ALL - 44 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7674
SELECT ALL + COUNT ( ALL - 44 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7675
SELECT DISTINCT 46 + COUNT( * ) FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-7675
SELECT DISTINCT 46 + COUNT ( * ) FROM tab1
----
49

query III rowsort
SELECT * FROM tab0 WHERE + 92 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7677
SELECT DISTINCT + col1 DIV col2 + 82 AS col2 FROM tab2
----
83
84

skipif mysql # not compatible
query I rowsort label-7677
SELECT DISTINCT + col1 / col2 + 82 AS col2 FROM tab2
----
83
84

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7678
SELECT col2 * + 4 * col1 DIV - CAST( - col1 AS SIGNED ) FROM tab0
----
188
396
40

skipif mysql # not compatible
query I rowsort label-7678
SELECT col2 * + 4 * col1 / - CAST ( - col1 AS INTEGER ) FROM tab0
----
188
396
40

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + ( + col0 ) IS NOT NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 * - - 10 * - 65 + 32 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 92 <> - 92 * - col1 / + - col0 / + col1
----

query I rowsort
SELECT 5 + + + col0 FROM tab2
----
51
69
80

query III rowsort
SELECT * FROM tab0 WHERE 86 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7684
SELECT ALL 9 * - - COUNT( * ) + 93 FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-7684
SELECT ALL 9 * - - COUNT ( * ) + 93 FROM tab2
----
120

query III rowsort
SELECT * FROM tab1 WHERE + + col0 - + + 50 = + ( - 37 ) * + 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT - MAX( + col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7686
SELECT - MAX ( + col0 ) AS col1 FROM tab2 AS cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col2 ) col2 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7688
SELECT - col1 / - 88 + col2 col2 FROM tab1 AS cor0 WHERE NOT 93 * - CAST( + 72 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7688
SELECT - col1 / - 88 + col2 col2 FROM tab1 AS cor0 WHERE NOT 93 * - CAST ( + 72 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 36 FROM tab2 AS cor0 WHERE NOT 34 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7690
SELECT + + 91 * - CAST( NULL AS SIGNED ) + - + 67 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7690
SELECT + + 91 * - CAST ( NULL AS INTEGER ) + - + 67 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7691
SELECT ALL 22 AS col0, col1 DIV + - col0 FROM tab0
----
22
-5
22
0
22
0

skipif mysql # not compatible
query II rowsort label-7691
SELECT ALL 22 AS col0, col1 / + - col0 FROM tab0
----
22
-5
22
0
22
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + + col2 / 87 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT SUM( - ( + col1 ) ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7693
SELECT SUM ( - ( + col1 ) ) AS col1 FROM tab2
----
-195

query II rowsort
SELECT col2, + col2 + + 86 AS col0 FROM tab0
----
10
96
47
133
99
185

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7695
SELECT + ( - + ( COUNT( * ) ) ) DIV - - 20 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7695
SELECT + ( - + ( COUNT ( * ) ) ) / - - 20 AS col1 FROM tab1
----
0

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT col2 * - col0 IS NULL
----
23
40
58

query II rowsort
SELECT 25 AS col2, - 31 AS col0 FROM tab1
----
25
-31
25
-31
25
-31

query II rowsort
SELECT + col0, + col2 AS col1 FROM tab1 WHERE NOT NULL < col2 + col1 / + - col2
----

query I rowsort
SELECT ALL ( - 76 ) * + 81 FROM tab0
----
-6156
-6156
-6156

query II rowsort
SELECT ALL + + col0, 55 FROM tab0 AS cor0
----
15
55
87
55
97
55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 56 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7702
SELECT + CAST( NULL AS SIGNED ) * + ( + col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7702
SELECT + CAST ( NULL AS INTEGER ) * + ( + col2 ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + - 6 AS col2 FROM tab0
----
4
41
93

query I rowsort
SELECT ALL + - 45 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT DISTINCT + + 60 * col2 - + - col0 * + col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7706
SELECT + ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7706
SELECT + ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + 96 * - col1 - + 17 + + - col1 FROM tab1 AS cor0
----
-1375
-4576
-502

query I rowsort
SELECT DISTINCT + col0 * + ( - ( + col1 ) ) AS col1 FROM tab0 cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT ALL SUM( DISTINCT + col0 ) * - - COUNT( * ) FROM tab1 cor0
----
681

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL SUM ( DISTINCT + col0 ) * - - COUNT ( * ) FROM tab1 cor0
----
681

query I rowsort
SELECT - col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7711
SELECT ALL + - 57 DIV - 80 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL + - 57 / - 80 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT DISTINCT COUNT( * ) * - 40 * - COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7712
SELECT DISTINCT COUNT ( * ) * - 40 * - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7713
SELECT col1 DIV - col2 AS col0, + CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-7713
SELECT col1 / - col2 AS col0, + CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
59
0
68
0
96

query I rowsort
SELECT + col0 * + 62 * + col1 + + col1 FROM tab0 cor0
----
113295
6015
75411

query I rowsort
SELECT ALL + + col0 + + + col2 AS col0 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7716
SELECT COUNT( * ) * - 9 + - 93 DIV + + MIN( DISTINCT + col2 ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-7716
SELECT COUNT ( * ) * - 9 + - 93 / + + MIN ( DISTINCT + col2 ) FROM tab0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-7717
SELECT DISTINCT + col2 + - col0 DIV - 24 AS col2 FROM tab1
----
62
71
98

skipif mysql # not compatible
query I rowsort label-7717
SELECT DISTINCT + col2 + - col0 / - 24 AS col2 FROM tab1
----
62
71
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7718
SELECT DISTINCT + 73 + + col2 DIV + - col1 - + col0 FROM tab2
----
-2
27
9

skipif mysql # not compatible
query I rowsort label-7718
SELECT DISTINCT + 73 + + col2 / + - col1 - + col0 FROM tab2
----
-2
27
9

query I rowsort
SELECT col1 * + 56 + + col0 FROM tab1
----
2723
365
835

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT ALL - COUNT( * ) * + + COUNT( DISTINCT + 42 ) - - MAX( ALL + 92 ) FROM tab2 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-7720
SELECT ALL - COUNT ( * ) * + + COUNT ( DISTINCT + 42 ) - - MAX ( ALL + 92 ) FROM tab2 AS cor0
----
89

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + + 30 IS NOT NULL )
----

query II rowsort
SELECT 79 AS col0, col1 AS col0 FROM tab1 cor0
----
79
14
79
47
79
5

query I rowsort
SELECT DISTINCT - col1 + 30 + + 3 AS col2 FROM tab2
----
-18
-34
-44

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> - col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7725
SELECT COUNT( * ) * 1 - - COUNT( * ) AS col2 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-7725
SELECT COUNT ( * ) * 1 - - COUNT ( * ) AS col2 FROM tab0 cor0
----
6

query I rowsort
SELECT + + 59 * - col1 FROM tab1 AS cor0
----
-2773
-295
-826

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col1 FROM tab0 cor0
----
10
47
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( ( - col0 ) ) = + - 7
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT COUNT( * ) * - + 64 FROM tab2 cor0
----
-192

skipif mysql # not compatible
query I rowsort label-7729
SELECT COUNT ( * ) * - + 64 FROM tab2 cor0
----
-192

query III rowsort
SELECT 12 * - - col2 * 88 * + ( - col1 ) AS col2, + col2 AS col0, col2 AS col0 FROM tab1
----
9 values hashing to 05d677136bc9f05686465a850627b9a9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7731
SELECT ALL * FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7731
SELECT ALL * FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7732
SELECT COUNT( + col0 ) * - ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7732
SELECT COUNT ( + col0 ) * - ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - - col2 - col1 * - + col0 col1 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7734
SELECT + 14 DIV col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7734
SELECT + 14 / col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT DISTINCT - 64 * SUM( + - col2 ) FROM tab2
----
7744

skipif mysql # not compatible
query I rowsort label-7735
SELECT DISTINCT - 64 * SUM ( + - col2 ) FROM tab2
----
7744

query I rowsort
SELECT DISTINCT + col0 * - 38 FROM tab1
----
-1938
-3230
-3458

query I rowsort
SELECT + + col0 * - 56 FROM tab1 cor0
----
-2856
-4760
-5096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7738
SELECT ALL + + CAST( MAX( DISTINCT + - col0 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL + + CAST ( MAX ( DISTINCT + - col0 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7739
SELECT DISTINCT CAST( + + col1 AS SIGNED ) * + - 40 FROM tab2 AS cor0 WHERE - 54 + + col1 + col0 + + col2 * - col1 * + 71 <= col1 + 11
----
-2040
-2680
-3080

skipif mysql # not compatible
query I rowsort label-7739
SELECT DISTINCT CAST ( + + col1 AS INTEGER ) * + - 40 FROM tab2 AS cor0 WHERE - 54 + + col1 + col0 + + col2 * - col1 * + 71 <= col1 + 11
----
-2040
-2680
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-7740
SELECT + - COUNT( DISTINCT + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7740
SELECT + - COUNT ( DISTINCT + col0 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= + col0
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL > + ( 79 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7743
SELECT ALL - col2 * + col2 / + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL - col2 * + col2 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 24 IN ( + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - + col2 AS col2, + col2 AS col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query II rowsort label-7746
SELECT + + COUNT( * ) + 16 + + 96 * + COUNT( * ), 82 + COUNT( * ) col1 FROM tab1 AS cor0
----
307
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7746
SELECT + + COUNT ( * ) + 16 + + 96 * + COUNT ( * ), 82 + COUNT ( * ) col1 FROM tab1 AS cor0
----
307
85

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 cor0 WHERE NOT NULL > col2 + - col1 * + col2
----

query I rowsort
SELECT - + 55 + - col1 AS col0 FROM tab1 cor0
----
-102
-60
-69

query II rowsort
SELECT DISTINCT - - 51 AS col0, col2 * + + col1 AS col2 FROM tab2 AS cor0
----
51
1173
51
3080
51
3886

query I rowsort
SELECT DISTINCT - 30 + + - col2 + + col2 * ( + - 23 ) * col2 FROM tab0
----
-225552
-2340
-50884

query II rowsort
SELECT ALL 52 + - 4 AS col2, + col1 * - - col2 AS col0 FROM tab2
----
48
1173
48
3080
48
3886

query III rowsort
SELECT * FROM tab2 WHERE - - col0 NOT BETWEEN NULL AND col1 / + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 - - col1 AS col2 FROM tab1
----
-21
-54
-82

query II rowsort
SELECT - col1 - - col0, - col2 AS col2 FROM tab1
----
37
-96
44
-68
80
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7755
SELECT + SUM( + - col2 ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-7755
SELECT + SUM ( + - col2 ) AS col1 FROM tab2
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7756
SELECT DISTINCT + CAST( - - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7756
SELECT DISTINCT + CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7757
SELECT ALL MAX( col1 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7757
SELECT ALL MAX ( col1 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7758
SELECT DISTINCT - + col2 AS col2, col0 * - CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-59
5015
-68
6188
-96
4896

skipif mysql # not compatible
query II rowsort label-7758
SELECT DISTINCT - + col2 AS col2, col0 * - CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-59
5015
-68
6188
-96
4896

query I rowsort
SELECT DISTINCT + + 63 FROM tab0 AS cor0
----
63

query I rowsort
SELECT ALL - - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) < col0 * + 96 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7761
SELECT DISTINCT COUNT( - col1 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7761
SELECT DISTINCT COUNT ( - col1 ) FROM tab2 cor0
----
3

query II rowsort
SELECT ALL - col0, 17 AS col2 FROM tab2 AS cor0
----
-46
17
-64
17
-75
17

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL > ( - - col1 )
----

query I rowsort
SELECT ALL + - 3 * - + ( + + 92 ) FROM tab1 AS cor0
----
276
276
276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7765
SELECT ALL col0 / - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7765
SELECT ALL col0 / - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7766
SELECT ALL + - CAST( AVG ( + 97 ) AS SIGNED ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7766
SELECT ALL + - CAST ( AVG ( + 97 ) AS INTEGER ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT COUNT( 65 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7767
SELECT COUNT ( 65 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( col0 ) > NULL
----

query I rowsort
SELECT 81 * ( 28 ) AS col0 FROM tab1
----
2268
2268
2268

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT MAX( - 9 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7770
SELECT MAX ( - 9 ) FROM tab0
----
-9

query I rowsort
SELECT 22 * - 75 FROM tab1
----
-1650
-1650
-1650

query I rowsort
SELECT + - 42 AS col1 FROM tab0 WHERE NOT + 19 - 32 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - col1 ) col1 FROM tab0
----
1
21
81

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 WHERE NOT + 37 IS NOT NULL
----

query I rowsort
SELECT 30 * + + 73 * - 4 FROM tab2
----
-8760
-8760
-8760

onlyif mysql # DIV for integer division: 
query I rowsort label-7776
SELECT - col2 DIV + 14 AS col2 FROM tab1
----
-4
-4
-6

skipif mysql # not compatible
query I rowsort label-7776
SELECT - col2 / + 14 AS col2 FROM tab1
----
-4
-4
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7777
SELECT ALL + COUNT( - col2 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL + COUNT ( - col2 ) FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) = 82
----

query I rowsort
SELECT DISTINCT + - col1 + col2 FROM tab0 AS cor0 WHERE - 39 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7780
SELECT ALL + col1 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7780
SELECT ALL + col1 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 > + + 29
----
64
77
40
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT - COUNT( + col0 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7782
SELECT - COUNT ( + col0 ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT + COUNT( * ) * ( + 97 ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN - - 4 AND - + col1
----
0

skipif mysql # not compatible
query I rowsort label-7783
SELECT + COUNT ( * ) * ( + 97 ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN - - 4 AND - + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7784
SELECT + + ( - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7784
SELECT + + ( - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE + 35 IS NULL
----

query I rowsort
SELECT - col0 * + + col0 * + 62 * 31 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7787
SELECT DISTINCT - col2 AS col1, - CAST( col0 AS SIGNED ) * col2 + - + col0 + - - 75 FROM tab2 cor0
----
-23
-1029
-40
-2549
-58
-4350

skipif mysql # not compatible
query II rowsort label-7787
SELECT DISTINCT - col2 AS col1, - CAST ( col0 AS INTEGER ) * col2 + - + col0 + - - 75 FROM tab2 cor0
----
-23
-1029
-40
-2549
-58
-4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7788
SELECT col1 * - ( + col2 ) + - ( CAST( + col0 AS SIGNED ) ) FROM tab2 cor0
----
-1219
-3144
-3961

skipif mysql # not compatible
query I rowsort label-7788
SELECT col1 * - ( + col2 ) + - ( CAST ( + col0 AS INTEGER ) ) FROM tab2 cor0
----
-1219
-3144
-3961

query I rowsort
SELECT col0 + + - ( + 83 ) FROM tab0 AS cor0
----
-68
14
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT + 49 + - - COUNT( * ) + - COUNT( * ) FROM tab1 cor0
----
49

skipif mysql # not compatible
query I rowsort label-7790
SELECT + 49 + - - COUNT ( * ) + - COUNT ( * ) FROM tab1 cor0
----
49

query I rowsort
SELECT 71 + - - col1 * - col1 - - 56 FROM tab2 AS cor0
----
-2474
-4362
-5802

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7792
SELECT ALL - COUNT( * ), COUNT( * ) * + COUNT( * ) + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-7792
SELECT ALL - COUNT ( * ), COUNT ( * ) * + COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3
NULL

query I rowsort
SELECT 7 + + col1 FROM tab0 AS cor0
----
28
8
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7794
SELECT CAST( - 97 AS SIGNED ) + col2 - col0 * 2 * + 74 * + col1 FROM tab1 AS cor0
----
-105673
-62938
-633025

skipif mysql # not compatible
query I rowsort label-7794
SELECT CAST ( - 97 AS INTEGER ) + col2 - col0 * 2 * + 74 * + col1 FROM tab1 AS cor0
----
-105673
-62938
-633025

query I rowsort
SELECT ALL col1 + - 75 AS col2 FROM tab1
----
-28
-61
-70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7796
SELECT DISTINCT - 97 + + MIN( DISTINCT + + ( col2 ) ) * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7796
SELECT DISTINCT - 97 + + MIN ( DISTINCT + + ( col2 ) ) * + CAST ( NULL AS REAL ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - 37 < 73 * - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT + MIN( ALL - + 82 ) + + - COUNT( * ) col0 FROM tab0
----
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7798
SELECT + MIN ( ALL - + 82 ) + + - COUNT ( * ) col0 FROM tab0
----
-85

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 52 BETWEEN + - col1 AND + col1 * + + ( + col0 )
----
15
81
47

query I rowsort
SELECT ALL + col0 + - 49 AS col2 FROM tab0
----
-34
38
48

query I rowsort
SELECT DISTINCT + col2 + - 58 * + col0 FROM tab0
----
-5036
-5527
-823

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7802
SELECT ALL * FROM tab1 WHERE NOT + + CAST( NULL AS SIGNED ) BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query III rowsort label-7802
SELECT ALL * FROM tab1 WHERE NOT + + CAST ( NULL AS INTEGER ) BETWEEN NULL AND + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 91 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 71 * + + 36 AS col2, 40 FROM tab2 AS cor0
----
-2556
40
-2556
40
-2556
40

onlyif mysql # DIV for integer division: 
query I rowsort label-7805
SELECT DISTINCT + - col2 DIV + col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7805
SELECT DISTINCT + - col2 / + col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT + 71 IS NULL
----
14
47
5

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7808
SELECT - COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-7808
SELECT - COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

query I rowsort
SELECT ALL + - 13 * - - col1 AS col1 FROM tab0 AS cor0
----
-1053
-13
-273

query I rowsort
SELECT DISTINCT - 94 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + + col0 * col0 * col0 FROM tab2 AS cor0
----
262144
421875
97336

onlyif mysql # aggregate syntax: 
query I rowsort label-7812
SELECT DISTINCT + MAX( + col0 ) * - - COUNT( * ) FROM tab0 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT + MAX ( + col0 ) * - - COUNT ( * ) FROM tab0 AS cor0
----
291

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query II rowsort label-7814
SELECT DISTINCT col2 DIV ( - - 83 ) AS col2, - col0 col1 FROM tab1 AS cor0
----
0
-85
0
-91
1
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7814
SELECT DISTINCT col2 / ( - - 83 ) AS col2, - col0 col1 FROM tab1 AS cor0
----
0
-85
0
-91
1
-51

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7816
SELECT ALL + 65 DIV + 41 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7816
SELECT ALL + 65 / + 41 FROM tab2 AS cor0
----
1
1
1

query II rowsort
SELECT ALL + + col1, - 41 + - col1 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
-55
47
-88
5
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT - MAX( DISTINCT 78 ) col0 FROM tab0 WHERE NOT NULL IN ( - - col0 * + ( - + col0 ), - 0 + col1 / + col1 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7818
SELECT - MAX ( DISTINCT 78 ) col0 FROM tab0 WHERE NOT NULL IN ( - - col0 * + ( - + col0 ), - 0 + col1 / + col1 )
----
NULL

query I rowsort
SELECT + col1 * + + col1 AS col0 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT - COUNT( * ) * + ( 73 ) AS col1 FROM tab0
----
-219

skipif mysql # not compatible
query I rowsort label-7820
SELECT - COUNT ( * ) * + ( 73 ) AS col1 FROM tab0
----
-219

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + col0 AND col0 * + col0 * - - col1 + col2
----

query III rowsort
SELECT DISTINCT col1 AS col0, - 44 * col0 * + - col1 + + + col0 + col1 AS col2, - 85 AS col0 FROM tab2 AS cor0
----
9 values hashing to 2237beba589fcd301fd2d6134e4ee097

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + - 9 AND + + 92
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 15 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE ( - - ( + + col2 ) * + - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7826
SELECT DISTINCT + 41 - + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL BETWEEN NULL AND ( - 32 )
----
41

skipif mysql # not compatible
query I rowsort label-7826
SELECT DISTINCT + 41 - + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL BETWEEN NULL AND ( - 32 )
----
41

query I rowsort
SELECT DISTINCT - col1 * - + 18 + + + col0 FROM tab1
----
175
303
937

query I rowsort
SELECT DISTINCT + + 27 AS col2 FROM tab1 AS cor0
----
27

query I rowsort
SELECT + - 7 AS col2 FROM tab2 AS cor0
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT - COUNT( * ) * - + 37 AS col1 FROM tab1 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-7830
SELECT - COUNT ( * ) * - + 37 AS col1 FROM tab1 AS cor0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT + + MIN( 67 ) FROM tab1 AS cor0 WHERE ( col2 ) = + col1 * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7831
SELECT + + MIN ( 67 ) FROM tab1 AS cor0 WHERE ( col2 ) = + col1 * + col2
----
NULL

query I rowsort
SELECT DISTINCT + 11 + + + 17 AS col1 FROM tab2 AS cor0
----
28

query I rowsort
SELECT DISTINCT ( 51 ) * + col1 AS col2 FROM tab1
----
2397
255
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7834
SELECT + SUM( ALL + col1 ) - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7834
SELECT + SUM ( ALL + col1 ) - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT ALL 47 * + col0 FROM tab0
----
4089
4559
705

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT ALL 73 * 47 - + MAX( ALL 18 ) - - 22 FROM tab1
----
3435

skipif mysql # not compatible
query I rowsort label-7836
SELECT ALL 73 * 47 - + MAX ( ALL 18 ) - - 22 FROM tab1
----
3435

query I rowsort
SELECT 35 * - col1 - 28 AS col0 FROM tab1
----
-1673
-203
-518

query I rowsort
SELECT - col1 - - - col2 AS col0 FROM tab1
----
-110
-115
-64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7839
SELECT ALL + COUNT( ALL + col0 ) + + 86 / - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7839
SELECT ALL + COUNT ( ALL + col0 ) + + 86 / - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7840
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) + - 56, COUNT( - - 31 ) AS col0 FROM tab0
----
-62
3

skipif mysql # not compatible
query II rowsort label-7840
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) + - 56, COUNT ( - - 31 ) AS col0 FROM tab0
----
-62
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7841
SELECT + - SUM( + 23 ) + - 88 * - COUNT( * ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7841
SELECT + - SUM ( + 23 ) + - 88 * - COUNT ( * ) FROM tab2 AS cor0
----
195

query II rowsort
SELECT + - 64 AS col0, col2 AS col2 FROM tab0 AS cor0
----
-64
10
-64
47
-64
99

query I rowsort
SELECT DISTINCT 26 AS col1 FROM tab2 AS cor0
----
26

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7844
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( - col1 ) + + 32 <> - CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7844
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( - col1 ) + + 32 <> - CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7845
SELECT DISTINCT - MAX( + col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-7845
SELECT DISTINCT - MAX ( + col2 ) FROM tab0
----
-99

query II rowsort
SELECT + col0, 20 + - col1 - + col2 + - 63 * - col0 FROM tab2 AS cor0
----
46
2844
64
3935
75
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT ALL + 2 + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
5

skipif mysql # not compatible
query I rowsort label-7847
SELECT ALL + 2 + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
5

query I rowsort
SELECT DISTINCT + 56 * + col0 + col0 AS col0 FROM tab0 cor0
----
4959
5529
855

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= - - col2
----

query I rowsort
SELECT DISTINCT col1 * - col0 * - col1 + - - col1 AS col2 FROM tab1 AS cor0
----
10010
201066
2130

query I rowsort
SELECT - - 65 FROM tab2 AS cor0 WHERE NOT + col1 * + col1 IS NULL
----
65
65
65

onlyif mysql # DIV for integer division: 
query I rowsort label-7852
SELECT ALL - 97 DIV col0 + - col2 AS col1 FROM tab1 AS cor0
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-7852
SELECT ALL - 97 / col0 + - col2 AS col1 FROM tab1 AS cor0
----
-60
-69
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 7 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + + 63 ) * 87 FROM tab0 AS cor0
----
-5481
-5481
-5481

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7855
SELECT CAST( col0 AS SIGNED ), - col1 AS col1 FROM tab1
----
51
-14
85
-5
91
-47

skipif mysql # not compatible
query II rowsort label-7855
SELECT CAST ( col0 AS INTEGER ), - col1 AS col1 FROM tab1
----
51
-14
85
-5
91
-47

query I rowsort
SELECT + + 96 * + + 20 + + col1 FROM tab1 WHERE NOT + 2 IS NULL
----
1925
1934
1967

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 * 85 = + + col1 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( + 2 ) + 50 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = + 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT - + 58 * COUNT( * ) FROM tab0 AS cor0 WHERE col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-7859
SELECT - + 58 * COUNT ( * ) FROM tab0 AS cor0 WHERE col1 <= NULL
----
0

query I rowsort
SELECT - col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7861
SELECT - - 19 * - - MIN( - col0 ) FROM tab0 AS cor0
----
-1843

skipif mysql # not compatible
query I rowsort label-7861
SELECT - - 19 * - - MIN ( - col0 ) FROM tab0 AS cor0
----
-1843

query II rowsort
SELECT + 51, col0 AS col1 FROM tab0
----
51
15
51
87
51
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7863
SELECT - COUNT( - col1 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7863
SELECT - COUNT ( - col1 ) AS col0 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7864
SELECT CAST( - + col0 AS SIGNED ) FROM tab1 AS cor0 WHERE 37 + + CAST( - - 10 AS SIGNED ) BETWEEN + col0 * col0 AND + - col0
----

skipif mysql # not compatible
query I rowsort label-7864
SELECT CAST ( - + col0 AS INTEGER ) FROM tab1 AS cor0 WHERE 37 + + CAST ( - - 10 AS INTEGER ) BETWEEN + col0 * col0 AND + - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7865
SELECT ALL + 32 - + 71 DIV + COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL + 32 - + 71 / + COUNT ( * ) FROM tab2 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7867
SELECT - 2 * - 60 + - + 50 + - col2 - - col1 + + col0 + + + ( + CAST( - + col0 AS SIGNED ) ) + - 31 * 45 * 73 FROM tab0 AS cor0
----
-101731
-101754
-101863

skipif mysql # not compatible
query I rowsort label-7867
SELECT - 2 * - 60 + - + 50 + - col2 - - col1 + + col0 + + + ( + CAST ( - + col0 AS INTEGER ) ) + - 31 * 45 * 73 FROM tab0 AS cor0
----
-101731
-101754
-101863

query II rowsort
SELECT ALL col2 AS col0, col2 * + col2 AS col0 FROM tab0 AS cor0
----
10
100
47
2209
99
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-7869
SELECT ALL + COUNT( * ) - - 83 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-7869
SELECT ALL + COUNT ( * ) - - 83 FROM tab1 AS cor0
----
86

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col1, 24 AS col2 FROM tab0 AS cor0
----
-15
24
-87
24
-97
24

query I rowsort
SELECT + 9 + + col1 + 71 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 + - col1 * col2 + + - col2 col1 FROM tab1 AS cor0
----
-1373
-287
-3197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - 97 ) * + col1 col1 FROM tab0
----
2037
7857
97

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE ( NULL ) IS NULL OR NOT NULL NOT BETWEEN NULL AND + col0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + 30 * + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT + COUNT( ALL - 19 ) * COUNT( * ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7877
SELECT + COUNT ( ALL - 19 ) * COUNT ( * ) FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7878
SELECT - ( + col0 ) DIV + col1 + - col2 FROM tab2
----
-23
-40
-59

skipif mysql # not compatible
query I rowsort label-7878
SELECT - ( + col0 ) / + col1 + - col2 FROM tab2
----
-23
-40
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-7879
SELECT + col0 DIV - 45 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7879
SELECT + col0 / - 45 AS col0 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7881
SELECT - + 84 AS col0 FROM tab2 AS cor0 WHERE NOT - ( - - col1 ) NOT BETWEEN + - CAST( col0 AS SIGNED ) AND 40
----
-84

skipif mysql # not compatible
query I rowsort label-7881
SELECT - + 84 AS col0 FROM tab2 AS cor0 WHERE NOT - ( - - col1 ) NOT BETWEEN + - CAST ( col0 AS INTEGER ) AND 40
----
-84

query I rowsort
SELECT 83 FROM tab0 AS cor0 WHERE NOT ( + 55 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT ALL MIN( ALL - 15 ) * - - 45 AS col0 FROM tab0 cor0
----
-675

skipif mysql # not compatible
query I rowsort label-7883
SELECT ALL MIN ( ALL - 15 ) * - - 45 AS col0 FROM tab0 cor0
----
-675

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7884
SELECT - col1 * - 41 * + col2 + + - 38 DIV + + col0 + + + col2 + - CAST( col1 AS SIGNED ) + col0 DIV - - col2 AS col0, 90 FROM tab2 AS cor0
----
126244
90
159318
90
48067
90

skipif mysql # not compatible
query II rowsort label-7884
SELECT - col1 * - 41 * + col2 + + - 38 / + + col0 + + + col2 + - CAST ( col1 AS INTEGER ) + col0 / - - col2 AS col0, 90 FROM tab2 AS cor0
----
126244
90
159318
90
48067
90

query I rowsort
SELECT ALL 6 * + col2 FROM tab1 AS cor0
----
354
408
576

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) > + 37 * + - ( - col2 ) * - - 5
----

query II rowsort
SELECT col1, + col1 + + 18 AS col2 FROM tab0 AS cor0 WHERE NOT + ( + col0 ) IN ( + col0, - 41 * + col2, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7888
SELECT ( - 66 ) * COUNT( * ) * - + 96 AS col1 FROM tab2 AS cor0
----
19008

skipif mysql # not compatible
query I rowsort label-7888
SELECT ( - 66 ) * COUNT ( * ) * - + 96 AS col1 FROM tab2 AS cor0
----
19008

query I rowsort
SELECT DISTINCT + col0 + - + 22 AS col1 FROM tab1 AS cor0
----
29
63
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7890
SELECT DISTINCT - CAST( + ( - 43 ) AS SIGNED ) AS col1 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-7890
SELECT DISTINCT - CAST ( + ( - 43 ) AS INTEGER ) AS col1 FROM tab1
----
43

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 41 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( + col1 ) + + col2 AS col0 FROM tab1
----
21
54
82

onlyif mysql # DIV for integer division: 
query I rowsort label-7893
SELECT ALL - ( + col0 ) DIV - - col1 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7893
SELECT ALL - ( + col0 ) / - - col1 AS col2 FROM tab2
----
-1
0
0

query III rowsort
SELECT * FROM tab0 WHERE + 15 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7895
SELECT col0 DIV - 90 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7895
SELECT col0 / - 90 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT 6 * + col0 + - - 11 AS col0 FROM tab0 cor0
----
101
533
593

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 0 * 40 / + - 53 * + col2 * - col0 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT DISTINCT - - COUNT( * ) - + 12 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7898
SELECT DISTINCT - - COUNT ( * ) - + 12 FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7899
SELECT * FROM tab2 AS cor0 WHERE col1 * CAST( - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7899
SELECT * FROM tab2 AS cor0 WHERE col1 * CAST ( - col2 AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 74 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT DISTINCT - 15 * - SUM( + + col2 ) FROM tab2 AS cor0 WHERE NOT NULL < 45
----
NULL

skipif mysql # not compatible
query I rowsort label-7901
SELECT DISTINCT - 15 * - SUM ( + + col2 ) FROM tab2 AS cor0 WHERE NOT NULL < 45
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7902
SELECT 8 DIV + SUM( + - col2 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7902
SELECT 8 / + SUM ( + - col2 ) AS col2 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, - col0 FROM tab2
----
-51
-46
-67
-75
-77
-64

query I rowsort
SELECT DISTINCT + 81 FROM tab1 WHERE NULL IS NULL
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7905
SELECT AVG ( DISTINCT + col2 ) / - CAST( + ( - + COUNT( * ) ) AS SIGNED ) + + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7905
SELECT AVG ( DISTINCT + col2 ) / - CAST ( + ( - + COUNT ( * ) ) AS INTEGER ) + + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND 26
----

query II rowsort
SELECT + col1, col1 AS col0 FROM tab0 cor0 WHERE NOT - 37 IS NULL
----
1
1
21
21
81
81

query I rowsort
SELECT ALL - 95 FROM tab2 WHERE + col1 <= 84 + col1
----
-95
-95
-95

query I rowsort
SELECT col1 * + ( col1 ) + - 73 FROM tab2
----
2528
4416
5856

onlyif mysql # aggregate syntax: 
query I rowsort label-7910
SELECT ALL COUNT( * ) FROM tab0 WHERE + col1 + 58 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7910
SELECT ALL COUNT ( * ) FROM tab0 WHERE + col1 + 58 IS NULL
----
0

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7912
SELECT COUNT( col0 ) * + COUNT( * ) + CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7912
SELECT COUNT ( col0 ) * + COUNT ( * ) + CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 52 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT - SUM( - 78 ) FROM tab2
----
234

skipif mysql # not compatible
query I rowsort label-7914
SELECT - SUM ( - 78 ) FROM tab2
----
234

query I rowsort
SELECT - col1 + + 62 AS col1 FROM tab1
----
15
48
57

query I rowsort
SELECT - 75 + col1 AS col0 FROM tab0
----
-54
-74
6

query I rowsort
SELECT ALL - 9 + - col0 FROM tab2
----
-55
-73
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-7918
SELECT + 65 + + col1 DIV col0 FROM tab2
----
65
66
66

skipif mysql # not compatible
query I rowsort label-7918
SELECT + 65 + + col1 / col0 FROM tab2
----
65
66
66

query I rowsort
SELECT DISTINCT + 66 AS col1 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7920
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-7920
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7921
SELECT col0 * col2 + CAST( col2 AS SIGNED ) FROM tab1
----
4992
5074
6256

skipif mysql # not compatible
query I rowsort label-7921
SELECT col0 * col2 + CAST ( col2 AS INTEGER ) FROM tab1
----
4992
5074
6256

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE NOT - 29 * + col2 + 81 * + col1 >= col0
----
1

query I rowsort
SELECT + col2 AS col0 FROM tab1 WHERE - col2 < NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col1 = ( - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE col0 * col2 IN ( 85 / + col1 - col1 )
----

query I rowsort
SELECT ALL 34 - - col1 AS col1 FROM tab2
----
101
111
85

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NOT 38 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 * - col0 + - col2 FROM tab1
----
-4992
-5074
-6256

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7929
SELECT ALL - COUNT( * ) * MIN( 78 * col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT - CAST( ( - 77 ) AS SIGNED ) < col1 * - 24
----
-5382

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL - COUNT ( * ) * MIN ( 78 * col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT - CAST ( ( - 77 ) AS INTEGER ) < col1 * - 24
----
-5382

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7930
SELECT + col0 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7930
SELECT + col0 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( ( 77 ) ) FROM tab2 AS cor0
----
77
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7932
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE col0 / col1 <= ( - 67 )
----
0

skipif mysql # not compatible
query I rowsort label-7932
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE col0 / col1 <= ( - 67 )
----
0

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE ( - 95 ) IN ( 45 )
----

query I rowsort
SELECT col1 * - col2 FROM tab0 WHERE col2 >= - 2
----
-210
-3807
-99

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE - col1 - + col1 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT DISTINCT 58 + COUNT( * ) FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-7936
SELECT DISTINCT 58 + COUNT ( * ) FROM tab0
----
61

query I rowsort
SELECT ALL - 18 / 35 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7938
SELECT - + col2 DIV col2 + - 64 AS col1 FROM tab2 cor0
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-7938
SELECT - + col2 / col2 + - 64 AS col1 FROM tab2 cor0
----
-65
-65
-65

query I rowsort
SELECT - ( + 74 ) AS col1 FROM tab0 AS cor0
----
-74
-74
-74

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 5 * 3 col2 FROM tab1 AS cor0
----
15
15
15

query I rowsort
SELECT ALL - - 12 * 3 FROM tab2 AS cor0
----
36
36
36

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col1 NOT IN ( - 48 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT DISTINCT - - COUNT( 83 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7944
SELECT DISTINCT - - COUNT ( 83 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT 60 * col0 FROM tab1 AS cor0
----
3060
5100
5460

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT - ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( col0 ) < col1
----
-3

skipif mysql # not compatible
query I rowsort label-7946
SELECT - ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( col0 ) < col1
----
-3

query I rowsort
SELECT - ( 79 ) AS col0 FROM tab1 AS cor0 WHERE NOT - 37 <> NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT MIN( ALL - 62 ) col1 FROM tab2
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7949
SELECT MIN ( ALL - 62 ) col1 FROM tab2
----
-62

query I rowsort
SELECT DISTINCT - 23 * - col1 FROM tab2
----
1173
1541
1771

onlyif mysql # DIV for integer division: 
query I rowsort label-7951
SELECT ALL col1 DIV + + 18 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-7951
SELECT ALL col1 / + + 18 FROM tab1
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT + SUM( + ( - 84 ) ) AS col1 FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-7952
SELECT + SUM ( + ( - 84 ) ) AS col1 FROM tab2
----
-252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7953
SELECT ALL 53 - - COUNT( * ) * - 91 AS col2 FROM tab0 WHERE + ( + 48 ) * CAST( 18 * col2 + + 60 AS SIGNED ) - - 45 IS NULL
----
53

skipif mysql # not compatible
query I rowsort label-7953
SELECT ALL 53 - - COUNT ( * ) * - 91 AS col2 FROM tab0 WHERE + ( + 48 ) * CAST ( 18 * col2 + + 60 AS INTEGER ) - - 45 IS NULL
----
53

query I rowsort
SELECT + 54 + + col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7955
SELECT DISTINCT 11 DIV col2 * - col0 FROM tab0 AS cor0
----
-87
0

skipif mysql # not compatible
query I rowsort label-7955
SELECT DISTINCT 11 / col2 * - col0 FROM tab0 AS cor0
----
-87
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT ALL ( + COUNT( - 92 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7956
SELECT ALL ( + COUNT ( - 92 ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ( - 75 ) AS col1 FROM tab0 AS cor0
----
-75
-75
-75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7960
SELECT ALL - CAST( NULL AS SIGNED ) * ( 42 ) - 26 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-7960
SELECT ALL - CAST ( NULL AS INTEGER ) * ( 42 ) - 26 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + + 67 FROM tab0
----
148
68
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7962
SELECT 20 + - + ( MIN( 92 ) ) + - 33 * COUNT( * ) AS col2 FROM tab2
----
-171

skipif mysql # not compatible
query I rowsort label-7962
SELECT 20 + - + ( MIN ( 92 ) ) + - 33 * COUNT ( * ) AS col2 FROM tab2
----
-171

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT ALL COUNT( DISTINCT - col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL COUNT ( DISTINCT - col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT + ( + COUNT( * ) ) * - COUNT( * ) + 65 col2 FROM tab1 cor0
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7964
SELECT + ( + COUNT ( * ) ) * - COUNT ( * ) + 65 col2 FROM tab1 cor0
----
56

query I rowsort
SELECT 69 + - 66 AS col1 FROM tab0 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7966
SELECT + - COUNT( * ) + + COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7966
SELECT + - COUNT ( * ) + + COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT DISTINCT + MIN( + + 63 ) FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-7967
SELECT DISTINCT + MIN ( + + 63 ) FROM tab1 AS cor0
----
63

query I rowsort
SELECT - 93 FROM tab0 cor0 WHERE + col0 NOT BETWEEN NULL AND - 94
----
-93
-93
-93

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - ( col0 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 + + col1 * col2 + 55 FROM tab2
----
1274
3199
4016

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT DISTINCT 36 * - - 88 + + COUNT( * ) * + MAX( 10 ) FROM tab0
----
3198

skipif mysql # not compatible
query I rowsort label-7971
SELECT DISTINCT 36 * - - 88 + + COUNT ( * ) * + MAX ( 10 ) FROM tab0
----
3198

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT - + COUNT( * ) + 89 FROM tab2 WHERE NULL IS NOT NULL
----
89

skipif mysql # not compatible
query I rowsort label-7972
SELECT - + COUNT ( * ) + 89 FROM tab2 WHERE NULL IS NOT NULL
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-7973
SELECT ALL col2 DIV col1 * 97 + 52 * 47 AS col2 FROM tab1
----
2541
3026
3511

skipif mysql # not compatible
query I rowsort label-7973
SELECT ALL col2 / col1 * 97 + 52 * 47 AS col2 FROM tab1
----
2541
3026
3511

query I rowsort
SELECT ALL + ( 9 ) AS col2 FROM tab0
----
9
9
9

query III rowsort
SELECT * FROM tab1 WHERE - 40 + - 4 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 59 col0 FROM tab1 WHERE + + col0 IS NOT NULL
----
-59
-59
-59

query I rowsort
SELECT + col1 - - 94 AS col1 FROM tab1
----
108
141
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7978
SELECT DISTINCT CAST( NULL AS SIGNED ) - - + 70 * + SUM( + col2 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - + 70 * + SUM ( + col2 ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7979
SELECT * FROM tab1 AS cor0 WHERE NULL > + CAST( + col0 AS SIGNED ) + + 10 / - col2
----

skipif mysql # not compatible
query III rowsort label-7979
SELECT * FROM tab1 AS cor0 WHERE NULL > + CAST ( + col0 AS INTEGER ) + + 10 / - col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + ( + col1 ) + - - 20 + + 72 * - ( + col0 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7981
SELECT DISTINCT - 92 / CAST( NULL AS SIGNED ) - - SUM( ALL col2 + + col2 ) AS col2 FROM tab0 WHERE - + 81 NOT IN ( 1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7981
SELECT DISTINCT - 92 / CAST ( NULL AS INTEGER ) - - SUM ( ALL col2 + + col2 ) AS col2 FROM tab0 WHERE - + 81 NOT IN ( 1 )
----
NULL

query I rowsort
SELECT DISTINCT 68 * - col1 FROM tab0
----
-1428
-5508
-68

query I rowsort
SELECT col0 * - + 85 FROM tab1
----
-4335
-7225
-7735

query I rowsort
SELECT ALL 66 FROM tab2 AS cor0 WHERE - ( + col2 ) IS NOT NULL
----
66
66
66

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN + - col0 / col1 / col0 * col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7986
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 37 * col0 * - - col2 * CAST( - 54 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7986
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 37 * col0 * - - col2 * CAST ( - 54 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7988
SELECT * FROM tab1 AS cor0 WHERE NOT ( - ( + col2 ) ) NOT BETWEEN col2 AND - ( + col2 ) * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7988
SELECT * FROM tab1 AS cor0 WHERE NOT ( - ( + col2 ) ) NOT BETWEEN col2 AND - ( + col2 ) * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL col0 * col2 + + col2 * col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL col0 * - + col1 - + ( - + col2 ) FROM tab0 cor0
----
-1168
-1817
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7991
SELECT - CAST( + col0 AS SIGNED ) + 86 col1 FROM tab0 AS cor0 WHERE NOT ( 37 ) IN ( + col2 )
----
-1
-11
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7991
SELECT - CAST ( + col0 AS INTEGER ) + 86 col1 FROM tab0 AS cor0 WHERE NOT ( 37 ) IN ( + col2 )
----
-1
-11
71

query I rowsort
SELECT DISTINCT + - 38 * - + col0 * + - col0 FROM tab0 AS cor0
----
-287622
-357542
-8550

onlyif mysql # DIV for integer division: 
query I rowsort label-7993
SELECT ALL - 58 DIV col1 col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7993
SELECT ALL - 58 / col1 col1 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7994
SELECT ALL - 98 DIV col1 * 48 FROM tab2
----
-48
-48
-48

skipif mysql # not compatible
query I rowsort label-7994
SELECT ALL - 98 / col1 * 48 FROM tab2
----
-48
-48
-48

query I rowsort
SELECT + col0 * - 7 FROM tab1
----
-357
-595
-637

query I rowsort
SELECT DISTINCT 59 * - col0 AS col2 FROM tab0
----
-5133
-5723
-885

query I rowsort
SELECT + 8 * col1 FROM tab1
----
112
376
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT ALL - SUM( DISTINCT + 76 ) col2 FROM tab0
----
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7998
SELECT ALL - SUM ( DISTINCT + 76 ) col2 FROM tab0
----
-76

query I rowsort
SELECT ALL - 84 FROM tab2 WHERE NOT + col1 <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8000
SELECT + col0 / - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8000
SELECT + col0 / - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, col1 col0 FROM tab2
----
46
51
64
77
75
67

query II rowsort
SELECT - col2 * - col0 AS col0, + 97 FROM tab1
----
4896
97
5015
97
6188
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 24 + + 50 NOT BETWEEN - col1 AND - col1 + - col2 + + ( - ( col2 ) ) * + 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT ( + - COUNT( ALL - + col0 ) ) AS col2 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8004
SELECT ( + - COUNT ( ALL - + col0 ) ) AS col2 FROM tab0 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - 39 * col2 col2 FROM tab2 WHERE - 48 = ( ( + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT ALL - SUM( - - ( + col0 ) ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL - SUM ( - - ( + col0 ) ) FROM tab2 cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT ALL 30 * + COUNT( * ) + - SUM( col1 ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL 30 * + COUNT ( * ) + - SUM ( col1 ) FROM tab1 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT DISTINCT + SUM( - col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-8008
SELECT DISTINCT + SUM ( - col0 ) AS col2 FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8009
SELECT DISTINCT + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8009
SELECT DISTINCT + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT - - col1 * ( + col2 ) FROM tab1 cor0
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 67 col2 FROM tab0 AS cor0
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8012
SELECT + + col0 + + 47 + + col0 * - 81 + - + ( - - col1 ) DIV + + col0 - + col1 FROM tab2 AS cor0
----
-3685
-5151
-6020

skipif mysql # not compatible
query I rowsort label-8012
SELECT + + col0 + + 47 + + col0 * - 81 + - + ( - - col1 ) / + + col0 - + col1 FROM tab2 AS cor0
----
-3685
-5151
-6020

query I rowsort
SELECT DISTINCT + - 20 FROM tab0 AS cor0
----
-20

query I rowsort
SELECT + + col2 * + 92 + + ( + col0 ) + + 71 + + col1 + 99 AS col2 FROM tab2 AS cor0
----
2383
3991
5648

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + + col2 col0 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT ALL - 15 AS col2 FROM tab1 cor0 WHERE - col1 + + col0 * 21 IS NULL
----

query I rowsort
SELECT - col1 + - - col2 FROM tab2 AS cor0
----
-28
-37
-9

query I rowsort
SELECT DISTINCT + col0 - + 31 + col0 FROM tab2
----
119
61
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8019
SELECT - col2 + + CAST( + col0 AS SIGNED ) FROM tab2
----
17
23
24

skipif mysql # not compatible
query I rowsort label-8019
SELECT - col2 + + CAST ( + col0 AS INTEGER ) FROM tab2
----
17
23
24

query I rowsort
SELECT 19 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col0 ) + col0 col1 FROM tab0 WHERE NULL = 18 / - + col0 + + + col0 * col1 - - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 75 = + - ( + 59 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 44 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8024
SELECT + col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE 49 NOT BETWEEN - - col2 * - 54 AND ( - 29 * - - ( col1 ) + col0 / 11 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8024
SELECT + col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE 49 NOT BETWEEN - - col2 * - 54 AND ( - 29 * - - ( col1 ) + col0 / 11 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8025
SELECT ALL - MIN( DISTINCT - + col1 ) FROM tab1 AS cor0 WHERE + 28 = col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8025
SELECT ALL - MIN ( DISTINCT - + col1 ) FROM tab1 AS cor0 WHERE + 28 = col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8026
SELECT - 36 * + COUNT( * ) col2 FROM tab2 cor0
----
-108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8026
SELECT - 36 * + COUNT ( * ) col2 FROM tab2 cor0
----
-108

query I rowsort
SELECT ALL - + ( 80 ) + - - 26 * - - col0 FROM tab2 AS cor0
----
1116
1584
1870

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8028
SELECT DISTINCT + + 99 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT 32 NOT BETWEEN + CAST( + + col2 AS DECIMAL ) + 33 AND - - col0
----

skipif mysql # not compatible
query I rowsort label-8028
SELECT DISTINCT + + 99 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT 32 NOT BETWEEN + CAST ( + + col2 AS REAL ) + 33 AND - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT MIN( - - col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8029
SELECT MIN ( - - col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT 89 AS col2 FROM tab2 AS cor0 WHERE ( col2 ) IS NOT NULL
----
89

query I rowsort
SELECT - 1 AS col0 FROM tab1 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - 29 ) col1 FROM tab2 AS cor0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT ALL COUNT( ALL col1 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8033
SELECT ALL COUNT ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 44 NOT IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8035
SELECT - ( AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8035
SELECT - ( AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT ALL + + 19 * + - col0 * ( + col1 ) + + - 67 FROM tab0 AS cor0
----
-1910
-23152
-34780

query I rowsort
SELECT - 56 * + col0 AS col1 FROM tab2
----
-2576
-3584
-4200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - - col2 col2 FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE + 85 - 39 BETWEEN + - col1 + + 47 AND + col1 + + + 36
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8040
SELECT DISTINCT 23 DIV 73 * - CAST( + + col2 AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8040
SELECT DISTINCT 23 / 73 * - CAST ( + + col2 AS INTEGER ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT 71 * + col0 FROM tab2
----
3266
4544
5325

onlyif mysql # aggregate syntax: 
query I rowsort label-8042
SELECT - + 89 * + COUNT( * ) FROM tab2 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-8042
SELECT - + 89 * + COUNT ( * ) FROM tab2 AS cor0
----
-267

query II rowsort
SELECT - col0, 58 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 43 + - col2 * + 22 )
----

query II rowsort
SELECT DISTINCT + col0 + - col2 AS col2, - 26 FROM tab1
----
-45
-26
23
-26
26
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col0 ) * - col2 * + col2 + col2 col1 FROM tab1
----
295944
420852
470112

onlyif mysql # aggregate syntax: 
query I rowsort label-8046
SELECT DISTINCT + COUNT( * ) * + MAX( DISTINCT + 80 ) FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-8046
SELECT DISTINCT + COUNT ( * ) * + MAX ( DISTINCT + 80 ) FROM tab0
----
240

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8047
SELECT - col0 * + col0 / CAST( NULL AS DECIMAL ) + + + col2 * - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8047
SELECT - col0 * + col0 / CAST ( NULL AS REAL ) + + + col2 * - col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * + col2 * + 47 * + + 66 * - + 52 AS col1 FROM tab0
----
-15969096
-33873840
-614084328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8049
SELECT ALL + 12 * 32 * - - MAX( DISTINCT col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 IN ( - col0, CAST( NULL AS SIGNED ), + 31 / - + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL + 12 * 32 * - - MAX ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT - col1 IN ( - col0, CAST ( NULL AS INTEGER ), + 31 / - + col1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8050
SELECT ALL + - col0 DIV ( + 87 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8050
SELECT ALL + - col0 / ( + 87 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8051
SELECT + COUNT( * ) + - - COUNT( * ) FROM tab1 cor0 WHERE + 93 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8051
SELECT + COUNT ( * ) + - - COUNT ( * ) FROM tab1 cor0 WHERE + 93 IS NULL
----
0

query I rowsort
SELECT - - col0 * + - ( + + col0 ) AS col1 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-8053
SELECT ALL 92 DIV + 97 - + col0 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8053
SELECT ALL 92 / + 97 - + col0 FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8054
SELECT DISTINCT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8054
SELECT DISTINCT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col0 ) col1 FROM tab2 WHERE + col1 IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT col1 + + 46 FROM tab0
----
127
47
67

query II rowsort
SELECT DISTINCT - 57 AS col0, - 41 AS col0 FROM tab0, tab0 cor0
----
-57
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-8058
SELECT COUNT( * ) + 83 col2 FROM tab2
----
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8058
SELECT COUNT ( * ) + 83 col2 FROM tab2
----
86

query I rowsort
SELECT - + 31 + col0 FROM tab2 cor0
----
15
33
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8060
SELECT DISTINCT - + ( + col2 ) / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8060
SELECT DISTINCT - + ( + col2 ) / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8061
SELECT DISTINCT COUNT( * ) DIV + - 71 AS col2 FROM tab2 AS cor0 WHERE NOT col1 * - + ( - + col2 ) BETWEEN + col1 * + - col0 AND + ( - 6 )
----
0

skipif mysql # not compatible
query I rowsort label-8061
SELECT DISTINCT COUNT ( * ) / + - 71 AS col2 FROM tab2 AS cor0 WHERE NOT col1 * - + ( - + col2 ) BETWEEN + col1 * + - col0 AND + ( - 6 )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 IN ( + col2, 32 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8063
SELECT 20 + + SUM( DISTINCT - col2 ) - - ( - - ( + 15 ) ) * + 57, 98 AS col0 FROM tab2 AS cor0
----
754
98

skipif mysql # not compatible
query II rowsort label-8063
SELECT 20 + + SUM ( DISTINCT - col2 ) - - ( - - ( + 15 ) ) * + 57, 98 AS col0 FROM tab2 AS cor0
----
754
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8064
SELECT ALL + + ( + COUNT( * ) ) AS col2, CAST( - 61 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3
-61

skipif mysql # not compatible
query II rowsort label-8064
SELECT ALL + + ( + COUNT ( * ) ) AS col2, CAST ( - 61 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3
-61

query I rowsort
SELECT DISTINCT + 15 AS col0 FROM tab1 cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8066
SELECT ALL col1 AS col0, + CAST( + 80 AS SIGNED ) FROM tab0
----
1
80
21
80
81
80

skipif mysql # not compatible
query II rowsort label-8066
SELECT ALL col1 AS col0, + CAST ( + 80 AS INTEGER ) FROM tab0
----
1
80
21
80
81
80

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 30 >= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8070
SELECT CAST( NULL AS SIGNED ) * + 13 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8070
SELECT CAST ( NULL AS INTEGER ) * + 13 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8071
SELECT ALL 81 + - COUNT( * ) * - - 81 - MIN( DISTINCT - + col2 ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-8071
SELECT ALL 81 + - COUNT ( * ) * - - 81 - MIN ( DISTINCT - + col2 ) FROM tab0
----
-63

query I rowsort
SELECT col1 * - 35 AS col1 FROM tab1
----
-1645
-175
-490

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 68 <= + 26
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + col1 + + - col1 * ( - - ( + - col2 ) ) AS col2 FROM tab0
----
199
241
3935

query I rowsort
SELECT ALL - 27 * + ( col2 ) FROM tab1
----
-1593
-1836
-2592

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col1 <> 5 * col2
----

query I rowsort
SELECT DISTINCT + 99 * col2 + - col2 AS col2 FROM tab2 AS cor0
----
2254
3920
5684

query I rowsort
SELECT ALL col2 + col0 - + 70 - + 14 FROM tab1
----
60
63
75

query I rowsort
SELECT DISTINCT col2 - - 62 + + + col0 FROM tab2
----
131
166
195

query I rowsort
SELECT - - col2 + + col1 + + col0 + col2 + - + col2 + + 49 + + - 50 AS col2 FROM tab0 cor0
----
117
142
196

query I rowsort
SELECT DISTINCT - col0 FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - col2
----

query I rowsort
SELECT DISTINCT col2 + + 45 AS col0 FROM tab1 AS cor0
----
104
113
141

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 15 + - - 63 FROM tab1 AS cor0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8085
SELECT - + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8085
SELECT - + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8086
SELECT + ( 95 ) + - + SUM( ALL + ( - - col0 ) ) * - - 76 FROM tab0 AS cor0
----
-15029

skipif mysql # not compatible
query I rowsort label-8086
SELECT + ( 95 ) + - + SUM ( ALL + ( - - col0 ) ) * - - 76 FROM tab0 AS cor0
----
-15029

query II rowsort
SELECT col1 + - ( - col0 ) * - - col0 AS col0, + col0 AS col1 FROM tab1
----
2615
51
7230
85
8328
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT ALL + 67 * ( - COUNT( * ) ) + + 69 AS col0 FROM tab0
----
-132

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL + 67 * ( - COUNT ( * ) ) + + 69 AS col0 FROM tab0
----
-132

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col1 + col2 > NULL
----

query I rowsort
SELECT DISTINCT 38 + + col1 * - col1 * col2 * - 95 FROM tab2
----
22530238
24734428
5683223

query I rowsort
SELECT ALL + col1 * - col1 * + col0 + + + col2 * - + col2 + - + col1 FROM tab1
----
-19226
-205690
-5611

query I rowsort
SELECT ALL 26 - - - col1 + - col1 FROM tab0
----
-136
-16
24

onlyif mysql # DIV for integer division: 
query I rowsort label-8093
SELECT DISTINCT + col0 * - col2 DIV + col2 + 62 + col0 * col1 * + + 13 * col1 AS col0 FROM tab0
----
1226
1279442
498746

skipif mysql # not compatible
query I rowsort label-8093
SELECT DISTINCT + col0 * - col2 / + col2 + 62 + col0 * col1 * + + 13 * col1 AS col0 FROM tab0
----
1226
1279442
498746

query III rowsort
SELECT * FROM tab0 WHERE 84 + - col1 + col0 * 55 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col2 - + col0 * + col0 AS col2 FROM tab2
----
-2139
-4136
-5683

query I rowsort
SELECT - - 71 * - + col2 AS col2 FROM tab1 AS cor0
----
-4189
-4828
-6816

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT + MAX( ALL - + col1 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8098
SELECT + MAX ( ALL - + col1 ) AS col1 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8099
SELECT - - 43 DIV 47 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8099
SELECT - - 43 / 47 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT 65 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # aggregate syntax: 
query I rowsort label-8101
SELECT + - 62 * - MIN( ALL col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
930

skipif mysql # not compatible
query I rowsort label-8101
SELECT + - 62 * - MIN ( ALL col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
930

onlyif mysql # aggregate syntax: 
query I rowsort label-8102
SELECT - MIN( - col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8102
SELECT - MIN ( - col0 ) AS col1 FROM tab1
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 61 col1 FROM tab0 cor0
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8104
SELECT DISTINCT - COUNT( ALL - col0 ) * - ( + 8 ) AS col2 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8104
SELECT DISTINCT - COUNT ( ALL - col0 ) * - ( + 8 ) AS col2 FROM tab0 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT DISTINCT + 80 * - MIN( ALL - col0 ) FROM tab1 AS cor0
----
7280

skipif mysql # not compatible
query I rowsort label-8105
SELECT DISTINCT + 80 * - MIN ( ALL - col0 ) FROM tab1 AS cor0
----
7280

query I rowsort
SELECT + 38 * + col2 - + col0 FROM tab0 AS cor0
----
1771
293
3665

query II rowsort
SELECT ALL col1 AS col1, - 30 - + + col0 - - - col2 * + 11 * + 66 * col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab2 AS cor0 WHERE NOT ( col2 * col2 + + col2 ) NOT IN ( - col2, + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> 77 * + ( + 3 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8110
SELECT ALL + AVG ( ALL + + CAST( NULL AS SIGNED ) ) FROM tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8110
SELECT ALL + AVG ( ALL + + CAST ( NULL AS INTEGER ) ) FROM tab2, tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT DISTINCT 29 + + COUNT( * ) AS col0 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-8111
SELECT DISTINCT 29 + + COUNT ( * ) AS col0 FROM tab1
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8112
SELECT DISTINCT * FROM tab2 WHERE NOT - + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8112
SELECT DISTINCT * FROM tab2 WHERE NOT - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT 78 AS col0, + col2 FROM tab2
----
78
23
78
40
78
58

query I rowsort
SELECT + ( - 20 ) * - + col1 FROM tab0 AS cor0
----
1620
20
420

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 21 - - col0 FROM tab2 AS cor0
----
25
43
54

query I rowsort
SELECT col1 * + col0 * ( - col0 ) AS col2 FROM tab0 AS cor0
----
-158949
-18225
-9409

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE + col0 = NULL
----

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab1 cor0 WHERE - col1 IS NOT NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * col1 col1, col1 * - 0 FROM tab2 cor0
----
2601
0
4489
0
5929
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT - COUNT( * ) * - + 17 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8123
SELECT - COUNT ( * ) * - + 17 FROM tab0 AS cor0
----
51

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) >= col2 * + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col1 + + col1 + - col2 col0 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT ALL - 60 * 19 * col1 AS col2 FROM tab1
----
-15960
-53580
-5700

query I rowsort
SELECT DISTINCT + col0 * + + col0 AS col2 FROM tab1
----
2601
7225
8281

query I rowsort
SELECT DISTINCT 81 - 34 AS col1 FROM tab2
----
47

query I rowsort
SELECT - 4 / - col2 AS col1 FROM tab2 WHERE - col0 > - 2 * + 22
----

query II rowsort
SELECT - col2, col0 - - - col1 AS col0 FROM tab0
----
-10
66
-47
-66
-99
96

query II rowsort
SELECT + 95 AS col2, col0 * - 42 AS col0 FROM tab0
----
95
-3654
95
-4074
95
-630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8132
SELECT DISTINCT ( + CAST( - 3 AS SIGNED ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8132
SELECT DISTINCT ( + CAST ( - 3 AS INTEGER ) ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8133
SELECT ALL * FROM tab0 WHERE - + 25 * - CAST( NULL AS SIGNED ) * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8133
SELECT ALL * FROM tab0 WHERE - + 25 * - CAST ( NULL AS INTEGER ) * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8134
SELECT DISTINCT - + col0 + - - col0 - col2 AS col0 FROM tab2 AS cor0 WHERE + col2 + CAST( NULL AS SIGNED ) - + + 65 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8134
SELECT DISTINCT - + col0 + - - col0 - col2 AS col0 FROM tab2 AS cor0 WHERE + col2 + CAST ( NULL AS INTEGER ) - + + 65 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) > + 2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8136
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8136
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + col2 * + col1 * + col2 AS col1 FROM tab0
----
178929
2100
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT + COUNT( * ) * 91 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-8138
SELECT + COUNT ( * ) * 91 FROM tab1
----
273

query II rowsort
SELECT + col0, - 57 * + col1 FROM tab0 cor0 WHERE NOT col0 * col1 < col0 * col0
----
15
-4617

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT ALL - ( - COUNT( * ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL - ( - COUNT ( * ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE NOT + col2 < + + 15
----
15
97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8142
SELECT ALL + col1, - CAST( NULL AS DECIMAL ) * + - col2 AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-8142
SELECT ALL + col1, - CAST ( NULL AS REAL ) * + - col2 AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT DISTINCT - MIN( - - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8143
SELECT DISTINCT - MIN ( - - col2 ) FROM tab1 AS cor0
----
-59

query I rowsort
SELECT ALL col1 + 46 FROM tab1 AS cor0
----
51
60
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT DISTINCT + COUNT( DISTINCT - 84 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8145
SELECT DISTINCT + COUNT ( DISTINCT - 84 ) FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL - col1 + - 32 AS col2 FROM tab0 AS cor0
----
-113
-33
-53

query I rowsort
SELECT DISTINCT - col2 + + - col0 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8148
SELECT col2 + + - 10 + - 47 + - col0 * col1 col0, col2 DIV col1 AS col1 FROM tab2
----
-2380
0
-4945
0
-5024
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8148
SELECT col2 + + - 10 + - 47 + - col0 * col1 col0, col2 / col1 AS col1 FROM tab2
----
-2380
0
-4945
0
-5024
0

query I rowsort
SELECT col0 + + col0 + - col0 AS col1 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL + 70 FROM tab2 WHERE NULL BETWEEN col1 * - + ( col1 ) AND - - 57
----

query I rowsort
SELECT 46 + - 13 AS col0 FROM tab0
----
33
33
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8152
SELECT ALL - CAST( NULL AS SIGNED ) + - col0 + - - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8152
SELECT ALL - CAST ( NULL AS INTEGER ) + - col0 + - - col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 71 IS NOT NULL
----

query II rowsort
SELECT DISTINCT ( - col2 ), - 85 FROM tab2 WHERE NOT NULL NOT BETWEEN + 44 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT ALL + ( + + MIN( + + 53 ) ) AS col0 FROM tab0 cor0
----
53

skipif mysql # not compatible
query I rowsort label-8155
SELECT ALL + ( + + MIN ( + + 53 ) ) AS col0 FROM tab0 cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT - - COUNT( 69 ) * - COUNT( DISTINCT + col1 ) col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8156
SELECT - - COUNT ( 69 ) * - COUNT ( DISTINCT + col1 ) col1 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT 21 * col1 * + col2 AS col2 FROM tab0 AS cor0
----
2079
4410
79947

onlyif mysql # aggregate syntax: 
query II rowsort label-8158
SELECT - COUNT( * ) AS col2, COUNT( - + col2 ) AS col2 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-8158
SELECT - COUNT ( * ) AS col2, COUNT ( - + col2 ) AS col2 FROM tab0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8159
SELECT DISTINCT + - ( 32 ) - + COUNT( * ) col2 FROM tab0 cor0
----
-35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8159
SELECT DISTINCT + - ( 32 ) - + COUNT ( * ) col2 FROM tab0 cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT COUNT( * ) + + 17 AS col2 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-8160
SELECT COUNT ( * ) + + 17 AS col2 FROM tab0 AS cor0
----
20

query I rowsort
SELECT col1 + 32 * + - col0 + col2 FROM tab1 AS cor0
----
-1522
-2656
-2797

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8162
SELECT DISTINCT - 90 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8162
SELECT DISTINCT - 90 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8163
SELECT DISTINCT + COUNT( * ) * - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8163
SELECT DISTINCT + COUNT ( * ) * - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8164
SELECT - col2 DIV + + col1 AS col0 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-8164
SELECT - col2 / + + col1 AS col0 FROM tab0 AS cor0
----
-99
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8165
SELECT DISTINCT COUNT( DISTINCT col2 ) DIV + + 19 + + COUNT( DISTINCT - col1 ) + + + COUNT( * ) col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8165
SELECT DISTINCT COUNT ( DISTINCT col2 ) / + + 19 + + COUNT ( DISTINCT - col1 ) + + + COUNT ( * ) col1 FROM tab2 AS cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + - col2 * + + ( - - 52 ) col0 FROM tab0
----
-10920
-197964
-5148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8167
SELECT ALL CAST( NULL AS SIGNED ) * + - 55 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL CAST ( NULL AS INTEGER ) * + - 55 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8168
SELECT DISTINCT - COUNT( * ) FROM tab2, tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8168
SELECT DISTINCT - COUNT ( * ) FROM tab2, tab2 cor0
----
-9

query I rowsort
SELECT ALL + 44 AS col1 FROM tab0
----
44
44
44

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 48 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8171
SELECT ALL + 87 DIV col1 FROM tab0
----
1
4
87

skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL + 87 / col1 FROM tab0
----
1
4
87

query I rowsort
SELECT ALL + + 90 * + + col2 FROM tab2 AS cor0
----
2070
3600
5220

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT ( NOT + - 42 * + - 68 * col2 IS NULL )
----

query I rowsort
SELECT ALL + col1 * + 77 + + 32 * 66 FROM tab2 AS cor0
----
6039
7271
8041

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8175
SELECT ALL - 86 * - + col0 * + + ( CAST( + col0 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
223686
621350
712166

skipif mysql # not compatible
query I rowsort label-8175
SELECT ALL - 86 * - + col0 * + + ( CAST ( + col0 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
223686
621350
712166

query I rowsort
SELECT ALL - col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8177
SELECT ALL - col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL - col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - col1 * - - 13 FROM tab2 AS cor0
----
-1001
-663
-871

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 AS cor0 WHERE - col1 * - 49 NOT BETWEEN - + 26 AND NULL
----

query I rowsort
SELECT ALL - ( col0 ) + + + 26 * - - 39 + + - 9 FROM tab1
----
914
920
954

query I rowsort
SELECT + col0 * + - 13 AS col1 FROM tab0
----
-1131
-1261
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-8182
SELECT ALL col0 * col2 DIV + 22 + + ( - col0 ) FROM tab0
----
-48
17
339

skipif mysql # not compatible
query I rowsort label-8182
SELECT ALL col0 * col2 / + 22 + + ( - col0 ) FROM tab0
----
-48
17
339

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8183
SELECT - CAST( NULL AS SIGNED ), col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-8183
SELECT - CAST ( NULL AS INTEGER ), col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 + col1 col0 FROM tab2
----
100
116
126

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT ALL ( - - COUNT( * ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8185
SELECT ALL ( - - COUNT ( * ) ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8186
SELECT COUNT( * ) AS col1, 78 * - CAST( - COUNT( * ) AS SIGNED ) - + 28 AS col0 FROM tab0
----
3
206

skipif mysql # not compatible
query II rowsort label-8186
SELECT COUNT ( * ) AS col1, 78 * - CAST ( - COUNT ( * ) AS INTEGER ) - + 28 AS col0 FROM tab0
----
3
206

query II rowsort
SELECT ALL + 51 AS col1, + 87 FROM tab1
----
51
87
51
87
51
87

query III rowsort
SELECT - col0 AS col0, 86, + col1 * - + col2 AS col2 FROM tab1
----
9 values hashing to 95515a44947671a6213736cbefb872b0

onlyif mysql # DIV for integer division: 
query I rowsort label-8189
SELECT - 42 DIV + 73 * + - col1 - - - col2 - + + col2 AS col0 FROM tab2
----
-116
-46
-80

skipif mysql # not compatible
query I rowsort label-8189
SELECT - 42 / + 73 * + - col1 - - - col2 - + + col2 AS col0 FROM tab2
----
-116
-46
-80

query I rowsort
SELECT + + col2 + - + col2 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT ALL col0, + col0 AS col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8193
SELECT + COUNT( + + 10 ) DIV - COUNT( * ) + + 0 AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8193
SELECT + COUNT ( + + 10 ) / - COUNT ( * ) + + 0 AS col0 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT DISTINCT - 23 + + - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-32

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT - 23 + + - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-32

query II rowsort
SELECT DISTINCT col0 - - col0 * - 84 + - ( + + col0 ) AS col1, - col2 * col1 FROM tab1 AS cor0
----
-4284
-1344
-7140
-295
-7644
-3196

query I rowsort
SELECT DISTINCT 71 + + col2 + - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT - 61 * + COUNT( * ) FROM tab2 cor0
----
-183

skipif mysql # not compatible
query I rowsort label-8197
SELECT - 61 * + COUNT ( * ) FROM tab2 cor0
----
-183

query I rowsort
SELECT ALL - - col2 / + col2 * + col1 FROM tab2 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT - MIN( col0 ) AS col0 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-8199
SELECT - MIN ( col0 ) AS col0 FROM tab1
----
-51

query II rowsort
SELECT DISTINCT 11 AS col2, - 59 FROM tab0
----
11
-59

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 35 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, 69 col0 FROM tab2
----
-23
69
-40
69
-58
69

onlyif mysql # aggregate syntax: 
query II rowsort label-8203
SELECT DISTINCT + 24 col0, COUNT( * ) - + + 16 FROM tab1
----
24
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8203
SELECT DISTINCT + 24 col0, COUNT ( * ) - + + 16 FROM tab1
----
24
-13

query I rowsort
SELECT ( - col2 ) + + + 87 * - col0 FROM tab2 WHERE NOT + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT ALL MIN( + col1 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8205
SELECT ALL MIN ( + col1 ) FROM tab1
----
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8206
SELECT + CAST( NULL AS SIGNED ) * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8206
SELECT + CAST ( NULL AS INTEGER ) * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8207
SELECT DISTINCT + col0 AS col2, + CAST( - 98 AS SIGNED ) AS col0 FROM tab1
----
51
-98
85
-98
91
-98

skipif mysql # not compatible
query II rowsort label-8207
SELECT DISTINCT + col0 AS col2, + CAST ( - 98 AS INTEGER ) AS col0 FROM tab1
----
51
-98
85
-98
91
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT ALL - MIN( - col0 ) * + 75 * - 53 AS col2 FROM tab0
----
-385575

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL - MIN ( - col0 ) * + 75 * - 53 AS col2 FROM tab0
----
-385575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8209
SELECT DISTINCT COUNT( - CAST( NULL AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8209
SELECT DISTINCT COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 49 * - - col0 col0 FROM tab2
----
2254
3136
3675

query I rowsort
SELECT ALL + col2 * 3 * + - col2 + + + col0 AS col1 FROM tab1 AS cor0
----
-10358
-13781
-27597

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8212
SELECT - MAX( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8212
SELECT - MAX ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8213
SELECT DISTINCT + + COUNT( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8213
SELECT DISTINCT + + COUNT ( * ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - col0
----

query II rowsort
SELECT - ( col2 ) AS col0, 62 AS col2 FROM tab2
----
-23
62
-40
62
-58
62

query I rowsort
SELECT + 91 * - col1 * + - col0 + 23 AS col1 FROM tab2 AS cor0
----
213509
448471
457298

query I rowsort
SELECT DISTINCT col1 + 55 FROM tab1
----
102
60
69

query I rowsort
SELECT DISTINCT - 51 AS col2 FROM tab1, tab2 cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 62 IS NULL
----

query I rowsort
SELECT ALL col1 - 16 + + col2 AS col1 FROM tab0
----
112
15
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8221
SELECT + CAST( NULL AS SIGNED ) + - 91 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8221
SELECT + CAST ( NULL AS INTEGER ) + - 91 col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 22 + - col1 FROM tab2
----
-29
-45
-55

query I rowsort
SELECT - col2 * + col0 * + 52 FROM tab0 AS cor0
----
-36660
-45240
-499356

query I rowsort
SELECT ALL - + 31 * 35 - + 10 + + col0 + 93 - - - col1 * + 65 AS col0 FROM tab1 AS cor0
----
-1242
-1861
-3966

onlyif mysql # aggregate syntax: 
query I rowsort label-8225
SELECT DISTINCT - MAX( 30 ) AS col1 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-8225
SELECT DISTINCT - MAX ( 30 ) AS col1 FROM tab0 AS cor0
----
-30

query II rowsort
SELECT + + col2, col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT - ( col0 ) - - - 37 AS col1 FROM tab0 AS cor0
----
-124
-134
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-8228
SELECT col1 DIV - 56 - + col2 AS col0 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8228
SELECT col1 / - 56 - + col2 AS col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL - 60 * + 43 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 13575704dd9920a7160592a42349ee98

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 ) + ( + col1 ) BETWEEN + col0 AND ( + - col1 ) * - 58
----

query I rowsort
SELECT DISTINCT col1 - 7 AS col0 FROM tab1
----
-2
40
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
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-8232
SELECT DISTINCT - - COUNT ( * ) col2 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8233
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8233
SELECT DISTINCT + - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT col1 AS col1, + col2 AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8235
SELECT + - COUNT( + col0 ) * - 9 + - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8235
SELECT + - COUNT ( + col0 ) * - 9 + - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
30

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col0 AND NULL
----

query I rowsort
SELECT + ( - + col0 ) AS col2 FROM tab2
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 - + col2 - - 87 + col0 + + - col0 col0 FROM tab2 WHERE NOT + col1 = NULL
----

query I rowsort
SELECT DISTINCT + - 51 * - col2 AS col1 FROM tab2 AS cor0
----
1173
2040
2958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 93 + - - 52 col1 FROM tab0
----
145
145
145

query I rowsort
SELECT DISTINCT - 10 * - 71 * + + col1 * - col2 AS col2 FROM tab2
----
-2186800
-2759060
-832830

query II rowsort
SELECT ALL + col1, col0 + - 73 FROM tab1
----
14
-22
47
18
5
12

query I rowsort
SELECT DISTINCT + col0 * ( - - col2 ) FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8244
SELECT COUNT( * ) + 30 AS col2 FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-8244
SELECT COUNT ( * ) + 30 AS col2 FROM tab2 AS cor0
----
33

query II rowsort
SELECT DISTINCT col1 AS col0, col0 AS col1 FROM tab0 AS cor0
----
1
97
21
87
81
15

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 59 / + col2 * + col2 < NULL
----

query I rowsort
SELECT ALL + 88 + + col2 AS col1 FROM tab0
----
135
187
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8248
SELECT ALL + 82 + + 21 - + - COUNT( DISTINCT - 5 ) + + MAX( + 15 ) - 13 - + + COUNT( * ) * + - 64 + + 28 DIV + 12 FROM tab2
----
300

skipif mysql # not compatible
query I rowsort label-8248
SELECT ALL + 82 + + 21 - + - COUNT ( DISTINCT - 5 ) + + MAX ( + 15 ) - 13 - + + COUNT ( * ) * + - 64 + + 28 / + 12 FROM tab2
----
300

query II rowsort
SELECT ALL col1 + - + 51 AS col1, + ( + 39 ) - + 68 AS col2 FROM tab2
----
0
-29
16
-29
26
-29

query I rowsort
SELECT + 63 - - - col1 FROM tab2
----
-14
-4
12

query II rowsort
SELECT + col2 - col1, col0 FROM tab2
----
-28
46
-37
64
-9
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 90 - - 72 col0, col1 AS col2 FROM tab0
----
-18
1
-18
21
-18
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8253
SELECT ALL MAX( + col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8253
SELECT ALL MAX ( + col1 ) FROM tab2
----
77

query I rowsort
SELECT 7 + - + col2 FROM tab2
----
-16
-33
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-8255
SELECT DISTINCT ( - col2 ) DIV - col0 * col2 - - - 17 FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-8255
SELECT DISTINCT ( - col2 ) / - col0 * col2 - - - 17 FROM tab2 AS cor0
----
-17

query I rowsort
SELECT + 18 + - col2 AS col2 FROM tab1 AS cor0
----
-41
-50
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8257
SELECT DISTINCT - MIN( - CAST( - - CAST( + col0 AS SIGNED ) AS SIGNED ) ) col0, + COUNT( * ) FROM tab0 AS cor0
----
97
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8257
SELECT DISTINCT - MIN ( - CAST ( - - CAST ( + col0 AS INTEGER ) AS INTEGER ) ) col0, + COUNT ( * ) FROM tab0 AS cor0
----
97
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8258
SELECT COUNT( col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8258
SELECT COUNT ( col1 ) AS col2 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8259
SELECT DISTINCT CAST( + - MAX( - - 51 ) AS SIGNED ) DIV - - 34 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8259
SELECT DISTINCT CAST ( + - MAX ( - - 51 ) AS INTEGER ) / - - 34 AS col0 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8260
SELECT ALL + COUNT( col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8260
SELECT ALL + COUNT ( col2 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8261
SELECT ALL COUNT( ALL col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL COUNT ( ALL col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8262
SELECT - CAST( - + 75 AS SIGNED ) * - 37 - col1 AS col2 FROM tab2 AS cor0
----
-2826
-2842
-2852

skipif mysql # not compatible
query I rowsort label-8262
SELECT - CAST ( - + 75 AS INTEGER ) * - 37 - col1 AS col2 FROM tab2 AS cor0
----
-2826
-2842
-2852

query I rowsort
SELECT 72 * + 49 AS col2 FROM tab2 AS cor0
----
3528
3528
3528

query I rowsort
SELECT DISTINCT + ( - - col1 ) FROM tab1
----
14
47
5

query I rowsort
SELECT + 70 * - col2 FROM tab1
----
-4130
-4760
-6720

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8266
SELECT COUNT( * ) DIV - 44 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8266
SELECT COUNT ( * ) / - 44 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8267
SELECT DISTINCT - COUNT( * ), 20 * 4 AS col1 FROM tab0
----
-3
80

skipif mysql # not compatible
query II rowsort label-8267
SELECT DISTINCT - COUNT ( * ), 20 * 4 AS col1 FROM tab0
----
-3
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8269
SELECT COUNT( * ) + + 8 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-8269
SELECT COUNT ( * ) + + 8 FROM tab2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8270
SELECT ALL + ( - SUM( ALL - 5 ) ) AS col2 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL + ( - SUM ( ALL - 5 ) ) AS col2 FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-8271
SELECT DISTINCT 49 col1, COUNT( * ) FROM tab2 cor0
----
49
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8271
SELECT DISTINCT 49 col1, COUNT ( * ) FROM tab2 cor0
----
49
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8272
SELECT ALL - COUNT( * ) AS col0, MIN( - 39 ) FROM tab0 AS cor0
----
-3
-39

skipif mysql # not compatible
query II rowsort label-8272
SELECT ALL - COUNT ( * ) AS col0, MIN ( - 39 ) FROM tab0 AS cor0
----
-3
-39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8273
SELECT * FROM tab1 AS cor0 WHERE NOT + 75 + + CAST( NULL AS SIGNED ) < col1
----

skipif mysql # not compatible
query III rowsort label-8273
SELECT * FROM tab1 AS cor0 WHERE NOT + 75 + + CAST ( NULL AS INTEGER ) < col1
----

query II rowsort
SELECT - col1, col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8275
SELECT ALL COUNT( * ) + - - ( 2 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-8275
SELECT ALL COUNT ( * ) + - - ( 2 ) AS col1 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8276
SELECT SUM( 53 ) FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-8276
SELECT SUM ( 53 ) FROM tab2
----
159

onlyif mysql # DIV for integer division: 
query II rowsort label-8277
SELECT + col2 * + - 80 AS col1, + col1 DIV + - col2 FROM tab2
----
-1840
-2
-3200
-1
-4640
-1

skipif mysql # not compatible
query II rowsort label-8277
SELECT + col2 * + - 80 AS col1, + col1 / + - col2 FROM tab2
----
-1840
-2
-3200
-1
-4640
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-8278
SELECT ALL - 55 DIV - col0 AS col2, 37 AS col0 FROM tab0 WHERE NOT + 95 * + col1 + + col2 IS NULL
----
0
37
0
37
3
37

skipif mysql # not compatible
query II rowsort label-8278
SELECT ALL - 55 / - col0 AS col2, 37 AS col0 FROM tab0 WHERE NOT + 95 * + col1 + + col2 IS NULL
----
0
37
0
37
3
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8279
SELECT + - CAST( NULL AS SIGNED ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8279
SELECT + - CAST ( NULL AS INTEGER ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT + - col0 + + col1, ( + col1 ) FROM tab0 AS cor0
----
-66
21
-96
1
66
81

query I rowsort
SELECT DISTINCT - 39 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab1 cor0 WHERE col0 BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT - + SUM( col0 ) AS col1 FROM tab0 AS cor0 WHERE col2 * + + col1 * - col0 + - col2 + col1 > - 84
----
NULL

skipif mysql # not compatible
query I rowsort label-8283
SELECT - + SUM ( col0 ) AS col1 FROM tab0 AS cor0 WHERE col2 * + + col1 * - col0 + - col2 + col1 > - 84
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 46 col1 FROM tab1
----
105
114
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8285
SELECT ( - - 91 ) + - CAST( NULL AS SIGNED ) * + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8285
SELECT ( - - 91 ) + - CAST ( NULL AS INTEGER ) * + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8286
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) - + - CAST( + COUNT( ALL - col0 ) AS SIGNED ) * - COUNT( * ) FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-8286
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) - + - CAST ( + COUNT ( ALL - col0 ) AS INTEGER ) * - COUNT ( * ) FROM tab0
----
-8

query I rowsort
SELECT ALL + ( - col0 ) FROM tab2 WHERE - + col2 >= NULL
----

query I rowsort
SELECT ALL - col1 + + - 35 AS col0 FROM tab0
----
-116
-36
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT ALL - COUNT( * ) - + - COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8289
SELECT ALL - COUNT ( * ) - + - COUNT ( * ) AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL col2 - + 38 FROM tab1
----
21
30
58

query III rowsort
SELECT * FROM tab1 WHERE ( + + 16 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8292
SELECT ALL + col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8292
SELECT ALL + col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8293
SELECT col0 DIV + col2 - - 47 FROM tab0 AS cor0
----
47
47
55

skipif mysql # not compatible
query I rowsort label-8293
SELECT col0 / + col2 - - 47 FROM tab0 AS cor0
----
47
47
55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8294
SELECT DISTINCT CAST( NULL AS SIGNED ), 10 AS col2 FROM tab2 AS cor0
----
NULL
10

skipif mysql # not compatible
query II rowsort label-8294
SELECT DISTINCT CAST ( NULL AS INTEGER ), 10 AS col2 FROM tab2 AS cor0
----
NULL
10

query I rowsort
SELECT ALL + col2 * + + col1 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT - - COUNT( * ) * - - 46 + + 74 FROM tab1 AS cor0
----
212

skipif mysql # not compatible
query I rowsort label-8296
SELECT - - COUNT ( * ) * - - 46 + + 74 FROM tab1 AS cor0
----
212

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL < 38 )
----

query I rowsort
SELECT 90 * + + col1 + + col2 FROM tab1 AS cor0
----
1356
4298
509

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 79 col1 FROM tab0 AS cor0
----
-79
-79
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT + + SUM( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8300
SELECT + + SUM ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
195

query I rowsort
SELECT - 57 AS col2 FROM tab0 cor0
----
-57
-57
-57

query I rowsort
SELECT DISTINCT + - 86 * - col2 * + 84 * - col1 FROM tab0 AS cor0
----
-1517040
-27501768
-715176

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT + MAX( ( col1 ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8304
SELECT + MAX ( ( col1 ) ) FROM tab0 AS cor0
----
81

query I rowsort
SELECT ALL + + 89 AS col0 FROM tab2 cor0
----
89
89
89

onlyif mysql # DIV for integer division: 
query II rowsort label-8306
SELECT DISTINCT - col0 DIV + ( + col2 ) col2, col1 FROM tab2
----
-1
67
-1
77
-2
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8306
SELECT DISTINCT - col0 / + ( + col2 ) col2, col1 FROM tab2
----
-1
67
-1
77
-2
51

query I rowsort
SELECT DISTINCT + 4 * + - col0 * - 94 + + col2 AS col0 FROM tab2
----
17319
24104
28258

query II rowsort
SELECT - 60 AS col1, col2 FROM tab0
----
-60
10
-60
47
-60
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT 0 * - COUNT( * ) * + 63 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8309
SELECT 0 * - COUNT ( * ) * + 63 AS col0 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, - col2 - + 33 + + - 68 FROM tab0 AS cor0
----
15
-148
87
-111
97
-200

query I rowsort
SELECT - col0 + + 76 FROM tab0 WHERE NULL IS NULL
----
-11
-21
61

query I rowsort
SELECT 5 * + col1 + 19 FROM tab2 cor0
----
274
354
404

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE col1 + ( + col0 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 17 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8314
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 17 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT ALL SUM( - - 24 ) AS col0 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-8315
SELECT ALL SUM ( - - 24 ) AS col0 FROM tab2 AS cor0
----
72

query II rowsort
SELECT DISTINCT col1, 47 AS col2 FROM tab2 AS cor0
----
51
47
67
47
77
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8317
SELECT ALL - 34 * - - CAST( - - col0 AS SIGNED ) + + CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-1785
-2975
-3185

skipif mysql # not compatible
query I rowsort label-8317
SELECT ALL - 34 * - - CAST ( - - col0 AS INTEGER ) + + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-1785
-2975
-3185

query I rowsort
SELECT DISTINCT col1 * + 49 AS col0 FROM tab1 AS cor0
----
2303
245
686

onlyif mysql # aggregate syntax: 
query I rowsort label-8319
SELECT ALL COUNT( * ) * ( - + COUNT( + col2 ) ) + + + 69 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
69

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL COUNT ( * ) * ( - + COUNT ( + col2 ) ) + + + 69 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT ALL + 64 * - - COUNT( * ) AS col0 FROM tab1 cor0
----
192

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL + 64 * - - COUNT ( * ) AS col0 FROM tab1 cor0
----
192

query I rowsort
SELECT DISTINCT col1 * 81 - 4 FROM tab0
----
1697
6557
77

query I rowsort
SELECT DISTINCT col1 + - 4 AS col2 FROM tab1
----
1
10
43

query I rowsort
SELECT ALL + 4 - - 81 AS col1 FROM tab0
----
85
85
85

query I rowsort
SELECT - 51 + - col1 * + col0 AS col0 FROM tab0
----
-1266
-148
-1878

query II rowsort
SELECT + col1 * + + 80 + col0 AS col1, col0 FROM tab2
----
4126
46
5435
75
6224
64

query I rowsort
SELECT ALL - col1 * - ( ( - - col1 ) ) - col1 AS col2 FROM tab0
----
0
420
6480

onlyif mysql # aggregate syntax: 
query I rowsort label-8327
SELECT ALL - ( + - 95 ) * + COUNT( * ) FROM tab2 cor0
----
285

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL - ( + - 95 ) * + COUNT ( * ) FROM tab2 cor0
----
285

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT DISTINCT COUNT( - + col2 ) * 94 AS col2 FROM tab1 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-8328
SELECT DISTINCT COUNT ( - + col2 ) * 94 AS col2 FROM tab1 AS cor0
----
282

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 * + 96 col0 FROM tab2 cor0
----
4416
6144
7200

query I rowsort
SELECT + 70 * - col1 + - + 41 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col1 / - + col1 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - col1 * col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - + 79 * + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT ALL - - MIN( - - col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8333
SELECT ALL - - MIN ( - - col2 ) FROM tab1 AS cor0
----
59

query II rowsort
SELECT ALL + - col2, + col0 FROM tab2 AS cor0 WHERE 62 * col0 IS NOT NULL
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8335
SELECT ALL COUNT( ALL + 48 ) + 14, COUNT( * ) AS col2 FROM tab2 AS cor0
----
17
3

skipif mysql # not compatible
query II rowsort label-8335
SELECT ALL COUNT ( ALL + 48 ) + 14, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
17
3

query I rowsort
SELECT DISTINCT + 6 AS col0 FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8337
SELECT * FROM tab1 WHERE NOT CAST( col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8337
SELECT * FROM tab1 WHERE NOT CAST ( col1 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * 94 * + col0 + ( col1 ) AS col1 FROM tab1
----
-244480
-679145
-778367

query I rowsort
SELECT 80 + col1 FROM tab0
----
101
161
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT + - COUNT( DISTINCT - - col1 ) FROM tab0 WHERE + - col0 < - + col2
----
-1

skipif mysql # not compatible
query I rowsort label-8340
SELECT + - COUNT ( DISTINCT - - col1 ) FROM tab0 WHERE + - col0 < - + col2
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 11 NOT BETWEEN NULL AND col0 + + + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8342
SELECT + - 15 DIV + + 48 col2, - ( + col1 ) * - col1 AS col1 FROM tab2 AS cor0
----
0
2601
0
4489
0
5929

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8342
SELECT + - 15 / + + 48 col2, - ( + col1 ) * - col1 AS col1 FROM tab2 AS cor0
----
0
2601
0
4489
0
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT DISTINCT SUM( DISTINCT col2 ) + 36 AS col2 FROM tab1 AS cor0
----
259

skipif mysql # not compatible
query I rowsort label-8343
SELECT DISTINCT SUM ( DISTINCT col2 ) + 36 AS col2 FROM tab1 AS cor0
----
259

query I rowsort
SELECT DISTINCT col0 + - col2 * + col2 AS col2 FROM tab2 AS cor0 WHERE NOT 82 IS NOT NULL
----

query I rowsort
SELECT ALL ( + 27 ) AS col2 FROM tab0
----
27
27
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

onlyif mysql # aggregate syntax: 
query I rowsort label-8347
SELECT ALL - SUM( ALL - + 2 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
18

skipif mysql # not compatible
query I rowsort label-8347
SELECT ALL - SUM ( ALL - + 2 ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
18

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col1 ) >= + col0 * - 86 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT ALL 6 - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL 6 - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 + + 33 AND + + col1 * + + ( + ( - col2 ) ) * - col1 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8351
SELECT ALL - col2 DIV - col0 + - 34 AS col0 FROM tab2 AS cor0
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-8351
SELECT ALL - col2 / - col0 + - 34 AS col0 FROM tab2 AS cor0
----
-34
-34
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-8352
SELECT + + col1 + - - col0 DIV - + col1 FROM tab1 AS cor0
----
-12
11
46

skipif mysql # not compatible
query I rowsort label-8352
SELECT + + col1 + - - col0 / - + col1 FROM tab1 AS cor0
----
-12
11
46

query I rowsort
SELECT + ( - 60 ) * + col0 * + - 63 + - - col1 + 70 + + col2 FROM tab1 AS cor0
----
192960
321434
344165

query I rowsort
SELECT DISTINCT + - 67 AS col1 FROM tab1 AS cor0
----
-67

query I rowsort
SELECT ALL 71 * + col0 + col1 FROM tab0
----
1146
6198
6888

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + - col1 - - col0 * 53 )
----

query I rowsort
SELECT - 93 * + col0 AS col0 FROM tab1
----
-4743
-7905
-8463

query I rowsort
SELECT ALL + + 11 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
11
11
11

query I rowsort
SELECT ALL + col1 * - - col1 * + 66 FROM tab0
----
29106
433026
66

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= - col1 * col0
----

query I rowsort
SELECT + 27 * + col0 AS col1 FROM tab0 cor0
----
2349
2619
405

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - ( - + col2 ) + + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8363
SELECT DISTINCT - 83 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-8363
SELECT DISTINCT - 83 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-249

onlyif mysql # DIV for integer division: 
query I rowsort label-8364
SELECT col0 + + 63 DIV - col1 + + col2 FROM tab1 cor0
----
132
143
158

skipif mysql # not compatible
query I rowsort label-8364
SELECT col0 + + 63 / - col1 + + col2 FROM tab1 cor0
----
132
143
158

query II rowsort
SELECT DISTINCT + col0 * col0 - col2, - 93 - - 86 * + - col2 AS col2 FROM tab1 AS cor0
----
2505
-8349
7166
-5167
8213
-5941

onlyif mysql # aggregate syntax: 
query II rowsort label-8366
SELECT ALL SUM( + - col1 ) col1, - COUNT( * ) FROM tab2 AS cor0
----
-195
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8366
SELECT ALL SUM ( + - col1 ) col1, - COUNT ( * ) FROM tab2 AS cor0
----
-195
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT ALL COUNT( * ) * - 46 FROM tab0 AS cor0 WHERE NOT + 43 <> - col2
----
0

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL COUNT ( * ) * - 46 FROM tab0 AS cor0 WHERE NOT + 43 <> - col2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8369
SELECT DISTINCT 72 * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8369
SELECT DISTINCT 72 * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT + ( MAX( DISTINCT + col1 ) ) + - MIN( + col2 ) AS col1 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-8370
SELECT + ( MAX ( DISTINCT + col1 ) ) + - MIN ( + col2 ) AS col1 FROM tab0 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT ALL - 8 + SUM( DISTINCT + + col2 ) AS col2 FROM tab0 AS cor0
----
148

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL - 8 + SUM ( DISTINCT + + col2 ) AS col2 FROM tab0 AS cor0
----
148

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT ALL + - COUNT( * ) FROM tab0 WHERE - 11 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL + - COUNT ( * ) FROM tab0 WHERE - 11 IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE + col0 * - 79 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 48 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8375
SELECT DISTINCT 53 * + COUNT( * ) FROM tab2
----
159

skipif mysql # not compatible
query I rowsort label-8375
SELECT DISTINCT 53 * + COUNT ( * ) FROM tab2
----
159

query II rowsort
SELECT + col1 AS col1, 4 FROM tab0 AS cor0
----
1
4
21
4
81
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT ALL ( + 7 ) * COUNT( * ) * - 24 - + 34 FROM tab1 AS cor0
----
-538

skipif mysql # not compatible
query I rowsort label-8377
SELECT ALL ( + 7 ) * COUNT ( * ) * - 24 - + 34 FROM tab1 AS cor0
----
-538

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * + 74 BETWEEN + 63 AND + 93
----

query I rowsort
SELECT - col0 + + col1 * - + 65 * - + 50 AS col1 FROM tab2 cor0
----
165704
217675
250186

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN + 20 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT - COUNT( * ) * + MAX( ALL col0 ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-8381
SELECT - COUNT ( * ) * + MAX ( ALL col0 ) FROM tab2
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT ALL + MAX( 5 ) * + 35 FROM tab2
----
175

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL + MAX ( 5 ) * + 35 FROM tab2
----
175

query I rowsort
SELECT DISTINCT col1 * 43 AS col2 FROM tab2
----
2193
2881
3311

query I rowsort
SELECT ( - col1 ) + - 8 FROM tab0
----
-29
-89
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8385
SELECT ALL - CAST( + 97 AS SIGNED ) * + col0 col2 FROM tab2
----
-4462
-6208
-7275

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8385
SELECT ALL - CAST ( + 97 AS INTEGER ) * + col0 col2 FROM tab2
----
-4462
-6208
-7275

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 ) NOT IN ( - col0 )
----

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE NOT + col0 / col2 IS NULL
----
51
85
91

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN col2 * col2 AND ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8389
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8389
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT - 93 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT - 62 + COUNT( * ) * + 54 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-8391
SELECT - 62 + COUNT ( * ) * + 54 FROM tab0
----
100

query I rowsort
SELECT + ( 46 ) AS col1 FROM tab2
----
46
46
46

query I rowsort
SELECT DISTINCT 45 * col2 FROM tab0 WHERE NULL NOT IN ( + col0 )
----

query I rowsort
SELECT ( col2 ) AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT + COUNT( * ) col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8395
SELECT + COUNT ( * ) col2 FROM tab2 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - ( - 29 ) AS col0 FROM tab1
----
29
29
29

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 + + col1 / - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 - 33 FROM tab2
----
18
34
44

query I rowsort
SELECT ALL - ( 40 ) FROM tab2
----
-40
-40
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 + + col1 col1 FROM tab1
----
12
21
54

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 77 NOT IN ( + 99 + 58 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NULL <> col2 + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) <= - 0
----

query I rowsort
SELECT ALL ( 74 ) FROM tab1 AS cor0
----
74
74
74

query I rowsort
SELECT 86 * col2 + col2 FROM tab0 AS cor0 WHERE NOT col2 * 96 IS NULL
----
4089
8613
870

query I rowsort
SELECT ALL 86 * - col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 IN ( 2 / - col2 )
----
-1290
-7482
-8342

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 88 * col1 BETWEEN col0 / 68 AND 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8408
SELECT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8408
SELECT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE NOT col2 > ( + col1 ) + col1
----
47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 * + col0 - ( col0 ) <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8411
SELECT - - 86 + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8411
SELECT - - 86 + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE ( + col0 * + 64 ) NOT IN ( ( - col0 ) )
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8414
SELECT - 34 + - COUNT( * ) AS col1 FROM tab0 cor0
----
-37

skipif mysql # not compatible
query I rowsort label-8414
SELECT - 34 + - COUNT ( * ) AS col1 FROM tab0 cor0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8415
SELECT + 14 + - CAST( col1 AS SIGNED ) FROM tab2
----
-37
-53
-63

skipif mysql # not compatible
query I rowsort label-8415
SELECT + 14 + - CAST ( col1 AS INTEGER ) FROM tab2
----
-37
-53
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8416
SELECT + ( + COUNT( * ) ) + 25 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-8416
SELECT + ( + COUNT ( * ) ) + 25 FROM tab2
----
28

query I rowsort
SELECT DISTINCT col0 * - col0 + col0 AS col2 FROM tab0
----
-210
-7482
-9312

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8418
SELECT - COUNT( * ) + + SUM( DISTINCT col2 ) DIV 45 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8418
SELECT - COUNT ( * ) + + SUM ( DISTINCT col2 ) / 45 FROM tab0
----
0

query I rowsort
SELECT ALL - 15 + col2 + col2 FROM tab0
----
183
5
79

onlyif mysql # DIV for integer division: 
query I rowsort label-8420
SELECT 3 + + + col0 DIV + col2 FROM tab1
----
3
4
4

skipif mysql # not compatible
query I rowsort label-8420
SELECT 3 + + + col0 / + col2 FROM tab1
----
3
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT DISTINCT COUNT( * ) + + COUNT( * ) + 41 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) + 41 FROM tab2
----
47

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 75 * 6 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8423
SELECT DISTINCT - ( + col2 ) * - CAST( col2 AS SIGNED ) FROM tab1
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-8423
SELECT DISTINCT - ( + col2 ) * - CAST ( col2 AS INTEGER ) FROM tab1
----
3481
4624
9216

query III rowsort
SELECT * FROM tab0 WHERE 0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 + + col2 FROM tab2 WHERE ( col1 ) NOT IN ( 27 )
----
104
133
69

query I rowsort
SELECT col2 * col1 FROM tab1 WHERE ( col0 + col1 * + col2 ) NOT IN ( - col2 * - col0 )
----
1344
295
3196

query I rowsort
SELECT DISTINCT 39 * - col2 + + 5 FROM tab1
----
-2296
-2647
-3739

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN ( NULL ) AND 67
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8429
SELECT DISTINCT + MAX( col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-8429
SELECT DISTINCT + MAX ( col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8430
SELECT + col1 DIV - 58 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8430
SELECT + col1 / - 58 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL - col1 * 86 + col0 * - col2 AS col2 FROM tab1 cor0
----
-10230
-5445
-6100

query III rowsort
SELECT * FROM tab2 WHERE ( NOT NULL <= NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) < ( + ( + col2 ) )
----

query I rowsort
SELECT DISTINCT - col0 - + + col0 * - col0 FROM tab0
----
210
7482
9312

query I rowsort
SELECT DISTINCT - col0 * - col2 AS col1 FROM tab0 WHERE ( NOT col1 * col0 BETWEEN ( col1 ) AND - col2 * col0 )
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8437
SELECT DISTINCT - col0, CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-8437
SELECT DISTINCT - col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
-15
NULL
-87
NULL
-97
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8438
SELECT - - col2 AS col1, + 49 DIV + + col0 AS col2 FROM tab1 AS cor0
----
59
0
68
0
96
0

skipif mysql # not compatible
query II rowsort label-8438
SELECT - - col2 AS col1, + 49 / + + col0 AS col2 FROM tab1 AS cor0
----
59
0
68
0
96
0

query I rowsort
SELECT + - ( - AVG ( - 20 ) ) FROM tab2 AS cor0 WHERE NOT NULL > col1
----
NULL

query II rowsort
SELECT - - col1 AS col2, - col2 FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8441
SELECT ALL CAST( NULL AS SIGNED ) + COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT ( + col1 + col2 + + ( col0 + + col1 ) ) <> col2 + 74 * col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8441
SELECT ALL CAST ( NULL AS INTEGER ) + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT ( + col1 + col2 + + ( col0 + + col1 ) ) <> col2 + 74 * col2
----
NULL

query I rowsort
SELECT ALL + col0 * + - col0 + - + 39 FROM tab1 AS cor0
----
-2640
-7264
-8320

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT MAX( - 64 ) FROM tab2 cor0
----
-64

skipif mysql # not compatible
query I rowsort label-8443
SELECT MAX ( - 64 ) FROM tab2 cor0
----
-64

query I rowsort
SELECT ALL + + ( + 19 ) FROM tab1 AS cor0
----
19
19
19

query II rowsort
SELECT - 94 AS col2, + col1 * 78 * 17 FROM tab0 AS cor0
----
-94
107406
-94
1326
-94
27846

query III rowsort
SELECT * FROM tab1 WHERE NOT + 64 = ( 72 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) = ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT ( - COUNT( * ) ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8448
SELECT ( - COUNT ( * ) ) col1 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-8449
SELECT DISTINCT - ( + 28 ) AS col1, MAX( - - col0 ) + ( - MAX( ALL - col2 ) ) FROM tab0
----
-28
107

skipif mysql # not compatible
query II rowsort label-8449
SELECT DISTINCT - ( + 28 ) AS col1, MAX ( - - col0 ) + ( - MAX ( ALL - col2 ) ) FROM tab0
----
-28
107

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 6 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8451
SELECT * FROM tab2 WHERE NOT - + col1 NOT BETWEEN CAST( NULL AS SIGNED ) + col0 AND col2 * 20
----

skipif mysql # not compatible
query III rowsort label-8451
SELECT * FROM tab2 WHERE NOT - + col1 NOT BETWEEN CAST ( NULL AS INTEGER ) + col0 AND col2 * 20
----

query I rowsort
SELECT ( - 82 ) FROM tab2 WHERE + col0 * - col0 * - col1 >= NULL AND NOT ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8453
SELECT ALL - 82 * - ( - + COUNT( * ) ) AS col1 FROM tab2
----
-246

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL - 82 * - ( - + COUNT ( * ) ) AS col1 FROM tab2
----
-246

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT ( - col0 + + + col0 ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-8454
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT ( - col0 + + + col0 ) > NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8455
SELECT DISTINCT COUNT( * ) DIV COUNT( * ) AS col0, - COUNT( * ) FROM tab1
----
1
-3

skipif mysql # not compatible
query II rowsort label-8455
SELECT DISTINCT COUNT ( * ) / COUNT ( * ) AS col0, - COUNT ( * ) FROM tab1
----
1
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 76 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8457
SELECT DISTINCT + col2 DIV + CAST( col0 AS SIGNED ) AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-8457
SELECT DISTINCT + col2 / + CAST ( col0 AS INTEGER ) AS col2 FROM tab1
----
0
1

query I rowsort
SELECT col2 * - - ( + col2 ) AS col2 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT DISTINCT - ( + 59 ) AS col0 FROM tab0 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 90 col1 FROM tab2 cor0
----
-90
-90
-90

query I rowsort
SELECT + 72 * ( - col1 ) AS col0 FROM tab2 AS cor0
----
-3672
-4824
-5544

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8463
SELECT DISTINCT col0 * col1 DIV + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
62
7

skipif mysql # not compatible
query I rowsort label-8463
SELECT DISTINCT col0 * col1 / + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
62
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT DISTINCT + SUM( ALL 69 ) FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-8464
SELECT DISTINCT + SUM ( ALL 69 ) FROM tab0 AS cor0
----
207

query I rowsort
SELECT 33 + + col1 FROM tab0 AS cor0
----
114
34
54

onlyif mysql # DIV for integer division: 
query I rowsort label-8466
SELECT - 81 DIV - 50 + + 97 + + ( + 7 ) + col0 FROM tab1 AS cor0
----
156
190
196

skipif mysql # not compatible
query I rowsort label-8466
SELECT - 81 / - 50 + + 97 + + ( + 7 ) + col0 FROM tab1 AS cor0
----
156
190
196

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-8468
SELECT + - 38 DIV + - 69 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8468
SELECT + - 38 / + - 69 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - + 54 * col2 AS col1 FROM tab0 AS cor0
----
-2538
-5346
-540

query I rowsort
SELECT DISTINCT + - col1 + - 45 FROM tab0 cor0
----
-126
-46
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col1 FROM tab2 cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT DISTINCT SUM( - 21 ) * 40 - + ( + - 47 ) AS col1 FROM tab0
----
-2473

skipif mysql # not compatible
query I rowsort label-8472
SELECT DISTINCT SUM ( - 21 ) * 40 - + ( + - 47 ) AS col1 FROM tab0
----
-2473

query I rowsort
SELECT 94 * + col1 - col0 FROM tab1
----
1265
385
4327

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col0 ) col0 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT 34 + 83 - + col0 AS col0 FROM tab2 AS cor0
----
42
53
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8476
SELECT ALL - - CAST( NULL AS SIGNED ) + - + MAX( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL - - CAST ( NULL AS INTEGER ) + - + MAX ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 54 + - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 6 col1 FROM tab0 AS cor0
----
103
21
93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8479
SELECT DISTINCT + COUNT( * ) DIV + + 44 * + COUNT( * ) + + 85 AS col0 FROM tab0
----
85

skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT + COUNT ( * ) / + + 44 * + COUNT ( * ) + + 85 AS col0 FROM tab0
----
85

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( + + col2 ) AND ( - col2 )
----

query I rowsort
SELECT - + 36 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # aggregate syntax: 
query I rowsort label-8482
SELECT DISTINCT COUNT( ALL + 14 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8482
SELECT DISTINCT COUNT ( ALL + 14 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( 27 ) IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8484
SELECT DISTINCT + COUNT( * ) * + + 37 FROM tab1 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-8484
SELECT DISTINCT + COUNT ( * ) * + + 37 FROM tab1 AS cor0
----
111

query I rowsort
SELECT ALL - ( - col1 ) * + col1 AS col0 FROM tab0 cor0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8486
SELECT DISTINCT + col1 * CAST( + col0 AS SIGNED ) col1, - col1 col2 FROM tab0 cor0
----
1215
-81
1827
-21
97
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8486
SELECT DISTINCT + col1 * CAST ( + col0 AS INTEGER ) col1, - col1 col2 FROM tab0 cor0
----
1215
-81
1827
-21
97
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 62 < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col1 )
----

query I rowsort
SELECT DISTINCT col1 * + + 10 + + col0 AS col0 FROM tab2 AS cor0
----
556
745
834

onlyif mysql # DIV for integer division: 
query I rowsort label-8490
SELECT DISTINCT - col1 DIV 92 DIV + - 57 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8490
SELECT DISTINCT - col1 / 92 / + - 57 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT ALL + COUNT( - col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8491
SELECT ALL + COUNT ( - col1 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8492
SELECT col2 * col1 * col1 / + col0 / - + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8492
SELECT col2 * col1 * col1 / + col0 / - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8493
SELECT DISTINCT 60 AS col0 FROM tab1 WHERE NOT + col2 + - - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8493
SELECT DISTINCT 60 AS col0 FROM tab1 WHERE NOT + col2 + - - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + 20 * - col1 AS col0 FROM tab1 AS cor0 WHERE ( col1 * - col1 * + col1 ) BETWEEN - col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= col1 * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 col0 FROM tab0 WHERE NOT + + col0 IS NULL
----
67
67
67

onlyif mysql # DIV for integer division: 
query I rowsort label-8497
SELECT ALL col0 * 11 DIV col1 AS col2 FROM tab2
----
12
9
9

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL col0 * 11 / col1 AS col2 FROM tab2
----
12
9
9

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 33 * - - 45 / - + 32 <> - - 70
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * 64 NOT BETWEEN - - 12 - + + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8500
SELECT ALL SUM( - col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8500
SELECT ALL SUM ( - col2 ) AS col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT - col0 + 13 * - + 45 - - 79 + + 35 * - - col2 * col0 AS col2 FROM tab0 AS cor0
----
24154
29857
335502

query I rowsort
SELECT col1 * + - col0 + 97 FROM tab0 AS cor0
----
-1118
-1730
0

query I rowsort
SELECT ( - col0 ) + col0 - + 36 + + + col1 * + 4 * - col1 AS col1 FROM tab2
----
-10440
-17992
-23752

onlyif mysql # aggregate syntax: 
query I rowsort label-8504
SELECT ALL 69 + - - COUNT( * ) FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-8504
SELECT ALL 69 + - - COUNT ( * ) FROM tab2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT 95 + - + COUNT( * ) AS col2 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-8505
SELECT 95 + - + COUNT ( * ) AS col2 FROM tab2
----
92

query I rowsort
SELECT col1 + + 64 FROM tab0
----
145
65
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 - - + ( - 18 ) col0 FROM tab2 AS cor0
----
28
46
57

query I rowsort
SELECT DISTINCT 60 - col2 FROM tab1 AS cor0
----
-36
-8
1

query I rowsort
SELECT ALL - + col2 + + + col0 + - col2 * + col2 AS col1 FROM tab0 AS cor0 WHERE NOT ( - + col2 + col2 * - 75 * - ( + 70 ) IS NOT NULL )
----

query I rowsort
SELECT - + col0 - - + col0 * + col0 FROM tab2 AS cor0
----
2070
4032
5550

query I rowsort
SELECT DISTINCT + + ( col1 ) FROM tab1 cor0 WHERE NOT col1 * - + 1 IS NOT NULL
----

query I rowsort
SELECT + - 33 - + col0 + - col2 AS col1 FROM tab1 AS cor0
----
-177
-180
-192

query I rowsort
SELECT DISTINCT - - col1 - 89 FROM tab0 WHERE col1 * - 28 < NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT + col0 BETWEEN col1 AND - 85
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8515
SELECT - col1, - col1 * CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-8515
SELECT - col1, - col1 * CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8516
SELECT - ( - COUNT( * ) ) * + + 73 FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-8516
SELECT - ( - COUNT ( * ) ) * + + 73 FROM tab1
----
219

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE NOT NULL BETWEEN col2 AND - col0
----

query I rowsort
SELECT DISTINCT + col2 * + 65 + + col0 AS col2 FROM tab2 AS cor0
----
1541
2664
3845

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - 26
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8520
SELECT - 25 AS col2, 68 DIV + - COUNT( * ) AS col0 FROM tab1 cor0
----
-25
-22

skipif mysql # not compatible
query II rowsort label-8520
SELECT - 25 AS col2, 68 / + - COUNT ( * ) AS col0 FROM tab1 cor0
----
-25
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col1 ) col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT DISTINCT - COUNT( * ) * + 29 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-8522
SELECT DISTINCT - COUNT ( * ) * + 29 FROM tab0 AS cor0
----
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 67 col2 FROM tab2 AS cor0
----
67
67
67

query I rowsort
SELECT DISTINCT - 53 FROM tab1, tab2 AS cor0
----
-53

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 = - + ( + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8526
SELECT CAST( NULL AS SIGNED ) / + 81 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8526
SELECT CAST ( NULL AS INTEGER ) / + 81 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 AS col1 FROM tab0 WHERE NOT ( col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT MAX( + + col2 ) AS col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-8528
SELECT MAX ( + + col2 ) AS col0 FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8529
SELECT - CAST( + + COUNT( * ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8529
SELECT - CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + col2 - + col0 AS col2 FROM tab2 AS cor0 WHERE + col2 + 24 - - 18 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT ALL - 89 + - SUM( + col2 ) + + 26 FROM tab1 AS cor0
----
-286

skipif mysql # not compatible
query I rowsort label-8531
SELECT ALL - 89 + - SUM ( + col2 ) + + 26 FROM tab1 AS cor0
----
-286

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE ( + col2 * col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT + - 96 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 79 * - col1 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT - SUM( DISTINCT + - col2 ) col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8535
SELECT - SUM ( DISTINCT + - col2 ) col1 FROM tab1 AS cor0
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 98 col2 FROM tab1 AS cor0
----
4998
8330
8918

onlyif mysql # aggregate syntax: 
query I rowsort label-8537
SELECT + 73 * - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-8537
SELECT + 73 * - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-219

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( NOT ( NULL ) IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8539
SELECT DISTINCT - + col1 DIV - + col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8539
SELECT DISTINCT - + col1 / - + col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT - col2 + - col0 + col2 + + 30 * - col0 FROM tab0 AS cor0
----
-2697
-3007
-465

onlyif mysql # DIV for integer division: 
query I rowsort label-8541
SELECT ALL - col0 DIV - col2 + - 60 FROM tab0
----
-52
-60
-60

skipif mysql # not compatible
query I rowsort label-8541
SELECT ALL - col0 / - col2 + - 60 FROM tab0
----
-52
-60
-60

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + + 38 ) + col2 IN ( + col2 * - col2 + + + col2 )
----

query I rowsort
SELECT - 52 - 9 + + col0 FROM tab0
----
-46
26
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT DISTINCT + SUM( + + ( + - 59 ) ) + - COUNT( * ) AS col2 FROM tab2
----
-180

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT + SUM ( + + ( + - 59 ) ) + - COUNT ( * ) AS col2 FROM tab2
----
-180

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 72 IS NULL
----

query II rowsort
SELECT 72 + col1, + 59 AS col2 FROM tab0
----
153
59
73
59
93
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8547
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8547
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NULL = NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8548
SELECT ALL col2 DIV + 35 + + 19 AS col2 FROM tab1
----
20
20
21

skipif mysql # not compatible
query I rowsort label-8548
SELECT ALL col2 / + 35 + + 19 AS col2 FROM tab1
----
20
20
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8549
SELECT DISTINCT + col2 - + col1, col1 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
21
NULL
54
NULL
82
NULL

skipif mysql # not compatible
query II rowsort label-8549
SELECT DISTINCT + col2 - + col1, col1 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
21
NULL
54
NULL
82
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 col0 FROM tab2 cor0 WHERE NOT col1 + - ( - 79 ) + col1 IS NULL
----
-86
-86
-86

query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT col0 + + + ( + col2 ) + + - ( col2 ) * + col2 + - 98 IS NULL
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - - col1 * 38 * + ( + + 23 ) col0 FROM tab1 AS cor0
----
171304
1930666
21850

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT ALL + + ( + SUM( ALL - + ( - col2 ) ) ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8553
SELECT ALL + + ( + SUM ( ALL - + ( - col2 ) ) ) AS col2 FROM tab1 AS cor0
----
223

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 83 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL - + col0, + col0 + + 57 + + col0 AS col2 FROM tab0 AS cor0
----
-15
87
-87
231
-97
251

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 51 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8557
SELECT - 96 FROM tab2 AS cor0 WHERE NOT CAST( - col0 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8557
SELECT - 96 FROM tab2 AS cor0 WHERE NOT CAST ( - col0 AS REAL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + + 5 + - - col1 col0 FROM tab0
----
105
133
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8559
SELECT ALL + - COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8559
SELECT ALL + - COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT col1 + + 40 AS col1 FROM tab2
----
107
117
91

query II rowsort
SELECT DISTINCT 73 AS col2, - 24 FROM tab1
----
73
-24

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + + ( + col2 ) * + col0 * - - col1 ) IN ( - 36 * - col0, 75 * col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8563
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8563
SELECT - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8564
SELECT * FROM tab1 WHERE NOT - 56 NOT BETWEEN - CAST( NULL AS SIGNED ) * - 49 + col1 * 79 * + col0 * col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8564
SELECT * FROM tab1 WHERE NOT - 56 NOT BETWEEN - CAST ( NULL AS INTEGER ) * - 49 + col1 * 79 * + col0 * col1 AND NULL
----

query I rowsort
SELECT ALL - - ( - + col2 ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT - + col1 FROM tab2 WHERE 32 + - - 52 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
23
40
58

query I rowsort
SELECT col0 * + 76 + + col1 FROM tab1 cor0
----
3890
6465
6963

query I rowsort
SELECT 43 * + col2 * - - 53 + - - col2 FROM tab1 AS cor0
----
134520
155040
218880

query I rowsort
SELECT + col2 + ( 68 ) AS col0 FROM tab1 cor0
----
127
136
164

query I rowsort
SELECT + col0 * - + col0 + - col2 FROM tab0 AS cor0
----
-272
-7579
-9508

query I rowsort
SELECT 36 + - 90 FROM tab2
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8573
SELECT SUM( ALL + col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-8573
SELECT SUM ( ALL + col2 ) AS col0 FROM tab1
----
223

query I rowsort
SELECT DISTINCT - 12 / + - 41 * 57 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8575
SELECT ALL COUNT( ALL + - col1 ) FROM tab1 WHERE - CAST( NULL AS DECIMAL ) * - col1 + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL COUNT ( ALL + - col1 ) FROM tab1 WHERE - CAST ( NULL AS REAL ) * - col1 + - col2 IS NOT NULL
----
0

query II rowsort
SELECT ALL - col1 - - 84 * col1 AS col0, - ( - - 14 ) AS col1 FROM tab1
----
1162
-14
3901
-14
415
-14

query III rowsort
SELECT * FROM tab2 WHERE NOT 76 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 IN ( - col1, + col1 * - - 46 * - col0 * + col0 + - col1 + + 7 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col0, col0 AS col1 FROM tab1 AS cor0
----
51
51
85
85
91
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8580
SELECT DISTINCT + - MAX( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8580
SELECT DISTINCT + - MAX ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8581
SELECT ALL - SUM( + + col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8581
SELECT ALL - SUM ( + + col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 52 col2, + col1 + - col2 col1 FROM tab0 AS cor0
----
-52
-98
-52
11
-52
34

onlyif mysql # DIV for integer division: 
query I rowsort label-8583
SELECT + col1 DIV - - 32 AS col2 FROM tab2 cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-8583
SELECT + col1 / - - 32 AS col2 FROM tab2 cor0
----
1
2
2

query I rowsort
SELECT ( + - ( + col0 ) ) * - - 20 FROM tab0
----
-1740
-1940
-300

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT ( 55 ) * + COUNT( * ) FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-8585
SELECT ( 55 ) * + COUNT ( * ) FROM tab1 AS cor0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT COUNT( - - 56 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8586
SELECT COUNT ( - - 56 ) AS col2 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 40 col2 FROM tab0 AS cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8588
SELECT ALL + - ( + + MIN( + col1 ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL + - ( + + MIN ( + col1 ) ) FROM tab1 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 48 + + col1, - col0 + - + col0 col0 FROM tab0 AS cor0 WHERE + 93 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8590
SELECT + MIN( - ( - col0 ) ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8590
SELECT + MIN ( - ( - col0 ) ) AS col0 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8591
SELECT ALL + + ( CAST( NULL AS SIGNED ) ), - 16 - + + col1 AS col1 FROM tab0 WHERE NOT - col0 IS NULL
----
NULL
-17
NULL
-37
NULL
-97

skipif mysql # not compatible
query II rowsort label-8591
SELECT ALL + + ( CAST ( NULL AS INTEGER ) ), - 16 - + + col1 AS col1 FROM tab0 WHERE NOT - col0 IS NULL
----
NULL
-17
NULL
-37
NULL
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8592
SELECT ALL * FROM tab0 WHERE ( col2 * + col0 * + 24 ) IN ( - 49 + - + col0, - col2 + - + col0 + + CAST( + ( 95 ) AS SIGNED ), + + col2 )
----

skipif mysql # not compatible
query III rowsort label-8592
SELECT ALL * FROM tab0 WHERE ( col2 * + col0 * + 24 ) IN ( - 49 + - + col0, - col2 + - + col0 + + CAST ( + ( 95 ) AS INTEGER ), + + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8593
SELECT * FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-8593
SELECT * FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 * - - 88 col0 FROM tab2
----
528
528
528

onlyif mysql # aggregate syntax: 
query I rowsort label-8595
SELECT DISTINCT MIN( + 9 ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8595
SELECT DISTINCT MIN ( + 9 ) AS col1 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8596
SELECT DISTINCT + 17 * + + COUNT( * ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT + 17 * + + COUNT ( * ) FROM tab1
----
51

query I rowsort
SELECT - 78 * - 88 AS col1 FROM tab2 AS cor0
----
6864
6864
6864

query I rowsort
SELECT + 88 * + col2 FROM tab1 AS cor0
----
5192
5984
8448

query I rowsort
SELECT + 92 + 71 FROM tab0 AS cor0
----
163
163
163

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT ALL + - SUM( ALL col1 ) + - ( - 92 ) AS col1 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-8600
SELECT ALL + - SUM ( ALL col1 ) + - ( - 92 ) AS col1 FROM tab0 AS cor0
----
-11

query I rowsort
SELECT DISTINCT 82 + col0 * 71 * col0 AS col1 FROM tab2 AS cor0
----
150318
290898
399457

onlyif mysql # aggregate syntax: 
query I rowsort label-8602
SELECT COUNT( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8602
SELECT COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT col0 + - - 79 FROM tab0
----
166
176
94

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + 12 + + - col1 AS col2, - col0 + + + col0 AS col1 FROM tab1
----
-2
0
-35
0
7
0

query III rowsort
SELECT ALL * FROM tab0 WHERE ( ( NULL ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 6 * - 61 FROM tab0
----
-366
-366
-366

query I rowsort
SELECT + col2 * + + col0 * - col1 AS col0 FROM tab1 AS cor0
----
-25075
-290836
-68544

query II rowsort
SELECT ALL - col0, + 48 AS col1 FROM tab0 AS cor0
----
-15
48
-87
48
-97
48

query I rowsort
SELECT - - 10 - + + col0 FROM tab2 AS cor0
----
-36
-54
-65

query I rowsort
SELECT DISTINCT + - col2 * - 96 FROM tab2 AS cor0
----
2208
3840
5568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 1 col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT ALL COUNT( * ) * ( + COUNT( * ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8613
SELECT ALL COUNT ( * ) * ( + COUNT ( * ) ) FROM tab2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8614
SELECT DISTINCT - 11 DIV + + col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8614
SELECT DISTINCT - 11 / + + col1 FROM tab2
----
0

query I rowsort
SELECT ALL + col2 * - 32 * - col0 * - ( + col2 ) AS col0 FROM tab2
----
-3276800
-778688
-8073600

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT MAX( 96 ) FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-8616
SELECT MAX ( 96 ) FROM tab0
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8617
SELECT ( col0 ) DIV col0 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8617
SELECT ( col0 ) / col0 AS col1 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8618
SELECT - CAST( col0 AS SIGNED ) AS col2, 26 col2, + col1 * + 5 + - + col2 FROM tab0
----
9 values hashing to 6aafb5810c03505ffc47313b8bda0846

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-8618
SELECT - CAST ( col0 AS INTEGER ) AS col2, 26 col2, + col1 * + 5 + - + col2 FROM tab0
----
9 values hashing to 6aafb5810c03505ffc47313b8bda0846

query I rowsort
SELECT + col2 * + - 12 FROM tab0
----
-1188
-120
-564

query II rowsort
SELECT ALL 26, col1 AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
26
51
26
67
26
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 27 - + ( - + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8622
SELECT DISTINCT - col0 DIV - - 10 FROM tab2
----
-4
-6
-7

skipif mysql # not compatible
query I rowsort label-8622
SELECT DISTINCT - col0 / - - 10 FROM tab2
----
-4
-6
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8623
SELECT DISTINCT MAX( ALL - 24 ) FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8623
SELECT DISTINCT MAX ( ALL - 24 ) FROM tab1 AS cor0
----
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8624
SELECT DISTINCT COUNT( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8624
SELECT DISTINCT COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + ( + + col1 ) AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8626
SELECT ALL - ( col1 ) + + CAST( NULL AS DECIMAL ) AS col0, + 9 AS col2 FROM tab0 AS cor0
----
NULL
9
NULL
9
NULL
9

skipif mysql # not compatible
query II rowsort label-8626
SELECT ALL - ( col1 ) + + CAST ( NULL AS REAL ) AS col0, + 9 AS col2 FROM tab0 AS cor0
----
NULL
9
NULL
9
NULL
9

query I rowsort
SELECT ALL - col2 + + 38 * - col0 FROM tab2
----
-1771
-2472
-2908

query I rowsort
SELECT 86 + + - col2 * + col0 + + 29 AS col1 FROM tab2
----
-2445
-4235
-943

query I rowsort
SELECT - 32 + + col2 + - col0 AS col0 FROM tab0
----
-109
-30
0

query I rowsort
SELECT col1 + ( - 22 ) - + - 97 FROM tab1
----
122
80
89

query I rowsort
SELECT ALL + col1 + - 52 * - ( + 30 ) AS col2 FROM tab0
----
1561
1581
1641

onlyif mysql # aggregate syntax: 
query I rowsort label-8632
SELECT DISTINCT + - SUM( + col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8632
SELECT DISTINCT + - SUM ( + col1 ) FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT + COUNT( * ) * COUNT( * ) * - - COUNT( * ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-8633
SELECT + COUNT ( * ) * COUNT ( * ) * - - COUNT ( * ) FROM tab2 AS cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8634
SELECT DISTINCT col0 + + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8634
SELECT DISTINCT col0 + + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL 37 - - col2 + + col1 FROM tab2
----
111
154
162

query I rowsort
SELECT ALL 84 + + - 87 AS col2 FROM tab1
----
-3
-3
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 <= NULL
----

query I rowsort
SELECT ALL - - col0 - - - 97 AS col2 FROM tab0 cor0
----
-10
-82
0

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8640
SELECT DISTINCT - col2 DIV + col1 * + col2 - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8640
SELECT DISTINCT - col2 / + col1 * + col2 - col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8641
SELECT DISTINCT + CAST( + col2 AS SIGNED ) col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8641
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT ALL + - col0 * - 63 FROM tab0 cor0
----
5481
6111
945

onlyif mysql # aggregate syntax: 
query II rowsort label-8644
SELECT + SUM( ALL + col1 ) * - COUNT( * ), + 11 AS col1 FROM tab0 AS cor0
----
-309
11

skipif mysql # not compatible
query II rowsort label-8644
SELECT + SUM ( ALL + col1 ) * - COUNT ( * ), + 11 AS col1 FROM tab0 AS cor0
----
-309
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT ALL + + ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8645
SELECT ALL + + ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT + MAX( ALL - 27 ) AS col1 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-8646
SELECT + MAX ( ALL - 27 ) AS col1 FROM tab1 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT - - ( - COUNT( * ) ) * + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8647
SELECT - - ( - COUNT ( * ) ) * + COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT col1 * 24 * - 0 * col1 - + col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT 56 * - - ( - col2 ) FROM tab2
----
-1288
-2240
-3248

query I rowsort
SELECT DISTINCT ( + ( + 25 ) ) AS col2 FROM tab2
----
25

query I rowsort
SELECT DISTINCT + col1 + - 84 AS col2 FROM tab0 WHERE NOT NULL > col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col1 / - - col2 )
----

query II rowsort
SELECT ALL - + col0 + + col0, col2 * - col2 - + + ( - col0 ) FROM tab1 WHERE NULL BETWEEN - 30 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8654
SELECT DISTINCT - 40 * - + COUNT( * ) FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-8654
SELECT DISTINCT - 40 * - + COUNT ( * ) FROM tab1
----
120

query I rowsort
SELECT - + 11 AS col1 FROM tab1 AS cor0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query II rowsort label-8656
SELECT + 9, MIN( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
9
51

skipif mysql # not compatible
query II rowsort label-8656
SELECT + 9, MIN ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
9
51

query I rowsort
SELECT ( 16 ) FROM tab1 AS cor0
----
16
16
16

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8658
SELECT ALL COUNT( * ) * + - COUNT( * ) AS col2, + MIN( ALL col2 ) DIV COUNT( * ) col2 FROM tab1 AS cor0
----
-9
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8658
SELECT ALL COUNT ( * ) * + - COUNT ( * ) AS col2, + MIN ( ALL col2 ) / COUNT ( * ) col2 FROM tab1 AS cor0
----
-9
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8659
SELECT - + ( - COUNT( * ) ) * - 94 + 37 FROM tab0 AS cor0
----
-245

skipif mysql # not compatible
query I rowsort label-8659
SELECT - + ( - COUNT ( * ) ) * - 94 + 37 FROM tab0 AS cor0
----
-245

onlyif mysql # DIV for integer division: 
query I rowsort label-8660
SELECT DISTINCT col1 DIV + col2 + + 67 * + + 5 + + 95 FROM tab0 AS cor0
----
430
431
432

skipif mysql # not compatible
query I rowsort label-8660
SELECT DISTINCT col1 / + col2 + + 67 * + + 5 + + 95 FROM tab0 AS cor0
----
430
431
432

onlyif mysql # aggregate syntax: 
query I rowsort label-8661
SELECT DISTINCT + 88 * + MAX( + - 70 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-6160

skipif mysql # not compatible
query I rowsort label-8661
SELECT DISTINCT + 88 * + MAX ( + - 70 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-6160

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 >= + col1 * 3 - + + col1
----
91
47
68

query I rowsort
SELECT - + 83 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 61 IS NULL
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8664
SELECT DISTINCT - MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT - MAX ( DISTINCT - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8665
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----
0

query I rowsort
SELECT ( + - 53 ) AS col0 FROM tab2 AS cor0
----
-53
-53
-53

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8667
SELECT + COUNT( * ) DIV + 11 AS col0, + 44 FROM tab1 AS cor0
----
0
44

skipif mysql # not compatible
query II rowsort label-8667
SELECT + COUNT ( * ) / + 11 AS col0, + 44 FROM tab1 AS cor0
----
0
44

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT DISTINCT 84 + + COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-8668
SELECT DISTINCT 84 + + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
84

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8670
SELECT ALL + CAST( - col0 AS SIGNED ) * col0 * - ( - 73 ) AS col2 FROM tab2 AS cor0 WHERE + 38 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8670
SELECT ALL + CAST ( - col0 AS INTEGER ) * col0 * - ( - 73 ) AS col2 FROM tab2 AS cor0 WHERE + 38 IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 * + col2 + - 23 IS NULL
----

query I rowsort
SELECT ALL col1 + + - col1 AS col2 FROM tab0
----
0
0
0

query II rowsort
SELECT DISTINCT 14 + + col0 * col2 AS col0, - col0 FROM tab0
----
719
-15
884
-87
9617
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 6 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col2 * - + col1 / + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - ( - col1 ) + + 85 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8677
SELECT - 20 + + ( + COUNT( ALL 48 ) ) DIV - + 4 FROM tab0 WHERE NULL IS NOT NULL
----
-20

skipif mysql # not compatible
query I rowsort label-8677
SELECT - 20 + + ( + COUNT ( ALL 48 ) ) / - + 4 FROM tab0 WHERE NULL IS NOT NULL
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT + MAX( + + ( col1 ) ) - + 5 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-8678
SELECT + MAX ( + + ( col1 ) ) - + 5 FROM tab1
----
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8679
SELECT 60 DIV 83 - MIN( ALL + col1 ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8679
SELECT 60 / 83 - MIN ( ALL + col1 ) AS col0 FROM tab0
----
-1

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 43 < + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8681
SELECT col1 + + col2 + - 44 * - CAST( NULL AS SIGNED ) + - - col1 * - 16 * - - col2 * + CAST( + 71 AS SIGNED ) * - 57 + - 0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8681
SELECT col1 + + col2 + - 44 * - CAST ( NULL AS INTEGER ) + - - col1 * - 16 * - - col2 * + CAST ( + 71 AS INTEGER ) * - 57 + - 0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 34 AS col1 FROM tab2 AS cor0 WHERE NULL <> NULL
----

query II rowsort
SELECT ALL col0 AS col1, col2 FROM tab0 cor0
----
15
47
87
10
97
99

query I rowsort
SELECT DISTINCT - col1 - - col1 + 50 * col2 FROM tab1
----
2950
3400
4800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 28 * col2 * col1 col1 FROM tab0 AS cor0
----
-106596
-2772
-5880

query I rowsort
SELECT DISTINCT - col1 - - 22 + - 71 * - - 15 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 + col0 + col0 * - ( - col0 ) * col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 29 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 * - 78 - + col0 NOT IN ( - 19 * + col1, col2, - col0 / + col1 * + col2, - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN col0 AND - ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT COUNT( * ) * COUNT( ALL + + 96 ) * - - 94 * 61 FROM tab2
----
51606

skipif mysql # not compatible
query I rowsort label-8690
SELECT COUNT ( * ) * COUNT ( ALL + + 96 ) * - - 94 * 61 FROM tab2
----
51606

query I rowsort
SELECT ALL ( + col1 ) * + - 11 * - 77 - + col2 AS col1 FROM tab0
----
17777
68560
748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8692
SELECT DISTINCT + - col2 * - + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8692
SELECT DISTINCT + - col2 * - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + 21, col1 FROM tab2 AS cor0
----
21
51
21
67
21
77

query I rowsort
SELECT ALL ( + - col0 ) * + + col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8696
SELECT ALL 11 DIV - 33 * + col2 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8696
SELECT ALL 11 / - 33 * + col2 col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 44 / 10 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-8698
SELECT + 61, - SUM( DISTINCT - 95 ) AS col0 FROM tab0
----
61
95

skipif mysql # not compatible
query II rowsort label-8698
SELECT + 61, - SUM ( DISTINCT - 95 ) AS col0 FROM tab0
----
61
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT - MIN( ALL - 73 ) * + 69 AS col1 FROM tab1
----
5037

skipif mysql # not compatible
query I rowsort label-8699
SELECT - MIN ( ALL - 73 ) * + 69 AS col1 FROM tab1
----
5037

query I rowsort
SELECT ALL col1 * + + ( col2 ) AS col0 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT DISTINCT COUNT( * ) * - + 4 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-8701
SELECT DISTINCT COUNT ( * ) * - + 4 FROM tab1
----
-12

query I rowsort
SELECT ALL - col0 * + - 19 + - + 9 AS col2 FROM tab0 AS cor0
----
1644
1834
276

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
51
67
77

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE + col2 + - col2 * - 51 IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8705
SELECT ALL - MIN( ALL col2 ) * - + COUNT( * ) * CAST( NULL AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8705
SELECT ALL - MIN ( ALL col2 ) * - + COUNT ( * ) * CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 0 * + ( - - col1 ) * + + col1 NOT BETWEEN NULL AND col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8707
SELECT - col2 AS col1, CAST( + + col2 AS SIGNED ) DIV + 60 FROM tab2 AS cor0 WHERE col1 - - col2 IS NOT NULL
----
-23
0
-40
0
-58
0

skipif mysql # not compatible
query II rowsort label-8707
SELECT - col2 AS col1, CAST ( + + col2 AS INTEGER ) / + 60 FROM tab2 AS cor0 WHERE col1 - - col2 IS NOT NULL
----
-23
0
-40
0
-58
0

query II rowsort
SELECT DISTINCT + + col2, 72 + + 96 AS col1 FROM tab0 AS cor0
----
10
168
47
168
99
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8709
SELECT DISTINCT CAST( + col2 AS SIGNED ) + - 21 AS col1 FROM tab2 AS cor0
----
19
2
37

skipif mysql # not compatible
query I rowsort label-8709
SELECT DISTINCT CAST ( + col2 AS INTEGER ) + - 21 AS col1 FROM tab2 AS cor0
----
19
2
37

query I rowsort
SELECT ALL - col0 + 2 FROM tab2 AS cor0
----
-44
-62
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8711
SELECT - COUNT( * ) * - 50 + 29 AS col1 FROM tab0
----
179

skipif mysql # not compatible
query I rowsort label-8711
SELECT - COUNT ( * ) * - 50 + 29 AS col1 FROM tab0
----
179

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8712
SELECT + 99 DIV - COUNT( * ) + COUNT( * ) AS col0 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-8712
SELECT + 99 / - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2
----
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8713
SELECT - 58 + MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8713
SELECT - 58 + MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col1 - - + col1 AS col0 FROM tab0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8715
SELECT ALL + COUNT( * ) + + - 16 AS col1 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-8715
SELECT ALL + COUNT ( * ) + + - 16 AS col1 FROM tab0
----
-13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8716
SELECT ALL CAST( - + col0 AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8716
SELECT ALL CAST ( - + col0 AS INTEGER ) FROM tab2
----
-46
-64
-75

query I rowsort
SELECT - 90 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query I rowsort
SELECT ALL - - 35 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT DISTINCT - 95 - - - col2 FROM tab1
----
-154
-163
-191

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT ALL + COUNT( * ) + + 50 + - - COUNT( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8720
SELECT ALL + COUNT ( * ) + + 50 + - - COUNT ( * ) col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
68

query I rowsort
SELECT DISTINCT + 97 AS col1 FROM tab2 cor0
----
97

onlyif mysql # aggregate syntax: 
query II rowsort label-8722
SELECT COUNT( * ) AS col0, + 34 - COUNT( * ) + - 27 col1 FROM tab2 AS cor0
----
3
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8722
SELECT COUNT ( * ) AS col0, + 34 - COUNT ( * ) + - 27 col1 FROM tab2 AS cor0
----
3
4

query I rowsort
SELECT ( + 14 ) AS col1 FROM tab0 AS cor0
----
14
14
14

query II rowsort
SELECT col0, ( + col2 ) AS col0 FROM tab0 AS cor0
----
15
47
87
10
97
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + - + 60 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT - ( COUNT( * ) ) * - 93 FROM tab0 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-8726
SELECT - ( COUNT ( * ) ) * - 93 FROM tab0 AS cor0
----
279

query II rowsort
SELECT ALL col1 AS col0, + col0 AS col2 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8728
SELECT MAX( DISTINCT - 28 ) * 36 AS col2 FROM tab0
----
-1008

skipif mysql # not compatible
query I rowsort label-8728
SELECT MAX ( DISTINCT - 28 ) * 36 AS col2 FROM tab0
----
-1008

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + - col1 AS col0 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8731
SELECT MIN( ALL col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-8731
SELECT MIN ( ALL col2 ) AS col0 FROM tab0
----
10

query I rowsort
SELECT DISTINCT ( + + 7 ) AS col0 FROM tab1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT DISTINCT - ( + SUM( ALL col1 ) ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-8733
SELECT DISTINCT - ( + SUM ( ALL col1 ) ) FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8734
SELECT DISTINCT SUM( DISTINCT 60 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8734
SELECT DISTINCT SUM ( DISTINCT 60 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= - col1
----

query I rowsort
SELECT + + 20 AS col0 FROM tab1 AS cor0
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT + SUM( + 41 ) AS col1 FROM tab2 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-8737
SELECT + SUM ( + 41 ) AS col1 FROM tab2 AS cor0
----
123

query II rowsort
SELECT ALL col2 AS col2, - 36 AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
10
-36
47
-36
99
-36

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8739
SELECT col1 / + + col1 / - CAST( NULL AS DECIMAL ) / + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8739
SELECT col1 / + + col1 / - CAST ( NULL AS REAL ) / + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT - MIN( ALL + col0 ) * - + 20 + - + MAX( - + col0 ) AS col0 FROM tab0 AS cor0
----
315

skipif mysql # not compatible
query I rowsort label-8740
SELECT - MIN ( ALL + col0 ) * - + 20 + - + MAX ( - + col0 ) AS col0 FROM tab0 AS cor0
----
315

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT - 35 * - ( COUNT( * ) ) FROM tab1 cor0
----
105

skipif mysql # not compatible
query I rowsort label-8741
SELECT - 35 * - ( COUNT ( * ) ) FROM tab1 cor0
----
105

query I rowsort
SELECT - - 90 * - col0 AS col2 FROM tab0 AS cor0
----
-1350
-7830
-8730

onlyif mysql # aggregate syntax: 
query II rowsort label-8743
SELECT - COUNT( * ) AS col0, + 71 FROM tab2 AS cor0
----
-3
71

skipif mysql # not compatible
query II rowsort label-8743
SELECT - COUNT ( * ) AS col0, + 71 FROM tab2 AS cor0
----
-3
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8744
SELECT + SUM( DISTINCT 11 ) DIV COUNT( - - col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8744
SELECT + SUM ( DISTINCT 11 ) / COUNT ( - - col0 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - - ( + 89 ) AS col2 FROM tab1 AS cor0
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-8746
SELECT DISTINCT + 19 DIV + col2 + - col0 FROM tab0 cor0
----
-15
-86
-97

skipif mysql # not compatible
query I rowsort label-8746
SELECT DISTINCT + 19 / + col2 + - col0 FROM tab0 cor0
----
-15
-86
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-8747
SELECT ALL COUNT( * ), COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8747
SELECT ALL COUNT ( * ), COUNT ( * ) FROM tab1 AS cor0
----
3
3

query III rowsort
SELECT * FROM tab0 WHERE - 96 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8749
SELECT DISTINCT - col2 * - 2 / col1 * 97 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8749
SELECT DISTINCT - col2 * - 2 / col1 * 97 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE + + col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8751
SELECT DISTINCT 21 DIV 50 DIV - - col2 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT 21 / 50 / - - col2 AS col1 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8752
SELECT ALL ( CAST( NULL AS SIGNED ) ) + 55 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8752
SELECT ALL ( CAST ( NULL AS INTEGER ) ) + 55 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 6 - - 2 AS col2 FROM tab2
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT DISTINCT + ( - COUNT( ALL - 88 ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8754
SELECT DISTINCT + ( - COUNT ( ALL - 88 ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8755
SELECT DISTINCT - - CAST( - + col1 AS SIGNED ) - - 25 AS col2 FROM tab1 AS cor0
----
-22
11
20

skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT - - CAST ( - + col1 AS INTEGER ) - - 25 AS col2 FROM tab1 AS cor0
----
-22
11
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT MAX( - col2 ) * + + 74 + + + COUNT( * ) FROM tab2 cor0
----
-1699

skipif mysql # not compatible
query I rowsort label-8756
SELECT MAX ( - col2 ) * + + 74 + + + COUNT ( * ) FROM tab2 cor0
----
-1699

query I rowsort
SELECT DISTINCT + - 44 AS col2 FROM tab1 AS cor0 WHERE NOT - 6 * + col0 * + col2 * + ( 35 ) IS NOT NULL
----

query I rowsort
SELECT - 42 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 9894093f29c0defae91347934f060329

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 16 col1 FROM tab2 AS cor0
----
-16
-16
-16

query I rowsort
SELECT ALL + - col1 AS col1 FROM tab2 AS cor0 WHERE col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8761
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) IN ( - + col0 )
----

skipif mysql # not compatible
query III rowsort label-8761
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IN ( - + col0 )
----

query I rowsort
SELECT ALL + + 20 AS col2 FROM tab1 AS cor0
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8763
SELECT DISTINCT + MAX( ALL - 48 ) FROM tab0 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-8763
SELECT DISTINCT + MAX ( ALL - 48 ) FROM tab0 cor0
----
-48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 < + 89 / + - col0 + - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 40 * col2 FROM tab2
----
1600
2320
920

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, 29 AS col1 FROM tab1
----
59
29
68
29
96
29

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < 93 * col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col0 ) col1 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8769
SELECT ALL SUM( + 40 ) FROM tab1
----
120

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL SUM ( + 40 ) FROM tab1
----
120

query II rowsort
SELECT DISTINCT - col0, + col2 - + - 51 AS col2 FROM tab0
----
-15
98
-87
61
-97
150

query I rowsort
SELECT - 39 + + col0 AS col1 FROM tab0
----
-24
48
58

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab2 WHERE NOT ( ( NULL <= NULL ) ) OR NOT NULL IS NOT NULL
----
62

query I rowsort
SELECT 69 + - col0 FROM tab2
----
-6
23
5

query I rowsort
SELECT ALL 45 * + 35 * 2 FROM tab2
----
3150
3150
3150

query I rowsort
SELECT DISTINCT + - 63 FROM tab2 AS cor0
----
-63

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL = - col0
----

query I rowsort
SELECT + 51 * + 9 FROM tab0 AS cor0
----
459
459
459

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT DISTINCT 45 + + 62 * + COUNT( * ) FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT 45 + + 62 * + COUNT ( * ) FROM tab1
----
231

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 28 IN ( col1 * col2, - 41, + 46, - col0 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT ALL MAX( DISTINCT - 11 ) FROM tab1 cor0
----
-11

skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL MAX ( DISTINCT - 11 ) FROM tab1 cor0
----
-11

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8781
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + ( col0 ) + + 0 FROM tab2 AS cor0 WHERE - col2 + + 67 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8781
SELECT DISTINCT - CAST ( NULL AS REAL ) * + ( col0 ) + + 0 FROM tab2 AS cor0 WHERE - col2 + + 67 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = col0 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8783
SELECT - + col1 * - col0 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8783
SELECT - + col1 * - col0 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col1 ) + + 90 FROM tab0 AS cor0
----
111
171
91

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
46
64
75

query I rowsort
SELECT ALL - col1 + + 7 AS col2 FROM tab1 AS cor0
----
-40
-7
2

query I rowsort
SELECT ALL col1 * + col2 + - col1 * - col0 FROM tab1
----
2058
720
7473

query I rowsort
SELECT - 76 * - - col2 FROM tab1
----
-4484
-5168
-7296

query III rowsort
SELECT * FROM tab1 WHERE NULL = - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT COUNT( DISTINCT + 19 ) col0 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8791
SELECT COUNT ( DISTINCT + 19 ) col0 FROM tab0
----
1

query III rowsort
SELECT * FROM tab2 WHERE - col0 * + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT + MAX( - col2 ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8793
SELECT + MAX ( - col2 ) AS col0 FROM tab1
----
-59

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 99 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 44 AS col0 FROM tab0 WHERE NULL IS NULL
----
44

query II rowsort
SELECT + 85 * - - 57 * + col2, col1 AS col0 FROM tab0
----
227715
81
479655
1
48450
21

query I rowsort
SELECT + col2 - 1 - + col0 * + 90 FROM tab1 AS cor0
----
-4495
-7592
-8123

query I rowsort
SELECT ALL + - 51 * - col0 FROM tab1 cor0
----
2601
4335
4641

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT 38 * + COUNT( * ) FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-8799
SELECT 38 * + COUNT ( * ) FROM tab2 AS cor0
----
114

query I rowsort
SELECT - 38 * 98 FROM tab0 cor0
----
-3724
-3724
-3724

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT DISTINCT + SUM( col1 ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-8801
SELECT DISTINCT + SUM ( col1 ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
309

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8802
SELECT ALL - - COUNT( * ) + ( + SUM( DISTINCT - + col1 ) ) col2 FROM tab1 WHERE NOT col1 * - - CAST( NULL AS SIGNED ) + + col0 - + + 86 BETWEEN - 65 * col1 + 27 AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8802
SELECT ALL - - COUNT ( * ) + ( + SUM ( DISTINCT - + col1 ) ) col2 FROM tab1 WHERE NOT col1 * - - CAST ( NULL AS INTEGER ) + + col0 - + + 86 BETWEEN - 65 * col1 + 27 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT + + SUM( DISTINCT - - col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8803
SELECT + + SUM ( DISTINCT - - col2 ) FROM tab1 AS cor0
----
223

query I rowsort
SELECT ( - 2 ) FROM tab2 AS cor0
----
-2
-2
-2

onlyif mysql # DIV for integer division: 
query II rowsort label-8805
SELECT + col0 AS col1, col1 DIV - - col2 AS col1 FROM tab1 AS cor0
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-8805
SELECT + col0 AS col1, col1 / - - col2 AS col1 FROM tab1 AS cor0
----
51
0
85
0
91
0

query II rowsort
SELECT col1 AS col1, 10 FROM tab0 AS cor0
----
1
10
21
10
81
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8807
SELECT DISTINCT + - SUM( DISTINCT - + col2 ) AS col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8807
SELECT DISTINCT + - SUM ( DISTINCT - + col2 ) AS col1 FROM tab1 AS cor0
----
223

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + - - 93 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT DISTINCT 93 * MIN( DISTINCT - - col0 ) AS col1 FROM tab2 AS cor0
----
4278

skipif mysql # not compatible
query I rowsort label-8809
SELECT DISTINCT 93 * MIN ( DISTINCT - - col0 ) AS col1 FROM tab2 AS cor0
----
4278

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT DISTINCT + + 18 * - - COUNT( * ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8810
SELECT DISTINCT + + 18 * - - COUNT ( * ) FROM tab1 AS cor0
----
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * col1 + + col1 + 12 + + + col0 col0 FROM tab1 AS cor0
----
1421
3346
397

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8812
SELECT ALL - ( - CAST( + 84 AS SIGNED ) ) DIV - + 68 FROM tab0 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL - ( - CAST ( + 84 AS INTEGER ) ) / - + 68 FROM tab0 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col1 col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 50 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT ( - - COUNT( * ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8815
SELECT ( - - COUNT ( * ) ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8816
SELECT ALL + 78 DIV - + col2 FROM tab0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-8816
SELECT ALL + 78 / - + col2 FROM tab0
----
-1
-7
0

query II rowsort
SELECT DISTINCT + 67, + col1 AS col1 FROM tab2 WHERE NOT ( ( NOT 95 BETWEEN NULL AND NULL ) )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 9 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + ( - - col1 ) AS col2, + col0 AS col2 FROM tab0
----
1
97
21
87
81
15

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 - - ( col2 ) + - - 34 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8821
SELECT MAX( DISTINCT - 89 ) DIV - COUNT( * ) FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-8821
SELECT MAX ( DISTINCT - 89 ) / - COUNT ( * ) FROM tab0
----
29

onlyif mysql # aggregate syntax: 
query II rowsort label-8822
SELECT DISTINCT + ( - COUNT( * ) ), 70 AS col1 FROM tab0
----
-3
70

skipif mysql # not compatible
query II rowsort label-8822
SELECT DISTINCT + ( - COUNT ( * ) ), 70 AS col1 FROM tab0
----
-3
70

onlyif mysql # DIV for integer division: 
query I rowsort label-8823
SELECT - 49 DIV - + col0 AS col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8823
SELECT - 49 / - + col0 AS col2 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8824
SELECT ALL SUM( col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8824
SELECT ALL SUM ( col1 ) AS col0 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT - COUNT( * ) + + COUNT( * ) * COUNT( * ) + - COUNT( * ) * - 22 AS col0 FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-8825
SELECT - COUNT ( * ) + + COUNT ( * ) * COUNT ( * ) + - COUNT ( * ) * - 22 AS col0 FROM tab0 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8826
SELECT DISTINCT + 88 * - - COUNT( + col1 ) + + 67 AS col1 FROM tab2 AS cor0
----
331

skipif mysql # not compatible
query I rowsort label-8826
SELECT DISTINCT + 88 * - - COUNT ( + col1 ) + + 67 AS col1 FROM tab2 AS cor0
----
331

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8827
SELECT + + 50 AS col2, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
50
NULL
50
NULL
50
NULL

skipif mysql # not compatible
query II rowsort label-8827
SELECT + + 50 AS col2, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
50
NULL
50
NULL
50
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8828
SELECT DISTINCT MAX( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8828
SELECT DISTINCT MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL ( 56 ) AS col1 FROM tab1 cor0
----
56
56
56

query II rowsort
SELECT DISTINCT - col2 AS col2, + col1 AS col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query I rowsort
SELECT ALL 28 * + 2 FROM tab2
----
56
56
56

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 <= - col1 * - 2
----
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8833
SELECT CAST( + col1 AS SIGNED ) - + 85 FROM tab1
----
-38
-71
-80

skipif mysql # not compatible
query I rowsort label-8833
SELECT CAST ( + col1 AS INTEGER ) - + 85 FROM tab1
----
-38
-71
-80

query I rowsort
SELECT col1 + + 83 AS col1 FROM tab1
----
130
88
97

query I rowsort
SELECT - col0 + - col1 + 56 AS col2 FROM tab0
----
-40
-42
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8836
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8836
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8837
SELECT col2 + + - col2 - + CAST( NULL AS SIGNED ) + col0 - ( 40 ) + - + col1 * + + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8837
SELECT col2 + + - col2 - + CAST ( NULL AS INTEGER ) + col0 - ( 40 ) + - + col1 * + + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT + COUNT( + + ( - col0 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8838
SELECT + COUNT ( + + ( - col0 ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8839
SELECT DISTINCT - ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8839
SELECT DISTINCT - ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
3

query II rowsort
SELECT DISTINCT - 63 * + col0 AS col2, col1 AS col0 FROM tab1 AS cor0
----
-3213
14
-5355
5
-5733
47

query I rowsort
SELECT 44 * - col1 AS col1 FROM tab1
----
-2068
-220
-616

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT ALL COUNT( + col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL COUNT ( + col2 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8843
SELECT - 61 DIV + COUNT( * ) AS col0 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-8843
SELECT - 61 / + COUNT ( * ) AS col0 FROM tab1
----
-20

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8844
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8844
SELECT DISTINCT - + CAST ( NULL AS REAL ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - ( + + 45 ) * - col2 + - col0 AS col0 FROM tab0 AS cor0 WHERE + ( + + col1 ) IS NOT NULL
----
2100
363
4358

query I rowsort
SELECT DISTINCT + 69 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8847
SELECT ALL + COUNT( * ) * - CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8847
SELECT ALL + COUNT ( * ) * - CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8849
SELECT DISTINCT + - 46 DIV - MIN( ( col2 ) ) - + - 57 col1 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8849
SELECT DISTINCT + - 46 / - MIN ( ( col2 ) ) - + - 57 col1 FROM tab2 AS cor0
----
59

query I rowsort
SELECT DISTINCT + col2 + + col2 - col1 AS col1 FROM tab1
----
113
178
89

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT COUNT( ALL col1 ) + 8 AS col0 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-8851
SELECT COUNT ( ALL col1 ) + 8 AS col0 FROM tab1
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 + - col1 + col1 col1 FROM tab0
----
46
46
46

query I rowsort
SELECT + 53 * col2 + - + 46 FROM tab2
----
1173
2074
3028

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT 96 * + 12 * - COUNT( * ) + + + 96 FROM tab0
----
-3360

skipif mysql # not compatible
query I rowsort label-8854
SELECT 96 * + 12 * - COUNT ( * ) + + + 96 FROM tab0
----
-3360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 col0 FROM tab0 WHERE ( NULL ) <> ( NULL )
----

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE ( NOT NULL <> NULL )
----

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT col1 * col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col0, - 87 + - + 28 col0 FROM tab1 AS cor0
----
14
-115
47
-115
5
-115

query I rowsort
SELECT ALL - col2 * + 41 + ( - 35 ) + ( 63 ) FROM tab2
----
-1612
-2350
-915

query I rowsort
SELECT DISTINCT - col1 + - 10 FROM tab1
----
-15
-24
-57

query I rowsort
SELECT - + col2 + col1 + - - col1 FROM tab1 AS cor0
----
-49
-68
26

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 > NULL
----

query I rowsort
SELECT + + ( - col2 ) + + col1 - - col0 FROM tab0 AS cor0
----
-1
49
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8865
SELECT col1 DIV - + col2 + + 23 FROM tab1 AS cor0
----
23
23
23

skipif mysql # not compatible
query I rowsort label-8865
SELECT col1 / - + col2 + + 23 FROM tab1 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT - SUM( + - 33 ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-8866
SELECT - SUM ( + - 33 ) FROM tab1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8867
SELECT ALL ( - ( + ( - COUNT( * ) ) ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8867
SELECT ALL ( - ( + ( - COUNT ( * ) ) ) ) AS col0 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 60 col1 FROM tab1
----
3540
4080
5760

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT + COUNT( * ) + - + MAX( - 33 ) AS col2 FROM tab2, tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8869
SELECT + COUNT ( * ) + - + MAX ( - 33 ) AS col2 FROM tab2, tab1 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT ALL MAX( DISTINCT col1 ) FROM tab1 WHERE NOT col0 <= + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8870
SELECT ALL MAX ( DISTINCT col1 ) FROM tab1 WHERE NOT col0 <= + + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT ALL - + MIN( - 17 ) FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-8871
SELECT ALL - + MIN ( - 17 ) FROM tab0 AS cor0
----
17

query II rowsort
SELECT + + col1, - col0 * + col2 FROM tab0 cor0
----
1
-9603
21
-870
81
-705

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT DISTINCT + SUM( - col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-8873
SELECT DISTINCT + SUM ( - col2 ) AS col0 FROM tab2 AS cor0
----
-121

onlyif mysql # DIV for integer division: 
query I rowsort label-8874
SELECT ALL - col2 DIV - 61 AS col2 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8874
SELECT ALL - col2 / - 61 AS col2 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8875
SELECT DISTINCT MIN( DISTINCT ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8875
SELECT DISTINCT MIN ( DISTINCT ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8876
SELECT ALL CAST( + ( + CAST( col2 AS DECIMAL ) ) AS DECIMAL ) * col2 FROM tab1 WHERE NOT + 60 + + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8876
SELECT ALL CAST ( + ( + CAST ( col2 AS REAL ) ) AS REAL ) * col2 FROM tab1 WHERE NOT + 60 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8877
SELECT - 14 + + COUNT( * ) FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-8877
SELECT - 14 + + COUNT ( * ) FROM tab1
----
-11

query III rowsort
SELECT ALL * FROM tab1 WHERE 49 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8879
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8879
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE - col1 IS NULL
----
0

query I rowsort
SELECT col0 + + col1 * 24 FROM tab2
----
1270
1683
1912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 19 + col0 col0 FROM tab1
----
104
110
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8882
SELECT DISTINCT + CAST( - COUNT( * ) AS SIGNED ) * - MIN( col2 ) AS col1 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-8882
SELECT DISTINCT + CAST ( - COUNT ( * ) AS INTEGER ) * - MIN ( col2 ) AS col1 FROM tab0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT ALL COUNT( * ) + - 32 AS col1 FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL COUNT ( * ) + - 32 AS col1 FROM tab1
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-8884
SELECT + ( 27 ) - MAX( - col1 ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-8884
SELECT + ( 27 ) - MAX ( - col1 ) FROM tab1
----
32

query I rowsort
SELECT ALL - 92 * + 88 AS col1 FROM tab1
----
-8096
-8096
-8096

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8886
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 FROM tab1 WHERE NOT col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 FROM tab1 WHERE NOT col2 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 69 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE - col2 / 74 + 41 IS NULL
----

query I rowsort
SELECT DISTINCT + 33 * + col0 AS col2 FROM tab0
----
2871
3201
495

query I rowsort
SELECT 60 + - 17 FROM tab2
----
43
43
43

onlyif mysql # DIV for integer division: 
query I rowsort label-8891
SELECT ALL + col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-8891
SELECT ALL + col0 / + col1 AS col0 FROM tab0 AS cor0
----
0
4
97

query I rowsort
SELECT ( col0 ) * + 73 + - 18 AS col1 FROM tab1 AS cor0
----
3705
6187
6625

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT COUNT( * ) + + SUM( - col0 ) FROM tab2 AS cor0
----
-182

skipif mysql # not compatible
query I rowsort label-8893
SELECT COUNT ( * ) + + SUM ( - col0 ) FROM tab2 AS cor0
----
-182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 + + 21 col0 FROM tab1 AS cor0
----
63
63
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8895
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 93 + - col1 AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8895
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 93 + - col1 AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE + 27 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8896
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE + 27 IS NOT NULL
----
3

query I rowsort
SELECT col0 * ( + 50 ) FROM tab0 WHERE ( col1 ) <= ( - col0 )
----

query I rowsort
SELECT col0 AS col2 FROM tab1 WHERE - col2 IN ( 12 )
----

query I rowsort
SELECT - col2 - 20 FROM tab2 AS cor0
----
-43
-60
-78

query I rowsort
SELECT ALL col1 - + 90 FROM tab2 AS cor0
----
-13
-23
-39

query I rowsort
SELECT ALL 14 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + ( + 81 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8902
SELECT 31 * - col0 - - 70 DIV ( col2 * + ( col1 ) ) FROM tab1 AS cor0
----
-1581
-2635
-2821

skipif mysql # not compatible
query I rowsort label-8902
SELECT 31 * - col0 - - 70 / ( col2 * + ( col1 ) ) FROM tab1 AS cor0
----
-1581
-2635
-2821

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8903
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE + col2 IS NULL
----
0

query I rowsort
SELECT col0 - + 19 FROM tab2 cor0
----
27
45
56

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 78 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 19 col2 FROM tab1 AS cor0 WHERE NOT - 6 IS NOT NULL
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 AS cor0 WHERE NOT + 38 NOT BETWEEN + col0 + - col2 AND 51
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8908
SELECT ALL + + MAX( + col2 ) AS col1 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-8908
SELECT ALL + + MAX ( + col2 ) AS col1 FROM tab2 cor0
----
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col1 ) >= ( ( + 49 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 78 ) >= ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 WHERE NOT ( col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8911
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( col1 ) IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT DISTINCT + MAX( + col2 ) col0 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8912
SELECT DISTINCT + MAX ( + col2 ) col0 FROM tab1
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col0 FROM tab2
----
99
99
99

query I rowsort
SELECT + col2 * 89 * - 58 FROM tab1
----
-304558
-351016
-495552

onlyif mysql # aggregate syntax: 
query I rowsort label-8915
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT + 98 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8915
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT + 98 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8916
SELECT SUM( - CAST( 61 AS SIGNED ) ) AS col2 FROM tab2
----
-183

skipif mysql # not compatible
query I rowsort label-8916
SELECT SUM ( - CAST ( 61 AS INTEGER ) ) AS col2 FROM tab2
----
-183

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT ALL - ( + + COUNT( - col2 ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8917
SELECT ALL - ( + + COUNT ( - col2 ) ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NOT - col1 NOT IN ( - 93 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8919
SELECT col0 DIV + + col2 AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8919
SELECT col0 / + + col2 AS col0 FROM tab1
----
0
1
1

query I rowsort
SELECT + col0 / - col2 FROM tab0 WHERE NOT NULL NOT BETWEEN + 0 AND ( + col1 )
----

query I rowsort
SELECT DISTINCT + + ( + + 33 ) AS col0 FROM tab2 AS cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8922
SELECT - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0 WHERE NOT NULL <= + - col2 + 19
----

skipif mysql # not compatible
query I rowsort label-8922
SELECT - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0 WHERE NOT NULL <= + - col2 + 19
----

query I rowsort
SELECT ALL 68 * - col2 AS col2 FROM tab1
----
-4012
-4624
-6528

query I rowsort
SELECT + col0 AS col0 FROM tab1 cor0 WHERE NOT ( col2 ) IS NULL
----
51
85
91

query I rowsort
SELECT ALL + ( 63 ) + col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0 + + 72 )
----

query I rowsort
SELECT DISTINCT col1 * + + col1 AS col0 FROM tab1 AS cor0
----
196
2209
25

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= col1 * col0 + col2 / 80
----

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE ( + col2 ) = 16
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 63 + 36 + col1 * + 20 col0 FROM tab2 AS cor0
----
1313
1513
993

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 13 ) NOT BETWEEN NULL AND - 68
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * + 90 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IN ( + col2 ) ) OR NOT NULL NOT BETWEEN + col0 * + col1 AND col1 / col1
----

query I rowsort
SELECT + 2 + + - col1 FROM tab0 AS cor0
----
-19
-79
1

onlyif mysql # DIV for integer division: 
query II rowsort label-8933
SELECT ALL ( + col1 ), - col1 - + - col0 DIV + 5 FROM tab1
----
14
-4
47
-29
5
12

skipif mysql # not compatible
query II rowsort label-8933
SELECT ALL ( + col1 ), - col1 - + - col0 / + 5 FROM tab1
----
14
-4
47
-29
5
12

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col0 + - 36 IS NULL
----

query II rowsort
SELECT ALL col1 + + 67 AS col2, + col1 AS col0 FROM tab2
----
118
51
134
67
144
77

query I rowsort
SELECT ALL + ( col2 ) AS col1 FROM tab2 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8937
SELECT COUNT( * ) + - - MIN( 43 ) AS col0 FROM tab1
----
46

skipif mysql # not compatible
query I rowsort label-8937
SELECT COUNT ( * ) + - - MIN ( 43 ) AS col0 FROM tab1
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8938
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) + + - 17 + + col1 * - col1 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8938
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) + + - 17 + + col1 * - col1 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - col1 + col0 + - col0 * - 74 AS col0 FROM tab2
----
3399
4723
5558

query I rowsort
SELECT ALL - col1 + - ( ( 57 ) ) + - col0 FROM tab2
----
-154
-198
-199

query III rowsort
SELECT * FROM tab1 WHERE - + 16 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8942
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8942
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8943
SELECT 66 - + MAX( DISTINCT col2 ) * 24 AS col2 FROM tab2 AS cor0 WHERE 78 NOT IN ( - col1 )
----
-1326

skipif mysql # not compatible
query I rowsort label-8943
SELECT 66 - + MAX ( DISTINCT col2 ) * 24 AS col2 FROM tab2 AS cor0 WHERE 78 NOT IN ( - col1 )
----
-1326

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT + - COUNT( * ) * - + 53 + ( 4 ) AS col0 FROM tab0 AS cor0
----
163

skipif mysql # not compatible
query I rowsort label-8944
SELECT + - COUNT ( * ) * - + 53 + ( 4 ) AS col0 FROM tab0 AS cor0
----
163

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT + MIN( DISTINCT col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8945
SELECT + MIN ( DISTINCT col2 ) FROM tab2 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + AVG ( ALL + 81 ) col2 FROM tab1 AS cor0 WHERE NULL < NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8947
SELECT * FROM tab1 WHERE ( + col2 + - + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-8947
SELECT * FROM tab1 WHERE ( + col2 + - + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) ) >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL < - col2 / + col2 + + 78
----

query I rowsort
SELECT + 25 + + + col1 * + 40 * + + 43 + + - 1 FROM tab0
----
139344
1744
36144

onlyif mysql # DIV for integer division: 
query I rowsort label-8950
SELECT ALL + col1 DIV - + col2 - - ( + ( + 81 ) ) * 78 FROM tab2
----
6316
6317
6317

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL + col1 / - + col2 - - ( + ( + 81 ) ) * 78 FROM tab2
----
6316
6317
6317

query I rowsort
SELECT DISTINCT - col1 - - - col1 FROM tab1
----
-10
-28
-94

query I rowsort
SELECT - 94 * col1 + 22 FROM tab1
----
-1294
-4396
-448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8953
SELECT DISTINCT + col0 / CAST( NULL AS SIGNED ) / 83 * col2 + - 55 + - col0 * - col2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT + col0 / CAST ( NULL AS INTEGER ) / 83 * col2 + - 55 + - col0 * - col2 AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT 31 * + col1 + + col0 AS col0, col2 * col1 FROM tab0 AS cor0
----
128
99
2526
3807
738
210

onlyif mysql # aggregate syntax: 
query II rowsort label-8955
SELECT - + 32, 91 * + COUNT( * ) col0 FROM tab2 AS cor0
----
-32
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8955
SELECT - + 32, 91 * + COUNT ( * ) col0 FROM tab2 AS cor0
----
-32
273

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 < + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - - col2 + + - col1 )
----

query I rowsort
SELECT - + 48 AS col1 FROM tab1 cor0
----
-48
-48
-48

query I rowsort
SELECT 82 * + + col2 FROM tab2 AS cor0
----
1886
3280
4756

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 62 col1 FROM tab0 AS cor0
----
5394
6014
930

query I rowsort
SELECT + - col1 * - col1 - + col2 * + - col1 + - col1 FROM tab2 AS cor0
----
3723
8308
8932

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8962
SELECT + CAST( - 12 AS SIGNED ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

skipif mysql # not compatible
query I rowsort label-8962
SELECT + CAST ( - 12 AS INTEGER ) AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8963
SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 + + CAST( NULL AS SIGNED ) + - + 21 + - col0 BETWEEN ( - 99 ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-8963
SELECT DISTINCT * FROM tab2 WHERE NOT - - col0 + + CAST ( NULL AS INTEGER ) + - + 21 + - col0 BETWEEN ( - 99 ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8964
SELECT col1 DIV - - 19 AS col2 FROM tab1
----
0
0
2

skipif mysql # not compatible
query I rowsort label-8964
SELECT col1 / - - 19 AS col2 FROM tab1
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8965
SELECT + COUNT( * ) * + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8965
SELECT + COUNT ( * ) * + COUNT ( * ) FROM tab2
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 56 col2 FROM tab2 WHERE NOT col0 BETWEEN + 83 * + col0 + + ( + 47 ) AND - col1
----
56
56
56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8967
SELECT DISTINCT - COUNT( CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8967
SELECT DISTINCT - COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT + ( + ( + col0 ) ) AS col1 FROM tab0
----
15
87
97

query II rowsort
SELECT ALL + col1 AS col0, col2 AS col2 FROM tab0
----
1
99
21
10
81
47

query I rowsort
SELECT ( + 8 ) + - col2 * 98 AS col1 FROM tab1 WHERE NOT + 73 IN ( + + col0, 4 * - col1 )
----
-5774
-6656
-9400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8971
SELECT ALL - + col2 AS col1 FROM tab0 WHERE + CAST( NULL AS SIGNED ) = - col2
----

skipif mysql # not compatible
query I rowsort label-8971
SELECT ALL - + col2 AS col1 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) = - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col1 col0 FROM tab0 WHERE NOT ( NULL NOT IN ( - 8, + col0 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8973
SELECT DISTINCT 92 AS col2, - ( - + COUNT( * ) ) FROM tab0
----
92
3

skipif mysql # not compatible
query II rowsort label-8973
SELECT DISTINCT 92 AS col2, - ( - + COUNT ( * ) ) FROM tab0
----
92
3

query II rowsort
SELECT - ( - 33 ), col2 AS col1 FROM tab0 AS cor0
----
33
10
33
47
33
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8975
SELECT ALL - MIN( ALL + - col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-8975
SELECT ALL - MIN ( ALL + - col2 ) AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8976
SELECT col2, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-8976
SELECT col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - col1 - col0 col2 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8978
SELECT DISTINCT - ( - AVG ( + 3 ) ) FROM tab0 AS cor0 WHERE NOT + 44 * + ( + - col2 ) * - - col2 NOT BETWEEN ( - + col2 + col0 * CAST( col1 AS DECIMAL ) ) AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8978
SELECT DISTINCT - ( - AVG ( + 3 ) ) FROM tab0 AS cor0 WHERE NOT + 44 * + ( + - col2 ) * - - col2 NOT BETWEEN ( - + col2 + col0 * CAST ( col1 AS REAL ) ) AND ( NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8979
SELECT - col0 DIV - col1 + - col0 DIV + col0 + - - 17 AS col1 FROM tab2 AS cor0
----
16
16
17

skipif mysql # not compatible
query I rowsort label-8979
SELECT - col0 / - col1 + - col0 / + col0 + - - 17 AS col1 FROM tab2 AS cor0
----
16
16
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8980
SELECT COUNT( * ) DIV COUNT( * ) col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8980
SELECT COUNT ( * ) / COUNT ( * ) col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT + - 86 * 10 * col0 + - ( col1 ) AS col2 FROM tab2 AS cor0
----
-39611
-55117
-64567

query I rowsort
SELECT 54 FROM tab1 AS cor0 WHERE ( NULL ) >= - col0 * col2 / - - col2
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col1 > - col2
----
97
1
99

query I rowsort
SELECT + 81 FROM tab0 cor0 WHERE NULL <> ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 59 <= NULL
----

query I rowsort
SELECT DISTINCT + col1 * - 36 * - 17 + col1 - + col2 FROM tab1
----
28743
3006
8486

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + 9 * - 51, 49, + 62 * + col2 * - + col2 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT DISTINCT 56 + MIN( DISTINCT - col2 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-2

skipif mysql # not compatible
query I rowsort label-8988
SELECT DISTINCT 56 + MIN ( DISTINCT - col2 ) AS col1 FROM tab2 WHERE NULL IS NULL
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8989
SELECT DISTINCT - MIN( ALL 50 ) AS col1 FROM tab1
----
-50

skipif mysql # not compatible
query I rowsort label-8989
SELECT DISTINCT - MIN ( ALL 50 ) AS col1 FROM tab1
----
-50

query I rowsort
SELECT col0 * - col0 FROM tab1 WHERE ( + - 61 ) IS NULL
----

query I rowsort
SELECT ALL - col2 + + col0 * + 74 * 48 + + ( col1 ) FROM tab2
----
163420
227365
266409

onlyif mysql # aggregate syntax: 
query I rowsort label-8992
SELECT DISTINCT 24 + - COUNT( * ) AS col0 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-8992
SELECT DISTINCT 24 + - COUNT ( * ) AS col0 FROM tab2
----
21

query I rowsort
SELECT ALL - 14 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

onlyif mysql # aggregate syntax: 
query I rowsort label-8994
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-8994
SELECT ALL ( + COUNT ( * ) ) col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT col0 * + 98 FROM tab2 AS cor0
----
4508
6272
7350

query I rowsort
SELECT ALL - col2 * - 56 AS col2 FROM tab0 AS cor0
----
2632
5544
560

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 > + + 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT ALL + ( COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8998
SELECT ALL + ( COUNT ( * ) ) FROM tab0 cor0
----
3

query I rowsort
SELECT - col2 / + col1 AS col0 FROM tab1 AS cor0 WHERE NOT - 78 + - 43 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9000
SELECT DISTINCT MAX( 99 ) AS col2 FROM tab2 AS cor0 WHERE NULL < - 32 / - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9000
SELECT DISTINCT MAX ( 99 ) AS col2 FROM tab2 AS cor0 WHERE NULL < - 32 / - CAST ( NULL AS INTEGER )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = 91
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 ) > + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT DISTINCT + 29 * + ( - COUNT( * ) ) FROM tab2 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-9003
SELECT DISTINCT + 29 * + ( - COUNT ( * ) ) FROM tab2 AS cor0
----
-87

onlyif mysql # DIV for integer division: 
query II rowsort label-9004
SELECT DISTINCT + col1 DIV + col0 + + col1 * + - col1 * col2 AS col0, col1 FROM tab1 AS cor0
----
-1475
5
-150212
47
-18816
14

skipif mysql # not compatible
query II rowsort label-9004
SELECT DISTINCT + col1 / + col0 + + col1 * + - col1 * col2 AS col0, col1 FROM tab1 AS cor0
----
-1475
5
-150212
47
-18816
14

query I rowsort
SELECT + 56 AS col2 FROM tab1 WHERE NOT - + ( - col1 ) * + + col2 NOT IN ( - 60 )
----

query I rowsort
SELECT col0 * col0 * - - col2 AS col0 FROM tab1
----
249696
426275
563108

onlyif mysql # DIV for integer division: 
query I rowsort label-9007
SELECT + 9 DIV - 19 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9007
SELECT + 9 / - 19 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( - 4 * col1 + + + 50 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9009
SELECT DISTINCT 88 DIV + col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT 88 / + col2 FROM tab2
----
1
2
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9010
SELECT col0 DIV 29 DIV - - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9010
SELECT col0 / 29 / - - col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9011
SELECT * FROM tab0 WHERE NOT NULL IN ( + 63 * + col1 + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9011
SELECT * FROM tab0 WHERE NOT NULL IN ( + 63 * + col1 + - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9012
SELECT + COUNT( * ) DIV - 23 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9012
SELECT + COUNT ( * ) / - 23 AS col2 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL BETWEEN NULL AND col0 * + col0 / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT + COUNT( ALL + - col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9014
SELECT + COUNT ( ALL + - col0 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9015
SELECT ALL - + CAST( + - col2 AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9015
SELECT ALL - + CAST ( + - col2 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE + col2 + - + col1 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL - 69 + - col2 - + - 91 * + col2 AS col1 FROM tab0 AS cor0
----
4161
831
8841

query I rowsort
SELECT + 7 * 87 * + 4 AS col0 FROM tab0
----
2436
2436
2436

query II rowsort
SELECT ALL col2, 18 + + - col0 FROM tab2 AS cor0
----
23
-28
40
-46
58
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9020
SELECT DISTINCT - COUNT( * ) + + 59 DIV COUNT( * ) + - COUNT( DISTINCT col2 ) AS col1 FROM tab0 cor0
----
13

skipif mysql # not compatible
query I rowsort label-9020
SELECT DISTINCT - COUNT ( * ) + + 59 / COUNT ( * ) + - COUNT ( DISTINCT col2 ) AS col1 FROM tab0 cor0
----
13

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - col2 * - col0 + - 91 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9022
SELECT - col1 + - + col0 * - 81 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9022
SELECT - col1 + - + col0 * - 81 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( + 94 ) + - col1 + col1 FROM tab0 AS cor0
----
94
94
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9024
SELECT DISTINCT - + col2 + - col1 * - - CAST( NULL AS SIGNED ) * - 40 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9024
SELECT DISTINCT - + col2 + - col1 * - - CAST ( NULL AS INTEGER ) * - 40 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 79 + - - col1 AS col2 FROM tab2
----
130
146
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 * - 66 + + ( - + col2 ) * + col1 * col1 col0 FROM tab1
----
-152390
-20994
-3653

query II rowsort
SELECT ALL - col1 AS col0, col1 AS col0 FROM tab0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT ( + col2 ) * + col1 * - - col1 - + + col2 - - col2 FROM tab0 AS cor0
----
308367
4410
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 13 col2, + 73 FROM tab1 AS cor0
----
13
73
13
73
13
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9030
SELECT SUM( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9030
SELECT SUM ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL - + col1 AS col0, - col2 AS col0 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

query II rowsort
SELECT col2 AS col1, + 22 AS col0 FROM tab1 AS cor0
----
59
22
68
22
96
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9033
SELECT CAST( NULL AS SIGNED ), col2 AS col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-9033
SELECT CAST ( NULL AS INTEGER ), col2 AS col1 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + 49 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT DISTINCT + COUNT( * ) + - MIN( + ( + - col2 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + 18 + 2 NOT BETWEEN + col2 AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9035
SELECT DISTINCT + COUNT ( * ) + - MIN ( + ( + - col2 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT ( + 18 + 2 NOT BETWEEN + col2 AND NULL )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( - 44 ) * - - col1 AS col2 FROM tab2 WHERE NOT NULL IS NULL OR + col1 + + 49 IS NOT NULL
----
-2244
-2948
-3388

query I rowsort
SELECT col1 * + - 13 FROM tab2
----
-1001
-663
-871

query I rowsort
SELECT DISTINCT - col1 * + col0 + - col1 FROM tab1 AS cor0
----
-430
-4324
-728

onlyif mysql # DIV for integer division: 
query I rowsort label-9040
SELECT + col1 DIV - - 67 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9040
SELECT + col1 / - - 67 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT col0 + - col0 AS col2, col1 FROM tab1 AS cor0
----
0
14
0
47
0
5

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE - 6 > ( NULL )
----

query I rowsort
SELECT DISTINCT 70 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
70

query II rowsort
SELECT 85 AS col1, - 83 AS col1 FROM tab0
----
85
-83
85
-83
85
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT + 90 * + + COUNT( * ) FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-9046
SELECT + 90 * + + COUNT ( * ) FROM tab2
----
270

onlyif mysql # DIV for integer division: 
query I rowsort label-9047
SELECT + col2 DIV + + col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9047
SELECT + col2 / + + col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - - 96 * + 19 + + + col1 FROM tab1 AS cor0
----
1829
1838
1871

onlyif mysql # DIV for integer division: 
query I rowsort label-9049
SELECT - 41 DIV col0 col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9049
SELECT - 41 / col0 col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9050
SELECT + 46 DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9050
SELECT + 46 / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * - 18 - - col1 * 94 * ( + + 75 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col2 - + - 98 AS col0 FROM tab0 AS cor0
----
108
145
197

query I rowsort
SELECT 31 * + col1 - - 41 AS col1 FROM tab1
----
1498
196
475

query I rowsort
SELECT DISTINCT col2 + 27 FROM tab2
----
50
67
85

query I rowsort
SELECT 40 + + + 60 + - 86 AS col0 FROM tab0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT ALL - + COUNT( * ) - + 1 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL - + COUNT ( * ) - + 1 FROM tab0 AS cor0
----
-4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - col0 AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 87 * col2 col0 FROM tab2 AS cor0
----
2001
3480
5046

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9059
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 * + - ( col1 ) * - + 92 * - - CAST( NULL AS SIGNED ) + col1 - 45 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9059
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 * + - ( col1 ) * - + 92 * - - CAST ( NULL AS INTEGER ) + col1 - 45 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9060
SELECT + MAX( col1 ) col2, MAX( + - 60 ) FROM tab2 cor0
----
77
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9060
SELECT + MAX ( col1 ) col2, MAX ( + - 60 ) FROM tab2 cor0
----
77
-60

query I rowsort
SELECT col0 * col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
225
7569
9409

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE col0 * - + col1 > + - ( + 38 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col1 * - col0 - 0
----

query II rowsort
SELECT - col0, ( - col0 ) AS col2 FROM tab2
----
-46
-46
-64
-64
-75
-75

query I rowsort
SELECT ALL + col1 * + - col2 + - ( + col0 ) + + 93 FROM tab2
----
-1126
-3051
-3868

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT + 29 + COUNT( * ) AS col1 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-9066
SELECT + 29 + COUNT ( * ) AS col1 FROM tab1
----
32

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 BETWEEN - 1 AND NULL
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - - 99 col1 FROM tab0
----
2079
8019
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT DISTINCT + 41 * - COUNT( * ) FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-9069
SELECT DISTINCT + 41 * - COUNT ( * ) FROM tab0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT ALL - MAX( - col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-9070
SELECT ALL - MAX ( - col0 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
15

query I rowsort
SELECT ALL - col0 * + + 13 FROM tab2
----
-598
-832
-975

query II rowsort
SELECT - + col2, - 22 AS col0 FROM tab0 cor0
----
-10
-22
-47
-22
-99
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 col2 FROM tab0 AS cor0
----
-33
-33
-33

query I rowsort
SELECT DISTINCT - col2 + - col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9075
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / 90 + + col0 * + 69 + col2 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9075
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / 90 + + col0 * + 69 + col2 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 20 + - col2 + - col2 FROM tab1 AS cor0
----
-116
-172
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-9077
SELECT - - col1 DIV - col0 + - 75 FROM tab0 AS cor0
----
-75
-75
-80

skipif mysql # not compatible
query I rowsort label-9077
SELECT - - col1 / - col0 + - 75 FROM tab0 AS cor0
----
-75
-75
-80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9078
SELECT DISTINCT + CAST( - col0 AS SIGNED ), - col2 + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-9078
SELECT DISTINCT + CAST ( - col0 AS INTEGER ), - col2 + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 53 + + 36 * - 61 AS col0 FROM tab1
----
-2143

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * + col0 IS NULL
----

query II rowsort
SELECT + col2, + col2 * - ( col2 ) FROM tab1 AS cor0
----
59
-3481
68
-4624
96
-9216

query II rowsort
SELECT - 61, + 94 AS col2 FROM tab2 AS cor0
----
-61
94
-61
94
-61
94

query I rowsort
SELECT - col2 * + 94 FROM tab1
----
-5546
-6392
-9024

query II rowsort
SELECT 48 AS col1, 64 FROM tab0
----
48
64
48
64
48
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + 9 ) col2 FROM tab0 AS cor0
----
-9
-9
-9

query II rowsort
SELECT - + 82 AS col2, col0 * + col1 FROM tab2 AS cor0
----
-82
2346
-82
4928
-82
5025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9087
SELECT ALL + CAST( NULL AS SIGNED ) col1, col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9087
SELECT ALL + CAST ( NULL AS INTEGER ) col1, col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT ALL + - col0 * + + col1 FROM tab1 AS cor0 WHERE 6 BETWEEN NULL AND col1 / col1 + + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT + 10 * + + MAX( ALL col1 ) AS col1 FROM tab0 AS cor0
----
810

skipif mysql # not compatible
query I rowsort label-9089
SELECT + 10 * + + MAX ( ALL col1 ) AS col1 FROM tab0 AS cor0
----
810

query II rowsort
SELECT - col0, + 63 AS col2 FROM tab0 AS cor0
----
-15
63
-87
63
-97
63

query I rowsort
SELECT ALL ( + - 8 ) FROM tab0 AS cor0
----
-8
-8
-8

query II rowsort
SELECT - - 65, col2 FROM tab1 AS cor0
----
65
59
65
68
65
96

onlyif mysql # aggregate syntax: 
query II rowsort label-9093
SELECT DISTINCT + COUNT( * ) AS col0, + COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9093
SELECT DISTINCT + COUNT ( * ) AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - 51 col2 FROM tab2
----
-1173
-2040
-2958

query I rowsort
SELECT ALL + ( - - 47 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
47
47
47

query I rowsort
SELECT DISTINCT ( + - col2 ) * + - col0 AS col1 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT - col2 * - col1 + - col1 + + + col1 FROM tab1 AS cor0
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 >= + col1 * + col1 * ( + + col0 )
----

query I rowsort
SELECT ALL + 28 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT + + 63 FROM tab1 cor0
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 4 ) * col2 col0 FROM tab2 AS cor0
----
160
232
92

query II rowsort
SELECT ALL + + col0, - col1 * col2 FROM tab0 AS cor0
----
15
-3807
87
-210
97
-99

query II rowsort
SELECT 44 - - - ( - 58 ), col0 * - col1 + + col1 AS col1 FROM tab0 AS cor0
----
102
-1134
102
-1806
102
-96

query I rowsort
SELECT 79 - + 61 AS col1 FROM tab2 AS cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT ALL + + SUM( + col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9105
SELECT ALL + + SUM ( + col1 ) AS col0 FROM tab1 AS cor0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-9106
SELECT DISTINCT col0 DIV - 64 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT col0 / - 64 FROM tab2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9107
SELECT DISTINCT SUM( 18 ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-9107
SELECT DISTINCT SUM ( 18 ) FROM tab0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9108
SELECT CAST( - col2 AS SIGNED ) AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9108
SELECT CAST ( - col2 AS INTEGER ) AS col2 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > ( - - 50 ) * col1 - - col1 + - 1 * + col1 + + col1
----

query I rowsort
SELECT + ( + 82 ) AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 col0 FROM tab1
----
44

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE 56 * col1 + + 88 / + col2 + col2 IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL + col0 + col0 + - col2 - - col0 + 14 * + - 70 * + col1 + + 76 + + col2 AS col1 FROM tab1 cor0
----
-13491
-4569
-45711

onlyif mysql # aggregate syntax: 
query I rowsort label-9114
SELECT ALL COUNT( 35 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9114
SELECT ALL COUNT ( 35 ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT DISTINCT COUNT( col1 ) AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT COUNT ( col1 ) AS col0 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9116
SELECT ALL + 45 * COUNT( + col0 ) + SUM( - CAST( col2 AS SIGNED ) ) - - COUNT( ALL - col2 ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9116
SELECT ALL + 45 * COUNT ( + col0 ) + SUM ( - CAST ( col2 AS INTEGER ) ) - - COUNT ( ALL - col2 ) FROM tab0 AS cor0
----
-18

query I rowsort
SELECT ALL + 65 + col2 FROM tab0 AS cor0
----
112
164
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT ALL + ( - + 29 ) + + - COUNT( * ) FROM tab2 AS cor0 WHERE col2 * - col2 + - - col0 IS NULL
----
-29

skipif mysql # not compatible
query I rowsort label-9118
SELECT ALL + ( - + 29 ) + + - COUNT ( * ) FROM tab2 AS cor0 WHERE col2 * - col2 + - - col0 IS NULL
----
-29

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9120
SELECT ALL - 58 * 70 DIV - col2 FROM tab0
----
406
41
86

skipif mysql # not compatible
query I rowsort label-9120
SELECT ALL - 58 * 70 / - col2 FROM tab0
----
406
41
86

query I rowsort
SELECT - col1 * - - 44 * + - col2 + + col2 AS col2 FROM tab0
----
167555
4455
9250

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT - - COUNT( * ) + COUNT( DISTINCT + col1 ) FROM tab1 WHERE + + ( + col2 ) IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-9122
SELECT - - COUNT ( * ) + COUNT ( DISTINCT + col1 ) FROM tab1 WHERE + + ( + col2 ) IS NOT NULL
----
6

query I rowsort
SELECT - col2 + + 79 + - 83 FROM tab1
----
-100
-63
-72

query I rowsort
SELECT ALL - col2 + 97 * + col1 * - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9125
SELECT + SUM( ALL - + 62 ) FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-9125
SELECT + SUM ( ALL - + 62 ) FROM tab0 AS cor0
----
-186

query II rowsort
SELECT ALL col0 AS col2, + 33 FROM tab1 AS cor0
----
51
33
85
33
91
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT ( COUNT( - - 35 ) ) - COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9127
SELECT ( COUNT ( - - 35 ) ) - COUNT ( * ) AS col2 FROM tab1
----
0

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT ALL - + 25 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

query I rowsort
SELECT ALL + col1 + - + col1 + + col2 FROM tab1
----
59
68
96

query I rowsort
SELECT + - 93 * - col1 * + col0 + - ( col1 ) FROM tab2 AS cor0
----
218127
458227
467258

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * + + ( + col0 ) < + col1 * + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * + - 27 FROM tab1 AS cor0
----
-1269
-135
-378

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 22 * + 49 col0, + 8 FROM tab2 AS cor0
----
1078
8

query II rowsort
SELECT + + col1 * col2 AS col2, col2 * col0 AS col0 FROM tab2 AS cor0
----
1173
1058
3080
2560
3886
4350

query I rowsort
SELECT col2 * + - 78 FROM tab1 AS cor0
----
-4602
-5304
-7488

query III rowsort
SELECT * FROM tab0 WHERE NOT 28 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9138
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 * CAST( NULL AS SIGNED ) + - + CAST( 37 AS SIGNED ) - + col0 ) > + col0
----

skipif mysql # not compatible
query III rowsort label-9138
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col0 * CAST ( NULL AS INTEGER ) + - + CAST ( 37 AS INTEGER ) - + col0 ) > + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT ALL - 31 * - COUNT( * ) AS col1 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-9139
SELECT ALL - 31 * - COUNT ( * ) AS col1 FROM tab1
----
93

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9140
SELECT CAST( NULL AS DECIMAL ) FROM tab1 WHERE NOT NULL IN ( + - 25 )
----

skipif mysql # not compatible
query I rowsort label-9140
SELECT CAST ( NULL AS REAL ) FROM tab1 WHERE NOT NULL IN ( + - 25 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9141
SELECT DISTINCT 60 DIV + + col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT 60 / + + col2 FROM tab0
----
0
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9142
SELECT MIN( - + 64 ) FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-9142
SELECT MIN ( - + 64 ) FROM tab0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9143
SELECT DISTINCT COUNT( col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9143
SELECT DISTINCT COUNT ( col2 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE + 10 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE ( + col1 + - col1 + - 96 ) BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT + - MAX( ALL - 54 ) FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-9146
SELECT + - MAX ( ALL - 54 ) FROM tab2 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT SUM( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9147
SELECT SUM ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT COUNT( ALL - - col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9148
SELECT COUNT ( ALL - - col0 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 9 AS col0 FROM tab1 AS cor0 WHERE NOT 18 * ( 24 ) >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 <= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9151
SELECT + col0 * + ( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9151
SELECT + col0 * + ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col2 * + col0 AS col1, + col2 FROM tab0 AS cor0
----
-705
47
-870
10
-9603
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <= 0 + - 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9154
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE 92 BETWEEN - 25 AND col1
----
0

skipif mysql # not compatible
query I rowsort label-9154
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE 92 BETWEEN - 25 AND col1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9155
SELECT - + 37 DIV + + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9155
SELECT - + 37 / + + col0 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9156
SELECT ALL + + CAST( - 56 AS SIGNED ) + - COUNT( * ) + COUNT( * ) * - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL + + CAST ( - 56 AS INTEGER ) + - COUNT ( * ) + COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-50

query II rowsort
SELECT ALL ( - + col2 ) * col1 - + 60 + - col2 * + col1 + - col1 AS col2, 58 AS col1 FROM tab1 AS cor0
----
-2762
58
-6499
58
-655
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - 16 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 > col2
----

query II rowsort
SELECT + col2 AS col2, - col1 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + col0 AS col2 FROM tab2 WHERE - col0 IS NULL
----

query I rowsort
SELECT ALL + col0 * - + col0 FROM tab0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT DISTINCT + COUNT( * ) col0 FROM tab1, tab0 cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9163
SELECT DISTINCT + COUNT ( * ) col0 FROM tab1, tab0 cor0
----
9

query I rowsort
SELECT + col0 + - + 54 FROM tab2 WHERE col0 >= - - 24
----
-8
10
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 58 col0, - col1 AS col1 FROM tab1
----
-58
-14
-58
-47
-58
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-9166
SELECT - 32, MAX( DISTINCT - 36 ) AS col0 FROM tab0
----
-32
-36

skipif mysql # not compatible
query II rowsort label-9166
SELECT - 32, MAX ( DISTINCT - 36 ) AS col0 FROM tab0
----
-32
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9167
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - ( + - col0 ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-9169
SELECT ALL + 71, - 19 * COUNT( * ) AS col2 FROM tab2 cor0
----
71
-57

skipif mysql # not compatible
query II rowsort label-9169
SELECT ALL + 71, - 19 * COUNT ( * ) AS col2 FROM tab2 cor0
----
71
-57

query I rowsort
SELECT - + col2 * 10 * - + col2 * + + col2 AS col0 FROM tab0 AS cor0
----
10000
1038230
9702990

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT DISTINCT - SUM( + 0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9171
SELECT DISTINCT - SUM ( + 0 ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-9172
SELECT - 33 * ( col2 ) + + - col2 AS col1, + 41 DIV - col2 AS col1 FROM tab2 AS cor0
----
-1360
-1
-1972
0
-782
-1

skipif mysql # not compatible
query II rowsort label-9172
SELECT - 33 * ( col2 ) + + - col2 AS col1, + 41 / - col2 AS col1 FROM tab2 AS cor0
----
-1360
-1
-1972
0
-782
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT ALL + COUNT( + 88 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9174
SELECT ALL + COUNT ( + 88 ) FROM tab2
----
3

query II rowsort
SELECT - col1 * 12, - 85 AS col0 FROM tab0
----
-12
-85
-252
-85
-972
-85

query I rowsort
SELECT ALL - 64 * - ( 24 ) * + col0 AS col2 FROM tab1
----
130560
139776
78336

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 + + + 30 + col1 + + - col1 / - - 8 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9178
SELECT DISTINCT + 44 DIV + + 93 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT + 44 / + + 93 FROM tab2 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2 / 66 + - col0
----

query II rowsort
SELECT - + col2 + + + col2 + - - col2, - col0 AS col2 FROM tab0 AS cor0
----
10
-87
47
-15
99
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9181
SELECT DISTINCT MIN( - col2 ) col1 FROM tab0 AS cor0 WHERE NOT - 17 IS NULL
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9181
SELECT DISTINCT MIN ( - col2 ) col1 FROM tab0 AS cor0 WHERE NOT - 17 IS NULL
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT + + SUM( DISTINCT + - col2 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-9182
SELECT + + SUM ( DISTINCT + - col2 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT DISTINCT - 11 + COUNT( * ) - 88 AS col2 FROM tab2 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT - 11 + COUNT ( * ) - 88 AS col2 FROM tab2 AS cor0
----
-96

query I rowsort
SELECT + + col1 + - 86 AS col0 FROM tab2 AS cor0
----
-19
-35
-9

query I rowsort
SELECT DISTINCT col0 * - col1 + + - col1 * + col1 * - 77 AS col0 FROM tab2
----
197931
340628
451605

query I rowsort
SELECT col0 * col2 * + + 57 + + 32 FROM tab0
----
40217
49622
547403

query I rowsort
SELECT DISTINCT + 47 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9188
SELECT DISTINCT - col1 + - 18 - - CAST( - CAST( - 10 AS SIGNED ) AS SIGNED ) * 61 * - 11 FROM tab0
----
-6729
-6749
-6809

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT - col1 + - 18 - - CAST ( - CAST ( - 10 AS INTEGER ) AS INTEGER ) * 61 * - 11 FROM tab0
----
-6729
-6749
-6809

query I rowsort
SELECT ALL - col1 * + col2 * + col1 - + - col1 + col1 + - col1 * col2 FROM tab0
----
-196
-312012
-4578

query I rowsort
SELECT ALL col1 * - 50 FROM tab2
----
-2550
-3350
-3850

query I rowsort
SELECT + col2 - - col1 + + col0 FROM tab1 WHERE NOT + ( + - 19 ) <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 col2 FROM tab2 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9193
SELECT ALL + SUM( DISTINCT col1 ) AS col1 FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-9193
SELECT ALL + SUM ( DISTINCT col1 ) AS col1 FROM tab0 cor0
----
103

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 + - - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9195
SELECT - CAST( NULL AS SIGNED ) * ( col1 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9195
SELECT - CAST ( NULL AS INTEGER ) * ( col1 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * 28 + - ( + - col1 ) col1 FROM tab0 AS cor0
----
-1235
-259
-2771

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT - MAX( + col0 ) * - + 46 FROM tab1 AS cor0
----
4186

skipif mysql # not compatible
query I rowsort label-9197
SELECT - MAX ( + col0 ) * - + 46 FROM tab1 AS cor0
----
4186

query I rowsort
SELECT col0 * + + col0 + - col0 * + col0 * + ( col2 ) + col2 FROM tab2 cor0
----
-159704
-320567
-46529

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT - 4 * + - COUNT( * ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9199
SELECT - 4 * + - COUNT ( * ) FROM tab2 AS cor0
----
12

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + ( + col1 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9201
SELECT + COUNT( * ) / + CAST( + ( - 70 ) AS DECIMAL ) - - AVG ( col0 ) FROM tab0 WHERE NOT ( + col2 > NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9201
SELECT + COUNT ( * ) / + CAST ( + ( - 70 ) AS REAL ) - - AVG ( col0 ) FROM tab0 WHERE NOT ( + col2 > NULL )
----
NULL

query II rowsort
SELECT - col2 AS col2, + col2 AS col2 FROM tab0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT DISTINCT - 65 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT + + col0 IN ( + col2, col1 )
----
10
47
99

query I rowsort
SELECT ALL + ( col2 ) * - col1 AS col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT + + 48 FROM tab2 cor0
----
48
48
48

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE NOT NULL >= - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) * 98 col2 FROM tab0 AS cor0
----
1470
8526
9506

query I rowsort
SELECT + col1 * 64 * + 33 AS col1 FROM tab2 AS cor0
----
107712
141504
162624

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT ALL + + COUNT( + + col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9211
SELECT ALL + + COUNT ( + + col0 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT - + 6 FROM tab1 cor0
----
-6
-6
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-9213
SELECT col1 DIV + + 29 + col0 FROM tab2 AS cor0
----
47
66
77

skipif mysql # not compatible
query I rowsort label-9213
SELECT col1 / + + 29 + col0 FROM tab2 AS cor0
----
47
66
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9214
SELECT ALL + - COUNT( * ) + - + COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9214
SELECT ALL + - COUNT ( * ) + - + COUNT ( * ) FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9215
SELECT ALL - + 49 + + + MIN( + col2 ) AS col1 FROM tab0 cor0
----
-39

skipif mysql # not compatible
query I rowsort label-9215
SELECT ALL - + 49 + + + MIN ( + col2 ) AS col1 FROM tab0 cor0
----
-39

query I rowsort
SELECT ALL - 97 - + 28 AS col2 FROM tab1
----
-125
-125
-125

query I rowsort
SELECT col0 * 81 + + 72 AS col0 FROM tab1
----
4203
6957
7443

query I rowsort
SELECT ALL col1 * - + col1 AS col2 FROM tab0 WHERE - col0 IS NOT NULL
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT MAX( DISTINCT + + 26 ) + + MAX( ALL + - 83 ) AS col1 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-9219
SELECT MAX ( DISTINCT + + 26 ) + + MAX ( ALL + - 83 ) AS col1 FROM tab0
----
-57

query II rowsort
SELECT col2 + col1 * - + ( - col1 ), + col1 AS col1 FROM tab1
----
2277
47
292
14
84
5

query I rowsort
SELECT DISTINCT 46 + - col1 FROM tab0
----
-35
25
45

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 23 >= + ( + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT ALL 73 - COUNT( * ) FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-9223
SELECT ALL 73 - COUNT ( * ) FROM tab2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT DISTINCT - COUNT( DISTINCT + - 52 ) - - COUNT( * ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9224
SELECT DISTINCT - COUNT ( DISTINCT + - 52 ) - - COUNT ( * ) FROM tab1 AS cor0
----
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9225
SELECT ALL ( - - COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( ( - + CAST( NULL AS DECIMAL ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-9225
SELECT ALL ( - - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( ( - + CAST ( NULL AS REAL ) ) )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 - 22 + col0 col1 FROM tab0 AS cor0
----
-24
-54
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9227
SELECT ( MIN( - - 59 ) ) AS col1 FROM tab0 cor0
----
59

skipif mysql # not compatible
query I rowsort label-9227
SELECT ( MIN ( - - 59 ) ) AS col1 FROM tab0 cor0
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9228
SELECT - MIN( + 44 ) DIV - 72 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9228
SELECT - MIN ( + 44 ) / - 72 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT COUNT( DISTINCT + - col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9229
SELECT COUNT ( DISTINCT + - col0 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9230
SELECT ALL + COUNT( * ) DIV 35 * - 78 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL + COUNT ( * ) / 35 * - 78 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + 20 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 9 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT - 69 AS col2 FROM tab2 cor0 WHERE ( NULL ) = col2 / - col2
----

query I rowsort
SELECT DISTINCT - + ( - - col2 ) AS col2 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT DISTINCT - COUNT( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT - COUNT ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - - 88 AS col1 FROM tab0 cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT MAX( ALL 83 ) * + + 88 AS col1 FROM tab2 AS cor0
----
7304

skipif mysql # not compatible
query I rowsort label-9237
SELECT MAX ( ALL 83 ) * + + 88 AS col1 FROM tab2 AS cor0
----
7304

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT ALL - MAX( DISTINCT col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL - MAX ( DISTINCT col1 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT 97 * - col2 AS col1 FROM tab0
----
-4559
-9603
-970

onlyif mysql # aggregate syntax: 
query II rowsort label-9240
SELECT + 69 * + + COUNT( * ) * - COUNT( * ) AS col0, COUNT( - - 4 ) AS col0 FROM tab1
----
-621
3

skipif mysql # not compatible
query II rowsort label-9240
SELECT + 69 * + + COUNT ( * ) * - COUNT ( * ) AS col0, COUNT ( - - 4 ) AS col0 FROM tab1
----
-621
3

query I rowsort
SELECT DISTINCT - col2 + + - 95 FROM tab0
----
-105
-142
-194

query I rowsort
SELECT - + 9 * - col2 FROM tab0 WHERE NOT col0 BETWEEN + - col1 AND NULL
----

query I rowsort
SELECT 45 + - col2 AS col2 FROM tab1
----
-14
-23
-51

query I rowsort
SELECT + 29 + + col0 + - - col2 AS col1 FROM tab0
----
126
225
91

query II rowsort
SELECT ALL - col0 AS col1, - 32 * - col2 + - 69 AS col2 FROM tab1 AS cor0
----
-51
3003
-85
1819
-91
2107

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9246
SELECT - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9246
SELECT - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9247
SELECT DISTINCT + 91 + - col2 + - col0 DIV col2 FROM tab1
----
-5
22
31

skipif mysql # not compatible
query I rowsort label-9247
SELECT DISTINCT + 91 + - col2 + - col0 / col2 FROM tab1
----
-5
22
31

query I rowsort
SELECT + col1 * - + col2 AS col0 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT ALL - 84 - ( 15 ) FROM tab2 AS cor0
----
-99
-99
-99

query II rowsort
SELECT DISTINCT + col2, 11 FROM tab0 AS cor0
----
10
11
47
11
99
11

query II rowsort
SELECT ALL - col1, 28 AS col0 FROM tab1 AS cor0
----
-14
28
-47
28
-5
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9252
SELECT COUNT( * ) + - 70 * 94 + 28 AS col0 FROM tab2 AS cor0
----
-6549

skipif mysql # not compatible
query I rowsort label-9252
SELECT COUNT ( * ) + - 70 * 94 + 28 AS col0 FROM tab2 AS cor0
----
-6549

query I rowsort
SELECT ALL + col2 + - - col0 AS col0 FROM tab2 AS cor0
----
104
133
69

query II rowsort
SELECT DISTINCT - col1 AS col2, col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

query I rowsort
SELECT - - 75 AS col2 FROM tab0 AS cor0
----
75
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9256
SELECT ALL col1 DIV - col2 + - + col2 FROM tab0
----
-12
-48
-99

skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL col1 / - col2 + - + col2 FROM tab0
----
-12
-48
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9257
SELECT ALL - COUNT( DISTINCT 18 ) + CAST( + 42 AS SIGNED ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-9257
SELECT ALL - COUNT ( DISTINCT 18 ) + CAST ( + 42 AS INTEGER ) FROM tab2
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9258
SELECT DISTINCT MIN( + col2 ) - - CAST( + AVG ( 57 ) AS SIGNED ) + - 97 col0 FROM tab2
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9258
SELECT DISTINCT MIN ( + col2 ) - - CAST ( + AVG ( 57 ) AS INTEGER ) + - 97 col0 FROM tab2
----
-17

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 + + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 - 10 col0, col0 * + col1 AS col0 FROM tab1
----
49
425
58
4277
86
714

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col0 >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT + - 81 * + COUNT( - 57 ) * - 42 FROM tab0 AS cor0
----
10206

skipif mysql # not compatible
query I rowsort label-9262
SELECT + - 81 * + COUNT ( - 57 ) * - 42 FROM tab0 AS cor0
----
10206

query I rowsort
SELECT DISTINCT - + ( + - col1 ) FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9264
SELECT + COUNT( * ) * - COUNT( * ) * - COUNT( * ) + - 13 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-9264
SELECT + COUNT ( * ) * - COUNT ( * ) * - COUNT ( * ) + - 13 FROM tab0 AS cor0
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9265
SELECT ALL CAST( NULL AS SIGNED ) / - 26 * + - AVG ( ALL + col0 ) - + 84 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9265
SELECT ALL CAST ( NULL AS INTEGER ) / - 26 * + - AVG ( ALL + col0 ) - + 84 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - ( + + 15 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

onlyif mysql # DIV for integer division: 
query II rowsort label-9267
SELECT ALL col2 DIV - ( + col0 ) AS col1, col2 FROM tab2
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-9267
SELECT ALL col2 / - ( + col0 ) AS col1, col2 FROM tab2
----
0
23
0
40
0
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT + + MAX( ALL - + col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9268
SELECT + + MAX ( ALL - + col0 ) AS col2 FROM tab2 AS cor0
----
-46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + 28 >= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col1 AS col0, - col1 + - col0 FROM tab1 AS cor0
----
14
-65
47
-138
5
-90

query I rowsort
SELECT DISTINCT 39 AS col2 FROM tab0 AS cor0
----
39

query II rowsort
SELECT col2 * + col1 - + col1 AS col2, 71 FROM tab1 AS cor0
----
1330
71
290
71
3149
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT ALL COUNT( DISTINCT 63 ) * - 95 AS col0 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-9273
SELECT ALL COUNT ( DISTINCT 63 ) * - 95 AS col0 FROM tab1 AS cor0
----
-95

query II rowsort
SELECT - 81 AS col2, + 95 AS col2 FROM tab1 cor0
----
-81
95
-81
95
-81
95

query II rowsort
SELECT col0, col1 AS col1 FROM tab0 cor0
----
15
81
87
21
97
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9276
SELECT ALL - - COUNT( + 24 ) + + 69 * COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9276
SELECT ALL - - COUNT ( + 24 ) + + 69 * COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-9277
SELECT ALL + - ( - + 69 ) * - + 32 + - col2 DIV + 75 FROM tab0 AS cor0
----
-2208
-2208
-2209

skipif mysql # not compatible
query I rowsort label-9277
SELECT ALL + - ( - + 69 ) * - + 32 + - col2 / + 75 FROM tab0 AS cor0
----
-2208
-2208
-2209

query I rowsort
SELECT DISTINCT + ( - + 65 ) AS col0 FROM tab1 AS cor0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9279
SELECT DISTINCT * FROM tab1 WHERE NOT + - CAST( + 49 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9279
SELECT DISTINCT * FROM tab1 WHERE NOT + - CAST ( + 49 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 * + - ( + 52 ) IS NOT NULL
----

query I rowsort
SELECT ALL ( + col0 ) + 34 FROM tab1
----
119
125
85

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
1
21
81

query I rowsort
SELECT + ( - 84 ) + - col0 FROM tab2 AS cor0
----
-130
-148
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT ALL - 49 + - COUNT( * ) * + - MIN( - ( + col2 ) ) * COUNT( * ) FROM tab2 cor0
----
-571

skipif mysql # not compatible
query I rowsort label-9284
SELECT ALL - 49 + - COUNT ( * ) * + - MIN ( - ( + col2 ) ) * COUNT ( * ) FROM tab2 cor0
----
-571

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT + - MAX( DISTINCT + 36 ) AS col0 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-9285
SELECT + - MAX ( DISTINCT + 36 ) AS col0 FROM tab2 AS cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9286
SELECT + CAST( NULL AS SIGNED ) * + ( 92 ) - - col1 + + + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9286
SELECT + CAST ( NULL AS INTEGER ) * + ( 92 ) - - col1 + + + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9287
SELECT ALL - ( + COUNT( * ) ), AVG ( ALL + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9287
SELECT ALL - ( + COUNT ( * ) ), AVG ( ALL + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
0
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 48 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 18 col1 FROM tab2 WHERE NULL NOT BETWEEN 71 AND + col0
----

query I rowsort
SELECT 54 AS col0 FROM tab0 WHERE NULL IS NULL
----
54
54
54

query I rowsort
SELECT - ( + 87 ) FROM tab0
----
-87
-87
-87

query I rowsort
SELECT + AVG ( ALL - + col1 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT - ( + col2 ), col0 FROM tab1
----
-59
85
-68
91
-96
51

query III rowsort
SELECT + col2 AS col1, col1, + ( 34 ) FROM tab2
----
9 values hashing to c87d65d572ea2721fcfd8f293fdc5c03

onlyif mysql # DIV for integer division: 
query II rowsort label-9295
SELECT + col0, col2 DIV + + col0 FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-9295
SELECT + col0, col2 / + + col0 FROM tab2
----
46
0
64
0
75
0

query II rowsort
SELECT - 16 AS col2, col1 AS col2 FROM tab2
----
-16
51
-16
67
-16
77

query I rowsort
SELECT DISTINCT + + ( col0 ) * + - 77 AS col0 FROM tab0 AS cor0
----
-1155
-6699
-7469

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT DISTINCT 3 * 83 + - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT 3 * 83 + - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
252

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT + 48 < 5 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9300
SELECT DISTINCT + col2 DIV - 95 AS col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9300
SELECT DISTINCT + col2 / - 95 AS col2 FROM tab0 AS cor0
----
-1
0

query II rowsort
SELECT 99 * - 71 AS col1, + 32 - - + col0 AS col2 FROM tab0
----
-7029
119
-7029
129
-7029
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT ALL + SUM( ( + + col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9302
SELECT ALL + SUM ( ( + + col0 ) ) FROM tab0
----
199

query I rowsort
SELECT + 0 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT col2 * + - col1 * + ( - col0 ) FROM tab1
----
25075
290836
68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 * - col2 AS col2, col1 * + 59 col0 FROM tab0 AS cor0
----
705
4779
870
1239
9603
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9306
SELECT ALL + ( + + 95 ) DIV - col2 + col0 FROM tab2 AS cor0 WHERE + col2 < + 75
----
42
62
74

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL + ( + + 95 ) / - col2 + col0 FROM tab2 AS cor0 WHERE + col2 < + 75
----
42
62
74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN + col0 AND col2 - - col1 * + - 85 + + 77
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9308
SELECT col0 * + - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9308
SELECT col0 * + - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9309
SELECT DISTINCT col2 - ( + CAST( col0 AS SIGNED ) ) AS col2 FROM tab2 cor0 WHERE col1 BETWEEN NULL AND + 45 * + - col1
----

skipif mysql # not compatible
query I rowsort label-9309
SELECT DISTINCT col2 - ( + CAST ( col0 AS INTEGER ) ) AS col2 FROM tab2 cor0 WHERE col1 BETWEEN NULL AND + 45 * + - col1
----

query II rowsort
SELECT DISTINCT col1 + + col0 AS col1, - 46 FROM tab1 cor0
----
138
-46
65
-46
90
-46

query I rowsort
SELECT 96 + + 86 AS col2 FROM tab1
----
182
182
182

onlyif mysql # aggregate syntax: 
query II rowsort label-9312
SELECT DISTINCT - 14 AS col0, COUNT( * ) AS col2 FROM tab2
----
-14
3

skipif mysql # not compatible
query II rowsort label-9312
SELECT DISTINCT - 14 AS col0, COUNT ( * ) AS col2 FROM tab2
----
-14
3

query I rowsort
SELECT - col1 / + 78 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 * + + 10 + + - col0 - + 59 FROM tab0
----
724
76
814

query I rowsort
SELECT + 37 + col1 FROM tab2
----
104
114
88

query II rowsort
SELECT DISTINCT - col1 AS col1, col1 AS col1 FROM tab2 AS cor0
----
-51
51
-67
67
-77
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9317
SELECT + + 27 DIV + col0 - - 44 AS col0 FROM tab2 AS cor0
----
44
44
44

skipif mysql # not compatible
query I rowsort label-9317
SELECT + + 27 / + col0 - - 44 AS col0 FROM tab2 AS cor0
----
44
44
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9318
SELECT DISTINCT + MAX( - 23 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-9318
SELECT DISTINCT + MAX ( - 23 ) AS col1 FROM tab2
----
-23

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT col1 IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9320
SELECT - 77 DIV col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9320
SELECT - 77 / col1 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= ( - 80 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9322
SELECT ALL + COUNT( * ) * + ( 25 ) FROM tab1 WHERE + col0 IS NOT NULL
----
75

skipif mysql # not compatible
query I rowsort label-9322
SELECT ALL + COUNT ( * ) * + ( 25 ) FROM tab1 WHERE + col0 IS NOT NULL
----
75

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NOT ( col2 ) NOT BETWEEN 2 AND ( + col0 * - 79 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9324
SELECT ALL COUNT( * ) - 47 AS col0 FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-9324
SELECT ALL COUNT ( * ) - 47 AS col0 FROM tab1
----
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9325
SELECT ALL + CAST( NULL AS SIGNED ) * 67 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9325
SELECT ALL + CAST ( NULL AS INTEGER ) * 67 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9326
SELECT * FROM tab1 WHERE NOT col0 IN ( + col1 * col1 + CAST( - 52 AS DECIMAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9326
SELECT * FROM tab1 WHERE NOT col0 IN ( + col1 * col1 + CAST ( - 52 AS REAL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9327
SELECT + 12 * CAST( + 95 AS SIGNED ) FROM tab2
----
1140
1140
1140

skipif mysql # not compatible
query I rowsort label-9327
SELECT + 12 * CAST ( + 95 AS INTEGER ) FROM tab2
----
1140
1140
1140

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT + 18 + COUNT( * ) * 12 AS col1 FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-9328
SELECT + 18 + COUNT ( * ) * 12 AS col1 FROM tab2
----
54

query I rowsort
SELECT 21 * + col1 + col2 AS col2 FROM tab0
----
120
1748
451

query I rowsort
SELECT - 91 + - ( + col0 ) FROM tab1
----
-142
-176
-182

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NULL IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9332
SELECT + col1 DIV 26 AS col2 FROM tab0 WHERE NOT col0 * col1 IS NULL
----
0
0
3

skipif mysql # not compatible
query I rowsort label-9332
SELECT + col1 / 26 AS col2 FROM tab0 WHERE NOT col0 * col1 IS NULL
----
0
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT MIN( 60 ) FROM tab1 WHERE + col0 IS NOT NULL
----
60

skipif mysql # not compatible
query I rowsort label-9333
SELECT MIN ( 60 ) FROM tab1 WHERE + col0 IS NOT NULL
----
60

query I rowsort
SELECT ( - col2 ) * col1 + - col2 AS col1 FROM tab2
----
-1196
-3120
-3944

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9335
SELECT 31 * - CAST( NULL AS SIGNED ) + + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9335
SELECT 31 * - CAST ( NULL AS INTEGER ) + + col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 + col0 ) BETWEEN ( + col2 ) AND col2 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 80 * col1 + col2 FROM tab0
----
1690
179
6527

query I rowsort
SELECT - col2 * col1 + col2 AS col1 FROM tab0
----
-200
-3760
0

query I rowsort
SELECT ALL 8 * - 67 FROM tab0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9340
SELECT ALL ( + SUM( ALL 77 ) ) + 37 AS col1 FROM tab2 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9340
SELECT ALL ( + SUM ( ALL 77 ) ) + 37 AS col1 FROM tab2 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT ALL 64 * COUNT( * ) AS col0 FROM tab0 WHERE - col1 IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL 64 * COUNT ( * ) AS col0 FROM tab0 WHERE - col1 IN ( col0 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 70 col2 FROM tab2 WHERE col2 NOT IN ( col2 )
----

query I rowsort
SELECT col1 - + 1 FROM tab1
----
13
4
46

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT MAX( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9345
SELECT MAX ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 / col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= + col1
----

query I rowsort
SELECT ( + 22 ) FROM tab2 cor0
----
22
22
22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9349
SELECT DISTINCT - CAST( 69 AS SIGNED ) AS col2 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-9349
SELECT DISTINCT - CAST ( 69 AS INTEGER ) AS col2 FROM tab0
----
-69

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 ) <= - ( col2 ) * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT 60 * COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2
----
540

skipif mysql # not compatible
query I rowsort label-9351
SELECT 60 * COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2
----
540

query I rowsort
SELECT ALL - col2 + - col2 * ( col1 ) FROM tab0 WHERE ( + 1 * + col0 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9353
SELECT ALL + COUNT( * ) * + SUM( col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 > col0
----
44

skipif mysql # not compatible
query I rowsort label-9353
SELECT ALL + COUNT ( * ) * + SUM ( col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 > col0
----
44

query I rowsort
SELECT DISTINCT - 2 * 61 FROM tab2 cor0
----
-122

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9355
SELECT * FROM tab0 AS cor0 WHERE NOT col0 >= + col1 - - CAST( NULL AS SIGNED ) * col2
----

skipif mysql # not compatible
query III rowsort label-9355
SELECT * FROM tab0 AS cor0 WHERE NOT col0 >= + col1 - - CAST ( NULL AS INTEGER ) * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT - COUNT( * ) * 5 AS col1 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9356
SELECT - COUNT ( * ) * 5 AS col1 FROM tab2 AS cor0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-9357
SELECT DISTINCT - 63 DIV 81 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9357
SELECT DISTINCT - 63 / 81 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT - SUM( ALL col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9358
SELECT - SUM ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT DISTINCT + 71 FROM tab1 AS cor0 WHERE NOT NULL IN ( 63 + col2 )
----

query I rowsort
SELECT DISTINCT - col2 / - 13 AS col1 FROM tab0 cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - - 34 + col0 AS col1 FROM tab0 AS cor0
----
121
131
49

query I rowsort
SELECT col0 * col0 AS col0 FROM tab2 WHERE + col0 * col1 IS NOT NULL
----
2116
4096
5625

query III rowsort
SELECT * FROM tab1 WHERE ( + 93 ) IS NULL
----

query I rowsort
SELECT ALL 67 + + + col0 AS col1 FROM tab1
----
118
152
158

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT ALL ( 66 ) * - COUNT( * ) AS col1 FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL ( 66 ) * - COUNT ( * ) AS col1 FROM tab0
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-9366
SELECT - col0 * col1 DIV 35 FROM tab0
----
-2
-34
-52

skipif mysql # not compatible
query I rowsort label-9366
SELECT - col0 * col1 / 35 FROM tab0
----
-2
-34
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT DISTINCT - ( + 82 ) * MIN( DISTINCT + col2 + - col2 ) FROM tab0 WHERE NOT col1 NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9367
SELECT DISTINCT - ( + 82 ) * MIN ( DISTINCT + col2 + - col2 ) FROM tab0 WHERE NOT col1 NOT IN ( col1 )
----
0

query I rowsort
SELECT DISTINCT 54 * - col0 FROM tab2
----
-2484
-3456
-4050

query I rowsort
SELECT ALL - col1 + + ( 26 ) * + col2 AS col0 FROM tab0
----
1141
239
2573

query I rowsort
SELECT + ( + 71 ) AS col1 FROM tab1
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9371
SELECT + COUNT( * ) + + - 98 FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-9371
SELECT + COUNT ( * ) + + - 98 FROM tab2
----
-95

query I rowsort
SELECT ( - col0 ) + ( col2 + + col1 ) FROM tab1
----
-21
24
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT + - 58 + - MIN( col0 ) AS col0 FROM tab2 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-9373
SELECT + - 58 + - MIN ( col0 ) AS col0 FROM tab2 AS cor0
----
-104

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 AS cor0 WHERE + col0 * col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT ALL MAX( DISTINCT - ( + ( - ( ( col0 ) ) ) ) ) col0 FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9375
SELECT ALL MAX ( DISTINCT - ( + ( - ( ( col0 ) ) ) ) ) col0 FROM tab1 AS cor0 WHERE NOT ( - col0 ) IS NOT NULL
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE 67 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT + 68 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
68

query I rowsort
SELECT DISTINCT + col2 - + 6 * - col2 FROM tab0
----
329
693
70

query I rowsort
SELECT - col1 - + 65 + + col2 FROM tab2 AS cor0
----
-102
-74
-93

query I rowsort
SELECT - col2 - 27 AS col2 FROM tab0 AS cor0
----
-126
-37
-74

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * - col1 + 17 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 98 + - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9383
SELECT ALL COUNT( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL COUNT ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 92 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9385
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( - CAST( NULL AS SIGNED ) / col0 + col0 * 14 )
----

skipif mysql # not compatible
query III rowsort label-9385
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( - CAST ( NULL AS INTEGER ) / col0 + col0 * 14 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 50 * - col1 + 73 col1 FROM tab0 AS cor0
----
1123
123
4123

query I rowsort
SELECT ALL + ( - 73 ) AS col0 FROM tab2 AS cor0
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT DISTINCT - + MAX( ALL + 53 ) FROM tab2 cor0
----
-53

skipif mysql # not compatible
query I rowsort label-9388
SELECT DISTINCT - + MAX ( ALL + 53 ) FROM tab2 cor0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-9389
SELECT + 98 DIV + + 79 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9389
SELECT + 98 / + + 79 FROM tab0 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9391
SELECT - CAST( - 85 AS SIGNED ) FROM tab0
----
85
85
85

skipif mysql # not compatible
query I rowsort label-9391
SELECT - CAST ( - 85 AS INTEGER ) FROM tab0
----
85
85
85

query I rowsort
SELECT 97 * + + col2 AS col0 FROM tab0
----
4559
9603
970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9393
SELECT MAX( ( CAST( - 16 AS SIGNED ) ) ) FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-9393
SELECT MAX ( ( CAST ( - 16 AS INTEGER ) ) ) FROM tab1
----
-16

query II rowsort
SELECT ( + col1 ) AS col1, col1 * - col1 AS col1 FROM tab0
----
1
-1
21
-441
81
-6561

query I rowsort
SELECT col2 * - + 99 FROM tab1
----
-5841
-6732
-9504

query I rowsort
SELECT ALL 83 * - col2 AS col1 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9397
SELECT ALL SUM( - col1 ) AS col1 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) <= col1 + + + 47
----
NULL

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL SUM ( - col1 ) AS col1 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) <= col1 + + + 47
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9398
SELECT + COUNT( * ) + + ( - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9398
SELECT + COUNT ( * ) + + ( - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE NOT - 65 > ( + col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-9399
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE NOT - 65 > ( + col1 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9400
SELECT ALL - + 25 DIV + + col1 + + CAST( - + col2 AS SIGNED ) FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL - + 25 / + + col1 + + CAST ( - + col2 AS INTEGER ) FROM tab2 cor0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 72 + col1 FROM tab1 cor0
----
119
77
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + - col0 col1 FROM tab0 cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT - + col0 + + + col2 AS col0 FROM tab1 AS cor0
----
-23
-26
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 2 + col2 * + col2 + + col1 col2 FROM tab0
----
10000
141
2384

query I rowsort
SELECT + 97 + + + col2 FROM tab2
----
120
137
155

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9407
SELECT ALL - col0 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9407
SELECT ALL - col0 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * + 69 FROM tab1
----
4071
4692
6624

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9409
SELECT ALL 26 AS col0 FROM tab0 WHERE ( NOT 40 NOT IN ( + - CAST( NULL AS DECIMAL ) + - col2 * col1 ) )
----

skipif mysql # not compatible
query I rowsort label-9409
SELECT ALL 26 AS col0 FROM tab0 WHERE ( NOT 40 NOT IN ( + - CAST ( NULL AS REAL ) + - col2 * col1 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 * 77 * col1 * + col2 + - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9411
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IN ( - - col2 - + col2 )
----

skipif mysql # not compatible
query I rowsort label-9411
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IN ( - - col2 - + col2 )
----

query I rowsort
SELECT + col2 - - - 67 FROM tab2 AS cor0
----
-27
-44
-9

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + col1 AS col2, col2 * ( ( + col1 ) ) col0 FROM tab2
----
0
1173
0
3080
0
3886

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 80 * + col0 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - 26 ) AS col0, 32 + - - col0 col1 FROM tab0 AS cor0
----
-26
119
-26
129
-26
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT - MAX( col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9417
SELECT - MAX ( col0 ) FROM tab0 AS cor0
----
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( ( 60 ) / - + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + ( - - col0 ) ) col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT + SUM( ALL + 71 ) * - - SUM( col0 ) AS col2 FROM tab0 AS cor0
----
42387

skipif mysql # not compatible
query I rowsort label-9420
SELECT + SUM ( ALL + 71 ) * - - SUM ( col0 ) AS col2 FROM tab0 AS cor0
----
42387

query I rowsort
SELECT - ( - - col2 ) FROM tab1 AS cor0
----
-59
-68
-96

query II rowsort
SELECT + col0 * + col1 AS col1, + col1 + - + 6 FROM tab1 AS cor0
----
425
-1
4277
41
714
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - col0 BETWEEN ( NULL ) AND 71
----

query I rowsort
SELECT + 75 + + 99 FROM tab2 WHERE NOT + + 13 IS NULL
----
174
174
174

query I rowsort
SELECT 87 - + 44 * + col1 AS col0 FROM tab0 WHERE NOT ( + + 19 * col1 ) IS NOT NULL
----

query I rowsort
SELECT - ( + - 88 ) FROM tab0 cor0
----
88
88
88

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col0 NOT BETWEEN col2 AND NULL
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query II rowsort label-9428
SELECT + - 33, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-33
3

skipif mysql # not compatible
query II rowsort label-9428
SELECT + - 33, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-33
3

query II rowsort
SELECT ALL - col2, - col2 AS col1 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT - - COUNT( ALL + + col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9430
SELECT - - COUNT ( ALL + + col2 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN 75 AND - 60 + col2 - col2
----

query I rowsort
SELECT - 18 FROM tab0 WHERE ( ( NOT ( + 47 * - + col1 + - col2 IN ( - col1 ) ) ) )
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT + + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9433
SELECT + + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9434
SELECT DISTINCT + 46 + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
55

skipif mysql # not compatible
query I rowsort label-9434
SELECT DISTINCT + 46 + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
55

query II rowsort
SELECT + 4 * + + col0, 78 AS col2 FROM tab2 AS cor0
----
184
78
256
78
300
78

query I rowsort
SELECT ALL - - col2 * - col0 + col0 FROM tab2 AS cor0
----
-1012
-2496
-4275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9437
SELECT - CAST( NULL AS SIGNED ) * - + 65 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9437
SELECT - CAST ( NULL AS INTEGER ) * - + 65 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9438
SELECT - - col2 DIV - - col1 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-9438
SELECT - - col2 / - - col1 FROM tab1 AS cor0
----
1
11
6

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col2 / - - col2 NOT IN ( - col1, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * - col0 * + + 0 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 + col2 - - col2 FROM tab2 AS cor0 WHERE ( NULL ) >= col0
----

query I rowsort
SELECT ALL 88 + 35 AS col1 FROM tab1
----
123
123
123

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( ( NULL IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9444
SELECT ALL - 36 * ( + 34 ) * COUNT( * ) + 70 col1 FROM tab0 AS cor0
----
-3602

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9444
SELECT ALL - 36 * ( + 34 ) * COUNT ( * ) + 70 col1 FROM tab0 AS cor0
----
-3602

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col0 + 29 ) IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 16, - col2 * + col0 + - col0 AS col1 FROM tab1
----
16
-4947
16
-5100
16
-6279

onlyif mysql # aggregate syntax: 
query II rowsort label-9448
SELECT + COUNT( * ) AS col0, - ( - COUNT( * ) ) AS col0 FROM tab1 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-9448
SELECT + COUNT ( * ) AS col0, - ( - COUNT ( * ) ) AS col0 FROM tab1 cor0
----
3
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9449
SELECT ALL - CAST( - - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9449
SELECT ALL - CAST ( - - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
58
58
58

query I rowsort
SELECT ALL 49 * col2 * 22 + - + 73 AS col0 FROM tab2 cor0
----
24721
43047
62451

query I rowsort
SELECT ALL 56 * + ( - 98 ) AS col2 FROM tab1 AS cor0
----
-5488
-5488
-5488

onlyif mysql # aggregate syntax: 
query I rowsort label-9453
SELECT DISTINCT - COUNT( * ) * + 17 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9453
SELECT DISTINCT - COUNT ( * ) * + 17 FROM tab1 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9454
SELECT - CAST( + - col1 AS SIGNED ) * col0 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-9454
SELECT - CAST ( + - col1 AS INTEGER ) * col0 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9455
SELECT + SUM( + CAST( NULL AS DECIMAL ) ) AS col1, + 58 FROM tab0
----
NULL
58

skipif mysql # not compatible
query II rowsort label-9455
SELECT + SUM ( + CAST ( NULL AS REAL ) ) AS col1, + 58 FROM tab0
----
NULL
58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9457
SELECT * FROM tab0 WHERE + - CAST( - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-9457
SELECT * FROM tab0 WHERE + - CAST ( - col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL ( - ( - - 59 ) ) FROM tab2 cor0
----
-59
-59
-59

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 + + - 12 IS NOT NULL
----

query II rowsort
SELECT ALL - col2 AS col1, col0 AS col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query II rowsort
SELECT DISTINCT col2, 7 FROM tab1 AS cor0
----
59
7
68
7
96
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9462
SELECT DISTINCT CAST( NULL AS DECIMAL ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9462
SELECT DISTINCT CAST ( NULL AS REAL ) col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col0 + - 32 AS col1 FROM tab1 AS cor0
----
19
53
59

query I rowsort
SELECT col0 + + - 33 AS col1 FROM tab0 AS cor0
----
-18
54
64

query I rowsort
SELECT col0 + - + 83 + - ( - 94 ) * - - 75 * + col0 AS col1 FROM tab0
----
105682
613354
683864

query I rowsort
SELECT DISTINCT + 61 + - 25 AS col2 FROM tab2
----
36

query I rowsort
SELECT ALL - 55 + - col2 AS col2 FROM tab1
----
-114
-123
-151

query II rowsort
SELECT ALL + col2 * - col2 AS col0, col2 FROM tab1 WHERE ( col0 + - ( ( col2 ) ) + - + col0 * - col2 ) IS NOT NULL
----
-3481
59
-4624
68
-9216
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9469
SELECT MAX( + + col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-9469
SELECT MAX ( + + col0 ) AS col1 FROM tab2
----
75

query I rowsort
SELECT DISTINCT col2 - 57 * col0 AS col1 FROM tab0
----
-4949
-5430
-808

onlyif mysql # aggregate syntax: 
query I rowsort label-9471
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab2 WHERE + 28 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9471
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab2 WHERE + 28 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9472
SELECT DISTINCT + 20 * col2 + - - 39 + + 63 * col0 DIV + col0 FROM tab0
----
1042
2082
302

skipif mysql # not compatible
query I rowsort label-9472
SELECT DISTINCT + 20 * col2 + - - 39 + + 63 * col0 / + col0 FROM tab0
----
1042
2082
302

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9473
SELECT + col1 - - CAST( - + 22 AS SIGNED ) col1 FROM tab0 AS cor0
----
-1
-21
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9473
SELECT + col1 - - CAST ( - + 22 AS INTEGER ) col1 FROM tab0 AS cor0
----
-1
-21
59

query I rowsort
SELECT DISTINCT 45 + - - 57 + - - col1 / 67 * - col2 FROM tab1 AS cor0 WHERE NOT ( 41 + + 45 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT - SUM( + col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9475
SELECT - SUM ( + col0 ) AS col0 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT ALL - 7 * - + 31 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to f59b0648429f25401178cc8974e20a18

query I rowsort
SELECT - 56 * 40 AS col2 FROM tab1
----
-2240
-2240
-2240

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-9478
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT NULL >= - CAST( NULL AS SIGNED ) * - 76 )
----

skipif mysql # not compatible
query IIIIII rowsort label-9478
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NOT NULL >= - CAST ( NULL AS INTEGER ) * - 76 )
----

query I rowsort
SELECT - ( + - 82 ) FROM tab2, tab1 cor0
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL + 50 FROM tab1, tab2 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 NOT IN ( + col2 * + + 49 + 94, - 27, - 50, - 94 + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 13 * 2 AS col1 FROM tab0 AS cor0
----
-26
-26
-26

query I rowsort
SELECT - 50 * col0 FROM tab0 AS cor0
----
-4350
-4850
-750

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT MIN( DISTINCT + + col0 ) AS col2 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-9484
SELECT MIN ( DISTINCT + + col0 ) AS col2 FROM tab1 cor0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9485
SELECT - - COUNT( * ) * MAX( col1 ), SUM( DISTINCT - col1 ) - + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
231
-192

skipif mysql # not compatible
query II rowsort label-9485
SELECT - - COUNT ( * ) * MAX ( col1 ), SUM ( DISTINCT - col1 ) - + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
231
-192

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9486
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * - + 55 * - 10 BETWEEN col1 AND - CAST( + 43 AS DECIMAL ) / - 29 + - - 28
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9486
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * - + 55 * - 10 BETWEEN col1 AND - CAST ( + 43 AS REAL ) / - 29 + - - 28
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab2 cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9488
SELECT DISTINCT - 54 DIV 76 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9488
SELECT DISTINCT - 54 / 76 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9489
SELECT ( + + COUNT( - CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9489
SELECT ( + + COUNT ( - CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 * + col1 AS col0, 36 col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9491
SELECT ALL 62 * - MAX( DISTINCT col2 ) AS col2 FROM tab1
----
-5952

skipif mysql # not compatible
query I rowsort label-9491
SELECT ALL 62 * - MAX ( DISTINCT col2 ) AS col2 FROM tab1
----
-5952

query I rowsort
SELECT DISTINCT - 27 * - + col2 FROM tab0
----
1269
2673
270

onlyif mysql # DIV for integer division: 
query I rowsort label-9493
SELECT ALL + 33 DIV col2 * col2 col1 FROM tab0 AS cor0
----
0
0
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9493
SELECT ALL + 33 / col2 * col2 col1 FROM tab0 AS cor0
----
0
0
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT + 20 * - COUNT( DISTINCT - ( + + col1 ) ) * + MAX( DISTINCT - col2 ) + - 74 - - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
3469

skipif mysql # not compatible
query I rowsort label-9494
SELECT + 20 * - COUNT ( DISTINCT - ( + + col1 ) ) * + MAX ( DISTINCT - col2 ) + - 74 - - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
3469

query I rowsort
SELECT - col1 + + - col1 AS col2 FROM tab1 cor0
----
-10
-28
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9496
SELECT + - ( 32 ) + + MAX( - ( - + CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9496
SELECT + - ( 32 ) + + MAX ( - ( - + CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL - col1, - col0 FROM tab2 AS cor0 WHERE - 2 - + 19 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + ( + col2 ) + + col1 + 52 FROM tab0
----
152
180
83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9499
SELECT ALL + 8 DIV + COUNT( * ) + - 82 FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL + 8 / + COUNT ( * ) + - 82 FROM tab1 AS cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT DISTINCT - SUM( DISTINCT - + 28 ) * - SUM( + col2 ) AS col2 FROM tab1 AS cor0
----
-6244

skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT - SUM ( DISTINCT - + 28 ) * - SUM ( + col2 ) AS col2 FROM tab1 AS cor0
----
-6244

query I rowsort
SELECT 94 * col0 * col0 FROM tab1 cor0
----
244494
679150
778414

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col0 + + + 70 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9504
SELECT DISTINCT - + CAST( col1 AS SIGNED ) + + - ( - col0 ) AS col1 FROM tab1 AS cor0
----
37
44
80

skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT - + CAST ( col1 AS INTEGER ) + + - ( - col0 ) AS col1 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT + - col2 + - col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9506
SELECT DISTINCT + 9 DIV COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT + 9 / COUNT ( * ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9507
SELECT ALL + 18 DIV col2 * - 85 - + + col1 AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9507
SELECT ALL + 18 / col2 * - 85 - + + col1 AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT + 69 + + - COUNT( * ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9508
SELECT + 69 + + - COUNT ( * ) FROM tab1
----
66

query I rowsort
SELECT + col2 FROM tab2 WHERE ( + 26 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9510
SELECT CAST( - + col2 AS SIGNED ) * + 99 * col2 + 1 col1 FROM tab0
----
-218690
-970298
-9899

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9510
SELECT CAST ( - + col2 AS INTEGER ) * + 99 * col2 + 1 col1 FROM tab0
----
-218690
-970298
-9899

query I rowsort
SELECT + 81 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

query I rowsort
SELECT DISTINCT + - col2 * - - col1 AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9513
SELECT ALL + - CAST( + col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL + - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - + ( + - col0 ) FROM tab0 cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 3 * + col0 col2, col2 AS col2 FROM tab0
----
261
10
291
99
45
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT + SUM( - + 39 ) AS col0 FROM tab1
----
-117

skipif mysql # not compatible
query I rowsort label-9516
SELECT + SUM ( - + 39 ) AS col0 FROM tab1
----
-117

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9517
SELECT + MIN( ALL + - col0 ) DIV - SUM( ALL - 3 ) AS col1 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-9517
SELECT + MIN ( ALL + - col0 ) / - SUM ( ALL - 3 ) AS col1 FROM tab2 AS cor0
----
-8

query I rowsort
SELECT DISTINCT 37 * - + 91 AS col1 FROM tab0 AS cor0
----
-3367

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE ( + 56 ) < + ( + 81 )
----
46
64
75

query I rowsort
SELECT DISTINCT - - 36 * - - col0 AS col2 FROM tab2 AS cor0
----
1656
2304
2700

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9521
SELECT DISTINCT + + 47 AS col1, COUNT( * ) FROM tab0 AS cor0 WHERE + CAST( + - col2 AS SIGNED ) IS NULL
----
47
0

skipif mysql # not compatible
query II rowsort label-9521
SELECT DISTINCT + + 47 AS col1, COUNT ( * ) FROM tab0 AS cor0 WHERE + CAST ( + - col2 AS INTEGER ) IS NULL
----
47
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + 97 ) col2 FROM tab2 cor0 WHERE NOT - 90 + - col1 * - - col1 * + - col1 IS NULL
----
97
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9523
SELECT DISTINCT 46 / + col1 + 53 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9523
SELECT DISTINCT 46 / + col1 + 53 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 47 + col1 + - + col0 col2 FROM tab0
----
-49
3873
921

query I rowsort
SELECT 46 * - col1 * - col0 * + + col0 + + + col0 + - col1 * - + 43 * + + col0 FROM tab2
----
14720000
17552400
5065060

query I rowsort
SELECT - 25 + - - col0 FROM tab0
----
-10
62
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 39 + + 29 * + 36 col0 FROM tab2
----
1005
1005
1005

query II rowsort
SELECT ALL 26 * + 92 * col2 AS col0, col0 FROM tab0
----
112424
15
236808
97
23920
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 71 * - col0 col0 FROM tab0
----
1065
6177
6887

query I rowsort
SELECT ALL - + col2 + - col0 FROM tab0 cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-9531
SELECT - COUNT( * ) col1, COUNT( * ) FROM tab2 AS cor0 WHERE - col2 IS NULL
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9531
SELECT - COUNT ( * ) col1, COUNT ( * ) FROM tab2 AS cor0 WHERE - col2 IS NULL
----
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9532
SELECT ALL COUNT( * ) DIV - MAX( - ( + col1 ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL COUNT ( * ) / - MAX ( - ( + col1 ) ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT 7 - + COUNT( * ) AS col1 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-9533
SELECT 7 - + COUNT ( * ) AS col1 FROM tab2
----
4

query I rowsort
SELECT ( - + 8 ) + - - ( - ( + 48 ) ) AS col1 FROM tab2
----
-56
-56
-56

query I rowsort
SELECT 32 + - + 78 FROM tab1
----
-46
-46
-46

query I rowsort
SELECT ALL - - col2 - - col1 FROM tab2 AS cor0
----
117
125
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 col2, col1 AS col2 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT + 10 + - col2 FROM tab2 AS cor0
----
-13
-30
-48

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE 99 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9540
SELECT + SUM( + + 70 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9540
SELECT + SUM ( + + 70 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT ALL + + 90 AS col2, - col0 AS col2 FROM tab1 AS cor0
----
90
-51
90
-85
90
-91

query II rowsort
SELECT ALL - - 94 AS col1, col2 + + col0 + + col2 FROM tab0 cor0
----
94
107
94
109
94
295

onlyif mysql # DIV for integer division: 
query II rowsort label-9543
SELECT + col0 DIV col2 col1, - col2 FROM tab2 AS cor0
----
1
-40
1
-58
2
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9543
SELECT + col0 / col2 col1, - col2 FROM tab2 AS cor0
----
1
-40
1
-58
2
-23

query II rowsort
SELECT DISTINCT + + col2 AS col0, - ( 48 ) AS col2 FROM tab2 AS cor0
----
23
-48
40
-48
58
-48

onlyif mysql # aggregate syntax: 
query II rowsort label-9545
SELECT + COUNT( * ) col0, 4 FROM tab2 AS cor0
----
3
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9545
SELECT + COUNT ( * ) col0, 4 FROM tab2 AS cor0
----
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT + + MAX( + 60 ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-9546
SELECT + + MAX ( + 60 ) FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT ( + ( - MIN( 18 ) ) ) AS col0 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-9547
SELECT ( + ( - MIN ( 18 ) ) ) AS col0 FROM tab2
----
-18

query I rowsort
SELECT ALL - 60 + col2 AS col1 FROM tab0
----
-13
-50
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9549
SELECT + ( - CAST( - - col2 AS SIGNED ) ) AS col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9549
SELECT + ( - CAST ( - - col2 AS INTEGER ) ) AS col0 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN - 94 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT ALL 64 * - COUNT( * ) FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-9551
SELECT ALL 64 * - COUNT ( * ) FROM tab1
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT COUNT( * ) * + + SUM( ALL - + col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9552
SELECT COUNT ( * ) * + + SUM ( ALL - + col0 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT + 53 * ( - COUNT( ALL - - col1 ) ) FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-9553
SELECT + 53 * ( - COUNT ( ALL - - col1 ) ) FROM tab0 AS cor0
----
-159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 95 col0, col0 FROM tab1
----
95
51
95
85
95
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT SUM( + 12 ) FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-9555
SELECT SUM ( + 12 ) FROM tab1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT DISTINCT MAX( DISTINCT + col0 ) AS col1 FROM tab0 cor0 WHERE - 96 + + + 42 + + col1 / 5 IN ( + + col1, + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9556
SELECT DISTINCT MAX ( DISTINCT + col0 ) AS col1 FROM tab0 cor0 WHERE - 96 + + + 42 + + col1 / 5 IN ( + + col1, + col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9557
SELECT ALL + 69 * - + COUNT( * ) - - - 4 * - + COUNT( * ) FROM tab0 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-9557
SELECT ALL + 69 * - + COUNT ( * ) - - - 4 * - + COUNT ( * ) FROM tab0 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT DISTINCT + MIN( ALL 56 ) FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-9558
SELECT DISTINCT + MIN ( ALL 56 ) FROM tab0 AS cor0
----
56

onlyif mysql # DIV for integer division: 
query I rowsort label-9559
SELECT - - col2 DIV - + 77 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9559
SELECT - - col2 / - + 77 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col0 * col1 + - + 10 - - col0 + - + col1 - + - col0 * - col0 * + col1 + + 51 AS col1 FROM tab2 AS cor0
----
-105534
-310436
-371801

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT + MIN( - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9561
SELECT + MIN ( - col0 ) FROM tab2
----
-75

query I rowsort
SELECT DISTINCT + col0 + + 84 AS col1 FROM tab2
----
130
148
159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9563
SELECT DISTINCT - ( - col1 ) AS col2, col2 + - CAST( NULL AS SIGNED ) / - - 1 * + 59 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-9563
SELECT DISTINCT - ( - col1 ) AS col2, col2 + - CAST ( NULL AS INTEGER ) / - - 1 * + 59 FROM tab0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT DISTINCT - 98 FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND ( - 79 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 4 <> - + 91
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 74 * col1 FROM tab2 AS cor0
----
-3774
-4958
-5698

query I rowsort
SELECT DISTINCT - col1 * - col2 + + col1 AS col1 FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT col1 + col1 * 64 FROM tab2 AS cor0
----
3315
4355
5005

query I rowsort
SELECT - col0 FROM tab1 WHERE - + col2 * 12 > + col1 - - 68
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9571
SELECT ALL CAST( - 65 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL CAST ( - 65 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-65
-65
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT ALL - + COUNT( - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9572
SELECT ALL - + COUNT ( - col0 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9573
SELECT DISTINCT - - COUNT( - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9573
SELECT DISTINCT - - COUNT ( - col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9574
SELECT DISTINCT 6 - MIN( ( - col1 ) ) FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT 6 - MIN ( ( - col1 ) ) FROM tab0 AS cor0
----
87

query II rowsort
SELECT DISTINCT - col0, - 12 + + col2 AS col1 FROM tab1 cor0
----
-51
84
-85
47
-91
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT ALL - ( + - MAX( + 78 ) ) FROM tab0 cor0
----
78

skipif mysql # not compatible
query I rowsort label-9576
SELECT ALL - ( + - MAX ( + 78 ) ) FROM tab0 cor0
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9577
SELECT DISTINCT COUNT( * ) DIV 59 * + 55 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9577
SELECT DISTINCT COUNT ( * ) / 59 * + 55 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9578
SELECT DISTINCT - COUNT( ALL + CAST( NULL AS DECIMAL ) ) * + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9578
SELECT DISTINCT - COUNT ( ALL + CAST ( NULL AS REAL ) ) * + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 95 * + col2 * col1 AS col2 FROM tab2
----
111435
292600
369170

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9580
SELECT ALL + MAX( + + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL + MAX ( + + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT col1, 35 AS col1 FROM tab0
----
1
35
21
35
81
35

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + col1 * - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9583
SELECT COUNT( * ) AS col0, - COUNT( * ) FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-9583
SELECT COUNT ( * ) AS col0, - COUNT ( * ) FROM tab2
----
3
-3

query II rowsort
SELECT col2 AS col0, 99 FROM tab0
----
10
99
47
99
99
99

query II rowsort
SELECT - 16, + 77 + - col1 AS col1 FROM tab0
----
-16
-4
-16
56
-16
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, - 39 * + col0 AS col2 FROM tab2
----
-23
-1794
-40
-2496
-58
-2925

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 IN ( + col1 * - - 0, + col2 * - col1 - - + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col1, + col0 AS col0 FROM tab1
----
-14
51
-47
91
-5
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9589
SELECT DISTINCT - CAST( - 68 AS SIGNED ) FROM tab1 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-9589
SELECT DISTINCT - CAST ( - 68 AS INTEGER ) FROM tab1 AS cor0
----
68

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT NULL >= col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9591
SELECT DISTINCT CAST( NULL AS SIGNED ), col1 col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9591
SELECT DISTINCT CAST ( NULL AS INTEGER ), col1 col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT ALL col2 + - col0 FROM tab2 AS cor0 WHERE col0 BETWEEN 34 AND - col0
----

query I rowsort
SELECT DISTINCT ( + 57 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT + COUNT( DISTINCT + + col2 ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-9594
SELECT + COUNT ( DISTINCT + + col2 ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

query I rowsort
SELECT ALL col1 * col0 * + - 99 * - - 42 + + col1 FROM tab2 AS cor0
----
-20490547
-20893883
-9754617

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9596
SELECT + ( - CAST( + COUNT( - + col0 ) AS SIGNED ) ) FROM tab2 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-9596
SELECT + ( - CAST ( + COUNT ( - + col0 ) AS INTEGER ) ) FROM tab2 WHERE NULL <> NULL
----
0

query I rowsort
SELECT DISTINCT + col0 + - - ( - col2 ) AS col0 FROM tab1
----
-45
23
26

query I rowsort
SELECT - 64 * - + ( + - col2 ) + 67 FROM tab0
----
-2941
-573
-6269

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE - 96 IS NULL
----

query I rowsort
SELECT ALL col1 * + col2 + col1 AS col2 FROM tab0
----
100
231
3888

query I rowsort
SELECT ALL col0 * - 54 FROM tab1 WHERE NOT - col1 * - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT 10 * + COUNT( * ) AS col0 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-9602
SELECT 10 * + COUNT ( * ) AS col0 FROM tab2
----
30

query I rowsort
SELECT ALL - 42 - - col1 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
-21
-41
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - + 17 col2 FROM tab1 AS cor0
----
-113
-76
-85

query I rowsort
SELECT DISTINCT 9 * - col0 AS col2 FROM tab1 AS cor0
----
-459
-765
-819

query I rowsort
SELECT col2 - - col0 * + col2 FROM tab0 AS cor0
----
752
880
9702

query I rowsort
SELECT DISTINCT - col1 - + col1 AS col1 FROM tab2 cor0
----
-102
-134
-154

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col0 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9609
SELECT DISTINCT + CAST( NULL AS DECIMAL ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9609
SELECT DISTINCT + CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 / + + col1 * + 78 col1 FROM tab2 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9611
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN + ( + + col2 ) AND + CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9611
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN + ( + + col2 ) AND + CAST ( - col2 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9612
SELECT MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9612
SELECT MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL = NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9613
SELECT DISTINCT - - col0 DIV col2 + + 5 - + col0, + 38 DIV - - 15 - - - col1 AS col1 FROM tab1 AS cor0
----
-46
-12
-79
-3
-85
-45

skipif mysql # not compatible
query II rowsort label-9613
SELECT DISTINCT - - col0 / col2 + + 5 - + col0, + 38 / - - 15 - - - col1 AS col1 FROM tab1 AS cor0
----
-46
-12
-79
-3
-85
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-9614
SELECT ALL MIN( ALL - col2 ) * + 42 AS col2 FROM tab2
----
-2436

skipif mysql # not compatible
query I rowsort label-9614
SELECT ALL MIN ( ALL - col2 ) * + 42 AS col2 FROM tab2
----
-2436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9615
SELECT 93 * - ( - - CAST( - COUNT( * ) AS SIGNED ) ) FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-9615
SELECT 93 * - ( - - CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab1
----
279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9616
SELECT DISTINCT COUNT( * ) * COUNT( * ) DIV - 36 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9616
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) / - 36 FROM tab2
----
0

query I rowsort
SELECT ALL + 79 AS col1 FROM tab1 WHERE - 10 + + 35 IS NULL
----

query I rowsort
SELECT DISTINCT ( - + 9 ) AS col0 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT + - COUNT( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9619
SELECT + - COUNT ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT DISTINCT + + MIN( col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9620
SELECT DISTINCT + + MIN ( col2 ) AS col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT - + 86 AS col2 FROM tab1 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT + + 34 * 9 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
918

skipif mysql # not compatible
query I rowsort label-9622
SELECT + + 34 * 9 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
918

onlyif mysql # aggregate syntax: 
query II rowsort label-9623
SELECT DISTINCT + - 37, - COUNT( * ) col0 FROM tab0 AS cor0
----
-37
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9623
SELECT DISTINCT + - 37, - COUNT ( * ) col0 FROM tab0 AS cor0
----
-37
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9624
SELECT - 9 col1, COUNT( * ) * + - MAX( + CAST( - + col0 AS SIGNED ) ) FROM tab2 AS cor0
----
-9
138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9624
SELECT - 9 col1, COUNT ( * ) * + - MAX ( + CAST ( - + col0 AS INTEGER ) ) FROM tab2 AS cor0
----
-9
138

query II rowsort
SELECT 73, - col0 AS col0 FROM tab1 AS cor0
----
73
-51
73
-85
73
-91

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

query II rowsort
SELECT ALL - + 50, + 43 AS col1 FROM tab2 AS cor0
----
-50
43
-50
43
-50
43

onlyif mysql # DIV for integer division: 
query II rowsort label-9628
SELECT col1 DIV - 78 AS col0, col0 * + 47 FROM tab1 AS cor0
----
0
2397
0
3995
0
4277

skipif mysql # not compatible
query II rowsort label-9628
SELECT col1 / - 78 AS col0, col0 * + 47 FROM tab1 AS cor0
----
0
2397
0
3995
0
4277

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9629
SELECT ALL col2 AS col1 FROM tab2 WHERE + 93 NOT IN ( + col2, - CAST( NULL AS SIGNED ) * + col0 )
----

skipif mysql # not compatible
query I rowsort label-9629
SELECT ALL col2 AS col1 FROM tab2 WHERE + 93 NOT IN ( + col2, - CAST ( NULL AS INTEGER ) * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT DISTINCT COUNT( * ) + COUNT( - col2 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT COUNT ( * ) + COUNT ( - col2 ) FROM tab2
----
6

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = - 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT ALL + 54 + + COUNT( * ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL + 54 + + COUNT ( * ) FROM tab1
----
57

query I rowsort
SELECT col0 + col0 * - col1 FROM tab2
----
-2300
-4864
-4950

query I rowsort
SELECT DISTINCT + 60 + - + 39 + + col0 * 90 AS col0 FROM tab0
----
1371
7851
8751

onlyif mysql # aggregate syntax: 
query I rowsort label-9635
SELECT DISTINCT MAX( DISTINCT + + col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-9635
SELECT DISTINCT MAX ( DISTINCT + + col1 ) AS col0 FROM tab2
----
77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 98 NOT IN ( - + col0, col0, + - col1, - + 79 * + col0 )
----

query I rowsort
SELECT col0 + + + col2 * - 47 + + - col1 AS col2 FROM tab2 cor0
----
-1086
-1893
-2718

query I rowsort
SELECT + col0 - - col0 - - col2 + + 87 + - col1 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN col1 + + 52 - + - 43 * + + col2 + - + col2 AND - + col0
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9639
SELECT - + col0 / + + col0 + + - col0 * - col2 / col2 + + CAST( NULL AS SIGNED ) / CAST( NULL AS DECIMAL ) / - col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9639
SELECT - + col0 / + + col0 + + - col0 * - col2 / col2 + + CAST ( NULL AS INTEGER ) / CAST ( NULL AS REAL ) / - col0 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 58 + + + col2 AS col0, - col2 FROM tab0 AS cor0
----
105
-47
157
-99
68
-10

query III rowsort
SELECT * FROM tab0 WHERE - col0 * + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - - col1
----

query I rowsort
SELECT + col0 * + - col1 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9644
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) NOT IN ( - 62 * col0 * - + col2 / - ( - 81 ) / - col2 + CAST( NULL AS SIGNED ) + + 49 )
----

skipif mysql # not compatible
query III rowsort label-9644
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) NOT IN ( - 62 * col0 * - + col2 / - ( - 81 ) / - col2 + CAST ( NULL AS INTEGER ) + + 49 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT - 37 * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-9645
SELECT - 37 * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
111

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9646
SELECT + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN + CAST( NULL AS SIGNED ) / - col1 - ( - 58 ) AND + 49
----
0

skipif mysql # not compatible
query I rowsort label-9646
SELECT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN + CAST ( NULL AS INTEGER ) / - col1 - ( - 58 ) AND + 49
----
0

query II rowsort
SELECT col2, col0 AS col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 68 / + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9649
SELECT + - ( - - COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT 35 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9649
SELECT + - ( - - COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT 35 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9650
SELECT DISTINCT + col1 DIV ( - + 51 ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT + col1 / ( - + 51 ) FROM tab2 cor0
----
-1

query I rowsort
SELECT ALL - col2 * 61 FROM tab0 cor0
----
-2867
-6039
-610

query I rowsort
SELECT col2 * - 30 AS col1 FROM tab1
----
-1770
-2040
-2880

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT ( + - 80 ) * - - COUNT( ALL + + col0 ) FROM tab2
----
-240

skipif mysql # not compatible
query I rowsort label-9653
SELECT ( + - 80 ) * - - COUNT ( ALL + + col0 ) FROM tab2
----
-240

query I rowsort
SELECT 62 * - col2 AS col2 FROM tab1
----
-3658
-4216
-5952

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT ALL + COUNT( * ) * + + 92 FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL + COUNT ( * ) * + + 92 FROM tab1
----
276

onlyif mysql # aggregate syntax: 
query II rowsort label-9656
SELECT COUNT( DISTINCT - col1 ), 55 AS col0 FROM tab1
----
3
55

skipif mysql # not compatible
query II rowsort label-9656
SELECT COUNT ( DISTINCT - col1 ), 55 AS col0 FROM tab1
----
3
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9657
SELECT ALL + 80 + 96 * COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE + col0 <> NULL
----
80

skipif mysql # not compatible
query I rowsort label-9657
SELECT ALL + 80 + 96 * COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + col0 <> NULL
----
80

query I rowsort
SELECT + 54 / + col0 + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( - col2 ) * - col2 > NULL
----

query I rowsort
SELECT + ( + ( col1 ) ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - 89 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
-89
-89
-89

query I rowsort
SELECT 98 * + + 86 AS col1 FROM tab2
----
8428
8428
8428

onlyif mysql # DIV for integer division: 
query I rowsort label-9662
SELECT DISTINCT col2 + - col2 DIV col0 AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9662
SELECT DISTINCT col2 + - col2 / col0 AS col1 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT + COUNT( * ) * + COUNT( * ) col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9663
SELECT + COUNT ( * ) * + COUNT ( * ) col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
81

query I rowsort
SELECT DISTINCT - col1 * - + col1 * - + 13 AS col0 FROM tab1 AS cor0
----
-2548
-28717
-325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9665
SELECT DISTINCT - col0 * + CAST( - + 61 AS SIGNED ) FROM tab2 cor0
----
2806
3904
4575

skipif mysql # not compatible
query I rowsort label-9665
SELECT DISTINCT - col0 * + CAST ( - + 61 AS INTEGER ) FROM tab2 cor0
----
2806
3904
4575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9666
SELECT - + 59 * + COUNT( * ) + - - 63 + + MIN( 43 ) AS col0 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) = + - col1 * + - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-9666
SELECT - + 59 * + COUNT ( * ) + - - 63 + + MIN ( 43 ) AS col0 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) = + - col1 * + - 33
----
NULL

query II rowsort
SELECT 89 + 41 * + - col0, col2 * - col0 AS col1 FROM tab0 AS cor0
----
-3478
-870
-3888
-9603
-526
-705

query I rowsort
SELECT ALL + 69 + - 3 FROM tab0 AS cor0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT + 5 + + - COUNT( * ) * COUNT( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9669
SELECT + 5 + + - COUNT ( * ) * COUNT ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT DISTINCT - MAX( - - 17 ) + - 36 AS col0 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-9670
SELECT DISTINCT - MAX ( - - 17 ) + - 36 AS col0 FROM tab1
----
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9671
SELECT ALL 41 - + MIN( 4 ) * MAX( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9671
SELECT ALL 41 - + MIN ( 4 ) * MAX ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9672
SELECT ALL - - COUNT( ALL + col2 ) col0 FROM tab0 WHERE NOT ( - 40 = + col2 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9672
SELECT ALL - - COUNT ( ALL + col2 ) col0 FROM tab0 WHERE NOT ( - 40 = + col2 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9673
SELECT DISTINCT + COUNT( * ) - MIN( + col2 ) AS col0 FROM tab1
----
-56

skipif mysql # not compatible
query I rowsort label-9673
SELECT DISTINCT + COUNT ( * ) - MIN ( + col2 ) AS col0 FROM tab1
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 36 col0 FROM tab1 AS cor0 WHERE NOT 85 IS NOT NULL
----

query I rowsort
SELECT col1 AS col2 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT ALL + - col1 AS col2, + col0 AS col0 FROM tab1 AS cor0
----
-14
51
-47
91
-5
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9677
SELECT - 44 AS col1 FROM tab0 AS cor0 WHERE col0 - + CAST( NULL AS SIGNED ) IS NULL
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-9677
SELECT - 44 AS col1 FROM tab0 AS cor0 WHERE col0 - + CAST ( NULL AS INTEGER ) IS NULL
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9678
SELECT ALL MAX( DISTINCT - col2 ) col0 FROM tab0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9678
SELECT ALL MAX ( DISTINCT - col2 ) col0 FROM tab0
----
-10

query I rowsort
SELECT ALL - 69 AS col1 FROM tab0 AS cor0 WHERE col1 / col0 * - 36 <> col0
----
-69
-69
-69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN ( col0 * - + 81 - - 35 ) AND col2
----

query II rowsort
SELECT DISTINCT + col1 * + col2 AS col0, - col1 - - 0 FROM tab0 AS cor0
----
210
-21
3807
-81
99
-1

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL col0 * - 83 + - + col0 FROM tab2 AS cor0
----
-3864
-5376
-6300

query I rowsort
SELECT DISTINCT + col2 * - col0 * + + 27 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col0 * col1 + + ( col1 ) AS col2 FROM tab0 AS cor0
----
1296
1848
98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> - 37
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT ALL - MAX( DISTINCT - 79 ) AS col1 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-9688
SELECT ALL - MAX ( DISTINCT - 79 ) AS col1 FROM tab0
----
79

query I rowsort
SELECT 60 * - - 18 FROM tab1
----
1080
1080
1080

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT + SUM( - ( col1 ) ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9690
SELECT + SUM ( - ( col1 ) ) FROM tab2
----
-195

query I rowsort
SELECT DISTINCT + 61 * + - col0 FROM tab1
----
-3111
-5185
-5551

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - + 71 AND 35
----

query II rowsort
SELECT col1 AS col2, 28 AS col0 FROM tab1 AS cor0
----
14
28
47
28
5
28

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + 59 / col1 + - + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 - - - col0 * - 90 FROM tab2 cor0 WHERE - col1 IS NOT NULL
----
4186
5824
6825

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT ALL - MIN( - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-9696
SELECT ALL - MIN ( - col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL + 75 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT 49 * - col2 + col1 AS col0 FROM tab1 AS cor0
----
-2886
-3285
-4690

query I rowsort
SELECT ALL 92 + ( + col2 ) * + col0 * 84 AS col2 FROM tab0 AS cor0
----
59312
73172
806744

onlyif mysql # aggregate syntax: 
query I rowsort label-9700
SELECT ALL + MAX( + - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9700
SELECT ALL + MAX ( + - col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-9701
SELECT ALL - col0 DIV col1 * + col0 + + + 9 FROM tab2
----
-66
9
9

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL - col0 / col1 * + col0 + + + 9 FROM tab2
----
-66
9
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9702
SELECT + SUM( - + col0 ) + + - MIN( ALL - + 68 ) AS col0 FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-9702
SELECT + SUM ( - + col0 ) + + - MIN ( ALL - + 68 ) AS col0 FROM tab2
----
-117

query I rowsort
SELECT ALL col1 - col2 * col2 * col0 + - 91 AS col0 FROM tab2
----
-102414
-24374
-252324

query I rowsort
SELECT ALL col2 / - 64 FROM tab2 WHERE NULL <= - col0
----

query I rowsort
SELECT 30 + - + col1 FROM tab2
----
-21
-37
-47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 = + col1
----

query I rowsort
SELECT 29 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT MIN( ALL + 47 ) FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-9708
SELECT MIN ( ALL + 47 ) FROM tab0
----
47

query II rowsort
SELECT 26 AS col1, 58 + - + col1 FROM tab0
----
26
-23
26
37
26
57

query II rowsort
SELECT ALL col1, + col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query II rowsort
SELECT - 87, - 71 + + col0 + + ( - - col0 ) AS col1 FROM tab2 cor0
----
-87
21
-87
57
-87
79

onlyif mysql # aggregate syntax: 
query II rowsort label-9712
SELECT + COUNT( * ) AS col2, - 44 FROM tab0 AS cor0
----
3
-44

skipif mysql # not compatible
query II rowsort label-9712
SELECT + COUNT ( * ) AS col2, - 44 FROM tab0 AS cor0
----
3
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-9713
SELECT DISTINCT MIN( ALL - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-9713
SELECT DISTINCT MIN ( ALL - col2 ) FROM tab0 AS cor0
----
-99

query I rowsort
SELECT DISTINCT + + 60 FROM tab2 AS cor0
----
60

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 = + col0 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT - 41 + COUNT( * ) + MAX( - 47 ) col2 FROM tab2
----
-85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9716
SELECT - 41 + COUNT ( * ) + MAX ( - 47 ) col2 FROM tab2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-9717
SELECT - SUM( DISTINCT col1 ) + + COUNT( * ) FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-9717
SELECT - SUM ( DISTINCT col1 ) + + COUNT ( * ) FROM tab1
----
-63

query I rowsort
SELECT + 7 + - - col1 FROM tab2
----
58
74
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 + - col0 col1, - col0 FROM tab2
----
-128
-64
-150
-75
-92
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT DISTINCT COUNT( DISTINCT + 88 ) AS col1 FROM tab0 WHERE - col0 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT COUNT ( DISTINCT + 88 ) AS col1 FROM tab0 WHERE - col0 IS NOT NULL
----
1

query I rowsort
SELECT 28 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9723
SELECT ALL + + CAST( - col0 AS SIGNED ) FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-9723
SELECT ALL + + CAST ( - col0 AS INTEGER ) FROM tab1 cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( ( NOT + col0 IS NOT NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 ) <> + col2 * + - 2
----

query II rowsort
SELECT DISTINCT + + col0, - col2 * col2 AS col1 FROM tab0 AS cor0
----
15
-2209
87
-100
97
-9801

query I rowsort
SELECT DISTINCT ( + - col1 ) FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9728
SELECT ALL + - MAX( ALL 46 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9728
SELECT ALL + - MAX ( ALL 46 ) FROM tab2 AS cor0
----
-46

query II rowsort
SELECT - col1, col0 - + ( + 74 ) AS col0 FROM tab1 cor0
----
-14
-23
-47
17
-5
11

onlyif mysql # DIV for integer division: 
query I rowsort label-9730
SELECT - - 15 * - + 19 - + + col2 DIV - - col1 FROM tab2 AS cor0
----
-285
-285
-285

skipif mysql # not compatible
query I rowsort label-9730
SELECT - - 15 * - + 19 - + + col2 / - - col1 FROM tab2 AS cor0
----
-285
-285
-285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( + 74 ) col2 FROM tab1 AS cor0
----
74

query I rowsort
SELECT DISTINCT 49 AS col2 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
49

query I rowsort
SELECT ALL - col1 * 15 AS col0 FROM tab0
----
-1215
-15
-315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9734
SELECT CAST( - 85 AS SIGNED ) FROM tab1
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-9734
SELECT CAST ( - 85 AS INTEGER ) FROM tab1
----
-85
-85
-85

query I rowsort
SELECT DISTINCT 33 - + 52 + - col1 * + col2 * + ( + 49 ) AS col0 FROM tab1
----
-14474
-156623
-65875

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col2 / col1 < col0
----

query I rowsort
SELECT ALL + 43 - - + col2 AS col2 FROM tab1
----
102
111
139

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT ALL - COUNT( * ) + - 50 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-9738
SELECT ALL - COUNT ( * ) + - 50 FROM tab1
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-9739
SELECT DISTINCT + col2 + + + 90 DIV + col0 + - col1 - col0 col0 FROM tab1
----
-30
-70
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9739
SELECT DISTINCT + col2 + + + 90 / + col0 + - col1 - col0 col0 FROM tab1
----
-30
-70
32

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab0 WHERE NULL IS NULL
----
-1
-21
-81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * - 80 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9742
SELECT MIN( col2 ) col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9742
SELECT MIN ( col2 ) col1 FROM tab1 AS cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9743
SELECT 96 DIV 41 AS col2 FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9743
SELECT 96 / 41 AS col2 FROM tab2
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 76 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9745
SELECT 93 + + 29 DIV - ( - COUNT( 59 ) ) + 6 * COUNT( * ) col1 FROM tab2, tab2 AS cor0
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9745
SELECT 93 + + 29 / - ( - COUNT ( 59 ) ) + 6 * COUNT ( * ) col1 FROM tab2, tab2 AS cor0
----
150

query I rowsort
SELECT ALL 44 AS col1 FROM tab1, tab1 cor0
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

query II rowsort
SELECT ALL + col0 AS col0, + 82 * 85 * + col0 * + + 68 AS col1 FROM tab0 AS cor0
----
15
7109400
87
41234520
97
45974120

onlyif mysql # aggregate syntax: 
query I rowsort label-9748
SELECT DISTINCT + MIN( ALL + 99 ) * - 17 + + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-1686

skipif mysql # not compatible
query I rowsort label-9748
SELECT DISTINCT + MIN ( ALL + 99 ) * - 17 + + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-1686

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col2 FROM tab0 AS cor0 WHERE NOT 24 * 7 - - 61 IS NOT NULL
----

query I rowsort
SELECT - + ( + + col2 ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9751
SELECT ALL * FROM tab1 cor0 WHERE 38 * - - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9751
SELECT ALL * FROM tab1 cor0 WHERE 38 * - - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 col0, + col2 * - col2 + - + col0 AS col2 FROM tab2 cor0
----
-51
-575
-67
-3439
-77
-1664

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT + MIN( DISTINCT col2 ) FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-9753
SELECT + MIN ( DISTINCT col2 ) FROM tab1 cor0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 85 col2, - 46 AS col1 FROM tab1 AS cor0
----
85
-46
85
-46
85
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9755
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - col1, - 52 * - col1, + col2, - col0, + - ( + col2 ), + CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9755
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - col1, - 52 * - col1, + col2, - col0, + - ( + col2 ), + CAST ( col2 AS INTEGER ) )
----

query I rowsort
SELECT - + col1 * 36 FROM tab0 AS cor0
----
-2916
-36
-756

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 <= - col1 * 78 + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 - + col0 FROM tab1 WHERE - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 / + + col0 * - 27 col0 FROM tab0 WHERE NOT ( - col1 + + - 12 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 77 FROM tab2 WHERE NOT 22 BETWEEN - 76 AND + col2
----

query III rowsort
SELECT * FROM tab0 WHERE col0 - ( col0 ) + - + col0 + + col0 * + ( + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 65 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT DISTINCT + - MAX( + + col1 ) AS col0 FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9764
SELECT DISTINCT + - MAX ( + + col1 ) AS col0 FROM tab2 cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT DISTINCT 6 + + MIN( col1 ) AS col0 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-9765
SELECT DISTINCT 6 + + MIN ( col1 ) AS col0 FROM tab1 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-9766
SELECT ALL 57 + + - 31 AS col0, COUNT( * ) AS col1 FROM tab2
----
26
3

skipif mysql # not compatible
query II rowsort label-9766
SELECT ALL 57 + + - 31 AS col0, COUNT ( * ) AS col1 FROM tab2
----
26
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9767
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9767
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col1 - 34 FROM tab1 cor0
----
-39
-48
-81

query I rowsort
SELECT ALL 32 FROM tab1 cor0
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9771
SELECT ALL MIN( DISTINCT col2 ) + - + 3 AS col2 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-9771
SELECT ALL MIN ( DISTINCT col2 ) + - + 3 AS col2 FROM tab0
----
7

query I rowsort
SELECT 53 * - 85 AS col2 FROM tab2
----
-4505
-4505
-4505

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT - COUNT( + 65 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9773
SELECT - COUNT ( + 65 ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9774
SELECT + ( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9774
SELECT + ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9775
SELECT ALL - col0 AS col1, ( - 25 ) DIV col0 FROM tab1
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
query II rowsort label-9775
SELECT ALL - col0 AS col1, ( - 25 ) / col0 FROM tab1
----
-51
0
-85
0
-91
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * - ( + 23 ) col1, col0 - + + col0 * - col1 FROM tab0 AS cor0
----
-1863
1230
-23
194
-483
1914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9777
SELECT ALL + col0 * + + col2 * - CAST( NULL AS SIGNED ) / - + 79 / + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9777
SELECT ALL + col0 * + + col2 * - CAST ( NULL AS INTEGER ) / - + 79 / + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - + 95 AS col2 FROM tab1 AS cor0
----
-95
-95
-95

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 65 ) * + 10 / - 45 * + + col0 BETWEEN + 27 * + col1 + - col2 / - - 23 AND col1 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 * 59 + col2 * - 15 FROM tab2
----
-3354
-4823
-5143

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT + MAX( ALL + col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9782
SELECT + MAX ( ALL + col2 ) FROM tab1
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 + + 49 col2 FROM tab2
----
-2552
-4440
-5880

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( - 31 )
----

query I rowsort
SELECT + 93 AS col0 FROM tab1
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9786
SELECT + ( ( - SUM( DISTINCT 71 ) ) ) AS col2 FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-9786
SELECT + ( ( - SUM ( DISTINCT 71 ) ) ) AS col2 FROM tab2
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT - COUNT( * ) + - 54 AS col2 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-9787
SELECT - COUNT ( * ) + - 54 AS col2 FROM tab2
----
-57

query I rowsort
SELECT ( 60 ) FROM tab2
----
60
60
60

query I rowsort
SELECT 25 * + 72 + + AVG ( DISTINCT 66 ) AS col0 FROM tab1 WHERE NOT 64 <> NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN 81 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9791
SELECT ALL * FROM tab2 WHERE NULL >= 12 * + CAST( NULL AS SIGNED ) + + 95
----

skipif mysql # not compatible
query III rowsort label-9791
SELECT ALL * FROM tab2 WHERE NULL >= 12 * + CAST ( NULL AS INTEGER ) + + 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9792
SELECT col2 * CAST( + col2 AS SIGNED ) AS col2 FROM tab0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-9792
SELECT col2 * CAST ( + col2 AS INTEGER ) AS col2 FROM tab0
----
100
2209
9801

query I rowsort
SELECT 91 + - col0 AS col2 FROM tab2
----
16
27
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9794
SELECT DISTINCT - CAST( NULL AS SIGNED ) * COUNT( DISTINCT - 60 * col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9794
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * COUNT ( DISTINCT - 60 * col0 ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 / + col2 NOT BETWEEN + col0 / - col0 - + col0 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 37 + 1 col0 FROM tab1
----
-36
-36
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9797
SELECT - 71 + - MIN( ALL - 34 + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9797
SELECT - 71 + - MIN ( ALL - 34 + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT + 27 + + col0 AS col1 FROM tab0
----
114
124
42

query III rowsort
SELECT * FROM tab0 WHERE ( col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 + + 77 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 57 - 0 IS NULL
----

query I rowsort
SELECT ALL 12 FROM tab1 WHERE - col1 = - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col2 ) < col0 - + col1 * + col2
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9804
SELECT + 87 + - COUNT( 5 ) * ( - 18 * + MIN( ALL + 72 ) + - 28 ) col2 FROM tab0 WHERE NOT ( + 77 ) IS NULL
----
4059

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9804
SELECT + 87 + - COUNT ( 5 ) * ( - 18 * + MIN ( ALL + 72 ) + - 28 ) col2 FROM tab0 WHERE NOT ( + 77 ) IS NULL
----
4059

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < ( col0 )
----

query I rowsort
SELECT DISTINCT col1 * 25 AS col1 FROM tab1 cor0
----
1175
125
350

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( - 60 ) AND + ( - col2 )
----

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE ( 71 / col0 ) IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9809
SELECT + CAST( NULL AS SIGNED ) * col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9809
SELECT + CAST ( NULL AS INTEGER ) * col0 col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + col2 - col0 FROM tab0 AS cor0
----
13
2194
9704

query I rowsort
SELECT + 34 + + 53 FROM tab1 WHERE ( NULL ) IS NULL
----
87
87
87

onlyif mysql # DIV for integer division: 
query I rowsort label-9812
SELECT ALL - col2 + col2 DIV col1 FROM tab1 WHERE NULL IS NULL
----
-48
-67
-90

skipif mysql # not compatible
query I rowsort label-9812
SELECT ALL - col2 + col2 / col1 FROM tab1 WHERE NULL IS NULL
----
-48
-67
-90

query I rowsort
SELECT - col2 - - 46 FROM tab1
----
-13
-22
-50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9814
SELECT DISTINCT * FROM tab2 WHERE col1 NOT IN ( - 86 * + CAST( NULL AS SIGNED ) + col2 )
----

skipif mysql # not compatible
query III rowsort label-9814
SELECT DISTINCT * FROM tab2 WHERE col1 NOT IN ( - 86 * + CAST ( NULL AS INTEGER ) + col2 )
----

query I rowsort
SELECT + col0 * 97 + col2 AS col1 FROM tab2
----
4485
6248
7333

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 47 + - 71 FROM tab0
----
-24
-24
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab0 AS cor0 WHERE col1 BETWEEN ( - col2 ) + col0 AND 31 * + col2
----
15
97

query I rowsort
SELECT DISTINCT - 38 - 79 AS col2 FROM tab0 AS cor0
----
-117

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT DISTINCT MAX( 71 ) AS col2 FROM tab2 cor0
----
71

skipif mysql # not compatible
query I rowsort label-9820
SELECT DISTINCT MAX ( 71 ) AS col2 FROM tab2 cor0
----
71

onlyif mysql # DIV for integer division: 
query I rowsort label-9821
SELECT 26 + + 93 DIV + col0 FROM tab2 AS cor0
----
27
27
28

skipif mysql # not compatible
query I rowsort label-9821
SELECT 26 + + 93 / + col0 FROM tab2 AS cor0
----
27
27
28

onlyif mysql # aggregate syntax: 
query I rowsort label-9822
SELECT DISTINCT - - COUNT( * ) * + 99 AS col1 FROM tab2 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-9822
SELECT DISTINCT - - COUNT ( * ) * + 99 AS col1 FROM tab2 AS cor0
----
297

query I rowsort
SELECT - col0 + col0 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT ALL + 79 * col1 FROM tab1 AS cor0
----
1106
3713
395

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT ALL 96 * COUNT( * ) FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-9825
SELECT ALL 96 * COUNT ( * ) FROM tab1 AS cor0
----
288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9826
SELECT + CAST( NULL AS SIGNED ) * - AVG ( ( + col0 ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9826
SELECT + CAST ( NULL AS INTEGER ) * - AVG ( ( + col0 ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT + + COUNT( * ) * 77 FROM tab2 AS cor0
----
231

skipif mysql # not compatible
query I rowsort label-9827
SELECT + + COUNT ( * ) * 77 FROM tab2 AS cor0
----
231

onlyif mysql # DIV for integer division: 
query I rowsort label-9828
SELECT 13 DIV 64 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9828
SELECT 13 / 64 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT ALL - ( + COUNT( * ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL - ( + COUNT ( * ) ) AS col0 FROM tab2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9830
SELECT COUNT( * ) DIV + 49 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9830
SELECT COUNT ( * ) / + 49 AS col2 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 + col1 IN ( col0 + + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 ) >= NULL
----

query I rowsort
SELECT - 14 AS col0 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( + 59 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT DISTINCT MIN( DISTINCT - col0 ) * + COUNT( * ) AS col1 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-9834
SELECT DISTINCT MIN ( DISTINCT - col0 ) * + COUNT ( * ) AS col1 FROM tab2
----
-225

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT col0 < ( NULL )
----

query I rowsort
SELECT ALL col2 * - 42 AS col0 FROM tab0 AS cor0 WHERE ( - col1 ) < col2 + col1 * col1
----
-1974
-4158
-420

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 * 28 col1 FROM tab2 AS cor0
----
1932
1932
1932

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NOT + col1 IN ( col1 * 67 - - 47 )
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9839
SELECT ALL SUM( ALL - + CAST( NULL AS SIGNED ) ) * - 71 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL SUM ( ALL - + CAST ( NULL AS INTEGER ) ) * - 71 AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9840
SELECT DISTINCT + col0 FROM tab0 WHERE ( + 12 ) NOT IN ( + col0 / col2 + - CAST( NULL AS SIGNED ) * + 22 )
----

skipif mysql # not compatible
query I rowsort label-9840
SELECT DISTINCT + col0 FROM tab0 WHERE ( + 12 ) NOT IN ( + col0 / col2 + - CAST ( NULL AS INTEGER ) * + 22 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9841
SELECT 60 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9841
SELECT 60 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * - + col1 * + 57 * col2 FROM tab2 cor0
----
-12847116
-1537803
-7022400

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9843
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9843
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9844
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT CAST( + + col1 AS SIGNED ) IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-9844
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT CAST ( + + col1 AS INTEGER ) IN ( col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col2 ) >= 72 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 86 * + 72 AS col2 FROM tab1 AS cor0
----
6192
6192
6192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 42 col2, - col0 FROM tab0 cor0
----
42
-15
42
-87
42
-97

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 90 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 97 FROM tab0 cor0 WHERE 87 <= NULL OR NOT ( col1 * col1 ) NOT BETWEEN NULL AND + col2 * + 6 + + col0
----

query I rowsort
SELECT + + 57 AS col0 FROM tab2 AS cor0
----
57
57
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - col1 * + col0 + ( + col2 ) col0 FROM tab1 AS cor0
----
-200951
-2066
-9900

query I rowsort
SELECT - - 78 AS col0 FROM tab2 WHERE 41 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 58 + - 81 col2 FROM tab1
----
-23
-23
-23

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 NOT BETWEEN + col0 * 4 AND NULL
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + 36 col2 FROM tab0
----
117
37
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9856
SELECT - 59 + + 8 DIV MAX( col2 ) FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-9856
SELECT - 59 + + 8 / MAX ( col2 ) FROM tab0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT - COUNT( * ) + - COUNT( * ) + - ( + COUNT( * ) ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9857
SELECT - COUNT ( * ) + - COUNT ( * ) + - ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT ( - 96 ) + - col1 + - 30 FROM tab1 AS cor0
----
-131
-140
-173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 + + - col0 col2 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT 46 * - + col1 * - col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
119646
206494
272734

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT ALL COUNT( DISTINCT + - col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL COUNT ( DISTINCT + - col0 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9863
SELECT DISTINCT - COUNT( * ) + + - CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9863
SELECT DISTINCT - COUNT ( * ) + + - CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query III rowsort label-9864
SELECT col2, - col0 DIV - col2 AS col1, + 91 * - col1 FROM tab2
----
9 values hashing to f862d486ec886f57d6c3dac92cd92496

skipif mysql # not compatible
query III rowsort label-9864
SELECT col2, - col0 / - col2 AS col1, + 91 * - col1 FROM tab2
----
9 values hashing to f862d486ec886f57d6c3dac92cd92496

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT + - 81 - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9865
SELECT + - 81 - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-9866
SELECT DISTINCT - + 3, + COUNT( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-9866
SELECT DISTINCT - + 3, + COUNT ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 99 col0 FROM tab0 AS cor0
----
-2079
-8019
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 63 * col2 * + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9868
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT 63 * col2 * + col0 IS NOT NULL
----
0

query II rowsort
SELECT + col2, + 96 FROM tab1 cor0
----
59
96
68
96
96
96

query I rowsort
SELECT ( + + 72 ) FROM tab0 cor0
----
72
72
72

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT col1 <= + col1 * col1 + col0
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT ( - 34 ) AS col2 FROM tab1 AS cor0
----
-34

query I rowsort
SELECT + 82 * - col1 FROM tab1
----
-1148
-3854
-410

query II rowsort
SELECT DISTINCT - col0 * + 89 AS col1, col1 AS col0 FROM tab1
----
-4539
14
-7565
5
-8099
47

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9877
SELECT - col1 * - CAST( NULL AS DECIMAL ) AS col2, - col0 AS col0 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-9877
SELECT - col1 * - CAST ( NULL AS REAL ) AS col2, - col0 AS col0 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

query I rowsort
SELECT - + col0 AS col0 FROM tab0 WHERE NOT ( NOT + 93 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9879
SELECT SUM( ALL + col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-9879
SELECT SUM ( ALL + col2 ) FROM tab2
----
121

query I rowsort
SELECT ( 37 ) FROM tab0
----
37
37
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT + col1 col1, + 16 AS col0, - 29 FROM tab1
----
9 values hashing to e3494b633fd26ed1a1bd2abaee9ac31f

query I rowsort
SELECT ALL col2 * - ( col0 * col2 ) FROM tab2 WHERE col0 = ( + 68 * 85 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, + col2 * - - col0 col2 FROM tab0
----
10
870
47
705
99
9603

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 51 NOT IN ( + 21 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 50 BETWEEN NULL AND + - 1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0 AS col0, - col0 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT + ( + - col1 ) FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9888
SELECT ALL + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9888
SELECT ALL + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL - col0 * 95 AS col1 FROM tab2
----
-4370
-6080
-7125

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 * 41 + + 83 - - 0 * 89 * - col0 ) BETWEEN ( NULL ) AND + 34 + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9891
SELECT DISTINCT + + 13 DIV - col1 AS col0 FROM tab0 AS cor0
----
-13
0

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT + + 13 / - col1 AS col0 FROM tab0 AS cor0
----
-13
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9892
SELECT ALL + col0 DIV CAST( col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL + col0 / CAST ( col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 + col2 + + - 24 * col2 - + - col1 col2 FROM tab1 AS cor0
----
-1267
-1432
-2109

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - - col2 + col2 + + - col1 col0 FROM tab1 AS cor0
----
180
198
229

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9895
SELECT ALL + COUNT( * ) * 48 * 94 + - + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9895
SELECT ALL + COUNT ( * ) * 48 * 94 + - + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * - col1 / col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9897
SELECT ALL + CAST( - col1 AS SIGNED ) col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9897
SELECT ALL + CAST ( - col1 AS INTEGER ) col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT ALL - 90 + + col2 AS col1 FROM tab2
----
-32
-50
-67

query I rowsort
SELECT - col1 + + - 14 FROM tab1
----
-19
-28
-61

query I rowsort
SELECT DISTINCT + col1 + + 71 FROM tab2
----
122
138
148

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - col1 - - col1 col0 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9902
SELECT CAST( NULL AS SIGNED ) * - SUM( ALL + col2 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9902
SELECT CAST ( NULL AS INTEGER ) * - SUM ( ALL + col2 ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col1 + - col1 + - col0 * col1 * col2 AS col0 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT DISTINCT + MIN( + col1 ) * + - ( 36 ) - - + 56 AS col0 FROM tab2
----
-1780

skipif mysql # not compatible
query I rowsort label-9904
SELECT DISTINCT + MIN ( + col1 ) * + - ( 36 ) - - + 56 AS col0 FROM tab2
----
-1780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9905
SELECT ALL 41 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL 41 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9906
SELECT DISTINCT - 94 - - + ( - - col0 ) AS col1, 8 + CAST( NULL AS SIGNED ) - col2 + col1 FROM tab2
----
-19
NULL
-30
NULL
-48
NULL

skipif mysql # not compatible
query II rowsort label-9906
SELECT DISTINCT - 94 - - + ( - - col0 ) AS col1, 8 + CAST ( NULL AS INTEGER ) - col2 + col1 FROM tab2
----
-19
NULL
-30
NULL
-48
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 49 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 col1 FROM tab0 AS cor0
----
28
28
28

query I rowsort
SELECT ALL col2 - + + col0 * - - 60 * - col0 + - 94 + col1 + + + col2 AS col1 FROM tab1 AS cor0
----
156172
433529
496949

query I rowsort
SELECT DISTINCT - ( + 63 ) FROM tab2 cor0
----
-63

query I rowsort
SELECT - col1 - + col2 FROM tab1 cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT DISTINCT + + ( + + MAX( ALL + 40 ) ) AS col1 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-9912
SELECT DISTINCT + + ( + + MAX ( ALL + 40 ) ) AS col1 FROM tab1 AS cor0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-9913
SELECT 38 DIV 10 * + 55 + - - 9 DIV + col0 FROM tab1
----
165
165
165

skipif mysql # not compatible
query I rowsort label-9913
SELECT 38 / 10 * + 55 + - - 9 / + col0 FROM tab1
----
165
165
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 40 col2 FROM tab1
----
125
131
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 39 col1 FROM tab1
----
39
39
39

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9917
SELECT ALL + 29 DIV + 12 FROM tab2 cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-9917
SELECT ALL + 29 / + 12 FROM tab2 cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT DISTINCT COUNT( * ) * COUNT( 21 ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9918
SELECT DISTINCT COUNT ( * ) * COUNT ( 21 ) FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9919
SELECT SUM( DISTINCT ( - 9 ) ) * - 39 FROM tab2 AS cor0
----
351

skipif mysql # not compatible
query I rowsort label-9919
SELECT SUM ( DISTINCT ( - 9 ) ) * - 39 FROM tab2 AS cor0
----
351

query I rowsort
SELECT + col0 * - 94 FROM tab0
----
-1410
-8178
-9118

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9921
SELECT ALL CAST( - - CAST( NULL AS DECIMAL ) AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9921
SELECT ALL CAST ( - - CAST ( NULL AS REAL ) AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9922
SELECT DISTINCT + MAX( DISTINCT + - col0 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-9922
SELECT DISTINCT + MAX ( DISTINCT + - col0 ) FROM tab1
----
-51

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT + + col2 * - + 98 + 20 - - col2 IN ( - col1 + + 76 )
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - + 35 AND NULL
----

query I rowsort
SELECT - col2 + + col0 + col2 + - + col0 AS col2 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND col2 * + - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( NULL ) IS NULL )
----

query II rowsort
SELECT ALL + col2, + col2 + - 86 AS col1 FROM tab1 cor0
----
59
-27
68
-18
96
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9928
SELECT DISTINCT + CAST( + 69 AS SIGNED ) + - - COUNT( * ) AS col0 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-9928
SELECT DISTINCT + CAST ( + 69 AS INTEGER ) + - - COUNT ( * ) AS col0 FROM tab0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT 16 * + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
144

skipif mysql # not compatible
query I rowsort label-9929
SELECT 16 * + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
144

query III rowsort
SELECT - + col0 AS col2, + col1 + + ( - col2 ) AS col0, - + 35 FROM tab0 AS cor0
----
9 values hashing to 1e0a9259019d6819c0dbe27c98cd63ca

query II rowsort
SELECT ALL + col0, 58 FROM tab0 AS cor0
----
15
58
87
58
97
58

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 63 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT DISTINCT - MIN( 82 ) FROM tab2 cor0 WHERE + col0 + - 89 IN ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9933
SELECT DISTINCT - MIN ( 82 ) FROM tab2 cor0 WHERE + col0 + - 89 IN ( - col2 )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 84 col0 FROM tab1 AS cor0
----
-4284
-7140
-7644

query I rowsort
SELECT ALL + 29 AS col2 FROM tab2 cor0
----
29
29
29

query I rowsort
SELECT ALL - + 27 AS col2 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9937
SELECT + ( - CAST( + col0 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9937
SELECT + ( - CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT - + col0 AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 4 + + col0 AS col2 FROM tab2
----
50
68
79

query I rowsort
SELECT 87 + + col0 + col0 - - - col0 + - - ( + + 89 ) AS col1 FROM tab0
----
191
263
273

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab0 AS cor0 WHERE NULL NOT IN ( 95 * + 86 )
----

query I rowsort
SELECT - 80 * - col0 * col1 + 79 FROM tab2
----
187759
394319
402079

query II rowsort
SELECT DISTINCT + col2 - col2, col1 + 61 + + col0 AS col1 FROM tab0
----
0
157
0
159
0
169

query II rowsort
SELECT DISTINCT - col2, + ( col1 ) FROM tab0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT + col2 + + 9 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
105
68
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9946
SELECT DISTINCT COUNT( * ) DIV + - 88 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT COUNT ( * ) / + - 88 FROM tab2
----
0

query II rowsort
SELECT + - col2 AS col1, - col0 AS col2 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

query I rowsort
SELECT + col1 * + 87 * col2 + + 3 FROM tab0 AS cor0
----
18273
331212
8616

query I rowsort
SELECT ALL + + 49 AS col1 FROM tab2 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT DISTINCT COUNT( * ) * + 69 * - 17 + ( - 67 ) FROM tab1 AS cor0
----
-3586

skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT COUNT ( * ) * + 69 * - 17 + ( - 67 ) FROM tab1 AS cor0
----
-3586

onlyif mysql # DIV for integer division: 
query II rowsort label-9951
SELECT DISTINCT col1 * + 85 + - col2 AS col2, 93 + - col2 * - + col1 + + col2 DIV col1 - + + col1 AS col2 FROM tab2 cor0
----
4312
1215
5637
3912
6505
3096

skipif mysql # not compatible
query II rowsort label-9951
SELECT DISTINCT col1 * + 85 + - col2 AS col2, 93 + - col2 * - + col1 + + col2 / col1 - + + col1 AS col2 FROM tab2 cor0
----
4312
1215
5637
3912
6505
3096

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 0 / + 65 * + + col1 <> - col0 * - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9954
SELECT MIN( col2 ) col0 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9954
SELECT MIN ( col2 ) col0 FROM tab1
----
59

query II rowsort
SELECT ALL - col0 * - 25 AS col0, - 70 FROM tab2
----
1150
-70
1600
-70
1875
-70

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 = + - 22
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 71 / + 61 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9958
SELECT + COUNT( ALL ( - col1 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9958
SELECT + COUNT ( ALL ( - col1 ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9959
SELECT 45 * - + COUNT( DISTINCT + col1 ) FROM tab2
----
-135

skipif mysql # not compatible
query I rowsort label-9959
SELECT 45 * - + COUNT ( DISTINCT + col1 ) FROM tab2
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT + COUNT( 99 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9960
SELECT + COUNT ( 99 ) col2 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 70 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9962
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 30 * + + col0 + - CAST( NULL AS SIGNED ) + 63 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9962
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 30 * + + col0 + - CAST ( NULL AS INTEGER ) + 63 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT - MAX( + 75 ) FROM tab1 AS cor0 WHERE - 2 = - 28 + - - 56
----
NULL

skipif mysql # not compatible
query I rowsort label-9963
SELECT - MAX ( + 75 ) FROM tab1 AS cor0 WHERE - 2 = - 28 + - - 56
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT DISTINCT + MIN( + + col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9964
SELECT DISTINCT + MIN ( + + col2 ) FROM tab0 AS cor0
----
10

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + - col1 / - + col0 + - col0 * + - col2 ) BETWEEN + col1 AND + col0
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + ( + - 65 ) IS NULL
----

query II rowsort
SELECT col1 AS col0, col1 AS col0 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT + - SUM( ALL 78 ) * 58 + - 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-40791

skipif mysql # not compatible
query I rowsort label-9968
SELECT + - SUM ( ALL 78 ) * 58 + - 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-40791

query I rowsort
SELECT 29 + + 74 FROM tab2
----
103
103
103

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 > + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT DISTINCT COUNT( * ) + - COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9971
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT ALL + 72 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
72
72
72

query I rowsort
SELECT - 50 + - col0 FROM tab1 AS cor0
----
-101
-135
-141

query I rowsort
SELECT + col2 + - col1 + + col0 AS col2 FROM tab2 AS cor0
----
18
27
66

query I rowsort
SELECT ALL - - ( + + 49 ) AS col0 FROM tab0 AS cor0
----
49
49
49

query I rowsort
SELECT ALL - 40 + - 44 - + col1 * + col1 AS col1 FROM tab2 AS cor0
----
-2685
-4573
-6013

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND - 22
----

query I rowsort
SELECT DISTINCT + - ( + col2 ) * - - col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT + + col1 + col0 * + + 0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9980
SELECT ALL - col2 * col1 + - + col1 + - + CAST( NULL AS SIGNED ) * - col1 * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL - col2 * col1 + - + col1 + - + CAST ( NULL AS INTEGER ) * - col1 * + col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT col0, - 58 + col0 FROM tab2
----
46
-12
64
6
75
17

query II rowsort
SELECT + col2, 46 FROM tab1
----
59
46
68
46
96
46

query I rowsort
SELECT ALL + 18 - - col0 FROM tab2
----
64
82
93

query I rowsort
SELECT - + col2 * + col1 - + ( - 24 ) * - + col2 + + 2 FROM tab2 WHERE col2 IS NOT NULL
----
-1723
-4038
-5276

query I rowsort
SELECT col2 * + col0 - ( - 4 ) FROM tab0
----
709
874
9607

query III rowsort
SELECT * FROM tab1 WHERE ( col2 ) >= - col1 AND NOT + 30 * + + 20 IS NOT NULL
----

query I rowsort
SELECT ALL 28 * - - col1 - + col1 FROM tab1
----
1269
135
378

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND col1 * - col1 * col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 0 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9990
SELECT 91 / CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9990
SELECT 91 / CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9991
SELECT ALL CAST( NULL AS SIGNED ) * - + col1 col2, - ( - col2 ) DIV + col2 + + col0 FROM tab1 AS cor0
----
NULL
52
NULL
86
NULL
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9991
SELECT ALL CAST ( NULL AS INTEGER ) * - + col1 col2, - ( - col2 ) / + col2 + + col0 FROM tab1 AS cor0
----
NULL
52
NULL
86
NULL
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( - - 95 ) * - - 43 col0 FROM tab2 AS cor0
----
-4085
-4085
-4085

query I rowsort
SELECT 84 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * - 65 col2 FROM tab1 AS cor0
----
-2730
-2730
-2730

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT DISTINCT 57 * COUNT( * ) - + COUNT( col0 ) FROM tab0 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-9995
SELECT DISTINCT 57 * COUNT ( * ) - + COUNT ( col0 ) FROM tab0 AS cor0
----
168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 col1 FROM tab2
----
97
97
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9997
SELECT ALL 20 DIV col2 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL 20 / col2 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT DISTINCT + SUM( DISTINCT col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-9998
SELECT DISTINCT + SUM ( DISTINCT col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT - - ( COUNT( * ) ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9999
SELECT - - ( COUNT ( * ) ) col2 FROM tab2 AS cor0
----
3

