sqllogictest
Artifact Content
Not logged in

Artifact 80634038430be4bbd05dc0e4889703941c4e725e:


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 *