sqllogictest
Artifact Content
Not logged in

Artifact 282b725173bfcc9cbd7d088754738496a28c4c49:


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)

query II rowsort
SELECT col2, ( 56 ) FROM tab2
----
23
56
40
56
58
56

query I rowsort
SELECT ALL - col1 * - + col1 * - 23 - col2 FROM tab0
----
-10153
-122
-150950

query I rowsort
SELECT DISTINCT - col0 * + col2 * + col0 AS col1 FROM tab2 AS cor0
----
-163840
-326250
-48668

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

query I rowsort
SELECT 79 * col2 * - col0 AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT + col1 - 13 AS col0 FROM tab0 cor0
----
-12
68
8

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT ALL - - SUM( ALL + 61 ) FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-7
SELECT ALL - - SUM ( ALL + 61 ) FROM tab2 AS cor0
----
183

query I rowsort
SELECT - col1 - + - 38 FROM tab2 AS cor0
----
-13
-29
-39

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 71 IN ( + - 45 - - + col0, - 74, + col1, 80 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * 53 + + col1 AS col0 FROM tab1
----
2538
270
756

onlyif mysql # aggregate syntax: 
query I rowsort label-11
SELECT DISTINCT COUNT( - 42 ) + - 95 AS col1 FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-11
SELECT DISTINCT COUNT ( - 42 ) + - 95 AS col1 FROM tab0
----
-92

query I rowsort
SELECT DISTINCT - 91 AS col0 FROM tab2, tab0 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-13
SELECT - 82 * - MAX( DISTINCT + + col1 ) * + - COUNT( * ) + + 23 + - 25 FROM tab0 AS cor0
----
-19928

skipif mysql # not compatible
query I rowsort label-13
SELECT - 82 * - MAX ( DISTINCT + + col1 ) * + - COUNT ( * ) + + 23 + - 25 FROM tab0 AS cor0
----
-19928

query II rowsort
SELECT DISTINCT + 38, col2 * + 17 AS col0 FROM tab1
----
38
1003
38
1156
38
1632

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 35 + - col1 < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-16
SELECT ALL - COUNT( * ) DIV 69 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = 25
----
0

skipif mysql # not compatible
query I rowsort label-16
SELECT ALL - COUNT ( * ) / 69 AS col2 FROM tab2 AS cor0 WHERE NOT NULL = 25
----
0

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

query I rowsort
SELECT ALL - 75 * 89 AS col0 FROM tab0 cor0
----
-6675
-6675
-6675

query I rowsort
SELECT DISTINCT col1 * - + 91 AS col1 FROM tab0 AS cor0
----
-1911
-7371
-91

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

query I rowsort
SELECT ALL - 6 * - col2 AS col0 FROM tab0 AS cor0
----
282
594
60

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

query I rowsort
SELECT + + ( - 72 ) FROM tab1 cor0
----
-72
-72
-72

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

query I rowsort
SELECT - 28 + 4 AS col1 FROM tab1 AS cor0
----
-24
-24
-24

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

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

query I rowsort
SELECT DISTINCT - 16 + 12 FROM tab0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-28
SELECT + col2 DIV + col1 + - col0 * - 40 col1 FROM tab2
----
1840
2560
3000

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-28
SELECT + col2 / + col1 + - col0 * - 40 col1 FROM tab2
----
1840
2560
3000

query III rowsort
SELECT ALL * FROM tab2 WHERE 81 - - col1 * col1 > NULL
----

query I rowsort
SELECT col0 + - 40 FROM tab0
----
-25
47
57

query I rowsort
SELECT ALL col1 + - 26 + col0 AS col2 FROM tab1
----
112
39
64

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

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

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

skipif mysql # not compatible
query I rowsort label-33
SELECT CAST ( + + 89 AS INTEGER ) - 93 FROM tab0
----
-4
-4
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 65 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query II rowsort
SELECT DISTINCT - 29 + - 32, col2 AS col0 FROM tab2
----
-61
23
-61
40
-61
58

query II rowsort
SELECT - col1 * col0 * - col2, 91 * - + col0 FROM tab0 WHERE + 64 * col2 < NULL
----

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

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

query I rowsort
SELECT ALL - 1 - col2 * + col0 AS col2 FROM tab0 AS cor0
----
-706
-871
-9604

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 + - + 17 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + ( + AVG ( - 17 ) ) AS col2 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-41
SELECT + 90 DIV + - 51 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-41
SELECT + 90 / + - 51 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + 83 * - col2 AS col1 FROM tab2 cor0 WHERE col0 IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-44
SELECT col0 DIV + + 14 AS col2 FROM tab2
----
3
4
5

skipif mysql # not compatible
query I rowsort label-44
SELECT col0 / + + 14 AS col2 FROM tab2
----
3
4
5

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT 28 * - COUNT( * ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-45
SELECT 28 * - COUNT ( * ) FROM tab0
----
-84

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

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

skipif mysql # not compatible
query I rowsort label-47
SELECT + MAX ( + 11 ) FROM tab2 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT + - COUNT( * ) + - + 35 FROM tab0 WHERE NOT col2 + - + col1 NOT BETWEEN + - 10 AND + 70
----
-35

skipif mysql # not compatible
query I rowsort label-48
SELECT + - COUNT ( * ) + - + 35 FROM tab0 WHERE NOT col2 + - + col1 NOT BETWEEN + - 10 AND + 70
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-49
SELECT ALL - MAX( + 8 ) col2 FROM tab2 AS cor0 WHERE - col0 = NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-49
SELECT ALL - MAX ( + 8 ) col2 FROM tab2 AS cor0 WHERE - col0 = NULL
----
NULL

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-53
SELECT DISTINCT COUNT( * ) + + SUM( ALL col1 ) AS col1 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-53
SELECT DISTINCT COUNT ( * ) + + SUM ( ALL col1 ) AS col1 FROM tab1
----
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-54
SELECT 87 DIV COUNT( * ) * 81 AS col1 FROM tab2, tab2 AS cor0
----
729

skipif mysql # not compatible
query I rowsort label-54
SELECT 87 / COUNT ( * ) * 81 AS col1 FROM tab2, tab2 AS cor0
----
729

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + - 51 * col0, col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-56
SELECT DISTINCT - 40 DIV - col2 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-56
SELECT DISTINCT - 40 / - col2 AS col1 FROM tab1
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT + 55 + + - COUNT( * ) FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-59
SELECT + 55 + + - COUNT ( * ) FROM tab0 AS cor0
----
52

query I rowsort
SELECT - col2 * + col2 + - col1 AS col1 FROM tab2 AS cor0
----
-1677
-3431
-580

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= - 82
----

query I rowsort
SELECT ALL - 8 * - col0 * + col1 + - 92 * + 99 FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT col1 FROM tab0 WHERE 14 >= NULL
----

query I rowsort
SELECT DISTINCT col1 * + col2 - col2 FROM tab1 WHERE NOT col0 = + - col2 * - + col0 + - col1 AND NULL IS NULL
----
1248
236
3128

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-66
SELECT + col0 DIV - col2 + + 39 - + col1 AS col0 FROM tab0 AS cor0
----
-42
10
38

skipif mysql # not compatible
query I rowsort label-66
SELECT + col0 / - col2 + + 39 - + col1 AS col0 FROM tab0 AS cor0
----
-42
10
38

query I rowsort
SELECT + 77 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT 81 * - 4 + - col1 AS col1 FROM tab2 AS cor0
----
-375
-391
-401

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-70
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) * 8 >= NULL
----

skipif mysql # not compatible
query I rowsort label-70
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) * 8 >= NULL
----

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

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

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

query II rowsort
SELECT + col1 * - - col1 AS col2, 42 * - col0 AS col2 FROM tab1
----
196
-2142
2209
-3822
25
-3570

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

onlyif mysql # DIV for integer division: 
query I rowsort label-76
SELECT + 38 DIV + + col1 FROM tab1
----
0
2
7

skipif mysql # not compatible
query I rowsort label-76
SELECT + 38 / + + col1 FROM tab1
----
0
2
7

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

onlyif mysql # DIV for integer division: 
query I rowsort label-78
SELECT ALL col1 DIV ( - col0 ) FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-78
SELECT ALL col1 / ( - col0 ) FROM tab0
----
-5
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-79
SELECT - 4 DIV - - 74 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-79
SELECT - 4 / - - 74 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-80
SELECT - COUNT( * ) * - 36 col2 FROM tab0 AS cor0
----
108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-80
SELECT - COUNT ( * ) * - 36 col2 FROM tab0 AS cor0
----
108

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-84
SELECT - + CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - 76 AS col0 FROM tab1, tab0 AS cor0
----
-76

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 49 <= + ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-91
SELECT * FROM tab0 WHERE NULL BETWEEN - - 74 * - col0 + 95 - + - col1 * - CAST( NULL AS SIGNED ) * 63 AND NULL
----

skipif mysql # not compatible
query III rowsort label-91
SELECT * FROM tab0 WHERE NULL BETWEEN - - 74 * - col0 + 95 - + - col1 * - CAST ( NULL AS INTEGER ) * 63 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT DISTINCT + MAX( - 16 ) * - - COUNT( * ) FROM tab2 WHERE ( + col1 ) < - 28 + - 76
----
NULL

skipif mysql # not compatible
query I rowsort label-93
SELECT DISTINCT + MAX ( - 16 ) * - - COUNT ( * ) FROM tab2 WHERE ( + col1 ) < - 28 + - 76
----
NULL

query II rowsort
SELECT col1 - + - col1, + col0 FROM tab0 WHERE - col2 IS NULL
----

query I rowsort
SELECT ALL + 44 + col1 * - col2 AS col2 FROM tab0
----
-166
-3763
-55

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

query I rowsort
SELECT + col0 - ( col0 ) FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-98
SELECT CAST( - - col1 AS SIGNED ) + col1 AS col0 FROM tab1
----
10
28
94

skipif mysql # not compatible
query I rowsort label-98
SELECT CAST ( - - col1 AS INTEGER ) + col1 AS col0 FROM tab1
----
10
28
94

query I rowsort
SELECT DISTINCT ( - 60 ) AS col2 FROM tab2 AS cor0
----
-60

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

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

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

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

query I rowsort
SELECT col1 * - 38 FROM tab0
----
-3078
-38
-798

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-105
SELECT ALL + 73 / - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-105
SELECT ALL + 73 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-106
SELECT DISTINCT + MAX( - + col1 ) DIV + + 96 + + 15 * 84 col2 FROM tab1
----
1260

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-106
SELECT DISTINCT + MAX ( - + col1 ) / + + 96 + + 15 * 84 col2 FROM tab1
----
1260

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

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

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

skipif mysql # not compatible
query I rowsort label-108
SELECT ALL - MAX ( - - ( - col2 ) ) AS col0 FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-109
SELECT ALL - CAST( NULL AS SIGNED ) AS col0, + 17 - + + col1 FROM tab2
----
NULL
-34
NULL
-50
NULL
-60

skipif mysql # not compatible
query II rowsort label-109
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0, + 17 - + + col1 FROM tab2
----
NULL
-34
NULL
-50
NULL
-60

query I rowsort
SELECT DISTINCT col1 * + + col0 * ( + 86 ) AS col0 FROM tab0
----
104490
157122
8342

query II rowsort
SELECT DISTINCT col1, 14 * - + col2 FROM tab1
----
14
-1344
47
-952
5
-826

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + 36 + - 32 * - + 92 / - ( col1 ) > ( + 13 ) * col1 - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 57 AS col2 FROM tab0 AS cor0 WHERE col1 <> NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT + ( - - COUNT( * ) ) * COUNT( * ) * + 87 * + COUNT( * ) * MAX( - - col0 ) AS col0 FROM tab2 AS cor0
----
176175

skipif mysql # not compatible
query I rowsort label-115
SELECT + ( - - COUNT ( * ) ) * COUNT ( * ) * + 87 * + COUNT ( * ) * MAX ( - - col0 ) AS col0 FROM tab2 AS cor0
----
176175

onlyif mysql # DIV for integer division: 
query II rowsort label-116
SELECT - col0 * col2 AS col1, col2 - + col2 DIV col0 + + 11 FROM tab2 AS cor0
----
-1058
34
-2560
51
-4350
69

skipif mysql # not compatible
query II rowsort label-116
SELECT - col0 * col2 AS col1, col2 - + col2 / col0 + + 11 FROM tab2 AS cor0
----
-1058
34
-2560
51
-4350
69

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 1 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query II rowsort
SELECT + + 38 * + - col0 AS col0, 7 AS col1 FROM tab0 AS cor0
----
-3306
7
-3686
7
-570
7

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-120
SELECT - + col2 * col0 + - CAST( - - 41 AS SIGNED ) col1 FROM tab1 AS cor0
----
-4937
-5056
-6229

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-120
SELECT - + col2 * col0 + - CAST ( - - 41 AS INTEGER ) col1 FROM tab1 AS cor0
----
-4937
-5056
-6229

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT + COUNT( * ) * 63 AS col1 FROM tab2 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-121
SELECT + COUNT ( * ) * 63 AS col1 FROM tab2 AS cor0
----
189

query I rowsort
SELECT + - 15 * 23 * col2 * col2 FROM tab1 AS cor0
----
-1200945
-1595280
-3179520

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-123
SELECT * FROM tab1 AS cor0 WHERE ( NOT - CAST( col2 AS SIGNED ) * + col2 IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-123
SELECT * FROM tab1 AS cor0 WHERE ( NOT - CAST ( col2 AS INTEGER ) * + col2 IS NOT NULL )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-125
SELECT DISTINCT + COUNT ( * ) + 6 FROM tab0
----
9

query III rowsort
SELECT * FROM tab0 WHERE + col0 * + col2 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT ALL + 72 + - - COUNT( * ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-127
SELECT ALL + 72 + - - COUNT ( * ) FROM tab2
----
75

onlyif mysql # aggregate syntax: 
query II rowsort label-128
SELECT 80 + + - ( COUNT( * ) ), 10 - - 33 AS col0 FROM tab1
----
77
43

skipif mysql # not compatible
query II rowsort label-128
SELECT 80 + + - ( COUNT ( * ) ), 10 - - 33 AS col0 FROM tab1
----
77
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-131
SELECT DISTINCT + 9 - + - MIN( DISTINCT + + col1 ) + - ( + 83 ) + 46 * + + ( + 95 ) AS col2 FROM tab2 AS cor0
----
4347

skipif mysql # not compatible
query I rowsort label-131
SELECT DISTINCT + 9 - + - MIN ( DISTINCT + + col1 ) + - ( + 83 ) + 46 * + + ( + 95 ) AS col2 FROM tab2 AS cor0
----
4347

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-132
SELECT CAST( - - col1 AS SIGNED ) col2 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-132
SELECT CAST ( - - col1 AS INTEGER ) col2 FROM tab0 cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query II rowsort label-133
SELECT DISTINCT + COUNT( * ), + 66 AS col0 FROM tab2 WHERE NOT + col1 <= NULL
----
0
66

skipif mysql # not compatible
query II rowsort label-133
SELECT DISTINCT + COUNT ( * ), + 66 AS col0 FROM tab2 WHERE NOT + col1 <= NULL
----
0
66

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col1 = 32
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - col0 * - - col2 * col1 AS col1 FROM tab1 AS cor0
----
-25075
-290836
-68544

query I rowsort
SELECT ALL + 66 * - col1 AS col1 FROM tab1 cor0
----
-3102
-330
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT DISTINCT - 77 * + COUNT( ALL col1 ) FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-137
SELECT DISTINCT - 77 * + COUNT ( ALL col1 ) FROM tab0
----
-231

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

query II rowsort
SELECT 70, 30 + + 81 AS col0 FROM tab0
----
70
111
70
111
70
111

query I rowsort
SELECT + 4 FROM tab0 AS cor0 WHERE NOT + ( + 63 ) = - 17 + 37 * + - 31
----
4
4
4

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

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 * col0 * + col0 NOT BETWEEN + col1 AND 4
----

onlyif mysql # DIV for integer division: 
query I rowsort label-144
SELECT ALL + col1 DIV + 73 + + 65 FROM tab0
----
65
65
66

skipif mysql # not compatible
query I rowsort label-144
SELECT ALL + col1 / + 73 + + 65 FROM tab0
----
65
65
66

query I rowsort
SELECT DISTINCT - 40 + col1 FROM tab0
----
-19
-39
41

query I rowsort
SELECT col2 * - 21 AS col0 FROM tab0
----
-2079
-210
-987

query I rowsort
SELECT ALL + 85 * - col2 + 77 FROM tab1 WHERE NULL IS NULL
----
-4938
-5703
-8083

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 82 NOT IN ( 14, 6 + + 13 * - 15 * - ( + + col1 ), - + 93, - col0 )
----

query I rowsort
SELECT - ( - col2 ) + - col2 * - + col1 AS col0 FROM tab2
----
1196
3120
3944

onlyif mysql # DIV for integer division: 
query I rowsort label-150
SELECT 91 DIV - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-16
-188
-91

skipif mysql # not compatible
query I rowsort label-150
SELECT 91 / - col1 + - col0 AS col1 FROM tab0 AS cor0
----
-16
-188
-91

query I rowsort
SELECT - + col2 + + - col2 AS col2 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-152
SELECT ALL - + 82 DIV + 80 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-152
SELECT ALL - + 82 / + 80 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - - 10 AS col2 FROM tab1 cor0
----
10
10
10

query I rowsort
SELECT ALL - col1 * - col0 + ( - + col0 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
1200
1740

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

query I rowsort
SELECT + 95 + ( 6 ) AS col1 FROM tab1 AS cor0
----
101
101
101

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

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

query II rowsort
SELECT + 49 * - 49 AS col0, col1 AS col0 FROM tab0
----
-2401
1
-2401
21
-2401
81

query I rowsort
SELECT ALL + col1 + + + 82 + + - col1 AS col1 FROM tab0
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT + COUNT( * ) * - - ( + ( + 45 ) ) FROM tab2, tab0 AS cor0
----
405

skipif mysql # not compatible
query I rowsort label-160
SELECT + COUNT ( * ) * - - ( + ( + 45 ) ) FROM tab2, tab0 AS cor0
----
405

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT DISTINCT 29 - - + COUNT( * ) + COUNT( * ) col0 FROM tab2
----
35

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

onlyif mysql # DIV for integer division: 
query I rowsort label-162
SELECT ALL col1 - - - 50 - col1 * - col2 + + col1 + - col2 - + 83 DIV - - 25 col1 FROM tab2
----
1199
3141
3909

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-162
SELECT ALL col1 - - - 50 - col1 * - col2 + + col1 + - col2 - + 83 / - - 25 col1 FROM tab2
----
1199
3141
3909

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

query II rowsort
SELECT col2 AS col0, 56 - + + col1 FROM tab1
----
59
51
68
9
96
42

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-167
SELECT ALL + + ( + 93 ) AS col0 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) - 84 - + - col2 - - + col2 IS NULL
----
93
93
93

skipif mysql # not compatible
query I rowsort label-167
SELECT ALL + + ( + 93 ) AS col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) - 84 - + - col2 - - + col2 IS NULL
----
93
93
93

onlyif mysql # DIV for integer division: 
query I rowsort label-168
SELECT + col1 DIV + + 73 + - - ( + - 32 ) FROM tab2 AS cor0
----
-31
-32
-32

skipif mysql # not compatible
query I rowsort label-168
SELECT + col1 / + + 73 + - - ( + - 32 ) FROM tab2 AS cor0
----
-31
-32
-32

query I rowsort
SELECT + 53 FROM tab1 AS cor0 WHERE NOT + col2 / col2 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-170
SELECT - ( MIN ( DISTINCT 22 ) ) FROM tab0 AS cor0
----
-22

query I rowsort
SELECT ALL + 19 * - - col2 FROM tab2 AS cor0
----
1102
437
760

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

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

query I rowsort
SELECT + col2 * + - ( - col2 ) * + 82 FROM tab0
----
181138
803682
8200

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

query I rowsort
SELECT - col1 * + 3 AS col2 FROM tab0
----
-243
-3
-63

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

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

query I rowsort
SELECT 58 * + 26 * 86 * 46 AS col1 FROM tab0
----
5965648
5965648
5965648

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = 79 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT DISTINCT - - COUNT( * ) FROM tab0 AS cor0 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-179
SELECT DISTINCT - - COUNT ( * ) FROM tab0 AS cor0 WHERE - col0 IS NULL
----
0

query I rowsort
SELECT ( - col0 ) + col2 * + col1 FROM tab1 AS cor0
----
1293
210
3105

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + + + col0 col2, - 46 AS col1 FROM tab2 AS cor0
----
104
-46
133
-46
69
-46

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 * - col2 / 34 + - + col2 < NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-185
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-185
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + ( - 92 ), col0 / - col0 )
----

query I rowsort
SELECT col1 * - col0 + 24 AS col0 FROM tab2 AS cor0
----
-2322
-4904
-5001

query I rowsort
SELECT ALL - - col2 + col1 * - + col0 FROM tab1 AS cor0
----
-366
-4209
-618

onlyif mysql # aggregate syntax: 
query I rowsort label-189
SELECT ALL + 41 + + - COUNT( * ) + - + 55 AS col1 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-189
SELECT ALL + 41 + + - COUNT ( * ) + - + 55 AS col1 FROM tab0 AS cor0
----
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 95 + 91 col0 FROM tab1
----
186

onlyif mysql # DIV for integer division: 
query II rowsort label-191
SELECT DISTINCT 10 * 99 + - + col1 + - col0 col1, + ( + + col1 ) DIV + col2 * + 90 + + col0 * - 38 - - + 93 AS col0 FROM tab1
----
852
-3365
900
-3137
925
-1845

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-191
SELECT DISTINCT 10 * 99 + - + col1 + - col0 col1, + ( + + col1 ) / + col2 * + 90 + + col0 * - 38 - - + 93 AS col0 FROM tab1
----
852
-3365
900
-3137
925
-1845

query I rowsort
SELECT DISTINCT col2 - 0 + + 27 - + col2 + col0 AS col2 FROM tab0
----
114
124
42

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 16 >= - col0 * col1 + - 93
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 93 + + col2 AS col0 FROM tab2
----
116
133
151

query I rowsort
SELECT 80 + - col0 + - 84 * - + ( - + col1 ) AS col0 FROM tab0
----
-101
-1771
-6739

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + - - col2 col2 FROM tab2 AS cor0
----
117
125
74

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 42 IS NOT NULL
----

query I rowsort
SELECT + 73 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT + - COUNT( + 24 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-203
SELECT + - COUNT ( + 24 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL - + col0 AS col2 FROM tab0 WHERE NOT NULL <= - col0 + + col0 + - ( - + col0 ) * col2
----

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

query I rowsort
SELECT DISTINCT - col2 * + - 92 AS col2 FROM tab2 AS cor0
----
2116
3680
5336

onlyif mysql # aggregate syntax: 
query II rowsort label-207
SELECT ALL - MIN( + col2 ), MIN( ALL - - col0 ) AS col0 FROM tab1 AS cor0
----
-59
51

skipif mysql # not compatible
query II rowsort label-207
SELECT ALL - MIN ( + col2 ), MIN ( ALL - - col0 ) AS col0 FROM tab1 AS cor0
----
-59
51

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

query I rowsort
SELECT DISTINCT col1 + + - 20 AS col2 FROM tab1
----
-15
-6
27

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT - COUNT( * ) + - + COUNT( * ) * + 78 FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-210
SELECT - COUNT ( * ) + - + COUNT ( * ) * + 78 FROM tab1
----
-237

query I rowsort
SELECT 79 * + 55 FROM tab1
----
4345
4345
4345

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT ALL - 98 * COUNT( * ) + COUNT( DISTINCT + 13 ) + - 62 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 <= + col0 * + col2 + + ( - col2 ) / col2
----
-62

skipif mysql # not compatible
query I rowsort label-212
SELECT ALL - 98 * COUNT ( * ) + COUNT ( DISTINCT + 13 ) + - 62 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 <= + col0 * + col2 + + ( - col2 ) / col2
----
-62

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

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

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

query I rowsort
SELECT ALL - 88 + - + col2 * col2 AS col0 FROM tab1 AS cor0
----
-3569
-4712
-9304

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-216
SELECT ALL + SUM ( - - col1 ) col1 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-217
SELECT * FROM tab0 cor0 WHERE - CAST( + 28 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-217
SELECT * FROM tab0 cor0 WHERE - CAST ( + 28 AS INTEGER ) <> NULL
----

query I rowsort
SELECT 33 + col0 * 5 FROM tab2
----
263
353
408

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

query I rowsort
SELECT DISTINCT 1 * col1 AS col0 FROM tab2
----
51
67
77

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

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

skipif mysql # not compatible
query I rowsort label-222
SELECT COUNT ( * ) * ( COUNT ( * ) ) AS col0 FROM tab1
----
9

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

query I rowsort
SELECT ALL - 70 + + col2 AS col1 FROM tab0 WHERE + 8 * col2 + 54 >= - col0
----
-23
-60
29

query I rowsort
SELECT + 74 * 81 FROM tab1
----
5994
5994
5994

query I rowsort
SELECT ALL col2 + + col0 * col2 AS col0 FROM tab2
----
1081
2600
4408

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

query I rowsort
SELECT 0 * 90 FROM tab2
----
0
0
0

query I rowsort
SELECT - 64 * - col2 AS col0 FROM tab0
----
3008
6336
640

query I rowsort
SELECT - col2 + col0 * - 72 AS col1 FROM tab0
----
-1127
-6274
-7083

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

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

query I rowsort
SELECT - 54 * 73 FROM tab0
----
-3942
-3942
-3942

onlyif mysql # DIV for integer division: 
query I rowsort label-233
SELECT DISTINCT col1 DIV 51 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-233
SELECT DISTINCT col1 / 51 AS col1 FROM tab1
----
0

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT - ( col1 ) IS NULL
----
-51
-67
-77

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-236
SELECT - ( - CAST( NULL AS DECIMAL ) ) + + col0 / + 66 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-236
SELECT - ( - CAST ( NULL AS REAL ) ) + + col0 / + 66 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col1 ) >= + ( 8 )
----
85
5
59

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) BETWEEN - col2 + + 37 / + 48 AND + 14
----

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

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

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

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

query I rowsort
SELECT + 63 + + col1 FROM tab0
----
144
64
84

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-243
SELECT ALL CAST( + col0 AS SIGNED ) col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-243
SELECT ALL CAST ( + col0 AS INTEGER ) col1 FROM tab1
----
51
85
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT + 27 * + COUNT( * ) FROM tab2 WHERE - col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-245
SELECT + 27 * + COUNT ( * ) FROM tab2 WHERE - col0 <> NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-247
SELECT 90 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-247
SELECT 90 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
270

query I rowsort
SELECT DISTINCT 95 * col0 FROM tab2
----
4370
6080
7125

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT ( - COUNT( * ) ) * 25 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-249
SELECT ( - COUNT ( * ) ) * 25 FROM tab0
----
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-250
SELECT ALL COUNT( * ) DIV CAST( COUNT( * ) AS SIGNED ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-250
SELECT ALL COUNT ( * ) / CAST ( COUNT ( * ) AS INTEGER ) FROM tab0
----
1

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

query I rowsort
SELECT 65 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = ( + 38 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-255
SELECT col1 DIV + col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
1
1
2

skipif mysql # not compatible
query I rowsort label-255
SELECT col1 / + col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
1
1
2

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-258
SELECT ALL + - 52 + - MAX( - 73 + + col2 DIV - col0 ) col0 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-258
SELECT ALL + - 52 + - MAX ( - 73 + + col2 / - col0 ) col0 FROM tab1 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-259
SELECT DISTINCT MAX( 46 ) FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN NULL AND ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-259
SELECT DISTINCT MAX ( 46 ) FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN NULL AND ( col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT ALL - SUM( DISTINCT 84 ) FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-260
SELECT ALL - SUM ( DISTINCT 84 ) FROM tab1 AS cor0
----
-84

query I rowsort
SELECT ALL + col1 + + + 35 + + 59 AS col2 FROM tab0
----
115
175
95

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-262
SELECT ALL + col1 / + CAST( NULL AS DECIMAL ) + + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL + col1 / + CAST ( NULL AS REAL ) + + col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - 84 + col0 FROM tab2
----
-4238
-5553
-6404

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-265
SELECT DISTINCT + CAST( + + 17 AS SIGNED ) AS col2 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-265
SELECT DISTINCT + CAST ( + + 17 AS INTEGER ) AS col2 FROM tab2
----
17

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 - - col0 BETWEEN 41 AND 95 / + 99
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT MIN( DISTINCT + 39 ) * - 9 + COUNT( * ) AS col1 FROM tab2
----
-348

skipif mysql # not compatible
query I rowsort label-267
SELECT MIN ( DISTINCT + 39 ) * - 9 + COUNT ( * ) AS col1 FROM tab2
----
-348

onlyif mysql # DIV for integer division: 
query I rowsort label-268
SELECT DISTINCT col2 DIV + col2 + + 90 * 95 FROM tab0 WHERE NOT col1 IS NULL
----
8551

skipif mysql # not compatible
query I rowsort label-268
SELECT DISTINCT col2 / + col2 + + 90 * 95 FROM tab0 WHERE NOT col1 IS NULL
----
8551

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

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

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

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

query I rowsort
SELECT ALL + - 20 + - col0 + 21 AS col0 FROM tab1 AS cor0
----
-50
-84
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT DISTINCT + COUNT( * ) * - ( 34 ) + 72 FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-272
SELECT DISTINCT + COUNT ( * ) * - ( 34 ) + 72 FROM tab0
----
-30

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE ( + 25 ) IS NOT NULL
----
-51
-85
-91

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 56 col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-277
SELECT ALL CAST( - - 27 AS SIGNED ) FROM tab2 AS cor0
----
27
27
27

skipif mysql # not compatible
query I rowsort label-277
SELECT ALL CAST ( - - 27 AS INTEGER ) FROM tab2 AS cor0
----
27
27
27

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

skipif mysql # not compatible
query I rowsort label-278
SELECT + CAST ( NULL AS REAL ) * + + col1 * col2 - - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 * col2 - - 46 FROM tab0 AS cor0
----
146
2255
9847

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

query I rowsort
SELECT DISTINCT + - 17 - + - col2 AS col1 FROM tab1 AS cor0
----
42
51
79

query I rowsort
SELECT ALL + + col0 * + 75 * + col2 * + col0 + 53 AS col0 FROM tab0 AS cor0
----
5676803
69861878
793178

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 + + - 50 <> - col0
----

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

skipif mysql # not compatible
query I rowsort label-284
SELECT DISTINCT 34 * + - ( - COUNT ( * ) ) FROM tab1
----
102

onlyif mysql # DIV for integer division: 
query I rowsort label-285
SELECT + 19 DIV - col2 col0 FROM tab1 WHERE NOT ( - 25 ) IS NULL
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-285
SELECT + 19 / - col2 col0 FROM tab1 WHERE NOT ( - 25 ) IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT DISTINCT + SUM( + + 30 ) AS col2 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-286
SELECT DISTINCT + SUM ( + + 30 ) AS col2 FROM tab0
----
90

query II rowsort
SELECT - ( - col2 ), - col0 * + col0 AS col0 FROM tab0
----
10
-7569
47
-225
99
-9409

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * + + col2 + + col0 AS col1 FROM tab1 AS cor0
----
-4845
-4930
-6097

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT 59 * + + COUNT( * ) FROM tab0
----
177

skipif mysql # not compatible
query I rowsort label-292
SELECT 59 * + + COUNT ( * ) FROM tab0
----
177

query I rowsort
SELECT 54 FROM tab2 WHERE NOT + + col1 IN ( 70 + + ( + 34 ) )
----
54
54
54

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 43 + col2 * - col0 + 98 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 18 * 22 AS col0 FROM tab1
----
396
396
396

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

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

skipif mysql # not compatible
query I rowsort label-297
SELECT - - col1 / - + col1 FROM tab2 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 * - 48 BETWEEN ( col2 ) AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 12 * - + 20 AS col0 FROM tab1 AS cor0
----
240

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * 84 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) < NULL
----

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

query I rowsort
SELECT - + col2 + ( + - col2 ) + - 81 FROM tab1 AS cor0
----
-199
-217
-273

query II rowsort
SELECT DISTINCT + col0 AS col1, 26 AS col0 FROM tab2 AS cor0
----
46
26
64
26
75
26

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

skipif mysql # not compatible
query I rowsort label-305
SELECT + col2 / CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE 90 + ( col2 ) IS NULL
----

query I rowsort
SELECT 46 + - 63 FROM tab0
----
-17
-17
-17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + ( - col1 ) col2 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT + + col1 + - 74 AS col0 FROM tab1 WHERE - 2 * + + 36 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT DISTINCT - SUM( - col2 ) * MAX( ALL - col1 ) * - ( + COUNT( * ) ) * 31 - 76 + + COUNT( * ) AS col0 FROM tab0
----
14435

skipif mysql # not compatible
query I rowsort label-310
SELECT DISTINCT - SUM ( - col2 ) * MAX ( ALL - col1 ) * - ( + COUNT ( * ) ) * 31 - 76 + + COUNT ( * ) AS col0 FROM tab0
----
14435

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-311
SELECT + 92 * + + CAST( NULL AS SIGNED ), SUM( DISTINCT - - col1 ) AS col0 FROM tab0
----
NULL
103

skipif mysql # not compatible
query II rowsort label-311
SELECT + 92 * + + CAST ( NULL AS INTEGER ), SUM ( DISTINCT - - col1 ) AS col0 FROM tab0
----
NULL
103

onlyif mysql # aggregate syntax: 
query I rowsort label-312
SELECT DISTINCT ( - - COUNT( * ) ) AS col1 FROM tab2, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-312
SELECT DISTINCT ( - - COUNT ( * ) ) AS col1 FROM tab2, tab0 AS cor0
----
9

query I rowsort
SELECT ALL 37 + col1 + + col1 * - ( + 8 ) AS col0 FROM tab1
----
-292
-61
2

query II rowsort
SELECT 91 - 32, + col0 FROM tab0
----
59
15
59
87
59
97

query I rowsort
SELECT col2 + + col0 * + col1 AS col0 FROM tab0
----
1262
1837
196

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

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

query I rowsort
SELECT col0 * - col2 + ( col1 ) FROM tab0 AS cor0 WHERE - 20 * - col0 >= ( + 84 + - col1 + - - 31 )
----
-624
-849
-9602

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

onlyif mysql # aggregate syntax: 
query II rowsort label-319
SELECT DISTINCT - COUNT( * ) - - + 61 AS col0, - 81 AS col2 FROM tab1 AS cor0
----
58
-81

skipif mysql # not compatible
query II rowsort label-319
SELECT DISTINCT - COUNT ( * ) - - + 61 AS col0, - 81 AS col2 FROM tab1 AS cor0
----
58
-81

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

query I rowsort
SELECT DISTINCT + ( + + col0 ) * + col2 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

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

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

query II rowsort
SELECT ALL col1, col0 FROM tab0 WHERE NOT 30 + col0 NOT BETWEEN ( NULL ) AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-324
SELECT ALL - - COUNT( * ) * - 46 AS col0 FROM tab0 WHERE NOT - - ( + col0 ) + 56 + col0 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-324
SELECT ALL - - COUNT ( * ) * - 46 AS col0 FROM tab0 WHERE NOT - - ( + col0 ) + 56 + col0 > NULL
----
0

query II rowsort
SELECT col2, col1 * + col1 * 31 FROM tab1
----
59
775
68
68479
96
6076

query II rowsort
SELECT ALL 52 AS col2, - col2 AS col0 FROM tab2
----
52
-23
52
-40
52
-58

query II rowsort
SELECT col0, 60 AS col2 FROM tab2 AS cor0
----
46
60
64
60
75
60

query I rowsort
SELECT DISTINCT 69 * - col2 FROM tab0 AS cor0
----
-3243
-6831
-690

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-329
SELECT COUNT( CAST( col0 AS DECIMAL ) ) col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-329
SELECT COUNT ( CAST ( col0 AS REAL ) ) col0 FROM tab1 cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 75 + - + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 6 * 1 * col2 BETWEEN NULL AND - 58
----

onlyif mysql # DIV for integer division: 
query I rowsort label-332
SELECT + 35 DIV 8 + + - ( - col2 ) * - - 18 FROM tab2 AS cor0
----
1048
418
724

skipif mysql # not compatible
query I rowsort label-332
SELECT + 35 / 8 + + - ( - col2 ) * - - 18 FROM tab2 AS cor0
----
1048
418
724

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-335
SELECT DISTINCT - col2 DIV - + col2 + + col0 AS col2 FROM tab0 AS cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-335
SELECT DISTINCT - col2 / - + col2 + + col0 AS col2 FROM tab0 AS cor0
----
16
88
98

query II rowsort
SELECT ALL - col2 + - col2, col2 * - + col1 AS col2 FROM tab2 AS cor0
----
-116
-3886
-46
-1173
-80
-3080

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * + col2, 20 * + - col1 col2 FROM tab1 AS cor0
----
-4896
-280
-5015
-100
-6188
-940

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

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

query I rowsort
SELECT 85 * - + 6 * col1 + - 90 AS col0 FROM tab1
----
-24060
-2640
-7230

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN col0 * + 15 AND col2 * - 40 + 16
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) < + col0
----

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

query I rowsort
SELECT DISTINCT - 96 * + + col0 + - + 92 FROM tab2
----
-4508
-6236
-7292

query I rowsort
SELECT ALL - 42 + + 75 AS col1 FROM tab0
----
33
33
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-346
SELECT - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

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

query II rowsort
SELECT + 1 AS col1, - 75 * - 61 AS col1 FROM tab2 AS cor0
----
1
4575
1
4575
1
4575

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

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT DISTINCT + SUM( 88 ) AS col2 FROM tab1 AS cor0
----
264

skipif mysql # not compatible
query I rowsort label-350
SELECT DISTINCT + SUM ( 88 ) AS col2 FROM tab1 AS cor0
----
264

query I rowsort
SELECT ALL + - col1 * - 32 FROM tab1 AS cor0
----
1504
160
448

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 ) >= + 88
----
97
1
99

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-355
SELECT DISTINCT COUNT( * ) AS col0, + ( - 39 ) AS col0 FROM tab2 cor0
----
3
-39

skipif mysql # not compatible
query II rowsort label-355
SELECT DISTINCT COUNT ( * ) AS col0, + ( - 39 ) AS col0 FROM tab2 cor0
----
3
-39

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE NOT col2 + col1 NOT BETWEEN NULL AND + col2
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( - - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 43 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-362
SELECT - ( col2 ) * - + col1 + + col2 + 15 DIV + 2 FROM tab2
----
1203
3127
3951

skipif mysql # not compatible
query I rowsort label-362
SELECT - ( col2 ) * - + col1 + + col2 + 15 / + 2 FROM tab2
----
1203
3127
3951

onlyif mysql # DIV for integer division: 
query II rowsort label-363
SELECT col0 DIV - 74 AS col1, + 64 AS col0 FROM tab1 AS cor0
----
-1
64
-1
64
0
64

skipif mysql # not compatible
query II rowsort label-363
SELECT col0 / - 74 AS col1, + 64 AS col0 FROM tab1 AS cor0
----
-1
64
-1
64
0
64

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

query I rowsort
SELECT ALL + - col0 * + 73 + - col2 AS col2 FROM tab1 AS cor0
----
-3819
-6264
-6711

query II rowsort
SELECT col2, 89 FROM tab2
----
23
89
40
89
58
89

query I rowsort
SELECT ALL - 40 + - col2 AS col2 FROM tab0
----
-139
-50
-87

query I rowsort
SELECT - 93 + - col2 FROM tab1 AS cor0
----
-152
-161
-189

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-369
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) DIV 61 DIV - - 23 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-369
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) / 61 / - - 23 AS col1 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT ALL - col1 * + 84 AS col0 FROM tab0 AS cor0
----
-1764
-6804
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-372
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) - 17 AS col0 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-372
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) - 17 AS col0 FROM tab1
----
-20

query I rowsort
SELECT ALL col0 - + - 82 * + ( - col1 ) AS col0 FROM tab1
----
-1097
-325
-3763

onlyif mysql # aggregate syntax: 
query II rowsort label-374
SELECT - 1 col2, SUM( + ( - 27 ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-374
SELECT - 1 col2, SUM ( + ( - 27 ) ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-375
SELECT DISTINCT - col1 DIV - col2 col0 FROM tab2
----
1
2

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + 10 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-380
SELECT DISTINCT - - col1 DIV col2 AS col1 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-380
SELECT DISTINCT - - col1 / col2 AS col1 FROM tab2 AS cor0
----
1
2

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-383
SELECT DISTINCT 51 * ( + MAX( DISTINCT - 71 ) ) FROM tab0 AS cor0
----
-3621

skipif mysql # not compatible
query I rowsort label-383
SELECT DISTINCT 51 * ( + MAX ( DISTINCT - 71 ) ) FROM tab0 AS cor0
----
-3621

query I rowsort
SELECT - - ( + 14 ) FROM tab2 AS cor0
----
14
14
14

onlyif mysql # DIV for integer division: 
query III rowsort label-385
SELECT ALL * FROM tab0 WHERE + col1 NOT IN ( - 69 * + + 62, col0 DIV 64 * + col1, - col2 )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-385
SELECT ALL * FROM tab0 WHERE + col1 NOT IN ( - 69 * + + 62, col0 / 64 * + col1, - col2 )
----
15
81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-386
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1, SUM( DISTINCT - 77 ) AS col0 FROM tab0
----
NULL
-77

skipif mysql # not compatible
query II rowsort label-386
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1, SUM ( DISTINCT - 77 ) AS col0 FROM tab0
----
NULL
-77

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 <= + - col0 * - col0 * + 91
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) * COUNT( DISTINCT - - col1 ) FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-389
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) * COUNT ( DISTINCT - - col1 ) FROM tab0
----
27

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-392
SELECT DISTINCT + 49 AS col2, 45 * - + MIN( col2 ) FROM tab1
----
49
-2655

skipif mysql # not compatible
query II rowsort label-392
SELECT DISTINCT + 49 AS col2, 45 * - + MIN ( col2 ) FROM tab1
----
49
-2655

query I rowsort
SELECT - - 81 + - col1 FROM tab1 AS cor0
----
34
67
76

onlyif mysql # DIV for integer division: 
query I rowsort label-394
SELECT 66 * + col0 + - - ( - col1 ) DIV + col0 + + 23 FROM tab0 AS cor0
----
1008
5765
6425

skipif mysql # not compatible
query I rowsort label-394
SELECT 66 * + col0 + - - ( - col1 ) / + col0 + + 23 FROM tab0 AS cor0
----
1008
5765
6425

query I rowsort
SELECT - + col2 + - - col0 AS col1 FROM tab1 AS cor0
----
-45
23
26

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

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

query I rowsort
SELECT DISTINCT + col0 * - - col1 + - 77 AS col1 FROM tab1
----
348
4200
637

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT - MIN( 74 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-74

skipif mysql # not compatible
query I rowsort label-398
SELECT - MIN ( 74 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-399
SELECT ALL 89 * + COUNT( * ) + - - 42 * 6 - + COUNT( * ) AS col0 FROM tab2
----
516

skipif mysql # not compatible
query I rowsort label-399
SELECT ALL 89 * + COUNT ( * ) + - - 42 * 6 - + COUNT ( * ) AS col0 FROM tab2
----
516

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

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

query I rowsort
SELECT ALL + - col0 - - 96 / col2 FROM tab2 AS cor0 WHERE NOT ( ( - - col1 ) ) >= 74 / col1 / ( - col1 ) - + col1
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-402
SELECT - col2 / + 93 + + + col0 col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-403
SELECT 14 DIV + 96 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-403
SELECT 14 / + 96 FROM tab0 AS cor0
----
0
0
0

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

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

query II rowsort
SELECT - col2 * col0 + + col2, col0 FROM tab2
----
-1035
46
-2520
64
-4292
75

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-408
SELECT + + 4 DIV col0 * + + col0 + + col1 AS col0, - col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

skipif mysql # not compatible
query II rowsort label-408
SELECT + + 4 / col0 * + + col0 + + col1 AS col0, - col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-411
SELECT 52 DIV - + col2, - col1 AS col0 FROM tab2
----
-1
-77
-2
-51
0
-67

skipif mysql # not compatible
query II rowsort label-411
SELECT 52 / - + col2, - col1 AS col0 FROM tab2
----
-1
-77
-2
-51
0
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-412
SELECT ( + col2 ) DIV + col1 FROM tab0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-412
SELECT ( + col2 ) / + col1 FROM tab0
----
0
0
99

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 * col1 + + + col1 + - col2 AS col0 FROM tab0
----
-97
452
6595

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-419
SELECT DISTINCT + CAST( + col2 AS SIGNED ) col1 FROM tab1
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-419
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) col1 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-420
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN NULL AND ( + CAST( 29 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-420
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN NULL AND ( + CAST ( 29 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT col2 + - 57 + + col0 AS col2 FROM tab2
----
12
47
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-424
SELECT ALL - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-424
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-425
SELECT ALL + - col1 * - 53 + - CAST( NULL AS SIGNED ) + - + 67 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-425
SELECT ALL + - col1 * - 53 + - CAST ( NULL AS INTEGER ) + - + 67 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT 30 FROM tab2 AS cor0 WHERE col0 >= col2 / + col0 * - + 98 * col1
----
30
30
30

query I rowsort
SELECT ALL - + col0 - + col1 * - 62 AS col1 FROM tab0 cor0
----
-35
1215
5007

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

query I rowsort
SELECT ALL - col0 * + 70 AS col0 FROM tab0 AS cor0 WHERE col2 <> - col0
----
-1050
-6090
-6790

query I rowsort
SELECT DISTINCT - 59 * + - 50 AS col1 FROM tab0
----
2950

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

skipif mysql # not compatible
query I rowsort label-431
SELECT + COUNT ( ALL - ( + col1 ) ) FROM tab2
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-432
SELECT DISTINCT + 34 + + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-432
SELECT DISTINCT + 34 + + CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT ALL + 85 - + - col2 AS col1 FROM tab0
----
132
184
95

query II rowsort
SELECT DISTINCT col0 + + col1, 75 AS col2 FROM tab1
----
138
75
65
75
90
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-435
SELECT DISTINCT - COUNT( * ) DIV + - COUNT( * ) - + CAST( - 63 AS SIGNED ) AS col0 FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-435
SELECT DISTINCT - COUNT ( * ) / + - COUNT ( * ) - + CAST ( - 63 AS INTEGER ) AS col0 FROM tab0
----
64

onlyif mysql # aggregate syntax: 
query I rowsort label-436
SELECT ALL + 41 + - MAX( + col0 ) FROM tab0
----
-56

skipif mysql # not compatible
query I rowsort label-436
SELECT ALL + 41 + - MAX ( + col0 ) FROM tab0
----
-56

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( + col0 ) > NULL )
----

query I rowsort
SELECT + + 79 AS col2 FROM tab1 AS cor0
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-439
SELECT - - COUNT( * ) * + 2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-439
SELECT - - COUNT ( * ) * + 2 FROM tab2 AS cor0
----
6

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

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

query I rowsort
SELECT ALL + col1 * - 73 FROM tab0
----
-1533
-5913
-73

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

skipif mysql # not compatible
query I rowsort label-443
SELECT DISTINCT - CAST ( + MAX ( DISTINCT + col1 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < - col0
----

query I rowsort
SELECT ALL + col1 + + + col0 * - 24 + + 10 + 2 FROM tab1 cor0 WHERE ( 24 ) IS NULL
----

query I rowsort
SELECT DISTINCT + - 93 * col0 * - col0 FROM tab1 AS cor0
----
241893
671925
770133

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

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

query I rowsort
SELECT ALL 97 + - col1 + - + col0 * 2 AS col1 FROM tab1
----
-132
-19
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT + MIN( - ( col2 ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-449
SELECT + MIN ( - ( col2 ) ) FROM tab1
----
-96

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

onlyif mysql # DIV for integer division: 
query I rowsort label-451
SELECT + 82 DIV - - col1 AS col2 FROM tab0
----
1
3
82

skipif mysql # not compatible
query I rowsort label-451
SELECT + 82 / - - col1 AS col2 FROM tab0
----
1
3
82

query I rowsort
SELECT DISTINCT - col0 + - 2 AS col2 FROM tab0 AS cor0
----
-17
-89
-99

query III rowsort
SELECT ALL * FROM tab2 WHERE - 48 NOT IN ( 54, + col2 - - + 25, + col1, - + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 3 + 66 AS col0 FROM tab2
----
69
69
69

onlyif mysql # DIV for integer division: 
query I rowsort label-455
SELECT DISTINCT col1 - col2 DIV - ( + + col1 ) AS col2 FROM tab1
----
16
20
48

skipif mysql # not compatible
query I rowsort label-455
SELECT DISTINCT col1 - col2 / - ( + + col1 ) AS col2 FROM tab1
----
16
20
48

onlyif mysql # aggregate syntax: 
query I rowsort label-456
SELECT DISTINCT - 12 * 79 - - - COUNT( + - ( + col0 ) ) FROM tab0
----
-951

skipif mysql # not compatible
query I rowsort label-456
SELECT DISTINCT - 12 * 79 - - - COUNT ( + - ( + col0 ) ) FROM tab0
----
-951

query I rowsort
SELECT + 91 FROM tab1 AS cor0 WHERE col0 + - 87 = NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-459
SELECT - col1 * + + 61 - + + CAST ( NULL AS REAL ) - + 59 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT - - 81 - - ( + - 93 ) + - COUNT( * ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-460
SELECT - - 81 - - ( + - 93 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT + col1 + + col1 FROM tab0 cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT - 8 - - col1 FROM tab1 AS cor0
----
-3
39
6

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

skipif mysql # not compatible
query I rowsort label-463
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL <> NULL
----
0

query I rowsort
SELECT - - ( - col2 ) - + col0 AS col0 FROM tab0 AS cor0
----
-196
-62
-97

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

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

query I rowsort
SELECT + ( - - 9 ) AS col1 FROM tab0
----
9
9
9

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

onlyif mysql # aggregate syntax: 
query II rowsort label-468
SELECT DISTINCT - 4, + SUM( - 36 ) AS col2 FROM tab1
----
-4
-108

skipif mysql # not compatible
query II rowsort label-468
SELECT DISTINCT - 4, + SUM ( - 36 ) AS col2 FROM tab1
----
-4
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT DISTINCT - MIN( ALL - + col0 ) * + 69 * + + ( - + COUNT( * ) ) AS col1 FROM tab0
----
-20079

skipif mysql # not compatible
query I rowsort label-469
SELECT DISTINCT - MIN ( ALL - + col0 ) * + 69 * + + ( - + COUNT ( * ) ) AS col1 FROM tab0
----
-20079

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 / - - col0 + col1 <= NULL
----

query I rowsort
SELECT DISTINCT col0 * + + col2 FROM tab2 cor0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-473
SELECT DISTINCT - 65 AS col2, + COUNT( * ) * - - 21 + COUNT( * ) + + + 39 FROM tab1 AS cor0
----
-65
105

skipif mysql # not compatible
query II rowsort label-473
SELECT DISTINCT - 65 AS col2, + COUNT ( * ) * - - 21 + COUNT ( * ) + + + 39 FROM tab1 AS cor0
----
-65
105

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT ALL COUNT( * ) * + MIN( + col2 ) FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-474
SELECT ALL COUNT ( * ) * + MIN ( + col2 ) FROM tab0 AS cor0
----
30

query I rowsort
SELECT DISTINCT 12 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 50 AS col1 FROM tab2 WHERE + col2 * col0 + - ( + + col0 ) <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-477
SELECT - - COUNT( * ) AS col1, MIN( + - 84 ) DIV + - 71 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
1

skipif mysql # not compatible
query II rowsort label-477
SELECT - - COUNT ( * ) AS col1, MIN ( + - 84 ) / + - 71 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-479
SELECT DISTINCT - 37 * - COUNT( * ) FROM tab1 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-479
SELECT DISTINCT - 37 * - COUNT ( * ) FROM tab1 AS cor0
----
111

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-480
SELECT - ( - COUNT ( * ) ) col1, + 94 * + COUNT ( * ) * 1 FROM tab0 AS cor0
----
3
282

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 49 + - col1 col2 FROM tab2 AS cor0
----
-2305
-3213
-3742

query I rowsort
SELECT + 8 FROM tab1 AS cor0 WHERE NOT 71 IS NULL
----
8
8
8

query I rowsort
SELECT ALL 95 * + col2 AS col1 FROM tab1 AS cor0
----
5605
6460
9120

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 * - - col0 * + + 69 IS NULL
----

query II rowsort
SELECT DISTINCT ( 26 ), col0 AS col2 FROM tab0 AS cor0
----
26
15
26
87
26
97

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-487
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) + - 57 col2 FROM tab0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-488
SELECT 5 + + + COUNT ( * ) - MAX ( + col2 ) / - - COUNT ( * ) FROM tab0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT ALL COUNT( * ) * + 73 FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-489
SELECT ALL COUNT ( * ) * + 73 FROM tab0
----
219

query I rowsort
SELECT ALL - 64 * - col0 AS col1 FROM tab0
----
5568
6208
960

query II rowsort
SELECT - col2, + 26 AS col2 FROM tab2
----
-23
26
-40
26
-58
26

query II rowsort
SELECT col2, col0 + - 75 AS col2 FROM tab1
----
59
10
68
16
96
-24

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE + col2 * - - col0 NOT BETWEEN NULL AND + 91
----
-51
-85
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-494
SELECT DISTINCT - 4 DIV + 89 * + SUM( + + 1 ) + + + CAST( 4 AS SIGNED ) AS col2 FROM tab0 cor0
----
4

skipif mysql # not compatible
query I rowsort label-494
SELECT DISTINCT - 4 / + 89 * + SUM ( + + 1 ) + + + CAST ( 4 AS INTEGER ) AS col2 FROM tab0 cor0
----
4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 53 - col0 ) NOT BETWEEN NULL AND - 2 * - col1
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-498
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN + - col1 * - col2 AND - + col2
----

skipif mysql # not compatible
query III rowsort label-498
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN + - col1 * - col2 AND - + col2
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 95 col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-501
SELECT col2 * col1 DIV + 52 FROM tab2
----
22
59
74

skipif mysql # not compatible
query I rowsort label-501
SELECT col2 * col1 / + 52 FROM tab2
----
22
59
74

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

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

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

query I rowsort
SELECT ALL - col2 * + col1 + + col1 FROM tab1 cor0
----
-1330
-290
-3149

query I rowsort
SELECT ALL + col2 + col0 + + - col2 * + col0 FROM tab0 AS cor0
----
-643
-773
-9407

query I rowsort
SELECT DISTINCT 81 + + ( 15 ) * - 66 AS col1 FROM tab2 AS cor0
----
-909

onlyif mysql # aggregate syntax: 
query II rowsort label-507
SELECT + 41 AS col2, + SUM( 8 ) FROM tab2 AS cor0
----
41
24

skipif mysql # not compatible
query II rowsort label-507
SELECT + 41 AS col2, + SUM ( 8 ) FROM tab2 AS cor0
----
41
24

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-509
SELECT DISTINCT + 26 * - 1 * + 81 + COUNT( * ) DIV + 19 * + 41 + + COUNT( + 17 ) col2 FROM tab1
----
-2103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-509
SELECT DISTINCT + 26 * - 1 * + 81 + COUNT ( * ) / + 19 * + 41 + + COUNT ( + 17 ) col2 FROM tab1
----
-2103

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

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

skipif mysql # not compatible
query I rowsort label-511
SELECT ALL - COUNT ( * ) + + - COUNT ( * ) FROM tab2
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - + 78 + 52 col2 FROM tab2
----
-101
-72
-90

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

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

query I rowsort
SELECT - col1 FROM tab2 WHERE NULL >= - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-515
SELECT DISTINCT - 36 DIV + - col1 - + col0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-515
SELECT DISTINCT - 36 / + - col1 - + col0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

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

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

query I rowsort
SELECT + 46 * col1 * col1 + 89 AS col0 FROM tab0 AS cor0
----
135
20375
301895

query I rowsort
SELECT DISTINCT - col0 * + 93 + - col2 + + - col2 + - col2 AS col2 FROM tab2 AS cor0
----
-4347
-6072
-7149

onlyif mysql # aggregate syntax: 
query II rowsort label-519
SELECT DISTINCT - + COUNT( * ) AS col1, - SUM( ALL + + col0 ) FROM tab0 WHERE NULL IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-519
SELECT DISTINCT - + COUNT ( * ) AS col1, - SUM ( ALL + + col0 ) FROM tab0 WHERE NULL IS NOT NULL
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT COUNT( DISTINCT + 10 ) col1 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-520
SELECT COUNT ( DISTINCT + 10 ) col1 FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-521
SELECT - col0 - - 32 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-521
SELECT - col0 - - 32 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT + - 85, col1 AS col0 FROM tab0 AS cor0
----
-85
1
-85
21
-85
81

onlyif mysql # aggregate syntax: 
query II rowsort label-523
SELECT - - 86, COUNT( * ) AS col2 FROM tab1 AS cor0
----
86
3

skipif mysql # not compatible
query II rowsort label-523
SELECT - - 86, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
86
3

query I rowsort
SELECT DISTINCT + ( - - col1 ) AS col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL col2 * + - col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL < - 15
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-528
SELECT ALL col0 DIV + 46 AS col1 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-528
SELECT ALL col0 / + 46 AS col1 FROM tab0
----
0
1
2

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-531
SELECT - col0 DIV + col1 FROM tab0 AS cor0 WHERE NOT CAST( + col0 AS SIGNED ) IS NULL
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-531
SELECT - col0 / + col1 FROM tab0 AS cor0 WHERE NOT CAST ( + col0 AS INTEGER ) IS NULL
----
-4
-97
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-532
SELECT DISTINCT + + col2 * - - col2 * - + ( + ( + + CAST( + 65 AS SIGNED ) ) ) AS col2 FROM tab0 AS cor0 WHERE + col2 = - col0 / - 50 * - + 10 + + + col2 + 75
----

skipif mysql # not compatible
query I rowsort label-532
SELECT DISTINCT + + col2 * - - col2 * - + ( + ( + + CAST ( + 65 AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0 WHERE + col2 = - col0 / - 50 * - + 10 + + + col2 + 75
----

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

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

query I rowsort
SELECT 83 * - ( + - ( ( 67 ) ) ) AS col2 FROM tab1
----
5561
5561
5561

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-538
SELECT ALL + COUNT( * ) + - 75 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-538
SELECT ALL + COUNT ( * ) + - 75 FROM tab0 AS cor0
----
-72

query I rowsort
SELECT DISTINCT - + 22 + + col1 AS col2 FROM tab2 AS cor0
----
29
45
55

query II rowsort
SELECT col2 + - col2 AS col1, + col2 FROM tab2 WHERE col2 > - + 61
----
0
23
0
40
0
58

query I rowsort
SELECT ( + col2 ) + + col1 * + + col2 FROM tab2
----
1196
3120
3944

query I rowsort
SELECT ALL + col2 + col0 * ( + - 41 ) AS col2 FROM tab1
----
-1995
-3426
-3663

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-543
SELECT * FROM tab0 WHERE CAST( NULL AS DECIMAL ) / 76 < - + col2
----

skipif mysql # not compatible
query III rowsort label-543
SELECT * FROM tab0 WHERE CAST ( NULL AS REAL ) / 76 < - + col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT MIN( 13 ) AS col1 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-545
SELECT MIN ( 13 ) AS col1 FROM tab2
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT DISTINCT + COUNT( * ) + COUNT( * ) col1 FROM tab0
----
6

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-547
SELECT DISTINCT + CAST( NULL AS SIGNED ), col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-547
SELECT DISTINCT + CAST ( NULL AS INTEGER ), col2 AS col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ALL - 69 + col0 + - 28 + - - 1 * - - 69 * - ( + col1 ) AS col2 FROM tab2
----
-3570
-4645
-5346

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-549
SELECT DISTINCT col2 AS col1, + CAST( NULL AS SIGNED ) * + ( ( + col0 ) ) - + col2 AS col2 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-549
SELECT DISTINCT col2 AS col1, + CAST ( NULL AS INTEGER ) * + ( ( + col0 ) ) - + col2 AS col2 FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT DISTINCT + + col2 * col0 - + 71 FROM tab0 AS cor0
----
634
799
9532

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-552
SELECT - - col1 DIV + col2 + col0 - + - 88 AS col0, + CAST( NULL AS SIGNED ) * - col0 * - - col2 AS col1 FROM tab0 AS cor0
----
104
NULL
177
NULL
185
NULL

skipif mysql # not compatible
query II rowsort label-552
SELECT - - col1 / + col2 + col0 - + - 88 AS col0, + CAST ( NULL AS INTEGER ) * - col0 * - - col2 AS col1 FROM tab0 AS cor0
----
104
NULL
177
NULL
185
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-553
SELECT - - 43, - AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 WHERE - col2 + - col2 BETWEEN NULL AND NULL
----
43
NULL

skipif mysql # not compatible
query II rowsort label-553
SELECT - - 43, - AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 WHERE - col2 + - col2 BETWEEN NULL AND NULL
----
43
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-554
SELECT ALL + ( - - 8 ) DIV 1 AS col1 FROM tab1
----
8
8
8

skipif mysql # not compatible
query I rowsort label-554
SELECT ALL + ( - - 8 ) / 1 AS col1 FROM tab1
----
8
8
8

query I rowsort
SELECT ALL + 1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-558
SELECT - 33 * + CAST( + + col2 AS SIGNED ) AS col1, col2 * col0 FROM tab0
----
-1551
705
-3267
9603
-330
870

skipif mysql # not compatible
query II rowsort label-558
SELECT - 33 * + CAST ( + + col2 AS INTEGER ) AS col1, col2 * col0 FROM tab0
----
-1551
705
-3267
9603
-330
870

query I rowsort
SELECT DISTINCT + 63 * - col1 AS col0 FROM tab0
----
-1323
-5103
-63

query I rowsort
SELECT DISTINCT col1 * - 21 * + + col1 FROM tab0
----
-137781
-21
-9261

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-561
SELECT ALL + MAX( col1 ) / CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-561
SELECT ALL + MAX ( col1 ) / CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-564
SELECT ALL - 91 * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-564
SELECT ALL - 91 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 18 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-566
SELECT + + col2 + + 56 + - + 34 DIV + CAST( 31 AS SIGNED ) FROM tab1 AS cor0
----
114
123
151

skipif mysql # not compatible
query I rowsort label-566
SELECT + + col2 + + 56 + - + 34 / + CAST ( 31 AS INTEGER ) FROM tab1 AS cor0
----
114
123
151

query I rowsort
SELECT DISTINCT 80 * - 21 * - col0 FROM tab0 AS cor0
----
146160
162960
25200

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-568
SELECT col1 * + - CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-568
SELECT col1 * + - CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-569
SELECT ALL + - MIN( - 26 ) AS col2 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-569
SELECT ALL + - MIN ( - 26 ) AS col2 FROM tab2 AS cor0
----
26

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

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL - - CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT col2 * + 25 - - - 83 FROM tab2 cor0
----
1367
492
917

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + col2 + col0 col0 FROM tab1 AS cor0
----
1395
3287
380

query II rowsort
SELECT col1, col2 AS col1 FROM tab2 AS cor0 WHERE NULL = - col2 * - col1 * - col1
----

query I rowsort
SELECT - col2 * + col2 * + 98 + + ( - - col1 ) FROM tab2 AS cor0
----
-156723
-329605
-51791

onlyif mysql # aggregate syntax: 
query II rowsort label-575
SELECT + + SUM( - 21 ), - 43 AS col1 FROM tab1 AS cor0
----
-63
-43

skipif mysql # not compatible
query II rowsort label-575
SELECT + + SUM ( - 21 ), - 43 AS col1 FROM tab1 AS cor0
----
-63
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT COUNT( 31 ) * + 74 AS col0 FROM tab2 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-576
SELECT COUNT ( 31 ) * + 74 AS col0 FROM tab2 AS cor0
----
222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 30 + col0 * col0 AS col0, - ( + + 61 ) col0 FROM tab2
----
2146
-61
4126
-61
5655
-61

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-578
SELECT col0 / col1 * col1 + + + CAST( NULL AS DECIMAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-578
SELECT col0 / col1 * col1 + + + CAST ( NULL AS REAL ) AS col2 FROM tab2
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT - 59 + + - 13 AS col2 FROM tab1
----
-72

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-582
SELECT - col1 DIV + col0 + - col0 + + - 55 col0 FROM tab2
----
-102
-120
-130

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-582
SELECT - col1 / + col0 + - col0 + + - 55 col0 FROM tab2
----
-102
-120
-130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-583
SELECT + ( + + 75 ) * 9 + + - col0 AS col1 FROM tab1 AS cor0 WHERE - col1 * - + col1 <= + 61 * CAST( ( - ( - col2 ) ) AS SIGNED ) + - 47
----
584
590
624

skipif mysql # not compatible
query I rowsort label-583
SELECT + ( + + 75 ) * 9 + + - col0 AS col1 FROM tab1 AS cor0 WHERE - col1 * - + col1 <= + 61 * CAST ( ( - ( - col2 ) ) AS INTEGER ) + - 47
----
584
590
624

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT + - MIN( + 87 ) FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-585
SELECT + - MIN ( + 87 ) FROM tab0 AS cor0
----
-87

query I rowsort
SELECT ALL + 18 - - 32 * - - col2 + - 54 FROM tab1 AS cor0
----
1852
2140
3036

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-587
SELECT DISTINCT + 2, - CAST( NULL AS SIGNED ) * 79 * - - MIN( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
2
NULL

skipif mysql # not compatible
query II rowsort label-587
SELECT DISTINCT + 2, - CAST ( NULL AS INTEGER ) * 79 * - - MIN ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
2
NULL

query I rowsort
SELECT + col0 * + + 94 AS col1 FROM tab0 AS cor0
----
1410
8178
9118

query I rowsort
SELECT ALL - ( + + 34 ) FROM tab0
----
-34
-34
-34

query II rowsort
SELECT DISTINCT col1, + col1 + 8 AS col0 FROM tab1
----
14
22
47
55
5
13

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

query I rowsort
SELECT ALL + col2 * + ( + col0 ) + col1 AS col2 FROM tab2 cor0
----
1109
2637
4417

onlyif mysql # aggregate syntax: 
query I rowsort label-593
SELECT ALL + MIN( ALL + + col2 ) FROM tab1 AS cor0 WHERE NOT 37 + 91 IS NULL
----
59

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL + MIN ( ALL + + col2 ) FROM tab1 AS cor0 WHERE NOT 37 + 91 IS NULL
----
59

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

query I rowsort
SELECT ALL - col2 * + + 50 * col2 AS col1 FROM tab1 AS cor0
----
-174050
-231200
-460800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + col0 * col0 col2 FROM tab1 AS cor0
----
-249696
-426275
-563108

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT - ( + - col1 ) * - col1 + + col0 + - col1 IS NULL
----
-10
-47
-99

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

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

query I rowsort
SELECT ALL + col2 * + 24 + + + col2 FROM tab0 AS cor0
----
1175
2475
250

query I rowsort
SELECT DISTINCT - + ( - - col0 ) AS col0 FROM tab1 WHERE NOT NULL > NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 92 IN ( - col0 * + 22 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( 9 ) * col2 + - 42 + + 95 AS col0 FROM tab2
----
260
413
575

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col1 <= + col1
----

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

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

query I rowsort
SELECT ALL + ( + col1 ) * - 11 AS col1 FROM tab2
----
-561
-737
-847

onlyif mysql # aggregate syntax: 
query I rowsort label-606
SELECT - 16 * COUNT( * ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-606
SELECT - 16 * COUNT ( * ) FROM tab2
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-607
SELECT ALL CAST( + 38 AS SIGNED ) * + 93 + - SUM( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
3335

skipif mysql # not compatible
query I rowsort label-607
SELECT ALL CAST ( + 38 AS INTEGER ) * + 93 + - SUM ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
3335

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

query II rowsort
SELECT DISTINCT - col0, - 14 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * - 47 * col1 + + + col1 AS col2 FROM tab1 cor0
----
19980
201066
33572

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-611
SELECT ALL col0 + - + col2 * + CAST( - 33 AS SIGNED ) AS col1 FROM tab0
----
1566
3364
417

skipif mysql # not compatible
query I rowsort label-611
SELECT ALL col0 + - + col2 * + CAST ( - 33 AS INTEGER ) AS col1 FROM tab0
----
1566
3364
417

query I rowsort
SELECT DISTINCT - 47 * 19 FROM tab1 AS cor0 WHERE NOT 89 / 40 BETWEEN + 46 AND - 78 + + + 77
----
-893

query I rowsort
SELECT - + 49 + col2 FROM tab2 AS cor0
----
-26
-9
9

query I rowsort
SELECT DISTINCT 67 - col2 FROM tab2 AS cor0 WHERE NOT 8 * + 67 <= - col2 + col1
----
27
44
9

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-616
SELECT - 15 + + COUNT( ALL col1 ) * 41 DIV ( - + CAST( + 78 AS SIGNED ) ) FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-616
SELECT - 15 + + COUNT ( ALL col1 ) * 41 / ( - + CAST ( + 78 AS INTEGER ) ) FROM tab1 AS cor0
----
-16

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

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

query I rowsort
SELECT + 41 * ( + col2 ) AS col1 FROM tab2
----
1640
2378
943

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = - 53
----

query III rowsort
SELECT * FROM tab1 WHERE 86 - - 59 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-621
SELECT DISTINCT col0 + - col0 DIV + col1 AS col1 FROM tab0
----
0
15
83

skipif mysql # not compatible
query I rowsort label-621
SELECT DISTINCT col0 + - col0 / + col1 AS col1 FROM tab0
----
0
15
83

query II rowsort
SELECT DISTINCT + - col0 AS col2, + ( + col2 ) AS col0 FROM tab2 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-623
SELECT DISTINCT * FROM tab0 WHERE NULL > - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-623
SELECT DISTINCT * FROM tab0 WHERE NULL > - + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT + 20 - - - COUNT( ALL + col2 ) + - - 56 FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-624
SELECT + 20 - - - COUNT ( ALL + col2 ) + - - 56 FROM tab2
----
73

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col2 * - col0, ( - + ( - col0 ) ), + 40 + + ( + - 0 ), - + col0 )
----

query II rowsort
SELECT col1 * - + col0 * 2, - col2 AS col1 FROM tab2
----
-10050
-58
-4692
-23
-9856
-40

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

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

query I rowsort
SELECT 56 * + 2 * col2 FROM tab1
----
10752
6608
7616

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-629
SELECT ALL - - CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-629
SELECT ALL - - CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 <= + 91 * - col1 + + 10 - + + col2 * - col2 * + 36 * + + col2
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 28 BETWEEN 70 AND col2 * - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 14 * col1 * 52 AS col2 FROM tab1 AS cor0
----
10192
34216
3640

onlyif mysql # DIV for integer division: 
query III rowsort label-635
SELECT col0, 40 DIV + + col0 AS col1, - + col2 DIV - 2 col2 FROM tab1 AS cor0
----
9 values hashing to 1f0b9b683d22280fbcccaab9be2a206d

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-635
SELECT col0, 40 / + + col0 AS col1, - + col2 / - 2 col2 FROM tab1 AS cor0
----
9 values hashing to 1f0b9b683d22280fbcccaab9be2a206d

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

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

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

query I rowsort
SELECT ALL 51 * + + col0 + - 4 AS col1 FROM tab2
----
2342
3260
3821

onlyif mysql # aggregate syntax: 
query I rowsort label-639
SELECT DISTINCT ( - 56 ) * - COUNT( * ) AS col1 FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-639
SELECT DISTINCT ( - 56 ) * - COUNT ( * ) AS col1 FROM tab0
----
168

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

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT ALL + ( MAX( DISTINCT - col1 ) ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-641
SELECT ALL + ( MAX ( DISTINCT - col1 ) ) AS col1 FROM tab0
----
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-643
SELECT ALL - 97 DIV - col2 col1 FROM tab0 AS cor0
----
0
2
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-643
SELECT ALL - 97 / - col2 col1 FROM tab0 AS cor0
----
0
2
9

query I rowsort
SELECT ALL + 9 * + col2 + - col2 AS col1 FROM tab1 AS cor0
----
472
544
768

query III rowsort
SELECT ALL * FROM tab2 WHERE - 22 IS NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 36 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-647
SELECT ALL 31 DIV + 22 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-647
SELECT ALL 31 / + 22 AS col0 FROM tab1
----
1
1
1

query III rowsort
SELECT * FROM tab0 WHERE 92 + - col1 >= NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT ALL MIN( 18 ) col1 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-651
SELECT ALL MIN ( 18 ) col1 FROM tab1 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT + 87 - + 76 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-652
SELECT + 87 - + 76 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
14

query II rowsort
SELECT col0, col0 AS col1 FROM tab2 cor0 WHERE 42 IS NOT NULL
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-654
SELECT DISTINCT - MIN( + col0 ) + MAX( ALL + + col1 ) FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-654
SELECT DISTINCT - MIN ( + col0 ) + MAX ( ALL + + col1 ) FROM tab2
----
31

query I rowsort
SELECT - 64 + - - 61 FROM tab2
----
-3
-3
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-656
SELECT - CAST( - 58 AS SIGNED ) * SUM( - ( - col1 ) ) + - 15 AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
3813

skipif mysql # not compatible
query I rowsort label-656
SELECT - CAST ( - 58 AS INTEGER ) * SUM ( - ( - col1 ) ) + - 15 AS col1 FROM tab1 WHERE col0 IS NOT NULL
----
3813

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-657
SELECT + 50 * + CAST( NULL AS SIGNED ) + + col0, 13 AS col2, + - col2 + col0 AS col0 FROM tab1
----
9 values hashing to 1218653594f4d9c0dfa543283582cd6a

skipif mysql # not compatible
query III rowsort label-657
SELECT + 50 * + CAST ( NULL AS INTEGER ) + + col0, 13 AS col2, + - col2 + col0 AS col0 FROM tab1
----
9 values hashing to 1218653594f4d9c0dfa543283582cd6a

query I rowsort
SELECT ALL 50 + + 70 FROM tab0
----
120
120
120

onlyif mysql # aggregate syntax: 
query I rowsort label-659
SELECT COUNT( * ) + COUNT( * ) + ( - 60 ) col2 FROM tab0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-659
SELECT COUNT ( * ) + COUNT ( * ) + ( - 60 ) col2 FROM tab0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-660
SELECT DISTINCT + ( + col2 ) DIV + 51 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-660
SELECT DISTINCT + ( + col2 ) / + 51 FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-661
SELECT DISTINCT - + 19 AS col0, col1 DIV + 19 FROM tab1 AS cor0
----
-19
0
-19
2

skipif mysql # not compatible
query II rowsort label-661
SELECT DISTINCT - + 19 AS col0, col1 / + 19 FROM tab1 AS cor0
----
-19
0
-19
2

query I rowsort
SELECT + + col0 - + col2 FROM tab1 cor0 WHERE NOT + col0 NOT BETWEEN 24 + - col2 AND + col2
----
-45

query II rowsort
SELECT + col1 AS col2, col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
51
23
67
58
77
40

query II rowsort
SELECT DISTINCT + + col0, + 55 AS col2 FROM tab2 AS cor0
----
46
55
64
55
75
55

query I rowsort
SELECT ALL + ( + 35 ) + - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-24
-33
-61

query I rowsort
SELECT col1 * - 65 AS col1 FROM tab2 WHERE NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT 84 * - col2 + + 2 FROM tab2
----
-1930
-3358
-4870

query I rowsort
SELECT + col0 + ( - ( + 12 ) + - ( + 82 - col1 ) ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 47 col0 FROM tab0 WHERE ( NULL ) IS NULL
----
47
47
47

query I rowsort
SELECT DISTINCT 5 AS col1 FROM tab0 WHERE NULL <> ( ( - 58 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT ALL + COUNT( * ) AS col2 FROM tab1 WHERE ( col2 * - 13 ) > NULL
----
0

skipif mysql # not compatible
query I rowsort label-671
SELECT ALL + COUNT ( * ) AS col2 FROM tab1 WHERE ( col2 * - 13 ) > NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-672
SELECT 94 * - col0 + + col0 DIV 88 FROM tab0
----
-1410
-8178
-9117

skipif mysql # not compatible
query I rowsort label-672
SELECT 94 * - col0 + + col0 / 88 FROM tab0
----
-1410
-8178
-9117

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

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

query I rowsort
SELECT 43 * 51 + 84 FROM tab0
----
2277
2277
2277

query III rowsort
SELECT * FROM tab0 WHERE NOT 80 > 79
----

query I rowsort
SELECT col2 + + 2 FROM tab2
----
25
42
60

query I rowsort
SELECT col2 + + 3 FROM tab1
----
62
71
99

query I rowsort
SELECT + col0 + + 37 * - col1 FROM tab2
----
-1841
-2404
-2785

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT 84 * - col2 + col0 * - col0 AS col0 FROM tab1
----
-10665
-12181
-13993

query I rowsort
SELECT DISTINCT + 20 FROM tab1 WHERE NOT ( - col2 ) * - col2 + + col2 IS NULL
----
20

query I rowsort
SELECT col2 * + 93 AS col0 FROM tab0 WHERE NOT ( + col1 + + 28 ) BETWEEN ( - 95 ) AND + 32 * + 61 + col2
----

query I rowsort
SELECT col2 * - 47 AS col1 FROM tab1 WHERE NOT ( NULL ) <> ( + 16 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-685
SELECT ALL col2 - 30 DIV 93 AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-685
SELECT ALL col2 - 30 / 93 AS col0 FROM tab2
----
23
40
58

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 = col1
----

query I rowsort
SELECT - 81 + col0 FROM tab0
----
-66
16
6

query I rowsort
SELECT + col0 + 26 * + col1 AS col1 FROM tab1
----
1313
215
415

query I rowsort
SELECT 69 FROM tab1 WHERE ( NULL ) IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT 72 * COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
216

skipif mysql # not compatible
query I rowsort label-690
SELECT 72 * COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
216

query I rowsort
SELECT ( - 57 ) * + ( - col0 ) FROM tab0
----
4959
5529
855

query I rowsort
SELECT col0 * - 43 + col2 FROM tab2
----
-1955
-2712
-3167

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 67 NOT BETWEEN 26 + col1 AND col0 / col0 + 68 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-694
SELECT DISTINCT ( COUNT ( * ) ) * COUNT ( * ) FROM tab2
----
9

query I rowsort
SELECT DISTINCT col2 + col2 FROM tab1 WHERE 13 - 86 IN ( - 77 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * 14 > 66
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab1 AS cor0 WHERE ( 49 ) IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-698
SELECT ALL CAST( + col0 AS DECIMAL ) + col2 * - col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + col2 / col0 )
----

skipif mysql # not compatible
query I rowsort label-698
SELECT ALL CAST ( + col0 AS REAL ) + col2 * - col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( + col2 / col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-699
SELECT ALL 60 - COUNT( * ) AS col2 FROM tab2 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-699
SELECT ALL 60 - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
57

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-701
SELECT DISTINCT + MAX( + 99 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * - col0 AND 39 / - CAST( - col0 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-701
SELECT DISTINCT + MAX ( + 99 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * - col0 AND 39 / - CAST ( - col0 AS INTEGER )
----
NULL

query I rowsort
SELECT 65 + + col2 AS col0 FROM tab0 cor0
----
112
164
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-703
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 96 * + col2 ) IN ( ( - 55 ) + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-703
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 96 * + col2 ) IN ( ( - 55 ) + - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - 44 FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN + ( 40 ) + col2 AND - 35 + 88
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-705
SELECT ALL + CAST( MAX( DISTINCT col0 ) AS SIGNED ) AS col0 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( + 98 ) AND ( + 4 )
----
NULL

skipif mysql # not compatible
query I rowsort label-705
SELECT ALL + CAST ( MAX ( DISTINCT col0 ) AS INTEGER ) AS col0 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( + 98 ) AND ( + 4 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-706
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 <> ( NULL )
----
0

query I rowsort
SELECT + ( + col1 ) * + 63 AS col2 FROM tab0 AS cor0
----
1323
5103
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-708
SELECT + 60 DIV COUNT( * ) FROM tab0 cor0
----
20

skipif mysql # not compatible
query I rowsort label-708
SELECT + 60 / COUNT ( * ) FROM tab0 cor0
----
20

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT ( + col1 + + 26 ) < - col0 * - 25
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-710
SELECT 69 DIV - + COUNT( * ) AS col2 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-710
SELECT 69 / - + COUNT ( * ) AS col2 FROM tab0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + col0 col1 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-712
SELECT + COUNT( * ) - + - MAX( ALL col2 ) AS col0 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-712
SELECT + COUNT ( * ) - + - MAX ( ALL col2 ) AS col0 FROM tab2
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT + SUM( ALL - - col2 ) * - 75 FROM tab2
----
-9075

skipif mysql # not compatible
query I rowsort label-713
SELECT + SUM ( ALL - - col2 ) * - 75 FROM tab2
----
-9075

query I rowsort
SELECT ALL col1 * + 42 AS col0 FROM tab2
----
2142
2814
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT DISTINCT - COUNT( * ) * SUM( + 81 ) AS col0 FROM tab2
----
-729

skipif mysql # not compatible
query I rowsort label-715
SELECT DISTINCT - COUNT ( * ) * SUM ( + 81 ) AS col0 FROM tab2
----
-729

query I rowsort
SELECT ALL + 83 * - 10 AS col2 FROM tab0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT DISTINCT - 97 * + + COUNT( * ) AS col0 FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-717
SELECT DISTINCT - 97 * + + COUNT ( * ) AS col0 FROM tab1
----
-291

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( col2 ) + 20 BETWEEN ( - 12 ) AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-722
SELECT DISTINCT ( 77 ) + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - 16 BETWEEN - col1 AND NULL
----
77

skipif mysql # not compatible
query I rowsort label-722
SELECT DISTINCT ( 77 ) + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - 16 BETWEEN - col1 AND NULL
----
77

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( + 28 + - col1 ) >= NULL
----

query I rowsort
SELECT DISTINCT col1 * + ( - col2 ) * - col2 AS col2 FROM tab2
----
123200
225388
26979

query I rowsort
SELECT 15 * - 80 AS col1 FROM tab0
----
-1200
-1200
-1200

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT ALL + 5 FROM tab0 WHERE NOT col0 IS NULL
----
5
5
5

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 83 * + 83 = ( - 65 )
----

query I rowsort
SELECT DISTINCT - ( + 30 ) - + 9 AS col0 FROM tab1, tab1 AS cor0
----
-39

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 / - 28 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-734
SELECT ALL CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 cor0
----
10
47
99

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-735
SELECT CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab1 cor0
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-737
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 89 - + ( col0 ) / - col2 < - 85
----
3

skipif mysql # not compatible
query I rowsort label-737
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT 89 - + ( col0 ) / - col2 < - 85
----
3

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-741
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( + 22 AS SIGNED ) < ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-741
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( + 22 AS INTEGER ) < ( - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE 31 = ( + + 10 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-743
SELECT DISTINCT 61 DIV - 9 + - + col1 - - col2 AS col0 FROM tab2
----
-15
-34
-43

skipif mysql # not compatible
query I rowsort label-743
SELECT DISTINCT 61 / - 9 + - + col1 - - col2 AS col0 FROM tab2
----
-15
-34
-43

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

skipif mysql # not compatible
query I rowsort label-744
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - col0 + - - col0 * col0 FROM tab0
----
210
7482
9312

query I rowsort
SELECT ALL + ( + 61 ) + + col0 AS col2 FROM tab2
----
107
125
136

onlyif mysql # aggregate syntax: 
query I rowsort label-747
SELECT SUM( 36 ) AS col0 FROM tab1 AS cor0 WHERE ( ( - 32 ) ) IS NOT NULL
----
108

skipif mysql # not compatible
query I rowsort label-747
SELECT SUM ( 36 ) AS col0 FROM tab1 AS cor0 WHERE ( ( - 32 ) ) IS NOT NULL
----
108

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

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

query I rowsort
SELECT - col2 + + - col2 * col1 FROM tab0 cor0
----
-198
-220
-3854

query I rowsort
SELECT + col0 * 6 AS col0 FROM tab1 AS cor0 WHERE ( NOT col2 * + col1 NOT BETWEEN col1 + col0 AND - 83 * 6 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 - 39 * col1 col2 FROM tab0 AS cor0
----
-3072
-732
48

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

query I rowsort
SELECT ALL + col2 - + ( - col0 ) * + - 84 AS col2 FROM tab2 AS cor0
----
-3841
-5336
-6242

query I rowsort
SELECT + - col2 - - - 1 + - col2 * + col2 - + 31 AS col2 FROM tab2 AS cor0
----
-1672
-3454
-584

onlyif mysql # DIV for integer division: 
query I rowsort label-755
SELECT + + col2 - 89 DIV - + col2 AS col0 FROM tab1 AS cor0
----
60
69
96

skipif mysql # not compatible
query I rowsort label-755
SELECT + + col2 - 89 / - + col2 AS col0 FROM tab1 AS cor0
----
60
69
96

query I rowsort
SELECT col1 - + col0 - 9 FROM tab2 cor0
----
-17
-4
4

query I rowsort
SELECT + col2 * - 20 - ( - - 9 ) - - - col1 FROM tab0 AS cor0
----
-1030
-1990
-230

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-758
SELECT ALL + + CAST( + col1 AS SIGNED ) - + 17 FROM tab2 AS cor0
----
34
50
60

skipif mysql # not compatible
query I rowsort label-758
SELECT ALL + + CAST ( + col1 AS INTEGER ) - + 17 FROM tab2 AS cor0
----
34
50
60

onlyif mysql # DIV for integer division: 
query I rowsort label-759
SELECT DISTINCT - 79 - - col1 + col0 * - 23 + ( col1 ) DIV col0 FROM tab1 AS cor0
----
-1238
-2029
-2125

skipif mysql # not compatible
query I rowsort label-759
SELECT DISTINCT - 79 - - col1 + col0 * - 23 + ( col1 ) / col0 FROM tab1 AS cor0
----
-1238
-2029
-2125

onlyif mysql # aggregate syntax: 
query I rowsort label-760
SELECT ALL MAX( DISTINCT - col0 ) * - + 55 - - + 85 + + - 30 * - 75 * - 78 FROM tab2 AS cor0
----
-172885

skipif mysql # not compatible
query I rowsort label-760
SELECT ALL MAX ( DISTINCT - col0 ) * - + 55 - - + 85 + + - 30 * - 75 * - 78 FROM tab2 AS cor0
----
-172885

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

query I rowsort
SELECT DISTINCT + col1 + ( + col0 + col0 ) FROM tab2 WHERE NOT ( NOT col1 < - col1 )
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-764
SELECT * FROM tab1 WHERE NOT ( NOT + ( - - col0 ) NOT BETWEEN ( - - col1 ) AND ( col2 + CAST( NULL AS DECIMAL ) * - 56 ) )
----

skipif mysql # not compatible
query III rowsort label-764
SELECT * FROM tab1 WHERE NOT ( NOT + ( - - col0 ) NOT BETWEEN ( - - col1 ) AND ( col2 + CAST ( NULL AS REAL ) * - 56 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT COUNT( * ) + - - 74 AS col0 FROM tab0, tab0 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-765
SELECT COUNT ( * ) + - - 74 AS col0 FROM tab0, tab0 AS cor0
----
83

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-767
SELECT DISTINCT - + ( - ( - col0 ) ) DIV + + 84 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-767
SELECT DISTINCT - + ( - ( - col0 ) ) / + + 84 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT 29 + + ( - + col2 ) AS col2 FROM tab2
----
-11
-29
6

onlyif mysql # aggregate syntax: 
query I rowsort label-769
SELECT + MIN( + + 89 ) * COUNT( * ) - 74 col2 FROM tab2
----
193

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-769
SELECT + MIN ( + + 89 ) * COUNT ( * ) - 74 col2 FROM tab2
----
193

onlyif mysql # aggregate syntax: 
query I rowsort label-770
SELECT ALL COUNT( * ) * 89 col2 FROM tab2
----
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-770
SELECT ALL COUNT ( * ) * 89 col2 FROM tab2
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-771
SELECT + + COUNT( * ) / + - MAX( 66 ) AS col1 FROM tab0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-771
SELECT + + COUNT ( * ) / + - MAX ( 66 ) AS col1 FROM tab0 WHERE NOT + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-772
SELECT ALL + COUNT( ALL + 96 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-772
SELECT ALL + COUNT ( ALL + 96 ) FROM tab2
----
3

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( + + 30 ) IN ( + col1, 90 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-776
SELECT + SUM( ALL col1 ) * 5 + + ( - + SUM( - ( - col2 ) ) ) AS col0 FROM tab1
----
107

skipif mysql # not compatible
query I rowsort label-776
SELECT + SUM ( ALL col1 ) * 5 + + ( - + SUM ( - ( - col2 ) ) ) AS col0 FROM tab1
----
107

query I rowsort
SELECT ALL 62 + col0 AS col1 FROM tab2
----
108
126
137

query I rowsort
SELECT ALL 2 + - 60 FROM tab0
----
-58
-58
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-781
SELECT + SUM( - - 98 ) * + - COUNT( * ) FROM tab0
----
-882

skipif mysql # not compatible
query I rowsort label-781
SELECT + SUM ( - - 98 ) * + - COUNT ( * ) FROM tab0
----
-882

onlyif mysql # DIV for integer division: 
query I rowsort label-782
SELECT ALL ( + col2 ) - - col2 DIV + - ( - 36 ) FROM tab0 AS cor0
----
10
101
48

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL ( + col2 ) - - col2 / + - ( - 36 ) FROM tab0 AS cor0
----
10
101
48

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

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

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

query I rowsort
SELECT DISTINCT + 66 * + col2 AS col0 FROM tab2
----
1518
2640
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-786
SELECT + SUM( ALL col1 ) + 32 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-786
SELECT + SUM ( ALL col1 ) + 32 FROM tab0
----
135

query I rowsort
SELECT ALL 92 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE 4 IN ( col0, 51 )
----

query I rowsort
SELECT ALL - col1 * + 97 * + col2 FROM tab1 AS cor0
----
-130368
-28615
-310012

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

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

query II rowsort
SELECT col2 * + - 20, col1 * - 16 AS col2 FROM tab0 AS cor0
----
-1980
-16
-200
-336
-940
-1296

onlyif mysql # aggregate syntax: 
query I rowsort label-792
SELECT ALL + + COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT ( col1 ) <> col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-792
SELECT ALL + + COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT ( col1 ) <> col0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-793
SELECT MIN( + 16 ), + 55 col0 FROM tab1 AS cor0
----
16
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-793
SELECT MIN ( + 16 ), + 55 col0 FROM tab1 AS cor0
----
16
55

onlyif mysql # DIV for integer division: 
query II rowsort label-794
SELECT - 0 DIV col1 AS col0, + ( + - 81 ) AS col2 FROM tab0 AS cor0
----
0
-81
0
-81
0
-81

skipif mysql # not compatible
query II rowsort label-794
SELECT - 0 / col1 AS col0, + ( + - 81 ) AS col2 FROM tab0 AS cor0
----
0
-81
0
-81
0
-81

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-796
SELECT + SUM( + CAST( col0 AS SIGNED ) ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-796
SELECT + SUM ( + CAST ( col0 AS INTEGER ) ) AS col2 FROM tab0
----
199

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

query I rowsort
SELECT ALL - + ( + col0 ) * + col1 FROM tab0 cor0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-799
SELECT 64 FROM tab2 AS cor0 WHERE NOT + 8 * + - col0 * + col2 + 59 IN ( CAST( NULL AS SIGNED ) / + - 35 / - col2 )
----

skipif mysql # not compatible
query I rowsort label-799
SELECT 64 FROM tab2 AS cor0 WHERE NOT + 8 * + - col0 * + col2 + 59 IN ( CAST ( NULL AS INTEGER ) / + - 35 / - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-800
SELECT COUNT( * ) + + 60 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-800
SELECT COUNT ( * ) + + 60 FROM tab2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-801
SELECT ALL + COUNT( * ) + + + 81 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-801
SELECT ALL + COUNT ( * ) + + + 81 FROM tab0
----
84

query I rowsort
SELECT DISTINCT + ( - 3 ) + - col1 + + col2 AS col1 FROM tab2
----
-12
-31
-40

query I rowsort
SELECT ALL 32 AS col2 FROM tab0 WHERE NOT - + 59 * - + col1 + col2 <> 36
----

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

query II rowsort
SELECT - + col1 AS col2, 22 FROM tab0 AS cor0
----
-1
22
-21
22
-81
22

query II rowsort
SELECT + - 99 AS col2, col2 * 68 FROM tab1 cor0
----
-99
4012
-99
4624
-99
6528

query II rowsort
SELECT col0, col1 + + col1 + col0 + + col0 AS col1 FROM tab1 AS cor0
----
51
130
85
180
91
276

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-809
SELECT ALL - MAX( + - col2 ) DIV COUNT( * ) + + - 26 DIV + 93 AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-809
SELECT ALL - MAX ( + - col2 ) / COUNT ( * ) + + - 26 / + 93 AS col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT - ( + + SUM( ALL + - col1 ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-810
SELECT - ( + + SUM ( ALL + - col1 ) ) FROM tab0
----
103

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT NULL < col1 * + + col1 * + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-812
SELECT + 92 - - ( COUNT( * ) ) FROM tab2
----
95

skipif mysql # not compatible
query I rowsort label-812
SELECT + 92 - - ( COUNT ( * ) ) FROM tab2
----
95

query I rowsort
SELECT DISTINCT 59 + + 47 * - 70 FROM tab0
----
-3231

query I rowsort
SELECT ALL ( + col0 ) + - col1 FROM tab2 WHERE NOT ( - + col1 / + + col2 + - 11 * - col1 ) IN ( 27, - col1 )
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-815
SELECT ALL + - 54 FROM tab2 WHERE col2 + - + 58 * CAST( NULL AS SIGNED ) = - + col1
----

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL + - 54 FROM tab2 WHERE col2 + - + 58 * CAST ( NULL AS INTEGER ) = - + col1
----

query I rowsort
SELECT DISTINCT - col0 - - - col0 FROM tab1
----
-102
-170
-182

query I rowsort
SELECT + + col0 * + 72 AS col1 FROM tab1 AS cor0
----
3672
6120
6552

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT - 46 * + - COUNT( * ) AS col2 FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-818
SELECT - 46 * + - COUNT ( * ) AS col2 FROM tab1
----
138

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + ( col0 ) <= NULL
----

query II rowsort
SELECT col1, + col0 AS col1 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT + MIN( - - 62 ) AS col2 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-822
SELECT + MIN ( - - 62 ) AS col2 FROM tab2 AS cor0
----
62

query I rowsort
SELECT - - col2 * col0 * - col0 * - 31 AS col1 FROM tab2 AS cor0
----
10113750
1508708
5079040

query I rowsort
SELECT + 21 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
21
21
21

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

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

query I rowsort
SELECT + - 71 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT DISTINCT MIN( - 43 ) col1 FROM tab2 AS cor0
----
-43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-828
SELECT DISTINCT MIN ( - 43 ) col1 FROM tab2 AS cor0
----
-43

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 94 AND + + col0
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-833
SELECT MAX( 48 ) AS col2, COUNT( ALL - col2 ) FROM tab1
----
48
3

skipif mysql # not compatible
query II rowsort label-833
SELECT MAX ( 48 ) AS col2, COUNT ( ALL - col2 ) FROM tab1
----
48
3

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + col2 ) IS NOT NULL
----

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

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

query I rowsort
SELECT + 61 + + col1 FROM tab1 AS cor0
----
108
66
75

query I rowsort
SELECT - 99 + - + 63 FROM tab2 AS cor0
----
-162
-162
-162

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

onlyif mysql # DIV for integer division: 
query II rowsort label-840
SELECT DISTINCT + ( + col1 ) * - col1, col2 DIV - col0 AS col1 FROM tab0 cor0
----
-1
-1
-441
0
-6561
-3

skipif mysql # not compatible
query II rowsort label-840
SELECT DISTINCT + ( + col1 ) * - col1, col2 / - col0 AS col1 FROM tab0 cor0
----
-1
-1
-441
0
-6561
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( + col2 * - 77 / + - col1 + - 34 + col1 + 24 * + 37 - + 43 / - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-842
SELECT MAX( ALL 40 ) FROM tab2 AS cor0 WHERE ( col2 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-842
SELECT MAX ( ALL 40 ) FROM tab2 AS cor0 WHERE ( col2 ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 39 FROM tab1 AS cor0 WHERE 19 IS NOT NULL
----
39

query I rowsort
SELECT DISTINCT 51 + - col2 + - col1 + - col0 AS col2 FROM tab1 AS cor0
----
-110
-155
-98

query I rowsort
SELECT DISTINCT col2 + - - col1 * - col1 AS col1 FROM tab1 cor0
----
-100
-2141
34

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

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

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

query I rowsort
SELECT DISTINCT - 88 + ( col2 ) FROM tab2
----
-30
-48
-65

query I rowsort
SELECT ALL - 1 FROM tab2 WHERE NULL NOT BETWEEN - 14 / + col2 + - + col0 AND + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT ALL - COUNT( + col0 ) + + + 73 AS col1 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL - COUNT ( + col0 ) + + + 73 AS col1 FROM tab2
----
70

query III rowsort
SELECT * FROM tab0 WHERE 92 - col1 NOT BETWEEN col0 AND - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-852
SELECT ALL col0 DIV CAST( + col0 AS SIGNED ) + ( col1 ) AS col1 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL col0 / CAST ( + col0 AS INTEGER ) + ( col1 ) AS col1 FROM tab1
----
15
48
6

query I rowsort
SELECT DISTINCT - col2 + - - col1 * 23 FROM tab1
----
1013
226
56

onlyif mysql # aggregate syntax: 
query II rowsort label-854
SELECT DISTINCT - ( COUNT( * ) ) - - MIN( DISTINCT + col1 ) * - ( 23 ) AS col2, ( - 92 ) FROM tab0
----
-26
-92

skipif mysql # not compatible
query II rowsort label-854
SELECT DISTINCT - ( COUNT ( * ) ) - - MIN ( DISTINCT + col1 ) * - ( 23 ) AS col2, ( - 92 ) FROM tab0
----
-26
-92

query I rowsort
SELECT ALL col0 + + ( + 23 ) AS col0 FROM tab1
----
108
114
74

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-856
SELECT DISTINCT 9 DIV col2 * - - CAST( + col2 AS SIGNED ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-856
SELECT DISTINCT 9 / col2 * - - CAST ( + col2 AS INTEGER ) FROM tab2
----
0

query I rowsort
SELECT 93 * + - 79 AS col1 FROM tab0
----
-7347
-7347
-7347

query I rowsort
SELECT ALL - 93 - + col0 AS col0 FROM tab2
----
-139
-157
-168

onlyif mysql # DIV for integer division: 
query I rowsort label-859
SELECT DISTINCT 17 DIV - col1 FROM tab1 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-859
SELECT DISTINCT 17 / - col1 FROM tab1 AS cor0
----
-1
-3
0

query I rowsort
SELECT DISTINCT + ( - col1 ) AS col2 FROM tab2 cor0
----
-51
-67
-77

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

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

query II rowsort
SELECT DISTINCT col1 AS col1, - 4 + - - col0 FROM tab2 AS cor0
----
51
42
67
71
77
60

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

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

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

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

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

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

query I rowsort
SELECT + 72 * + 16 AS col1 FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND + 39
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NULL >= col1 / 29
----

query I rowsort
SELECT - ( + + col2 ) * col0 FROM tab0 AS cor0
----
-705
-870
-9603

query II rowsort
SELECT ALL - col0, col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col0 / + col0 + 26 <> + - 96
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT ALL + + SUM( 8 ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL + + SUM ( 8 ) FROM tab0 AS cor0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-873
SELECT + CAST( NULL AS SIGNED ) AS col2, 67 AS col0 FROM tab2
----
NULL
67
NULL
67
NULL
67

skipif mysql # not compatible
query II rowsort label-873
SELECT + CAST ( NULL AS INTEGER ) AS col2, 67 AS col0 FROM tab2
----
NULL
67
NULL
67
NULL
67

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

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

query I rowsort
SELECT + col1 * - + col1 AS col2 FROM tab2 AS cor0
----
-2601
-4489
-5929

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

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

query I rowsort
SELECT + + 6 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT + 43 * + col0 FROM tab2 cor0
----
1978
2752
3225

query I rowsort
SELECT + col2 - 68 AS col2 FROM tab2 AS cor0
----
-10
-28
-45

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT ALL - 89 + - MIN( DISTINCT - col1 ) FROM tab2 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-882
SELECT ALL - 89 + - MIN ( DISTINCT - col1 ) FROM tab2 cor0
----
-12

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-884
SELECT + + CAST( - + col1 AS SIGNED ) - + - col2 AS col0 FROM tab1 AS cor0
----
21
54
82

skipif mysql # not compatible
query I rowsort label-884
SELECT + + CAST ( - + col1 AS INTEGER ) - + - col2 AS col0 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT - 32 - + + ( - col1 ) AS col0 FROM tab2 AS cor0
----
19
35
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-886
SELECT DISTINCT col2 + - col1 col1, + ( - CAST( NULL AS SIGNED ) ) / - col1 + - 59 AS col2 FROM tab1 cor0
----
21
NULL
54
NULL
82
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-886
SELECT DISTINCT col2 + - col1 col1, + ( - CAST ( NULL AS INTEGER ) ) / - col1 + - 59 AS col2 FROM tab1 cor0
----
21
NULL
54
NULL
82
NULL

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

query II rowsort
SELECT ALL col0 - - 31 * col0, col0 + - col2 * 83 AS col2 FROM tab1
----
1632
-7917
2720
-4812
2912
-5553

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 18 ) BETWEEN ( + col0 ) AND 32 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-890
SELECT DISTINCT - 32 + CAST( - AVG ( DISTINCT 86 ) AS SIGNED ) FROM tab2
----
-118

skipif mysql # not compatible
query I rowsort label-890
SELECT DISTINCT - 32 + CAST ( - AVG ( DISTINCT 86 ) AS INTEGER ) FROM tab2
----
-118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-891
SELECT ALL + CAST( + col1 AS SIGNED ) + - col1 FROM tab1
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT - COUNT( * ) + COUNT( * ) FROM tab0 WHERE col1 * 98 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-892
SELECT - COUNT ( * ) + COUNT ( * ) FROM tab0 WHERE col1 * 98 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-893
SELECT ALL - + 0 DIV - - col2 * - col1 - + col0 AS col0 FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-893
SELECT ALL - + 0 / - - col2 * - col1 - + col0 AS col0 FROM tab0 cor0
----
-15
-87
-97

query II rowsort
SELECT + 0, + col1 FROM tab0 cor0
----
0
1
0
21
0
81

onlyif mysql # DIV for integer division: 
query I rowsort label-895
SELECT - 91 DIV + col0 AS col0 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-895
SELECT - 91 / + col0 AS col0 FROM tab0
----
-1
-6
0

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

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

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

query I rowsort
SELECT + 30 * + + 52 AS col2 FROM tab1 AS cor0
----
1560
1560
1560

query I rowsort
SELECT + col0 * - 85 FROM tab1 AS cor0
----
-4335
-7225
-7735

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

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

query I rowsort
SELECT DISTINCT + 41 FROM tab0 WHERE NOT NULL IS NOT NULL
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + ( - 40 ) ) * - - col0 col0 FROM tab0
----
-3480
-3880
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-904
SELECT DISTINCT - COUNT( * ) + SUM( ALL + col0 ) FROM tab2
----
182

skipif mysql # not compatible
query I rowsort label-904
SELECT DISTINCT - COUNT ( * ) + SUM ( ALL + col0 ) FROM tab2
----
182

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 23 IS NOT NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-907
SELECT col2 / + ( - col1 ) FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + - col1 * 32 AS col0 FROM tab0 cor0
----
-2545
-662
67

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT + MIN( + + col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-909
SELECT + MIN ( + + col1 ) AS col2 FROM tab0 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-910
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) - + - col0 >= + 26
----

skipif mysql # not compatible
query III rowsort label-910
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) - + - col0 >= + 26
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-911
SELECT + 20 * 5 + - CAST( NULL AS SIGNED ), - MAX( ALL + col0 ) AS col1 FROM tab0
----
NULL
-97

skipif mysql # not compatible
query II rowsort label-911
SELECT + 20 * 5 + - CAST ( NULL AS INTEGER ), - MAX ( ALL + col0 ) AS col1 FROM tab0
----
NULL
-97

query I rowsort
SELECT - 29 + + col1 + col2 FROM tab2
----
45
88
96

query I rowsort
SELECT + col0 * col1 + - 39 - col2 FROM tab2
----
2284
4849
4928

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-915
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-915
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

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

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

query II rowsort
SELECT DISTINCT 9, + col1 AS col2 FROM tab1 AS cor0
----
9
14
9
47
9
5

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT DISTINCT MIN( ALL + col1 ) * - + 57 AS col0 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-918
SELECT DISTINCT MIN ( ALL + col1 ) * - + 57 AS col0 FROM tab0 AS cor0
----
-57

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 <= + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-920
SELECT COUNT( * ) * + - ( ( + - 96 ) ) FROM tab0
----
288

skipif mysql # not compatible
query I rowsort label-920
SELECT COUNT ( * ) * + - ( ( + - 96 ) ) FROM tab0
----
288

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT ALL + COUNT( * ) + + COUNT( * ) + - 92 + - SUM( DISTINCT - ( + col0 ) ) * 55 AS col2 FROM tab1
----
12399

skipif mysql # not compatible
query I rowsort label-921
SELECT ALL + COUNT ( * ) + + COUNT ( * ) + - 92 + - SUM ( DISTINCT - ( + col0 ) ) * 55 AS col2 FROM tab1
----
12399

query I rowsort
SELECT DISTINCT - col0 - + - 21 + 97 AS col0 FROM tab0
----
103
21
31

query I rowsort
SELECT + col0 - col1 + - col1 - + col1 * - - 88 FROM tab0
----
-1803
-7275
7

onlyif mysql # aggregate syntax: 
query I rowsort label-924
SELECT COUNT( DISTINCT + 51 ) * + 3 - SUM( ALL - + 43 ) AS col2 FROM tab2
----
132

skipif mysql # not compatible
query I rowsort label-924
SELECT COUNT ( DISTINCT + 51 ) * + 3 - SUM ( ALL - + 43 ) AS col2 FROM tab2
----
132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col0 FROM tab1 AS cor0 WHERE + col1 * - 49 * + 12 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-926
SELECT - ( + + col0 ) DIV col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-926
SELECT - ( + + col0 ) / col0 FROM tab0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-927
SELECT CAST( - 33 AS SIGNED ) FROM tab1
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-927
SELECT CAST ( - 33 AS INTEGER ) FROM tab1
----
-33
-33
-33

query I rowsort
SELECT + - ( - 26 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query I rowsort
SELECT - col1 * - + 70 * - 5 * col2 * + 80 AS col0 FROM tab1
----
-37632000
-8260000
-89488000

query I rowsort
SELECT ALL - - 27 AS col0 FROM tab2 cor0
----
27
27
27

onlyif mysql # aggregate syntax: 
query I rowsort label-931
SELECT DISTINCT - 67 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-931
SELECT DISTINCT - 67 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-201

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL >= col0 * + - 6 * col0
----

query I rowsort
SELECT - col0 * - 49 FROM tab0 AS cor0
----
4263
4753
735

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-936
SELECT col2 col0, CAST( - 49 AS SIGNED ) col2 FROM tab0
----
10
-49
47
-49
99
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-936
SELECT col2 col0, CAST ( - 49 AS INTEGER ) col2 FROM tab0
----
10
-49
47
-49
99
-49

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-938
SELECT ALL CAST( NULL AS SIGNED ) AS col2, col2 + + 38 * - + 52 FROM tab1
----
NULL
-1880
NULL
-1908
NULL
-1917

skipif mysql # not compatible
query II rowsort label-938
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, col2 + + 38 * - + 52 FROM tab1
----
NULL
-1880
NULL
-1908
NULL
-1917

query I rowsort
SELECT 77 + col1 AS col2 FROM tab2 AS cor0
----
128
144
154

query I rowsort
SELECT col1 + + col1 + - - col0 + 50 * + 81 * + + col0 FROM tab0 AS cor0
----
352479
392949
60927

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-941
SELECT DISTINCT col2 + - CAST( col1 AS SIGNED ) AS col2, + col1 DIV CAST( col2 AS SIGNED ) FROM tab2
----
-28
2
-37
1
-9
1

skipif mysql # not compatible
query II rowsort label-941
SELECT DISTINCT col2 + - CAST ( col1 AS INTEGER ) AS col2, + col1 / CAST ( col2 AS INTEGER ) FROM tab2
----
-28
2
-37
1
-9
1

onlyif mysql # DIV for integer division: 
query I rowsort label-942
SELECT col1 DIV 74 + + - 79 + - + col0 FROM tab0 WHERE + 46 * - col2 IS NOT NULL
----
-166
-176
-93

skipif mysql # not compatible
query I rowsort label-942
SELECT col1 / 74 + + - 79 + - + col0 FROM tab0 WHERE + 46 * - col2 IS NOT NULL
----
-166
-176
-93

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 15 ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
15

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

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

query I rowsort
SELECT ALL - 44 - - col2 + + + col2 FROM tab0 AS cor0
----
-24
154
50

query I rowsort
SELECT + - col0 - - 48 FROM tab1 AS cor0
----
-3
-37
-43

query I rowsort
SELECT 51 - + 41 * - + 73 AS col1 FROM tab0 AS cor0
----
3044
3044
3044

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < - 72
----

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 65 col1, + 90 * - col2 - - 47 FROM tab2
----
-65
-2023
-65
-3553
-65
-5173

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT - SUM( - 0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-954
SELECT - SUM ( - 0 ) FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 44 IS NULL
----

query II rowsort
SELECT + 87, col1 AS col2 FROM tab0 AS cor0
----
87
1
87
21
87
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-957
SELECT ALL + 90 * - - col1 + + col1, 70 * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1911
NULL
7371
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-957
SELECT ALL + 90 * - - col1 + + col1, 70 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1911
NULL
7371
NULL
91
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-959
SELECT DISTINCT + SUM( ALL + 68 ) * + CAST( NULL AS SIGNED ) * 76 * + COUNT( * ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-959
SELECT DISTINCT + SUM ( ALL + 68 ) * + CAST ( NULL AS INTEGER ) * 76 * + COUNT ( * ) AS col1 FROM tab0 cor0
----
NULL

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - 82 - ( col0 ) + + 49 / + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-962
SELECT ALL + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 WHERE + col1 + + col2 BETWEEN NULL AND - col2
----

skipif mysql # not compatible
query I rowsort label-962
SELECT ALL + CAST ( NULL AS REAL ) AS col0 FROM tab1 WHERE + col1 + + col2 BETWEEN NULL AND - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 78 / + 18 < - - col1
----
97
1
99

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

query I rowsort
SELECT ALL - - 70 * - col1 FROM tab0 AS cor0
----
-1470
-5670
-70

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-967
SELECT + + CAST( NULL AS SIGNED ) + 72 + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-967
SELECT + + CAST ( NULL AS INTEGER ) + 72 + - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT col1 AS col2, 52 FROM tab0 WHERE - + col2 / + + 32 IS NOT NULL
----
1
52
21
52
81
52

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT DISTINCT + COUNT( * ) + - SUM( ALL 22 ) FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-970
SELECT DISTINCT + COUNT ( * ) + - SUM ( ALL 22 ) FROM tab1
----
-63

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

query I rowsort
SELECT ALL col0 * - ( + - 18 ) FROM tab2
----
1152
1350
828

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

onlyif mysql # aggregate syntax: 
query I rowsort label-974
SELECT ALL - COUNT( * ) * + 79 col2 FROM tab1
----
-237

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

query I rowsort
SELECT DISTINCT + + col0 * - 73 AS col0 FROM tab1 AS cor0
----
-3723
-6205
-6643

query I rowsort
SELECT ALL + 16 * - col2 AS col1 FROM tab1 AS cor0
----
-1088
-1536
-944

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

query I rowsort
SELECT ALL + 44 - - col1 FROM tab1
----
49
58
91

query I rowsort
SELECT DISTINCT 17 - - + col2 AS col1 FROM tab0
----
116
27
64

onlyif mysql # aggregate syntax: 
query I rowsort label-980
SELECT - ( - 3 ) + - + COUNT( + 44 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-980
SELECT - ( - 3 ) + - + COUNT ( + 44 ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-981
SELECT DISTINCT 71 DIV - 41 - + - 37 + - 41 * - col0 * + col0 AS col2 FROM tab1 AS cor0
----
106677
296261
339557

skipif mysql # not compatible
query I rowsort label-981
SELECT DISTINCT 71 / - 41 - + - 37 + - 41 * - col0 * + col0 AS col2 FROM tab1 AS cor0
----
106677
296261
339557

query I rowsort
SELECT ALL col2 * col1 + + 87 - col1 - + + col0 AS col1 FROM tab2 AS cor0
----
1163
3026
3831

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-986
SELECT ALL + SUM( ALL + - CAST( - + col2 AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-986
SELECT ALL + SUM ( ALL + - CAST ( - + col2 AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
156

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

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

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

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT + col0 * col0 * + + col1 * col0 + + 66 + + col0 IS NULL
----
15
87
97

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

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

query I rowsort
SELECT + col1 + 5 FROM tab1 WHERE NOT + col0 + - ( + col2 ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 16 <= ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * col0 <> NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-997
SELECT ALL SUM( - 12 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
-108

skipif mysql # not compatible
query I rowsort label-997
SELECT ALL SUM ( - 12 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
-108

query I rowsort
SELECT DISTINCT + 30 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( - - col0, col0 * + + 96, col2, col1 )
----

query I rowsort
SELECT + col1 + - 81 + + col1 AS col2 FROM tab2 WHERE NOT + + col0 BETWEEN 54 + + col2 / + col1 AND col1 * - 3
----
21
53
73

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

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

query I rowsort
SELECT + 49 * + col1 + + - 27 FROM tab1 AS cor0
----
218
2276
659

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT + MAX( DISTINCT - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1006
SELECT + MAX ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT 21 + col0 AS col2 FROM tab0 WHERE NULL IS NULL
----
108
118
36

query I rowsort
SELECT ALL - col2 * 1 AS col2 FROM tab1
----
-59
-68
-96

query II rowsort
SELECT ALL + 55 * - + col0 AS col2, - col0 * + - col2 + - 82 FROM tab0
----
-4785
788
-5335
9521
-825
623

query I rowsort
SELECT col2 * - 33 + - col0 FROM tab2
----
-1384
-1989
-805

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

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

query I rowsort
SELECT + - col0 + - - col1 AS col2 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT DISTINCT 74 + + - col2 AS col0 FROM tab2 AS cor0
----
16
34
51

query I rowsort
SELECT ALL 27 + - - col0 FROM tab1
----
112
118
78

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT MIN( + 87 ) FROM tab1 cor0
----
87

skipif mysql # not compatible
query I rowsort label-1015
SELECT MIN ( + 87 ) FROM tab1 cor0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1016
SELECT ALL col0 DIV 68 col1 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1016
SELECT ALL col0 / 68 col1 FROM tab0 AS cor0
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1017
SELECT + CAST( ( col2 ) AS SIGNED ) * - 21 FROM tab1 AS cor0
----
-1239
-1428
-2016

skipif mysql # not compatible
query I rowsort label-1017
SELECT + CAST ( ( col2 ) AS INTEGER ) * - 21 FROM tab1 AS cor0
----
-1239
-1428
-2016

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 21 NOT IN ( - - ( + 47 ), 72 + 56 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 87 * - col0 col0, + ( - - ( + col1 ) ) + - 28 * - - col2 FROM tab2
----
4002
-593
5568
-1043
6525
-1557

onlyif mysql # DIV for integer division: 
query II rowsort label-1023
SELECT col2, - 82 DIV - - col1 + - 18 FROM tab0
----
10
-21
47
-19
99
-100

skipif mysql # not compatible
query II rowsort label-1023
SELECT col2, - 82 / - - col1 + - 18 FROM tab0
----
10
-21
47
-19
99
-100

query II rowsort
SELECT 27 AS col0, + col1 * + ( - col1 ) AS col1 FROM tab1
----
27
-196
27
-2209
27
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT ALL COUNT( 21 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL COUNT ( 21 ) AS col1 FROM tab0
----
3

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

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

query I rowsort
SELECT + 86 * + col0 AS col0 FROM tab2
----
3956
5504
6450

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1028
SELECT - col2 AS col1, col0 * 97 * + col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

skipif mysql # not compatible
query II rowsort label-1028
SELECT - col2 AS col1, col0 * 97 * + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-23
NULL
-40
NULL
-58
NULL

query II rowsort
SELECT DISTINCT - - col0 AS col2, col2 * col0 AS col2 FROM tab0 AS cor0
----
15
705
87
870
97
9603

query I rowsort
SELECT DISTINCT - col1 * - - col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

query II rowsort
SELECT + col2 AS col2, + col0 * - col2 * - ( col0 ) FROM tab2 AS cor0
----
23
48668
40
163840
58
326250

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1034
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 + - + 18 * + CAST( NULL AS SIGNED ) = + ( - col2 ) * 99 + col2 + + + col1 + + 75
----

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL col0 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 + - + 18 * + CAST ( NULL AS INTEGER ) = + ( - col2 ) * 99 + col2 + + + col1 + + 75
----

query I rowsort
SELECT - + col2 + - 34 * + + col0 AS col0 FROM tab1 AS cor0
----
-1830
-2949
-3162

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

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

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

skipif mysql # not compatible
query I rowsort label-1037
SELECT - col2 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE 81 IS NULL
----

query II rowsort
SELECT 99 + - col1 AS col0, - 31 * + col2 FROM tab2 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT + 88 AS col0 FROM tab0 AS cor0 WHERE ( NOT + + 31 + - 19 > + + ( col1 ) )
----
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1040
SELECT ALL - 54 + - + COUNT( * ) FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL - 54 + - + COUNT ( * ) FROM tab1
----
-57

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1042
SELECT col1 AS col0, + col2 * col0 + + col2 + + 85 + col0 * col2 * - col2 DIV + + col2 AS col0 FROM tab0
----
1
184
21
95
81
132

skipif mysql # not compatible
query II rowsort label-1042
SELECT col1 AS col0, + col2 * col0 + + col2 + + 85 + col0 * col2 * - col2 / + + col2 AS col0 FROM tab0
----
1
184
21
95
81
132

query I rowsort
SELECT ALL 27 * 21 + 1 FROM tab0
----
568
568
568

query II rowsort
SELECT col2, + col0 + + + col1 FROM tab0
----
10
108
47
96
99
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 44 - - col0 + - col2 col0 FROM tab1
----
-1
67
70

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

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

query I rowsort
SELECT ( - col0 ) + + + col2 FROM tab0
----
-77
2
32

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

skipif mysql # not compatible
query I rowsort label-1048
SELECT ALL + + CAST ( NULL AS REAL ) / + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query II rowsort label-1049
SELECT + SUM ( ALL - col2 ) AS col1, ( - + COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-156
-3

query I rowsort
SELECT DISTINCT - col2 * 41 FROM tab2 AS cor0
----
-1640
-2378
-943

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT + SUM( + - 56 ) * + - COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 cor0
----
-1512

skipif mysql # not compatible
query I rowsort label-1052
SELECT + SUM ( + - 56 ) * + - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 cor0
----
-1512

query I rowsort
SELECT DISTINCT - 4 * - ( - col1 ) AS col1 FROM tab1 AS cor0
----
-188
-20
-56

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

skipif mysql # not compatible
query I rowsort label-1054
SELECT DISTINCT ( - 52 ) * + COUNT ( * ) FROM tab1
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-1055
SELECT DISTINCT - col2 DIV - + ( - 88 ) AS col1 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1055
SELECT DISTINCT - col2 / - + ( - 88 ) AS col1 FROM tab0
----
-1
0

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

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

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

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

query I rowsort
SELECT - 36 FROM tab2 WHERE NOT NULL < + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1059
SELECT ALL * FROM tab2 WHERE NOT col0 NOT IN ( + CAST( NULL AS SIGNED ) + - 8 )
----

skipif mysql # not compatible
query III rowsort label-1059
SELECT ALL * FROM tab2 WHERE NOT col0 NOT IN ( + CAST ( NULL AS INTEGER ) + - 8 )
----

query I rowsort
SELECT 67 * - 17 AS col2 FROM tab0
----
-1139
-1139
-1139

onlyif mysql # DIV for integer division: 
query I rowsort label-1061
SELECT DISTINCT - ( - 33 ) DIV - col0 * + 47 + - - col1 * + col1 AS col2 FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-1061
SELECT DISTINCT - ( - 33 ) / - col0 * + 47 + - - col1 * + col1 AS col2 FROM tab2
----
2601
4489
5929

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1062
SELECT DISTINCT + CAST( ( - ( + 64 ) ) AS SIGNED ) col0, col2 + + col1 FROM tab2 AS cor0 WHERE NULL = col1
----

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

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

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

query I rowsort
SELECT + + col1 + - col0 + - 60 AS col2 FROM tab2 AS cor0
----
-47
-55
-68

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col1 * 8 > 60
----
15
81
47
87
21
10

query II rowsort
SELECT ALL 98 AS col1, + col0 + - + col0 AS col2 FROM tab1
----
98
0
98
0
98
0

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

skipif mysql # not compatible
query II rowsort label-1067
SELECT + col0 AS col0, + 43 / + col0 AS col2 FROM tab2 AS cor0
----
46
0
64
0
75
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1068
SELECT DISTINCT - CAST( - 41 AS SIGNED ) + + 69 AS col2 FROM tab1 AS cor0
----
110

skipif mysql # not compatible
query I rowsort label-1068
SELECT DISTINCT - CAST ( - 41 AS INTEGER ) + + 69 AS col2 FROM tab1 AS cor0
----
110

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

skipif mysql # not compatible
query I rowsort label-1069
SELECT SUM ( DISTINCT 53 ) FROM tab0 AS cor0
----
53

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + - col0 + - col1 * + - col2 * - col2 * 19 * - + 20 AND - col2
----

query I rowsort
SELECT ALL + col0 + 44 FROM tab1
----
129
135
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT DISTINCT COUNT( * ) + + - 45 AS col0 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-1073
SELECT DISTINCT COUNT ( * ) + + - 45 AS col0 FROM tab0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1074
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 59 * - - col0 <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1074
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 59 * - - col0 <= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + - col2 * + col1 - - col2 FROM tab2 cor0
----
-1150
-3040
-3828

query I rowsort
SELECT ALL - 82 * + - 81 * + col0 AS col1 FROM tab1 AS cor0
----
338742
564570
604422

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

skipif mysql # not compatible
query I rowsort label-1077
SELECT DISTINCT + MIN ( ALL + CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + - 53 * - col2 FROM tab2 AS cor0
----
1219
2120
3074

query II rowsort
SELECT + + col2 AS col0, - col1 * - col2 FROM tab0 AS cor0
----
10
210
47
3807
99
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1081
SELECT ALL + MAX( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-46

skipif mysql # not compatible
query I rowsort label-1081
SELECT ALL + MAX ( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
-46

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1084
SELECT - col1 AS col2, col0 * + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

query I rowsort
SELECT DISTINCT - col2 * 43 * + 66 FROM tab0 AS cor0
----
-133386
-280962
-28380

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 66 <= NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1087
SELECT COUNT ( * ) * + COUNT ( * ) col1 FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1088
SELECT 95 * col1 * CAST( + - col1 AS SIGNED ), + col0 FROM tab1
----
-18620
51
-209855
91
-2375
85

skipif mysql # not compatible
query II rowsort label-1088
SELECT 95 * col1 * CAST ( + - col1 AS INTEGER ), + col0 FROM tab1
----
-18620
51
-209855
91
-2375
85

query I rowsort
SELECT - - 48 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col1 * col1 + + + 96 AS col0 FROM tab1
----
121
2305
292

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 + 30 + - + col0 * 54 NOT BETWEEN NULL AND 42 + 10
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1092
SELECT ALL - col2 * 33 DIV - 26 AS col1 FROM tab2 AS cor0
----
29
50
73

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL - col2 * 33 / - 26 AS col1 FROM tab2 AS cor0
----
29
50
73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1093
SELECT DISTINCT COUNT( * ) + + CAST( + 12 AS SIGNED ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-1093
SELECT DISTINCT COUNT ( * ) + + CAST ( + 12 AS INTEGER ) FROM tab2
----
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1094
SELECT DISTINCT + 94 DIV 28 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
3

skipif mysql # not compatible
query I rowsort label-1094
SELECT DISTINCT + 94 / 28 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
3

query I rowsort
SELECT col1 * col2 * + col0 * - 90 + col2 AS col0 FROM tab0
----
-1644290
-5139403
-864171

query I rowsort
SELECT ALL 77 * + 31 AS col0 FROM tab1 AS cor0
----
2387
2387
2387

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1098
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 19 ) * - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1098
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 19 ) * - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1099
SELECT DISTINCT col2 * - - col0 + + + 12 + ( - col1 ) + - col1 DIV - col0 FROM tab1 cor0
----
4894
5022
6153

skipif mysql # not compatible
query I rowsort label-1099
SELECT DISTINCT col2 * - - col0 + + + 12 + ( - col1 ) + - col1 / - col0 FROM tab1 cor0
----
4894
5022
6153

query II rowsort
SELECT + col2, col2 + + col2 AS col0 FROM tab0
----
10
20
47
94
99
198

query II rowsort
SELECT + 28, + 28 AS col2 FROM tab2
----
28
28
28
28
28
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1102
SELECT ALL - 82 * 96 * 25 - - COUNT( * ) + MIN( ALL + + col0 ) + + CAST( NULL AS SIGNED ) / - 23 col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1102
SELECT ALL - 82 * 96 * 25 - - COUNT ( * ) + MIN ( ALL + + col0 ) + + CAST ( NULL AS INTEGER ) / - 23 col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1103
SELECT col1 DIV - 18 - + - col2 AS col2 FROM tab0
----
43
9
99

skipif mysql # not compatible
query I rowsort label-1103
SELECT col1 / - 18 - + - col2 AS col2 FROM tab0
----
43
9
99

query I rowsort
SELECT - col1 * + - 33 - - 96 AS col0 FROM tab1
----
1647
261
558

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - + 56 col1, ( - col2 ) + + col2 AS col2, - + col0 + - - 49 FROM tab2 cor0
----
9 values hashing to 7644c234d0c5a8b55527a08cab2e81f5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1107
SELECT DISTINCT - col2, col0 col0 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN col2 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1107
SELECT DISTINCT - col2, col0 col0 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN col2 AND NULL
----

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

query II rowsort
SELECT + col2 * - col2 AS col0, col2 AS col0 FROM tab2
----
-1600
40
-3364
58
-529
23

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1111
SELECT + - CAST( NULL AS DECIMAL ) + - - col2 * - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 * + 75 AND NULL
----

skipif mysql # not compatible
query I rowsort label-1111
SELECT + - CAST ( NULL AS REAL ) + - - col2 * - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 * + 75 AND NULL
----

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1116
SELECT DISTINCT col2 AS col1, + CAST( NULL AS SIGNED ) + + 58 / + - 57 * + 61 * col1 * - 76 AS col1 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-1116
SELECT DISTINCT col2 AS col1, + CAST ( NULL AS INTEGER ) + + 58 / + - 57 * + 61 * col1 * - 76 AS col1 FROM tab2
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT - col2 * + - col2 * - col1 AS col2 FROM tab0
----
-178929
-2100
-9801

query I rowsort
SELECT DISTINCT col2 * - col2 + + - 3 AS col2 FROM tab1
----
-3484
-4627
-9219

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

query I rowsort
SELECT 79 + 49 FROM tab0 cor0
----
128
128
128

query I rowsort
SELECT + 13 + col0 AS col2 FROM tab1 AS cor0
----
104
64
98

onlyif mysql # aggregate syntax: 
query II rowsort label-1122
SELECT DISTINCT + 50 col0, COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
50
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1122
SELECT DISTINCT + 50 col0, COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
50
3

query I rowsort
SELECT DISTINCT col1 + 30 * + col0 AS col2 FROM tab1 WHERE NOT + 67 + - col2 BETWEEN col0 AND ( NULL )
----
1544
2555
2777

query I rowsort
SELECT + col1 FROM tab0 WHERE - col1 + + col0 IN ( col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1126
SELECT ALL - ( 20 ) * + COUNT( - col0 ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-1126
SELECT ALL - ( 20 ) * + COUNT ( - col0 ) FROM tab2
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT ALL + COUNT( * ) * MIN( ( - col2 ) ) FROM tab2
----
-174

skipif mysql # not compatible
query I rowsort label-1127
SELECT ALL + COUNT ( * ) * MIN ( ( - col2 ) ) FROM tab2
----
-174

query I rowsort
SELECT ALL ( + 28 ) * col2 AS col0 FROM tab2
----
1120
1624
644

onlyif mysql # DIV for integer division: 
query I rowsort label-1129
SELECT + ( col1 ) DIV + 5 AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
10
13
15

skipif mysql # not compatible
query I rowsort label-1129
SELECT + ( col1 ) / + 5 AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
10
13
15

query I rowsort
SELECT + 47 AS col2 FROM tab0 WHERE NOT - ( 18 ) IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1132
SELECT col0 DIV + 33 AS col1 FROM tab0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-1132
SELECT col0 / + 33 AS col1 FROM tab0
----
0
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1133
SELECT ALL - col1 DIV col0 - + col0 DIV col0 FROM tab2
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-1133
SELECT ALL - col1 / col0 - + col0 / col0 FROM tab2
----
-1
-2
-2

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

skipif mysql # not compatible
query I rowsort label-1134
SELECT col0 / + 67 FROM tab2
----
0
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 17 + + col1 * - 83 col1 FROM tab0
----
-1726
-66
-6706

query I rowsort
SELECT DISTINCT + col2 * + 81 + - 56 * col0 FROM tab0
----
-4062
2587
2967

query I rowsort
SELECT ALL - col2 + col2 AS col2 FROM tab0 WHERE NULL IS NULL
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT COUNT( * ) * MIN( ( - 62 ) ) + 39 FROM tab0
----
-147

skipif mysql # not compatible
query I rowsort label-1139
SELECT COUNT ( * ) * MIN ( ( - 62 ) ) + 39 FROM tab0
----
-147

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT - COUNT( * ) + 55 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-1141
SELECT - COUNT ( * ) + 55 FROM tab1
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1142
SELECT - CAST( - 98 AS SIGNED ) * - col1 FROM tab0
----
-2058
-7938
-98

skipif mysql # not compatible
query I rowsort label-1142
SELECT - CAST ( - 98 AS INTEGER ) * - col1 FROM tab0
----
-2058
-7938
-98

query III rowsort
SELECT * FROM tab2 WHERE - col2 * col0 = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT MAX( DISTINCT - col0 ) * COUNT( * ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-1145
SELECT MAX ( DISTINCT - col0 ) * COUNT ( * ) FROM tab1
----
-153

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1149
SELECT DISTINCT - COUNT( DISTINCT 95 ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1149
SELECT DISTINCT - COUNT ( DISTINCT 95 ) AS col2 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT NULL = ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1151
SELECT COUNT( * ) * 41 AS col1 FROM tab1 AS cor0
----
123

skipif mysql # not compatible
query I rowsort label-1151
SELECT COUNT ( * ) * 41 AS col1 FROM tab1 AS cor0
----
123

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

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN col0 AND - col1 - 87 * col0
----

query I rowsort
SELECT 7 AS col1 FROM tab2 cor0 WHERE NOT col2 * 62 IS NOT NULL
----

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 53 NOT IN ( + 99 + ( + col0 ) )
----

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

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

skipif mysql # not compatible
query I rowsort label-1160
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col0 * col1 + col1 IS NULL
----
0

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

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

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

query I rowsort
SELECT - ( 48 ) FROM tab0 WHERE NOT - col2 + + col1 NOT BETWEEN NULL AND 98
----

query I rowsort
SELECT + 67 * - - 94 FROM tab0
----
6298
6298
6298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1165
SELECT + 22 * col2 + - CAST( col0 AS SIGNED ) * - 7 AS col2 FROM tab2 WHERE col2 + + 0 * - col2 BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1165
SELECT + 22 * col2 + - CAST ( col0 AS INTEGER ) * - 7 AS col2 FROM tab2 WHERE col2 + + 0 * - col2 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1166
SELECT ALL + COUNT( ALL + 24 ) * - COUNT( * ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-1166
SELECT ALL + COUNT ( ALL + 24 ) * - COUNT ( * ) AS col1 FROM tab1
----
-9

query I rowsort
SELECT + col1 * + 10 AS col1 FROM tab2
----
510
670
770

query I rowsort
SELECT DISTINCT + col2 * + 71 AS col1 FROM tab0
----
3337
7029
710

query I rowsort
SELECT DISTINCT col1 * - - 58 FROM tab0
----
1218
4698
58

query I rowsort
SELECT - col0 * + - col0 AS col1 FROM tab2 cor0
----
2116
4096
5625

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1172
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL IN ( - col1 * - CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1172
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL IN ( - col1 * - CAST ( col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT - 37 - + SUM( col1 - - 67 * - 29 ) AS col1 FROM tab1 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
5726

skipif mysql # not compatible
query I rowsort label-1173
SELECT - 37 - + SUM ( col1 - - 67 * - 29 ) AS col1 FROM tab1 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
5726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1174
SELECT SUM( + CAST( NULL AS SIGNED ) ) FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1174
SELECT SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab1, tab0 AS cor0
----
NULL

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1178
SELECT ALL + ( 52 ) - col2 DIV + 22 FROM tab0 AS cor0
----
48
50
52

skipif mysql # not compatible
query I rowsort label-1178
SELECT ALL + ( 52 ) - col2 / + 22 FROM tab0 AS cor0
----
48
50
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col1 FROM tab2 AS cor0 WHERE NOT + col2 * - 79 NOT IN ( - ( + col0 ) )
----

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

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT NULL < col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1182
SELECT - COUNT( * ), 62 AS col0 FROM tab1 AS cor0
----
-3
62

skipif mysql # not compatible
query II rowsort label-1182
SELECT - COUNT ( * ), 62 AS col0 FROM tab1 AS cor0
----
-3
62

query III rowsort
SELECT * FROM tab0 WHERE + col0 < col2
----
15
81
47
97
1
99

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1185
SELECT 86 - - COUNT( * ) * + - COUNT( * ) DIV - + 56 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-1185
SELECT 86 - - COUNT ( * ) * + - COUNT ( * ) / - + 56 FROM tab2
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-1186
SELECT COUNT( ALL - col1 ), 57 * COUNT( * ) AS col0 FROM tab0
----
3
171

skipif mysql # not compatible
query II rowsort label-1186
SELECT COUNT ( ALL - col1 ), 57 * COUNT ( * ) AS col0 FROM tab0
----
3
171

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 + - + col1 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1188
SELECT + col0 DIV + 79 AS col2 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1188
SELECT + col0 / + 79 AS col2 FROM tab0
----
0
1
1

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

skipif mysql # not compatible
query I rowsort label-1189
SELECT DISTINCT - col2 / col0 AS col2 FROM tab1
----
-1
0

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT + 11 <> col2
----

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

skipif mysql # not compatible
query I rowsort label-1191
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1192
SELECT DISTINCT + ( MIN( - CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( + 85 + - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1192
SELECT DISTINCT + ( MIN ( - CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( + 85 + - col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT + COUNT( * ) + 75 FROM tab1 AS cor0 WHERE NOT col2 * + - 1 NOT BETWEEN + - col1 AND NULL
----
75

skipif mysql # not compatible
query I rowsort label-1193
SELECT + COUNT ( * ) + 75 FROM tab1 AS cor0 WHERE NOT col2 * + - 1 NOT BETWEEN + - col1 AND NULL
----
75

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1195
SELECT ALL + COUNT( * ) FROM tab0 WHERE col0 * + col1 + - - col2 + col1 <= ( + ( 60 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL + COUNT ( * ) FROM tab0 WHERE col0 * + col1 + - - col2 + col1 <= ( + ( 60 ) )
----
0

query I rowsort
SELECT - 81 + + - col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-132
-148
-158

query II rowsort
SELECT + + col1 AS col1, col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

query II rowsort
SELECT - - ( ( + 63 ) ), col1 FROM tab1 AS cor0
----
63
14
63
47
63
5

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

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

query I rowsort
SELECT + ( - 20 ) FROM tab2 AS cor0
----
-20
-20
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1201
SELECT 24 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) - + col0 / col2 + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1201
SELECT 24 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) - + col0 / col2 + - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT - 91 FROM tab1 cor0 WHERE - 13 / - + col2 + - col0 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-1203
SELECT 40 / - 58 * - COUNT ( * ) FROM tab2 AS cor0
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) + - col1 col0 FROM tab1
----
-110
-115
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1206
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col0 AS col2, + 81 * - col2 AS col2 FROM tab0
----
NULL
-3807
NULL
-8019
NULL
-810

skipif mysql # not compatible
query II rowsort label-1206
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col0 AS col2, + 81 * - col2 AS col2 FROM tab0
----
NULL
-3807
NULL
-8019
NULL
-810

query I rowsort
SELECT DISTINCT + 62 + + + 23 + + col0 AS col2 FROM tab0
----
100
172
182

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

query III rowsort
SELECT * FROM tab1 WHERE col0 * + col0 IN ( - + 38 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 AS col1, col0 col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT + + 50 + ( - col1 ) FROM tab1 AS cor0
----
3
36
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1212
SELECT ALL - MAX( ALL - col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1212
SELECT ALL - MAX ( ALL - col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT ALL 4 * - ( - + MAX( ALL + - 90 ) ) FROM tab1 AS cor0
----
-360

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL 4 * - ( - + MAX ( ALL + - 90 ) ) FROM tab1 AS cor0
----
-360

onlyif mysql # aggregate syntax: 
query II rowsort label-1216
SELECT DISTINCT + + COUNT( * ) - + COUNT( * ) AS col1, 60 FROM tab1 AS cor0
----
0
60

skipif mysql # not compatible
query II rowsort label-1216
SELECT DISTINCT + + COUNT ( * ) - + COUNT ( * ) AS col1, 60 FROM tab1 AS cor0
----
0
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - col1 + ( + col1 ) * + - 98 * + col2 col0 FROM tab1 AS cor0
----
-131684
-28900
-313114

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

query I rowsort
SELECT DISTINCT col2 FROM tab0 cor0 WHERE NULL >= col1 + + col2
----

query I rowsort
SELECT DISTINCT + col2 * col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT col2 NOT BETWEEN - col0 AND col0 ) )
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1221
SELECT DISTINCT - col2 * col0 + + + CAST( + 23 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-4873
-4992
-6165

skipif mysql # not compatible
query I rowsort label-1221
SELECT DISTINCT - col2 * col0 + + + CAST ( + 23 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-4873
-4992
-6165

query I rowsort
SELECT 13 AS col1 FROM tab1 AS cor0 WHERE NOT col2 + + col2 NOT BETWEEN - ( - col2 ) * 51 + + 49 + + 62 * + col0 * col0 AND col1 * col1 + - col2
----

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - 36 + + 72 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1225
SELECT DISTINCT 36 * - MIN( + col0 ) AS col2 FROM tab1
----
-1836

skipif mysql # not compatible
query I rowsort label-1225
SELECT DISTINCT 36 * - MIN ( + col0 ) AS col2 FROM tab1
----
-1836

query I rowsort
SELECT DISTINCT 2 * - 87 AS col1 FROM tab1
----
-174

query I rowsort
SELECT ALL 20 * + 97 FROM tab0
----
1940
1940
1940

onlyif mysql # DIV for integer division: 
query I rowsort label-1228
SELECT ALL 48 DIV 92 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL 48 / 92 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT DISTINCT MIN( DISTINCT - 1 ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1229
SELECT DISTINCT MIN ( DISTINCT - 1 ) AS col2 FROM tab2
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-1230
SELECT col2 DIV ( - col0 ) * 85 FROM tab0
----
-255
-85
0

skipif mysql # not compatible
query I rowsort label-1230
SELECT col2 / ( - col0 ) * 85 FROM tab0
----
-255
-85
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1231
SELECT + 22 AS col0, COUNT( * ) + - 88 AS col2 FROM tab2
----
22
-85

skipif mysql # not compatible
query II rowsort label-1231
SELECT + 22 AS col0, COUNT ( * ) + - 88 AS col2 FROM tab2
----
22
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 15, col0 col1 FROM tab0 AS cor0
----
15
15
15
87
15
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1233
SELECT ALL * FROM tab1 AS cor0 WHERE col1 <= ( + col0 + + + col1 * - col0 + + col2 * - - 14 + 38 * CAST( - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1233
SELECT ALL * FROM tab1 AS cor0 WHERE col1 <= ( + col0 + + + col1 * - col0 + + col2 * - - 14 + 38 * CAST ( - col2 AS INTEGER ) )
----

query II rowsort
SELECT + + col1 AS col0, + 35 * - + col0 * - 44 FROM tab0 AS cor0
----
1
149380
21
133980
81
23100

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1236
SELECT DISTINCT ( col1 ) DIV - 10 FROM tab1
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-1236
SELECT DISTINCT ( col1 ) / - 10 FROM tab1
----
-1
-4
0

query I rowsort
SELECT + + 36 + - col1 AS col0 FROM tab0 cor0
----
-45
15
35

query I rowsort
SELECT ALL - 73 AS col2 FROM tab1 cor0
----
-73
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-1239
SELECT - 53 + - 11 * - + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - col2 = col2
----
-53

skipif mysql # not compatible
query I rowsort label-1239
SELECT - 53 + - 11 * - + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - col2 = col2
----
-53

query I rowsort
SELECT 77 * + col1 + 1 AS col2 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT + col2 FROM tab0 WHERE NULL BETWEEN NULL AND 86
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1243
SELECT DISTINCT 21 + + COUNT( * ) col0 FROM tab2
----
24

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1244
SELECT ( + 86 ) * - col2 + + + col1 + - col0 * - CAST( - + 86 AS SIGNED ) AS col1 FROM tab2
----
-11371
-5883
-8867

skipif mysql # not compatible
query I rowsort label-1244
SELECT ( + 86 ) * - col2 + + + col1 + - col0 * - CAST ( - + 86 AS INTEGER ) AS col1 FROM tab2
----
-11371
-5883
-8867

query I rowsort
SELECT ALL - 74 + - + 94 - + col0 * - - col0 FROM tab2 AS cor0
----
-2284
-4264
-5793

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

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

query I rowsort
SELECT ALL - col2 * - col0 + + 49 + 58 FROM tab1 AS cor0 WHERE NOT + ( col0 ) BETWEEN + 96 AND NULL
----
5003
5122
6295

query I rowsort
SELECT + + 84 * - 36 FROM tab1 AS cor0
----
-3024
-3024
-3024

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

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

query I rowsort
SELECT 58 * 95 FROM tab0 AS cor0 WHERE NOT + 11 <> - + col2
----

query II rowsort
SELECT col1, + col2 * col1 AS col2 FROM tab2 cor0
----
51
1173
67
3886
77
3080

query I rowsort
SELECT col1 * + 51 FROM tab0 cor0 WHERE NOT + col1 / - col1 + + - 72 + + 80 <> + 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1255
SELECT + 0 * - COUNT( * ) FROM tab2 cor0 WHERE NOT - 93 * + 31 * - col0 NOT BETWEEN + 33 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1255
SELECT + 0 * - COUNT ( * ) FROM tab2 cor0 WHERE NOT - 93 * + 31 * - col0 NOT BETWEEN + 33 AND NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-1256
SELECT DISTINCT + + 37 * + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
111

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

query I rowsort
SELECT ALL 67 * col0 FROM tab0 AS cor0
----
1005
5829
6499

query I rowsort
SELECT - ( + - 43 ) * + col1 * - col0 * - col0 FROM tab2 AS cor0
----
13561856
16205625
4640388

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT DISTINCT - 45 * - 53 * + - 79 * - 80 * COUNT( * ) AS col1 FROM tab2
----
45219600

skipif mysql # not compatible
query I rowsort label-1260
SELECT DISTINCT - 45 * - 53 * + - 79 * - 80 * COUNT ( * ) AS col1 FROM tab2
----
45219600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1261
SELECT ALL + CAST( NULL AS SIGNED ) * + 94 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1261
SELECT ALL + CAST ( NULL AS INTEGER ) * + 94 FROM tab2
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-1262
SELECT ALL ( + MAX ( DISTINCT col1 ) ) FROM tab0
----
81

query I rowsort
SELECT DISTINCT 10 FROM tab2, tab1 AS cor0
----
10

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

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

query I rowsort
SELECT + + 30 * + col1 + - col1 * + col2 AS col0 FROM tab1 AS cor0
----
-145
-1786
-924

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT + col1 NOT IN ( - - 80 )
----

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

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

query I rowsort
SELECT col2 * col0 + + ( col2 ) AS col1 FROM tab0 AS cor0
----
752
880
9702

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1271
SELECT - COUNT( * ) * + - 46 FROM tab0 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-1271
SELECT - COUNT ( * ) * + - 46 FROM tab0 AS cor0
----
138

query II rowsort
SELECT ALL + 6 * - - 51 + - col2 AS col0, 82 FROM tab1 AS cor0
----
210
82
238
82
247
82

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1274
SELECT ALL - col2 DIV + 46 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1274
SELECT ALL - col2 / + 46 AS col2 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT ALL + + col2 + + 2 AS col2 FROM tab2 AS cor0
----
25
42
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - 50 ) * + - col1, ( 47 ) col1 FROM tab2 AS cor0
----
2550
47
3350
47
3850
47

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

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

query I rowsort
SELECT - col0 + 31 + + col1 * - ( col0 ) AS col2 FROM tab2 AS cor0
----
-2361
-4961
-5069

query I rowsort
SELECT - 41 * 98 + + 49 AS col0 FROM tab2
----
-3969
-3969
-3969

query I rowsort
SELECT DISTINCT col0 * 56 - + col0 FROM tab0
----
4785
5335
825

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1282
SELECT DISTINCT - CAST( col1 AS SIGNED ) * - - ( + + col0 ) * + col1 - - col2 AS col0 FROM tab0 AS cor0
----
-38357
-98368
2

skipif mysql # not compatible
query I rowsort label-1282
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * - - ( + + col0 ) * + col1 - - col2 AS col0 FROM tab0 AS cor0
----
-38357
-98368
2

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT - MAX( DISTINCT - 6 ) + - - ( + SUM( DISTINCT - + col2 ) ) + + + 48 col1 FROM tab2 AS cor0
----
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1283
SELECT - MAX ( DISTINCT - 6 ) + - - ( + SUM ( DISTINCT - + col2 ) ) + + + 48 col1 FROM tab2 AS cor0
----
-67

query I rowsort
SELECT col0 * ( + ( + col0 ) ) + - 60 FROM tab0 AS cor0
----
165
7509
9349

query I rowsort
SELECT ALL - 96 - - col0 AS col2 FROM tab2 AS cor0
----
-21
-32
-50

onlyif mysql # aggregate syntax: 
query II rowsort label-1286
SELECT ALL 82 AS col1, - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
82
-9

skipif mysql # not compatible
query II rowsort label-1286
SELECT ALL 82 AS col1, - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
82
-9

query I rowsort
SELECT ALL - + 10 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1288
SELECT * FROM tab0 AS cor0 WHERE NOT 40 NOT BETWEEN NULL AND CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1288
SELECT * FROM tab0 AS cor0 WHERE NOT 40 NOT BETWEEN NULL AND CAST ( - col2 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 AS col2, 56 + + + col0 col0 FROM tab0 AS cor0
----
-15
71
-87
143
-97
153

onlyif mysql # aggregate syntax: 
query I rowsort label-1290
SELECT 8 * - COUNT( * ) * - 89 AS col2 FROM tab1 cor0
----
2136

skipif mysql # not compatible
query I rowsort label-1290
SELECT 8 * - COUNT ( * ) * - 89 AS col2 FROM tab1 cor0
----
2136

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

skipif mysql # not compatible
query II rowsort label-1291
SELECT ALL - COUNT ( * ) AS col1, + COUNT ( * ) * + + 24 - + SUM ( col1 ) FROM tab0 AS cor0
----
-3
-31

query I rowsort
SELECT DISTINCT + - 51 AS col0 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT ALL + col0 * + + col2 FROM tab2 AS cor0
----
1058
2560
4350

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

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

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

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

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

query I rowsort
SELECT DISTINCT + - 66 * 25 FROM tab1 AS cor0
----
-1650

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

skipif mysql # not compatible
query I rowsort label-1298
SELECT - - COUNT ( * ) AS col1 FROM tab2 WHERE NOT - 41 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1299
SELECT - 9 DIV col2 DIV 92 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1299
SELECT - 9 / col2 / 92 AS col1 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1300
SELECT - CAST( + - 77 AS SIGNED ) * + CAST( NULL AS SIGNED ) / + + 26 + - col2 * + col0 / 47 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1300
SELECT - CAST ( + - 77 AS INTEGER ) * + CAST ( NULL AS INTEGER ) / + + 26 + - col2 * + col0 / 47 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1301
SELECT + 75 DIV + + COUNT( * ) AS col2 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-1301
SELECT + 75 / + + COUNT ( * ) AS col2 FROM tab0
----
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1302
SELECT ALL - 23 DIV - - MIN( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1302
SELECT ALL - 23 / - - MIN ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + - ( col1 ) + + + 84 AS col0 FROM tab2 AS cor0
----
17
33
7

query I rowsort
SELECT DISTINCT - + col0 * - 20 AS col0 FROM tab2 AS cor0
----
1280
1500
920

query II rowsort
SELECT + 79 * col0 AS col2, col0 FROM tab0
----
1185
15
6873
87
7663
97

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

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

query I rowsort
SELECT col0 + - - col1 + + ( + col1 ) * - col1 FROM tab0
----
-333
-6465
97

query I rowsort
SELECT ALL - 28 AS col2 FROM tab2 WHERE NOT + col1 * col2 * - col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 31 * col1 * - + 66 + - + 85 + + - 40 col2 FROM tab0
----
-198587
-2486015
-3738167

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1310
SELECT + 95 + + + col2, col1 + - + CAST( - + 17 AS SIGNED ) AS col1 FROM tab2
----
118
68
135
94
153
84

skipif mysql # not compatible
query II rowsort label-1310
SELECT + 95 + + + col2, col1 + - + CAST ( - + 17 AS INTEGER ) AS col1 FROM tab2
----
118
68
135
94
153
84

query I rowsort
SELECT + 62 + - col1 - + 70 FROM tab2 cor0
----
-59
-75
-85

query I rowsort
SELECT ALL col0 + - 37 FROM tab1 cor0
----
14
48
54

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 78 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
query I rowsort label-1315
SELECT DISTINCT + ( - CAST ( + ( + + col1 ) AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT ALL 56 + col1 AS col2 FROM tab0 cor0
----
137
57
77

query I rowsort
SELECT ( - col2 ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 * col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1319
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE ( - ( col1 ) ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1319
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE ( - ( col1 ) ) BETWEEN NULL AND NULL
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1320
SELECT DISTINCT + col0 * + col1 + - col0 AS col2, - col2 + + 17 + - col2 + - - 89 DIV col2 + + col1 FROM tab2
----
2300
25
4864
16
4950
-31

skipif mysql # not compatible
query II rowsort label-1320
SELECT DISTINCT + col0 * + col1 + - col0 AS col2, - col2 + + 17 + - col2 + - - 89 / col2 + + col1 FROM tab2
----
2300
25
4864
16
4950
-31

query I rowsort
SELECT DISTINCT - col1 + 90 FROM tab1
----
43
76
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1322
SELECT ALL 13 + + 70 + COUNT( * ) FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-1322
SELECT ALL 13 + + 70 + COUNT ( * ) FROM tab1
----
86

query I rowsort
SELECT + 80 * + + col1 AS col2 FROM tab1
----
1120
3760
400

onlyif mysql # aggregate syntax: 
query I rowsort label-1324
SELECT ALL - SUM( DISTINCT + col0 ) + + 22 + + 77 FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-1324
SELECT ALL - SUM ( DISTINCT + col0 ) + + 22 + + 77 FROM tab0
----
-100

query I rowsort
SELECT DISTINCT + col0 - + - col0 FROM tab2
----
128
150
92

query I rowsort
SELECT DISTINCT + - 73 - - col1 AS col1 FROM tab0 cor0
----
-52
-72
8

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT + MAX( - - 46 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
46

skipif mysql # not compatible
query I rowsort label-1329
SELECT + MAX ( - - 46 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
46

query I rowsort
SELECT + 43 * ( 98 ) AS col0 FROM tab1 AS cor0
----
4214
4214
4214

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

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

query I rowsort
SELECT ALL 37 AS col2 FROM tab0 AS cor0
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT + MIN( + - 80 ) * - - 80 FROM tab1 AS cor0
----
-6400

skipif mysql # not compatible
query I rowsort label-1333
SELECT + MIN ( + - 80 ) * - - 80 FROM tab1 AS cor0
----
-6400

query I rowsort
SELECT - col0 * col0 - - col1 AS col2 FROM tab2 AS cor0
----
-2065
-4019
-5558

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) * 60 col2 FROM tab1
----
2820
300
840

query I rowsort
SELECT + - 89 * + col1 + col2 FROM tab1 AS cor0
----
-1150
-386
-4115

query I rowsort
SELECT ALL + - col0 * - 67 * col2 AS col0 FROM tab1 AS cor0
----
328032
336005
414596

query II rowsort
SELECT + - 91 - + 64, 15 AS col0 FROM tab1 AS cor0
----
-155
15
-155
15
-155
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 - + 92 col0 FROM tab0 AS cor0
----
-5
-77
5

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1344
SELECT ALL + + ( - - COUNT( * ) ) AS col0, 92 + 6 AS col1 FROM tab2 AS cor0
----
3
98

skipif mysql # not compatible
query II rowsort label-1344
SELECT ALL + + ( - - COUNT ( * ) ) AS col0, 92 + 6 AS col1 FROM tab2 AS cor0
----
3
98

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

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

query I rowsort
SELECT ALL + col2 + - col1 + + ( + 58 ) * + + 71 + - col0 FROM tab2 WHERE + col1 BETWEEN + 77 - - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1347
SELECT - col0 + col1 + 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-1347
SELECT - col0 + col1 + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - 31 + col1 IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1350
SELECT + 70 AS col1, CAST( + + 26 AS SIGNED ) - - + 92 AS col0 FROM tab1 AS cor0
----
70
118
70
118
70
118

skipif mysql # not compatible
query II rowsort label-1350
SELECT + 70 AS col1, CAST ( + + 26 AS INTEGER ) - - + 92 AS col0 FROM tab1 AS cor0
----
70
118
70
118
70
118

onlyif mysql # aggregate syntax: 
query I rowsort label-1351
SELECT - MIN( - 56 ) FROM tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-1351
SELECT - MIN ( - 56 ) FROM tab0 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1352
SELECT + 40 * - + COUNT( * ) * - + MIN( DISTINCT + col1 ) * MAX( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-35400

skipif mysql # not compatible
query I rowsort label-1352
SELECT + 40 * - + COUNT ( * ) * - + MIN ( DISTINCT + col1 ) * MAX ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-35400

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) IN ( - col2, col0, - col1, - col2 )
----

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

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

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

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

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

query I rowsort
SELECT ALL col0 * col0 * + col0 AS col0 FROM tab1 cor0
----
132651
614125
753571

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - col1, 16, - - 39, - ( - + 64 ), + - col0 )
----

query I rowsort
SELECT ALL col1 + + col0 * + + col1 FROM tab2
----
2397
5005
5092

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1360
SELECT DISTINCT + 46 DIV - - col2 col1 FROM tab0 WHERE NOT + ( - CAST( + 62 AS SIGNED ) ) + col2 + ( ( - col1 ) ) * - col1 * - + ( col2 ) IS NULL
----
0
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1360
SELECT DISTINCT + 46 / - - col2 col1 FROM tab0 WHERE NOT + ( - CAST ( + 62 AS INTEGER ) ) + col2 + ( ( - col1 ) ) * - col1 * - + ( col2 ) IS NULL
----
0
4

onlyif mysql # aggregate syntax: 
query II rowsort label-1361
SELECT + COUNT( * ) * + COUNT( * ) AS col2, 25 FROM tab2 AS cor0
----
9
25

skipif mysql # not compatible
query II rowsort label-1361
SELECT + COUNT ( * ) * + COUNT ( * ) AS col2, 25 FROM tab2 AS cor0
----
9
25

query I rowsort
SELECT ALL - col1 + - col1 + + col2 AS col1 FROM tab1 AS cor0
----
-26
49
68

query I rowsort
SELECT ALL - 51 - + col1 FROM tab0
----
-132
-52
-72

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

query I rowsort
SELECT DISTINCT + + 93 AS col2 FROM tab0 AS cor0
----
93

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1367
SELECT - + 75 DIV + SUM( DISTINCT - 36 ) - - 89 AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-1367
SELECT - + 75 / + SUM ( DISTINCT - 36 ) - - 89 AS col2 FROM tab1 AS cor0
----
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL NOT IN ( + 73, - col1, col0 * - 67 + - + col0 ) )
----

query II rowsort
SELECT DISTINCT - col1, + col2 FROM tab1 WHERE 34 IS NOT NULL
----
-14
96
-47
68
-5
59

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

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

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

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

query I rowsort
SELECT + 74 - - - 46 FROM tab1
----
28
28
28

query I rowsort
SELECT - col0 - + ( - col0 ) FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, - col0 AS col1 FROM tab1
----
14
-51
47
-91
5
-85

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

query I rowsort
SELECT ALL - 70 * 35 AS col1 FROM tab2 AS cor0
----
-2450
-2450
-2450

query I rowsort
SELECT - - col0 FROM tab2 AS cor0 WHERE NOT - 97 >= col0
----
46
64
75

onlyif mysql # DIV for integer division: 
query II rowsort label-1378
SELECT DISTINCT - col0 DIV col1, + 2 AS col0 FROM tab2 AS cor0
----
-1
2
0
2

skipif mysql # not compatible
query II rowsort label-1378
SELECT DISTINCT - col0 / col1, + 2 AS col0 FROM tab2 AS cor0
----
-1
2
0
2

query I rowsort
SELECT ALL + 61 * + 71 FROM tab0 AS cor0
----
4331
4331
4331

query I rowsort
SELECT ALL ( col1 ) * 97 FROM tab1
----
1358
4559
485

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * col0 BETWEEN 41 AND - col2 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

skipif mysql # not compatible
query I rowsort label-1383
SELECT DISTINCT - + 74 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-222

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1386
SELECT ALL + - ( + COUNT( * ) ) * - MIN( - col1 ) FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-1386
SELECT ALL + - ( + COUNT ( * ) ) * - MIN ( - col1 ) FROM tab2 AS cor0
----
-231

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1387
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - - col2 ) <> - 52 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1387
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - - col2 ) <> - 52 + + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1388
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) BETWEEN NULL AND - CAST( + CAST( + 71 AS SIGNED ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1388
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) BETWEEN NULL AND - CAST ( + CAST ( + 71 AS INTEGER ) AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1389
SELECT DISTINCT + COUNT( DISTINCT + + col1 ) + ( + COUNT( * ) ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1389
SELECT DISTINCT + COUNT ( DISTINCT + + col1 ) + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
6

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

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

query I rowsort
SELECT ALL 26 + + + col2 AS col0 FROM tab0
----
125
36
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT ALL + ( + MIN( ALL 47 ) ) FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-1392
SELECT ALL + ( + MIN ( ALL 47 ) ) FROM tab2
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1393
SELECT + col1 + + CAST( - 51 AS SIGNED ) FROM tab2 AS cor0
----
0
16
26

skipif mysql # not compatible
query I rowsort label-1393
SELECT + col1 + + CAST ( - 51 AS INTEGER ) FROM tab2 AS cor0
----
0
16
26

query I rowsort
SELECT ( col2 ) + - 36 AS col2 FROM tab2 cor0
----
-13
22
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - col2 ) AS col2, col1 + + - 51 / + col2 col2 FROM tab0 AS cor0 WHERE NOT - 42 IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1396
SELECT - CAST ( - - ( MAX ( ALL + 19 ) ) AS INTEGER ) col0 FROM tab0 AS cor0
----
-19

query I rowsort
SELECT DISTINCT col0 + - + 75 - 27 FROM tab1
----
-11
-17
-51

query I rowsort
SELECT ALL - 69 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

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

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL + CAST ( NULL AS INTEGER ) / + 38 + + col1 * - + 3 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 44 - + col0 AS col2 FROM tab2
----
-2
-20
-31

query I rowsort
SELECT DISTINCT + col1 - + + col0 + + + col0 FROM tab1
----
14
47
5

query I rowsort
SELECT col1 * + col1 - + ( + 52 ) * - 35 AS col0 FROM tab0 AS cor0
----
1821
2261
8381

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 - + - 2 col2 FROM tab1 AS cor0
----
61
70
98

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

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

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

skipif mysql # not compatible
query I rowsort label-1407
SELECT + col2 + col0 / + - ( - + col2 ) AS col0 FROM tab0 AS cor0
----
18
47
99

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

skipif mysql # not compatible
query I rowsort label-1408
SELECT - COUNT ( * ) + + SUM ( ALL + col2 ) FROM tab1 AS cor0
----
220

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT - COUNT( * ) * - COUNT( * ) FROM tab0, tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1409
SELECT - COUNT ( * ) * - COUNT ( * ) FROM tab0, tab1 AS cor0
----
81

query II rowsort
SELECT DISTINCT 97 AS col0, - col1 FROM tab2 AS cor0
----
97
-51
97
-67
97
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1411
SELECT ALL CAST( NULL AS SIGNED ) AS col2, + col2 + - 83 FROM tab1 AS cor0
----
NULL
-15
NULL
-24
NULL
13

skipif mysql # not compatible
query II rowsort label-1411
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, + col2 + - 83 FROM tab1 AS cor0
----
NULL
-15
NULL
-24
NULL
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1412
SELECT DISTINCT + + COUNT( * ) * + 79 DIV 71 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1412
SELECT DISTINCT + + COUNT ( * ) * + 79 / 71 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 * 63 * - 60 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 901e6f8bc081da1bd015b35ced0a40e5

onlyif mysql # aggregate syntax: 
query I rowsort label-1414
SELECT - MAX( ALL - + 21 ) AS col1 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-1414
SELECT - MAX ( ALL - + 21 ) AS col1 FROM tab2
----
21

onlyif mysql # DIV for integer division: 
query II rowsort label-1415
SELECT - col1 DIV 8, + col2 AS col1 FROM tab0
----
-10
47
-2
10
0
99

skipif mysql # not compatible
query II rowsort label-1415
SELECT - col1 / 8, + col2 AS col1 FROM tab0
----
-10
47
-2
10
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT DISTINCT - MIN( DISTINCT - 8 ) * 93 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
744

skipif mysql # not compatible
query I rowsort label-1416
SELECT DISTINCT - MIN ( DISTINCT - 8 ) * 93 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
744

query I rowsort
SELECT - ( - col2 ) * col1 + 98 AS col2 FROM tab0
----
197
308
3905

onlyif mysql # DIV for integer division: 
query I rowsort label-1418
SELECT - col0 DIV 61 * - col1 FROM tab0 AS cor0
----
0
1
21

skipif mysql # not compatible
query I rowsort label-1418
SELECT - col0 / 61 * - col1 FROM tab0 AS cor0
----
0
1
21

query I rowsort
SELECT ALL + col2 * + - col0 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col0 + col2 col0 FROM tab2 AS cor0
----
2369
4968
5083

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1421
SELECT DISTINCT col2 + 16 + - 75 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
-1
-19
-36

skipif mysql # not compatible
query I rowsort label-1421
SELECT DISTINCT col2 + 16 + - 75 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
-1
-19
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1422
SELECT - + 8 + - + CAST( - + COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-1422
SELECT - + 8 + - + CAST ( - + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1424
SELECT DISTINCT - COUNT( * ) + ( AVG ( ALL - ( - + 72 ) ) ) AS col2 FROM tab0 AS cor0 WHERE ( - ( + 21 ) * 66 * + - ( - col1 ) - + - 29 / ( + + 18 ) + col2 * col1 NOT BETWEEN NULL AND col0 + + 31 + + + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1424
SELECT DISTINCT - COUNT ( * ) + ( AVG ( ALL - ( - + 72 ) ) ) AS col2 FROM tab0 AS cor0 WHERE ( - ( + 21 ) * 66 * + - ( - col1 ) - + - 29 / ( + + 18 ) + col2 * col1 NOT BETWEEN NULL AND col0 + + 31 + + + col2 )
----
NULL

query I rowsort
SELECT ALL + 19 * + 43 + + - 69 FROM tab1 AS cor0
----
748
748
748

query I rowsort
SELECT ALL + 30 + col1 FROM tab2 AS cor0
----
107
81
97

query III rowsort
SELECT * FROM tab1 WHERE 27 IS NULL
----

query II rowsort
SELECT + ( - + col0 ), + col0 FROM tab1
----
-51
51
-85
85
-91
91

query I rowsort
SELECT DISTINCT 55 + 60 + - col1 * + col2 AS col2 FROM tab0
----
-3692
-95
16

query I rowsort
SELECT - col2 * + + 93 AS col0 FROM tab2
----
-2139
-3720
-5394

query I rowsort
SELECT ALL 9 * + col2 AS col0 FROM tab1
----
531
612
864

onlyif mysql # DIV for integer division: 
query I rowsort label-1432
SELECT DISTINCT + col1 + + + col1 DIV - col2 - col2 + - col1 - + col2 DIV + col1 - col0 + - col2 * + col1 * 38 * + - col2 AS col1 FROM tab2 AS cor0
----
1025131
4681495
8564610

skipif mysql # not compatible
query I rowsort label-1432
SELECT DISTINCT + col1 + + + col1 / - col2 - col2 + - col1 - + col2 / + col1 - col0 + - col2 * + col1 * 38 * + - col2 AS col1 FROM tab2 AS cor0
----
1025131
4681495
8564610

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT NULL >= 53
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1434
SELECT DISTINCT col1 DIV + col2 + ( + CAST( col0 AS SIGNED ) ) DIV + 45 AS col2 FROM tab1 cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-1434
SELECT DISTINCT col1 / + col2 + ( + CAST ( col0 AS INTEGER ) ) / + 45 AS col2 FROM tab1 cor0
----
1
2

query I rowsort
SELECT DISTINCT - - col1 + - col0 * - col1 AS col2 FROM tab0 AS cor0
----
1296
1848
98

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

query I rowsort
SELECT - + 69 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query III rowsort
SELECT * FROM tab2 WHERE 21 <> - col1 * + + 32 + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 <= - 34 * - col1 * + col2 - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1440
SELECT DISTINCT - col1 DIV + col2 + - - col0 AS col0 FROM tab2 AS cor0
----
44
63
74

skipif mysql # not compatible
query I rowsort label-1440
SELECT DISTINCT - col1 / + col2 + - - col0 AS col0 FROM tab2 AS cor0
----
44
63
74

query I rowsort
SELECT DISTINCT - - ( + - col1 ) - col0 * + - col1 * - + 51 FROM tab1 AS cor0
----
-21680
-218174
-36428

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 <= + 46
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, - col2 col2 FROM tab0 AS cor0
----
15
-47
87
-10
97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1444
SELECT ALL 29 * + - MIN( + 43 ) FROM tab2 AS cor0
----
-1247

skipif mysql # not compatible
query I rowsort label-1444
SELECT ALL 29 * + - MIN ( + 43 ) FROM tab2 AS cor0
----
-1247

onlyif mysql # aggregate syntax: 
query II rowsort label-1445
SELECT COUNT( * ) col2, 7 + 83 AS col0 FROM tab0 AS cor0
----
3
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1445
SELECT COUNT ( * ) col2, 7 + 83 AS col0 FROM tab0 AS cor0
----
3
90

query I rowsort
SELECT - - 6 * - col1 AS col2 FROM tab2 AS cor0
----
-306
-402
-462

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1447
SELECT + CAST( - ( - col2 ) AS SIGNED ) DIV 7 AS col0 FROM tab0 cor0
----
1
14
6

skipif mysql # not compatible
query I rowsort label-1447
SELECT + CAST ( - ( - col2 ) AS INTEGER ) / 7 AS col0 FROM tab0 cor0
----
1
14
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT SUM( ALL - + col0 ) * - 67 FROM tab2
----
12395

skipif mysql # not compatible
query I rowsort label-1448
SELECT SUM ( ALL - + col0 ) * - 67 FROM tab2
----
12395

query I rowsort
SELECT - 26 * + + col0 FROM tab0
----
-2262
-2522
-390

onlyif mysql # aggregate syntax: 
query I rowsort label-1450
SELECT DISTINCT SUM( - + 42 ) AS col0 FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-1450
SELECT DISTINCT SUM ( - + 42 ) AS col0 FROM tab1
----
-126

query I rowsort
SELECT 92 * - col2 * - + col1 FROM tab2
----
107916
283360
357512

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1453
SELECT + - 41 AS col1 FROM tab0 WHERE NOT + 71 * - CAST( NULL AS SIGNED ) * - ( col1 ) + - col1 BETWEEN + - 2 - - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1453
SELECT + - 41 AS col1 FROM tab0 WHERE NOT + 71 * - CAST ( NULL AS INTEGER ) * - ( col1 ) + - col1 BETWEEN + - 2 - - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1454
SELECT DISTINCT CAST( + AVG ( DISTINCT + 87 ) AS SIGNED ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-1454
SELECT DISTINCT CAST ( + AVG ( DISTINCT + 87 ) AS INTEGER ) FROM tab1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT - MIN( ALL + 10 ) AS col1 FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-1455
SELECT - MIN ( ALL + 10 ) AS col1 FROM tab1 AS cor0
----
-10

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

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

query II rowsort
SELECT + + col1 + + - 23 AS col1, + col2 * - + col0 FROM tab2 AS cor0 WHERE NOT 33 IS NOT NULL
----

query I rowsort
SELECT ALL + ( + col0 ) AS col2 FROM tab0 WHERE NULL <= - - ( + col0 )
----

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

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

query I rowsort
SELECT DISTINCT - - 15 * 74 FROM tab0 AS cor0
----
1110

query I rowsort
SELECT + col0 * - + 87 FROM tab0 AS cor0
----
-1305
-7569
-8439

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT ALL + 21 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-1463
SELECT ALL + 21 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT + COUNT( * ) * - - 80 + MAX( + 8 ) FROM tab2 cor0
----
248

skipif mysql # not compatible
query I rowsort label-1464
SELECT + COUNT ( * ) * - - 80 + MAX ( + 8 ) FROM tab2 cor0
----
248

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

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 64 * col0 col1 FROM tab0 AS cor0
----
1007
5578
6307

onlyif mysql # aggregate syntax: 
query I rowsort label-1470
SELECT ALL - MIN( - 56 ) + 54 FROM tab2
----
110

skipif mysql # not compatible
query I rowsort label-1470
SELECT ALL - MIN ( - 56 ) + 54 FROM tab2
----
110

onlyif mysql # DIV for integer division: 
query I rowsort label-1471
SELECT DISTINCT - col1 DIV 33 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-1471
SELECT DISTINCT - col1 / 33 FROM tab2
----
-1
-2

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

skipif mysql # not compatible
query I rowsort label-1472
SELECT ALL + CAST ( - MIN ( + col1 ) AS INTEGER ) FROM tab1 AS cor0
----
-5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1473
SELECT - CAST( NULL AS DECIMAL ) / - 0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1473
SELECT - CAST ( NULL AS REAL ) / - 0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + col1 * + - col2 + + col1 AS col0 FROM tab1 AS cor0
----
1358
300
3243

query I rowsort
SELECT ALL - col0 - - col0 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT DISTINCT 39 + + + ( - 59 ) AS col1 FROM tab2
----
-20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT ALL + - 75 * - COUNT( * ) - - - COUNT( col1 ) AS col2 FROM tab1 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-1478
SELECT ALL + - 75 * - COUNT ( * ) - - - COUNT ( col1 ) AS col2 FROM tab1 AS cor0
----
222

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1479
SELECT - - SUM ( ALL - col0 ) col1 FROM tab0 AS cor0
----
-199

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1481
SELECT ALL - CAST( 19 AS SIGNED ) FROM tab1 AS cor0
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-1481
SELECT ALL - CAST ( 19 AS INTEGER ) FROM tab1 AS cor0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query II rowsort label-1482
SELECT ALL + - ( - 37 ), - MAX( - col1 ) AS col0 FROM tab0 AS cor0
----
37
1

skipif mysql # not compatible
query II rowsort label-1482
SELECT ALL + - ( - 37 ), - MAX ( - col1 ) AS col0 FROM tab0 AS cor0
----
37
1

query I rowsort
SELECT + col0 * - col2 * + col0 FROM tab0 AS cor0
----
-10575
-75690
-931491

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT ALL MAX( + + col0 ) * + 55 FROM tab2 AS cor0
----
4125

skipif mysql # not compatible
query I rowsort label-1484
SELECT ALL MAX ( + + col0 ) * + 55 FROM tab2 AS cor0
----
4125

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

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

query I rowsort
SELECT 61 * + - col1 AS col2 FROM tab0
----
-1281
-4941
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT - ( - MAX( - 15 ) ) AS col2 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-1487
SELECT - ( - MAX ( - 15 ) ) AS col2 FROM tab2
----
-15

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

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

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

query II rowsort
SELECT ALL + col0 AS col1, col2 * + 73 - - col2 + 75 * col1 FROM tab1
----
51
8154
85
4741
91
8557

query I rowsort
SELECT col2 * - col1 * 86 FROM tab1
----
-115584
-25370
-274856

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT - col1 * + col1 IS NULL
----
-23
-40
-58

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1494
SELECT ALL - MIN( DISTINCT col0 ) + 32 AS col1, + COUNT( - 92 ) * + - 99 FROM tab0 cor0
----
17
-297

skipif mysql # not compatible
query II rowsort label-1494
SELECT ALL - MIN ( DISTINCT col0 ) + 32 AS col1, + COUNT ( - 92 ) * + - 99 FROM tab0 cor0
----
17
-297

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT col0 + + + col1 * ( - ( - col1 ) ) FROM tab2
----
2647
4564
5993

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - ( + col1 ) + - col2 col2 FROM tab0
----
-198
-220
-3854

query I rowsort
SELECT - 36 + - col2 FROM tab1 AS cor0
----
-104
-132
-95

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

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

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

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

query I rowsort
SELECT ALL - col0 - - col1 AS col0 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT SUM( DISTINCT - 85 ) AS col2 FROM tab1
----
-85

skipif mysql # not compatible
query I rowsort label-1505
SELECT SUM ( DISTINCT - 85 ) AS col2 FROM tab1
----
-85

query I rowsort
SELECT ALL - col0 - - col1 AS col1 FROM tab1
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1507
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) + + 16 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-1507
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) + + 16 FROM tab2
----
7

query I rowsort
SELECT ALL + 18 * + 80 + + col1 * + 78 * - 18 AS col1 FROM tab1
----
-18216
-5580
-64548

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1509
SELECT DISTINCT 78 - + + ( + 82 ) DIV - 40 - - 74 * - SUM( DISTINCT col0 ) FROM tab0 AS cor0
----
-14646

skipif mysql # not compatible
query I rowsort label-1509
SELECT DISTINCT 78 - + + ( + 82 ) / - 40 - - 74 * - SUM ( DISTINCT col0 ) FROM tab0 AS cor0
----
-14646

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

query I rowsort
SELECT + 68 + - 35 AS col2 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT - 35 * 76 * + col1 AS col1 FROM tab2
----
-135660
-178220
-204820

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT SUM( DISTINCT - + 14 ) FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-1513
SELECT SUM ( DISTINCT - + 14 ) FROM tab0
----
-14

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1517
SELECT ALL + + SUM( ALL 51 ) col1 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1517
SELECT ALL + + SUM ( ALL 51 ) col1 FROM tab2 AS cor0
----
153

query I rowsort
SELECT ALL + col2 * - 29 AS col1 FROM tab1 AS cor0
----
-1711
-1972
-2784

onlyif mysql # aggregate syntax: 
query I rowsort label-1519
SELECT ALL + SUM( ALL 77 ) * - ( ( - COUNT( * ) ) ) * 10 AS col2 FROM tab0 cor0
----
6930

skipif mysql # not compatible
query I rowsort label-1519
SELECT ALL + SUM ( ALL 77 ) * - ( ( - COUNT ( * ) ) ) * 10 AS col2 FROM tab0 cor0
----
6930

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

skipif mysql # not compatible
query I rowsort label-1520
SELECT - CAST ( - COUNT ( - col2 ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col0 * ( + ( 63 ) ) FROM tab1
----
3213
5355
5733

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

skipif mysql # not compatible
query I rowsort label-1522
SELECT ( - 46 ) / - - COUNT ( * ) FROM tab0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1523
SELECT + col2 * - 91, col1 * + CAST( NULL AS SIGNED ) * - 0 - - - col0 + - + 73 col1 FROM tab2
----
-2093
NULL
-3640
NULL
-5278
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1523
SELECT + col2 * - 91, col1 * + CAST ( NULL AS INTEGER ) * - 0 - - - col0 + - + 73 col1 FROM tab2
----
-2093
NULL
-3640
NULL
-5278
NULL

query II rowsort
SELECT - 43 + 46 * - 52, - 53 - col0 FROM tab0 WHERE NOT NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 * - 80 col0 FROM tab2
----
204800
348000
84640

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 14 col1 FROM tab0, tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

query I rowsort
SELECT ALL - 15 AS col0 FROM tab2 cor0
----
-15
-15
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-1530
SELECT - + col2 DIV 27 * - col1 + + - col2 FROM tab0 AS cor0
----
-10
-96
34

skipif mysql # not compatible
query I rowsort label-1530
SELECT - + col2 / 27 * - col1 + + - col2 FROM tab0 AS cor0
----
-10
-96
34

onlyif mysql # aggregate syntax: 
query II rowsort label-1531
SELECT + 35 + 46, MAX( - + col1 ) AS col0 FROM tab1 AS cor0
----
81
-5

skipif mysql # not compatible
query II rowsort label-1531
SELECT + 35 + 46, MAX ( - + col1 ) AS col0 FROM tab1 AS cor0
----
81
-5

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1534
SELECT - CAST( - - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0 WHERE 68 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1534
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0 WHERE 68 IS NOT NULL
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1536
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE col0 - - 88 + - - 17 < - 58 - + col2 * 48 - col2 + - 70
----
0

skipif mysql # not compatible
query I rowsort label-1536
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE col0 - - 88 + - - 17 < - 58 - + col2 * 48 - col2 + - 70
----
0

query II rowsort
SELECT col0, - col1 FROM tab1 WHERE - col0 * - col0 + - col0 + + - 23 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( col1 ) - + - 1 - + + col0 col1, - col0 FROM tab0
----
-65
-87
-95
-97
67
-15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1539
SELECT ALL * FROM tab0 WHERE + - col1 >= - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1539
SELECT ALL * FROM tab0 WHERE + - col1 >= - - CAST ( NULL AS INTEGER )
----

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

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

query I rowsort
SELECT col0 + col1 * + col1 * ( - 46 ) AS col0 FROM tab1
----
-101523
-1065
-8965

query I rowsort
SELECT DISTINCT - ( - - 46 ) * + - 78 + - col2 + - col2 AS col1 FROM tab0
----
3390
3494
3568

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1544
SELECT DISTINCT - MIN( ALL + - 42 ) FROM tab2 WHERE NOT ( col2 IS NULL )
----
42

skipif mysql # not compatible
query I rowsort label-1544
SELECT DISTINCT - MIN ( ALL + - 42 ) FROM tab2 WHERE NOT ( col2 IS NULL )
----
42

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

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

query I rowsort
SELECT - ( 28 ) AS col1 FROM tab2 AS cor0
----
-28
-28
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1548
SELECT DISTINCT + + 85 * - 35 * - COUNT( * ) AS col1, CAST( + ( + COUNT( + - col1 ) ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
8925
3

skipif mysql # not compatible
query II rowsort label-1548
SELECT DISTINCT + + 85 * - 35 * - COUNT ( * ) AS col1, CAST ( + ( + COUNT ( + - col1 ) ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
8925
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1549
SELECT DISTINCT - COUNT( + + 14 ) * - SUM( - + col0 ) FROM tab0 AS cor0
----
-597

skipif mysql # not compatible
query I rowsort label-1549
SELECT DISTINCT - COUNT ( + + 14 ) * - SUM ( - + col0 ) FROM tab0 AS cor0
----
-597

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 < + 84
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col2, - col1 FROM tab0
----
10
-21
47
-81
99
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT + MAX( ALL - col0 ) * + MIN( 53 ) FROM tab2
----
-2438

skipif mysql # not compatible
query I rowsort label-1553
SELECT + MAX ( ALL - col0 ) * + MIN ( 53 ) FROM tab2
----
-2438

query I rowsort
SELECT - 17 * - - col0 AS col2 FROM tab0
----
-1479
-1649
-255

onlyif mysql # aggregate syntax: 
query II rowsort label-1555
SELECT DISTINCT MIN( DISTINCT + - col2 ) AS col2, ( + 93 ) AS col2 FROM tab2
----
-58
93

skipif mysql # not compatible
query II rowsort label-1555
SELECT DISTINCT MIN ( DISTINCT + - col2 ) AS col2, ( + 93 ) AS col2 FROM tab2
----
-58
93

query I rowsort
SELECT - 35 * + - col2 AS col1 FROM tab0
----
1645
3465
350

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT - 66 * + 54 / + col0 + + - col2 IS NOT NULL
----

query I rowsort
SELECT + 84 * col1 * + - col0 FROM tab1
----
-35700
-359268
-59976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1559
SELECT - 5 col1, SUM( ALL - + CAST( NULL AS SIGNED ) ) FROM tab2
----
-5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1559
SELECT - 5 col1, SUM ( ALL - + CAST ( NULL AS INTEGER ) ) FROM tab2
----
-5
NULL

query I rowsort
SELECT + col2 * - 5 FROM tab1
----
-295
-340
-480

query I rowsort
SELECT ALL - 58 * - 20 AS col2 FROM tab0 AS cor0
----
1160
1160
1160

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

query I rowsort
SELECT ALL 84 + 29 * + 61 + col0 AS col1 FROM tab2 AS cor0
----
1899
1917
1928

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 + - col2 col1 FROM tab0
----
-10
42
79

query I rowsort
SELECT 56 * - col2 + + col0 FROM tab1
----
-3219
-3717
-5325

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT SUM( DISTINCT + - col0 ) + - COUNT( - 48 ) FROM tab0
----
-202

skipif mysql # not compatible
query I rowsort label-1566
SELECT SUM ( DISTINCT + - col0 ) + - COUNT ( - 48 ) FROM tab0
----
-202

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

query I rowsort
SELECT ALL - 46 FROM tab1 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT COUNT( * ) - ( - COUNT( * ) ) * - 57 FROM tab2
----
-168

skipif mysql # not compatible
query I rowsort label-1569
SELECT COUNT ( * ) - ( - COUNT ( * ) ) * - 57 FROM tab2
----
-168

query I rowsort
SELECT col1 - col1 * - 88 - - 36 AS col1 FROM tab2
----
4575
5999
6889

onlyif mysql # DIV for integer division: 
query I rowsort label-1571
SELECT ALL - col1 DIV 2 * - 3 - - + col0 FROM tab0
----
117
135
97

skipif mysql # not compatible
query I rowsort label-1571
SELECT ALL - col1 / 2 * - 3 - - + col0 FROM tab0
----
117
135
97

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

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

query I rowsort
SELECT 33 * 61 AS col1 FROM tab1 AS cor0
----
2013
2013
2013

query I rowsort
SELECT ALL 72 - + col1 / col1 AS col0 FROM tab1 WHERE NOT + col0 + + col0 * - 81 NOT IN ( + col1 )
----

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

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1577
SELECT DISTINCT + CAST( 94 AS SIGNED ) + + MIN( DISTINCT col0 ) AS col1 FROM tab2
----
140

skipif mysql # not compatible
query I rowsort label-1577
SELECT DISTINCT + CAST ( 94 AS INTEGER ) + + MIN ( DISTINCT col0 ) AS col1 FROM tab2
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-1578
SELECT + MIN( - 87 ) AS col1 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-1578
SELECT + MIN ( - 87 ) AS col1 FROM tab1
----
-87

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1580
SELECT DISTINCT col1 DIV col2 + - 86 * + col1 FROM tab0
----
-1804
-6965
-86

skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT col1 / col2 + - 86 * + col1 FROM tab0
----
-1804
-6965
-86

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

query I rowsort
SELECT ALL 1 * - col0 + + col1 AS col2 FROM tab0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1583
SELECT 65 + COUNT( * ) AS col1 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-1583
SELECT 65 + COUNT ( * ) AS col1 FROM tab2
----
68

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1584
SELECT COUNT( DISTINCT + col2 ) + + CAST( - AVG ( - ( col1 ) ) + - COUNT( * ) AS DECIMAL ) AS col0 FROM tab0 WHERE NULL <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1584
SELECT COUNT ( DISTINCT + col2 ) + + CAST ( - AVG ( - ( col1 ) ) + - COUNT ( * ) AS REAL ) AS col0 FROM tab0 WHERE NULL <> ( NULL )
----
NULL

query I rowsort
SELECT ALL + 51 + - 27 AS col2 FROM tab1
----
24
24
24

query I rowsort
SELECT + ( 59 ) AS col0 FROM tab0
----
59
59
59

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 29 NOT IN ( + 47 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT ALL 84 * + COUNT( * ) AS col1 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL 84 * + COUNT ( * ) AS col1 FROM tab1
----
252

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1592
SELECT * FROM tab1 WHERE NULL IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1592
SELECT * FROM tab1 WHERE NULL IN ( CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 51 / col2 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1594
SELECT ALL COUNT ( - col2 ) AS col1 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 + 6 * col2 col0 FROM tab0
----
103
325
637

query I rowsort
SELECT ALL - col0 * - 11 FROM tab1 AS cor0
----
1001
561
935

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1597
SELECT DISTINCT 26 DIV - COUNT( ( 94 ) ) FROM tab0 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-1597
SELECT DISTINCT 26 / - COUNT ( ( 94 ) ) FROM tab0 AS cor0
----
-8

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

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

query I rowsort
SELECT ALL - 79 * ( - col0 ) AS col1 FROM tab0 AS cor0
----
1185
6873
7663

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

query I rowsort
SELECT + 93 + col0 AS col2 FROM tab0 AS cor0
----
108
180
190

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT SUM( - col1 ) + 40 col1 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1602
SELECT SUM ( - col1 ) + 40 col1 FROM tab1 AS cor0
----
-26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1604
SELECT DISTINCT - 21 * + COUNT( * ) + 45 col0 FROM tab0
----
-18

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1605
SELECT ALL 87 * COUNT( ALL col2 ) + + 65 DIV 44 AS col0 FROM tab2
----
262

skipif mysql # not compatible
query I rowsort label-1605
SELECT ALL 87 * COUNT ( ALL col2 ) + + 65 / 44 AS col0 FROM tab2
----
262

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE ( NULL ) > + 38
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT DISTINCT + SUM( ALL + 29 ) * - COUNT( * ) AS col2 FROM tab2 cor0
----
-261

skipif mysql # not compatible
query I rowsort label-1607
SELECT DISTINCT + SUM ( ALL + 29 ) * - COUNT ( * ) AS col2 FROM tab2 cor0
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT + COUNT( * ) - 73 AS col1 FROM tab2 cor0
----
-70

skipif mysql # not compatible
query I rowsort label-1608
SELECT + COUNT ( * ) - 73 AS col1 FROM tab2 cor0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-1609
SELECT + - COUNT( * ) - COUNT( - col1 ) * + 27 AS col1 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-1609
SELECT + - COUNT ( * ) - COUNT ( - col1 ) * + 27 AS col1 FROM tab1 AS cor0
----
-84

query I rowsort
SELECT DISTINCT + col0 - - 79 FROM tab2 AS cor0
----
125
143
154

query I rowsort
SELECT - 42 - - col0 * 78 FROM tab1 AS cor0
----
3936
6588
7056

query I rowsort
SELECT - + 73 - col2 AS col2 FROM tab0 cor0
----
-120
-172
-83

query I rowsort
SELECT - 49 * + col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1029
-3969
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-1614
SELECT DISTINCT + COUNT( * ) + 81 * - MIN( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
-4128

skipif mysql # not compatible
query I rowsort label-1614
SELECT DISTINCT + COUNT ( * ) + 81 * - MIN ( DISTINCT col0 ) AS col0 FROM tab1 AS cor0
----
-4128

query I rowsort
SELECT - - col1 + 21 FROM tab1 AS cor0
----
26
35
68

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT DISTINCT 33 + COUNT( * ) AS col2 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-1616
SELECT DISTINCT 33 + COUNT ( * ) AS col2 FROM tab1
----
36

query I rowsort
SELECT - 43 / 78 FROM tab1 WHERE NOT col0 + 29 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1618
SELECT DISTINCT CAST( + COUNT( 98 ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1618
SELECT DISTINCT CAST ( + COUNT ( 98 ) AS INTEGER ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + col2 * - col1 + + ( + col2 ) AS col2 FROM tab0 AS cor0
----
-200
-3760
0

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

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

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) = - + 44 / + col0
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1625
SELECT - - 99 DIV - + col2 col1 FROM tab0 cor0
----
-1
-2
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1625
SELECT - - 99 / - + col2 col1 FROM tab0 cor0
----
-1
-2
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1626
SELECT + 45 + + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab2 cor0
----
48

skipif mysql # not compatible
query I rowsort label-1626
SELECT + 45 + + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 cor0
----
48

query I rowsort
SELECT 96 + - col1 AS col0 FROM tab1 AS cor0
----
49
82
91

query I rowsort
SELECT DISTINCT 17 * - + col2 FROM tab0 AS cor0
----
-1683
-170
-799

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1629
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IN ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-1629
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT SUM( + 68 ) + - + 29 FROM tab1
----
175

skipif mysql # not compatible
query I rowsort label-1630
SELECT SUM ( + 68 ) + - + 29 FROM tab1
----
175

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1634
SELECT ( - - 79 ) * + SUM( DISTINCT + - col1 ) AS col0 FROM tab0
----
-8137

skipif mysql # not compatible
query I rowsort label-1634
SELECT ( - - 79 ) * + SUM ( DISTINCT + - col1 ) AS col0 FROM tab0
----
-8137

query I rowsort
SELECT DISTINCT ( + + ( + - col2 ) ) * - col2 FROM tab1
----
3481
4624
9216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 * + 90 col1 FROM tab0
----
8460
8460
8460

onlyif mysql # DIV for integer division: 
query I rowsort label-1637
SELECT ALL + 98 DIV col1 AS col0 FROM tab0
----
1
4
98

skipif mysql # not compatible
query I rowsort label-1637
SELECT ALL + 98 / col1 AS col0 FROM tab0
----
1
4
98

query I rowsort
SELECT col2 * + 59 AS col2 FROM tab0
----
2773
5841
590

query I rowsort
SELECT DISTINCT - col2 * + 31 AS col1 FROM tab0
----
-1457
-3069
-310

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NOT ( col0 + + ( - 81 ) ) <= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - col1 col2 FROM tab1 AS cor0 WHERE NOT - 10 IN ( - 27 )
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1643
SELECT DISTINCT - CAST( - - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT - CAST ( - - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 col1 FROM tab2 WHERE ( - - col1 ) < col1
----

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

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

query I rowsort
SELECT 88 + + ( - + 30 ) FROM tab1
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * 28 col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col2 - - col2 + ( - col0 ) / + 62 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1648
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( + col2 ) + - CAST( - col0 AS SIGNED ) * + 41 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1648
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( + col2 ) + - CAST ( - col0 AS INTEGER ) * + 41 IS NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT ALL MAX( DISTINCT + col2 ) col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1650
SELECT ALL MAX ( DISTINCT + col2 ) col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1651
SELECT ALL 15 * - + COUNT( * ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-1651
SELECT ALL 15 * - + COUNT ( * ) FROM tab2
----
-45

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

query II rowsort
SELECT - 42 * 75, - col0 AS col2 FROM tab2
----
-3150
-46
-3150
-64
-3150
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1654
SELECT 24 DIV + MAX( + + 25 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1654
SELECT 24 / + MAX ( + + 25 ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT ALL - COUNT( * ) * - + 53 * 58 FROM tab2
----
9222

skipif mysql # not compatible
query I rowsort label-1655
SELECT ALL - COUNT ( * ) * - + 53 * 58 FROM tab2
----
9222

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1656
SELECT - COUNT( - + ( + + col1 ) ) DIV - 10 AS col0, 15 FROM tab1
----
0
15

skipif mysql # not compatible
query II rowsort label-1656
SELECT - COUNT ( - + ( + + col1 ) ) / - 10 AS col0, 15 FROM tab1
----
0
15

query I rowsort
SELECT col1 * - 8 AS col0 FROM tab2
----
-408
-536
-616

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

skipif mysql # not compatible
query II rowsort label-1658
SELECT DISTINCT + 8 AS col1, - CAST ( NULL AS INTEGER ) FROM tab1
----
8
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT DISTINCT - MIN( - col1 ) FROM tab0 AS cor0 WHERE + col2 * + - ( + 47 ) / + ( + - col0 ) > + col1 + + col0
----
81

skipif mysql # not compatible
query I rowsort label-1660
SELECT DISTINCT - MIN ( - col1 ) FROM tab0 AS cor0 WHERE + col2 * + - ( + 47 ) / + ( + - col0 ) > + col1 + + col0
----
81

onlyif mysql # aggregate syntax: 
query II rowsort label-1661
SELECT - - COUNT( * ) AS col2, - 82 FROM tab2 AS cor0
----
3
-82

skipif mysql # not compatible
query II rowsort label-1661
SELECT - - COUNT ( * ) AS col2, - 82 FROM tab2 AS cor0
----
3
-82

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

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

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

query II rowsort
SELECT + 83 * - ( - col1 ) AS col0, ( ( 40 ) ) FROM tab1
----
1162
40
3901
40
415
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1665
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1665
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 > + 49
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

query I rowsort
SELECT ALL + 46 * + + 90 * - + 15 * + col1 FROM tab0 cor0
----
-1304100
-5030100
-62100

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 IN ( + - col1 * - col0 )
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT col2 - - 11 IS NOT NULL
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 42 col1 FROM tab2 AS cor0
----
-100
-65
-82

query II rowsort
SELECT + ( + col1 ), col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

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

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

skipif mysql # not compatible
query I rowsort label-1677
SELECT ALL + CAST ( NULL AS INTEGER ) * - 64 + + - 3 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * + + 30 + + col0 AS col2 FROM tab2
----
1264
1815
736

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

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

skipif mysql # not compatible
query I rowsort label-1680
SELECT - + 82 + COUNT ( ALL col2 ) + - ( COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-82

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1682
SELECT - COUNT( * ) DIV ( - COUNT( DISTINCT + 83 ) ) AS col0 FROM tab2 cor0
----
3

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

query I rowsort
SELECT DISTINCT - 54 + + col1 FROM tab0 AS cor0
----
-33
-53
27

query I rowsort
SELECT ALL col0 - + + col1 + + + 3 * 33 AS col2 FROM tab2
----
107
86
94

query I rowsort
SELECT + col0 - - col1 - + col2 FROM tab2 AS cor0
----
101
74
84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 * col0 ) IS NULL
----

query I rowsort
SELECT ALL 84 FROM tab0 cor0 WHERE NULL >= NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1689
SELECT - 91 * - col2 + + 39 + - 70 + + CAST( 28 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2090
3637
5275

skipif mysql # not compatible
query I rowsort label-1689
SELECT - 91 * - col2 + + 39 + - 70 + + CAST ( 28 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2090
3637
5275

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( + + col2, + 16 * col2, + + 15 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1692
SELECT + 59 * col0 * + col0 * + CAST( col2 AS SIGNED ) FROM tab0
----
4465710
54957969
623925

skipif mysql # not compatible
query I rowsort label-1692
SELECT + 59 * col0 * + col0 * + CAST ( col2 AS INTEGER ) FROM tab0
----
4465710
54957969
623925

onlyif mysql # aggregate syntax: 
query I rowsort label-1693
SELECT + COUNT( DISTINCT - 36 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1693
SELECT + COUNT ( DISTINCT - 36 ) AS col1 FROM tab2
----
1

query I rowsort
SELECT ALL col2 * 20 AS col0 FROM tab2 AS cor0
----
1160
460
800

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

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

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

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

query I rowsort
SELECT 41 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1699
SELECT + 65 * - CAST ( NULL AS INTEGER ) * - 68 col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1700
SELECT ALL + - col0 * col1 + - 70 + + col2 * - 34 + + 39 DIV + 86 FROM tab0 AS cor0 WHERE NOT - 9 IS NULL
----
-2237
-2883
-3533

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL + - col0 * col1 + - 70 + + col2 * - 34 + + 39 / + 86 FROM tab0 AS cor0 WHERE NOT - 9 IS NULL
----
-2237
-2883
-3533

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 42 ) IS NULL
----

query I rowsort
SELECT + 28 * + 42 + - col0 + + + ( 24 ) AS col0 FROM tab0 AS cor0
----
1103
1113
1185

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

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

query I rowsort
SELECT + 81 + - col0 FROM tab0 AS cor0
----
-16
-6
66

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

query I rowsort
SELECT DISTINCT - col2 + + - col0 + + col0 * + col0 FROM tab2
----
2047
3992
5492

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - + col2 + - 51 col0 FROM tab1
----
-105
-133
-72

query I rowsort
SELECT ALL ( + - 66 ) FROM tab0
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1709
SELECT DISTINCT col0 + - - CAST( - col1 AS SIGNED ) FROM tab0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-1709
SELECT DISTINCT col0 + - - CAST ( - col1 AS INTEGER ) FROM tab0
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1710
SELECT ALL - 44 * - col2 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1710
SELECT ALL - 44 * - col2 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1711
SELECT + MIN( + + 21 ) col0 FROM tab1
----
21

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1712
SELECT - col1 DIV + 79 * - 57 - col2 AS col1 FROM tab2 cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1712
SELECT - col1 / + 79 * - 57 - col2 AS col1 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( ( + col1 ) )
----
3

skipif mysql # not compatible
query I rowsort label-1713
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( ( + col1 ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1714
SELECT COUNT( * ) + + 67 * + + ( - 99 ) AS col0 FROM tab0
----
-6630

skipif mysql # not compatible
query I rowsort label-1714
SELECT COUNT ( * ) + + 67 * + + ( - 99 ) AS col0 FROM tab0
----
-6630

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

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

query I rowsort
SELECT ALL 64 - col0 FROM tab1
----
-21
-27
13

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE - 77 * 76 BETWEEN + col1 AND ( - - 91 * - 63 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN + + col2 / + 28 AND - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1719
SELECT col0 DIV col2 DIV + - 82 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1719
SELECT col0 / col2 / + - 82 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT 16 * - - col0 FROM tab0
----
1392
1552
240

query II rowsort
SELECT + col0, - 96 AS col2 FROM tab2 WHERE NOT + 94 IS NOT NULL
----

query I rowsort
SELECT ALL ( - ( col2 ) ) * - 72 * + col1 AS col1 FROM tab2
----
221760
279792
84456

query I rowsort
SELECT + + 28 FROM tab0 WHERE NOT NULL NOT IN ( - + 85, col2, + + col0 )
----

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) < + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 >= ( - - col2 )
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1728
SELECT - MAX( 34 ) FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-1728
SELECT - MAX ( 34 ) FROM tab0
----
-34

query I rowsort
SELECT + 34 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query II rowsort
SELECT ALL + 77 * + - col0 * + col0 AS col1, - ( - + 77 ) * + + 79 - 48 AS col2 FROM tab1 cor0
----
-200277
6035
-556325
6035
-637637
6035

query II rowsort
SELECT ALL + - col1 * ( - 2 ), + col2 * - + col0 + 77 AS col2 FROM tab1 AS cor0
----
10
-4938
28
-4819
94
-6111

onlyif mysql # DIV for integer division: 
query I rowsort label-1732
SELECT + col0 DIV + col0 + - 17 + col0 FROM tab0 cor0
----
-1
71
81

skipif mysql # not compatible
query I rowsort label-1732
SELECT + col0 / + col0 + - 17 + col0 FROM tab0 cor0
----
-1
71
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1733
SELECT * FROM tab2 WHERE 1 NOT IN ( col1 + + 82, + CAST( col0 AS SIGNED ) + + col2, col0 * + col2 + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1733
SELECT * FROM tab2 WHERE 1 NOT IN ( col1 + + 82, + CAST ( col0 AS INTEGER ) + + col2, col0 * + col2 + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE + 70 / + col0 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1735
SELECT DISTINCT col1 + + - col0 + - - col2 DIV col0 * col1 * + + col1 * - 63 AS col1 FROM tab0
----
-1239963
-159
-66

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT col1 + + - col0 + - - col2 / col0 * col1 * + + col1 * - 63 AS col1 FROM tab0
----
-1239963
-159
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1736
SELECT ALL col0 - CAST( - + 88 AS SIGNED ) AS col0 FROM tab2
----
134
152
163

skipif mysql # not compatible
query I rowsort label-1736
SELECT ALL col0 - CAST ( - + 88 AS INTEGER ) AS col0 FROM tab2
----
134
152
163

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

skipif mysql # not compatible
query III rowsort label-1737
SELECT * FROM tab0 WHERE NULL <> + - CAST ( + 9 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1738
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - + 12 - + + 11 + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1738
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - + 12 - + + 11 + col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > 25 - - 82
----

query I rowsort
SELECT DISTINCT col1 * - - col1 AS col1 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-1741
SELECT MAX( ALL - - col1 ) col0 FROM tab1 cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1741
SELECT MAX ( ALL - - col1 ) col0 FROM tab1 cor0
----
47

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

skipif mysql # not compatible
query I rowsort label-1742
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3

query I rowsort
SELECT + col2 * + col0 * + col2 * - col1 AS col1 FROM tab1 AS cor0
----
-1479425
-19776848
-6580224

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1745
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 BETWEEN + CAST( col2 AS DECIMAL ) AND + 34 + - col0
----

skipif mysql # not compatible
query III rowsort label-1745
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 BETWEEN + CAST ( col2 AS REAL ) AND + 34 + - col0
----

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1748
SELECT ALL * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN NULL AND + + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1748
SELECT ALL * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN NULL AND + + CAST ( NULL AS REAL )
----

query I rowsort
SELECT - col1 + - - 15 FROM tab0 WHERE NOT ( + - 28 ) IS NULL
----
-6
-66
14

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT ALL - MAX( DISTINCT - col2 ) AS col1 FROM tab1 WHERE NOT - 35 + + 60 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL - MAX ( DISTINCT - col2 ) AS col1 FROM tab1 WHERE NOT - 35 + + 60 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT - MAX( DISTINCT + + 21 ) AS col0 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-1751
SELECT - MAX ( DISTINCT + + 21 ) AS col0 FROM tab1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1752
SELECT 85 * - ( + SUM( ALL - 21 ) ) * 57 FROM tab0
----
305235

skipif mysql # not compatible
query I rowsort label-1752
SELECT 85 * - ( + SUM ( ALL - 21 ) ) * 57 FROM tab0
----
305235

query I rowsort
SELECT DISTINCT + col2 * col0 / 44 / - + col0 * + col0 + col1 FROM tab0 WHERE NOT NULL <= 13 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1754
SELECT SUM( DISTINCT - - col0 ) * + + 1 col2 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1754
SELECT SUM ( DISTINCT - - col0 ) * + + 1 col2 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT ALL COUNT( ALL col0 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL COUNT ( ALL col0 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
3

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= col1 * - 66 * + + col1 * col0 + - 11 * - + col2
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1760
SELECT ALL + 98 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1760
SELECT ALL + 98 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + col2 + - col0 AS col2 FROM tab0
----
-67
101
79

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT DISTINCT ( COUNT( * ) ) + - 24 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-1762
SELECT DISTINCT ( COUNT ( * ) ) + - 24 FROM tab2
----
-21

query I rowsort
SELECT + - 90 + col2 AS col0 FROM tab0 AS cor0
----
-43
-80
9

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1764
SELECT DISTINCT - 51 / + + 81 + - + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1765
SELECT * FROM tab0 cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1765
SELECT * FROM tab0 cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1766
SELECT - col0 * - 86 FROM tab2 cor0 WHERE CAST( - + CAST( + 42 AS SIGNED ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1766
SELECT - col0 * - 86 FROM tab2 cor0 WHERE CAST ( - + CAST ( + 42 AS INTEGER ) AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT ALL COUNT( * ) AS col0 FROM tab0 WHERE NOT col0 BETWEEN 7 * - + col1 - + 84 AND + - 76 * - col1
----
1

skipif mysql # not compatible
query I rowsort label-1767
SELECT ALL COUNT ( * ) AS col0 FROM tab0 WHERE NOT col0 BETWEEN 7 * - + col1 - + 84 AND + - 76 * - col1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT DISTINCT 5 + - COUNT( * ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-1768
SELECT DISTINCT 5 + - COUNT ( * ) FROM tab2
----
2

query I rowsort
SELECT DISTINCT + 38 * - 9 * - col2 - col1 FROM tab2
----
13603
19769
7815

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT 17 - - COUNT( * ) FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-1770
SELECT 17 - - COUNT ( * ) FROM tab0
----
20

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1774
SELECT ALL 89 DIV - col1 col2 FROM tab0 cor0
----
-1
-4
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1774
SELECT ALL 89 / - col1 col2 FROM tab0 cor0
----
-1
-4
-89

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 11 / col2 NOT BETWEEN + col2 * 15 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1776
SELECT COUNT( * ) + + 6 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
15

skipif mysql # not compatible
query I rowsort label-1776
SELECT COUNT ( * ) + + 6 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
15

query I rowsort
SELECT DISTINCT + col2 * - 96 AS col0 FROM tab0 AS cor0
----
-4512
-9504
-960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1778
SELECT + 56 - col1 * + + 74 + - + CAST( - 40 AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1778
SELECT + 56 - col1 * + + 74 + - + CAST ( - 40 AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1780
SELECT - COUNT( * ) * 75 AS col0 FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-1780
SELECT - COUNT ( * ) * 75 AS col0 FROM tab0
----
-225

query I rowsort
SELECT - 48 + - 58 * + col1 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-106
-1266
-4746

query I rowsort
SELECT ALL ( 50 ) AS col0 FROM tab0
----
50
50
50

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1785
SELECT SUM( DISTINCT - 36 ) FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-1785
SELECT SUM ( DISTINCT - 36 ) FROM tab1
----
-36

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

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL MIN ( + + 12 ) AS col0 FROM tab0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1787
SELECT AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1787
SELECT AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE 54 / col0 NOT BETWEEN + col1 + + 90 / - + 95 AND ( + - ( 13 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1789
SELECT - CAST( - - 61 AS SIGNED ) FROM tab2
----
-61
-61
-61

skipif mysql # not compatible
query I rowsort label-1789
SELECT - CAST ( - - 61 AS INTEGER ) FROM tab2
----
-61
-61
-61

query I rowsort
SELECT + 35 + - - 72 FROM tab2 AS cor0 WHERE ( + col0 ) NOT IN ( col1, col2, 21, 18 + 43, + col0, + col1, - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1791
SELECT DISTINCT - 83 DIV + + col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1791
SELECT DISTINCT - 83 / + + col0 FROM tab1 AS cor0
----
-1
0

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

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

query I rowsort
SELECT + + col0 - + col1 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1794
SELECT + MAX( + 76 ) * - + COUNT( * ) - - AVG ( DISTINCT + - CAST( NULL AS SIGNED ) ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1794
SELECT + MAX ( + 76 ) * - + COUNT ( * ) - - AVG ( DISTINCT + - CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 64 * - + col2 + - 7 AS col1 FROM tab0 AS cor0
----
-3015
-6343
-647

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1797
SELECT COUNT( * ) * + 23 + 30 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-1797
SELECT COUNT ( * ) * + 23 + 30 FROM tab2
----
99

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT - COUNT( * ) col1 FROM tab1, tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1800
SELECT - COUNT ( * ) col1 FROM tab1, tab0 AS cor0
----
-9

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

query III rowsort
SELECT DISTINCT 72, col2 AS col2, + col1 * + col1 AS col0 FROM tab0 WHERE ( 22 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col2 col0 FROM tab1
----
110
115
64

query I rowsort
SELECT DISTINCT 88 * - 83 FROM tab0
----
-7304

query I rowsort
SELECT ALL - col1 * 81 AS col0 FROM tab1
----
-1134
-3807
-405

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

query I rowsort
SELECT DISTINCT + col0 * + + 74 FROM tab0
----
1110
6438
7178

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1808
SELECT - + 74 + - CAST( NULL AS DECIMAL ) - + CAST( NULL AS DECIMAL ) * + 36 + + 68 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-1808
SELECT - + 74 + - CAST ( NULL AS REAL ) - + CAST ( NULL AS REAL ) * + 36 + + 68 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

query I rowsort
SELECT ALL - 70 * - - col0 FROM tab0 AS cor0
----
-1050
-6090
-6790

query I rowsort
SELECT ALL + 22 FROM tab2 cor0 WHERE NULL < col2 / + 90
----

query I rowsort
SELECT ALL + col2 * - 83 AS col2 FROM tab1 cor0
----
-4897
-5644
-7968

query I rowsort
SELECT ALL - 59 * + - 41 + - - col2 AS col1 FROM tab1 AS cor0 WHERE col2 * - col2 > - col1 + + col2 + 17 * 85
----

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

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) < ( - 36 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1817
SELECT ALL - COUNT( * ) * 43 AS col2 FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-1817
SELECT ALL - COUNT ( * ) * 43 AS col2 FROM tab0
----
-129

query I rowsort
SELECT ALL - 14 FROM tab2 WHERE NOT - - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT + 5 * MAX( + 69 ) AS col2 FROM tab0
----
345

skipif mysql # not compatible
query I rowsort label-1819
SELECT + 5 * MAX ( + 69 ) AS col2 FROM tab0
----
345

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1822
SELECT - COUNT( * ) + - COUNT( * ) * - 90 + + 74 AS col2 FROM tab2
----
341

skipif mysql # not compatible
query I rowsort label-1822
SELECT - COUNT ( * ) + - COUNT ( * ) * - 90 + + 74 AS col2 FROM tab2
----
341

onlyif mysql # DIV for integer division: 
query II rowsort label-1823
SELECT ALL 80 DIV + 53 + - + col2 AS col0, col1 FROM tab2
----
-22
51
-39
77
-57
67

skipif mysql # not compatible
query II rowsort label-1823
SELECT ALL 80 / + 53 + - + col2 AS col0, col1 FROM tab2
----
-22
51
-39
77
-57
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1824
SELECT + CAST( - col0 AS SIGNED ) + + + 71 FROM tab1
----
-14
-20
20

skipif mysql # not compatible
query I rowsort label-1824
SELECT + CAST ( - col0 AS INTEGER ) + + + 71 FROM tab1
----
-14
-20
20

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

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

onlyif mysql # aggregate syntax: 
query III rowsort label-1826
SELECT DISTINCT + - 22 - - 31 AS col1, + COUNT( * ) col2, COUNT( * ) FROM tab0 AS cor0
----
9
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-1826
SELECT DISTINCT + - 22 - - 31 AS col1, + COUNT ( * ) col2, COUNT ( * ) FROM tab0 AS cor0
----
9
3
3

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1827
SELECT DISTINCT - MIN ( DISTINCT - col0 ) col1 FROM tab0 AS cor0
----
97

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 * col1 AS col1, + col1 col1 FROM tab2 AS cor0
----
-1173
51
-3080
77
-3886
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1830
SELECT col2 - + CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
116
46
80

skipif mysql # not compatible
query I rowsort label-1830
SELECT col2 - + CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
116
46
80

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1832
SELECT col0 - col0 + - 92 DIV + 15 AS col0 FROM tab1
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-1832
SELECT col0 - col0 + - 92 / + 15 AS col0 FROM tab1
----
-6
-6
-6

query I rowsort
SELECT ALL 45 + + 53 FROM tab1
----
98
98
98

query I rowsort
SELECT 68 - 40 FROM tab0
----
28
28
28

query II rowsort
SELECT 9 AS col1, col0 * + 64 AS col0 FROM tab1
----
9
3264
9
5440
9
5824

query I rowsort
SELECT col1 * - 90 * - - col2 * + col1 FROM tab2
----
-21344400
-23432580
-5384070

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1837
SELECT - + col0 * - col1 AS col2, 15 FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) + + col0 IS NOT NULL
----
1215
15
1827
15
97
15

skipif mysql # not compatible
query II rowsort label-1837
SELECT - + col0 * - col1 AS col2, 15 FROM tab0 WHERE NOT CAST ( NULL AS REAL ) + + col0 IS NOT NULL
----
1215
15
1827
15
97
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT DISTINCT 35 * + COUNT( * ) + 88 + + - COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
202

skipif mysql # not compatible
query I rowsort label-1838
SELECT DISTINCT 35 * + COUNT ( * ) + 88 + + - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
202

query I rowsort
SELECT + col0 * + col0 + ( col1 ) FROM tab1 AS cor0
----
2615
7230
8328

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

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

query II rowsort
SELECT DISTINCT - col1 AS col0, + col0 AS col2 FROM tab0 WHERE NOT col2 IS NULL
----
-1
97
-21
87
-81
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1842
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> - 96 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1842
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> - 96 * - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <> NULL OR NOT ( NULL ) NOT BETWEEN NULL AND - + 81
----

query I rowsort
SELECT - 76 * + - 71 AS col2 FROM tab2 AS cor0
----
5396
5396
5396

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

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

query I rowsort
SELECT - - ( - - col0 ) AS col0 FROM tab0 AS cor0
----
15
87
97

query II rowsort
SELECT ALL col1 AS col1, col1 + + ( 48 ) AS col1 FROM tab1
----
14
62
47
95
5
53

onlyif mysql # aggregate syntax: 
query II rowsort label-1849
SELECT - + COUNT( * ) AS col1, COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
-3
3

skipif mysql # not compatible
query II rowsort label-1849
SELECT - + COUNT ( * ) AS col1, COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
-3
3

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

query I rowsort
SELECT + - 19 * + 64 AS col0 FROM tab2 cor0
----
-1216
-1216
-1216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 15 * + col0 col2 FROM tab2 AS cor0
----
1125
690
960

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1854
SELECT * FROM tab0 WHERE NULL IN ( col2, - col2, + 59, - col0 * + 75 + - + col1 * - + col0 * - col0 + - CAST( NULL AS DECIMAL ), + col1 + + col0 )
----

skipif mysql # not compatible
query III rowsort label-1854
SELECT * FROM tab0 WHERE NULL IN ( col2, - col2, + 59, - col0 * + 75 + - + col1 * - + col0 * - col0 + - CAST ( NULL AS REAL ), + col1 + + col0 )
----

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

query I rowsort
SELECT - + col0 + - 66 * - col2 FROM tab2 AS cor0
----
1472
2576
3753

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1857
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 BETWEEN + 28 AND - + 61 * + CAST( NULL AS SIGNED ) * - ( - + col1 ) * col1 - - col1 * 77
----

skipif mysql # not compatible
query III rowsort label-1857
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 BETWEEN + 28 AND - + 61 * + CAST ( NULL AS INTEGER ) * - ( - + col1 ) * col1 - - col1 * 77
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1858
SELECT + col1 + + col2 * col1 DIV - - 11 + - col0 AS col0 FROM tab1 cor0
----
-54
246
85

skipif mysql # not compatible
query I rowsort label-1858
SELECT + col1 + + col2 * col1 / - - 11 + - col0 AS col0 FROM tab1 cor0
----
-54
246
85

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1860
SELECT ALL + 5 * CAST( NULL AS DECIMAL ) * + - 8 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1860
SELECT ALL + 5 * CAST ( NULL AS REAL ) * + - 8 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 * 32 AS col0 FROM tab0 AS cor0
----
-1504
-3168
-320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 66 * col1 * - col0 - + ( col2 ) col1 FROM tab2 AS cor0
----
-154859
-325288
-331708

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col1 * - ( - - col1 ) + + col1 + ( + + 67 ) * - + col0 <= + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 61 * - + col0 FROM tab0
----
-5307
-5917
-915

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1866
SELECT - CAST( + 31 AS SIGNED ), col0 FROM tab0
----
-31
15
-31
87
-31
97

skipif mysql # not compatible
query II rowsort label-1866
SELECT - CAST ( + 31 AS INTEGER ), col0 FROM tab0
----
-31
15
-31
87
-31
97

query I rowsort
SELECT ALL + - col2 + col2 * col2 * + + ( - col2 ) FROM tab2 WHERE - ( + 39 ) IS NOT NULL
----
-12190
-195170
-64040

query II rowsort
SELECT DISTINCT - + col0 * 53, - col1 + + col1 * + - ( - col2 ) + + col1 - + + 90 * 62 * + col2 + + + ( 68 ) + - col1 * 93 AS col0 FROM tab1 AS cor0
----
-2703
-535570
-4505
-329322
-4823
-380547

query I rowsort
SELECT DISTINCT ( + 65 ) * + + col2 FROM tab0 AS cor0
----
3055
6435
650

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

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

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

skipif mysql # not compatible
query I rowsort label-1871
SELECT COUNT ( * ) * + - 55 * - COUNT ( * ) FROM tab0
----
495

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

query II rowsort
SELECT DISTINCT + col2 AS col2, 70 - - col2 AS col0 FROM tab0 AS cor0
----
10
80
47
117
99
169

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

query I rowsort
SELECT - + col0 + - 2 + - 52 AS col1 FROM tab1 AS cor0
----
-105
-139
-145

query I rowsort
SELECT + col0 + - + col2 - - - 19 * - col1 AS col0 FROM tab2 AS cor0
----
1290
1487
992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1877
SELECT - - col2 * + 38 + - CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
1480
2146
851

skipif mysql # not compatible
query I rowsort label-1877
SELECT - - col2 * + 38 + - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
1480
2146
851

query I rowsort
SELECT DISTINCT - - 81 + + ( + col0 ) * - - 19 FROM tab2 AS cor0
----
1297
1506
955

query II rowsort
SELECT ALL + col2 * + - col0 + - ( - col2 ), col1 FROM tab2 AS cor0 WHERE 56 IS NOT NULL
----
-1035
51
-2520
77
-4292
67

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1881
SELECT DISTINCT + col1 + col0 - 91 + - 99 DIV + col2 AS col0 FROM tab1 AS cor0
----
-2
-27
46

skipif mysql # not compatible
query I rowsort label-1881
SELECT DISTINCT + col1 + col0 - 91 + - 99 / + col2 AS col0 FROM tab1 AS cor0
----
-2
-27
46

query I rowsort
SELECT ALL + col2 * 75 FROM tab2
----
1725
3000
4350

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

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

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

query I rowsort
SELECT + col0 FROM tab0 WHERE + 74 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1886
SELECT DISTINCT col0 + - col0 - + CAST( + col2 AS SIGNED ), - col0 * col1 AS col2 FROM tab1
----
-59
-425
-68
-4277
-96
-714

skipif mysql # not compatible
query II rowsort label-1886
SELECT DISTINCT col0 + - col0 - + CAST ( + col2 AS INTEGER ), - col0 * col1 AS col2 FROM tab1
----
-59
-425
-68
-4277
-96
-714

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 >= - 36
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1889
SELECT ALL col1 + - CAST( NULL AS DECIMAL ) AS col0, + col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-1889
SELECT ALL col1 + - CAST ( NULL AS REAL ) AS col0, + col0 AS col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1891
SELECT ALL col1 + + col2 col0, - CAST( NULL AS SIGNED ) FROM tab2
----
117
NULL
125
NULL
74
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1891
SELECT ALL col1 + + col2 col0, - CAST ( NULL AS INTEGER ) FROM tab2
----
117
NULL
125
NULL
74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1892
SELECT DISTINCT - COUNT( * ) + 10 * 40 FROM tab1
----
397

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT - COUNT ( * ) + 10 * 40 FROM tab1
----
397

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

query I rowsort
SELECT - 52 FROM tab0 WHERE NULL IS NULL
----
-52
-52
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab2 WHERE + col2 >= + col0 OR NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE NULL = - col1 * - col1
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col1, 93 col0 FROM tab0 AS cor0
----
-15
93
-87
93
-97
93

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

query I rowsort
SELECT + + col2 * 55 - col0 FROM tab0 AS cor0
----
2570
463
5348

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 13 < NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1906
SELECT ALL COUNT( * ) AS col2, 86 FROM tab2
----
3
86

skipif mysql # not compatible
query II rowsort label-1906
SELECT ALL COUNT ( * ) AS col2, 86 FROM tab2
----
3
86

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

skipif mysql # not compatible
query I rowsort label-1907
SELECT - col1 / + + col0 FROM tab0
----
-5
0
0

query I rowsort
SELECT - - col2 FROM tab2 WHERE NOT ( - 51 BETWEEN - - 89 + + + 45 + - - 97 / col1 * - col0 + 80 AND - col1 )
----
23
40
58

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN NULL AND + 58 - + ( + 32 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 8 IS NOT NULL
----

query I rowsort
SELECT - 36 * - col0 AS col2 FROM tab1
----
1836
3060
3276

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

query I rowsort
SELECT ALL + - 88 * + + col1 AS col2 FROM tab0 cor0
----
-1848
-7128
-88

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1918
SELECT ALL + COUNT( * ) DIV - + SUM( + 71 ) + - - 64 FROM tab2 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-1918
SELECT ALL + COUNT ( * ) / - + SUM ( + 71 ) + - - 64 FROM tab2 AS cor0
----
64

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 56 + ( + + col2 ) + + + col0 * 80 FROM tab1
----
4232
6915
7404

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT ALL COUNT( * ) - - 14 + COUNT( - ( - + col2 ) ) AS col2 FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-1924
SELECT ALL COUNT ( * ) - - 14 + COUNT ( - ( - + col2 ) ) AS col2 FROM tab0
----
20

query I rowsort
SELECT DISTINCT col2 + + - 2 AS col2 FROM tab0
----
45
8
97

query II rowsort
SELECT DISTINCT col0 + + col2 * + - col2 * col1 * 31 + - - col0, + col0 AS col0 FROM tab0
----
-303637
97
-5546769
15
-64926
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * - + col2 col2 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-1928
SELECT DISTINCT 79 * + COUNT( * ) col2 FROM tab1 WHERE NOT - - col2 >= ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1928
SELECT DISTINCT 79 * + COUNT ( * ) col2 FROM tab1 WHERE NOT - - col2 >= ( NULL )
----
0

query I rowsort
SELECT ALL col0 - + 58 AS col1 FROM tab2 AS cor0
----
-12
17
6

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

query I rowsort
SELECT col0 AS col0 FROM tab0 cor0 WHERE NULL NOT IN ( 75 + + - col2, + col1, - ( - 47 ) * - - col2, col1 / + col2 - col2 )
----

query I rowsort
SELECT 36 - + - col0 FROM tab2
----
100
111
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT ALL COUNT( * ) FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL COUNT ( * ) FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9

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

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

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

skipif mysql # not compatible
query I rowsort label-1935
SELECT ALL COUNT ( - - 9 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT 45 * - - col1 * - - 96 IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT + col2 * + 90 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 = col2 * - ( + col2 ) * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, - col0 * col2 col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT COUNT( * ) * + MIN( - col1 ) * 72 AS col0 FROM tab1
----
-10152

skipif mysql # not compatible
query I rowsort label-1940
SELECT COUNT ( * ) * + MIN ( - col1 ) * 72 AS col0 FROM tab1
----
-10152

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1941
SELECT ALL 64 AS col1, + CAST( NULL AS SIGNED ) FROM tab2
----
64
NULL
64
NULL
64
NULL

skipif mysql # not compatible
query II rowsort label-1941
SELECT ALL 64 AS col1, + CAST ( NULL AS INTEGER ) FROM tab2
----
64
NULL
64
NULL
64
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1942
SELECT DISTINCT CAST( NULL AS SIGNED ), - ( col1 ) AS col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-1942
SELECT DISTINCT CAST ( NULL AS INTEGER ), - ( col1 ) AS col1 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

query I rowsort
SELECT DISTINCT 49 * - ( - + 18 ) FROM tab1
----
882

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT COUNT( DISTINCT 91 ) * + 16 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-1944
SELECT COUNT ( DISTINCT 91 ) * + 16 FROM tab0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT 14 + - COUNT( * ) FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-1945
SELECT 14 + - COUNT ( * ) FROM tab0
----
11

query I rowsort
SELECT + col2 + col1 * + - col0 * col1 AS col2 FROM tab2
----
-119623
-336617
-379416

query I rowsort
SELECT - 53 + col0 AS col1 FROM tab2
----
-7
11
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1948
SELECT + col0 + col0 AS col1, col0 * 90 + + 24 * col2 + + CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
174
8091
194
11107
30
2559

skipif mysql # not compatible
query II rowsort label-1948
SELECT + col0 + col0 AS col1, col0 * 90 + + 24 * col2 + + CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
174
8091
194
11107
30
2559

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NOT NULL <> - 13
----

query I rowsort
SELECT DISTINCT 52 + 8 AS col0 FROM tab2
----
60

query I rowsort
SELECT DISTINCT col0 - - 43 - - col0 FROM tab1
----
145
213
225

query I rowsort
SELECT - col0 - + ( + 16 ) FROM tab2 AS cor0
----
-62
-80
-91

query II rowsort
SELECT - col0 + + col0 AS col0, - 37 FROM tab1 AS cor0
----
0
-37
0
-37
0
-37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1954
SELECT DISTINCT 30 + - + CAST( + - COUNT( * ) AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
39

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT 30 + - + CAST ( + - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
39

query I rowsort
SELECT - 17 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 29 col0 FROM tab1 cor0
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT - + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + 31 / - - col0 * + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1957
SELECT - + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT + 31 / - - col0 * + col0 IS NOT NULL
----
0

query I rowsort
SELECT + ( + + col2 ) AS col1 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT + MAX( DISTINCT + 84 ) AS col1 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-1959
SELECT + MAX ( DISTINCT + 84 ) AS col1 FROM tab1 AS cor0
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col1, col2 AS col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 * 28 - + col0 >= NULL
----

query I rowsort
SELECT - 53 * + col2 * - + ( + 45 ) FROM tab0 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1963
SELECT CAST( col1 AS SIGNED ) * - col2 + + ( col0 ) AS col1 FROM tab0
----
-123
-2
-3792

skipif mysql # not compatible
query I rowsort label-1963
SELECT CAST ( col1 AS INTEGER ) * - col2 + + ( col0 ) AS col1 FROM tab0
----
-123
-2
-3792

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT COUNT( * ) * - - MAX( col0 ) FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-1964
SELECT COUNT ( * ) * - - MAX ( col0 ) FROM tab0
----
291

onlyif mysql # DIV for integer division: 
query I rowsort label-1965
SELECT DISTINCT 57 DIV - col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT 57 / - col0 FROM tab1
----
-1
0

query II rowsort
SELECT col1 * - col2 AS col2, + ( - col1 ) FROM tab1
----
-1344
-14
-295
-5
-3196
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1967
SELECT ALL + ( - + 16 ) DIV + COUNT( + 94 ) FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-1967
SELECT ALL + ( - + 16 ) / + COUNT ( + 94 ) FROM tab0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT DISTINCT 20 + MIN( ALL 13 ) col2 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1968
SELECT DISTINCT 20 + MIN ( ALL 13 ) col2 FROM tab1 AS cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1969
SELECT * FROM tab2 AS cor0 WHERE col1 * 83 * col1 < CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1969
SELECT * FROM tab2 AS cor0 WHERE col1 * 83 * col1 < CAST ( - col0 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT - MIN( DISTINCT - + 0 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-1970
SELECT - MIN ( DISTINCT - + 0 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT - 0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-1972
SELECT ALL + COUNT( DISTINCT + + col1 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1972
SELECT ALL + COUNT ( DISTINCT + + col1 ) col2 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 48 + + - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 * - col2 * - ( + col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT ALL SUM( DISTINCT + 50 ) - + 44 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1975
SELECT ALL SUM ( DISTINCT + 50 ) - + 44 FROM tab0 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-1976
SELECT + - 0 DIV col2 * - + col0 * 39 - + col2 + + 2 FROM tab0 AS cor0
----
-45
-8
-97

skipif mysql # not compatible
query I rowsort label-1976
SELECT + - 0 / col2 * - + col0 * 39 - + col2 + + 2 FROM tab0 AS cor0
----
-45
-8
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 11 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT - + SUM( 48 ) * - 68 * MAX( DISTINCT - 51 ) + 83 * - + MAX( - 20 ) FROM tab0 AS cor0
----
-497732

skipif mysql # not compatible
query I rowsort label-1978
SELECT - + SUM ( 48 ) * - 68 * MAX ( DISTINCT - 51 ) + 83 * - + MAX ( - 20 ) FROM tab0 AS cor0
----
-497732

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1979
SELECT - 98 / 23 + col0 + - + 2 * - col2 * - - 6 + - - CAST( NULL AS DECIMAL ) + + - 88 * col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1979
SELECT - 98 / 23 + col0 + - + 2 * - col2 * - - 6 + - - CAST ( NULL AS REAL ) + + - 88 * col2 AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1980
SELECT + col0 + - + CAST( + - col0 AS SIGNED ) col1 FROM tab0 AS cor0
----
174
194
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1980
SELECT + col0 + - + CAST ( + - col0 AS INTEGER ) col1 FROM tab0 AS cor0
----
174
194
30

query I rowsort
SELECT col1 + + - 1 FROM tab1 AS cor0
----
13
4
46

query I rowsort
SELECT col2 + - - col0 * + + ( + + col1 ) + - col2 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ALL 30 + - - col1 FROM tab1
----
35
44
77

query III rowsort
SELECT * FROM tab1 WHERE + + 18 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1985
SELECT DISTINCT ( 49 ) + + col1 DIV 14 AS col1 FROM tab2
----
52
53
54

skipif mysql # not compatible
query I rowsort label-1985
SELECT DISTINCT ( 49 ) + + col1 / 14 AS col1 FROM tab2
----
52
53
54

query II rowsort
SELECT col0 AS col1, col1 * + col1 + - 52 * + 14 AS col0 FROM tab2
----
46
1873
64
5201
75
3761

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1987
SELECT + - CAST( - col1 AS SIGNED ) FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-1987
SELECT + - CAST ( - col1 AS INTEGER ) FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1989
SELECT ALL + 21 FROM tab0 cor0 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
21
21
21

skipif mysql # not compatible
query I rowsort label-1989
SELECT ALL + 21 FROM tab0 cor0 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
21
21
21

onlyif mysql # DIV for integer division: 
query I rowsort label-1990
SELECT - 2 * - col2 + + + col0 DIV 16 AS col2 FROM tab0 AS cor0
----
204
25
94

skipif mysql # not compatible
query I rowsort label-1990
SELECT - 2 * - col2 + + + col0 / 16 AS col2 FROM tab0 AS cor0
----
204
25
94

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( - 67 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 6 * col0, col2 FROM tab2 cor0
----
-276
23
-384
40
-450
58

query I rowsort
SELECT DISTINCT + - 64 * - 8 - + col2 * - col2 * - + col1 FROM tab0 AS cor0
----
-1588
-178417
-9289

onlyif mysql # DIV for integer division: 
query II rowsort label-1994
SELECT DISTINCT 90 * + - col2 * col1 DIV - ( - col1 ), - 53 * - 73 AS col2 FROM tab2
----
-2070
3869
-3600
3869
-5220
3869

skipif mysql # not compatible
query II rowsort label-1994
SELECT DISTINCT 90 * + - col2 * col1 / - ( - col1 ), - 53 * - 73 AS col2 FROM tab2
----
-2070
3869
-3600
3869
-5220
3869

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1995
SELECT - ( + + ( - COUNT( * ) ) ) * CAST( + 61 AS SIGNED ) FROM tab2
----
183

skipif mysql # not compatible
query I rowsort label-1995
SELECT - ( + + ( - COUNT ( * ) ) ) * CAST ( + 61 AS INTEGER ) FROM tab2
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1996
SELECT DISTINCT * FROM tab2 WHERE CAST( NULL AS SIGNED ) / + col1 + - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1996
SELECT DISTINCT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) / + col1 + - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT ALL + MAX( - 3 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL + MAX ( - 3 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - ( + - col2 ) AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1999
SELECT CAST( + - col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1999
SELECT CAST ( + - col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT col1 * + + col0 - - col2 FROM tab0 AS cor0
----
1262
1837
196

query II rowsort
SELECT ALL - + col2 + + 45 AS col0, ( + - 57 ) AS col0 FROM tab1 AS cor0
----
-14
-57
-23
-57
-51
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT 86 * - MIN( ALL 58 ) FROM tab0 WHERE NOT col0 IS NULL
----
-4988

skipif mysql # not compatible
query I rowsort label-2002
SELECT 86 * - MIN ( ALL 58 ) FROM tab0 WHERE NOT col0 IS NULL
----
-4988

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2003
SELECT DISTINCT - COUNT( * ) DIV + + 10 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2003
SELECT DISTINCT - COUNT ( * ) / + + 10 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2004
SELECT 53 AS col1 FROM tab2 WHERE NOT ( NULL >= CAST( NULL AS SIGNED ) / + col0 + + + col0 )
----

skipif mysql # not compatible
query I rowsort label-2004
SELECT 53 AS col1 FROM tab2 WHERE NOT ( NULL >= CAST ( NULL AS INTEGER ) / + col0 + + + col0 )
----

query I rowsort
SELECT 68 * + - col1 AS col0 FROM tab2
----
-3468
-4556
-5236

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 86, - col2 col2 FROM tab1
----
86
-59
86
-68
86
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT COUNT( * ) * + 94 AS col1 FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-2007
SELECT COUNT ( * ) * + 94 AS col1 FROM tab1
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-2008
SELECT DISTINCT - + 11 * + COUNT( DISTINCT + col2 ) + + 78 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-2008
SELECT DISTINCT - + 11 * + COUNT ( DISTINCT + col2 ) + + 78 FROM tab1 AS cor0
----
45

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT - col0 * - 77 AS col0 FROM tab0
----
1155
6699
7469

query I rowsort
SELECT ALL 1 * + col2 - + 82 AS col1 FROM tab1
----
-14
-23
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2012
SELECT ALL col2 FROM tab1 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL col2 FROM tab1 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2013
SELECT CAST( + 81 AS SIGNED ) * + col1 AS col1 FROM tab2
----
4131
5427
6237

skipif mysql # not compatible
query I rowsort label-2013
SELECT CAST ( + 81 AS INTEGER ) * + col1 AS col1 FROM tab2
----
4131
5427
6237

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 * - col1 NOT BETWEEN col2 AND + col1 * - 85
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 59 * col2 AS col2 FROM tab0
----
2773
5841
590

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2016
SELECT ALL - COUNT( * ) DIV COUNT( * ) + 69 AS col0 FROM tab1
----
68

skipif mysql # not compatible
query I rowsort label-2016
SELECT ALL - COUNT ( * ) / COUNT ( * ) + 69 AS col0 FROM tab1
----
68

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT - col1 < NULL
----

query I rowsort
SELECT col0 * 54 + + col2 AS col1 FROM tab1
----
2850
4649
4982

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT ALL 49 - COUNT( * ) FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-2019
SELECT ALL 49 - COUNT ( * ) FROM tab0
----
46

query I rowsort
SELECT ALL + 41 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT ALL + 39 + + 68 * - MAX( DISTINCT col0 ) FROM tab1
----
-6149

skipif mysql # not compatible
query I rowsort label-2021
SELECT ALL + 39 + + 68 * - MAX ( DISTINCT col0 ) FROM tab1
----
-6149

query III rowsort
SELECT * FROM tab2 WHERE 4 + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2023
SELECT DISTINCT - AVG ( ALL + CAST( NULL AS SIGNED ) ) + + ( 92 + COUNT( * ) * + 21 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2023
SELECT DISTINCT - AVG ( ALL + CAST ( NULL AS INTEGER ) ) + + ( 92 + COUNT ( * ) * + 21 ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2024
SELECT DISTINCT - COUNT( * ) * COUNT( DISTINCT 82 ) FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) <> ( - col1 * - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT - COUNT ( * ) * COUNT ( DISTINCT 82 ) FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) <> ( - col1 * - col2 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2025
SELECT ALL CAST( NULL AS SIGNED ) + + MIN( DISTINCT 66 ) * - 69 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2025
SELECT ALL CAST ( NULL AS INTEGER ) + + MIN ( DISTINCT 66 ) * - 69 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 75 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2028
SELECT DISTINCT COUNT( ALL col2 ) DIV - COUNT( * ) col0 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2028
SELECT DISTINCT COUNT ( ALL col2 ) / - COUNT ( * ) col0 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2029
SELECT + col1 DIV 40 + + col0 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-2029
SELECT + col1 / 40 + + col0 FROM tab2
----
47
65
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT - COUNT( - 94 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2030
SELECT - COUNT ( - 94 ) FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 77 col0 FROM tab1
----
1078
3619
385

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2032
SELECT * FROM tab0 WHERE NOT col0 + col0 >= + col0 * + 88 + - 23 / - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2032
SELECT * FROM tab0 WHERE NOT col0 + col0 >= + col0 * + 88 + - 23 / - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2033
SELECT DISTINCT ( CAST( NULL AS DECIMAL ) ) / col2 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2033
SELECT DISTINCT ( CAST ( NULL AS REAL ) ) / col2 FROM tab1 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2034
SELECT - 26 DIV COUNT( * ) AS col0 FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-2034
SELECT - 26 / COUNT ( * ) AS col0 FROM tab1
----
-8

query I rowsort
SELECT ALL ( col1 ) * - col2 AS col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2036
SELECT ALL + 73 DIV 15 + + 35 AS col1 FROM tab2
----
39
39
39

skipif mysql # not compatible
query I rowsort label-2036
SELECT ALL + 73 / 15 + + 35 AS col1 FROM tab2
----
39
39
39

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + col0 > 89
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 35 + 78 FROM tab2
----
113
113
113

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2039
SELECT * FROM tab0 AS cor0 WHERE NOT col0 < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2039
SELECT * FROM tab0 AS cor0 WHERE NOT col0 < - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT ALL + SUM( + 75 ) FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL + SUM ( + 75 ) FROM tab2 AS cor0
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2041
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN ( NULL ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2041
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN ( NULL ) AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT DISTINCT - COUNT( * ) * 32 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2042
SELECT DISTINCT - COUNT ( * ) * 32 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col1 * + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT - 0 * COUNT( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2045
SELECT - 0 * COUNT ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 7 col2 FROM tab1 AS cor0 WHERE NOT + ( col2 ) <= ( - col1 )
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-2047
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT NULL NOT IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2047
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT NULL NOT IN ( col0 )
----
0

query I rowsort
SELECT + col0 * + col0 FROM tab2 WHERE NOT + col2 = col1
----
2116
4096
5625

query I rowsort
SELECT col2 + 94 * + col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > col1
----

query I rowsort
SELECT DISTINCT - + col2 * - col1 AS col2 FROM tab2 cor0
----
1173
3080
3886

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + col1 / + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT + - MIN( ALL col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2052
SELECT + - MIN ( ALL col1 ) FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 15 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2054
SELECT ALL - 85 + CAST( NULL AS SIGNED ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL - 85 + CAST ( NULL AS INTEGER ) * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 70 + 70 col2 FROM tab2 AS cor0
----
140
140
140

onlyif mysql # aggregate syntax: 
query I rowsort label-2056
SELECT MIN( DISTINCT 4 ) AS col0 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-2056
SELECT MIN ( DISTINCT 4 ) AS col0 FROM tab1 AS cor0
----
4

query I rowsort
SELECT ALL + col2 FROM tab2 cor0 WHERE NOT 25 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 * 90 col1 FROM tab0 AS cor0
----
-1800

onlyif mysql # aggregate syntax: 
query I rowsort label-2059
SELECT DISTINCT MAX( DISTINCT 60 ) FROM tab1 AS cor0 WHERE NOT NULL >= ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2059
SELECT DISTINCT MAX ( DISTINCT 60 ) FROM tab1 AS cor0 WHERE NOT NULL >= ( + col2 )
----
NULL

query I rowsort
SELECT DISTINCT 52 + col1 - + 92 AS col1 FROM tab2
----
11
27
37

query I rowsort
SELECT ALL col0 * + + 33 FROM tab2
----
1518
2112
2475

query I rowsort
SELECT - col1 + ( + col1 ) + - 36 * + col1 FROM tab1
----
-1692
-180
-504

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT ALL + ( + - 54 ) * COUNT( * ) AS col2 FROM tab2
----
-162

skipif mysql # not compatible
query I rowsort label-2063
SELECT ALL + ( + - 54 ) * COUNT ( * ) AS col2 FROM tab2
----
-162

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 13 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2065
SELECT ALL * FROM tab1 WHERE ( NULL ) > CAST( 52 AS SIGNED ) OR NOT NULL IN ( col2 + - col2 * 3 )
----

skipif mysql # not compatible
query III rowsort label-2065
SELECT ALL * FROM tab1 WHERE ( NULL ) > CAST ( 52 AS INTEGER ) OR NOT NULL IN ( col2 + - col2 * 3 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2066
SELECT CAST( COUNT( * ) AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 35 AND + col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2066
SELECT CAST ( COUNT ( * ) AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN 35 AND + col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + + 88 col2 FROM tab0 AS cor0
----
109
169
89

query I rowsort
SELECT ALL col1 + 3 FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 + - col0 AND NULL
----

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NULL <> + 31
----

query I rowsort
SELECT ALL 68 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= ( - col1 )
----

query I rowsort
SELECT DISTINCT col1 + + 89 FROM tab1
----
103
136
94

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 * col0 = 39
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2074
SELECT * FROM tab1 WHERE + col0 <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2074
SELECT * FROM tab1 WHERE + col0 <= CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2075
SELECT ALL 37 + + MAX( + 33 ) + COUNT( * ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-2075
SELECT ALL 37 + + MAX ( + 33 ) + COUNT ( * ) FROM tab0
----
73

query I rowsort
SELECT col2 + + 72 AS col2 FROM tab2 AS cor0
----
112
130
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2077
SELECT + CAST( NULL AS SIGNED ) + + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2077
SELECT + CAST ( NULL AS INTEGER ) + + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 - - col1 - col1 + - col1 * - 94 AS col2 FROM tab1 AS cor0
----
1265
385
4327

query I rowsort
SELECT + - col2 + + + 84 FROM tab2 AS cor0
----
26
44
61

query I rowsort
SELECT ALL - col2 * + 84 AS col1 FROM tab2 AS cor0 WHERE NOT - 67 * + col1 - - col1 BETWEEN ( + col1 * col0 - col1 ) AND 72
----
-1932
-3360
-4872

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ALL + 57 + + COUNT( * ) - + 59 + COUNT( DISTINCT + col2 ) FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL + 57 + + COUNT ( * ) - + 59 + COUNT ( DISTINCT + col2 ) FROM tab1 AS cor0
----
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 3 + - col1 col0 FROM tab1
----
-11
-2
-44

query II rowsort
SELECT DISTINCT 43 + - - 7, - 15 * + + col0 - col1 AS col1 FROM tab1
----
50
-1280
50
-1412
50
-779

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2084
SELECT ALL ( - CAST( - - col0 AS SIGNED ) ) AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL ( - CAST ( - - col0 AS INTEGER ) ) AS col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT + MIN( ALL - + 51 ) FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-2085
SELECT + MIN ( ALL - + 51 ) FROM tab0
----
-51

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 <> ( - 89 )
----

query I rowsort
SELECT ALL + col0 + - col0 * + 64 AS col2 FROM tab1 WHERE NULL NOT IN ( col2 )
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 * + - col1 + - 39 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2090
SELECT ALL + col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-2090
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2091
SELECT ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2091
SELECT ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 3 IS NOT NULL
----

query I rowsort
SELECT 90 * 29 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d52de07bab766030599066fba6fac2d0

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT 7 * - ( SUM( - 12 ) ) col1 FROM tab2
----
252

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2094
SELECT 7 * - ( SUM ( - 12 ) ) col1 FROM tab2
----
252

query I rowsort
SELECT + 86 * - col2 - + col1 * 95 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2096
SELECT - 3 + col2 DIV 20 * + col2 FROM tab0 AS cor0
----
-3
393
91

skipif mysql # not compatible
query I rowsort label-2096
SELECT - 3 + col2 / 20 * + col2 FROM tab0 AS cor0
----
-3
393
91

query I rowsort
SELECT ALL - - 97 * + 99 FROM tab0 AS cor0
----
9603
9603
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2098
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( + col0 + - col0 - + - 74 ) NOT BETWEEN ( col2 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-2098
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( + col0 + - col0 - + - 74 ) NOT BETWEEN ( col2 ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2099
SELECT DISTINCT + COUNT( * ) * COUNT( * ) * - 84 DIV + COUNT( * ) FROM tab1 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-2099
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) * - 84 / + COUNT ( * ) FROM tab1 AS cor0
----
-252

query I rowsort
SELECT col2 + 17 AS col2 FROM tab2 AS cor0
----
40
57
75

query I rowsort
SELECT ALL - ( - 47 ) * col0 * - 6 AS col2 FROM tab0 AS cor0
----
-24534
-27354
-4230

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT DISTINCT - - SUM( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT - - SUM ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
121

query I rowsort
SELECT - col0 FROM tab0 cor0 WHERE NOT + col1 NOT BETWEEN ( 68 / col1 / + col2 ) AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 7 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 * 9 = + 45 - col0 * + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( + - col0 + - col2 * col2 ) AND + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2107
SELECT + COUNT( * ) - COUNT( * ) FROM tab2, tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2107
SELECT + COUNT ( * ) - COUNT ( * ) FROM tab2, tab1 cor0
----
0

query I rowsort
SELECT + col0 FROM tab0 WHERE ( + + col1 + col2 * 74 ) IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT DISTINCT + MAX( DISTINCT 15 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-2109
SELECT DISTINCT + MAX ( DISTINCT 15 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
15

query I rowsort
SELECT + 49 * col2 * + + col1 FROM tab1
----
14455
156604
65856

query I rowsort
SELECT - 33 * + + col2 FROM tab1
----
-1947
-2244
-3168

query II rowsort
SELECT col0 AS col2, - col0 AS col2 FROM tab0
----
15
-15
87
-87
97
-97

query II rowsort
SELECT ALL - col2 * - 93, col0 FROM tab2 AS cor0
----
2139
46
3720
64
5394
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 25 ) col0 FROM tab1 AS cor0
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT 97 + + COUNT( + col0 ) - - - 91 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-2115
SELECT 97 + + COUNT ( + col0 ) - - - 91 FROM tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT ALL - ( - + COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2116
SELECT ALL - ( - + COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2117
SELECT DISTINCT - 17 * - 99 DIV - + COUNT( * ) + - 34 FROM tab2 AS cor0
----
-595

skipif mysql # not compatible
query I rowsort label-2117
SELECT DISTINCT - 17 * - 99 / - + COUNT ( * ) + - 34 FROM tab2 AS cor0
----
-595

query I rowsort
SELECT + col0 * 31 + - col0 * col1 AS col1 FROM tab0
----
-750
2910
870

onlyif mysql # DIV for integer division: 
query II rowsort label-2119
SELECT ALL 34 - + 5, + 17 DIV col2 AS col0 FROM tab2
----
29
0
29
0
29
0

skipif mysql # not compatible
query II rowsort label-2119
SELECT ALL 34 - + 5, + 17 / col2 AS col0 FROM tab2
----
29
0
29
0
29
0

query I rowsort
SELECT ALL 58 AS col1 FROM tab0 WHERE ( - ( + col2 ) + + + col2 * - - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT + 27 - + col1 FROM tab1
----
-20
13
22

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT + - col1 / 58 - col2 * - col2 FROM tab1 AS cor0 WHERE + col1 + 38 BETWEEN NULL AND - - col1
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NOT NULL <= col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + - 49 ) BETWEEN NULL AND + 14 / col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2126
SELECT ALL - + COUNT( * ) * - 66 + - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2126
SELECT ALL - + COUNT ( * ) * - 66 + - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 49 <> - 37
----

query I rowsort
SELECT ( - 51 ) AS col0 FROM tab1
----
-51
-51
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - col0 ) col1 FROM tab2
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2130
SELECT col0 DIV - + col2 AS col2 FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-2130
SELECT col0 / - + col2 AS col2 FROM tab0
----
-8
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 * col2 col2 FROM tab0
----
10575
75690
931491

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 NOT BETWEEN 97 + + + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2133
SELECT + 86 DIV - 85 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2133
SELECT + 86 / - 85 FROM tab0
----
-1
-1
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2134
SELECT ALL CAST( NULL AS DECIMAL ) / ( + - 10 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2134
SELECT ALL CAST ( NULL AS REAL ) / ( + - 10 ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT DISTINCT - MAX( ALL - 8 ) AS col0 FROM tab2 cor0
----
8

skipif mysql # not compatible
query I rowsort label-2135
SELECT DISTINCT - MAX ( ALL - 8 ) AS col0 FROM tab2 cor0
----
8

query I rowsort
SELECT col2 * col2 - + 28 * col1 FROM tab2 AS cor0
----
-556
-899
1488

query II rowsort
SELECT - col0 AS col2, + col1 * - col2 AS col2 FROM tab0 AS cor0
----
-15
-3807
-87
-210
-97
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 35 ) col0 FROM tab2
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT ALL 70 * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2139
SELECT ALL 70 * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 64 AND - col0 * + - col1
----

query I rowsort
SELECT DISTINCT - col1 * + 3 AS col2 FROM tab0 AS cor0 WHERE - col0 / - 71 * col0 * - + ( + - col1 ) > ( NULL )
----

query I rowsort
SELECT - - 20 FROM tab2 cor0 WHERE + col2 IS NULL
----

query II rowsort
SELECT ALL - col1 + + col0 AS col1, + col0 FROM tab0 AS cor0
----
-66
15
66
87
96
97

query I rowsort
SELECT ALL + col1 + - - 51 + 50 AS col2 FROM tab0 cor0
----
102
122
182

onlyif mysql # aggregate syntax: 
query I rowsort label-2145
SELECT + COUNT( * ) * ( - 35 ) AS col1 FROM tab2 cor0
----
-105

skipif mysql # not compatible
query I rowsort label-2145
SELECT + COUNT ( * ) * ( - 35 ) AS col1 FROM tab2 cor0
----
-105

query I rowsort
SELECT + ( - col0 ) + col2 * + col1 FROM tab2
----
1127
3016
3811

query I rowsort
SELECT - ( + col2 ) + + + col0 AS col1 FROM tab0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2148
SELECT ALL - CAST( NULL AS SIGNED ) + col2 + col2 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2148
SELECT ALL - CAST ( NULL AS INTEGER ) + col2 + col2 col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT DISTINCT ( + + COUNT( DISTINCT - + col2 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2149
SELECT DISTINCT ( + + COUNT ( DISTINCT - + col2 ) ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( - col0, + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2151
SELECT DISTINCT + + 25 col0, - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
25
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2151
SELECT DISTINCT + + 25 col0, - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
25
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT DISTINCT - - COUNT( DISTINCT - + 94 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT - - COUNT ( DISTINCT - + 94 ) FROM tab0 AS cor0
----
1

query II rowsort
SELECT - col1 + - col2 * + - col0 * + 76 AS col1, col1 AS col2 FROM tab2 WHERE NULL IS NULL
----
194483
77
330533
67
80357
51

query II rowsort
SELECT + + col1, + 60 FROM tab0 AS cor0
----
1
60
21
60
81
60

query I rowsort
SELECT + + ( 52 ) AS col0 FROM tab2 AS cor0
----
52
52
52

query II rowsort
SELECT DISTINCT + + col0, col1 * - 52 * col0 FROM tab1 AS cor0
----
51
-37128
85
-22100
91
-222404

onlyif mysql # aggregate syntax: 
query II rowsort label-2157
SELECT ALL - 72, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-72
3

skipif mysql # not compatible
query II rowsort label-2157
SELECT ALL - 72, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-72
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT + 18 + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
15

skipif mysql # not compatible
query I rowsort label-2158
SELECT + 18 + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + col0 IS NULL
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT ALL - - ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL - - ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2160
SELECT ALL * FROM tab2 cor0 WHERE ( + CAST( NULL AS DECIMAL ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2160
SELECT ALL * FROM tab2 cor0 WHERE ( + CAST ( NULL AS REAL ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2161
SELECT DISTINCT - 3 DIV + 36 + col1 col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2161
SELECT DISTINCT - 3 / + 36 + col1 col2 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 < + col0
----
46
51
23
64
77
40

query I rowsort
SELECT ALL 2 * - 82 FROM tab0
----
-164
-164
-164

query I rowsort
SELECT ALL 29 * + col1 AS col1 FROM tab2
----
1479
1943
2233

onlyif mysql # DIV for integer division: 
query I rowsort label-2165
SELECT ALL col0 DIV 71 AS col1 FROM tab0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2165
SELECT ALL col0 / 71 AS col1 FROM tab0
----
0
1
1

query II rowsort
SELECT DISTINCT + 62 AS col1, 93 FROM tab0 AS cor0 WHERE col0 = + - col2 + + 23 + - 93 * - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 8 = - 8
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( + col2 * - col2 / - col1 + 84 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2169
SELECT ALL 92, + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
92
NULL
92
NULL
92
NULL

skipif mysql # not compatible
query II rowsort label-2169
SELECT ALL 92, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
92
NULL
92
NULL
92
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2170
SELECT DISTINCT - SUM( DISTINCT 33 ) FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT - SUM ( DISTINCT 33 ) FROM tab0 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-2171
SELECT - COUNT( * ) + 89 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-2171
SELECT - COUNT ( * ) + 89 FROM tab2 AS cor0
----
86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2172
SELECT DISTINCT + COUNT( - col0 ) col0 FROM tab2 cor0 WHERE NOT NULL NOT IN ( col2, CAST( + 80 AS DECIMAL ), + 52 * - col0 + + col2 * - - 46 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2172
SELECT DISTINCT + COUNT ( - col0 ) col0 FROM tab2 cor0 WHERE NOT NULL NOT IN ( col2, CAST ( + 80 AS REAL ), + 52 * - col0 + + col2 * - - 46 )
----
0

query I rowsort
SELECT col1 + - + col1 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <> 93 * - 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2175
SELECT DISTINCT 22 + COUNT( - - col0 ) AS col1 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-2175
SELECT DISTINCT 22 + COUNT ( - - col0 ) AS col1 FROM tab2
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2176
SELECT DISTINCT - - ( + col0 ) DIV - + col2 - col2 FROM tab1 WHERE - col1 IS NOT NULL
----
-60
-69
-96

skipif mysql # not compatible
query I rowsort label-2176
SELECT DISTINCT - - ( + col0 ) / - + col2 - col2 FROM tab1 WHERE - col1 IS NOT NULL
----
-60
-69
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2177
SELECT DISTINCT - 97 * + ( - 12 ) + CAST( NULL AS SIGNED ) - + col2 - + + col2 * 89 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT - 97 * + ( - 12 ) + CAST ( NULL AS INTEGER ) - + col2 - + + col2 * 89 AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2178
SELECT ALL col2 * + col0 * + CAST( NULL AS SIGNED ) + - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL col2 * + col0 * + CAST ( NULL AS INTEGER ) + - col0 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT SUM( - col2 ) * - + 27 FROM tab1
----
6021

skipif mysql # not compatible
query I rowsort label-2179
SELECT SUM ( - col2 ) * - + 27 FROM tab1
----
6021

query I rowsort
SELECT ALL - - 43 FROM tab0 WHERE - 4 * + + 70 IS NOT NULL
----
43
43
43

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 + + col2 + + + col0 * + - col0 IS NOT NULL
----

query I rowsort
SELECT ALL 23 - - col1 FROM tab2
----
100
74
90

onlyif mysql # DIV for integer division: 
query I rowsort label-2183
SELECT - col0 DIV col2 + col2 - + 70 col1 FROM tab2 cor0
----
-13
-31
-49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2183
SELECT - col0 / col2 + col2 - + 70 col1 FROM tab2 cor0
----
-13
-31
-49

query I rowsort
SELECT DISTINCT 73 * + 34 + + col1 AS col1 FROM tab0 AS cor0
----
2483
2503
2563

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE ( NOT ( NULL <> ( NULL ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + col0 - - 39 col2 FROM tab1 AS cor0
----
2640
7264
8320

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN col0 - + 9 AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 85 * - - 23 * - - 26 * + 22 AS col1 FROM tab0 cor0
----
-1118260
-1118260
-1118260

query II rowsort
SELECT DISTINCT + 59 AS col2, - col0 FROM tab2
----
59
-46
59
-64
59
-75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 22 * + ( - + col1 ) + - col2 = - col0 + 78 + col1 * col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2191
SELECT 25 * - - MIN( DISTINCT - - col2 ) col2 FROM tab0
----
250

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2191
SELECT 25 * - - MIN ( DISTINCT - - col2 ) col2 FROM tab0
----
250

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT ALL + MAX( ALL - 25 ) col1 FROM tab0 WHERE NOT ( + col1 ) IS NULL
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2192
SELECT ALL + MAX ( ALL - 25 ) col1 FROM tab0 WHERE NOT ( + col1 ) IS NULL
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2193
SELECT CAST( NULL AS SIGNED ) / - + 12 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-2193
SELECT CAST ( NULL AS INTEGER ) / - + 12 col2, - col2 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT ALL + ( - SUM( col0 ) ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2194
SELECT ALL + ( - SUM ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT ALL + MIN( - 45 ) AS col0 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2195
SELECT ALL + MIN ( - 45 ) AS col0 FROM tab0 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT ALL MAX( + - 61 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-61

skipif mysql # not compatible
query I rowsort label-2196
SELECT ALL MAX ( + - 61 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-61

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < col2 * + col2 + + 82 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2198
SELECT - - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NULL <> + 45 + - 98 - + 3
----

skipif mysql # not compatible
query I rowsort label-2198
SELECT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NULL <> + 45 + - 98 - + 3
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - - 81 ) col1, - col1 AS col0 FROM tab1 AS cor0
----
81
-14
81
-47
81
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2200
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2200
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT ALL - - 46 AS col2 FROM tab0 AS cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT 86 + + COUNT( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-2202
SELECT 86 + + COUNT ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
89

query I rowsort
SELECT - - 61 + - + ( + 4 ) AS col0 FROM tab2 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query II rowsort label-2204
SELECT DISTINCT - + COUNT( 73 ) AS col2, - 60 FROM tab2 AS cor0
----
-3
-60

skipif mysql # not compatible
query II rowsort label-2204
SELECT DISTINCT - + COUNT ( 73 ) AS col2, - 60 FROM tab2 AS cor0
----
-3
-60

query I rowsort
SELECT ALL - 79 AS col2 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL AND NOT ( NULL ) = NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 53 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2207
SELECT col2 * + col2 / + + 13 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2207
SELECT col2 * + col2 / + + 13 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 FROM tab0 WHERE ( + 99 + - col2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 86 IS NOT NULL
----

query I rowsort
SELECT + 91 FROM tab0, tab2 AS cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

onlyif mysql # aggregate syntax: 
query II rowsort label-2211
SELECT ALL - + COUNT( * ), - COUNT( * ) FROM tab1 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-2211
SELECT ALL - + COUNT ( * ), - COUNT ( * ) FROM tab1 AS cor0
----
-3
-3

query I rowsort
SELECT DISTINCT + + ( - ( - - col0 ) ) * - col0 - - col1 - - 56 * + 21 AS col0 FROM tab1 AS cor0
----
3791
8406
9504

query I rowsort
SELECT + col0 - + col0 + - - col0 * + 59 + col1 + - 93 * - col0 FROM tab1 AS cor0
----
12925
13879
7766

query I rowsort
SELECT DISTINCT col2 * col0 - + - col1 AS col0 FROM tab1 WHERE NOT - - 14 * + + col2 IS NULL
----
4910
5020
6235

query I rowsort
SELECT ( + + col0 ) AS col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT - MIN( + 23 ) FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2216
SELECT - MIN ( + 23 ) FROM tab0 AS cor0
----
-23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + ( + 92 ) ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT - SUM( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2218
SELECT - SUM ( ALL - col1 ) AS col2 FROM tab1 AS cor0
----
66

query I rowsort
SELECT + 81 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> 6 * + col2 * - col2
----

query I rowsort
SELECT ALL + 18 / - - col1 * col0 + - ( + col0 ) + - ( + col1 ) FROM tab2 WHERE NOT + col0 <= NULL
----

query I rowsort
SELECT ( - col1 ) + + col1 AS col2 FROM tab0 WHERE NOT ( + + col0 ) NOT IN ( - col2 )
----

query I rowsort
SELECT - col1 * + 28 AS col2 FROM tab1
----
-1316
-140
-392

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2223
SELECT + SUM( ALL - 67 ) DIV COUNT( * ) FROM tab1
----
-67

skipif mysql # not compatible
query I rowsort label-2223
SELECT + SUM ( ALL - 67 ) / COUNT ( * ) FROM tab1
----
-67

query I rowsort
SELECT DISTINCT 23 * - + 15 AS col2 FROM tab2
----
-345

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col1 col0 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT - + 42 * - ( - 98 ) AS col0 FROM tab1 AS cor0
----
-4116

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2227
SELECT col0, CAST( 27 AS SIGNED ) FROM tab1 cor0
----
51
27
85
27
91
27

skipif mysql # not compatible
query II rowsort label-2227
SELECT col0, CAST ( 27 AS INTEGER ) FROM tab1 cor0
----
51
27
85
27
91
27

query I rowsort
SELECT ALL + col1 * + col0 * + + col1 + - 62 * col2 + + col0 AS col1 FROM tab0 AS cor0
----
-5944
37834
95516

query I rowsort
SELECT col0 + - - col2 AS col2 FROM tab2
----
104
133
69

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 69 IS NULL
----

query I rowsort
SELECT ALL + col2 + + - col0 * - col2 * + + col2 AS col2 FROM tab0 AS cor0
----
33182
8710
950796

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * ( col0 ) * - 38 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT ( MAX( ALL - 72 ) ) AS col2 FROM tab1 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2233
SELECT ( MAX ( ALL - 72 ) ) AS col2 FROM tab1 AS cor0
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 63, col1 col1 FROM tab2 AS cor0
----
63
51
63
67
63
77

query I rowsort
SELECT ALL col0 + 52 FROM tab0 AS cor0
----
139
149
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 * - 44 + + 89 col1 FROM tab2 AS cor0
----
-395

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT DISTINCT + 0 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2237
SELECT DISTINCT + 0 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT + ( - - COUNT( * ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2238
SELECT + ( - - COUNT ( * ) ) AS col2 FROM tab0
----
3

query I rowsort
SELECT col0 * - col2 - - + 45 AS col2 FROM tab1
----
-4851
-4970
-6143

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2240
SELECT DISTINCT + 56 + - - MAX( + col2 ) DIV - 78 AS col2 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-2240
SELECT DISTINCT + 56 + - - MAX ( + col2 ) / - 78 AS col2 FROM tab2
----
56

query I rowsort
SELECT ( + col0 ) - - + col1 FROM tab0
----
108
96
98

query II rowsort
SELECT col1 - + col2, 24 + - - col0 AS col0 FROM tab0
----
-98
121
11
111
34
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2243
SELECT + col2 - - col2 / - - CAST( NULL AS SIGNED ) * + col2 + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2243
SELECT + col2 - - col2 / - - CAST ( NULL AS INTEGER ) * + col2 + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 33 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT - COUNT( DISTINCT 17 ) AS col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2245
SELECT - COUNT ( DISTINCT 17 ) AS col0 FROM tab2 cor0
----
-1

query I rowsort
SELECT ( - - col2 ) * 32 FROM tab2
----
1280
1856
736

query I rowsort
SELECT 70 * col1 FROM tab2
----
3570
4690
5390

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2248
SELECT ALL - 69 * + MAX( + + col0 ) + - 51 DIV + 10 + + MAX( + col2 ) AS col2 FROM tab1 cor0
----
-6188

skipif mysql # not compatible
query I rowsort label-2248
SELECT ALL - 69 * + MAX ( + + col0 ) + - 51 / + 10 + + MAX ( + col2 ) AS col2 FROM tab1 cor0
----
-6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2249
SELECT ALL - - CAST( NULL AS SIGNED ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL - - CAST ( NULL AS INTEGER ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2250
SELECT + - MIN( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2250
SELECT + - MIN ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
-46

query II rowsort
SELECT DISTINCT + + col0 AS col1, col2 * - col1 * + ( - + 24 ) FROM tab2 AS cor0
----
46
28152
64
73920
75
93264

query I rowsort
SELECT - ( - + 18 ) FROM tab0 AS cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-2253
SELECT + MIN( + - 90 ) * - - 73 FROM tab1 AS cor0
----
-6570

skipif mysql # not compatible
query I rowsort label-2253
SELECT + MIN ( + - 90 ) * - - 73 FROM tab1 AS cor0
----
-6570

query II rowsort
SELECT DISTINCT - col1, - 0 AS col1 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT COUNT( * ) * 89 AS col0 FROM tab2 cor0
----
267

skipif mysql # not compatible
query I rowsort label-2255
SELECT COUNT ( * ) * 89 AS col0 FROM tab2 cor0
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-2256
SELECT ALL MIN( 93 ) AS col0 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-2256
SELECT ALL MIN ( 93 ) AS col0 FROM tab2
----
93

query I rowsort
SELECT ALL - + col1 * - + 10 + + col1 + + col0 * + + col2 FROM tab2 WHERE NOT col1 + + col2 IS NOT NULL
----

query I rowsort
SELECT - AVG ( DISTINCT + col2 ) AS col2 FROM tab2 WHERE NOT ( NULL <= col1 )
----
NULL

query II rowsort
SELECT DISTINCT 50 * + col0 AS col2, ( col2 ) FROM tab2 AS cor0
----
2300
23
3200
40
3750
58

query I rowsort
SELECT DISTINCT - + col2 + - col2 - - 19 FROM tab0 AS cor0
----
-1
-179
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT + - COUNT( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-2261
SELECT + - COUNT ( * ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT + 98 - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-2262
SELECT + 98 - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
101

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col2
----

query II rowsort
SELECT ALL - 79 AS col0, + 87 FROM tab2 AS cor0
----
-79
87
-79
87
-79
87

query I rowsort
SELECT - ( - + 29 ) + - col1 * + col1 * - 29 FROM tab2 AS cor0
----
130210
171970
75458

onlyif mysql # DIV for integer division: 
query I rowsort label-2267
SELECT col0 DIV + ( + 16 ) + + 45 AS col0 FROM tab2 cor0
----
47
49
49

skipif mysql # not compatible
query I rowsort label-2267
SELECT col0 / + ( + 16 ) + + 45 AS col0 FROM tab2 cor0
----
47
49
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 96 ) col0 FROM tab1 AS cor0
----
96
96
96

query I rowsort
SELECT col0 * + col0 + + col0 + + col2 * - col1 + 71 * + ( col2 ) FROM tab0 AS cor0
----
-230
16436
8156

query II rowsort
SELECT + + col1 - + - col2 AS col0, + col0 + - col1 FROM tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL - 4 + + col0 FROM tab1
----
47
81
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT DISTINCT - 55 * SUM( col0 ) AS col2 FROM tab0
----
-10945

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT - 55 * SUM ( col0 ) AS col2 FROM tab0
----
-10945

query I rowsort
SELECT + col1 * 94 * + col1 FROM tab2
----
244494
421966
557326

query II rowsort
SELECT + 21, + 31 AS col2 FROM tab0 AS cor0
----
21
31
21
31
21
31

query II rowsort
SELECT col1, + ( col2 ) AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

query II rowsort
SELECT + 28, + col0 FROM tab1 cor0
----
28
51
28
85
28
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2277
SELECT DISTINCT + 37 AS col1, + MAX( DISTINCT + + 44 ) AS col1 FROM tab2 AS cor0
----
37
44

skipif mysql # not compatible
query II rowsort label-2277
SELECT DISTINCT + 37 AS col1, + MAX ( DISTINCT + + 44 ) AS col1 FROM tab2 AS cor0
----
37
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2278
SELECT ALL - 83, 15 * + - CAST( NULL AS SIGNED ) / - col0 AS col0 FROM tab2 AS cor0
----
-83
NULL
-83
NULL
-83
NULL

skipif mysql # not compatible
query II rowsort label-2278
SELECT ALL - 83, 15 * + - CAST ( NULL AS INTEGER ) / - col0 AS col0 FROM tab2 AS cor0
----
-83
NULL
-83
NULL
-83
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2279
SELECT 39 DIV - + 68 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2279
SELECT 39 / - + 68 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query III rowsort label-2280
SELECT ALL + 87 DIV - - col2 AS col0, col1, 83 AS col1 FROM tab0 AS cor0
----
9 values hashing to 24e346342057b85b557105ca430202db

skipif mysql # not compatible
query III rowsort label-2280
SELECT ALL + 87 / - - col2 AS col0, col1, 83 AS col1 FROM tab0 AS cor0
----
9 values hashing to 24e346342057b85b557105ca430202db

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2281
SELECT DISTINCT - + 80 / + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2281
SELECT DISTINCT - + 80 / + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( NULL ) > - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2283
SELECT - 78 + - col2 DIV + - col2 FROM tab2 cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-2283
SELECT - 78 + - col2 / + - col2 FROM tab2 cor0
----
-77
-77
-77

query I rowsort
SELECT + - 38 * - col0 + + col0 + + + 41 AS col2 FROM tab0 AS cor0
----
3434
3824
626

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 88 col1 FROM tab1 cor0
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2286
SELECT ALL 58 + + col2 DIV col0 AS col0 FROM tab0 AS cor0
----
58
59
61

skipif mysql # not compatible
query I rowsort label-2286
SELECT ALL 58 + + col2 / col0 AS col0 FROM tab0 AS cor0
----
58
59
61

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 50 ) > col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 16 + - col0 AS col2 FROM tab1
----
-35
-69
-75

query II rowsort
SELECT col0, + col1 AS col1 FROM tab0
----
15
81
87
21
97
1

query III rowsort
SELECT * FROM tab1 WHERE ( - - col2 ) NOT BETWEEN col0 AND - col1 * col0 - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 48, + col1 FROM tab0 AS cor0
----
48
1
48
21
48
81

query II rowsort
SELECT DISTINCT col0 AS col2, 57 FROM tab0 AS cor0
----
15
57
87
57
97
57

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 75 NOT BETWEEN - 56 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2294
SELECT * FROM tab1 WHERE NULL BETWEEN CAST( - col2 AS SIGNED ) * col1 AND - col2
----

skipif mysql # not compatible
query III rowsort label-2294
SELECT * FROM tab1 WHERE NULL BETWEEN CAST ( - col2 AS INTEGER ) * col1 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT ALL COUNT( * ) + - 31 - COUNT( * ) AS col2 FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-2295
SELECT ALL COUNT ( * ) + - 31 - COUNT ( * ) AS col2 FROM tab1
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2296
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) / col1 NOT BETWEEN col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2296
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) / col1 NOT BETWEEN col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT DISTINCT - col1 - + col1 + + 32 AS col1 FROM tab1 AS cor0
----
-62
22
4

onlyif mysql # DIV for integer division: 
query II rowsort label-2299
SELECT ALL - + col0 DIV - col1 col0, col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
0
46
0
64
1
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2299
SELECT ALL - + col0 / - col1 col0, col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
0
46
0
64
1
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT ALL + MAX( DISTINCT + + col0 ) * 99 FROM tab1
----
9009

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL + MAX ( DISTINCT + + col0 ) * 99 FROM tab1
----
9009

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + - col0 col1 FROM tab0
----
-196
-62
-97

query II rowsort
SELECT col2 AS col0, + col1 AS col2 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2303
SELECT COUNT( - + col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2303
SELECT COUNT ( - + col1 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT - 22 * ( - - col2 ) * + - col2 FROM tab2
----
11638
35200
74008

onlyif mysql # DIV for integer division: 
query I rowsort label-2305
SELECT ALL col1 DIV + ( - 54 ) * + - 43 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2305
SELECT ALL col1 / + ( - 54 ) * + - 43 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT DISTINCT + COUNT( * ) * 57 FROM tab2 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-2306
SELECT DISTINCT + COUNT ( * ) * 57 FROM tab2 AS cor0
----
171

query I rowsort
SELECT ALL + - ( - - col1 ) * col2 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2308
SELECT - 40 DIV 53, SUM( col2 ) col1 FROM tab1
----
0
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2308
SELECT - 40 / 53, SUM ( col2 ) col1 FROM tab1
----
0
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2309
SELECT ALL CAST( NULL AS SIGNED ) / + - 99 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2309
SELECT ALL CAST ( NULL AS INTEGER ) / + - 99 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( - 34 > + - col2 )
----
-1

skipif mysql # not compatible
query I rowsort label-2310
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( - 34 > + - col2 )
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2311
SELECT DISTINCT col0 DIV + 60 AS col0 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2311
SELECT DISTINCT col0 / + 60 AS col0 FROM tab1 cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT ALL - - COUNT( * ) * 30 AS col0 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL - - COUNT ( * ) * 30 AS col0 FROM tab0 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2313
SELECT + COUNT( * ) * + AVG ( DISTINCT - - 43 ) + COUNT( * ) col1 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col2 AND + 89 + + col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2313
SELECT + COUNT ( * ) * + AVG ( DISTINCT - - 43 ) + COUNT ( * ) col1 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col2 AND + 89 + + col2
----
NULL

query I rowsort
SELECT DISTINCT col0 + - + ( 19 ) AS col0 FROM tab1 AS cor0
----
32
66
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2315
SELECT DISTINCT CAST( + ( - + col0 ) AS SIGNED ) * - col2 + - col0 + + col2 FROM tab0
----
737
793
9605

skipif mysql # not compatible
query I rowsort label-2315
SELECT DISTINCT CAST ( + ( - + col0 ) AS INTEGER ) * - col2 + - col0 + + col2 FROM tab0
----
737
793
9605

onlyif mysql # aggregate syntax: 
query II rowsort label-2316
SELECT COUNT( ALL col0 ) + 75, + COUNT( * ) AS col2 FROM tab1
----
78
3

skipif mysql # not compatible
query II rowsort label-2316
SELECT COUNT ( ALL col0 ) + 75, + COUNT ( * ) AS col2 FROM tab1
----
78
3

query I rowsort
SELECT + 60 + - 46 AS col1 FROM tab2
----
14
14
14

query I rowsort
SELECT - col0 * + ( col0 ) * - col2 + col0 + - + col0 AS col2 FROM tab2
----
163840
326250
48668

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2319
SELECT ALL - col0 * - col1 * + col1 + - - CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL - col0 * - col1 * + col1 + - - CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - - ( + col0 ) + col0 AS col0 FROM tab0 WHERE NOT 28 IS NULL
----
174
194
30

query I rowsort
SELECT + 14 FROM tab2 WHERE NULL IS NULL
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT DISTINCT MIN( DISTINCT + col1 ) * - 52 + 11 col1 FROM tab0
----
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2322
SELECT DISTINCT MIN ( DISTINCT + col1 ) * - 52 + 11 col1 FROM tab0
----
-41

query I rowsort
SELECT DISTINCT ( 61 ) FROM tab2 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2324
SELECT MIN( + 79 ) * - 44 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-3476

skipif mysql # not compatible
query I rowsort label-2324
SELECT MIN ( + 79 ) * - 44 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-3476

onlyif mysql # DIV for integer division: 
query I rowsort label-2325
SELECT - 75 DIV - + col2 + + col0 FROM tab0 AS cor0
----
16
94
97

skipif mysql # not compatible
query I rowsort label-2325
SELECT - 75 / - + col2 + + col0 FROM tab0 AS cor0
----
16
94
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2326
SELECT ALL + + CAST( - ( + 73 ) AS SIGNED ) * - col2 * col2 FROM tab0 AS cor0
----
161257
715473
7300

skipif mysql # not compatible
query I rowsort label-2326
SELECT ALL + + CAST ( - ( + 73 ) AS INTEGER ) * - col2 * col2 FROM tab0 AS cor0
----
161257
715473
7300

query II rowsort
SELECT 39 * - - col0 + + 46 AS col1, 80 FROM tab1 AS cor0
----
2035
80
3361
80
3595
80

query I rowsort
SELECT ALL 28 * + 99 + + 11 AS col2 FROM tab0 AS cor0
----
2783
2783
2783

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2329
SELECT COUNT( * ) DIV + - 16 - + 99 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2329
SELECT COUNT ( * ) / + - 16 - + 99 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT 54 * col1 AS col1 FROM tab1 AS cor0
----
2538
270
756

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 77 * - 79 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= + 0 * + 40 * col1 + + 21 + - - col2 / - 97 * 8
----

query II rowsort
SELECT ALL - col1, col0 FROM tab0 WHERE + 35 < NULL
----

query II rowsort
SELECT ALL col2 AS col0, - col2 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - + 65 FROM tab0 AS cor0 WHERE col1 * - col1 NOT BETWEEN NULL AND + - col2
----
-65

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col1 AND 29
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2337
SELECT DISTINCT col0 DIV 24 AS col0 FROM tab0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT col0 / 24 AS col0 FROM tab0
----
0
3
4

query I rowsort
SELECT - col0 * - 11 AS col1 FROM tab0
----
1067
165
957

query III rowsort
SELECT ALL * FROM tab1 WHERE 87 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2340
SELECT DISTINCT MIN( DISTINCT col0 ) col0 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2340
SELECT DISTINCT MIN ( DISTINCT col0 ) col0 FROM tab0
----
15

query I rowsort
SELECT - col2 * + - col2 + col1 * col1 FROM tab0 AS cor0
----
541
8770
9802

onlyif mysql # DIV for integer division: 
query I rowsort label-2342
SELECT col0 DIV - - ( 84 ) + - + col0 + - + col0 DIV - col0 FROM tab2 AS cor0
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-2342
SELECT col0 / - - ( 84 ) + - + col0 + - + col0 / - col0 FROM tab2 AS cor0
----
-45
-63
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT ALL - SUM( - 51 ) FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-2343
SELECT ALL - SUM ( - 51 ) FROM tab1 AS cor0
----
153

query I rowsort
SELECT 18 + col2 FROM tab0 cor0
----
117
28
65

query I rowsort
SELECT + 19 + col0 FROM tab0 AS cor0
----
106
116
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2346
SELECT ALL MIN( ALL - 91 ) AS col2 FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL MIN ( ALL - 91 ) AS col2 FROM tab0 AS cor0
----
-91

query I rowsort
SELECT 99 + ( - - 57 ) + col2 AS col0 FROM tab1 AS cor0
----
215
224
252

onlyif mysql # DIV for integer division: 
query I rowsort label-2348
SELECT ALL + col0 * col1 DIV + + col0 + - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL + col0 * col1 / + + col0 + - col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 23 / 55 + + col1 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2350
SELECT + col0 DIV - col0 AS col1 FROM tab0 WHERE - col2 IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2350
SELECT + col0 / - col0 AS col1 FROM tab0 WHERE - col2 IS NOT NULL
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col2 + + 37 + - col2 + 35 * col2 + 40 * + col1 AS col2 FROM tab2
----
2882
4517
4747

query II rowsort
SELECT + ( 74 ), col0 AS col0 FROM tab0
----
74
15
74
87
74
97

query I rowsort
SELECT ALL col1 + - 78 - 61 AS col0 FROM tab2
----
-62
-72
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2354
SELECT DISTINCT + ( - 68 ) + + CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2354
SELECT DISTINCT + ( - 68 ) + + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 53 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + ( - - col1 ) * col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2358
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 NOT IN ( + col0, - 10, - CAST( NULL AS DECIMAL ), + + col1, + - col0 * - 42 )
----

skipif mysql # not compatible
query III rowsort label-2358
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 NOT IN ( + col0, - 10, - CAST ( NULL AS REAL ), + + col1, + - col0 * - 42 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL < NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2359
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL < NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT COUNT( * ) * ( + - COUNT( * ) ) col1 FROM tab1 cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2360
SELECT COUNT ( * ) * ( + - COUNT ( * ) ) col1 FROM tab1 cor0
----
-9

query I rowsort
SELECT col1 * + 47 FROM tab1
----
2209
235
658

query I rowsort
SELECT ALL + 67 * + col2 * + 61 AS col2 FROM tab0
----
192089
404613
40870

query I rowsort
SELECT ALL ( + + 46 ) AS col0 FROM tab2
----
46
46
46

query II rowsort
SELECT DISTINCT col0, col0 * + + ( - + col0 ) AS col1 FROM tab1
----
51
-2601
85
-7225
91
-8281

query I rowsort
SELECT ALL + ( - 59 ) FROM tab1
----
-59
-59
-59

query II rowsort
SELECT 40 AS col1, col2 * 50 FROM tab2 AS cor0
----
40
1150
40
2000
40
2900

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL <= + 91 )
----

query I rowsort
SELECT DISTINCT - col1 * - 95 * - 65 * - 70 FROM tab0 AS cor0
----
35012250
432250
9077250

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2369
SELECT ALL 8 DIV + ( - 51 ) + + COUNT( * ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL 8 / + ( - 51 ) + + COUNT ( * ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT 23 + 98 FROM tab1 AS cor0 WHERE + 15 * col1 + col2 * + 89 BETWEEN NULL AND + - 83 * + col0 + - col1
----

query II rowsort
SELECT col0 * + col2 AS col0, + col2 AS col0 FROM tab0 AS cor0
----
705
47
870
10
9603
99

query I rowsort
SELECT ALL ( - - 71 ) * + col1 FROM tab2 cor0
----
3621
4757
5467

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 11 AND + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2374
SELECT + + col1 * - col1 + + 56 + col0 + - + ( CAST( ( col2 ) AS SIGNED ) ) FROM tab0 AS cor0
----
-308
-6537
53

skipif mysql # not compatible
query I rowsort label-2374
SELECT + + col1 * - col1 + + 56 + col0 + - + ( CAST ( ( col2 ) AS INTEGER ) ) FROM tab0 AS cor0
----
-308
-6537
53

query I rowsort
SELECT ALL - + 20 * col1 FROM tab1 AS cor0
----
-100
-280
-940

onlyif mysql # DIV for integer division: 
query I rowsort label-2376
SELECT + + 14 DIV + col0 + + col0 AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2376
SELECT + + 14 / + col0 + + col0 AS col1 FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT + col1 + - 52, + col0 FROM tab0 cor0
----
-31
87
-51
97
29
15

query I rowsort
SELECT DISTINCT + 93 + 19 AS col1 FROM tab2 AS cor0
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2379
SELECT * FROM tab1 AS cor0 WHERE col1 - - 29 * CAST( - 23 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2379
SELECT * FROM tab1 AS cor0 WHERE col1 - - 29 * CAST ( - 23 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2380
SELECT ALL - CAST( ( 82 ) AS SIGNED ) AS col2 FROM tab0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-2380
SELECT ALL - CAST ( ( 82 ) AS INTEGER ) AS col2 FROM tab0
----
-82
-82
-82

query I rowsort
SELECT ALL - col2 * col0 + - col1 + + col2 + col1 FROM tab1
----
-4800
-4956
-6120

query I rowsort
SELECT col0 + - 63 + + 51 AS col1 FROM tab0
----
3
75
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 96 col0 FROM tab1
----
-11
-45
-5

query III rowsort
SELECT * FROM tab0 WHERE - - 34 * - + ( + - col0 ) <= - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 col0 FROM tab2 AS cor0
----
60

query I rowsort
SELECT + + ( - - 92 ) FROM tab2 AS cor0
----
92
92
92

query II rowsort
SELECT 41 AS col1, + col0 * - - col1 AS col1 FROM tab0 AS cor0
----
41
1215
41
1827
41
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2388
SELECT DISTINCT - - col1 * col2 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2388
SELECT DISTINCT - - col1 * col2 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT ALL - SUM( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2389
SELECT ALL - SUM ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( + - 81 ) col1 FROM tab2 cor0
----
81
81
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2391
SELECT + - COUNT( * ) AS col1, + CAST( NULL AS DECIMAL ) col1 FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2391
SELECT + - COUNT ( * ) AS col1, + CAST ( NULL AS REAL ) col1 FROM tab0 AS cor0
----
-3
NULL

query I rowsort
SELECT - + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2393
SELECT DISTINCT 83 AS col2, COUNT( * ) * + 12 FROM tab2 AS cor0
----
83
36

skipif mysql # not compatible
query II rowsort label-2393
SELECT DISTINCT 83 AS col2, COUNT ( * ) * + 12 FROM tab2 AS cor0
----
83
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - + 69 + 62 col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col1, + col0 * + col2, + - col1, + + ( + col2 ) )
----

query II rowsort
SELECT ALL + 81 AS col0, col0 AS col2 FROM tab2 AS cor0
----
81
46
81
64
81
75

query II rowsort
SELECT + ( + - 11 ) * - col2 * - - 0, - col0 + - col2 AS col1 FROM tab0 AS cor0
----
0
-196
0
-62
0
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT ALL + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2397
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT ALL COUNT( DISTINCT + + col2 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2398
SELECT ALL COUNT ( DISTINCT + + col2 ) col0 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 74 * + 24 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2400
SELECT DISTINCT 96 + - COUNT( * ) AS col1 FROM tab0, tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-2400
SELECT DISTINCT 96 + - COUNT ( * ) AS col1 FROM tab0, tab2 AS cor0
----
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2401
SELECT ALL + MAX( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2401
SELECT ALL + MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT + + col2 FROM tab0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT - col0 * - 43 FROM tab0
----
3741
4171
645

query I rowsort
SELECT ALL + ( 37 ) AS col1 FROM tab2 WHERE NOT - 11 IS NULL
----
37
37
37

query I rowsort
SELECT + col0 + + 96 / col2 AS col2 FROM tab0 WHERE NOT NULL BETWEEN NULL AND - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 87 col2 FROM tab2 AS cor0
----
87
87
87

query I rowsort
SELECT - 81 FROM tab0 WHERE NOT + - col1 < + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2408
SELECT ALL - COUNT( * ) + + + 36 AS col0 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-2408
SELECT ALL - COUNT ( * ) + + + 36 AS col0 FROM tab1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2409
SELECT DISTINCT - COUNT( * ) + - - 75 AS col0 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-2409
SELECT DISTINCT - COUNT ( * ) + - - 75 AS col0 FROM tab1
----
72

query II rowsort
SELECT DISTINCT + - col2 AS col0, 85 FROM tab0 AS cor0
----
-10
85
-47
85
-99
85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND + col2
----

query II rowsort
SELECT ALL - col1 + + 50 + - + col2 AS col1, col0 FROM tab1 cor0
----
-14
85
-60
51
-65
91

query I rowsort
SELECT DISTINCT col0 + + ( + 18 ) + - 67 FROM tab0
----
-34
38
48

query I rowsort
SELECT DISTINCT + col2 * - col1 + - 78 AS col2 FROM tab2
----
-1251
-3158
-3964

onlyif mysql # aggregate syntax: 
query II rowsort label-2415
SELECT COUNT( col1 ) AS col2, + COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-2415
SELECT COUNT ( col1 ) AS col2, + COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2416
SELECT col2 DIV + col1 - + + ( - + col0 ) + + col2 AS col0 FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-2416
SELECT col2 / + col1 - + + ( - + col0 ) + + col2 AS col0 FROM tab2
----
104
133
69

query II rowsort
SELECT + col1 - 19 AS col0, + ( + + col1 ) AS col1 FROM tab2
----
32
51
48
67
58
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT SUM( + + 27 ) AS col0 FROM tab2 cor0
----
81

skipif mysql # not compatible
query I rowsort label-2419
SELECT SUM ( + + 27 ) AS col0 FROM tab2 cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2420
SELECT DISTINCT COUNT( 28 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2420
SELECT DISTINCT COUNT ( 28 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2421
SELECT ALL - - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE 57 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2421
SELECT ALL - - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE 57 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT ALL - MIN( + - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2422
SELECT ALL - MIN ( + - col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2423
SELECT DISTINCT - + COUNT( * ) AS col0, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-2423
SELECT DISTINCT - + COUNT ( * ) AS col0, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3
3

query I rowsort
SELECT ALL + + ( - - 25 ) FROM tab0 AS cor0
----
25
25
25

query I rowsort
SELECT + 23 AS col0 FROM tab0 cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT - - COUNT( * ) * - + 72 AS col2 FROM tab2 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-2426
SELECT - - COUNT ( * ) * - + 72 AS col2 FROM tab2 AS cor0
----
-216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2427
SELECT - col1 * + CAST( + col1 AS SIGNED ) col1 FROM tab1
----
-196
-2209
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2427
SELECT - col1 * + CAST ( + col1 AS INTEGER ) col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT 22 * col0 * ( - + col0 ) * col1 FROM tab2
----
-2374152
-6938624
-8291250

query I rowsort
SELECT + col2 * + 4 AS col2 FROM tab1
----
236
272
384

query I rowsort
SELECT DISTINCT + col0 + - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-45
23
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2431
SELECT - CAST( - + 99 AS SIGNED ) * COUNT( * ) AS col0 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-2431
SELECT - CAST ( - + 99 AS INTEGER ) * COUNT ( * ) AS col0 FROM tab0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT ALL COUNT( - 84 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2432
SELECT ALL COUNT ( - 84 ) AS col1 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2433
SELECT + - 71 * col1 DIV - - col0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-19
-36
-4

skipif mysql # not compatible
query I rowsort label-2433
SELECT + - 71 * col1 / - - col0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-19
-36
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT DISTINCT - + MAX( ALL - + col2 ) AS col0 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-2434
SELECT DISTINCT - + MAX ( ALL - + col2 ) AS col0 FROM tab2 cor0
----
23

query II rowsort
SELECT ALL - - col0, + col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT - 68 * - col1 * + 40 AS col1 FROM tab2
----
138720
182240
209440

onlyif mysql # aggregate syntax: 
query I rowsort label-2437
SELECT DISTINCT COUNT( * ) + - 47 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-2437
SELECT DISTINCT COUNT ( * ) + - 47 FROM tab0
----
-44

query I rowsort
SELECT + + 41 * - col2 AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-1927
-4059
-410

query I rowsort
SELECT - 77 + - - 37 - + - ( - col1 ) * + col0 AS col0 FROM tab2 AS cor0
----
-2386
-4968
-5065

query I rowsort
SELECT - - 82 + 60 FROM tab1 AS cor0
----
142
142
142

query I rowsort
SELECT col1 + 85 * + col2 FROM tab2 cor0
----
2006
3477
4997

query I rowsort
SELECT col1 + + col1 - - + col2 * col1 FROM tab2 AS cor0
----
1275
3234
4020

onlyif mysql # DIV for integer division: 
query I rowsort label-2443
SELECT 24 * + 83 + + - col1 DIV - - col1 + + - 51 AS col2 FROM tab2 AS cor0
----
1940
1940
1940

skipif mysql # not compatible
query I rowsort label-2443
SELECT 24 * + 83 + + - col1 / - - col1 + + - 51 AS col2 FROM tab2 AS cor0
----
1940
1940
1940

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2444
SELECT CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2444
SELECT CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - 73 ) + - col1 * + 43 * 22 + - col0 + - + col0 + 52 FROM tab2
----
-48213
-63407
-72845

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2446
SELECT * FROM tab1 WHERE + col1 + + CAST( + - col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2446
SELECT * FROM tab1 WHERE + col1 + + CAST ( + - col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( - 52 ) * + 35 AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to 9c52c7b7bc01a712346dac721002d06c

query I rowsort
SELECT DISTINCT - 44 * col0 AS col1 FROM tab0 AS cor0
----
-3828
-4268
-660

query I rowsort
SELECT - col0 * - - ( - col1 ) AS col0 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT DISTINCT col1 * - col0 + - col1 FROM tab0
----
-1296
-1848
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-2451
SELECT DISTINCT SUM( 94 ) + COUNT( * ) AS col2 FROM tab1
----
285

skipif mysql # not compatible
query I rowsort label-2451
SELECT DISTINCT SUM ( 94 ) + COUNT ( * ) AS col2 FROM tab1
----
285

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2452
SELECT col0 * - CAST( + 5 AS SIGNED ) - col0 col0 FROM tab0
----
-522
-582
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2452
SELECT col0 * - CAST ( + 5 AS INTEGER ) - col0 col0 FROM tab0
----
-522
-582
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2453
SELECT ALL col0 * CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2453
SELECT ALL col0 * CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 81 + 73 FROM tab1
----
154
154
154

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 NOT IN ( 0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2457
SELECT - 5 + - ( - CAST( + 33 AS SIGNED ) + - col1 ) AS col1 FROM tab2
----
105
79
95

skipif mysql # not compatible
query I rowsort label-2457
SELECT - 5 + - ( - CAST ( + 33 AS INTEGER ) + - col1 ) AS col1 FROM tab2
----
105
79
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT ALL COUNT( * ) FROM tab0 WHERE - 93 / col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL COUNT ( * ) FROM tab0 WHERE - 93 / col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT DISTINCT 33 - COUNT( * ) * 53 FROM tab0
----
-126

skipif mysql # not compatible
query I rowsort label-2459
SELECT DISTINCT 33 - COUNT ( * ) * 53 FROM tab0
----
-126

query I rowsort
SELECT - 55 FROM tab1 WHERE NOT 77 / col0 + - col0 * + 50 < - col0
----

query I rowsort
SELECT + col1 + - 28 FROM tab0
----
-27
-7
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT 11 + + ( + COUNT( * ) ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
11

skipif mysql # not compatible
query I rowsort label-2462
SELECT 11 + + ( + COUNT ( * ) ) AS col2 FROM tab2 WHERE NULL IS NOT NULL
----
11

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 72 - ( + ( - 65 ) ) * - col2 ) <= ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + - 30 AS col2 FROM tab2
----
-7
10
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2465
SELECT ALL COUNT( * ) * - 4 + 90 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL COUNT ( * ) * - 4 + 90 FROM tab1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2466
SELECT ALL MIN( ALL + col1 ) * + 11 AS col0 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-2466
SELECT ALL MIN ( ALL + col1 ) * + 11 AS col0 FROM tab0
----
11

query I rowsort
SELECT DISTINCT ( col2 ) * + col0 AS col1 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT DISTINCT COUNT( * ) * - ( - 52 ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2468
SELECT DISTINCT COUNT ( * ) * - ( - 52 ) FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT - SUM( ALL - col2 ) col0 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2469
SELECT - SUM ( ALL - col2 ) col0 FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT COUNT( * ) FROM tab2 WHERE NOT ( col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2470
SELECT COUNT ( * ) FROM tab2 WHERE NOT ( col1 ) IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2471
SELECT - col1 DIV 97 - - 5 AS col2 FROM tab1
----
5
5
5

skipif mysql # not compatible
query I rowsort label-2471
SELECT - col1 / 97 - - 5 AS col2 FROM tab1
----
5
5
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2472
SELECT + COUNT( * ) DIV - COUNT( DISTINCT col2 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2472
SELECT + COUNT ( * ) / - COUNT ( DISTINCT col2 ) FROM tab1 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2473
SELECT DISTINCT + MAX( - col1 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT DISTINCT + MAX ( - col1 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL ( + 84 ) FROM tab0 AS cor0
----
84
84
84

query I rowsort
SELECT DISTINCT - ( + col0 ) + col2 AS col0 FROM tab0 cor0
----
-77
2
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2476
SELECT DISTINCT - CAST( + COUNT( * ) AS SIGNED ) + - 79 AS col2 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT - CAST ( + COUNT ( * ) AS INTEGER ) + - 79 AS col2 FROM tab2 AS cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT - 51 + - COUNT( * ) AS col0 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-2477
SELECT - 51 + - COUNT ( * ) AS col0 FROM tab2
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2478
SELECT 0 * col1 + col1 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2478
SELECT 0 * col1 + col1 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN col2 + col2 * - col1 AND ( NULL )
----

query I rowsort
SELECT - 35 * - 32 FROM tab1 cor0
----
1120
1120
1120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2481
SELECT DISTINCT COUNT( * ) * + CAST( + 23 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - col0 * + 54 ) AND + col0 + - 6
----
0

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT COUNT ( * ) * + CAST ( + 23 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( - col0 * + 54 ) AND + col0 + - 6
----
0

query I rowsort
SELECT DISTINCT + - col2 * + 94 AS col2 FROM tab1 AS cor0
----
-5546
-6392
-9024

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2483
SELECT + - col1 * + CAST( NULL AS DECIMAL ) - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2483
SELECT + - col1 * + CAST ( NULL AS REAL ) - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 - - col2 * + 86 FROM tab0 cor0
----
4123
8515
881

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT NULL NOT IN ( + col0 )
----

query I rowsort
SELECT DISTINCT - ( - col0 ) + col1 AS col2 FROM tab2
----
141
142
97

query I rowsort
SELECT + col1 - + 18 AS col0 FROM tab2
----
33
49
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT SUM( ALL col2 ) * 73 + COUNT( * ) * MAX( col1 * + col0 ) AS col1 FROM tab1 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2488
SELECT SUM ( ALL col2 ) * 73 + COUNT ( * ) * MAX ( col1 * + col0 ) AS col1 FROM tab1 WHERE - col2 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2489
SELECT DISTINCT 37 * - - COUNT( * ) AS col0 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-2489
SELECT DISTINCT 37 * - - COUNT ( * ) AS col0 FROM tab2
----
111

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 - - 5 BETWEEN - col0 AND ( NULL )
----

query I rowsort
SELECT ALL col1 + col2 * col1 FROM tab0 WHERE ( NULL ) IN ( - col1 * + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2492
SELECT ALL CAST( + 93 AS SIGNED ) FROM tab1 cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-2492
SELECT ALL CAST ( + 93 AS INTEGER ) FROM tab1 cor0
----
93
93
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2493
SELECT DISTINCT + col0 DIV - - 68 + - col2 col1 FROM tab1 AS cor0
----
-58
-67
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2493
SELECT DISTINCT + col0 / - - 68 + - col2 col1 FROM tab1 AS cor0
----
-58
-67
-96

query I rowsort
SELECT ALL + 74 AS col2 FROM tab1 WHERE ( - 93 ) IS NOT NULL
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT DISTINCT - COUNT( * ) * 42 + + 60 AS col0 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT - COUNT ( * ) * 42 + + 60 AS col0 FROM tab2 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2496
SELECT CAST( NULL AS SIGNED ) * - col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-2496
SELECT CAST ( NULL AS INTEGER ) * - col0 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL + 56 * + col1 + col1 * col2 AS col2 FROM tab2 AS cor0
----
4029
7392
7638

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0 + 44
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2499
SELECT ALL col2 * + ( - col0 ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2499
SELECT ALL col2 * + ( - col0 ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col0 + 88 FROM tab2 AS cor0 WHERE NOT NULL <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2501
SELECT - COUNT( ALL + 78 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2501
SELECT - COUNT ( ALL + 78 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT - - SUM( DISTINCT + ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-2502
SELECT - - SUM ( DISTINCT + ( - col0 ) ) AS col2 FROM tab0 AS cor0
----
-199

query I rowsort
SELECT ALL - 93 + + - 57 FROM tab2 AS cor0
----
-150
-150
-150

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * - 6 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 * + col0 * col1 + + col1 * - 22 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2506
SELECT ALL 10 + - + col2 DIV - 94 + - col2 AS col1 FROM tab2
----
-13
-30
-48

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL 10 + - + col2 / - 94 + - col2 AS col1 FROM tab2
----
-13
-30
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT DISTINCT 28 + + MAX( col2 ) + - - MIN( ALL col2 ) AS col1 FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-2507
SELECT DISTINCT 28 + + MAX ( col2 ) + - - MIN ( ALL col2 ) AS col1 FROM tab1
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2508
SELECT ALL col0 * col2 AS col1 FROM tab1 WHERE ( - 97 / - col0 + - col0 ) NOT BETWEEN CAST( NULL AS SIGNED ) * + col0 AND + col2
----

skipif mysql # not compatible
query I rowsort label-2508
SELECT ALL col0 * col2 AS col1 FROM tab1 WHERE ( - 97 / - col0 + - col0 ) NOT BETWEEN CAST ( NULL AS INTEGER ) * + col0 AND + col2
----

query I rowsort
SELECT + col0 + - + col1 AS col2 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT DISTINCT - 43 - col2 FROM tab1 AS cor0
----
-102
-111
-139

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 71 + - col0 * + + 11 IS NOT NULL AND col0 IN ( col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 NOT IN ( col1 + + ( ( - col2 ) ) + + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * - + col0 + + + col2 + - 17 AS col1 FROM tab2 AS cor0
----
2122
4119
5666

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2514
SELECT 23 FROM tab1 AS cor0 WHERE col2 * - - CAST( ( - + col2 ) AS SIGNED ) * ( + col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2514
SELECT 23 FROM tab1 AS cor0 WHERE col2 * - - CAST ( ( - + col2 ) AS INTEGER ) * ( + col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 94 col0 FROM tab2 AS cor0
----
-94
-94
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2516
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 48 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2516
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 48 AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2517
SELECT DISTINCT - MAX( DISTINCT ( + col0 ) ) * COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 AND + + CAST( + col0 AS SIGNED ) * 83
----
NULL

skipif mysql # not compatible
query I rowsort label-2517
SELECT DISTINCT - MAX ( DISTINCT ( + col0 ) ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 AND + + CAST ( + col0 AS INTEGER ) * 83
----
NULL

query I rowsort
SELECT ALL - col0 + - 81 AS col2 FROM tab0 AS cor0
----
-168
-178
-96

query II rowsort
SELECT DISTINCT + 45, ( + col2 ) + + - 36 AS col2 FROM tab1
----
45
23
45
32
45
60

query II rowsort
SELECT 92 AS col1, col0 FROM tab2
----
92
46
92
64
92
75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col1 * + - col0 * + 89 BETWEEN NULL AND - - 67
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + - col2, - 28 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN 57 AND - + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 27 NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT ALL COUNT( * ) FROM tab1 AS cor0 WHERE - col1 + - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL COUNT ( * ) FROM tab1 AS cor0 WHERE - col1 + - col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query III rowsort label-2526
SELECT DISTINCT - - 57, COUNT( * ) AS col1, 85 AS col0 FROM tab2 cor0
----
57
3
85

skipif mysql # not compatible
query III rowsort label-2526
SELECT DISTINCT - - 57, COUNT ( * ) AS col1, 85 AS col0 FROM tab2 cor0
----
57
3
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, + col0 col0 FROM tab0 cor0
----
10
87
47
15
99
97

query I rowsort
SELECT - + col1 * + col0 AS col0 FROM tab2 cor0
----
-2346
-4928
-5025

query II rowsort
SELECT - - col1, + col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT ALL - col1 + - 24 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2531
SELECT + + 75 + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
66

skipif mysql # not compatible
query I rowsort label-2531
SELECT + + 75 + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2532
SELECT DISTINCT - SUM( + + 33 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-297

skipif mysql # not compatible
query I rowsort label-2532
SELECT DISTINCT - SUM ( + + 33 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-297

query I rowsort
SELECT DISTINCT + + 71 - + + 25 * - col0 AS col0 FROM tab1 AS cor0 WHERE NOT 49 + + col0 > - - col1
----

query I rowsort
SELECT ( + 23 ) + + 79 AS col0 FROM tab2 AS cor0
----
102
102
102

query I rowsort
SELECT - col2 FROM tab2 cor0 WHERE NOT ( - - 46 IS NULL )
----
-23
-40
-58

query II rowsort
SELECT + 84 + + - ( + 21 ), - col1 AS col0 FROM tab0 AS cor0
----
63
-1
63
-21
63
-81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2537
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) * 93 AS col0, SUM( - + col2 ) + + COUNT( * ) AS col1 FROM tab1 cor0
----
NULL
-220

skipif mysql # not compatible
query II rowsort label-2537
SELECT DISTINCT - + CAST ( NULL AS REAL ) * 93 AS col0, SUM ( - + col2 ) + + COUNT ( * ) AS col1 FROM tab1 cor0
----
NULL
-220

query I rowsort
SELECT DISTINCT - col2 + - 36 FROM tab2
----
-59
-76
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2539
SELECT DISTINCT + 69 + - COUNT( * ) DIV 6 AS col1 FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-2539
SELECT DISTINCT + 69 + - COUNT ( * ) / 6 AS col1 FROM tab0
----
69

query I rowsort
SELECT + 18 AS col0 FROM tab0 WHERE 18 >= NULL
----

query I rowsort
SELECT ALL 93 + col0 AS col1 FROM tab0
----
108
180
190

query I rowsort
SELECT ALL - AVG ( ALL + col0 ) FROM tab1 WHERE NOT - col1 >= NULL
----
NULL

query I rowsort
SELECT ALL - - 18 * - + 24 AS col1 FROM tab2 AS cor0
----
-432
-432
-432

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2544
SELECT ALL + 32 DIV - 56 * + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-2544
SELECT ALL + 32 / - 56 * + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2545
SELECT col1 * ( CAST( - col1 AS SIGNED ) ) * + + 8 AS col1 FROM tab1 AS cor0
----
-1568
-17672
-200

skipif mysql # not compatible
query I rowsort label-2545
SELECT col1 * ( CAST ( - col1 AS INTEGER ) ) * + + 8 AS col1 FROM tab1 AS cor0
----
-1568
-17672
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <> + col1 + - col0
----
0

skipif mysql # not compatible
query I rowsort label-2546
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <> + col1 + - col0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2547
SELECT ALL - col1 DIV + - col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2547
SELECT ALL - col1 / + - col2 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2548
SELECT + + 60 FROM tab0 AS cor0 WHERE + 31 * + CAST( NULL AS SIGNED ) * - col1 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-2548
SELECT + + 60 FROM tab0 AS cor0 WHERE + 31 * + CAST ( NULL AS INTEGER ) * - col1 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 75 * + - ( - 16 ) col1 FROM tab1 AS cor0
----
1200
1200
1200

query I rowsort
SELECT ALL + 71 - col2 AS col0 FROM tab2 cor0
----
13
31
48

query I rowsort
SELECT DISTINCT - 14 AS col0 FROM tab2 cor0
----
-14

query II rowsort
SELECT - col1 AS col2, col2 * + - col1 AS col2 FROM tab2
----
-51
-1173
-67
-3886
-77
-3080

query I rowsort
SELECT DISTINCT - 67 * - + col1 AS col1 FROM tab0
----
1407
5427
67

query II rowsort
SELECT 36 AS col0, 4 FROM tab2
----
36
4
36
4
36
4

query I rowsort
SELECT ALL - + col0 FROM tab1 WHERE + - col0 / + col2 < col2 - - col1 + - + col1 + + col0
----
-51
-85
-91

query I rowsort
SELECT 15 * + - 66 FROM tab1 AS cor0
----
-990
-990
-990

query II rowsort
SELECT col1 AS col0, + col1 * 76 AS col2 FROM tab2
----
51
3876
67
5092
77
5852

onlyif mysql # DIV for integer division: 
query I rowsort label-2558
SELECT 93 DIV 53 * 57 AS col2 FROM tab1
----
57
57
57

skipif mysql # not compatible
query I rowsort label-2558
SELECT 93 / 53 * 57 AS col2 FROM tab1
----
57
57
57

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 * - + col0 NOT BETWEEN - col0 * col1 AND col1
----

query II rowsort
SELECT ALL + col2, - col2 + col1 FROM tab2 AS cor0
----
23
28
40
37
58
9

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col2 ) > 52 * + + col1
----
97
1
99

query I rowsort
SELECT - col2 + col2 - - + 21 FROM tab1 AS cor0
----
21
21
21

query I rowsort
SELECT - col1 * col0 + - col2 AS col0 FROM tab1
----
-4345
-484
-810

query I rowsort
SELECT + 82 + - col1 AS col1 FROM tab1
----
35
68
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2565
SELECT - CAST( NULL AS SIGNED ) + + - col1 * - + col2 * + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2565
SELECT - CAST ( NULL AS INTEGER ) + + - col1 * - + col2 * + col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + ( - + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT + + COUNT( * ) * - 2 AS col1 FROM tab2 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2567
SELECT + + COUNT ( * ) * - 2 AS col1 FROM tab2 cor0
----
-6

query I rowsort
SELECT - + 94 * - col0 AS col1 FROM tab0 cor0
----
1410
8178
9118

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2569
SELECT CAST( NULL AS DECIMAL ) * COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2569
SELECT CAST ( NULL AS REAL ) * COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2570
SELECT - - ( col1 ), col2 DIV + ( + col2 ) AS col0 FROM tab2 AS cor0
----
51
1
67
1
77
1

skipif mysql # not compatible
query II rowsort label-2570
SELECT - - ( col1 ), col2 / + ( + col2 ) AS col0 FROM tab2 AS cor0
----
51
1
67
1
77
1

query I rowsort
SELECT DISTINCT - 24 + 54 * + + 68 + - 96 FROM tab1
----
3552

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT + - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2572
SELECT + - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2573
SELECT DISTINCT + - col1 + + - CAST( - 85 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) >= col1
----

skipif mysql # not compatible
query I rowsort label-2573
SELECT DISTINCT + - col1 + + - CAST ( - 85 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) >= col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2574
SELECT ALL + col2 AS col1, + col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-2574
SELECT ALL + col2 AS col1, + col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2575
SELECT + col2 AS col1, col2 * - col2 DIV + col2 AS col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

skipif mysql # not compatible
query II rowsort label-2575
SELECT + col2 AS col1, col2 * - col2 / + col2 AS col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT - SUM( DISTINCT - 10 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2576
SELECT - SUM ( DISTINCT - 10 ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

query I rowsort
SELECT - 63 * - 25 FROM tab0 AS cor0
----
1575
1575
1575

query I rowsort
SELECT - - 43 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) <= - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col1 col0 FROM tab2 cor0 WHERE NOT ( NOT NULL IN ( + + col1 ) )
----

query I rowsort
SELECT DISTINCT 54 * - + col0 AS col2 FROM tab2
----
-2484
-3456
-4050

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN ( col0 / + col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col1 AND + col1 * + 43 / - ( + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT SUM( ALL - col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2583
SELECT SUM ( ALL - col1 ) AS col2 FROM tab1
----
-66

query I rowsort
SELECT + ( + - col0 ) AS col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT 91 * 73 AS col1 FROM tab1
----
6643
6643
6643

onlyif mysql # DIV for integer division: 
query II rowsort label-2586
SELECT - 19 DIV + 79, col2 AS col1 FROM tab0 AS cor0
----
0
10
0
47
0
99

skipif mysql # not compatible
query II rowsort label-2586
SELECT - 19 / + 79, col2 AS col1 FROM tab0 AS cor0
----
0
10
0
47
0
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2587
SELECT + COUNT( * ) AS col2, 5 + + 49 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0
54

skipif mysql # not compatible
query II rowsort label-2587
SELECT + COUNT ( * ) AS col2, 5 + + 49 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2588
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= - 35 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2588
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= - 35 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT + COUNT( * ) + + COUNT( * ) col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2589
SELECT + COUNT ( * ) + + COUNT ( * ) col1 FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2590
SELECT - 53 DIV - CAST( - ( + COUNT( * ) ) AS SIGNED ) - - MIN( ALL - - col2 ) * - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-194

skipif mysql # not compatible
query I rowsort label-2590
SELECT - 53 / - CAST ( - ( + COUNT ( * ) ) AS INTEGER ) - - MIN ( ALL - - col2 ) * - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-194

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 <> - 91
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 94 = col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= + 52
----

query I rowsort
SELECT ALL - 28 + - - 37 FROM tab1 WHERE 82 > - ( - + col0 )
----
9

query I rowsort
SELECT DISTINCT col0 + + - ( col1 ) * col0 FROM tab0
----
-1200
-1740
0

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + + col1 ) IS NULL
----

query I rowsort
SELECT 16 + + col0 FROM tab2 WHERE NULL NOT BETWEEN + col0 AND - 85 * col0 * 58
----

query I rowsort
SELECT ALL + 24 + + col1 FROM tab1
----
29
38
71

query I rowsort
SELECT ALL ( + col0 ) - + - col2 AS col2 FROM tab0
----
196
62
97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - - col2 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2601
SELECT COUNT( * ) - + + 44 * ( - + COUNT( * ) ) AS col0 FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-2601
SELECT COUNT ( * ) - + + 44 * ( - + COUNT ( * ) ) AS col0 FROM tab2
----
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2602
SELECT col0 - + CAST( NULL AS SIGNED ) * 75 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2602
SELECT col0 - + CAST ( NULL AS INTEGER ) * 75 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2603
SELECT ALL - MIN( ALL + 13 ) col0 FROM tab1
----
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2603
SELECT ALL - MIN ( ALL + 13 ) col0 FROM tab1
----
-13

query I rowsort
SELECT + 99 * - - col1 - - col2 AS col1 FROM tab1
----
1482
4721
554

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2605
SELECT DISTINCT + ( - + col1 ) * + - CAST( - 39 AS SIGNED ) * col0 + + - 3 + - - col0 AS col2, col2 AS col1 FROM tab2
----
-192131
40
-195903
58
-91451
23

skipif mysql # not compatible
query II rowsort label-2605
SELECT DISTINCT + ( - + col1 ) * + - CAST ( - 39 AS INTEGER ) * col0 + + - 3 + - - col0 AS col2, col2 AS col1 FROM tab2
----
-192131
40
-195903
58
-91451
23

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT - MIN( DISTINCT + col2 ) + 65 + - ( + + COUNT( * ) ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2606
SELECT - MIN ( DISTINCT + col2 ) + 65 + - ( + + COUNT ( * ) ) AS col1 FROM tab1 cor0
----
3

query I rowsort
SELECT + 90 + + col2 - col0 AS col2 FROM tab0 cor0
----
122
13
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT 66 * - 65 + + COUNT( * ) FROM tab0 AS cor0
----
-4287

skipif mysql # not compatible
query I rowsort label-2608
SELECT 66 * - 65 + + COUNT ( * ) FROM tab0 AS cor0
----
-4287

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN NULL AND - 50
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2610
SELECT 83 + - - SUM( DISTINCT - + CAST( - 61 AS SIGNED ) ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-2610
SELECT 83 + - - SUM ( DISTINCT - + CAST ( - 61 AS INTEGER ) ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
147

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2611
SELECT - ( CAST( NULL AS DECIMAL ) ) - + + 26 + + col2 * + + col1 + - + col1 * - - 47 * + CAST( col2 AS SIGNED ) AS col0 FROM tab2 WHERE NOT + col2 + + 68 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-2611
SELECT - ( CAST ( NULL AS REAL ) ) - + + 26 + + col2 * + + col1 + - + col1 * - - 47 * + CAST ( col2 AS INTEGER ) AS col0 FROM tab2 WHERE NOT + col2 + + 68 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - - ( - col2 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-2613
SELECT + SUM( col0 ) AS col2, 57 * 46 * + COUNT( * ) AS col1 FROM tab1
----
227
7866

skipif mysql # not compatible
query II rowsort label-2613
SELECT + SUM ( col0 ) AS col2, 57 * 46 * + COUNT ( * ) AS col1 FROM tab1
----
227
7866

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2614
SELECT ( + CAST( NULL AS SIGNED ) ) / + MAX( ALL col2 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2614
SELECT ( + CAST ( NULL AS INTEGER ) ) / + MAX ( ALL col2 ) AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT DISTINCT MAX( col2 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2615
SELECT DISTINCT MAX ( col2 ) AS col2 FROM tab0
----
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2616
SELECT ALL ( - CAST( NULL AS SIGNED ) ) * + 40 * + COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2616
SELECT ALL ( - CAST ( NULL AS INTEGER ) ) * + 40 * + COUNT ( * ) AS col2 FROM tab0
----
NULL

query II rowsort
SELECT ALL + 58 - 79 + - 82 * col1 * + - col2, col2 AS col1 FROM tab2 AS cor0 WHERE NOT col0 * - col2 + ( - 96 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= + col1 - - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * - + 5 + - + col2 * - + col2 col1 FROM tab1 AS cor0
----
3906
5079
9471

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2620
SELECT ALL COUNT( * ) DIV - MIN( - 28 ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2620
SELECT ALL COUNT ( * ) / - MIN ( - 28 ) col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT ALL COUNT( + ( col2 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL COUNT ( + ( col2 ) ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2622
SELECT 63 DIV - col2 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2622
SELECT 63 / - col2 AS col2 FROM tab1
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2623
SELECT DISTINCT - col1 DIV + + col2 AS col2 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-2623
SELECT DISTINCT - col1 / + + col2 AS col2 FROM tab2
----
-1
-2

query I rowsort
SELECT col2 * - - 76 FROM tab2
----
1748
3040
4408

onlyif mysql # DIV for integer division: 
query I rowsort label-2625
SELECT - 36 DIV col0 AS col1 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-2625
SELECT - 36 / col0 AS col1 FROM tab0
----
-2
0
0

query II rowsort
SELECT DISTINCT + + 80 + - col0, - 4 AS col0 FROM tab1 WHERE NOT NULL = NULL
----

query II rowsort
SELECT - col1 + + 0 AS col0, col0 FROM tab1 WHERE NOT - ( + col0 ) IS NULL
----
-14
51
-47
91
-5
85

query II rowsort
SELECT DISTINCT + - col0, - col0 AS col2 FROM tab0 cor0
----
-15
-15
-87
-87
-97
-97

query II rowsort
SELECT + col0 + - col0 * - col0, col1 * + + col2 AS col0 FROM tab2 AS cor0
----
2162
1173
4160
3080
5700
3886

query I rowsort
SELECT col0 * 85 FROM tab2 AS cor0
----
3910
5440
6375

onlyif mysql # DIV for integer division: 
query I rowsort label-2631
SELECT ALL ( - col0 ) DIV col2 DIV - col0 + + col1 * - - col0 * 41 FROM tab0 cor0
----
3977
49815
74907

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL ( - col0 ) / col2 / - col0 + + col1 * - - col0 * 41 FROM tab0 cor0
----
3977
49815
74907

onlyif mysql # aggregate syntax: 
query II rowsort label-2632
SELECT + 51 AS col0, COUNT( * ) FROM tab0 AS cor0
----
51
3

skipif mysql # not compatible
query II rowsort label-2632
SELECT + 51 AS col0, COUNT ( * ) FROM tab0 AS cor0
----
51
3

query III rowsort
SELECT * FROM tab2 WHERE - - col1 * - - col0 * - - 64 + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 12 + col2 AS col0, - 53 + + ( + - col2 ) AS col2 FROM tab0
----
111
-152
22
-63
59
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col1 + 85 BETWEEN NULL AND 78
----
3

skipif mysql # not compatible
query I rowsort label-2635
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col1 + 85 BETWEEN NULL AND 78
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL NOT BETWEEN - col2 AND col0 + - + col0 )
----

query I rowsort
SELECT DISTINCT - 80 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT DISTINCT - 38 + COUNT( col0 ) FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-2638
SELECT DISTINCT - 38 + COUNT ( col0 ) FROM tab2 AS cor0
----
-35

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2639
SELECT - 57 * - COUNT( * ) + - 28 * 10 DIV - 77 AS col2 FROM tab1 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-2639
SELECT - 57 * - COUNT ( * ) + - 28 * 10 / - 77 AS col2 FROM tab1 AS cor0
----
174

query I rowsort
SELECT DISTINCT ( + + col0 ) FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL + - 61 + 10 * + col0 AS col0 FROM tab0 AS cor0
----
809
89
909

onlyif mysql # DIV for integer division: 
query I rowsort label-2642
SELECT + ( + + col1 ) * col0 + col2 + - - 72 DIV 8 AS col0 FROM tab1
----
4354
493
819

skipif mysql # not compatible
query I rowsort label-2642
SELECT + ( + + col1 ) * col0 + col2 + - - 72 / 8 AS col0 FROM tab1
----
4354
493
819

onlyif mysql # DIV for integer division: 
query I rowsort label-2643
SELECT ALL col0 - + - col0 + - col1 DIV ( + col2 ) FROM tab2
----
127
149
90

skipif mysql # not compatible
query I rowsort label-2643
SELECT ALL col0 - + - col0 + - col1 / ( + col2 ) FROM tab2
----
127
149
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2644
SELECT DISTINCT + MIN( + + col0 ) + + MAX( + 90 ) AS col0 FROM tab2
----
136

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT + MIN ( + + col0 ) + + MAX ( + 90 ) AS col0 FROM tab2
----
136

onlyif mysql # DIV for integer division: 
query I rowsort label-2645
SELECT ALL - 25 + + col0 + + col1 DIV 42 col1 FROM tab1
----
26
60
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2645
SELECT ALL - 25 + + col0 + + col1 / 42 col1 FROM tab1
----
26
60
67

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT COUNT( * ) + ( + ( 11 ) ) AS col1 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-2646
SELECT COUNT ( * ) + ( + ( 11 ) ) AS col1 FROM tab1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2647
SELECT ALL * FROM tab2 WHERE NOT col1 + + + CAST( + 97 AS SIGNED ) - + - col1 * col1 + + + 99 = ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2647
SELECT ALL * FROM tab2 WHERE NOT col1 + + + CAST ( + 97 AS INTEGER ) - + - col1 * col1 + + + 99 = ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 - - col0 * - 58 FROM tab0
----
-5025
-5625
-789

query II rowsort
SELECT ALL - ( - col2 ) - + 8 AS col0, col2 * - col1 * - ( - + ( + col2 ) ) FROM tab2
----
15
-26979
32
-123200
50
-225388

query I rowsort
SELECT ALL + col0 - + 55 AS col1 FROM tab2 AS cor0
----
-9
20
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 - + - col2 col0 FROM tab1 cor0
----
147
156
184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2652
SELECT + + col2 - + 65 + + CAST( NULL AS SIGNED ) + + col0 * + 29 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2652
SELECT + + col2 - + 65 + + CAST ( NULL AS INTEGER ) + + col0 * + 29 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2653
SELECT ALL - COUNT( * ), - 65 * 10 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0
-650

skipif mysql # not compatible
query II rowsort label-2653
SELECT ALL - COUNT ( * ), - 65 * 10 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0
-650

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + - 40 - - col0 + + col0 * - + 63 * - col0 / + 92 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * 45 AS col0 FROM tab0
----
3645
45
945

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT + - MAX( DISTINCT - - 49 ) FROM tab1 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-2656
SELECT + - MAX ( DISTINCT - - 49 ) FROM tab1 AS cor0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2657
SELECT ( + - CAST( + - col1 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2657
SELECT ( + - CAST ( + - col1 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT DISTINCT SUM( ALL + ( - col2 ) ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2658
SELECT DISTINCT SUM ( ALL + ( - col2 ) ) AS col1 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-2659
SELECT - - SUM( + 58 ) FROM tab0 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-2659
SELECT - - SUM ( + 58 ) FROM tab0 AS cor0
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2660
SELECT + col0, + col2 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-2660
SELECT + col0, + col2 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT - + col0 * + + col1 FROM tab1 cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT SUM( + + col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2662
SELECT SUM ( + + col2 ) AS col0 FROM tab2 AS cor0
----
121

query II rowsort
SELECT DISTINCT + + col1 AS col1, col2 AS col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

query I rowsort
SELECT ALL 90 FROM tab2 AS cor0 WHERE NULL IS NULL
----
90
90
90

query II rowsort
SELECT ALL + col1, - ( - 97 ) FROM tab0 WHERE NOT + 18 = - - ( - 62 ) * - 93
----
1
97
21
97
81
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2666
SELECT col0 DIV - - 94 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2666
SELECT col0 / - - 94 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + + 72 FROM tab1 WHERE 30 IN ( - col2 ) AND NOT 1 = + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( 4 ) col1, col2 - + - col2 FROM tab1
----
4
118
4
136
4
192

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT + SUM( ALL + col1 ) * - - ( - 0 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2669
SELECT + SUM ( ALL + col1 ) * - - ( - 0 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NOT + col2 <> col2
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2671
SELECT ( + + CAST( + col0 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2671
SELECT ( + + CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2672
SELECT ALL - col2 + - col1 + - col2 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL - col2 + - col1 + - col2 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2673
SELECT DISTINCT - - col2 + + 38 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2673
SELECT DISTINCT - - col2 + + 38 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 + + col1 * 77 + 43 FROM tab2
----
3993
5260
6012

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2675
SELECT DISTINCT - COUNT( * ) DIV - + COUNT( * ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT - COUNT ( * ) / - + COUNT ( * ) FROM tab0 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col0 * col0 * col2 + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2677
SELECT - col1 DIV - col1 + + + col2 AS col1 FROM tab1 cor0
----
60
69
97

skipif mysql # not compatible
query I rowsort label-2677
SELECT - col1 / - col1 + + + col2 AS col1 FROM tab1 cor0
----
60
69
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2678
SELECT DISTINCT + col0 DIV - + col1 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-2678
SELECT DISTINCT + col0 / - + col1 FROM tab0 AS cor0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2679
SELECT ALL - - ( SUM( - col1 ) ) + - 98 AS col0 FROM tab2 cor0
----
-293

skipif mysql # not compatible
query I rowsort label-2679
SELECT ALL - - ( SUM ( - col1 ) ) + - 98 AS col0 FROM tab2 cor0
----
-293

query I rowsort
SELECT ALL - - ( + - ( - ( - 69 ) ) ) FROM tab2 cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 - col1 <= + 85
----
0

skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 - col1 <= + 85
----
0

query I rowsort
SELECT col1 - - ( + col1 ) FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-2683
SELECT COUNT( DISTINCT + + col1 ) * - + MAX( + col2 ) - + 1 AS col0 FROM tab0
----
-298

skipif mysql # not compatible
query I rowsort label-2683
SELECT COUNT ( DISTINCT + + col1 ) * - + MAX ( + col2 ) - + 1 AS col0 FROM tab0
----
-298

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2684
SELECT ALL col0 + + col1 * - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL col0 + + col1 * - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2685
SELECT DISTINCT + CAST( + 39 AS SIGNED ) + - + 64 FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-2685
SELECT DISTINCT + CAST ( + 39 AS INTEGER ) + - + 64 FROM tab2
----
-25

query I rowsort
SELECT DISTINCT + 40 - col2 AS col1 FROM tab0
----
-59
-7
30

query I rowsort
SELECT 90 + + + ( + col0 ) AS col0 FROM tab0
----
105
177
187

query I rowsort
SELECT ( + - 4 ) + + col1 AS col0 FROM tab1 AS cor0
----
1
10
43

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 19 * - - col1 * + - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT ( col2 ), ( + + 3 ) FROM tab2 AS cor0
----
23
3
40
3
58
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2691
SELECT - COUNT( * ) * - - ( 21 ) * COUNT( * ) FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-2691
SELECT - COUNT ( * ) * - - ( 21 ) * COUNT ( * ) FROM tab1
----
-189

query II rowsort
SELECT DISTINCT + 43, col1 AS col1 FROM tab0
----
43
1
43
21
43
81

query I rowsort
SELECT + - 52 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

query I rowsort
SELECT DISTINCT - + 28 * + col2 * - + col1 FROM tab1 AS cor0 WHERE col0 <> - 88 + + 14
----
37632
8260
89488

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2695
SELECT DISTINCT + - CAST( MAX( + + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1, 97 AS col1 FROM tab1 AS cor0
----
NULL
97

skipif mysql # not compatible
query II rowsort label-2695
SELECT DISTINCT + - CAST ( MAX ( + + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1, 97 AS col1 FROM tab1 AS cor0
----
NULL
97

onlyif mysql # DIV for integer division: 
query II rowsort label-2696
SELECT ALL + col0 * col1 * col1 AS col1, 2 DIV 41 FROM tab2 AS cor0
----
119646
0
336675
0
379456
0

skipif mysql # not compatible
query II rowsort label-2696
SELECT ALL + col0 * col1 * col1 AS col1, 2 / 41 FROM tab2 AS cor0
----
119646
0
336675
0
379456
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT + + ( + COUNT( * ) ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2697
SELECT + + ( + COUNT ( * ) ) AS col0 FROM tab1 cor0
----
3

query II rowsort
SELECT + 43 AS col1, 47 FROM tab1
----
43
47
43
47
43
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2699
SELECT DISTINCT + MAX( + 4 ) AS col1 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-2699
SELECT DISTINCT + MAX ( + 4 ) AS col1 FROM tab1
----
4

onlyif mysql # DIV for integer division: 
query I rowsort label-2700
SELECT 63 + 66 + - - 56 DIV + col2 FROM tab2
----
129
130
131

skipif mysql # not compatible
query I rowsort label-2700
SELECT 63 + 66 + - - 56 / + col2 FROM tab2
----
129
130
131

query I rowsort
SELECT ALL + col1 + + + 3 AS col0 FROM tab2
----
54
70
80

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > ( - 1 )
----

query II rowsort
SELECT + col2, + col0 AS col1 FROM tab2 WHERE NOT + 39 < NULL
----

query I rowsort
SELECT 71 + + col0 AS col2 FROM tab1
----
122
156
162

query I rowsort
SELECT DISTINCT + col2 * 19 * - + col2 FROM tab2 AS cor0
----
-10051
-30400
-63916

onlyif mysql # DIV for integer division: 
query I rowsort label-2706
SELECT col2 DIV + 72 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2706
SELECT col2 / + 72 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - col1 * + + 11 - col0 * + 0 AS col0 FROM tab0 AS cor0
----
-11
-231
-891

query II rowsort
SELECT DISTINCT - 85 + - + col2, - col2 AS col0 FROM tab1
----
-144
-59
-153
-68
-181
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2709
SELECT - COUNT( * ) * + 66 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2709
SELECT - COUNT ( * ) * + 66 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2710
SELECT DISTINCT 43 DIV - ( - - 3 ) FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT 43 / - ( - - 3 ) FROM tab2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2711
SELECT ALL - col2 * - - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-2711
SELECT ALL - col2 * - - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT - 78 + - 71 FROM tab1 AS cor0
----
-149
-149
-149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2713
SELECT DISTINCT COUNT( * ) DIV + - 61 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2713
SELECT DISTINCT COUNT ( * ) / + - 61 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2714
SELECT - + col0 * - + 87 - - col1 + + col2 * - - col2 col0, - col2 DIV 57 + - ( - + col2 ) + - col0 AS col0 FROM tab1 AS cor0
----
10881
-27
12588
-24
13667
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2714
SELECT - + col0 * - + 87 - - col1 + + col2 * - - col2 col0, - col2 / 57 + - ( - + col2 ) + - col0 AS col0 FROM tab1 AS cor0
----
10881
-27
12588
-24
13667
44

query I rowsort
SELECT col1 * - 87 + 90 FROM tab2 AS cor0
----
-4347
-5739
-6609

onlyif mysql # DIV for integer division: 
query I rowsort label-2716
SELECT DISTINCT col2 DIV - + 99 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2716
SELECT DISTINCT col2 / - + 99 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + col1 + - 68 AS col0 FROM tab2 AS cor0
----
-1
-17
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2718
SELECT ALL col2 AS col1, col0 + + col2 + col0 + + CAST( NULL AS SIGNED ) * - 8 * - + col1 * col0 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-2718
SELECT ALL col2 AS col1, col0 + + col2 + col0 + + CAST ( NULL AS INTEGER ) * - 8 * - + col1 * col0 FROM tab2
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT DISTINCT + MIN( DISTINCT - + col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2719
SELECT DISTINCT + MIN ( DISTINCT - + col2 ) AS col2 FROM tab1
----
-96

query I rowsort
SELECT col2 + + - col0 FROM tab0 AS cor0 WHERE NOT col0 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT ALL + + MIN( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL + + MIN ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT ALL - + 19 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 93 * ( - col1 ) = - col0 - 26
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2724
SELECT + 57 DIV - col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2724
SELECT + 57 / - col0 FROM tab2
----
-1
0
0

query I rowsort
SELECT 97 * 68 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2fe2a68f220f75633efc85c20ce3176d

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL >= NULL
----

query I rowsort
SELECT - - col1 * - col1 - + + 84 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 + - - 52 * + 30 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT COUNT( DISTINCT ( - - col1 ) ) col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2728
SELECT COUNT ( DISTINCT ( - - col1 ) ) col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - - col0 ) col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query II rowsort label-2730
SELECT + col2 + + col2 AS col2, - 50 DIV col0 DIV + col0 FROM tab2 AS cor0
----
116
0
46
0
80
0

skipif mysql # not compatible
query II rowsort label-2730
SELECT + col2 + + col2 AS col2, - 50 / col0 / + col0 FROM tab2 AS cor0
----
116
0
46
0
80
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 * + col2 <> NULL
----

query II rowsort
SELECT DISTINCT + col2 + + col2 AS col0, - col0 + 69 * col1 AS col0 FROM tab0 AS cor0
----
198
-28
20
1362
94
5574

query I rowsort
SELECT DISTINCT + 71 + - col1 FROM tab2 AS cor0
----
-6
20
4

query I rowsort
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE - col2 + - - col1 + - col0 < + 98
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT DISTINCT MAX( ALL - + col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2735
SELECT DISTINCT MAX ( ALL - + col0 ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 + + col2 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT ALL - ( COUNT( * ) ) * - 9 * + + 13 + - - 5 FROM tab2
----
356

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL - ( COUNT ( * ) ) * - 9 * + + 13 + - - 5 FROM tab2
----
356

onlyif mysql # aggregate syntax: 
query I rowsort label-2738
SELECT - COUNT( * ) * MAX( - + col2 ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-2738
SELECT - COUNT ( * ) * MAX ( - + col2 ) FROM tab2
----
69

query I rowsort
SELECT + col2 * - - 49 FROM tab2
----
1127
1960
2842

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL >= col0 )
----

query I rowsort
SELECT DISTINCT col1 * + 68 * + + col1 * col1 AS col2 FROM tab2
----
20451884
31044244
9020268

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2742
SELECT - CAST( NULL AS SIGNED ) * AVG ( 57 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2742
SELECT - CAST ( NULL AS INTEGER ) * AVG ( 57 ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= + 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT 78 + COUNT( - - col0 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2744
SELECT 78 + COUNT ( - - col0 ) FROM tab0
----
81

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NULL NOT BETWEEN + 36 AND - + 42
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2746
SELECT + CAST( - col0 AS SIGNED ) * + col2 * col2 AS col2 FROM tab0
----
-33135
-8700
-950697

skipif mysql # not compatible
query I rowsort label-2746
SELECT + CAST ( - col0 AS INTEGER ) * + col2 * col2 AS col2 FROM tab0
----
-33135
-8700
-950697

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2747
SELECT ALL - COUNT( * ) FROM tab2 WHERE NULL NOT BETWEEN + CAST( NULL AS SIGNED ) * - col2 AND - - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2747
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) * - col2 AND - - CAST ( NULL AS INTEGER )
----
0

query II rowsort
SELECT ALL - ( + + col1 ), col2 AS col1 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2749
SELECT ALL - + col0 - + CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL - + col0 - + CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-144
-147
-159

query III rowsort
SELECT DISTINCT col1, - col0, - + col0 AS col1 FROM tab0 AS cor0
----
9 values hashing to b128e3130f5ff2a66de43aebfea36b65

query II rowsort
SELECT col1, col0 AS col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2752
SELECT - - CAST( + + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2752
SELECT - - CAST ( + + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2753
SELECT DISTINCT CAST( + - CAST( + COUNT( * ) AS SIGNED ) AS SIGNED ) - + 45 + - 52 FROM tab2 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-2753
SELECT DISTINCT CAST ( + - CAST ( + COUNT ( * ) AS INTEGER ) AS INTEGER ) - + 45 + - 52 FROM tab2 AS cor0
----
-100

query II rowsort
SELECT DISTINCT + col2 AS col1, - col1 AS col0 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

query I rowsort
SELECT DISTINCT + 7 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
7

query I rowsort
SELECT - - col1 - + ( col1 ) * - col0 * + - col2 AS col1 FROM tab0 AS cor0
----
-18249
-57024
-9602

query I rowsort
SELECT + col2 * 97 * - + ( + col0 ) FROM tab1
----
-474912
-486455
-600236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2758
SELECT ALL + COUNT( * ) DIV - 16 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL + COUNT ( * ) / - 16 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2759
SELECT col0 DIV - ( col2 ) FROM tab0
----
-8
0
0

skipif mysql # not compatible
query I rowsort label-2759
SELECT col0 / - ( col2 ) FROM tab0
----
-8
0
0

query I rowsort
SELECT DISTINCT - col0 * + 61 AS col1 FROM tab2
----
-2806
-3904
-4575

query II rowsort
SELECT + ( - 91 ) AS col1, 2 - col0 FROM tab0
----
-91
-13
-91
-85
-91
-95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2762
SELECT DISTINCT * FROM tab0 WHERE 73 * - - ( CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2762
SELECT DISTINCT * FROM tab0 WHERE 73 * - - ( CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2763
SELECT ALL + COUNT( ALL - - col2 ) AS col2, COUNT( * ) FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-2763
SELECT ALL + COUNT ( ALL - - col2 ) AS col2, COUNT ( * ) FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT ALL + COUNT( * ) AS col2 FROM tab2 cor0 WHERE col2 * + col0 > - 55 - + + col0
----
3

skipif mysql # not compatible
query I rowsort label-2764
SELECT ALL + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE col2 * + col0 > - 55 - + + col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2765
SELECT DISTINCT + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col2 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2765
SELECT DISTINCT + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col2 <= NULL
----
0

query I rowsort
SELECT 76 * + + col2 FROM tab2 AS cor0 WHERE NOT 40 BETWEEN NULL AND + 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2767
SELECT DISTINCT SUM( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-2767
SELECT DISTINCT SUM ( DISTINCT - col1 ) AS col2 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT col0 * - + 69 * - col2 AS col0 FROM tab1
----
337824
346035
426972

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 / + - col0 NOT IN ( + col1, + 32, + 35 )
----

query II rowsort
SELECT - + 41, - col0 AS col1 FROM tab2 AS cor0
----
-41
-46
-41
-64
-41
-75

query I rowsort
SELECT ALL - ( + 39 ) AS col0 FROM tab2 AS cor0
----
-39
-39
-39

query I rowsort
SELECT - 78 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-78
-78
-78

query II rowsort
SELECT + - 21, + 35 AS col1 FROM tab2 AS cor0
----
-21
35
-21
35
-21
35

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 - + 69 <= 30
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT - COUNT( ALL - + 63 ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2775
SELECT - COUNT ( ALL - + 63 ) AS col1 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2776
SELECT 27 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2776
SELECT 27 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2777
SELECT * FROM tab1 AS cor0 WHERE - 70 - - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-2777
SELECT * FROM tab1 AS cor0 WHERE - 70 - - CAST ( NULL AS INTEGER ) <= NULL
----

query I rowsort
SELECT + col0 + - + col2 AS col2 FROM tab0
----
-2
-32
77

query I rowsort
SELECT ALL + col0 * + 52 + + - col0 AS col1 FROM tab2
----
2346
3264
3825

query I rowsort
SELECT DISTINCT - ( + 9 ) AS col1 FROM tab1
----
-9

query I rowsort
SELECT - ( - col1 ) + + col0 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT - 50 + + - SUM( + - 71 ) col0 FROM tab2
----
163

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2782
SELECT - 50 + + - SUM ( + - 71 ) col0 FROM tab2
----
163

query I rowsort
SELECT DISTINCT ( - + 6 ) + - 2 + - + 67 FROM tab0
----
-75

query I rowsort
SELECT + 98 + col0 FROM tab0
----
113
185
195

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2785
SELECT - CAST( NULL AS DECIMAL ) / col1 * - 22 AS col2 FROM tab0 WHERE + 6 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2785
SELECT - CAST ( NULL AS REAL ) / col1 * - 22 AS col2 FROM tab0 WHERE + 6 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2786
SELECT CAST( + 28 AS SIGNED ) FROM tab2 WHERE + 47 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2786
SELECT CAST ( + 28 AS INTEGER ) FROM tab2 WHERE + 47 IS NULL
----

query I rowsort
SELECT ALL col0 + 4 * 48 * col1 + col1 FROM tab0
----
15648
290
4140

onlyif mysql # aggregate syntax: 
query I rowsort label-2788
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE + 98 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2788
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE + 98 <> NULL
----
0

query I rowsort
SELECT - 36 AS col2 FROM tab1 WHERE 70 IS NOT NULL
----
-36
-36
-36

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN + - 85 AND col2 / + 6
----

query I rowsort
SELECT DISTINCT + + 22 * - col1 - - 31 FROM tab0 AS cor0
----
-1751
-431
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2792
SELECT ALL + 10 * CAST( + + col1 AS SIGNED ) - + col0 + - col1 + - - 14 FROM tab1 AS cor0
----
-26
346
89

skipif mysql # not compatible
query I rowsort label-2792
SELECT ALL + 10 * CAST ( + + col1 AS INTEGER ) - + col0 + - col1 + - - 14 FROM tab1 AS cor0
----
-26
346
89

query I rowsort
SELECT ALL - 14 AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= - col2 * ( - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2794
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( 74 ) BETWEEN + - col0 AND - - 43
----
3

skipif mysql # not compatible
query I rowsort label-2794
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( 74 ) BETWEEN + - col0 AND - - 43
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2795
SELECT ALL + col0 * + 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-2795
SELECT ALL + col0 * + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + 80 FROM tab0
----
-1680
-6480
-80

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 + col2 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 24 - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2800
SELECT ALL COUNT( * ) * + + COUNT( * ), 25 AS col2 FROM tab2 AS cor0
----
9
25

skipif mysql # not compatible
query II rowsort label-2800
SELECT ALL COUNT ( * ) * + + COUNT ( * ), 25 AS col2 FROM tab2 AS cor0
----
9
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2801
SELECT ALL - - ( + 58 ) DIV - + COUNT( + - 46 ) col2 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2801
SELECT ALL - - ( + 58 ) / - + COUNT ( + - 46 ) col2 FROM tab0 AS cor0
----
-19

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT NULL NOT IN ( + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2803
SELECT DISTINCT + - 68 DIV + 66 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-2803
SELECT DISTINCT + - 68 / + 66 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2804
SELECT + + col2 DIV col2 * - col2 * + 27 + 53 + 71 FROM tab0 AS cor0
----
-1145
-146
-2549

skipif mysql # not compatible
query I rowsort label-2804
SELECT + + col2 / col2 * - col2 * + 27 + 53 + 71 FROM tab0 AS cor0
----
-1145
-146
-2549

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2805
SELECT col0 + + + 36 + + CAST( + - 87 AS SIGNED ) AS col2 FROM tab2 cor0
----
-5
13
24

skipif mysql # not compatible
query I rowsort label-2805
SELECT col0 + + + 36 + + CAST ( + - 87 AS INTEGER ) AS col2 FROM tab2 cor0
----
-5
13
24

query II rowsort
SELECT - col2 + - col0, col2 FROM tab1 cor0
----
-144
59
-147
96
-159
68

query I rowsort
SELECT ALL - col1 + - col0 FROM tab0 AS cor0 WHERE 37 / - col0 NOT BETWEEN NULL AND - col0
----
-108
-96
-98

query I rowsort
SELECT ALL - 82 + + + 18 AS col1 FROM tab2 AS cor0
----
-64
-64
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2809
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 63 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2809
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 63 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT ALL + 12 * - SUM( 49 ) AS col0 FROM tab2 AS cor0
----
-1764

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL + 12 * - SUM ( 49 ) AS col0 FROM tab2 AS cor0
----
-1764

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN col2 + - + 80 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2812
SELECT ALL col0 + + CAST( + - col1 AS SIGNED ) FROM tab0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-2812
SELECT ALL col0 + + CAST ( + - col1 AS INTEGER ) FROM tab0
----
-66
66
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2813
SELECT * FROM tab0 WHERE + 67 / - + CAST( - + col1 AS SIGNED ) + - - col0 * col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2813
SELECT * FROM tab0 WHERE + 67 / - + CAST ( - + col1 AS INTEGER ) + - - col0 * col0 IS NULL
----

query I rowsort
SELECT ALL 0 * 47 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( + - col0 ) AS col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - 38 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to e571541ae40cb0ddaca16e11f4359507

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2817
SELECT ALL CAST( NULL AS SIGNED ) * + 69 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2817
SELECT ALL CAST ( NULL AS INTEGER ) * + 69 FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT - COUNT( * ) FROM tab0, tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2818
SELECT - COUNT ( * ) FROM tab0, tab1 cor0
----
-9

query I rowsort
SELECT DISTINCT 3 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
3

query I rowsort
SELECT ALL + 1 AS col0 FROM tab2 cor0
----
1
1
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 / - 81 + - - 99 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 * - col2 * - col2 FROM tab0 AS cor0
----
-1000
-103823
-970299

query I rowsort
SELECT 67 * col2 * col1 FROM tab1
----
19765
214132
90048

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT - COUNT( * ) + + 3 AS col1 FROM tab2 WHERE NOT + 81 + + + 69 * - + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2824
SELECT - COUNT ( * ) + + 3 AS col1 FROM tab2 WHERE NOT + 81 + + + 69 * - + col1 IS NOT NULL
----
3

query I rowsort
SELECT ALL - 61 * col0 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2826
SELECT - CAST( - - COUNT( * ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2826
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT DISTINCT - MIN( + ( + 70 ) ) col1 FROM tab2
----
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2827
SELECT DISTINCT - MIN ( + ( + 70 ) ) col1 FROM tab2
----
-70

query I rowsort
SELECT DISTINCT 42 AS col0 FROM tab2 cor0
----
42

query I rowsort
SELECT DISTINCT - 98 * - col2 AS col0 FROM tab1 AS cor0
----
5782
6664
9408

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE ( NOT col0 NOT BETWEEN NULL AND - col1 )
----

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 AS cor0 WHERE NOT col1 / - - 51 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2832
SELECT ALL * FROM tab1 WHERE NOT - col2 <> - col1 - - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2832
SELECT ALL * FROM tab1 WHERE NOT - col2 <> - col1 - - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col1 * - - col0 * + - col2 AS col2 FROM tab1
----
25075
290836
68544

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <> ( + 94 )
----

query I rowsort
SELECT ALL 83 AS col1 FROM tab0 AS cor0 WHERE NOT - 77 <= NULL
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 + - + col1 * - col1 >= col1 + + + col0 * - - col2
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT ALL - - 21 * - COUNT( * ) + + - 27 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-2838
SELECT ALL - - 21 * - COUNT ( * ) + + - 27 FROM tab1 AS cor0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2839
SELECT DISTINCT - + col2 * CAST( - col2 AS SIGNED ) FROM tab2 cor0
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-2839
SELECT DISTINCT - + col2 * CAST ( - col2 AS INTEGER ) FROM tab2 cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT - - COUNT( DISTINCT + + col1 ) * + - 12 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-2840
SELECT - - COUNT ( DISTINCT + + col1 ) * + - 12 FROM tab1 AS cor0
----
-36

query I rowsort
SELECT + + col2 AS col2 FROM tab0 cor0 WHERE NOT - col0 IS NOT NULL AND NOT + col2 * - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 69 * + 15 + + 25 FROM tab0 AS cor0
----
-1010

query I rowsort
SELECT DISTINCT - + 91 + 66 AS col2 FROM tab2 cor0
----
-25

query I rowsort
SELECT ( + col2 ) + col2 AS col1 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT ALL - col1 + + + ( 68 ) FROM tab1
----
21
54
63

query I rowsort
SELECT DISTINCT 23 + - 49 - - - 11 AS col2 FROM tab1
----
-37

query I rowsort
SELECT ALL col1 - + ( col0 ) + + col1 AS col1 FROM tab0
----
-45
-95
147

query II rowsort
SELECT - col2 * - col1 + col0 * - col0 * + 61 AS col2, col1 FROM tab0
----
-461499
21
-573850
1
-9918
81

query II rowsort
SELECT DISTINCT col0 + + col1, + 65 AS col1 FROM tab0
----
108
65
96
65
98
65

query I rowsort
SELECT DISTINCT col1 - + ( + + 84 ) FROM tab2
----
-17
-33
-7

query I rowsort
SELECT ALL 58 * - + ( + 15 ) FROM tab1
----
-870
-870
-870

query I rowsort
SELECT DISTINCT - 60 * col2 AS col1 FROM tab2 AS cor0
----
-1380
-2400
-3480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2853
SELECT CAST( NULL AS SIGNED ) * - col2 * - col0 * + + 29 - + 62 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2853
SELECT CAST ( NULL AS INTEGER ) * - col2 * - col0 * + + 29 - + 62 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2854
SELECT DISTINCT - 31 DIV ( + col2 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2854
SELECT DISTINCT - 31 / ( + col2 ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2855
SELECT + MAX( + + 60 ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-2855
SELECT + MAX ( + + 60 ) FROM tab1
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT ALL + + MIN( col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL + + MIN ( col1 ) AS col1 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT - + ( COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT NULL <> col2
----
0

skipif mysql # not compatible
query I rowsort label-2857
SELECT - + ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT NULL <> col2
----
0

query II rowsort
SELECT + - col0, col0 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2859
SELECT DISTINCT + col2 AS col0, CAST( ( col1 ) AS SIGNED ) + + col2 col0 FROM tab1 AS cor0
----
59
64
68
115
96
110

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2859
SELECT DISTINCT + col2 AS col0, CAST ( ( col1 ) AS INTEGER ) + + col2 col0 FROM tab1 AS cor0
----
59
64
68
115
96
110

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2860
SELECT - CAST( - + SUM( DISTINCT + col0 ) AS SIGNED ) AS col0 FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-2860
SELECT - CAST ( - + SUM ( DISTINCT + col0 ) AS INTEGER ) AS col0 FROM tab1 cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT DISTINCT + - ( - - COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT + - ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 85 IS NOT NULL
----

query I rowsort
SELECT + 59 * - + 0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 56 * + 76 * + ( + - col0 ) FROM tab1 AS cor0
----
-217056
-361760
-387296

onlyif mysql # aggregate syntax: 
query II rowsort label-2865
SELECT DISTINCT - COUNT( * ), COUNT( * ) * 55 AS col2 FROM tab1 AS cor0
----
-3
165

skipif mysql # not compatible
query II rowsort label-2865
SELECT DISTINCT - COUNT ( * ), COUNT ( * ) * 55 AS col2 FROM tab1 AS cor0
----
-3
165

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT ( 15 ) * SUM( DISTINCT + 46 ) AS col1 FROM tab2
----
690

skipif mysql # not compatible
query I rowsort label-2866
SELECT ( 15 ) * SUM ( DISTINCT + 46 ) AS col1 FROM tab2
----
690

query I rowsort
SELECT ALL - 19 * - col1 AS col2 FROM tab2 WHERE NOT col0 IS NULL
----
1273
1463
969

query I rowsort
SELECT + 50 FROM tab1 WHERE NOT NULL > - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2869
SELECT ALL + SUM( 85 ) FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-2869
SELECT ALL + SUM ( 85 ) FROM tab1
----
255

onlyif mysql # aggregate syntax: 
query I rowsort label-2870
SELECT ALL COUNT( * ) * 35 AS col1 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL COUNT ( * ) * 35 AS col1 FROM tab0
----
105

onlyif mysql # DIV for integer division: 
query I rowsort label-2871
SELECT - col0 DIV - + 25 FROM tab1
----
2
3
3

skipif mysql # not compatible
query I rowsort label-2871
SELECT - col0 / - + 25 FROM tab1
----
2
3
3

query I rowsort
SELECT + col0 * + col1 FROM tab2 WHERE NOT - + col0 - - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT COUNT( * ) * + 41 * - 69 AS col1 FROM tab2 AS cor0
----
-8487

skipif mysql # not compatible
query I rowsort label-2873
SELECT COUNT ( * ) * + 41 * - 69 AS col1 FROM tab2 AS cor0
----
-8487

query I rowsort
SELECT DISTINCT + 13 AS col2 FROM tab1 AS cor0 WHERE + col0 <> 14 / - - 6
----
13

query I rowsort
SELECT DISTINCT + 74 FROM tab2 WHERE col1 * + col1 * - 88 <= - + col0
----
74

query I rowsort
SELECT ALL 21 * col1 FROM tab0
----
1701
21
441

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 3 BETWEEN - ( - 31 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2878
SELECT + CAST( - col0 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2878
SELECT + CAST ( - col0 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL - - ( + 70 ) FROM tab2 AS cor0
----
70
70
70

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 / - + 54 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2881
SELECT ALL - COUNT( * ), - 39 AS col1 FROM tab1 cor0
----
-3
-39

skipif mysql # not compatible
query II rowsort label-2881
SELECT ALL - COUNT ( * ), - 39 AS col1 FROM tab1 cor0
----
-3
-39

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 + - col1 + + 11 FROM tab0
----
-23
0
109

query I rowsort
SELECT col2 - 70 + - col0 AS col0 FROM tab2
----
-87
-93
-94

query II rowsort
SELECT DISTINCT - col2 - col0 + + - col1 + + 71 AS col0, col1 + - col2 * + 97 AS col2 FROM tab1
----
-135
-6549
-78
-5718
-90
-9298

query II rowsort
SELECT col1 - - - 62 * - col2 * - 91 AS col0, col1 * ( + col0 ) FROM tab2
----
-129715
2346
-225603
4928
-327169
5025

query I rowsort
SELECT col1 - - ( + + 60 ) AS col2 FROM tab0
----
141
61
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT ALL - ( COUNT( * ) ) - + - 84 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL - ( COUNT ( * ) ) - + - 84 FROM tab0
----
81

query III rowsort
SELECT * FROM tab2 WHERE 56 * + 49 + - col1 + - 72 * + col0 <= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 - - - 98 col2 FROM tab2 AS cor0
----
-144
-162
-173

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2891
SELECT ALL - SUM( + CAST( col0 AS SIGNED ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL - SUM ( + CAST ( col0 AS INTEGER ) ) FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT DISTINCT + MAX( DISTINCT 54 ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-2892
SELECT DISTINCT + MAX ( DISTINCT 54 ) FROM tab1 AS cor0
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2893
SELECT DISTINCT COUNT( * ) DIV - 21 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2893
SELECT DISTINCT COUNT ( * ) / - 21 AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2894
SELECT + + CAST( NULL AS SIGNED ) + - ( + col2 ) * - 96 * + col1 FROM tab2 WHERE NOT - 24 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2894
SELECT + + CAST ( NULL AS INTEGER ) + - ( + col2 ) * - 96 * + col1 FROM tab2 WHERE NOT - 24 IS NOT NULL
----

query I rowsort
SELECT - ( 29 ) FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-29
-29
-29

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2896
SELECT DISTINCT + ( - col1 ) AS col2, col2 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-2896
SELECT DISTINCT + ( - col1 ) AS col2, col2 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-51
NULL
-67
NULL
-77
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 56 * + col2 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT ALL + + SUM( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2898
SELECT ALL + + SUM ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
227

query I rowsort
SELECT + 33 * - 24 FROM tab2 AS cor0
----
-792
-792
-792

query I rowsort
SELECT DISTINCT + col0 * + ( - - col2 ) AS col2 FROM tab2 cor0
----
1058
2560
4350

query I rowsort
SELECT + col2 * - - 10 FROM tab1
----
590
680
960

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT + MIN( + 98 ) FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-2902
SELECT + MIN ( + 98 ) FROM tab2
----
98

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE NOT - 95 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2904
SELECT ALL - SUM( DISTINCT col0 ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-2904
SELECT ALL - SUM ( DISTINCT col0 ) AS col0 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT 74 * + + COUNT( * ) FROM tab1
----
222

skipif mysql # not compatible
query I rowsort label-2905
SELECT 74 * + + COUNT ( * ) FROM tab1
----
222

query II rowsort
SELECT ( + + col1 ) * + 9 AS col2, col1 AS col2 FROM tab0
----
189
21
729
81
9
1

query I rowsort
SELECT col1 + - - 89 AS col2 FROM tab1
----
103
136
94

query II rowsort
SELECT ALL col0 AS col2, col0 * + 63 FROM tab2
----
46
2898
64
4032
75
4725

query I rowsort
SELECT ALL 46 * + + 80 FROM tab2
----
3680
3680
3680

onlyif mysql # aggregate syntax: 
query I rowsort label-2910
SELECT ALL - COUNT( * ) + + MAX( DISTINCT + ( 81 ) ) FROM tab0 WHERE 51 * - 36 IN ( + + 91, col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL - COUNT ( * ) + + MAX ( DISTINCT + ( 81 ) ) FROM tab0 WHERE 51 * - 36 IN ( + + 91, col2 )
----
NULL

query II rowsort
SELECT - + 68 AS col0, + 94 * + + 16 * + col2 FROM tab2 AS cor0
----
-68
34592
-68
60160
-68
87232

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT + COUNT( ALL col2 ) col1 FROM tab2 WHERE NOT NULL BETWEEN 81 AND + 80
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2912
SELECT + COUNT ( ALL col2 ) col1 FROM tab2 WHERE NOT NULL BETWEEN 81 AND + 80
----
0

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE NULL NOT BETWEEN ( col1 ) AND col2
----

query I rowsort
SELECT ALL 56 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT COUNT( * ) + 69 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-2915
SELECT COUNT ( * ) + 69 FROM tab1
----
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2916
SELECT ALL - COUNT( * ) DIV 68 FROM tab2 WHERE NOT + col2 >= col2 * + col2
----
0

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL - COUNT ( * ) / 68 FROM tab2 WHERE NOT + col2 >= col2 * + col2
----
0

query I rowsort
SELECT DISTINCT + 17 * col1 AS col0 FROM tab2
----
1139
1309
867

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT ALL 89 * - MAX( - col2 * - col1 ) FROM tab1
----
-284444

skipif mysql # not compatible
query I rowsort label-2918
SELECT ALL 89 * - MAX ( - col2 * - col1 ) FROM tab1
----
-284444

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT COUNT( ALL + 87 ) AS col0 FROM tab2 WHERE NOT ( 56 / col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2919
SELECT COUNT ( ALL + 87 ) AS col0 FROM tab2 WHERE NOT ( 56 / col1 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2920
SELECT ALL + ( CAST( col2 AS SIGNED ) ) * + col2 FROM tab0
----
100
2209
9801

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL + ( CAST ( col2 AS INTEGER ) ) * + col2 FROM tab0
----
100
2209
9801

query I rowsort
SELECT DISTINCT + col1 / 29 AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - col0 )
----

query I rowsort
SELECT + col2 * 57 + + col0 FROM tab2
----
1357
2344
3381

query I rowsort
SELECT + 78 * - 29 + - 70 AS col2 FROM tab1
----
-2332
-2332
-2332

onlyif mysql # DIV for integer division: 
query I rowsort label-2924
SELECT + 68 DIV + 61 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2924
SELECT + 68 / + 61 AS col0 FROM tab1
----
1
1
1

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT NULL NOT IN ( ( - 40 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2926
SELECT + 1 DIV + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2926
SELECT + 1 / + col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2927
SELECT ALL * FROM tab1 WHERE - CAST( + col2 AS SIGNED ) * + col2 + + 91 * 34 > - col1
----

skipif mysql # not compatible
query III rowsort label-2927
SELECT ALL * FROM tab1 WHERE - CAST ( + col2 AS INTEGER ) * + col2 + + 91 * 34 > - col1
----

query I rowsort
SELECT + col1 * + ( - col0 * col0 ) AS col0 FROM tab0
----
-158949
-18225
-9409

query I rowsort
SELECT DISTINCT col1 + + 44 AS col1 FROM tab1
----
49
58
91

query I rowsort
SELECT DISTINCT + 14 - + 19 * + col1 FROM tab1
----
-252
-81
-879

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 col2 FROM tab0
----
98

onlyif mysql # DIV for integer division: 
query I rowsort label-2932
SELECT + 12 DIV + col2 + col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2932
SELECT + 12 / + col2 + col1 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT - 6 + + col2 * - col2 FROM tab0
----
-106
-2215
-9807

query I rowsort
SELECT col2 * - 92 FROM tab0
----
-4324
-9108
-920

query I rowsort
SELECT + col2 * col0 + ( col0 - col2 ) FROM tab0
----
673
947
9601

query I rowsort
SELECT DISTINCT 71 * 71 AS col2 FROM tab1
----
5041

onlyif mysql # DIV for integer division: 
query I rowsort label-2937
SELECT + col2 DIV - 37 + col0 AS col1 FROM tab1
----
49
84
90

skipif mysql # not compatible
query I rowsort label-2937
SELECT + col2 / - 37 + col0 AS col1 FROM tab1
----
49
84
90

query I rowsort
SELECT DISTINCT col2 + 76 FROM tab1 WHERE NOT NULL NOT IN ( + col1 + 11 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2939
SELECT ALL - COUNT( * ) AS col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2939
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( + col1 ) ) < - 70 / col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 99 FROM tab2 WHERE NOT NULL BETWEEN col2 + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT ( + COUNT( * ) ) + + 85 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-2942
SELECT ( + COUNT ( * ) ) + + 85 FROM tab1
----
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2943
SELECT ALL + 70 DIV - col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2943
SELECT ALL + 70 / - col0 FROM tab1
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT MAX( - ( 88 ) ) AS col1 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-2944
SELECT MAX ( - ( 88 ) ) AS col1 FROM tab2
----
-88

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 84 ) NOT BETWEEN NULL AND + col2 + - 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2946
SELECT COUNT( * ) FROM tab1 WHERE col0 IN ( - ( - col1 ) * col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2946
SELECT COUNT ( * ) FROM tab1 WHERE col0 IN ( - ( - col1 ) * col0 )
----
0

query I rowsort
SELECT DISTINCT 56 * AVG ( DISTINCT col1 ) FROM tab1 AS cor0 WHERE NOT + 57 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT + COUNT( ALL 78 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2948
SELECT + COUNT ( ALL 78 ) AS col2 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2949
SELECT ALL - CAST( + 13 AS SIGNED ) * - COUNT( * ) FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-2949
SELECT ALL - CAST ( + 13 AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0
----
39

query I rowsort
SELECT DISTINCT + col1 * 49 AS col0 FROM tab2 AS cor0
----
2499
3283
3773

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN NULL AND ( - 24 * - col2 - - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2952
SELECT * FROM tab0 AS cor0 WHERE NOT 2 NOT BETWEEN ( NULL ) AND + CAST( + 60 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2952
SELECT * FROM tab0 AS cor0 WHERE NOT 2 NOT BETWEEN ( NULL ) AND + CAST ( + 60 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( 17 + 34 ) IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * 18 FROM tab2
----
-1152
-1350
-828

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 95 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( col2 ) AS col0 FROM tab0 AS cor0 WHERE NULL >= 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2958
SELECT ALL 19 * - MAX( DISTINCT - col0 * col0 ) col1 FROM tab2 AS cor0
----
40204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2958
SELECT ALL 19 * - MAX ( DISTINCT - col0 * col0 ) col1 FROM tab2 AS cor0
----
40204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 70 col2 FROM tab1 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT + SUM( 90 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= 9 - - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2960
SELECT + SUM ( 90 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= 9 - - col0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2961
SELECT ALL - CAST( + col1 AS SIGNED ) + + col0 * 24 FROM tab1 AS cor0 WHERE ( col2 * col2 ) NOT BETWEEN ( col2 ) AND col0
----
1210
2035
2137

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL - CAST ( + col1 AS INTEGER ) + + col0 * 24 FROM tab1 AS cor0 WHERE ( col2 * col2 ) NOT BETWEEN ( col2 ) AND col0
----
1210
2035
2137

query I rowsort
SELECT DISTINCT + ( 42 ) * + col0 AS col0 FROM tab1 AS cor0
----
2142
3570
3822

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2963
SELECT DISTINCT + COUNT( * ) DIV + 46 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT + COUNT ( * ) / + 46 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2964
SELECT * FROM tab0 cor0 WHERE NOT ( + col1 + - CAST( NULL AS SIGNED ) / + 82 ) BETWEEN NULL AND + col2 / - col2
----

skipif mysql # not compatible
query III rowsort label-2964
SELECT * FROM tab0 cor0 WHERE NOT ( + col1 + - CAST ( NULL AS INTEGER ) / + 82 ) BETWEEN NULL AND + col2 / - col2
----

query I rowsort
SELECT DISTINCT - ( + 77 ) + + col2 FROM tab0
----
-30
-67
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - col0 col2 FROM tab1 WHERE NOT 87 * col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 41 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * - 26 + - ( + col2 ) AS col2 FROM tab2 WHERE NOT NULL BETWEEN ( col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT DISTINCT MIN( - ( + col1 ) ) + COUNT( * ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-2969
SELECT DISTINCT MIN ( - ( + col1 ) ) + COUNT ( * ) FROM tab2
----
-74

query I rowsort
SELECT ALL 57 * + + col1 * - col1 + col1 AS col0 FROM tab2
----
-148206
-255806
-337876

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) BETWEEN ( + col1 ) AND col0
----

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT DISTINCT + COUNT( ALL - 41 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT + COUNT ( ALL - 41 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT + ( MIN( ALL col0 ) ) col1 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2974
SELECT + ( MIN ( ALL col0 ) ) col1 FROM tab2
----
46

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2976
SELECT ( + col2 ) DIV 36 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2976
SELECT ( + col2 ) / 36 FROM tab1
----
1
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-2977
SELECT 15 DIV col2 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2977
SELECT 15 / col2 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 68 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 69 IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT + col1 / + col0 FROM tab2 WHERE 85 * 87 IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( 1 * 32 ) NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT + 4 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 cor1 ) WHERE NOT NULL IS NOT NULL
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2983
SELECT DISTINCT + CAST( - 21 AS SIGNED ) FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2983
SELECT DISTINCT + CAST ( - 21 AS INTEGER ) FROM tab2 AS cor0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2984
SELECT col1 + CAST( - 71 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE 48 * - col2 * - 4 = NULL
----

skipif mysql # not compatible
query I rowsort label-2984
SELECT col1 + CAST ( - 71 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE 48 * - col2 * - 4 = NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 55 - 0 BETWEEN - 64 * 43 AND ( 89 )
----

query I rowsort
SELECT + ( + 43 ) FROM tab2 cor0
----
43
43
43

query I rowsort
SELECT ( col2 ) / + col0 AS col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN col2 AND - + 29
----

query I rowsort
SELECT ALL + 29 + - col2 AS col2 FROM tab0 cor0
----
-18
-70
19

query I rowsort
SELECT ALL - + col0 + - 97 FROM tab2 AS cor0
----
-143
-161
-172

query III rowsort
SELECT * FROM tab1 WHERE col1 + + - col2 NOT BETWEEN - col1 AND col1 * col0
----
51
14
96
85
5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2991
SELECT ALL col0 * + col2 * - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2991
SELECT ALL col0 * + col2 * - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2992
SELECT DISTINCT MAX( 33 ) * + COUNT( * ) - - ( ( + CAST( 13 AS SIGNED ) ) ) + + 51 FROM tab1
----
163

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT MAX ( 33 ) * + COUNT ( * ) - - ( ( + CAST ( 13 AS INTEGER ) ) ) + + 51 FROM tab1
----
163

query I rowsort
SELECT - 45 AS col2 FROM tab0 WHERE NULL IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2994
SELECT + col2 - 97 DIV - 74 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-2994
SELECT + col2 - 97 / - 74 FROM tab0
----
100
11
48

query I rowsort
SELECT DISTINCT - 88 + + col1 FROM tab1
----
-41
-74
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2996
SELECT - col0 * + col0 + + col2 * - col0 + - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2996
SELECT - col0 * + col0 + + col2 * - col0 + - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 >= ( - - 34 )
----

query II rowsort
SELECT ALL ( - 31 ), col1 AS col2 FROM tab0
----
-31
1
-31
21
-31
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 87 * col0 * col1 + 99 BETWEEN NULL AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3000
SELECT DISTINCT 63 FROM tab2 AS cor0 WHERE col2 - - - CAST( 11 AS SIGNED ) IS NOT NULL
----
63

skipif mysql # not compatible
query I rowsort label-3000
SELECT DISTINCT 63 FROM tab2 AS cor0 WHERE col2 - - - CAST ( 11 AS INTEGER ) IS NOT NULL
----
63

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 22 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3002
SELECT - + CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3002
SELECT - + CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT 16 * + col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3004
SELECT + SUM( DISTINCT col2 ) * + - COUNT( * ) AS col1, 53 FROM tab0
----
-468
53

skipif mysql # not compatible
query II rowsort label-3004
SELECT + SUM ( DISTINCT col2 ) * + - COUNT ( * ) AS col1, 53 FROM tab0
----
-468
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3005
SELECT * FROM tab1 WHERE NOT ( NULL ) IS NOT NULL OR NOT CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3005
SELECT * FROM tab1 WHERE NOT ( NULL ) IS NOT NULL OR NOT CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * 18 AS col2 FROM tab0
----
1458
18
378

query I rowsort
SELECT DISTINCT col0 * - + col0 AS col1 FROM tab2
----
-2116
-4096
-5625

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 32 * + col1 / - col0 * 65 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT - ( + MIN( ALL col0 ) ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3009
SELECT - ( + MIN ( ALL col0 ) ) AS col0 FROM tab2 cor0 WHERE NOT ( NULL ) < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 >= ( + + col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-3010
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 >= ( + + col2 )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3011
SELECT ALL + + MAX( DISTINCT - + col1 ) * - 7 AS col0 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-3011
SELECT ALL + + MAX ( DISTINCT - + col1 ) * - 7 AS col0 FROM tab1 AS cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3012
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 32 + - AVG ( - 70 ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3012
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 32 + - AVG ( - 70 ) FROM tab0 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - ( - col1 ) ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( + col1 )
----

query I rowsort
SELECT ALL col1 * ( - 46 ) AS col0 FROM tab2 AS cor0
----
-2346
-3082
-3542

onlyif mysql # aggregate syntax: 
query I rowsort label-3016
SELECT ALL + MAX( DISTINCT col1 ) + - COUNT( * ) FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL + MAX ( DISTINCT col1 ) + - COUNT ( * ) FROM tab1
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 68 col1 FROM tab2 WHERE - col0 NOT BETWEEN NULL AND ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3018
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) - + + col2 * col2 / 17 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3018
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) - + + col2 * col2 / 17 FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 + 91 + col1 + - - col2 + - 27 AS col0 FROM tab0
----
182
207
261

query I rowsort
SELECT DISTINCT - 81 * + 33 + + col1 AS col0 FROM tab2
----
-2596
-2606
-2622

query II rowsort
SELECT - 86 AS col0, col2 FROM tab0 cor0
----
-86
10
-86
47
-86
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3022
SELECT DISTINCT - CAST( - 46 AS SIGNED ) col2 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3022
SELECT DISTINCT - CAST ( - 46 AS INTEGER ) col2 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col1 * - 94 / - + col1 * + col0 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3024
SELECT ALL COUNT( * ) + 95 col0, - 80 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
95
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3024
SELECT ALL COUNT ( * ) + 95 col0, - 80 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
95
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( - col0 + col2 + - col2 IN ( col2 - - 26 * col0 ) )
----
3

skipif mysql # not compatible
query I rowsort label-3025
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( - col0 + col2 + - col2 IN ( col2 - - 26 * col0 ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT ALL ( + - COUNT( * ) ) - - COUNT( * ) AS col1 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3026
SELECT ALL ( + - COUNT ( * ) ) - - COUNT ( * ) AS col1 FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + 26 + - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 61 IN ( + col1, 33 * - ( - - col0 ) + - - col2 * 66 )
----

query II rowsort
SELECT ALL 34 * + col1 - + 14, col2 AS col2 FROM tab0 AS cor0
----
20
99
2740
47
700
10

query I rowsort
SELECT DISTINCT + 79 + - 0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT ( SUM( ALL col2 ) ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3031
SELECT ( SUM ( ALL col2 ) ) AS col2 FROM tab0 AS cor0
----
156

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( 58 - - col2 + - col0 ) IN ( ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + - col1 col1 FROM tab0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3034
SELECT ALL 57 AS col0 FROM tab1 WHERE - col1 * - + col0 NOT BETWEEN NULL AND ( - + col1 * - col0 - - 30 + - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL 57 AS col0 FROM tab1 WHERE - col1 * - + col0 NOT BETWEEN NULL AND ( - + col1 * - col0 - - 30 + - - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3035
SELECT DISTINCT CAST( 47 AS SIGNED ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT CAST ( 47 AS INTEGER ) FROM tab1
----
47

query I rowsort
SELECT col2 * - 6 AS col2 FROM tab2 WHERE NOT - 6 < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col1 = - col0
----

query II rowsort
SELECT DISTINCT + 19, - col1 AS col2 FROM tab1
----
19
-14
19
-47
19
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3039
SELECT ALL 59 / col2 - CAST( + + col1 AS SIGNED ) AS col2 FROM tab0 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-3039
SELECT ALL 59 / col2 - CAST ( + + col1 AS INTEGER ) AS col2 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3040
SELECT - - 91 FROM tab0 WHERE NOT col1 + CAST( NULL AS SIGNED ) <> + - col1 - - + col2
----

skipif mysql # not compatible
query I rowsort label-3040
SELECT - - 91 FROM tab0 WHERE NOT col1 + CAST ( NULL AS INTEGER ) <> + - col1 - - + col2
----

query II rowsort
SELECT + 49, 70 AS col0 FROM tab1 AS cor0
----
49
70
49
70
49
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT MIN( DISTINCT + 53 ) FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-3042
SELECT MIN ( DISTINCT + 53 ) FROM tab1 AS cor0
----
53

query I rowsort
SELECT 1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3044
SELECT CAST( + + col0 AS SIGNED ) + col1 - - ( - col0 ) * col2 FROM tab0 cor0
----
-609
-762
-9505

skipif mysql # not compatible
query I rowsort label-3044
SELECT CAST ( + + col0 AS INTEGER ) + col1 - - ( - col0 ) * col2 FROM tab0 cor0
----
-609
-762
-9505

query I rowsort
SELECT + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col2 / + - col1 ) >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT + 76 + - - COUNT( DISTINCT - col1 ) - 34 * - + 74 AS col1 FROM tab1 AS cor0
----
2595

skipif mysql # not compatible
query I rowsort label-3047
SELECT + 76 + - - COUNT ( DISTINCT - col1 ) - 34 * - + 74 AS col1 FROM tab1 AS cor0
----
2595

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3048
SELECT - + COUNT( DISTINCT + 76 ) + MAX( 33 ) * + CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3048
SELECT - + COUNT ( DISTINCT + 76 ) + MAX ( 33 ) * + CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 44 + + col2 * - + col1 - - + col1 BETWEEN NULL AND - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 38 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col0 * col0 AS col2, 27 * 56 AS col2 FROM tab0 AS cor0
----
-225
1512
-7569
1512
-9409
1512

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT ALL - COUNT( + + 16 ) + 88 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL - COUNT ( + + 16 ) + 88 FROM tab1 AS cor0
----
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - 74, col0 )
----

query I rowsort
SELECT ALL col2 * + col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 * col0 + 54 col2 FROM tab2 WHERE - 89 * + col2 * - + ( 50 ) + col1 / - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3056
SELECT CAST( NULL AS SIGNED ) * + 68 * COUNT( * ), - 38 AS col0 FROM tab2
----
NULL
-38

skipif mysql # not compatible
query II rowsort label-3056
SELECT CAST ( NULL AS INTEGER ) * + 68 * COUNT ( * ), - 38 AS col0 FROM tab2
----
NULL
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3057
SELECT ALL CAST( NULL AS SIGNED ) * - 10 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL CAST ( NULL AS INTEGER ) * - 10 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3058
SELECT ALL CAST( 85 AS SIGNED ) * col0 + - col0 FROM tab0
----
1260
7308
8148

skipif mysql # not compatible
query I rowsort label-3058
SELECT ALL CAST ( 85 AS INTEGER ) * col0 + - col0 FROM tab0
----
1260
7308
8148

query I rowsort
SELECT - ( col1 ) * col1 FROM tab1
----
-196
-2209
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT + 51 * + COUNT( * ) AS col2 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-3060
SELECT + 51 * + COUNT ( * ) AS col2 FROM tab1
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3061
SELECT CAST( + CAST( + col0 AS SIGNED ) AS SIGNED ) - col2 AS col2 FROM tab0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-3061
SELECT CAST ( + CAST ( + col0 AS INTEGER ) AS INTEGER ) - col2 AS col2 FROM tab0
----
-2
-32
77

query I rowsort
SELECT DISTINCT + - col2 - - + col2 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3063
SELECT ALL - 38, CAST( NULL AS SIGNED ) * col2 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( + 77 + - col2 )
----

skipif mysql # not compatible
query II rowsort label-3063
SELECT ALL - 38, CAST ( NULL AS INTEGER ) * col2 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( + 77 + - col2 )
----

query I rowsort
SELECT ALL - 48 + + col2 FROM tab0
----
-1
-38
51

query I rowsort
SELECT DISTINCT 16 FROM tab2 WHERE NULL BETWEEN - 57 AND ( + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT - COUNT( ALL - col0 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3066
SELECT - COUNT ( ALL - col0 ) AS col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-3067
SELECT ALL + 21 + COUNT( * ) AS col1, COUNT( + ( - col1 ) ) AS col2 FROM tab2
----
24
3

skipif mysql # not compatible
query II rowsort label-3067
SELECT ALL + 21 + COUNT ( * ) AS col1, COUNT ( + ( - col1 ) ) AS col2 FROM tab2
----
24
3

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL < 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT - 49 * + - 20 * COUNT( * ) FROM tab2
----
2940

skipif mysql # not compatible
query I rowsort label-3069
SELECT - 49 * + - 20 * COUNT ( * ) FROM tab2
----
2940

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT ALL 89 * + COUNT( * ) - - + COUNT( * ) col1 FROM tab0
----
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3070
SELECT ALL 89 * + COUNT ( * ) - - + COUNT ( * ) col1 FROM tab0
----
270

query I rowsort
SELECT DISTINCT - 38 * - + 98 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3072
SELECT DISTINCT + 23 DIV - 28 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3072
SELECT DISTINCT + 23 / - 28 FROM tab1 AS cor0
----
0

query II rowsort
SELECT ALL + col1 AS col2, 64 + - col2 * col0 + + 29 FROM tab1 AS cor0
----
14
-4803
47
-6095
5
-4922

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * - 58 * - - col0 * col2 NOT IN ( col0 )
----

query I rowsort
SELECT ALL - 30 * - - col0 + col1 FROM tab0 AS cor0 WHERE + col0 / - col0 IS NULL
----

query I rowsort
SELECT ALL col2 + + - 90 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-32
-50
-67

query II rowsort
SELECT DISTINCT + 58 AS col2, - 3 * - + col2 FROM tab0 AS cor0
----
58
141
58
297
58
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3078
SELECT 39 DIV 75 * + col0 * - col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3078
SELECT 39 / 75 * + col0 * - col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * - - 88 AS col1 FROM tab1
----
5192
5984
8448

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE + - 17 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3081
SELECT ALL + ( CAST( - ( + 98 ) AS SIGNED ) ) AS col1 FROM tab1
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL + ( CAST ( - ( + 98 ) AS INTEGER ) ) AS col1 FROM tab1
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3082
SELECT ALL - COUNT( * ) * - 0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3082
SELECT ALL - COUNT ( * ) * - 0 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0

query I rowsort
SELECT col0 * + + 70 FROM tab1
----
3570
5950
6370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3084
SELECT COUNT( + - ( + - col0 ) ) DIV COUNT( * ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3084
SELECT COUNT ( + - ( + - col0 ) ) / COUNT ( * ) AS col2 FROM tab0
----
1

query I rowsort
SELECT 16 * - 81 FROM tab1, tab1 AS cor0
----
9 values hashing to 7ebdc1a2817bf3ac65294d151289d11f

query I rowsort
SELECT + 84 * + col1 FROM tab2 AS cor0
----
4284
5628
6468

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 77 col1, - 35 FROM tab0
----
77
-35

query I rowsort
SELECT ALL + + 9 * - col1 FROM tab1 AS cor0
----
-126
-423
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-3089
SELECT + - col1 DIV + - col1 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3089
SELECT + - col1 / + - col1 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE + 26 = 4
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3091
SELECT DISTINCT + CAST( + col2 AS SIGNED ) + - col2 AS col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3091
SELECT DISTINCT + CAST ( + col2 AS INTEGER ) + - col2 AS col2 FROM tab2 cor0
----
0

query II rowsort
SELECT - 13 AS col0, - 69 AS col0 FROM tab0 AS cor0
----
-13
-69
-13
-69
-13
-69

query I rowsort
SELECT ALL 0 + - 83 FROM tab0 AS cor0 WHERE NOT ( ( col1 ) IS NULL )
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT SUM( - col0 ) * + - 8 + + 58 + 6 FROM tab2 AS cor0
----
1544

skipif mysql # not compatible
query I rowsort label-3094
SELECT SUM ( - col0 ) * + - 8 + + 58 + 6 FROM tab2 AS cor0
----
1544

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT 16 + + - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-3095
SELECT 16 + + - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
7

query I rowsort
SELECT DISTINCT + - ( + - col1 ) FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) = - 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3098
SELECT DISTINCT + + COUNT( * ) + + COUNT( * ) FROM tab2 WHERE NOT - + col2 IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-3098
SELECT DISTINCT + + COUNT ( * ) + + COUNT ( * ) FROM tab2 WHERE NOT - + col2 IS NULL
----
6

query I rowsort
SELECT DISTINCT col1 + 17 FROM tab0
----
18
38
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3100
SELECT DISTINCT * FROM tab2 WHERE - + 95 NOT BETWEEN + CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3100
SELECT DISTINCT * FROM tab2 WHERE - + 95 NOT BETWEEN + CAST ( NULL AS INTEGER ) AND NULL
----

query I rowsort
SELECT 87 + - col1 AS col2 FROM tab1
----
40
73
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 * - 26 + - col1 col0 FROM tab1
----
-11055
-111249
-18578

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3103
SELECT DISTINCT - COUNT( * ) - + CAST( NULL AS SIGNED ) * - + SUM( - col1 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT - COUNT ( * ) - + CAST ( NULL AS INTEGER ) * - + SUM ( - col1 ) AS col2 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3104
SELECT ALL + 83 DIV col2 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-3104
SELECT ALL + 83 / col2 FROM tab0
----
0
1
8

onlyif mysql # DIV for integer division: 
query I rowsort label-3105
SELECT 53 - 32 DIV - col2 FROM tab2 AS cor0
----
53
53
54

skipif mysql # not compatible
query I rowsort label-3105
SELECT 53 - 32 / - col2 FROM tab2 AS cor0
----
53
53
54

query I rowsort
SELECT ALL 46 + - col0 FROM tab0
----
-41
-51
31

query I rowsort
SELECT DISTINCT 31 + 69 AS col0 FROM tab2
----
100

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3108
SELECT ALL MAX( DISTINCT + 33 ) DIV + COUNT( * ) FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-3108
SELECT ALL MAX ( DISTINCT + 33 ) / + COUNT ( * ) FROM tab1
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 40 col2 FROM tab0
----
-3480
-3880
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-3110
SELECT + COUNT( col2 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3110
SELECT + COUNT ( col2 ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3111
SELECT DISTINCT CAST( col1 AS SIGNED ) DIV col2 DIV - 48 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3111
SELECT DISTINCT CAST ( col1 AS INTEGER ) / col2 / - 48 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT DISTINCT - SUM( - col2 ) AS col0 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-3112
SELECT DISTINCT - SUM ( - col2 ) AS col0 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3113
SELECT DISTINCT + COUNT( DISTINCT col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3113
SELECT DISTINCT + COUNT ( DISTINCT col0 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - + 40 AS col1 FROM tab0 AS cor0
----
-40
-40
-40

query I rowsort
SELECT + - 29 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 + - col2 IS NULL
----
-29
-29
-29

query I rowsort
SELECT + 26 * - col2 AS col2 FROM tab0 AS cor0
----
-1222
-2574
-260

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 42 col2 FROM tab1 AS cor0
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3118
SELECT ALL + MAX( + - col1 ) AS col2 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3118
SELECT ALL + MAX ( + - col1 ) AS col2 FROM tab1 cor0
----
-5

query I rowsort
SELECT ALL + + col1 * - ( col1 ) AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT ALL - - col2 * ( + - 62 ) FROM tab0 cor0 WHERE NOT ( - + col1 ) - + + 87 <= - col2 * - col1
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE NOT NULL IN ( - col2, 66 )
----

query II rowsort
SELECT DISTINCT col1 AS col1, 6 + + ( + col2 ) AS col2 FROM tab1
----
14
102
47
74
5
65

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col1 <> - col1
----

query I rowsort
SELECT DISTINCT - + col2 FROM tab0 WHERE NOT 81 + - - col2 IS NULL
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 22 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3126
SELECT DISTINCT - col0 DIV 19 AS col0 FROM tab2 AS cor0
----
-2
-3

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT - col0 / 19 AS col0 FROM tab2 AS cor0
----
-2
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3127
SELECT + col2, col2 - - col0 + - ( + col2 ) / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-3127
SELECT + col2, col2 - - col0 + - ( + col2 ) / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + - col2 NOT BETWEEN - col2 AND + + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 64, col2 AS col1 FROM tab2 AS cor0
----
64
23
64
40
64
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( col2 ) <> + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - col1 * + 35 + - col0 + col1 FROM tab1 WHERE NOT NULL NOT BETWEEN + col1 / + col0 AND NULL
----

query I rowsort
SELECT 49 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # aggregate syntax: 
query I rowsort label-3133
SELECT DISTINCT - MIN( ALL + - col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3133
SELECT DISTINCT - MIN ( ALL + - col0 ) FROM tab2 AS cor0
----
75

query I rowsort
SELECT ALL - col1 FROM tab2 cor0 WHERE NOT 22 IS NOT NULL
----

query I rowsort
SELECT col2 * - + 57 * + col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-125913
-558657
-5700

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT DISTINCT MIN( DISTINCT + 98 ) AS col0 FROM tab1 cor0
----
98

skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT MIN ( DISTINCT + 98 ) AS col0 FROM tab1 cor0
----
98

query III rowsort
SELECT * FROM tab1 WHERE col2 NOT BETWEEN - + 81 AND - col0 * 87 * - - 27 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE - col2 NOT BETWEEN - 86 AND + col1
----
97
1
99

query I rowsort
SELECT ALL - col1 + 83 AS col1 FROM tab1
----
36
69
78

query I rowsort
SELECT ALL 24 + col2 FROM tab2
----
47
64
82

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 85 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT DISTINCT MIN( DISTINCT + - col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT MIN ( DISTINCT + - col2 ) FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT DISTINCT 22 - MAX( + 15 ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-3143
SELECT DISTINCT 22 - MAX ( + 15 ) FROM tab1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3144
SELECT ALL - COUNT( + - 68 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3144
SELECT ALL - COUNT ( + - 68 ) FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-3145
SELECT + 88 DIV - 2 + + col0 col0, col1 * - col1 AS col2 FROM tab0 cor0
----
-29
-6561
43
-441
53
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3145
SELECT + 88 / - 2 + + col0 col0, col1 * - col1 AS col2 FROM tab0 cor0
----
-29
-6561
43
-441
53
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-3146
SELECT - col2 DIV col0 * + ( 0 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3146
SELECT - col2 / col0 * + ( 0 ) FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * - col1 * - - col0 AS col1 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3148
SELECT ALL + col1 * + + ( CAST( NULL AS SIGNED ) ) * - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL + col1 * + + ( CAST ( NULL AS INTEGER ) ) * - col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3149
SELECT DISTINCT col0 * col1, CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
425
-5
4277
-47
714
-14

skipif mysql # not compatible
query II rowsort label-3149
SELECT DISTINCT col0 * col1, CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
425
-5
4277
-47
714
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - 84 col2 FROM tab2
----
-1932
-3360
-4872

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3151
SELECT + CAST( NULL AS SIGNED ) / + 6 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3151
SELECT + CAST ( NULL AS INTEGER ) / + 6 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 7 * - col0 FROM tab1
----
-357
-595
-637

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= - 66
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3154
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 * + + 75 * 80 * + 62 + - - 45 + + col1 + + col2 NOT IN ( - CAST( NULL AS SIGNED ), 9 )
----

skipif mysql # not compatible
query III rowsort label-3154
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 * + + 75 * 80 * + 62 + - - 45 + + col1 + + col2 NOT IN ( - CAST ( NULL AS INTEGER ), 9 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - col2 + - col0 col0 FROM tab0
----
123
2
3792

query I rowsort
SELECT DISTINCT + col2 + + ( - 35 ) AS col1 FROM tab0 cor0
----
-25
12
64

skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = 38 / 0
----

query II rowsort
SELECT 84 AS col0, + col0 AS col1 FROM tab2
----
84
46
84
64
84
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col1 * col0 + + - col2 + - col0 col1 FROM tab2 AS cor0
----
2328
4901
4959

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT MIN( - - 58 ) + + + 7 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-3160
SELECT MIN ( - - 58 ) + + + 7 FROM tab0 AS cor0
----
65

query I rowsort
SELECT ALL + 61 + + col1 FROM tab1 AS cor0
----
108
66
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + - col1 + + + col0 - - 46 * - col1 col2 FROM tab2 AS cor0
----
-3473
-6558
-6893

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT + COUNT( * ) + - ( + + MIN( ALL col1 ) ) AS col1 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3163
SELECT + COUNT ( * ) + - ( + + MIN ( ALL col1 ) ) AS col1 FROM tab0 AS cor0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 82 + + col2 col1 FROM tab1 AS cor0
----
4278
7029
7530

query I rowsort
SELECT col0 * + col2 AS col0 FROM tab2 WHERE col2 * - + col1 + col0 IS NOT NULL
----
1058
2560
4350

query I rowsort
SELECT ALL - ( col1 ) + - + 44 AS col1 FROM tab2
----
-111
-121
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-3167
SELECT ALL COUNT( * ) + - COUNT( * ), COUNT( * ) AS col1 FROM tab2
----
0
3

skipif mysql # not compatible
query II rowsort label-3167
SELECT ALL COUNT ( * ) + - COUNT ( * ), COUNT ( * ) AS col1 FROM tab2
----
0
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3168
SELECT DISTINCT col1 * col0 DIV + - col0 - col2 FROM tab0
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-3168
SELECT DISTINCT col1 * col0 / + - col0 - col2 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT ALL - 14 + - col0 FROM tab0
----
-101
-111
-29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3170
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) - - 45 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-3170
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) - - 45 FROM tab0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3171
SELECT ALL - col2 * + 1 - - + col0 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3171
SELECT ALL - col2 * + 1 - - + col0 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 * col1 * - 63 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 - col1 + - col0 FROM tab2 AS cor0
----
-143
-205
-217

query I rowsort
SELECT ALL - col1 * + ( col2 ) * + col1 FROM tab0 AS cor0
----
-308367
-4410
-99

query II rowsort
SELECT DISTINCT + col1 AS col2, 25 FROM tab0
----
1
25
21
25
81
25

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT DISTINCT SUM( ALL + col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-3176
SELECT DISTINCT SUM ( ALL + col2 ) AS col0 FROM tab1
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 84 col2 FROM tab2 AS cor0
----
-84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3178
SELECT - - MAX( + - CAST( + + 72 AS SIGNED ) ) AS col2 FROM tab2 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-3178
SELECT - - MAX ( + - CAST ( + + 72 AS INTEGER ) ) AS col2 FROM tab2 cor0
----
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 76 AS col1, col0 col0 FROM tab2 AS cor0
----
-76
46
-76
64
-76
75

query II rowsort
SELECT ALL - col2, - col0 * + col0 * 97 AS col0 FROM tab1 AS cor0
----
-59
-700825
-68
-803257
-96
-252297

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3181
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - + COUNT( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT + CAST ( NULL AS REAL ) * - + COUNT ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + col2 * - col0 * + 34 AS col0 FROM tab1 AS cor0
----
10060090
14306656
15980544

query II rowsort
SELECT 73 AS col2, ( - 20 ) * col2 FROM tab2 AS cor0
----
73
-1160
73
-460
73
-800

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * col1 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL ( col1 ) + - col2 AS col2 FROM tab0
----
-98
11
34

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT - col2 + - - col2 + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 * + col2 * - 38 FROM tab1
----
-132278
-175712
-350208

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3189
SELECT DISTINCT + + CAST( 25 AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL > + - col2 + - col2
----

skipif mysql # not compatible
query I rowsort label-3189
SELECT DISTINCT + + CAST ( 25 AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL > + - col2 + - col2
----

query I rowsort
SELECT DISTINCT 71 * + 16 FROM tab1
----
1136

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3191
SELECT - COUNT( * ) * + 63 - CAST( + + 74 AS SIGNED ) FROM tab2 AS cor0
----
-263

skipif mysql # not compatible
query I rowsort label-3191
SELECT - COUNT ( * ) * + 63 - CAST ( + + 74 AS INTEGER ) FROM tab2 AS cor0
----
-263

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT COUNT( * ) * 49 AS col1 FROM tab0 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-3192
SELECT COUNT ( * ) * 49 AS col1 FROM tab0 AS cor0
----
147

query I rowsort
SELECT DISTINCT - col1 * + col2 * 44 * ( - - 24 ) AS col0 FROM tab2 AS cor0
----
-1238688
-3252480
-4103616

onlyif mysql # DIV for integer division: 
query I rowsort label-3194
SELECT - 45 + + col1 DIV + 3 + - - ( 45 ) * - 66 FROM tab0 AS cor0
----
-2988
-3008
-3015

skipif mysql # not compatible
query I rowsort label-3194
SELECT - 45 + + col1 / + 3 + - - ( 45 ) * - 66 FROM tab0 AS cor0
----
-2988
-3008
-3015

query I rowsort
SELECT ALL 16 + 86 + + col1 FROM tab0 AS cor0
----
103
123
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3196
SELECT col2 * ( + - col0 ) / - + col0 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3196
SELECT col2 * ( + - col0 ) / - + col0 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 95 + - - col2 * 56 * - col0 FROM tab1
----
-274081
-280745
-346433

query I rowsort
SELECT ALL - col2 * + - col0 FROM tab1 WHERE 59 <= ( - 62 * - 17 )
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT DISTINCT - COUNT( * ) * 75 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-3199
SELECT DISTINCT - COUNT ( * ) * 75 FROM tab2
----
-225

query I rowsort
SELECT - col0 * - + 45 * - ( - col2 ) AS col0 FROM tab2 AS cor0
----
115200
195750
47610

onlyif mysql # DIV for integer division: 
query I rowsort label-3201
SELECT + + col1 DIV 32 * 75 FROM tab2 AS cor0
----
150
150
75

skipif mysql # not compatible
query I rowsort label-3201
SELECT + + col1 / 32 * 75 FROM tab2 AS cor0
----
150
150
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3202
SELECT ALL - ( + col1 ) * + col2 DIV - + ( + col2 ) + + - 24 + col1 + - col2 AS col0 FROM tab1 AS cor0
----
-73
-92
2

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL - ( + col1 ) * + col2 / - + ( + col2 ) + + - 24 + col1 + - col2 AS col0 FROM tab1 AS cor0
----
-73
-92
2

query II rowsort
SELECT DISTINCT + col0 AS col2, col0 AS col1 FROM tab0 cor0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3204
SELECT * FROM tab0 AS cor0 WHERE - col2 / - col2 NOT IN ( CAST( - + col2 AS SIGNED ), col2, - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3204
SELECT * FROM tab0 AS cor0 WHERE - col2 / - col2 NOT IN ( CAST ( - + col2 AS INTEGER ), col2, - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3205
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT CAST( NULL AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-3205
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT ALL - MIN( - col2 ) + + 53 col1 FROM tab2 AS cor0
----
111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3206
SELECT ALL - MIN ( - col2 ) + + 53 col1 FROM tab2 AS cor0
----
111

query I rowsort
SELECT ALL ( - 36 ) AS col0 FROM tab0 AS cor0
----
-36
-36
-36

query I rowsort
SELECT DISTINCT col0 + - - 71 + col0 AS col1 FROM tab0
----
101
245
265

query I rowsort
SELECT ALL ( + 15 ) + - col0 + + col0 FROM tab2
----
15
15
15

query I rowsort
SELECT - 29 + + - 37 AS col1 FROM tab1
----
-66
-66
-66

query I rowsort
SELECT ALL ( + + col1 ) + + + col0 FROM tab2
----
141
142
97

query I rowsort
SELECT ALL + 71 + - - col2 AS col1 FROM tab1
----
130
139
167

query I rowsort
SELECT + col0 * - col2 * col1 * + + 35 + + col2 * col1 + + - col1 + + col1 FROM tab0
----
-1994868
-336006
-639240

onlyif mysql # DIV for integer division: 
query I rowsort label-3214
SELECT + col1 DIV + - col0 + + col0 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3214
SELECT + col1 / + - col0 + + col0 AS col1 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT + 97 * + - MAX( DISTINCT + col1 ) * - + COUNT( * ) * - + 69 FROM tab1
----
-943713

skipif mysql # not compatible
query I rowsort label-3215
SELECT + 97 * + - MAX ( DISTINCT + col1 ) * - + COUNT ( * ) * - + 69 FROM tab1
----
-943713

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 - + 31 IN ( + col2 / col2 - - - col2, + col2 * + 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT ALL - SUM( - 9 ) AS col1 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-3217
SELECT ALL - SUM ( - 9 ) AS col1 FROM tab1 AS cor0
----
27

query I rowsort
SELECT DISTINCT + - col0 * - - col0 * + + col2 AS col2 FROM tab0 AS cor0
----
-10575
-75690
-931491

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT + MIN( - - 19 ) AS col0 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-3219
SELECT + MIN ( - - 19 ) AS col0 FROM tab0 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query II rowsort label-3220
SELECT ALL - COUNT( * ) * COUNT( - + col0 ) AS col0, + COUNT( * ) FROM tab2 AS cor0
----
-9
3

skipif mysql # not compatible
query II rowsort label-3220
SELECT ALL - COUNT ( * ) * COUNT ( - + col0 ) AS col0, + COUNT ( * ) FROM tab2 AS cor0
----
-9
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3221
SELECT - SUM( ALL + ( - - col1 ) ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-3221
SELECT - SUM ( ALL + ( - - col1 ) ) FROM tab2
----
-195

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 <= NULL
----

query I rowsort
SELECT - ( - 71 ) AS col0 FROM tab1
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + col2 + + col1 col0 FROM tab0
----
-624
-849
-9602

onlyif mysql # aggregate syntax: 
query II rowsort label-3225
SELECT ALL + COUNT( * ) + + MIN( DISTINCT col1 ) + + SUM( DISTINCT - - ( - - 37 ) ) col1, COUNT( * ) AS col2 FROM tab2
----
91
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3225
SELECT ALL + COUNT ( * ) + + MIN ( DISTINCT col1 ) + + SUM ( DISTINCT - - ( - - 37 ) ) col1, COUNT ( * ) AS col2 FROM tab2
----
91
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3226
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT NULL = - - col0 - col1
----

skipif mysql # not compatible
query I rowsort label-3226
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT NULL = - - col0 - col1
----

query I rowsort
SELECT + col0 * ( + 70 ) + - col1 AS col1 FROM tab2
----
3169
4403
5183

onlyif mysql # aggregate syntax: 
query I rowsort label-3228
SELECT MAX( DISTINCT + - col2 ) + - COUNT( * ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-3228
SELECT MAX ( DISTINCT + - col2 ) + - COUNT ( * ) FROM tab0
----
-13

query I rowsort
SELECT col0 AS col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * ( + 91 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 19 + + 90 + - + col2 + - 81 * + 9 NOT IN ( + col2, - col1 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3232
SELECT + - CAST( NULL AS SIGNED ) AS col1, col1 - - col2 + col2 * - 80 FROM tab0 AS cor0
----
NULL
-3632
NULL
-769
NULL
-7820

skipif mysql # not compatible
query II rowsort label-3232
SELECT + - CAST ( NULL AS INTEGER ) AS col1, col1 - - col2 + col2 * - 80 FROM tab0 AS cor0
----
NULL
-3632
NULL
-769
NULL
-7820

query II rowsort
SELECT ALL + ( - 34 ) + + + 70 AS col0, 41 FROM tab1 AS cor0
----
36
41
36
41
36
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 91 col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
91

query I rowsort
SELECT DISTINCT 8 + - + col2 * col2 AS col1 FROM tab0
----
-2201
-92
-9793

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT + ( - - COUNT( * ) ) + + - 56 + - 14 col0 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3236
SELECT + ( - - COUNT ( * ) ) + + - 56 + - 14 col0 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----
-70

query I rowsort
SELECT - - col2 + ( - - col0 ) FROM tab1 AS cor0 WHERE col1 + - 15 IS NOT NULL
----
144
147
159

query I rowsort
SELECT ALL - + col1 - - - 96 + - - 37 AS col0 FROM tab0 AS cor0
----
-140
-60
-80

query I rowsort
SELECT + col2 + + + 97 AS col2 FROM tab1 cor0
----
156
165
193

query I rowsort
SELECT + 72 * - col2 + col1 FROM tab1 AS cor0
----
-4243
-4849
-6898

query I rowsort
SELECT - 35 + + 63 AS col0 FROM tab1 AS cor0
----
28
28
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3242
SELECT DISTINCT - col0 + + 70 + 39 DIV + - 10 AS col2 FROM tab1
----
-18
-24
16

skipif mysql # not compatible
query I rowsort label-3242
SELECT DISTINCT - col0 + + 70 + 39 / + - 10 AS col2 FROM tab1
----
-18
-24
16

query I rowsort
SELECT ALL col1 + + ( - 77 ) FROM tab1
----
-30
-63
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT 2 * + COUNT( * ) * - - 17 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-3244
SELECT 2 * + COUNT ( * ) * - - 17 FROM tab0
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3245
SELECT * FROM tab1 WHERE + - ( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) > + col0
----

skipif mysql # not compatible
query III rowsort label-3245
SELECT * FROM tab1 WHERE + - ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) > + col0
----

query III rowsort
SELECT * FROM tab2 WHERE + 29 <> + + 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 34 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT DISTINCT MAX( ALL - + col1 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3248
SELECT DISTINCT MAX ( ALL - + col1 ) AS col0 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - col0 + + 83 FROM tab2
----
19
37
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT ALL + ( + ( + ( - MIN( ALL - col0 ) ) ) ) col0 FROM tab1 cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3250
SELECT ALL + ( + ( + ( - MIN ( ALL - col0 ) ) ) ) col0 FROM tab1 cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT DISTINCT COUNT( * ) + - ( + 11 ) * + - 70 * + COUNT( * ) AS col2 FROM tab0
----
2313

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT COUNT ( * ) + - ( + 11 ) * + - 70 * + COUNT ( * ) AS col2 FROM tab0
----
2313

query I rowsort
SELECT 8 * - col1 AS col1 FROM tab1
----
-112
-376
-40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 12 IS NULL
----

query I rowsort
SELECT 50 + + - 34 + - col2 FROM tab0 cor0
----
-31
-83
6

query I rowsort
SELECT DISTINCT col2 - - - col0 AS col2 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3256
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( CAST( + col0 AS SIGNED ), col1 + 85 )
----

skipif mysql # not compatible
query III rowsort label-3256
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( CAST ( + col0 AS INTEGER ), col1 + 85 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3257
SELECT + col2 DIV 45 - + col0 FROM tab1 AS cor0
----
-49
-84
-90

skipif mysql # not compatible
query I rowsort label-3257
SELECT + col2 / 45 - + col0 FROM tab1 AS cor0
----
-49
-84
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2 col0, - 15 FROM tab2 AS cor0
----
-23
-15
-40
-15
-58
-15

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3260
SELECT DISTINCT - MAX( col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3260
SELECT DISTINCT - MAX ( col2 ) FROM tab2 AS cor0
----
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 96 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col1 * - - 81 FROM tab1 AS cor0
----
-1134
-3807
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT DISTINCT - COUNT( * ) * + - COUNT( * ) * - 7 col2 FROM tab0
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3263
SELECT DISTINCT - COUNT ( * ) * + - COUNT ( * ) * - 7 col2 FROM tab0
----
-63

query I rowsort
SELECT ALL - col0 * + 70 FROM tab2
----
-3220
-4480
-5250

query I rowsort
SELECT DISTINCT + col2 * + col2 * + 1 AS col0 FROM tab2
----
1600
3364
529

query I rowsort
SELECT 32 * 85 * + + 44 AS col0 FROM tab0
----
119680
119680
119680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * - ( + ( - - col1 ) ) col1, + col1 AS col1 FROM tab0
----
-1215
81
-1827
21
-97
1

query I rowsort
SELECT ALL 36 * 19 AS col1 FROM tab0
----
684
684
684

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3269
SELECT ALL + ( CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3269
SELECT ALL + ( CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3270
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3271
SELECT + - MAX( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3271
SELECT + - MAX ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 3 >= + - col2 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT MIN( ALL - - 52 ) AS col2 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-3273
SELECT MIN ( ALL - - 52 ) AS col2 FROM tab0 AS cor0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3274
SELECT - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3274
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT ALL COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3275
SELECT ALL COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3276
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( + - col1 AS SIGNED ) + col1 + + CAST( - + col2 AS SIGNED ) / - + ( + col2 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3276
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( + - col1 AS INTEGER ) + col1 + + CAST ( - + col2 AS INTEGER ) / - + ( + col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3277
SELECT DISTINCT CAST( - 72 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT CAST ( - 72 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT ALL + MAX( ALL - 34 ) AS col2 FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-3278
SELECT ALL + MAX ( ALL - 34 ) AS col2 FROM tab1 AS cor0
----
-34

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= - ( col2 )
----

query I rowsort
SELECT DISTINCT col1 + - 41 AS col0 FROM tab0 AS cor0
----
-20
-40
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + + col1 col0, col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + + + col1 AS col0 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT DISTINCT 30 * - + col0 * + col1 AS col1 FROM tab0
----
-2910
-36450
-54810

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT COUNT( * ) + - + 39 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-3284
SELECT COUNT ( * ) + - + 39 FROM tab1
----
-36

query III rowsort
SELECT * FROM tab2 WHERE ( + 1 IS NULL )
----

query I rowsort
SELECT + 99 * col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
5841
6732
9504

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 41 col0 FROM tab0 AS cor0
----
-3321
-41
-861

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3289
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3289
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT 34 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query II rowsort
SELECT DISTINCT - + col1, col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-14
96
-47
68
-5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3292
SELECT ALL - 11 AS col0 FROM tab0 AS cor0 WHERE + ( + CAST( col0 AS SIGNED ) ) IS NOT NULL
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-3292
SELECT ALL - 11 AS col0 FROM tab0 AS cor0 WHERE + ( + CAST ( col0 AS INTEGER ) ) IS NOT NULL
----
-11
-11
-11

query II rowsort
SELECT ALL - ( - col2 ), + col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT - col0 * + - col2 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT 0 * + col2 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3296
SELECT ALL + COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3296
SELECT ALL + COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab1
----
1

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + + col2 AND + - 6
----

query II rowsort
SELECT col0 * + 31 * 68 * + - col0 AS col2, + col1 FROM tab1
----
-15230300
5
-17456348
47
-5482908
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3299
SELECT ALL - 50 DIV - col1 FROM tab0
----
0
2
50

skipif mysql # not compatible
query I rowsort label-3299
SELECT ALL - 50 / - col1 FROM tab0
----
0
2
50

query I rowsort
SELECT - - 44 AS col1 FROM tab2 WHERE NOT + + 89 IS NULL
----
44
44
44

query II rowsort
SELECT DISTINCT col1 AS col2, 33 FROM tab1
----
14
33
47
33
5
33

query I rowsort
SELECT DISTINCT - + 40 * - col0 * - col1 FROM tab2 WHERE NOT NULL NOT IN ( - 86 + + col0 + + 51 * 11 * - col0, - col0, + + col0 * 25, - - 52, - 37 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col0 + + + 12 * col2 IS NOT NULL
----

query I rowsort
SELECT ( + 13 ) * - col0 FROM tab2 AS cor0
----
-598
-832
-975

query II rowsort
SELECT DISTINCT - 18, 95 * + col0 AS col1 FROM tab0 AS cor0
----
-18
1425
-18
8265
-18
9215

query I rowsort
SELECT ALL col2 * - + 14 FROM tab2 AS cor0
----
-322
-560
-812

onlyif mysql # aggregate syntax: 
query I rowsort label-3307
SELECT SUM( ALL + 32 ) * + COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
2592

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3307
SELECT SUM ( ALL + 32 ) * + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
2592

query I rowsort
SELECT - col2 * + - col1 * + col1 AS col2 FROM tab0
----
308367
4410
99

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT - col1 + - 0 * 85 IS NULL
----
-51
-67
-77

query I rowsort
SELECT col2 * col0 + - - 61 + col2 FROM tab1
----
5053
5135
6317

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT + ( - ( - + COUNT( DISTINCT + 34 ) ) ) + + 66 AS col0 FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-3311
SELECT + ( - ( - + COUNT ( DISTINCT + 34 ) ) ) + + 66 AS col0 FROM tab2 AS cor0
----
67

query I rowsort
SELECT DISTINCT - + 26 * 47 * - col1 AS col0 FROM tab0 AS cor0
----
1222
25662
98982

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL BETWEEN - col2 AND + + 84
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3314
SELECT DISTINCT - ( 76 ) col1, COUNT( * ) FROM tab2 cor0
----
-76
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3314
SELECT DISTINCT - ( 76 ) col1, COUNT ( * ) FROM tab2 cor0
----
-76
3

query I rowsort
SELECT DISTINCT - ( + - 40 ) + - col0 FROM tab0 AS cor0
----
-47
-57
25

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3316
SELECT * FROM tab2 WHERE 33 * + CAST( NULL AS SIGNED ) * 25 + col1 BETWEEN - - CAST( NULL AS SIGNED ) + - 74 - 9 AND - + col2
----

skipif mysql # not compatible
query III rowsort label-3316
SELECT * FROM tab2 WHERE 33 * + CAST ( NULL AS INTEGER ) * 25 + col1 BETWEEN - - CAST ( NULL AS INTEGER ) + - 74 - 9 AND - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 col2 FROM tab1
----
63
63
63

query I rowsort
SELECT DISTINCT col1 + - + 36 + - 79 FROM tab1
----
-101
-110
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3319
SELECT ALL - COUNT( * ) + + - COUNT( * ) col1 FROM tab0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3319
SELECT ALL - COUNT ( * ) + + - COUNT ( * ) col1 FROM tab0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-3320
SELECT - col0 DIV col2 + + col2 * 90 col2 FROM tab2
----
2068
3599
5219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3320
SELECT - col0 / col2 + + col2 * 90 col2 FROM tab2
----
2068
3599
5219

query I rowsort
SELECT - col0 + + 76 AS col0 FROM tab1
----
-15
-9
25

query I rowsort
SELECT - + col2 + + 75 * col1 AS col2 FROM tab1 AS cor0
----
316
3457
954

query I rowsort
SELECT ALL + col1 - - 21 AS col0 FROM tab2 AS cor0
----
72
88
98

query I rowsort
SELECT + + col2 + + - col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3325
SELECT + - col0 + + col1 + + col0 DIV + - 63 FROM tab2 cor0
----
-9
12
5

skipif mysql # not compatible
query I rowsort label-3325
SELECT + - col0 + + col1 + + col0 / + - 63 FROM tab2 cor0
----
-9
12
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT DISTINCT ( - + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3326
SELECT DISTINCT ( - + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT ALL + 0, col1 FROM tab2 cor0
----
0
51
0
67
0
77

query I rowsort
SELECT + ( + - col0 ) AS col2 FROM tab1 cor0
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 1 - col1 col1 FROM tab1 AS cor0 WHERE col1 + + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3330
SELECT ALL + CAST( CAST( + MAX( - 18 ) AS SIGNED ) AS DECIMAL ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3330
SELECT ALL + CAST ( CAST ( + MAX ( - 18 ) AS INTEGER ) AS REAL ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3331
SELECT DISTINCT - - ( + CAST( NULL AS DECIMAL ) ) * - + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3331
SELECT DISTINCT - - ( + CAST ( NULL AS REAL ) ) * - + col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 69 * - col2 * 37 AS col1 FROM tab0 AS cor0
----
-119991
-252747
-25530

query I rowsort
SELECT col2 * col2 * 26 * - - col1 FROM tab1 AS cor0
----
3354624
452530
5650528

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL = + 78
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3335
SELECT ( - col1 ) DIV col0 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3335
SELECT ( - col1 ) / col0 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT DISTINCT - 82 * + MIN( DISTINCT + col2 ) AS col0 FROM tab2
----
-1886

skipif mysql # not compatible
query I rowsort label-3336
SELECT DISTINCT - 82 * + MIN ( DISTINCT + col2 ) AS col0 FROM tab2
----
-1886

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT SUM( + 74 ) * + 18 AS col0 FROM tab2
----
3996

skipif mysql # not compatible
query I rowsort label-3337
SELECT SUM ( + 74 ) * + 18 AS col0 FROM tab2
----
3996

query I rowsort
SELECT + 10 * + + 24 FROM tab0
----
240
240
240

query I rowsort
SELECT ALL col1 AS col2 FROM tab2 WHERE NOT - col2 = + col0 + + - col1
----
51
67
77

query I rowsort
SELECT ALL - 40 * + col1 * + col1 AS col2 FROM tab0 cor0
----
-17640
-262440
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3341
SELECT DISTINCT + CAST( - - col1 AS SIGNED ) * - - col1 AS col2 FROM tab1 AS cor0
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT + CAST ( - - col1 AS INTEGER ) * - - col1 AS col2 FROM tab1 AS cor0
----
196
2209
25

query II rowsort
SELECT ALL + 71 * - 63 AS col2, + col0 AS col2 FROM tab0 AS cor0
----
-4473
15
-4473
87
-4473
97

query I rowsort
SELECT ALL col0 + + - 9 AS col2 FROM tab1 cor0
----
42
76
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3344
SELECT ( - + CAST( NULL AS SIGNED ) ), + col1 AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-3344
SELECT ( - + CAST ( NULL AS INTEGER ) ), + col1 AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT DISTINCT - col0 + + col0 * col0 FROM tab0 AS cor0
----
210
7482
9312

query III rowsort
SELECT * FROM tab1 WHERE NOT 98 * - - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 + + col2 * + - col2 FROM tab2
----
-1536
-3289
-483

query II rowsort
SELECT DISTINCT col1 AS col0, - 75 + - col2 FROM tab1
----
14
-171
47
-143
5
-134

query I rowsort
SELECT ALL - ( + - col2 ) * + col2 FROM tab1 AS cor0
----
3481
4624
9216

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL NOT BETWEEN - - col0 AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3351
SELECT DISTINCT - 67 DIV - + 91 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3351
SELECT DISTINCT - 67 / - + 91 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col1 - + ( + col0 ), - ( - col2 ), 64 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3353
SELECT - 60 + - COUNT( * ) FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-3353
SELECT - 60 + - COUNT ( * ) FROM tab1 AS cor0
----
-63

query I rowsort
SELECT + col0 + - 3 AS col1 FROM tab0 AS cor0
----
12
84
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3355
SELECT + COUNT( * ) + - - 21 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-3355
SELECT + COUNT ( * ) + - - 21 FROM tab1 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT DISTINCT - SUM( - 74 ) + - 32 FROM tab1
----
190

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT - SUM ( - 74 ) + - 32 FROM tab1
----
190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 49 - + - col1 col1 FROM tab1
----
54
63
96

query I rowsort
SELECT col2 * ( + col2 ) AS col0 FROM tab0 AS cor0
----
100
2209
9801

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + 81 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3360
SELECT DISTINCT - 12 DIV + col2 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT - 12 / + col2 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL + 58 FROM tab2 AS cor0 WHERE - col1 / - + col0 * col0 IS NULL
----

query I rowsort
SELECT ALL - ( ( + col1 ) ) AS col1 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3363
SELECT - CAST( 9 AS SIGNED ) FROM tab1 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-3363
SELECT - CAST ( 9 AS INTEGER ) FROM tab1 AS cor0
----
-9
-9
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 35 col2, 5 + + 91 FROM tab2 cor0
----
35
96
35
96
35
96

query I rowsort
SELECT ALL - - 37 FROM tab1 cor0
----
37
37
37

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3366
SELECT DISTINCT + MIN( - - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3366
SELECT DISTINCT + MIN ( - - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 < + ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( col2 ) col2 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3369
SELECT + CAST( NULL AS SIGNED ) AS col0, col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-3369
SELECT + CAST ( NULL AS INTEGER ) AS col0, col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT + col1 * - col0 * + 48 + + col2 FROM tab1 WHERE NOT - ( - col2 ) BETWEEN - col2 AND NULL
----

query II rowsort
SELECT ALL 7 * col2, col1 AS col0 FROM tab0
----
329
81
693
1
70
21

query I rowsort
SELECT ALL + 79 * - - col0 FROM tab0
----
1185
6873
7663

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT DISTINCT MAX( ALL + - col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3373
SELECT DISTINCT MAX ( ALL + - col0 ) AS col0 FROM tab0
----
-15

query I rowsort
SELECT - ( + ( + + col2 ) ) FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-3375
SELECT + ( 51 ) DIV col2 * - + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3375
SELECT + ( 51 ) / col2 * - + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3376
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 42 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3376
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 42 IS NOT NULL
----

query II rowsort
SELECT ALL - 71, + col0 FROM tab1 cor0 WHERE NOT 18 + - col0 NOT BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3378
SELECT - col0 * col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3378
SELECT - col0 * col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT - COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3379
SELECT - COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3380
SELECT CAST( - COUNT( * ) AS SIGNED ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3380
SELECT CAST ( - COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT 61 * col0 * + col1 - - + 19 FROM tab1
----
25944
260916
43573

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3382
SELECT DISTINCT COUNT( * ) + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT 13 + - col0 FROM tab0
----
-2
-74
-84

query I rowsort
SELECT DISTINCT - 90 * col0 + + - 50 + + col2 FROM tab0
----
-1353
-7870
-8681

onlyif mysql # DIV for integer division: 
query II rowsort label-3385
SELECT ALL - ( col2 ) - + - col1 AS col0, 16 + + col2 DIV 70 FROM tab2
----
28
16
37
16
9
16

skipif mysql # not compatible
query II rowsort label-3385
SELECT ALL - ( col2 ) - + - col1 AS col0, 16 + + col2 / 70 FROM tab2
----
28
16
37
16
9
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT + 87 + - + COUNT( * ) FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3386
SELECT + 87 + - + COUNT ( * ) FROM tab1 AS cor0
----
84

query I rowsort
SELECT DISTINCT + col2 * - - 41 - + col2 - + ( - col2 ) + - - col0 AS col1 FROM tab1 AS cor0
----
2504
2879
3987

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND ( + 59 ) + col1 / col2
----

query I rowsort
SELECT DISTINCT col0 * - col1 - - col0 AS col0 FROM tab0
----
-1200
-1740
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT + 20 + - COUNT( * ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-3390
SELECT + 20 + - COUNT ( * ) FROM tab1
----
17

query I rowsort
SELECT ALL 42 FROM tab1 WHERE ( ( col2 ) - - col1 ) NOT IN ( ( - ( col0 ) ) * - 76 - 34 )
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT DISTINCT - 35 * 48 + - 38 * - MAX( DISTINCT - col0 ) AS col0 FROM tab1
----
-3618

skipif mysql # not compatible
query I rowsort label-3392
SELECT DISTINCT - 35 * 48 + - 38 * - MAX ( DISTINCT - col0 ) AS col0 FROM tab1
----
-3618

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT ALL + COUNT( ALL col0 ) - 45 AS col1 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-3393
SELECT ALL + COUNT ( ALL col0 ) - 45 AS col1 FROM tab0
----
-42

query I rowsort
SELECT 83 + + col1 FROM tab1 WHERE NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT - 55 + COUNT( * ) FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-3395
SELECT - 55 + COUNT ( * ) FROM tab2
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT MAX( DISTINCT 79 ) AS col1 FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-3396
SELECT MAX ( DISTINCT 79 ) AS col1 FROM tab0
----
79

query I rowsort
SELECT col2 + - 23 AS col0 FROM tab0
----
-13
24
76

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE col1 BETWEEN col2 AND col1
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NOT col2 + - col2 / - 9 NOT IN ( col0 * 19 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3400
SELECT * FROM tab1 WHERE ( - CAST( NULL AS SIGNED ) ) NOT IN ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-3400
SELECT * FROM tab1 WHERE ( - CAST ( NULL AS INTEGER ) ) NOT IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3401
SELECT DISTINCT - ( CAST( - col2 AS SIGNED ) ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3401
SELECT DISTINCT - ( CAST ( - col2 AS INTEGER ) ) FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3402
SELECT MIN( col0 ) AS col1 FROM tab0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IN ( ( 51 ) * 79 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3402
SELECT MIN ( col0 ) AS col1 FROM tab0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IN ( ( 51 ) * 79 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 8 IS NOT NULL
----

query I rowsort
SELECT - 52 + 10 FROM tab0
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT ALL COUNT( * ) + + 79 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
82

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL COUNT ( * ) + + 79 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
82

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + col1 * + col1 IS NOT NULL
----

query I rowsort
SELECT ( 97 ) FROM tab0
----
97
97
97

query I rowsort
SELECT ALL 56 FROM tab0 WHERE NULL NOT IN ( col2 * - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3409
SELECT DISTINCT MIN( col0 ) + - 25 col0 FROM tab2
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3409
SELECT DISTINCT MIN ( col0 ) + - 25 col0 FROM tab2
----
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 * 98 + col1 col1 FROM tab1
----
-7499
-7532
-7541

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3411
SELECT ALL * FROM tab1 WHERE CAST( col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3411
SELECT ALL * FROM tab1 WHERE CAST ( col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 27 + + 61 AS col1 FROM tab0
----
88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( col2 * - 38 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 - - 50 / 97 > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT + COUNT( ALL col0 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3415
SELECT + COUNT ( ALL col0 ) FROM tab0 cor0
----
3

query I rowsort
SELECT ALL ( + col0 ) + + col0 AS col2 FROM tab2 AS cor0
----
128
150
92

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE NOT ( NULL ) >= - 43
----

query III rowsort
SELECT * FROM tab0 WHERE + ( - ( + col0 ) ) NOT BETWEEN + 85 + + col1 * ( col1 + col1 * 27 ) AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 + col1 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3420
SELECT DISTINCT COUNT( * ) * - CAST( 44 AS SIGNED ) AS col2 FROM tab2 WHERE NOT + ( col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3420
SELECT DISTINCT COUNT ( * ) * - CAST ( 44 AS INTEGER ) AS col2 FROM tab2 WHERE NOT + ( col0 ) IS NOT NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 BETWEEN - col0 AND col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col0 ) + - ( col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3423
SELECT ALL 5 DIV + 45 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3423
SELECT ALL 5 / + 45 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3424
SELECT ALL + - ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3424
SELECT ALL + - ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 55 + + col1 FROM tab2 AS cor0
----
-4
12
22

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1 )
----

query I rowsort
SELECT 89 + 58 AS col1 FROM tab2 AS cor0
----
147
147
147

query I rowsort
SELECT - col0 * col1 + col1 * + 60 FROM tab2 AS cor0
----
-1005
-308
714

onlyif mysql # aggregate syntax: 
query I rowsort label-3429
SELECT COUNT( * ) + + COUNT( * ) col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3429
SELECT COUNT ( * ) + + COUNT ( * ) col2 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT 13 * + COUNT( * ) AS col0 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-3430
SELECT 13 * + COUNT ( * ) AS col0 FROM tab1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT MAX( + 38 ) AS col2 FROM tab1
----
38

skipif mysql # not compatible
query I rowsort label-3431
SELECT MAX ( + 38 ) AS col2 FROM tab1
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT - MIN( ALL - col1 ) + COUNT( * ) FROM tab0 WHERE NULL = col1 * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3432
SELECT - MIN ( ALL - col1 ) + COUNT ( * ) FROM tab0 WHERE NULL = col1 * col2
----
NULL

query I rowsort
SELECT ALL 42 - - ( + 16 ) AS col1 FROM tab1
----
58
58
58

query I rowsort
SELECT DISTINCT - ( - col0 ) + col0 AS col1 FROM tab1
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-3435
SELECT ALL 8 * + + MIN( ALL - col0 ) * 90 FROM tab0
----
-69840

skipif mysql # not compatible
query I rowsort label-3435
SELECT ALL 8 * + + MIN ( ALL - col0 ) * 90 FROM tab0
----
-69840

query I rowsort
SELECT ALL 62 * + col1 FROM tab2 WHERE NOT col2 NOT BETWEEN NULL AND - col0 / col2 - col0
----

query I rowsort
SELECT ALL col2 + 62 AS col0 FROM tab2 AS cor0 WHERE NOT + 42 <> ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 >= ( + col2 )
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3439
SELECT COUNT( * ) * - - 70 AS col0 FROM tab0 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-3439
SELECT COUNT ( * ) * - - 70 AS col0 FROM tab0 AS cor0
----
210

query I rowsort
SELECT col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT BETWEEN NULL AND - col1 * - + col1 - - 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT + COUNT( - 22 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3442
SELECT + COUNT ( - 22 ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - ( - - col1 ) * col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT + - MIN( DISTINCT - 29 ) col0 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3444
SELECT + - MIN ( DISTINCT - 29 ) col0 FROM tab1 AS cor0
----
29

query I rowsort
SELECT ALL col0 * - ( 30 ) FROM tab1 AS cor0
----
-1530
-2550
-2730

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT - MIN( ALL + col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3446
SELECT - MIN ( ALL + col2 ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL - 56 AS col1 FROM tab0 WHERE NULL NOT IN ( + - col1 / + 11 )
----

query I rowsort
SELECT ALL + 79 + col2 + 31 - + col2 + col2 * col0 AS col1 FROM tab2
----
1168
2670
4460

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3449
SELECT 17 FROM tab2 WHERE NOT - 20 * - col0 * col1 IN ( CAST( NULL AS SIGNED ) * col1 )
----

skipif mysql # not compatible
query I rowsort label-3449
SELECT 17 FROM tab2 WHERE NOT - 20 * - col0 * col1 IN ( CAST ( NULL AS INTEGER ) * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT - COUNT( * ) FROM tab1 WHERE NOT ( 45 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3450
SELECT - COUNT ( * ) FROM tab1 WHERE NOT ( 45 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3451
SELECT CAST( - col1 AS SIGNED ) * col2 FROM tab0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-3451
SELECT CAST ( - col1 AS INTEGER ) * col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3452
SELECT 73 DIV - col0 - + 93 FROM tab0 WHERE NULL IS NULL
----
-93
-93
-97

skipif mysql # not compatible
query I rowsort label-3452
SELECT 73 / - col0 - + 93 FROM tab0 WHERE NULL IS NULL
----
-93
-93
-97

query I rowsort
SELECT col0 * + 82 FROM tab0
----
1230
7134
7954

query I rowsort
SELECT ALL 6 - col1 AS col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT 32 * + 4 AS col2 FROM tab1
----
128
128
128

query I rowsort
SELECT DISTINCT + ( - 11 ) FROM tab1 AS cor0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3457
SELECT ALL + AVG ( ALL + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 cor0 WHERE NOT col2 BETWEEN + + col1 AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-3457
SELECT ALL + AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0 WHERE NOT col2 BETWEEN + + col1 AND col0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + col0
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 <> 12 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + col1 + col0 * + 49 * + + 59 * - col1 AS col1 FROM tab2
----
-14246731
-14527150
-6782212

query II rowsort
SELECT - 31 AS col2, - col0 AS col2 FROM tab0
----
-31
-15
-31
-87
-31
-97

query I rowsort
SELECT DISTINCT 88 + col1 * - 50 FROM tab2 AS cor0 WHERE NOT ( + col1 * - - 72 ) NOT BETWEEN ( + col1 ) AND NULL
----

query I rowsort
SELECT - + col2 * + 50 FROM tab1 AS cor0
----
-2950
-3400
-4800

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 86 - + + col2 / col1 * + 17 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3465
SELECT DISTINCT - - MAX( ALL + col0 ) DIV - 6 - ( - - 56 ) FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-3465
SELECT DISTINCT - - MAX ( ALL + col0 ) / - 6 - ( - - 56 ) FROM tab2 AS cor0
----
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3466
SELECT - + 31 - - CAST( NULL AS SIGNED ) + - - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3466
SELECT - + 31 - - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col2, - col1 FROM tab1 cor0
----
51
-14
85
-5
91
-47

query I rowsort
SELECT + 69 - + col0 + - col0 FROM tab0 AS cor0
----
-105
-125
39

query II rowsort
SELECT DISTINCT - col1 * + 56 + + 50, - col1 AS col2 FROM tab2 AS cor0
----
-2806
-51
-3702
-67
-4262
-77

query I rowsort
SELECT ALL + 46 + - + 62 AS col0 FROM tab1
----
-16
-16
-16

query I rowsort
SELECT 64 + + - col1 AS col2 FROM tab0
----
-17
43
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 WHERE ( NOT col0 IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 WHERE ( NOT col0 IS NULL )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 77 * + + 46 col0 FROM tab0
----
-3542

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT - COUNT( * ) * - 51 col1 FROM tab1 WHERE NOT ( + col2 + - + col1 ) IS NULL
----
153

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3474
SELECT - COUNT ( * ) * - 51 col1 FROM tab1 WHERE NOT ( + col2 + - + col1 ) IS NULL
----
153

query II rowsort
SELECT col2 AS col1, - 33 FROM tab1
----
59
-33
68
-33
96
-33

query I rowsort
SELECT DISTINCT - + 81 / - 11 AS col0 FROM tab1 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3477
SELECT ALL + CAST( 27 AS SIGNED ) AS col1 FROM tab1
----
27
27
27

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL + CAST ( 27 AS INTEGER ) AS col1 FROM tab1
----
27
27
27

query I rowsort
SELECT ALL + 22 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 81 * + + col1 * - col0 < NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 41 * + - col2 BETWEEN - 21 AND + 9 / col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-3481
SELECT ALL + col2 * col1, + col0 DIV - + 91 AS col1 FROM tab0 cor0
----
210
0
3807
0
99
-1

skipif mysql # not compatible
query II rowsort label-3481
SELECT ALL + col2 * col1, + col0 / - + 91 AS col1 FROM tab0 cor0
----
210
0
3807
0
99
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 * 15 + + + 1 AND + col0 * col0 + col0
----

query I rowsort
SELECT ALL ( - col2 ) * + col0 - col2 AS col0 FROM tab2
----
-1081
-2600
-4408

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3484
SELECT ALL * FROM tab2 WHERE + - col1 * 69 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3484
SELECT ALL * FROM tab2 WHERE + - col1 * 69 NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL - + 42 FROM tab2 WHERE NOT NULL BETWEEN NULL AND + - col0 * - col1
----

query I rowsort
SELECT DISTINCT + 7 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3487
SELECT ALL + col1 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT - ( + col2 ) * CAST( + + 91 AS DECIMAL ) >= ( + col0 )
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-3487
SELECT ALL + col1 * col1 AS col2 FROM tab1 AS cor0 WHERE NOT - ( + col2 ) * CAST ( + + 91 AS REAL ) >= ( + col0 )
----
196
2209
25

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( + col0 ) NOT IN ( 29 * 54 / + col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 96 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3490
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3490
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
51
85
91

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 52 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3492
SELECT ALL col1 DIV - col2 + col0 col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3492
SELECT ALL col1 / - col2 + col0 col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3493
SELECT SUM( - + col2 ) + + 84 AS col1 FROM tab1 AS cor0
----
-139

skipif mysql # not compatible
query I rowsort label-3493
SELECT SUM ( - + col2 ) + + 84 AS col1 FROM tab1 AS cor0
----
-139

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + - - col2 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT 9 + - 34 FROM tab0
----
-25

query I rowsort
SELECT + col0 + 28 AS col0 FROM tab0
----
115
125
43

onlyif mysql # DIV for integer division: 
query I rowsort label-3497
SELECT ALL 92 DIV 86 + - - 23 AS col2 FROM tab2
----
24
24
24

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL 92 / 86 + - - 23 AS col2 FROM tab2
----
24
24
24

query II rowsort
SELECT DISTINCT col1, - col0 + + + col0 * - col2 * + col0 AS col2 FROM tab2 AS cor0
----
51
-48714
67
-326325
77
-163904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3500
SELECT DISTINCT + + 99 * - CAST( NULL AS DECIMAL ) + + CAST( col1 AS SIGNED ) * col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3500
SELECT DISTINCT + + 99 * - CAST ( NULL AS REAL ) + + CAST ( col1 AS INTEGER ) * col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT COUNT( * ) + - + 15 + + MIN( - + 96 ) * - 30 FROM tab0 AS cor0 WHERE col2 + + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3501
SELECT COUNT ( * ) + - + 15 + + MIN ( - + 96 ) * - 30 FROM tab0 AS cor0 WHERE col2 + + col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE NOT 52 * - - col1 / - col2 NOT BETWEEN + - 50 * + col1 + + + col0 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3502
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE NOT 52 * - - col1 / - col2 NOT BETWEEN + - 50 * + col1 + + + col0 AND ( NULL )
----
0

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= 10
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3504
SELECT ALL - col1 - + col2 + - + col0 DIV - 32 + + col2 - + - 24 FROM tab0 AS cor0
----
-57
26
5

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL - col1 - + col2 + - + col0 / - 32 + + col2 - + - 24 FROM tab0 AS cor0
----
-57
26
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3505
SELECT ALL ( COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN - col0 * + 10 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3505
SELECT ALL ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN - col0 * + 10 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE col0 * + col1 BETWEEN + 98 * - col0 AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-3506
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE col0 * + col1 BETWEEN + 98 * - col0 AND + col1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3507
SELECT col1 + - + col0 DIV 52 * CAST( + + col2 AS SIGNED ) * col2 + col0 FROM tab1 AS cor0
----
-3391
-4486
65

skipif mysql # not compatible
query I rowsort label-3507
SELECT col1 + - + col0 / 52 * CAST ( + + col2 AS INTEGER ) * col2 + col0 FROM tab1 AS cor0
----
-3391
-4486
65

query I rowsort
SELECT 89 * - ( - + 98 ) + - 82 + - - 88 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT ALL MAX( + 19 ) AS col0 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-3509
SELECT ALL MAX ( + 19 ) AS col0 FROM tab0
----
19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 WHERE NOT 92 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 92, col0 FROM tab1
----
-92
51
-92
85
-92
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3512
SELECT DISTINCT SUM( DISTINCT - + CAST( + + 80 AS SIGNED ) ) AS col2 FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-3512
SELECT DISTINCT SUM ( DISTINCT - + CAST ( + + 80 AS INTEGER ) ) AS col2 FROM tab2
----
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3513
SELECT DISTINCT + - CAST( + - COUNT( * ) AS SIGNED ) * 10 AS col1 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-3513
SELECT DISTINCT + - CAST ( + - COUNT ( * ) AS INTEGER ) * 10 AS col1 FROM tab2 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT + - 41 * + + COUNT( DISTINCT - + col0 ) * - - COUNT( * ) col2 FROM tab1 cor0
----
-369

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3514
SELECT + - 41 * + + COUNT ( DISTINCT - + col0 ) * - - COUNT ( * ) col2 FROM tab1 cor0
----
-369

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col2 + col1 col1 FROM tab2
----
1224
3157
3953

query II rowsort
SELECT ALL - col1, col2 FROM tab0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT DISTINCT ( + COUNT( * ) ) * - 31 + - - 95 AS col2 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3517
SELECT DISTINCT ( + COUNT ( * ) ) * - 31 + - - 95 AS col2 FROM tab0 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3518
SELECT ALL col0 DIV + - ( + - col2 ) AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL col0 / + - ( + - col2 ) AS col1 FROM tab1 AS cor0
----
0
1
1

query II rowsort
SELECT + 46, 35 AS col2 FROM tab2 AS cor0
----
46
35
46
35
46
35

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT DISTINCT 58 * COUNT( * ) FROM tab1 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-3520
SELECT DISTINCT 58 * COUNT ( * ) FROM tab1 AS cor0
----
174

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + 83 / + 11 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3522
SELECT ALL - COUNT( * ) + + SUM( - col1 ) FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL - COUNT ( * ) + + SUM ( - col1 ) FROM tab2 AS cor0
----
-198

onlyif mysql # aggregate syntax: 
query II rowsort label-3523
SELECT MAX( + col1 ) AS col2, - SUM( ALL - - col0 ) * + + 62 + - 56 * COUNT( DISTINCT - + col1 ) - 55 FROM tab1 AS cor0 WHERE + col2 IS NULL
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-3523
SELECT MAX ( + col1 ) AS col2, - SUM ( ALL - - col0 ) * + + 62 + - 56 * COUNT ( DISTINCT - + col1 ) - 55 FROM tab1 AS cor0 WHERE + col2 IS NULL
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3524
SELECT + 36 * - + 48 AS col0, 55 * COUNT( * ) FROM tab2 AS cor0
----
-1728
165

skipif mysql # not compatible
query II rowsort label-3524
SELECT + 36 * - + 48 AS col0, 55 * COUNT ( * ) FROM tab2 AS cor0
----
-1728
165

query I rowsort
SELECT ALL - 34 + col1 AS col0 FROM tab0
----
-13
-33
47

query I rowsort
SELECT - col0 * - 53 AS col1 FROM tab2
----
2438
3392
3975

query I rowsort
SELECT ALL 21 * - 71 * - 37 FROM tab2
----
55167
55167
55167

query I rowsort
SELECT col2 * ( + 58 ) + - - 15 FROM tab2
----
1349
2335
3379

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 IN ( - - ( + col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3530
SELECT ALL + ( - - COUNT( * ) ) AS col2, 27 AS col2 FROM tab1
----
3
27

skipif mysql # not compatible
query II rowsort label-3530
SELECT ALL + ( - - COUNT ( * ) ) AS col2, 27 AS col2 FROM tab1
----
3
27

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 * col0 + + + col1 * + col1 - col2 + + - 2 * - + col2 BETWEEN - col0 AND + - col1
----

query II rowsort
SELECT ALL - col0 * + 95 AS col1, col2 AS col0 FROM tab0
----
-1425
47
-8265
10
-9215
99

query I rowsort
SELECT - - col1 + - - 35 + 98 FROM tab1 AS cor0
----
138
147
180

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 IN ( col1 + - - col0 )
----

query I rowsort
SELECT DISTINCT + col0 + - - col1 AS col0 FROM tab2
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3536
SELECT - ( - + CAST( NULL AS SIGNED ) ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3536
SELECT - ( - + CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT ALL + COUNT( * ) + + COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab1
----
6

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col2 BETWEEN 71 AND col0
----

query I rowsort
SELECT 16 * + ( + col2 ) FROM tab1 AS cor0
----
1088
1536
944

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT + 93 * - COUNT( * ) AS col0 FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-3540
SELECT + 93 * - COUNT ( * ) AS col0 FROM tab1
----
-279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3541
SELECT + COUNT( + + col1 ) DIV + 42 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3541
SELECT + COUNT ( + + col1 ) / + 42 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 8 col0 FROM tab0 cor0
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT DISTINCT - + COUNT( ALL + col2 ) col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3543
SELECT DISTINCT - + COUNT ( ALL + col2 ) col1 FROM tab1 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 * col2 + + col1 col2 FROM tab2
----
1983
3437
4939

query I rowsort
SELECT DISTINCT - ( - 90 ) * - + 66 + - col0 AS col2 FROM tab2 AS cor0
----
-5986
-6004
-6015

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT ALL - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT 42 NOT BETWEEN - col0 AND + + col1 + - - 93 + col1 * col1
----
3

skipif mysql # not compatible
query I rowsort label-3546
SELECT ALL - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 42 NOT BETWEEN - col0 AND + + col1 + - - 93 + col1 * col1
----
3

query I rowsort
SELECT ALL - 39 * - col2 AS col0 FROM tab2 AS cor0
----
1560
2262
897

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3548
SELECT DISTINCT + MIN( DISTINCT col1 ) * + CAST( NULL AS SIGNED ) + - ( + COUNT( * ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT + MIN ( DISTINCT col1 ) * + CAST ( NULL AS INTEGER ) + - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT 47 + - COUNT( * ) AS col1 FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-3550
SELECT 47 + - COUNT ( * ) AS col1 FROM tab2
----
44

query I rowsort
SELECT ALL - col1 * - 17 + - 84 FROM tab2
----
1055
1225
783

query I rowsort
SELECT col2 * + + 41 + + col2 AS col1 FROM tab2
----
1680
2436
966

query I rowsort
SELECT ALL - 62 / - 66 AS col2 FROM tab2 WHERE ( + - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT col1 * - - col2 + + - col1 AS col2 FROM tab1
----
1330
290
3149

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 * col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3556
SELECT DISTINCT - 87 FROM tab1 AS cor0 WHERE NOT ( col1 * + CAST( NULL AS SIGNED ) > NULL )
----

skipif mysql # not compatible
query I rowsort label-3556
SELECT DISTINCT - 87 FROM tab1 AS cor0 WHERE NOT ( col1 * + CAST ( NULL AS INTEGER ) > NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3557
SELECT + 7 DIV + 62 - 60 FROM tab0 AS cor0
----
-60
-60
-60

skipif mysql # not compatible
query I rowsort label-3557
SELECT + 7 / + 62 - 60 FROM tab0 AS cor0
----
-60
-60
-60

query I rowsort
SELECT col1 * - col1 - + col1 AS col0 FROM tab0
----
-2
-462
-6642

query I rowsort
SELECT + + col2 * - col2 + 19 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-2190
-81
-9782

query I rowsort
SELECT - + 23 AS col2 FROM tab1 AS cor0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3561
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 52 * - - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3561
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 52 * - - col2 IS NOT NULL
----
0

query I rowsort
SELECT ALL ( - 26 ) * col0 AS col2 FROM tab0 AS cor0
----
-2262
-2522
-390

query I rowsort
SELECT DISTINCT + + 96 AS col2 FROM tab0 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3564
SELECT DISTINCT + 63 * + - col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 53, + CAST( NULL AS SIGNED ), - col1 / + 10 * 2 + + - col2 * col1 + col2 )
----

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT + 63 * + - col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 53, + CAST ( NULL AS INTEGER ), - col1 / + 10 * 2 + + - col2 * col1 + col2 )
----

query I rowsort
SELECT - + col0 * + ( - + col1 ) - + - col1 FROM tab0 AS cor0
----
1296
1848
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 56 col2 FROM tab1 AS cor0
----
56
56
56

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3567
SELECT DISTINCT - col2 * col0 * - CAST( NULL AS SIGNED ) AS col0, col2 FROM tab1 WHERE NOT ( col2 = - + col1 )
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-3567
SELECT DISTINCT - col2 * col0 * - CAST ( NULL AS INTEGER ) AS col0, col2 FROM tab1 WHERE NOT ( col2 = - + col1 )
----
NULL
59
NULL
68
NULL
96

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * + + col1 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3569
SELECT + col1 / CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3569
SELECT + col1 / CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3570
SELECT ALL 23 DIV COUNT( * ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-3570
SELECT ALL 23 / COUNT ( * ) FROM tab2
----
7

query II rowsort
SELECT ALL + col1, - col2 + + - col2 * - + col2 FROM tab0
----
1
9702
21
90
81
2162

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT + + MIN( ALL - 15 ) FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-3572
SELECT + + MIN ( ALL - 15 ) FROM tab2 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3573
SELECT - - col0 DIV + col1 FROM tab1 AS cor0 WHERE NOT CAST( - + col0 AS SIGNED ) IS NULL
----
1
17
3

skipif mysql # not compatible
query I rowsort label-3573
SELECT - - col0 / + col1 FROM tab1 AS cor0 WHERE NOT CAST ( - + col0 AS INTEGER ) IS NULL
----
1
17
3

query I rowsort
SELECT ALL ( + col2 ) + + 64 + 23 + 44 FROM tab0 AS cor0
----
141
178
230

query I rowsort
SELECT DISTINCT + col1 + col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
117
125
74

onlyif mysql # aggregate syntax: 
query II rowsort label-3576
SELECT + COUNT( ALL col2 ), + MAX( ALL - - col1 ) AS col1 FROM tab2
----
3
77

skipif mysql # not compatible
query II rowsort label-3576
SELECT + COUNT ( ALL col2 ), + MAX ( ALL - - col1 ) AS col1 FROM tab2
----
3
77

query I rowsort
SELECT 50 * + - ( 84 ) FROM tab2 AS cor0
----
-4200
-4200
-4200

query I rowsort
SELECT - - ( + - ( col1 ) ) * col0 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3579
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 84 - - - 9 - - col1 * + col2 <= ( - CAST( - col1 AS SIGNED ) ) * + + 86 / col0 / - - col0 - + col2
----

skipif mysql # not compatible
query III rowsort label-3579
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 84 - - - 9 - - col1 * + col2 <= ( - CAST ( - col1 AS INTEGER ) ) * + + 86 / col0 / - - col0 - + col2
----

query I rowsort
SELECT ALL ( 99 ) AS col1 FROM tab2 AS cor0
----
99
99
99

query II rowsort
SELECT ALL col0 - - col2 * + 31, col2 FROM tab2
----
1304
40
1873
58
759
23

query I rowsort
SELECT ALL - + col2 FROM tab2 WHERE NULL IS NULL
----
-23
-40
-58

query I rowsort
SELECT DISTINCT - 38 + + 68 FROM tab0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3584
SELECT DISTINCT - 45 DIV - col0 - - 26 + + 65 col0 FROM tab1
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3584
SELECT DISTINCT - 45 / - col0 - - 26 + + 65 col0 FROM tab1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3585
SELECT ALL + CAST( NULL AS SIGNED ) + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL + CAST ( NULL AS INTEGER ) + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - ( col0 ) + - col1 AS col1 FROM tab1
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3587
SELECT ALL COUNT( * ) - + - ( COUNT( ALL 21 ) ) AS col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3587
SELECT ALL COUNT ( * ) - + - ( COUNT ( ALL 21 ) ) AS col1 FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3588
SELECT DISTINCT CAST( + 94 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-3588
SELECT DISTINCT CAST ( + 94 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
94

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE ( col0 ) = NULL
----

query I rowsort
SELECT ALL + 78 + col0 FROM tab2 AS cor0
----
124
142
153

query I rowsort
SELECT 35 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT ALL - COUNT( * ) * - 29 AS col1 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-3592
SELECT ALL - COUNT ( * ) * - 29 AS col1 FROM tab0
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-3593
SELECT 57, COUNT( * ) col2 FROM tab2
----
57
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3593
SELECT 57, COUNT ( * ) col2 FROM tab2
----
57
3

query I rowsort
SELECT + 77 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

query II rowsort
SELECT DISTINCT + 43 AS col0, col2 AS col1 FROM tab0 cor0
----
43
10
43
47
43
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 45 col0 FROM tab1 cor0
----
45
45
45

query I rowsort
SELECT ALL - col2 * - col0 + + col0 FROM tab2 cor0
----
1104
2624
4425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-3599
SELECT ALL + col2 DIV 97 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL + col2 / 97 AS col1 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3600
SELECT CAST( NULL AS SIGNED ) + - + 20 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3600
SELECT CAST ( NULL AS INTEGER ) + - + 20 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 = 50
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3602
SELECT * FROM tab0 AS cor0 WHERE ( 8 ) * - 82 + ( col1 ) + - CAST( NULL AS SIGNED ) * - col2 <= - 70
----

skipif mysql # not compatible
query III rowsort label-3602
SELECT * FROM tab0 AS cor0 WHERE ( 8 ) * - 82 + ( col1 ) + - CAST ( NULL AS INTEGER ) * - col2 <= - 70
----

query I rowsort
SELECT ( + 32 ) FROM tab0 AS cor0
----
32
32
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3604
SELECT DISTINCT CAST( - 19 AS SIGNED ) + - + col2 - - + col2 * + 9 AS col2 FROM tab2 cor0
----
165
301
445

skipif mysql # not compatible
query I rowsort label-3604
SELECT DISTINCT CAST ( - 19 AS INTEGER ) + - + col2 - - + col2 * + 9 AS col2 FROM tab2 cor0
----
165
301
445

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT + MIN( DISTINCT - 18 ) * + COUNT( * ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-3605
SELECT + MIN ( DISTINCT - 18 ) * + COUNT ( * ) FROM tab0 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT MIN( DISTINCT + 78 ) FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-3606
SELECT MIN ( DISTINCT + 78 ) FROM tab0
----
78

query I rowsort
SELECT ALL col1 + 7 * - + 40 + 34 FROM tab1
----
-199
-232
-241

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3608
SELECT DISTINCT + CAST( + + 17 AS SIGNED ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-3608
SELECT DISTINCT + CAST ( + + 17 AS INTEGER ) FROM tab2 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT + + MIN( ALL + ( + col0 ) ) + + 28 AS col1 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-3609
SELECT + + MIN ( ALL + ( + col0 ) ) + + 28 AS col1 FROM tab1 AS cor0
----
79

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3610
SELECT col1 + + - CAST( NULL AS DECIMAL ) * - col0 + - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3610
SELECT col1 + + - CAST ( NULL AS REAL ) * - col0 + - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT ALL - + 96 + - ( MAX( DISTINCT - + 3 ) ) AS col2 FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-3611
SELECT ALL - + 96 + - ( MAX ( DISTINCT - + 3 ) ) AS col2 FROM tab0 AS cor0
----
-93

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT ALL + COUNT( * ) - - MIN( ALL + col2 ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-3613
SELECT ALL + COUNT ( * ) - - MIN ( ALL + col2 ) FROM tab2
----
26

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 NOT BETWEEN NULL AND - ( + + 36 ) / - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT MAX( DISTINCT col2 ) - - + ( - COUNT( - 43 ) ) * - - 82 AS col1 FROM tab2 AS cor0
----
-188

skipif mysql # not compatible
query I rowsort label-3615
SELECT MAX ( DISTINCT col2 ) - - + ( - COUNT ( - 43 ) ) * - - 82 AS col1 FROM tab2 AS cor0
----
-188

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - col0 ) > + + col2 + + ( + col2 )
----
15
81
47
97
1
99

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 44 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT - COUNT( * ) * 61 FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-3618
SELECT - COUNT ( * ) * 61 FROM tab0
----
-183

query I rowsort
SELECT - + 4 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - - col2 * + + col1 col2 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT 47 FROM tab0 WHERE NOT NULL < 83
----

query II rowsort
SELECT - + col2, col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * col0 + + + col1 col0 FROM tab2 AS cor0
----
2167
4173
5692

onlyif mysql # DIV for integer division: 
query I rowsort label-3624
SELECT ALL + 60 * - 35 + + - col0 + - ( - 60 ) + col2 DIV + col0 FROM tab0 AS cor0
----
-2052
-2127
-2136

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL + 60 * - 35 + + - col0 + - ( - 60 ) + col2 / + col0 FROM tab0 AS cor0
----
-2052
-2127
-2136

query II rowsort
SELECT + 21 AS col1, col2 * + + col0 AS col0 FROM tab0 AS cor0
----
21
705
21
870
21
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT ALL + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT col0 + - col2 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT col0 + - col2 IS NULL )
----
0

query I rowsort
SELECT DISTINCT + - 59 * - + col0 FROM tab2 AS cor0
----
2714
3776
4425

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3628
SELECT ALL - col1 AS col0, - col2 * - - CAST( NULL AS SIGNED ) FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-3628
SELECT ALL - col1 AS col0, - col2 * - - CAST ( NULL AS INTEGER ) FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3629
SELECT - + col0 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) + + col1 IS NOT NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3629
SELECT - + col0 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) + + col1 IS NOT NULL
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - + col1 ) * - col1 col2 FROM tab2
----
2601
4489
5929

query II rowsort
SELECT - col0 AS col2, col0 * + col2 AS col0 FROM tab0 WHERE NOT col0 * + ( - - col1 ) IS NULL
----
-15
705
-87
870
-97
9603

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3632
SELECT COUNT( * ) DIV - - MIN( + col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3632
SELECT COUNT ( * ) / - - MIN ( + col0 ) FROM tab2
----
0

query I rowsort
SELECT + col1 * - + 93 * + col1 FROM tab1
----
-18228
-205437
-2325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3634
SELECT DISTINCT + + ( - col1 ) + - + CAST( NULL AS SIGNED ) / 76 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT + + ( - col1 ) + - + CAST ( NULL AS INTEGER ) / 76 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 + + 13 FROM tab2 cor0
----
-33
-51
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3636
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 WHERE + col1 NOT IN ( col0 - + - col2, + 48 * + + 52, 87 )
----
-3

skipif mysql # not compatible
query I rowsort label-3636
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 WHERE + col1 NOT IN ( col0 - + - col2, + 48 * + + 52, 87 )
----
-3

query II rowsort
SELECT ALL col0 + + col0 AS col1, + col0 FROM tab1
----
102
51
170
85
182
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT + - ( - 86 ) * + - 46 + + COUNT( * ) FROM tab0 AS cor0
----
-3953

skipif mysql # not compatible
query I rowsort label-3638
SELECT + - ( - 86 ) * + - 46 + + COUNT ( * ) FROM tab0 AS cor0
----
-3953

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3639
SELECT SUM( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3639
SELECT SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT ALL - - col0 * + col0 AS col0 FROM tab0 AS cor0 WHERE NOT + col1 = col0 + col0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3641
SELECT * FROM tab1 AS cor0 WHERE + col0 * + ( - CAST( 95 AS SIGNED ) ) NOT BETWEEN + - col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3641
SELECT * FROM tab1 AS cor0 WHERE + col0 * + ( - CAST ( 95 AS INTEGER ) ) NOT BETWEEN + - col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3642
SELECT ALL - + col2 DIV col1 AS col2 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-3642
SELECT ALL - + col2 / col1 AS col2 FROM tab1 AS cor0
----
-1
-11
-6

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 NOT IN ( + + 70, ( - ( - + col2 ) ), + 95 / + col1 * + - col2 - - + col1 + - 55, - 15 / - 86 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3644
SELECT 47 - + - col2 DIV 24 col1 FROM tab1
----
49
49
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3644
SELECT 47 - + - col2 / 24 col1 FROM tab1
----
49
49
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT ALL COUNT( * ) + 77 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-3645
SELECT ALL COUNT ( * ) + 77 FROM tab2
----
80

query I rowsort
SELECT ( + - col0 ) + - + 53 * + col2 AS col0 FROM tab1
----
-3212
-3695
-5139

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3647
SELECT + + 79 * + - col2 AS col0, col0 AS col0 FROM tab1 WHERE - CAST( - - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-3647
SELECT + + 79 * + - col2 AS col0, col0 AS col0 FROM tab1 WHERE - CAST ( - - col0 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3648
SELECT CAST( col0 AS SIGNED ) * + col0 FROM tab2 WHERE + col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-3648
SELECT CAST ( col0 AS INTEGER ) * + col0 FROM tab2 WHERE + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT - COUNT( * ) + - 26 AS col0 FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-3649
SELECT - COUNT ( * ) + - 26 AS col0 FROM tab1
----
-29

query I rowsort
SELECT 65 * - col0 AS col1 FROM tab0
----
-5655
-6305
-975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, col1 col0 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3652
SELECT DISTINCT + MAX( + - col1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT + MAX ( + - col1 ) AS col1 FROM tab0
----
-1

query I rowsort
SELECT 3 * + + col2 AS col0 FROM tab2
----
120
174
69

query I rowsort
SELECT + col0 - + 16 FROM tab0 WHERE NOT + col2 * + 47 * - 99 + - col1 IS NULL
----
-1
71
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3655
SELECT - 7 DIV - COUNT( * ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-3655
SELECT - 7 / - COUNT ( * ) FROM tab1
----
2

query II rowsort
SELECT DISTINCT - col2 * - 14 AS col0, - col0 + 3 AS col2 FROM tab2 AS cor0
----
322
-43
560
-61
812
-72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3657
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( - 45 AS SIGNED ) * - col1 < NULL
----

skipif mysql # not compatible
query III rowsort label-3657
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( - 45 AS INTEGER ) * - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT - COUNT( ALL - + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3658
SELECT - COUNT ( ALL - + col2 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ALL + + COUNT( * ) + + 21 AS col2 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL + + COUNT ( * ) + + 21 AS col2 FROM tab0 AS cor0
----
24

query II rowsort
SELECT DISTINCT - col0 * + col2, - col1 AS col1 FROM tab1 AS cor0
----
-4896
-14
-5015
-5
-6188
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT - - MAX( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE NOT + col0 + - + col2 * col1 IS NULL
----
96

skipif mysql # not compatible
query I rowsort label-3661
SELECT - - MAX ( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE NOT + col0 + - + col2 * col1 IS NULL
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3662
SELECT ALL * FROM tab2 WHERE + CAST( + 7 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3662
SELECT ALL * FROM tab2 WHERE + CAST ( + 7 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT + ( - 54 ) FROM tab1
----
-54

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE + - col0 IS NULL
----

query I rowsort
SELECT ALL col0 * - - 56 AS col2 FROM tab0 AS cor0
----
4872
5432
840

onlyif mysql # DIV for integer division: 
query I rowsort label-3666
SELECT ALL col2 DIV - col0 + - - ( + 68 ) FROM tab1 AS cor0
----
67
68
68

skipif mysql # not compatible
query I rowsort label-3666
SELECT ALL col2 / - col0 + - - ( + 68 ) FROM tab1 AS cor0
----
67
68
68

query I rowsort
SELECT ALL + 0 + + - col0 AS col0 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT DISTINCT - COUNT( * ) + COUNT( * ) * + 27 AS col0 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-3668
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) * + 27 AS col0 FROM tab2
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3669
SELECT + 42 * + COUNT( * ) DIV - COUNT( * ) + - - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-33

skipif mysql # not compatible
query I rowsort label-3669
SELECT + 42 * + COUNT ( * ) / - COUNT ( * ) + - - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-33

query I rowsort
SELECT DISTINCT - col1 / col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3671
SELECT DISTINCT + - ( + - ( - + col2 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) < col0
----

skipif mysql # not compatible
query I rowsort label-3671
SELECT DISTINCT + - ( + - ( - + col2 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) < col0
----

query I rowsort
SELECT 45 FROM tab2 AS cor0 WHERE 86 - + col0 - + ( col1 ) BETWEEN + 65 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT COUNT( * ) + - + 22 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-3673
SELECT COUNT ( * ) + - + 22 FROM tab1 AS cor0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-3674
SELECT ALL 17 DIV + 61 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3674
SELECT ALL 17 / + 61 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3675
SELECT ALL + ( MAX( ALL + + col0 ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3675
SELECT ALL + ( MAX ( ALL + + col0 ) ) FROM tab0 AS cor0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + 9 + - col2 * - col2, col0 col0 FROM tab2 AS cor0
----
1649
64
3431
75
561
46

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT - COUNT( * ) * COUNT( ALL - - col0 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3677
SELECT - COUNT ( * ) * COUNT ( ALL - - col0 ) FROM tab0 AS cor0
----
-9

query II rowsort
SELECT - col2 AS col1, + col2 + - col0 FROM tab1 AS cor0
----
-59
-26
-68
-23
-96
45

query I rowsort
SELECT - 40 * - ( + col2 ) FROM tab2 AS cor0
----
1600
2320
920

query II rowsort
SELECT - col0 * - + col1, col2 FROM tab1
----
425
59
4277
68
714
96

query I rowsort
SELECT 86 * 59 AS col0 FROM tab0
----
5074
5074
5074

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE NULL BETWEEN + 75 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= - - 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3684
SELECT + + 20 * 39 * COUNT( + 16 ) AS col2 FROM tab1 AS cor0
----
2340

skipif mysql # not compatible
query I rowsort label-3684
SELECT + + 20 * 39 * COUNT ( + 16 ) AS col2 FROM tab1 AS cor0
----
2340

query I rowsort
SELECT - - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

query I rowsort
SELECT + - 4 AS col2 FROM tab0 cor0
----
-4
-4
-4

query I rowsort
SELECT DISTINCT 62 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
62

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 20 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3689
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-3689
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT - 37 * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-3690
SELECT - 37 * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3691
SELECT CAST( - ( + - col0 ) AS SIGNED ) AS col2, + 27 col1 FROM tab2 AS cor0
----
46
27
64
27
75
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3691
SELECT CAST ( - ( + - col0 ) AS INTEGER ) AS col2, + 27 col1 FROM tab2 AS cor0
----
46
27
64
27
75
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3692
SELECT DISTINCT + COUNT( * ), CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3692
SELECT DISTINCT + COUNT ( * ), CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = 23 * + 83
----

query I rowsort
SELECT ALL + col0 + + col1 * - ( - 36 ) FROM tab2 AS cor0
----
1882
2487
2836

query I rowsort
SELECT ALL col1 + - 85 AS col2 FROM tab1 AS cor0
----
-38
-71
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3696
SELECT ALL - SUM( DISTINCT col2 ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3696
SELECT ALL - SUM ( DISTINCT col2 ) FROM tab1 AS cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3697
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 60 + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - col0 + - col0 + + - 13 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3697
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 60 + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - col0 + - col0 + + - 13 IS NULL
----

query I rowsort
SELECT ALL + col2 + ( + + col0 ) * + 88 AS col1 FROM tab1
----
4584
7539
8076

onlyif mysql # aggregate syntax: 
query II rowsort label-3699
SELECT ALL + ( - COUNT( * ) ), 82 AS col0 FROM tab0
----
-3
82

skipif mysql # not compatible
query II rowsort label-3699
SELECT ALL + ( - COUNT ( * ) ), 82 AS col0 FROM tab0
----
-3
82

query I rowsort
SELECT DISTINCT 91 * 44 FROM tab2
----
4004

query I rowsort
SELECT DISTINCT + col2 * + col0 * - + col2 FROM tab2
----
-102400
-24334
-252300

query III rowsort
SELECT * FROM tab0 WHERE NULL <= - ( - - 24 ) + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3703
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 WHERE - ( col2 ) - col0 * - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 WHERE - ( col2 ) - col0 * - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 + - col1 * - 13 col0 FROM tab2
----
1068
730
938

onlyif mysql # aggregate syntax: 
query II rowsort label-3705
SELECT COUNT( DISTINCT - - col1 ) AS col0, - COUNT( * ) AS col2 FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-3705
SELECT COUNT ( DISTINCT - - col1 ) AS col0, - COUNT ( * ) AS col2 FROM tab1
----
3
-3

query I rowsort
SELECT + col2 * + col2 * 17 * col0 FROM tab2
----
1740800
413678
4289100

query I rowsort
SELECT - col0 * + 61 + - 60 * - 93 * - 51 + 93 AS col2 FROM tab1
----
-287598
-289672
-290038

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3708
SELECT + col1 * - + 21 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3708
SELECT + col1 * - + 21 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + ( - - col0 ) + + + col2 * - + col0 AS col1 FROM tab1 AS cor0
----
-4947
-5100
-6279

query II rowsort
SELECT ALL - ( + col2 ) AS col1, - col2 * + 74 * + + col2 FROM tab0 cor0
----
-10
-7400
-47
-163466
-99
-725274

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT DISTINCT - COUNT( * ) + ( 0 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3711
SELECT DISTINCT - COUNT ( * ) + ( 0 ) AS col0 FROM tab2 cor0
----
-3

query I rowsort
SELECT ALL col1 + + 15 FROM tab0
----
16
36
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT + COUNT( * ) * - 6 * - MIN( DISTINCT - + 43 ) FROM tab0
----
-774

skipif mysql # not compatible
query I rowsort label-3713
SELECT + COUNT ( * ) * - 6 * - MIN ( DISTINCT - + 43 ) FROM tab0
----
-774

query I rowsort
SELECT ALL col2 - 79 FROM tab1 AS cor0
----
-11
-20
17

query I rowsort
SELECT - col1 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3716
SELECT + 13 - - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-3716
SELECT + 13 - - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
16

query I rowsort
SELECT ALL col2 * - col1 + col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IN ( + col2 * + col1, col1, col0 + + col2, + col2, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3718
SELECT ALL + 89 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL + 89 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 9 * + col2 FROM tab0 AS cor0
----
423
891
90

query II rowsort
SELECT 90, + col0 FROM tab0
----
90
15
90
87
90
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT - COUNT( * ) * + + COUNT( * ) col1 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3721
SELECT - COUNT ( * ) * + + COUNT ( * ) col1 FROM tab1
----
-9

query II rowsort
SELECT ALL + col1 * + col1 * + + 69 * 27 AS col0, 28 FROM tab1
----
365148
28
4115367
28
46575
28

query I rowsort
SELECT ( ( - 3 ) ) FROM tab2
----
-3
-3
-3

query II rowsort
SELECT col0 AS col2, col2 AS col2 FROM tab2
----
46
23
64
40
75
58

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NOT ( col2 / + 68 = NULL )
----

query I rowsort
SELECT DISTINCT + - col0 * col2 FROM tab2 WHERE NOT + - 65 IS NOT NULL
----

query I rowsort
SELECT ALL - ( + - col0 ) AS col0 FROM tab1 cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 > col1
----

query I rowsort
SELECT DISTINCT - col1 / 33 * 83 + col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 45 >= - 31
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= 31
----

query II rowsort
SELECT ALL + + col2 AS col1, 90 FROM tab1 AS cor0 WHERE + col1 + - 15 <> - col2
----
59
90
68
90
96
90

query I rowsort
SELECT - + 30 + - 32 FROM tab0 AS cor0
----
-62
-62
-62

onlyif mysql # DIV for integer division: 
query I rowsort label-3734
SELECT DISTINCT + col1 + - 61 - + + col2 DIV col2 AS col2 FROM tab2 AS cor0
----
-11
15
5

skipif mysql # not compatible
query I rowsort label-3734
SELECT DISTINCT + col1 + - 61 - + + col2 / col2 AS col2 FROM tab2 AS cor0
----
-11
15
5

query I rowsort
SELECT - + 39 * + + col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col2 * + + 64
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3736
SELECT MAX( + CAST( NULL AS SIGNED ) ) * + CAST( 34 AS DECIMAL ) + COUNT( + 78 ) * + ( - - MAX( ALL col0 ) ) FROM tab1 AS cor0 WHERE 21 * + + 94 + col1 > + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3736
SELECT MAX ( + CAST ( NULL AS INTEGER ) ) * + CAST ( 34 AS REAL ) + COUNT ( + 78 ) * + ( - - MAX ( ALL col0 ) ) FROM tab1 AS cor0 WHERE 21 * + + 94 + col1 > + col2
----
NULL

query I rowsort
SELECT + ( - 43 ) + + + 59 AS col2 FROM tab2
----
16
16
16

onlyif mysql # DIV for integer division: 
query I rowsort label-3738
SELECT DISTINCT + 42 + + col0 * 96 * + - 4 + 52 DIV col2 AS col2 FROM tab2
----
-17620
-24533
-28758

skipif mysql # not compatible
query I rowsort label-3738
SELECT DISTINCT + 42 + + col0 * 96 * + - 4 + 52 / col2 AS col2 FROM tab2
----
-17620
-24533
-28758

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3739
SELECT DISTINCT + col0, ( CAST( NULL AS SIGNED ) ) * - - ( - 19 ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-3739
SELECT DISTINCT + col0, ( CAST ( NULL AS INTEGER ) ) * - - ( - 19 ) FROM tab0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT DISTINCT - - 61 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3741
SELECT DISTINCT + COUNT( * ) + + 56 AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3741
SELECT DISTINCT + COUNT ( * ) + + 56 AS col0 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT - COUNT( * ) + - 29 - - 65 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-3742
SELECT - COUNT ( * ) + - 29 - - 65 FROM tab0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-3743
SELECT col2 * col1 DIV + - ( col0 ) + - + col0 AS col0 FROM tab2
----
-112
-126
-71

skipif mysql # not compatible
query I rowsort label-3743
SELECT col2 * col1 / + - ( col0 ) + - + col0 AS col0 FROM tab2
----
-112
-126
-71

query I rowsort
SELECT ALL - - col2 FROM tab2 WHERE NOT NULL <> - col2 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT ALL + COUNT( * ) + 77 AS col1 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL + COUNT ( * ) + 77 AS col1 FROM tab2
----
80

onlyif mysql # DIV for integer division: 
query II rowsort label-3746
SELECT - 72 AS col0, 34 DIV col1 FROM tab0 cor0
----
-72
0
-72
1
-72
34

skipif mysql # not compatible
query II rowsort label-3746
SELECT - 72 AS col0, 34 / col1 FROM tab0 cor0
----
-72
0
-72
1
-72
34

onlyif mysql # aggregate syntax: 
query II rowsort label-3747
SELECT DISTINCT - - COUNT( * ), ( - 22 ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0
-22

skipif mysql # not compatible
query II rowsort label-3747
SELECT DISTINCT - - COUNT ( * ), ( - 22 ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0
-22

query I rowsort
SELECT + 46 * + 73 FROM tab2 AS cor0
----
3358
3358
3358

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT + 17 - + + 8 + - SUM( - col0 ) col0 FROM tab2 AS cor0
----
194

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3749
SELECT + 17 - + + 8 + - SUM ( - col0 ) col0 FROM tab2 AS cor0
----
194

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT ( - - 86 ) - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-3750
SELECT ( - - 86 ) - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col1 ) - + col2 col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT + col0 * + - col0 + - - 62 FROM tab2
----
-2054
-4034
-5563

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT DISTINCT COUNT( * ) - - 62 + + 87 FROM tab0
----
152

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT COUNT ( * ) - - 62 + + 87 FROM tab0
----
152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + - 21, + ( - 74 ) col1 FROM tab2
----
19
-74
2
-74
37
-74

query I rowsort
SELECT + + 11 * col1 * 72 AS col1 FROM tab2 AS cor0
----
40392
53064
60984

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3756
SELECT ALL + - ( + + COUNT( * ) ) DIV MIN( + 99 ) * - 94 + + + MIN( ALL - - col1 ) * - + 85 AS col2 FROM tab1 AS cor0
----
-425

skipif mysql # not compatible
query I rowsort label-3756
SELECT ALL + - ( + + COUNT ( * ) ) / MIN ( + 99 ) * - 94 + + + MIN ( ALL - - col1 ) * - + 85 AS col2 FROM tab1 AS cor0
----
-425

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT + MAX( - 51 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3757
SELECT + MAX ( - 51 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT col2 * + 12 FROM tab2
----
276
480
696

query I rowsort
SELECT ALL col1 * + col1 * - 94 AS col2 FROM tab2
----
-244494
-421966
-557326

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT DISTINCT + ( COUNT( 82 ) ) * - + COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT + ( COUNT ( 82 ) ) * - + COUNT ( * ) AS col2 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3761
SELECT - + COUNT( ALL - col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3761
SELECT - + COUNT ( ALL - col1 ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT - MIN( + - col1 ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3762
SELECT - MIN ( + - col1 ) AS col2 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3763
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3763
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - ( 69 ) IS NULL
----

query II rowsort
SELECT ALL + 14, - col1 * - col2 AS col0 FROM tab0 AS cor0
----
14
210
14
3807
14
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 14 ) col0 FROM tab2 AS cor0
----
-14
-14
-14

onlyif mysql # aggregate syntax: 
query II rowsort label-3767
SELECT - - COUNT( * ) col1, - 27 * ( - 73 ) AS col1 FROM tab0 AS cor0
----
3
1971

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3767
SELECT - - COUNT ( * ) col1, - 27 * ( - 73 ) AS col1 FROM tab0 AS cor0
----
3
1971

onlyif mysql # aggregate syntax: 
query I rowsort label-3768
SELECT + + MIN( + - 92 ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-3768
SELECT + + MIN ( + - 92 ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT MAX( DISTINCT 58 ) AS col1 FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3769
SELECT MAX ( DISTINCT 58 ) AS col1 FROM tab0 AS cor0
----
58

query I rowsort
SELECT ALL + 87 + 86 FROM tab1 AS cor0
----
173
173
173

query II rowsort
SELECT col1, 69 + + col2 AS col1 FROM tab2 AS cor0
----
51
92
67
127
77
109

query II rowsort
SELECT ALL + 64 AS col0, + 19 AS col2 FROM tab2 AS cor0
----
64
19
64
19
64
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3773
SELECT DISTINCT col0 + + - CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-3773
SELECT DISTINCT col0 + + - CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
108
96
98

query II rowsort
SELECT DISTINCT - col2 AS col2, - col1 AS col0 FROM tab1 cor0
----
-59
-5
-68
-47
-96
-14

query I rowsort
SELECT ALL + 93 + + 35 AS col2 FROM tab0 AS cor0
----
128
128
128

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT ALL + 73 + COUNT( + - 4 ) AS col1 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-3776
SELECT ALL + 73 + COUNT ( + - 4 ) AS col1 FROM tab0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3777
SELECT ALL MAX( ALL + - 11 ) - COUNT( * ) col2 FROM tab2
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3777
SELECT ALL MAX ( ALL + - 11 ) - COUNT ( * ) col2 FROM tab2
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3778
SELECT CAST( NULL AS SIGNED ) + - + 80 * - col1 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3778
SELECT CAST ( NULL AS INTEGER ) + - + 80 * - col1 + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 81 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 8 + + ( - col2 ) FROM tab2 AS cor0
----
-15
-32
-50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3781
SELECT * FROM tab0 AS cor0 WHERE + col1 BETWEEN - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3781
SELECT * FROM tab0 AS cor0 WHERE + col1 BETWEEN - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT DISTINCT - ( + + COUNT( * ) ) * SUM( DISTINCT col1 ) * - 44 * + + MAX( 54 ) FROM tab1
----
470448

skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT - ( + + COUNT ( * ) ) * SUM ( DISTINCT col1 ) * - 44 * + + MAX ( 54 ) FROM tab1
----
470448

query III rowsort
SELECT * FROM tab0 WHERE - col1 + - 20 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col1 AS col1, + 36 AS col0 FROM tab2 AS cor0
----
51
36
67
36
77
36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3785
SELECT ALL - - CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3785
SELECT ALL - - CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT COUNT( * ) * + 58 AS col1 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-3786
SELECT COUNT ( * ) * + 58 AS col1 FROM tab2
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-3787
SELECT + MIN( col1 ) * - 2 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-3787
SELECT + MIN ( col1 ) * - 2 FROM tab0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3788
SELECT col0 * col2 DIV - - 43 FROM tab1
----
113
116
143

skipif mysql # not compatible
query I rowsort label-3788
SELECT col0 * col2 / - - 43 FROM tab1
----
113
116
143

query I rowsort
SELECT DISTINCT col2 * - 3 AS col1 FROM tab0
----
-141
-297
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT - COUNT( * ) * - MAX( + col2 ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-3790
SELECT - COUNT ( * ) * - MAX ( + col2 ) FROM tab0
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL + - MAX( col0 ) AS col1 FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL + - MAX ( col0 ) AS col1 FROM tab1 cor0
----
-91

query I rowsort
SELECT ALL - - col0 * 23 FROM tab1 cor0
----
1173
1955
2093

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT - + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3793
SELECT - + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-9

query II rowsort
SELECT col2 AS col1, + col2 + + 58 AS col1 FROM tab2
----
23
81
40
98
58
116

onlyif mysql # aggregate syntax: 
query I rowsort label-3795
SELECT 82 + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
91

skipif mysql # not compatible
query I rowsort label-3795
SELECT 82 + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
91

query III rowsort
SELECT ALL + col1, col1 - col1 AS col0, + col2 FROM tab1
----
9 values hashing to 04d54c6cedc4bae23cefd12827659122

query I rowsort
SELECT + 55 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT DISTINCT MAX( DISTINCT - col2 ) AS col2 FROM tab2 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3798
SELECT DISTINCT MAX ( DISTINCT - col2 ) AS col2 FROM tab2 cor0
----
-23

query I rowsort
SELECT 3 + col0 AS col2 FROM tab2 AS cor0
----
49
67
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT ALL + COUNT( ALL 45 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3800
SELECT ALL + COUNT ( ALL 45 ) col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 55 + - col1 + + col2 AS col1 FROM tab0 cor0
----
-66
-89
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT - COUNT( * ) + - 87 AS col1 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-3802
SELECT - COUNT ( * ) + - 87 AS col1 FROM tab2 AS cor0
----
-90

onlyif mysql # DIV for integer division: 
query II rowsort label-3803
SELECT + 86, col1 DIV - 65 + + 64 AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
86
63
86
64
86
64

skipif mysql # not compatible
query II rowsort label-3803
SELECT + 86, col1 / - 65 + + 64 AS col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
86
63
86
64
86
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3804
SELECT ALL 77 DIV 3 + col0 FROM tab2 AS cor0
----
100
71
89

skipif mysql # not compatible
query I rowsort label-3804
SELECT ALL 77 / 3 + col0 FROM tab2 AS cor0
----
100
71
89

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3805
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 97 * + + CAST( + col1 AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3805
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 97 * + + CAST ( + col1 AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 19 + - + col2 FROM tab1 AS cor0
----
-40
-49
-77

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3808
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT + col1 * + 91 + + col1 FROM tab0
----
1932
7452
92

onlyif mysql # aggregate syntax: 
query II rowsort label-3810
SELECT - COUNT( * ), - 1 AS col2 FROM tab0
----
-3
-1

skipif mysql # not compatible
query II rowsort label-3810
SELECT - COUNT ( * ), - 1 AS col2 FROM tab0
----
-3
-1

query I rowsort
SELECT DISTINCT 71 + - 69 FROM tab0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 22 col1, col0 + - + col2 FROM tab0
----
-22
-2
-22
-32
-22
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 WHERE 15 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3814
SELECT DISTINCT * FROM tab0 WHERE - + col2 NOT IN ( CAST( NULL AS SIGNED ) / + ( + CAST( + - 92 AS SIGNED ) ) / col1 )
----

skipif mysql # not compatible
query III rowsort label-3814
SELECT DISTINCT * FROM tab0 WHERE - + col2 NOT IN ( CAST ( NULL AS INTEGER ) / + ( + CAST ( + - 92 AS INTEGER ) ) / col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= - + col1
----

query I rowsort
SELECT - + 85 - + col2 FROM tab1 AS cor0
----
-144
-153
-181

query I rowsort
SELECT + - col0 - - - col0 + - + 13 AS col1 FROM tab1 AS cor0
----
-115
-183
-195

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( - col1 ) AND + col1 * + ( - + 84 )
----

query I rowsort
SELECT + - 31 - col2 FROM tab2 AS cor0
----
-54
-71
-89

query I rowsort
SELECT ALL + 76 + - - col2 AS col1 FROM tab2 AS cor0
----
116
134
99

query I rowsort
SELECT DISTINCT + 3 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
3

query I rowsort
SELECT ALL 53 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT DISTINCT + 26 * + 65 * + - col1 * + 46 FROM tab0 AS cor0
----
-1632540
-6296940
-77740

onlyif mysql # aggregate syntax: 
query I rowsort label-3824
SELECT DISTINCT + - MIN( col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3824
SELECT DISTINCT + - MIN ( col0 ) AS col2 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT + - 33 FROM tab0 cor0
----
-33
-33
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3826
SELECT 34 * - col1 + + CAST( + 33 AS SIGNED ) AS col2 FROM tab2 cor0
----
-1701
-2245
-2585

skipif mysql # not compatible
query I rowsort label-3826
SELECT 34 * - col1 + + CAST ( + 33 AS INTEGER ) AS col2 FROM tab2 cor0
----
-1701
-2245
-2585

query I rowsort
SELECT col2 * - 72 AS col2 FROM tab0 AS cor0
----
-3384
-7128
-720

query I rowsort
SELECT col2 * + - 36 FROM tab2
----
-1440
-2088
-828

query II rowsort
SELECT ALL - 72 AS col0, col1 FROM tab0 WHERE NULL IS NULL
----
-72
1
-72
21
-72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3830
SELECT ALL + COUNT( 56 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3830
SELECT ALL + COUNT ( 56 ) AS col0 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3831
SELECT + COUNT( ALL CAST( NULL AS SIGNED ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3831
SELECT + COUNT ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3832
SELECT + + 66 DIV + + col0 AS col2 FROM tab0 AS cor0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-3832
SELECT + + 66 / + + col0 AS col2 FROM tab0 AS cor0
----
0
0
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 88 * - col0 + - col1 col2 FROM tab0 AS cor0
----
1239
7635
8535

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT MAX( - + col2 ) col2 FROM tab0 cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3834
SELECT MAX ( - + col2 ) col2 FROM tab0 cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT DISTINCT - + 40 + + COUNT( * ) FROM tab0 cor0
----
-37

skipif mysql # not compatible
query I rowsort label-3835
SELECT DISTINCT - + 40 + + COUNT ( * ) FROM tab0 cor0
----
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + ( col1 ) col0 FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL - 95 * 98 FROM tab1
----
-9310
-9310
-9310

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3839
SELECT - CAST( NULL AS SIGNED ) + - 64 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3839
SELECT - CAST ( NULL AS INTEGER ) + - 64 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 + + col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3842
SELECT SUM( ALL col2 ) * - 82 AS col0 FROM tab2
----
-9922

skipif mysql # not compatible
query I rowsort label-3842
SELECT SUM ( ALL col2 ) * - 82 AS col0 FROM tab2
----
-9922

query I rowsort
SELECT - ( 66 ) AS col0 FROM tab1 WHERE col2 - col1 NOT IN ( - col0 * + col0 )
----
-66
-66
-66

query I rowsort
SELECT ( + col0 ) * + 91 FROM tab0
----
1365
7917
8827

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT - MAX( DISTINCT - 36 ) * COUNT( * ) AS col0 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-3845
SELECT - MAX ( DISTINCT - 36 ) * COUNT ( * ) AS col0 FROM tab1
----
108

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( 2 * - ( - col1 ) + col2 * + col2 ) AND + ( + col1 ) - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3847
SELECT 4 * + ( + COUNT( * ) ) AS col2 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-3847
SELECT 4 * + ( + COUNT ( * ) ) AS col2 FROM tab2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3848
SELECT CAST( - 62 AS SIGNED ) FROM tab0
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-3848
SELECT CAST ( - 62 AS INTEGER ) FROM tab0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3849
SELECT ALL + COUNT( DISTINCT 25 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3849
SELECT ALL + COUNT ( DISTINCT 25 ) FROM tab0
----
1

query I rowsort
SELECT 84 * col0 + + 69 * - col0 FROM tab2
----
1125
690
960

query III rowsort
SELECT * FROM tab2 WHERE NOT 37 + - 2 / col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3852
SELECT DISTINCT ( MIN( col0 ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3852
SELECT DISTINCT ( MIN ( col0 ) ) FROM tab2
----
46

query I rowsort
SELECT DISTINCT 21 * + col1 AS col1 FROM tab1
----
105
294
987

query I rowsort
SELECT DISTINCT - 96 * + 45 FROM tab1 WHERE NOT 48 IS NOT NULL
----

query I rowsort
SELECT ALL ( col2 ) FROM tab1 WHERE NOT 98 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( - col1 ) >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN - 30 * - col0 AND - 22
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT - COUNT( ALL - 54 ) + - 56 AS col1 FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-3858
SELECT - COUNT ( ALL - 54 ) + - 56 AS col1 FROM tab2
----
-59

query I rowsort
SELECT ALL 11 * col2 AS col1 FROM tab0
----
1089
110
517

onlyif mysql # DIV for integer division: 
query I rowsort label-3860
SELECT - 39 DIV - col2 AS col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-3860
SELECT - 39 / - col2 AS col0 FROM tab0
----
0
0
3

query I rowsort
SELECT DISTINCT - 92 - - col0 AS col2 FROM tab1
----
-1
-41
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-3862
SELECT + 29 DIV col1 FROM tab0
----
0
1
29

skipif mysql # not compatible
query I rowsort label-3862
SELECT + 29 / col1 FROM tab0
----
0
1
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT - ( + 39 ) * COUNT( * ) + - COUNT( * ) FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-3863
SELECT - ( + 39 ) * COUNT ( * ) + - COUNT ( * ) FROM tab1
----
-120

query III rowsort
SELECT * FROM tab1 WHERE + col2 * col2 NOT BETWEEN + col1 - col0 AND col2 - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE col2 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3866
SELECT 6 * CAST( - col2 AS SIGNED ) FROM tab1
----
-354
-408
-576

skipif mysql # not compatible
query I rowsort label-3866
SELECT 6 * CAST ( - col2 AS INTEGER ) FROM tab1
----
-354
-408
-576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3867
SELECT SUM( 20 ) FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
60

skipif mysql # not compatible
query I rowsort label-3867
SELECT SUM ( 20 ) FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 col2 FROM tab2 WHERE NOT - 20 - col1 IS NULL
----
62
62
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3869
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) / col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3869
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) / col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3870
SELECT DISTINCT CAST( NULL AS SIGNED ) / - ( + MIN( col0 ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - ( + MIN ( col0 ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT + 2 + COUNT( DISTINCT 52 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3871
SELECT + 2 + COUNT ( DISTINCT 52 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT ALL MAX( - ( ( + col2 ) ) ) col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3872
SELECT ALL MAX ( - ( ( + col2 ) ) ) col0 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL - ( + 82 ) FROM tab0 AS cor0
----
-82
-82
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3874
SELECT COUNT( * ) DIV 32 col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3874
SELECT COUNT ( * ) / 32 col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3875
SELECT - 35 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
-315

skipif mysql # not compatible
query I rowsort label-3875
SELECT - 35 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1
----
-315

query I rowsort
SELECT 48 + col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 / + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3878
SELECT - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3878
SELECT - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3879
SELECT - col0 + - - col2 - 67 DIV 79 col1 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3879
SELECT - col0 + - - col2 - 67 / 79 col1 FROM tab2
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3880
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + col2 DIV col2 FROM tab1
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + col2 / col2 FROM tab1
----
-50
-84
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3881
SELECT ALL COUNT( * ) DIV 9 AS col0 FROM tab0 WHERE NOT col2 + 21 BETWEEN NULL AND col1 * - 65 + col0
----
0

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL COUNT ( * ) / 9 AS col0 FROM tab0 WHERE NOT col2 + 21 BETWEEN NULL AND col1 * - 65 + col0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 + + col0 <> - col2 + - 40
----

query I rowsort
SELECT 29 + col2 + + col1 * - col0 FROM tab0
----
-1139
-1788
31

query I rowsort
SELECT + ( + col1 ) + + col2 * 66 FROM tab2
----
1569
2717
3895

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3885
SELECT ALL 35 + col2 col0 FROM tab0 WHERE 96 + ( + col2 ) / + col1 IN ( CAST( NULL AS SIGNED ) - - ( - 33 ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3885
SELECT ALL 35 + col2 col0 FROM tab0 WHERE 96 + ( + col2 ) / + col1 IN ( CAST ( NULL AS INTEGER ) - - ( - 33 ) )
----

query I rowsort
SELECT ( - ( + col2 ) ) FROM tab0 WHERE ( NULL ) IN ( - col0 + - col0 )
----

query I rowsort
SELECT ALL - 11 FROM tab2 AS cor0 WHERE NOT + col0 >= - col1
----

query I rowsort
SELECT DISTINCT - col0 + - 91 FROM tab1 AS cor0
----
-142
-176
-182

onlyif mysql # DIV for integer division: 
query I rowsort label-3889
SELECT ALL + col2 DIV + col0 + 12 * + 79 AS col1 FROM tab0 AS cor0
----
948
949
951

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL + col2 / + col0 + 12 * + 79 AS col1 FROM tab0 AS cor0
----
948
949
951

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT DISTINCT + COUNT( * ) + 77 col2 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3890
SELECT DISTINCT + COUNT ( * ) + 77 col2 FROM tab2 AS cor0
----
80

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( + col1 + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3892
SELECT DISTINCT * FROM tab0 WHERE ( - 14 * 55 ) > col1 / CAST( NULL AS SIGNED ) + + 93
----

skipif mysql # not compatible
query III rowsort label-3892
SELECT DISTINCT * FROM tab0 WHERE ( - 14 * 55 ) > col1 / CAST ( NULL AS INTEGER ) + + 93
----

query III rowsort
SELECT * FROM tab0 WHERE - col2 * col2 IN ( 46 * + col1 )
----

query I rowsort
SELECT ALL col0 - + col1 + - col2 AS col1 FROM tab2
----
-28
-50
-53

query I rowsort
SELECT DISTINCT + ( 14 ) * - col0 FROM tab1 AS cor0 WHERE NOT + ( + 13 ) * - 50 - 75 IS NOT NULL
----

query I rowsort
SELECT col2 + - 65 FROM tab1 AS cor0
----
-6
3
31

query I rowsort
SELECT + - col1 + 30 FROM tab2 cor0
----
-21
-37
-47

query I rowsort
SELECT - - col1 * - col2 * - col0 + - col2 FROM tab1 AS cor0
----
25016
290768
68448

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT + SUM( 62 ) * - 55 * 78 + - ( 29 + 64 ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-797661

skipif mysql # not compatible
query I rowsort label-3899
SELECT + SUM ( 62 ) * - 55 * 78 + - ( 29 + 64 ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-797661

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - ( 37 ) ) IS NOT NULL OR col0 * + 11 + - col0 / - 1 NOT IN ( ( col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE + ( col2 ) >= + col2 * + col0 + - 6
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3902
SELECT DISTINCT - 55 / - col1 * + CAST( NULL AS SIGNED ) + + col2 / col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3902
SELECT DISTINCT - 55 / - col1 * + CAST ( NULL AS INTEGER ) + + col2 / col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 + - + 77 AS col0 FROM tab2
----
-10
-26
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3904
SELECT ALL - col1 + - col0 DIV + + 13 AS col2 FROM tab0
----
-27
-8
-82

skipif mysql # not compatible
query I rowsort label-3904
SELECT ALL - col1 + - col0 / + + 13 AS col2 FROM tab0
----
-27
-8
-82

query III rowsort
SELECT * FROM tab1 WHERE + - col2 * 76 * - col0 + col0 BETWEEN col2 * col0 AND 73
----

query I rowsort
SELECT DISTINCT col0 + col1 + + col2 + - col1 AS col1 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3907
SELECT DISTINCT - + COUNT( * ) - + COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
-6

skipif mysql # not compatible
query I rowsort label-3907
SELECT DISTINCT - + COUNT ( * ) - + COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT DISTINCT + 63 - COUNT( * ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-3908
SELECT DISTINCT + 63 - COUNT ( * ) FROM tab0
----
60

query I rowsort
SELECT ALL - col1 * 65 * - 84 AS col0 FROM tab1
----
256620
27300
76440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3910
SELECT ALL COUNT( ALL + CAST( col2 AS SIGNED ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3910
SELECT ALL COUNT ( ALL + CAST ( col2 AS INTEGER ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3911
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3911
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col2 ) BETWEEN ( - col1 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IS NULL AND ( + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 72 FROM tab0 AS cor0 WHERE NOT NULL >= ( col1 * 72 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3915
SELECT + COUNT( ALL + col2 ), 62 AS col1 FROM tab1 AS cor0
----
3
62

skipif mysql # not compatible
query II rowsort label-3915
SELECT + COUNT ( ALL + col2 ), 62 AS col1 FROM tab1 AS cor0
----
3
62

query I rowsort
SELECT ALL col0 * - col1 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - col1 ) col1 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3918
SELECT DISTINCT col2 + CAST( NULL AS DECIMAL ) / + col2 col0 FROM tab1 AS cor0 WHERE NOT + col2 * + + 36 BETWEEN + col1 AND ( - - col1 * + col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3918
SELECT DISTINCT col2 + CAST ( NULL AS REAL ) / + col2 col0 FROM tab1 AS cor0 WHERE NOT + col2 * + + 36 BETWEEN + col1 AND ( - - col1 * + col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT + MAX( - 34 ) AS col2 FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-3919
SELECT + MAX ( - 34 ) AS col2 FROM tab1 AS cor0
----
-34

query II rowsort
SELECT DISTINCT + col2 AS col0, - col1 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 80 IS NOT NULL
----

query II rowsort
SELECT - - col0, ( - ( - ( col0 ) ) ) - - col1 AS col0 FROM tab1 AS cor0
----
51
65
85
90
91
138

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT - 45 + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( 32 ) IS NULL
----
-48

skipif mysql # not compatible
query I rowsort label-3923
SELECT - 45 + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( 32 ) IS NULL
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT - MIN( ALL 25 ) AS col1 FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-3924
SELECT - MIN ( ALL 25 ) AS col1 FROM tab2 AS cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-3925
SELECT DISTINCT 49 + - 42 * - COUNT( * ) col1 FROM tab0 AS cor0 WHERE + col2 IN ( + 42, col1 )
----
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3925
SELECT DISTINCT 49 + - 42 * - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE + col2 IN ( + 42, col1 )
----
49

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT ( NULL IN ( - col2, 51 * + - col0 * + col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3927
SELECT DISTINCT col0 DIV + + 94 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT col0 / + + 94 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - + ( - - AVG ( ALL - col1 ) ) * + 31 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( col0 NOT BETWEEN ( + col1 ) AND ( - 2 * + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3930
SELECT ALL COUNT( * ) FROM tab1 WHERE NOT - col2 NOT BETWEEN col0 * col0 AND ( col1 / col0 )
----
0

skipif mysql # not compatible
query I rowsort label-3930
SELECT ALL COUNT ( * ) FROM tab1 WHERE NOT - col2 NOT BETWEEN col0 * col0 AND ( col1 / col0 )
----
0

query II rowsort
SELECT ALL - + 10, col1 FROM tab2 AS cor0
----
-10
51
-10
67
-10
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( - 51 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3933
SELECT + 31 * COUNT( * ) - - 24 * - - MIN( - - 62 ) + 10 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1777

skipif mysql # not compatible
query I rowsort label-3933
SELECT + 31 * COUNT ( * ) - - 24 * - - MIN ( - - 62 ) + 10 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
1777

query I rowsort
SELECT DISTINCT - col0 - + - col0 AS col2 FROM tab0
----
0

query I rowsort
SELECT + 25 * 42 AS col0 FROM tab1 WHERE col0 IS NOT NULL
----
1050
1050
1050

query I rowsort
SELECT DISTINCT - 54 AS col0 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3937
SELECT * FROM tab1 AS cor0 WHERE ( NULL NOT IN ( - 1 - 24 + - col0 + - CAST( 75 AS SIGNED ) - + 19 / - 84 * col2 ) )
----

skipif mysql # not compatible
query III rowsort label-3937
SELECT * FROM tab1 AS cor0 WHERE ( NULL NOT IN ( - 1 - 24 + - col0 + - CAST ( 75 AS INTEGER ) - + 19 / - 84 * col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 - col2 col2 FROM tab0 AS cor0
----
-125
-177
-88

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT NULL < - col2 )
----

query II rowsort
SELECT + + 93 - + - col2 AS col2, + ( + - col2 ) + - col1 FROM tab1 AS cor0
----
152
-64
161
-115
189
-110

onlyif mysql # aggregate syntax: 
query I rowsort label-3941
SELECT DISTINCT + ( COUNT( * ) ) - 77 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT + ( COUNT ( * ) ) - 77 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT ALL + 37 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT col2 * col0 * + + col1 - + - col0 FROM tab1 cor0
----
25160
290927
68595

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 86 * col1 / - col0 ) > - col0
----
87
21
10
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3945
SELECT + 63 DIV col2 * + - 89 AS col0 FROM tab2
----
-178
-89
-89

skipif mysql # not compatible
query I rowsort label-3945
SELECT + 63 / col2 * + - 89 AS col0 FROM tab2
----
-178
-89
-89

query I rowsort
SELECT DISTINCT + 35 * 18 AS col0 FROM tab0
----
630

query I rowsort
SELECT ALL + col0 / + - 55 AS col0 FROM tab0 WHERE NOT - + col0 + - col1 <> - 23 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3948
SELECT MAX( 22 ) AS col1 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-3948
SELECT MAX ( 22 ) AS col1 FROM tab2
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 cor0 WHERE NOT NULL IS NULL AND 69 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 18 + - + col0 IS NULL
----

query I rowsort
SELECT - + 55 + 69 FROM tab1 AS cor0
----
14
14
14

query II rowsort
SELECT DISTINCT col1 + + 86 AS col1, col1 FROM tab1 AS cor0
----
100
14
133
47
91
5

query II rowsort
SELECT ALL - 86 + - + 20, + col1 AS col0 FROM tab0 AS cor0
----
-106
1
-106
21
-106
81

query I rowsort
SELECT - col1 + col1 + + col0 AS col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT 80 + - col2 * + + col0 AS col1 FROM tab1
----
-4816
-4935
-6108

query I rowsort
SELECT + 68 + + col2 FROM tab2
----
108
126
91

query I rowsort
SELECT DISTINCT + 2 + - + 83 - - 58 FROM tab2
----
-23

query I rowsort
SELECT 72 + - + col1 + + - col1 AS col2 FROM tab1
----
-22
44
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3959
SELECT CAST( - col1 AS SIGNED ) * col1 + + col0 + + 59 + col0 * - col0 * - 27 col2 FROM tab2
----
104786
147520
54636

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3959
SELECT CAST ( - col1 AS INTEGER ) * col1 + + col0 + + 59 + col0 * - col0 * - 27 col2 FROM tab2
----
104786
147520
54636

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 <= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + col1 * col2 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3962
SELECT col2 DIV - + ( + 69 ) FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3962
SELECT col2 / - + ( + 69 ) FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 * + 48 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
2256
4752
480

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT ALL + COUNT( * ) + 97 AS col1 FROM tab2 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-3964
SELECT ALL + COUNT ( * ) + 97 AS col1 FROM tab2 AS cor0
----
100

query I rowsort
SELECT ALL 72 * - col0 + + + col1 AS col1 FROM tab1
----
-3658
-6115
-6505

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + - col0 ) + + 65 + + col1 col2, + 98 + + 63 AS col0 FROM tab1
----
130
161
155
161
203
161

query II rowsort
SELECT ALL + ( col0 ) - 54 * col1, - col1 AS col2 FROM tab1
----
-185
-5
-2447
-47
-705
-14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + - ( - col2 ) col1 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3969
SELECT DISTINCT - MAX( ALL - col0 ) DIV + + 48 - - - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3969
SELECT DISTINCT - MAX ( ALL - col0 ) / + + 48 - - - COUNT ( * ) FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - ( - col0 ) ) col0 FROM tab2 AS cor0
----
-46
-64
-75

query II rowsort
SELECT DISTINCT + 26 AS col1, col1 FROM tab1 AS cor0
----
26
14
26
47
26
5

onlyif mysql # DIV for integer division: 
query II rowsort label-3972
SELECT - col2 col0, - 69 DIV + col1 FROM tab0 AS cor0
----
-10
-3
-47
0
-99
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3972
SELECT - col2 col0, - 69 / + col1 FROM tab0 AS cor0
----
-10
-3
-47
0
-99
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT 5 * + COUNT( * ) + 99 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-3973
SELECT 5 * + COUNT ( * ) + 99 FROM tab1 AS cor0
----
114

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 + + 72 IN ( - + col2 * - 39, + col2 / - ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT DISTINCT + COUNT( * ) col2 FROM tab2 WHERE col1 <= + 55 * - + col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3975
SELECT DISTINCT + COUNT ( * ) col2 FROM tab2 WHERE col1 <= + 55 * - + col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * - 2 + - col0 col2 FROM tab0 AS cor0
----
-111
-121
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3977
SELECT ALL 7 * - + MAX( ALL + - 74 ) + + - 58 AS col2 FROM tab2 AS cor0
----
460

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL 7 * - + MAX ( ALL + - 74 ) + + - 58 AS col2 FROM tab2 AS cor0
----
460

query II rowsort
SELECT DISTINCT + 63, + col0 AS col0 FROM tab0
----
63
15
63
87
63
97

query I rowsort
SELECT DISTINCT + - 53 - - - 12 FROM tab0 cor0 WHERE ( ( NULL NOT BETWEEN - col0 AND NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3980
SELECT + + 54 + COUNT( * ) DIV + + 90 FROM tab1 cor0 WHERE NULL NOT BETWEEN 7 + + 98 - + + 91 * + + col2 + + col2 AND + 41
----
54

skipif mysql # not compatible
query I rowsort label-3980
SELECT + + 54 + COUNT ( * ) / + + 90 FROM tab1 cor0 WHERE NULL NOT BETWEEN 7 + + 98 - + + 91 * + + col2 + + col2 AND + 41
----
54

query I rowsort
SELECT DISTINCT + + 85 + + ( - ( + ( - col2 ) ) ) + + 19 AS col0 FROM tab0 AS cor0
----
114
151
203

query I rowsort
SELECT ALL - - 86 * - col0 FROM tab0 AS cor0
----
-1290
-7482
-8342

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > + col1 - - ( - col1 ) / - col0 + - - col1
----

query I rowsort
SELECT DISTINCT + 68 + + 81 FROM tab0 AS cor0
----
149

query II rowsort
SELECT - col2, + 55 AS col2 FROM tab0 AS cor0
----
-10
55
-47
55
-99
55

onlyif mysql # aggregate syntax: 
query I rowsort label-3986
SELECT DISTINCT COUNT( DISTINCT col0 ) * - + ( - SUM( + 4 ) ) FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3986
SELECT DISTINCT COUNT ( DISTINCT col0 ) * - + ( - SUM ( + 4 ) ) FROM tab2 AS cor0
----
36

query I rowsort
SELECT ALL + - col2 + + + col1 FROM tab1 AS cor0
----
-21
-54
-82

query I rowsort
SELECT 34 * col0 FROM tab1
----
1734
2890
3094

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 BETWEEN - col0 + col0 AND col0 * + - 42
----

query I rowsort
SELECT + col0 + - + 64 FROM tab0 WHERE + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + + 94 col2 FROM tab2
----
140
158
169

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3992
SELECT ALL + 42, ( + - col2 ) FROM tab2 WHERE - CAST( + 26 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-3992
SELECT ALL + 42, ( + - col2 ) FROM tab2 WHERE - CAST ( + 26 AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3993
SELECT ALL + col0 DIV col1 * + - col1 * 7 + + 34 * ( - 98 ), col2 FROM tab2
----
-3332
23
-3332
40
-3801
58

skipif mysql # not compatible
query II rowsort label-3993
SELECT ALL + col0 / col1 * + - col1 * 7 + + 34 * ( - 98 ), col2 FROM tab2
----
-3332
23
-3332
40
-3801
58

query I rowsort
SELECT col0 + 50 + - 63 FROM tab1 AS cor0
----
38
72
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3995
SELECT ALL - COUNT( * ) DIV - - MIN( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3995
SELECT ALL - COUNT ( * ) / - - MIN ( ALL + col0 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - ( 1 ) + + + col2 AS col2 FROM tab0 AS cor0
----
46
9
98

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( 13, - col0, + 87 / col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3998
SELECT 38 * + - 17 * CAST( NULL AS SIGNED ) + - ( - MIN( ALL 91 ) ) * + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3998
SELECT 38 * + - 17 * CAST ( NULL AS INTEGER ) + - ( - MIN ( ALL 91 ) ) * + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( col1 ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3999
SELECT - col2 DIV + 34 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-3999
SELECT - col2 / + 34 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4000
SELECT DISTINCT + MIN( DISTINCT + col0 ) FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-4000
SELECT DISTINCT + MIN ( DISTINCT + col0 ) FROM tab1 cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4001
SELECT * FROM tab1 AS cor0 WHERE col0 + + - CAST( 53 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4001
SELECT * FROM tab1 AS cor0 WHERE col0 + + - CAST ( 53 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 * + col0 + - + col0 + col2 + + col2 AS col2 FROM tab1
----
2742
7258
8326

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4003
SELECT DISTINCT - + 69 * + 67 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT DISTINCT - + 69 * + 67 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4004
SELECT ALL col1 - col0 + col0 DIV col2 * 74 AS col0 FROM tab2
----
153
66
87

skipif mysql # not compatible
query I rowsort label-4004
SELECT ALL col1 - col0 + col0 / col2 * 74 AS col0 FROM tab2
----
153
66
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4005
SELECT ALL + CAST( NULL AS SIGNED ) + + COUNT( - + col2 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4005
SELECT ALL + CAST ( NULL AS INTEGER ) + + COUNT ( - + col2 ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL + ( 52 ) * - col2 AS col2 FROM tab1 AS cor0
----
-3068
-3536
-4992

onlyif mysql # DIV for integer division: 
query I rowsort label-4007
SELECT DISTINCT col2 DIV - 8 FROM tab0 cor0
----
-1
-12
-5

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT col2 / - 8 FROM tab0 cor0
----
-1
-12
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 + - col0 ) <= col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 ) = 65 + + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 4 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - - 14 AS col2, 26 + - - col2 + - 15 AS col0 FROM tab1 AS cor0
----
14
107
14
70
14
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT DISTINCT + MIN( - 50 ) FROM tab1 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT + MIN ( - 50 ) FROM tab1 AS cor0
----
-50

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 75 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col2, - col0 - 13 FROM tab0
----
10
-100
47
-28
99
-110

query II rowsort
SELECT ALL col0 AS col2, + col0 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT ALL col0 / - 5 * - col0 AS col2 FROM tab1 WHERE + - ( + col2 ) > ( NULL )
----

query I rowsort
SELECT + 83 * + + 86 FROM tab1
----
7138
7138
7138

query I rowsort
SELECT - 49 * 96 AS col2 FROM tab2
----
-4704
-4704
-4704

query I rowsort
SELECT DISTINCT - ( + + 45 ) FROM tab0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4020
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 75 - CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4020
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 75 - CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 21 > - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( ( NULL ) IS NULL ) )
----

query I rowsort
SELECT DISTINCT + 19 / col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4024
SELECT DISTINCT - 68, - COUNT( * ) + - 63 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-68
-72

skipif mysql # not compatible
query II rowsort label-4024
SELECT DISTINCT - 68, - COUNT ( * ) + - 63 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-68
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 7 col2 FROM tab1
----
-329
-35
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT DISTINCT + ( ( SUM( DISTINCT + + 9 ) ) ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT + ( ( SUM ( DISTINCT + + 9 ) ) ) FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT DISTINCT - COUNT( * ) * COUNT( * ) * + 54 + - - 19 col2 FROM tab0 AS cor0
----
-467

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4027
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) * + 54 + - - 19 col2 FROM tab0 AS cor0
----
-467

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4028
SELECT * FROM tab0 AS cor0 WHERE ( - 67 ) NOT IN ( - col2 * - CAST( NULL AS SIGNED ), - 50 )
----

skipif mysql # not compatible
query III rowsort label-4028
SELECT * FROM tab0 AS cor0 WHERE ( - 67 ) NOT IN ( - col2 * - CAST ( NULL AS INTEGER ), - 50 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 21 + - - ( col2 ) col1, - col2 FROM tab1 AS cor0
----
38
-59
47
-68
75
-96

query I rowsort
SELECT - 78 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4031
SELECT ALL + CAST( NULL AS SIGNED ) * - 41 * + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4031
SELECT ALL + CAST ( NULL AS INTEGER ) * - 41 * + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 + col2 col2 FROM tab0 cor0
----
106
158
69

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 51 ) + - + 82 IN ( col1, col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT + MAX( - + col0 ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-4034
SELECT + MAX ( - + col0 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-48

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + 87 ) IS NULL
----

query I rowsort
SELECT ALL - col2 + - 50 + + - col1 AS col0 FROM tab0 AS cor0
----
-150
-178
-81

query I rowsort
SELECT ALL ( - col1 ) FROM tab2 AS cor0 WHERE 83 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4038
SELECT + COUNT( ALL - col0 ) + + SUM( - 1 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4038
SELECT + COUNT ( ALL - col0 ) + + SUM ( - 1 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT ALL - 93 + - - COUNT( * ) AS col1 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-4039
SELECT ALL - 93 + - - COUNT ( * ) AS col1 FROM tab1
----
-90

query II rowsort
SELECT + 98 AS col0, + col1 * + - col0 AS col2 FROM tab1
----
98
-425
98
-4277
98
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4041
SELECT ALL + + SUM( + col2 ) + + COUNT( * ) AS col2 FROM tab2 WHERE NOT ( NOT - col0 IS NOT NULL )
----
124

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL + + SUM ( + col2 ) + + COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( NOT - col0 IS NOT NULL )
----
124

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col2 > - + 62
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4043
SELECT ALL + 71 DIV - - ( + - col0 ) - + - 34 + - col0 FROM tab2
----
-13
-31
-41

skipif mysql # not compatible
query I rowsort label-4043
SELECT ALL + 71 / - - ( + - col0 ) - + - 34 + - col0 FROM tab2
----
-13
-31
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-4044
SELECT DISTINCT - 97 * COUNT( ALL + - col1 ) FROM tab1
----
-291

skipif mysql # not compatible
query I rowsort label-4044
SELECT DISTINCT - 97 * COUNT ( ALL + - col1 ) FROM tab1
----
-291

query III rowsort
SELECT DISTINCT col2, - col2 - + ( - col1 ), col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT ALL + col1 * - + col2 FROM tab1 AS cor0 WHERE col1 * - - col2 * + + col2 + - 46 * 94 NOT IN ( - ( + col0 ), 47, col0 )
----
-1344
-295
-3196

query I rowsort
SELECT 70 FROM tab2 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL - 65 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NULL
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4049
SELECT ALL ( CAST( col1 AS SIGNED ) ) col0 FROM tab2
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4049
SELECT ALL ( CAST ( col1 AS INTEGER ) ) col0 FROM tab2
----
51
67
77

query I rowsort
SELECT - - 85 FROM tab0 cor0
----
85
85
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col1 col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT DISTINCT - - MIN( ALL - - 87 ) AS col0 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT - - MIN ( ALL - - 87 ) AS col0 FROM tab0 AS cor0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 6 col0 FROM tab2 AS cor0
----
6

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE NULL >= col0 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4055
SELECT - COUNT( ALL - - col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4055
SELECT - COUNT ( ALL - - col2 ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4056
SELECT 50 DIV - col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4056
SELECT 50 / - col0 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT ALL + MIN( DISTINCT + + 27 ) AS col2 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-4057
SELECT ALL + MIN ( DISTINCT + + 27 ) AS col2 FROM tab1
----
27

query I rowsort
SELECT ALL - col1 FROM tab0 cor0 WHERE + 50 <> + col1
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT - + MAX( ALL + 11 ) col1 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4059
SELECT - + MAX ( ALL + 11 ) col1 FROM tab0 AS cor0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-4060
SELECT - col1 DIV + 74 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4060
SELECT - col1 / + 74 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + + 47 IS NULL OR NOT NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 92 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * + 15 + - col2 + - - col1 FROM tab1 AS cor0
----
128
21
684

query I rowsort
SELECT - col2 AS col2 FROM tab1 WHERE NULL = 54
----

query I rowsort
SELECT - ( + ( + 73 ) ) + - + col2 AS col1 FROM tab2
----
-113
-131
-96

query III rowsort
SELECT ALL * FROM tab0 WHERE - 4 = col0
----

query I rowsort
SELECT - 38 + + col0 FROM tab2
----
26
37
8

query I rowsort
SELECT - col0 * + 78 + + ( - col2 ) * 23 * col2 AS col0 FROM tab2 AS cor0
----
-15755
-41792
-83222

query I rowsort
SELECT 9 * + col2 + + 0 FROM tab0 AS cor0
----
423
891
90

query II rowsort
SELECT DISTINCT + + 75, + col0 AS col1 FROM tab0 AS cor0
----
75
15
75
87
75
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + col1 ) col2 FROM tab1 cor0
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 + 65 AND col0
----

query II rowsort
SELECT - col2, - 68 AS col0 FROM tab0 AS cor0
----
-10
-68
-47
-68
-99
-68

onlyif mysql # DIV for integer division: 
query II rowsort label-4074
SELECT ALL col0 DIV + + 22, col1 FROM tab2
----
2
51
2
77
3
67

skipif mysql # not compatible
query II rowsort label-4074
SELECT ALL col0 / + + 22, col1 FROM tab2
----
2
51
2
77
3
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * - - col1 AS col2, col2 col1 FROM tab0
----
210
10
3807
47
99
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4076
SELECT + 9 DIV COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4076
SELECT + 9 / COUNT ( * ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4077
SELECT ALL - 30 / - 0 * - AVG ( + - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL handles NULL in DIV/0 by differently
query I rowsort label-4077
SELECT ALL - 30 / - 0 * - AVG ( + - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT + + col0 FROM tab2 WHERE NOT NULL > NULL
----

query I rowsort
SELECT 5 FROM tab0 WHERE NOT NULL NOT IN ( - col1 )
----

query I rowsort
SELECT DISTINCT - 63 AS col2 FROM tab1
----
-63

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - col0 * - 27 / - 81 AND col0 + - 73 * + col0
----

query I rowsort
SELECT DISTINCT - - col1 + col0 * + 23 FROM tab1 AS cor0
----
1187
1960
2140

query II rowsort
SELECT ALL 44 AS col1, 56 AS col1 FROM tab0
----
44
56
44
56
44
56

query II rowsort
SELECT ALL + 47 AS col2, 31 * + 26 * - - col0 FROM tab2 AS cor0
----
47
37076
47
51584
47
60450

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + 0 + - col1 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT + COUNT( * ) + 8 AS col2 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-4086
SELECT + COUNT ( * ) + 8 AS col2 FROM tab0 AS cor0
----
11

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( 79 ) * - col2 <> NULL
----

query II rowsort
SELECT 62, + 21 AS col2 FROM tab0 AS cor0
----
62
21
62
21
62
21

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * col2 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4090
SELECT 3 DIV - 53 * COUNT( DISTINCT col1 ) * - 89 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4090
SELECT 3 / - 53 * COUNT ( DISTINCT col1 ) * - 89 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4091
SELECT ALL 22 col2, COUNT( * ) FROM tab0 WHERE - + ( - - 1 ) < + col1
----
22
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4091
SELECT ALL 22 col2, COUNT ( * ) FROM tab0 WHERE - + ( - - 1 ) < + col1
----
22
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4092
SELECT COUNT( * ), - COUNT( ALL - col0 ) col0 FROM tab1
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4092
SELECT COUNT ( * ), - COUNT ( ALL - col0 ) col0 FROM tab1
----
3
-3

query I rowsort
SELECT + ( - - ( + col1 ) ) FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4094
SELECT + - 23 AS col0 FROM tab1 WHERE 90 * + - 7 * CAST( + col0 AS DECIMAL ) IS NOT NULL
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-4094
SELECT + - 23 AS col0 FROM tab1 WHERE 90 * + - 7 * CAST ( + col0 AS REAL ) IS NOT NULL
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-4095
SELECT ALL + COUNT( * ) - + 89 AS col2, 48 * COUNT( * ) AS col2 FROM tab1
----
-86
144

skipif mysql # not compatible
query II rowsort label-4095
SELECT ALL + COUNT ( * ) - + 89 AS col2, 48 * COUNT ( * ) AS col2 FROM tab1
----
-86
144

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT COUNT( * ) + + ( - MIN( + col1 ) ) AS col0 FROM tab0 AS cor0 WHERE col0 * - - 8 NOT IN ( ( col2 ) * col2 + - 75, - col1, + - col1, + col1 ) AND NULL IS NULL
----
2

skipif mysql # not compatible
query I rowsort label-4096
SELECT COUNT ( * ) + + ( - MIN ( + col1 ) ) AS col0 FROM tab0 AS cor0 WHERE col0 * - - 8 NOT IN ( ( col2 ) * col2 + - 75, - col1, + - col1, + col1 ) AND NULL IS NULL
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4097
SELECT DISTINCT - + MIN( ( + col1 ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT - + MIN ( ( + col1 ) ) FROM tab1 AS cor0
----
-5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + 62 AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4099
SELECT ALL CAST( NULL AS SIGNED ) * - - col2 / + CAST( - + 4 AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL CAST ( NULL AS INTEGER ) * - - col2 / + CAST ( - + 4 AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col2 * - + 27 AS col2, - col1 FROM tab2
----
-1080
-77
-1566
-67
-621
-51

query II rowsort
SELECT - + 99 AS col0, ( 28 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to ed9600299d19f0166b57c0c9096b0917

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - ( - col2 ) / - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 * - + col2 * + col1 BETWEEN ( - col2 * + col1 * - 29 + + - col1 + - 57 ) AND - col2
----

query I rowsort
SELECT ALL + + col0 * ( + col2 ) * + col1 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # DIV for integer division: 
query I rowsort label-4105
SELECT ALL + 23 DIV - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4105
SELECT ALL + 23 / - col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 col1 FROM tab2 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT SUM( - col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4107
SELECT SUM ( - col0 ) AS col1 FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4108
SELECT DISTINCT + col0 + + + 17 * + CAST( NULL AS SIGNED ) * - col2 col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4108
SELECT DISTINCT + col0 + + + 17 * + CAST ( NULL AS INTEGER ) * - col2 col0 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4109
SELECT DISTINCT COUNT( * ) * - 12 + - 59 FROM tab1 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-4109
SELECT DISTINCT COUNT ( * ) * - 12 + - 59 FROM tab1 AS cor0
----
-95

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > - col0 + + + col0 + - - 38
----

query I rowsort
SELECT - col1 / + col1 + col2 AS col2 FROM tab0 WHERE NOT - - col0 + + col1 IS NOT NULL
----

query II rowsort
SELECT ALL - 83 AS col2, col0 * - 80 + + col0 * - 46 AS col1 FROM tab1
----
-83
-10710
-83
-11466
-83
-6426

query I rowsort
SELECT ALL - col2 AS col0 FROM tab0 WHERE NOT + - col0 <= NULL
----

query II rowsort
SELECT DISTINCT col2, - 95 FROM tab0
----
10
-95
47
-95
99
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT COUNT( * ) * - + 63 * - 32 * 23 FROM tab1
----
139104

skipif mysql # not compatible
query I rowsort label-4115
SELECT COUNT ( * ) * - + 63 * - 32 * 23 FROM tab1
----
139104

onlyif mysql # DIV for integer division: 
query I rowsort label-4116
SELECT + 92 DIV + + 54 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4116
SELECT + 92 / + + 54 AS col0 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4117
SELECT 40 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <> CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-4117
SELECT 40 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) <> CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4118
SELECT ALL CAST( NULL AS SIGNED ) * 2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4118
SELECT ALL CAST ( NULL AS INTEGER ) * 2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + + col1 ) * + col2 + - + col2 + + 10 * col1 FROM tab1 AS cor0
----
1388
286
3598

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4120
SELECT CAST( NULL AS DECIMAL ) + - - col1 + col2 * + 75 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4120
SELECT CAST ( NULL AS REAL ) + - - col1 + col2 * + 75 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 46 + - col2 AS col1 FROM tab1 AS cor0
----
-13
-22
-50

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE + 61 + + - ( + + 62 ) >= - + col2
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4123
SELECT ALL + col2 * CAST( - - 68 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE + 98 + - 46 IS NOT NULL
----
3196
6732
680

skipif mysql # not compatible
query I rowsort label-4123
SELECT ALL + col2 * CAST ( - - 68 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE + 98 + - 46 IS NOT NULL
----
3196
6732
680

query I rowsort
SELECT DISTINCT 54 * + 28 + + 52 + + 15 * 97 + - col2 AS col0 FROM tab0
----
2920
2972
3009

query I rowsort
SELECT - 67 FROM tab2 WHERE 68 IS NOT NULL
----
-67
-67
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + - 27 + - col2 + + col2 col0 FROM tab0
----
2349
2619
405

query I rowsort
SELECT + col2 * 55 AS col1 FROM tab2
----
1265
2200
3190

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4128
SELECT + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT DISTINCT - MIN( DISTINCT + - ( + + 35 ) ) FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT - MIN ( DISTINCT + - ( + + 35 ) ) FROM tab0 AS cor0
----
35

query I rowsort
SELECT + col2 - + 84 FROM tab1 AS cor0
----
-16
-25
12

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 IN ( - 12 + + - col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 4 / col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 col1 FROM tab2 WHERE col1 + - + ( col0 ) + + - 80 IS NOT NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( 4 ) + - - col2 col1, 64 AS col0 FROM tab2
----
19
64
36
64
54
64

query I rowsort
SELECT DISTINCT 45 - col2 AS col0 FROM tab1
----
-14
-23
-51

query I rowsort
SELECT DISTINCT + ( 89 ) - + + 63 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + + 22
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 col2 FROM tab0
----
98
98
98

query I rowsort
SELECT ALL - ( - - 49 ) FROM tab2
----
-49
-49
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, col0 col2 FROM tab2
----
-51
46
-67
75
-77
64

query II rowsort
SELECT col2, + col0 AS col0 FROM tab2
----
23
46
40
64
58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col2 ) col1 FROM tab2
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + - col0 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4143
SELECT ALL COUNT( * ) - - 38 FROM tab2 WHERE NOT 3 IS NOT NULL
----
38

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL COUNT ( * ) - - 38 FROM tab2 WHERE NOT 3 IS NOT NULL
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-4144
SELECT COUNT( * ) AS col1, 23 AS col2 FROM tab2
----
3
23

skipif mysql # not compatible
query II rowsort label-4144
SELECT COUNT ( * ) AS col1, 23 AS col2 FROM tab2
----
3
23

query I rowsort
SELECT - ( 47 ) FROM tab2
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-4146
SELECT DISTINCT + + COUNT( * ) * - 7 + - COUNT( - - col0 ) AS col2 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT + + COUNT ( * ) * - 7 + - COUNT ( - - col0 ) AS col2 FROM tab2 AS cor0
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 col1, - 76 * + - 13 FROM tab2 AS cor0
----
23
988
40
988
58
988

query I rowsort
SELECT ALL ( + + col0 ) * - col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col0 - + col0 * col1 * + col1 + + col0 + + + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * col1 + - 69 AS col0 FROM tab0 AS cor0
----
-68
372
6492

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT ALL COUNT( * ) + - 96 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-4151
SELECT ALL COUNT ( * ) + - 96 FROM tab1
----
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-4152
SELECT 63 + + + col1 DIV - col0 + col1 AS col1 FROM tab0
----
139
64
84

skipif mysql # not compatible
query I rowsort label-4152
SELECT 63 + + + col1 / - col0 + col1 AS col1 FROM tab0
----
139
64
84

query II rowsort
SELECT DISTINCT - col2 + - + col2, col0 AS col0 FROM tab1
----
-118
85
-136
91
-192
51

query I rowsort
SELECT ALL 36 * - col0 FROM tab0
----
-3132
-3492
-540

onlyif mysql # DIV for integer division: 
query I rowsort label-4155
SELECT - col2 DIV col1 + - col2 AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4155
SELECT - col2 / col1 + - col2 AS col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT col1 + 71 AS col1 FROM tab1
----
118
76
85

query I rowsort
SELECT 4 + + ( - col1 ) FROM tab0
----
-17
-77
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4158
SELECT DISTINCT - COUNT( DISTINCT - col1 ) AS col2, - MIN( DISTINCT + - 73 ) AS col1 FROM tab2
----
-3
73

skipif mysql # not compatible
query II rowsort label-4158
SELECT DISTINCT - COUNT ( DISTINCT - col1 ) AS col2, - MIN ( DISTINCT + - 73 ) AS col1 FROM tab2
----
-3
73

query II rowsort
SELECT ALL - col1 * + col0 AS col1, + col2 AS col0 FROM tab1
----
-425
59
-4277
68
-714
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4160
SELECT ALL - col2 + 60 + col1 DIV - ( - 68 ) AS col0 FROM tab2 AS cor0
----
2
21
37

skipif mysql # not compatible
query I rowsort label-4160
SELECT ALL - col2 + 60 + col1 / - ( - 68 ) AS col0 FROM tab2 AS cor0
----
2
21
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4161
SELECT ALL + 2 DIV 21 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL + 2 / 21 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT COUNT( * ) col2 FROM tab1 AS cor0 WHERE ( - col2 + - col1 ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4162
SELECT COUNT ( * ) col2 FROM tab1 AS cor0 WHERE ( - col2 + - col1 ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-4163
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( CAST( NULL AS SIGNED ) ) > 70
----

skipif mysql # not compatible
query IIIIII rowsort label-4163
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT ( CAST ( NULL AS INTEGER ) ) > 70
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE 97 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4165
SELECT - - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + CAST( NULL AS SIGNED ) AND col1
----

skipif mysql # not compatible
query I rowsort label-4165
SELECT - - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + CAST ( NULL AS INTEGER ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4166
SELECT col2 + - col1 * ( + - 90 ) + + CAST( + col0 AS SIGNED ), 4 AS col0 FROM tab0 cor0
----
1987
4
286
4
7352
4

skipif mysql # not compatible
query II rowsort label-4166
SELECT col2 + - col1 * ( + - 90 ) + + CAST ( + col0 AS INTEGER ), 4 AS col0 FROM tab0 cor0
----
1987
4
286
4
7352
4

onlyif mysql # DIV for integer division: 
query I rowsort label-4167
SELECT ALL + - 56 DIV + 52 AS col0 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4167
SELECT ALL + - 56 / + 52 AS col0 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4168
SELECT - - col1 DIV - + col2 + + col1 FROM tab2 AS cor0
----
49
66
76

skipif mysql # not compatible
query I rowsort label-4168
SELECT - - col1 / - + col2 + + col1 FROM tab2 AS cor0
----
49
66
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4169
SELECT + col1 DIV - 4 FROM tab2 AS cor0
----
-12
-16
-19

skipif mysql # not compatible
query I rowsort label-4169
SELECT + col1 / - 4 FROM tab2 AS cor0
----
-12
-16
-19

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 23 = + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 27 * + 39 AS col0 FROM tab1 AS cor0
----
1053
1053
1053

query I rowsort
SELECT ALL 81 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
81
81
81

query I rowsort
SELECT ALL + - 0 - 73 - - 82 - ( - 3 ) / 3 * + col1 AS col2 FROM tab1 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT ALL - COUNT( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4174
SELECT ALL - COUNT ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4175
SELECT + CAST( NULL AS SIGNED ), - 39 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 85ea82eb5282cc44b829b1decc973ff8

skipif mysql # not compatible
query II rowsort label-4175
SELECT + CAST ( NULL AS INTEGER ), - 39 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 85ea82eb5282cc44b829b1decc973ff8

onlyif mysql # DIV for integer division: 
query I rowsort label-4176
SELECT 1 DIV + + col1 * - col2 + - + 75 FROM tab2 cor0
----
-75
-75
-75

skipif mysql # not compatible
query I rowsort label-4176
SELECT 1 / + + col1 * - col2 + - + 75 FROM tab2 cor0
----
-75
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4177
SELECT + - 84 * AVG ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4177
SELECT + - 84 * AVG ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + ( 74 ) FROM tab0 AS cor0
----
74
74
74

query I rowsort
SELECT ALL 34 + + 17 - col2 FROM tab1 AS cor0 WHERE NULL <> ( - col2 ) * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT - - SUM( 87 ) FROM tab1 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-4180
SELECT - - SUM ( 87 ) FROM tab1 AS cor0
----
261

onlyif mysql # DIV for integer division: 
query I rowsort label-4181
SELECT ALL + 64 * 26 DIV + col2 + col2 AS col0 FROM tab2 AS cor0
----
81
86
95

skipif mysql # not compatible
query I rowsort label-4181
SELECT ALL + 64 * 26 / + col2 + col2 AS col0 FROM tab2 AS cor0
----
81
86
95

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 86 >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT DISTINCT - + 29 + + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-4183
SELECT DISTINCT - + 29 + + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4184
SELECT ALL - - ( + CAST( COUNT( * ) AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT 52 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL - - ( + CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT 52 IS NULL
----
3

query III rowsort
SELECT * FROM tab1 WHERE - col1 * - - col0 + - 8 = - 59
----

query I rowsort
SELECT ALL - ( - - col0 ) * - 8 + 62 FROM tab1
----
470
742
790

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT 65 + ( + + ( COUNT( * ) ) ) AS col0 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-4187
SELECT 65 + ( + + ( COUNT ( * ) ) ) AS col0 FROM tab2
----
68

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 + + col2 BETWEEN NULL AND col2 / col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT ALL - COUNT( * ) * - - SUM( ALL + - ( + col1 ) ) FROM tab0
----
309

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL - COUNT ( * ) * - - SUM ( ALL + - ( + col1 ) ) FROM tab0
----
309

query I rowsort
SELECT - col1 + + col1 * 11 FROM tab2
----
510
670
770

query I rowsort
SELECT + - col0 + + 64 + - 52 AS col1 FROM tab0 cor0
----
-3
-75
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4192
SELECT DISTINCT 31 + + + COUNT( * ) DIV + MAX( - col0 ) FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-4192
SELECT DISTINCT 31 + + + COUNT ( * ) / + MAX ( - col0 ) FROM tab2
----
31

query I rowsort
SELECT + col0 - + + 21 AS col2 FROM tab1 AS cor0
----
30
64
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT - ( + COUNT( ALL + + col2 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 + - col0 * - - 71 + - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4194
SELECT - ( + COUNT ( ALL + + col2 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 + - col0 * - - 71 + - col2 IS NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 = - 69
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4196
SELECT ALL + - 1 FROM tab2 AS cor0 WHERE NOT col2 / - CAST( - + col1 AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL + - 1 FROM tab2 AS cor0 WHERE NOT col2 / - CAST ( - + col1 AS INTEGER ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT DISTINCT + COUNT( - - col2 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4197
SELECT DISTINCT + COUNT ( - - col2 ) AS col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT DISTINCT + COUNT( * ) * - + 13 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT + COUNT ( * ) * - + 13 FROM tab1
----
-39

onlyif mysql # aggregate syntax: 
query II rowsort label-4199
SELECT COUNT( * ) AS col1, - COUNT( * ) FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-4199
SELECT COUNT ( * ) AS col1, - COUNT ( * ) FROM tab2
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4200
SELECT - col2 DIV + + CAST( - col2 AS SIGNED ) FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4200
SELECT - col2 / + + CAST ( - col2 AS INTEGER ) FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT MIN( DISTINCT + 95 ) FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-4201
SELECT MIN ( DISTINCT + 95 ) FROM tab1
----
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4202
SELECT ALL 38 DIV col0 AS col2 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4202
SELECT ALL 38 / col0 AS col2 FROM tab0
----
0
0
2

query II rowsort
SELECT DISTINCT 59 AS col2, col0 FROM tab2
----
59
46
59
64
59
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT + + COUNT( col1 ) col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4204
SELECT + + COUNT ( col1 ) col2 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL + - 32 AS col0 FROM tab2 AS cor0
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT DISTINCT + - COUNT( + col1 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4206
SELECT DISTINCT + - COUNT ( + col1 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= 43
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4208
SELECT col1 + + - col0 * - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4208
SELECT col1 + + - col0 * - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT DISTINCT - COUNT( * ) + 75 col2 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4209
SELECT DISTINCT - COUNT ( * ) + 75 col2 FROM tab1 AS cor0
----
72

query I rowsort
SELECT 50 AS col1 FROM tab1 AS cor0 WHERE NULL = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 59 + - - 54 col1 FROM tab0
----
-5
-5
-5

query I rowsort
SELECT - col2 + + ( - col1 ) * - + 98 * col0 FROM tab2
----
229885
482904
492392

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4213
SELECT ALL + 47 + - - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4213
SELECT ALL + 47 + - - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4214
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 22 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4214
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 22 col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT DISTINCT COUNT( * ) col1 FROM tab1 WHERE NOT - 40 * col1 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4215
SELECT DISTINCT COUNT ( * ) col1 FROM tab1 WHERE NOT - 40 * col1 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( + col0 ) * + col0 col2 FROM tab0 AS cor0
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT ALL - 33 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-4217
SELECT ALL - 33 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4218
SELECT + col1 - + - CAST( 37 AS SIGNED ) * + 8 FROM tab0 AS cor0
----
297
317
377

skipif mysql # not compatible
query I rowsort label-4218
SELECT + col1 - + - CAST ( 37 AS INTEGER ) * + 8 FROM tab0 AS cor0
----
297
317
377

query I rowsort
SELECT col0 + 72 FROM tab1
----
123
157
163

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4220
SELECT DISTINCT col1 * col1 DIV + CAST( + + col1 AS SIGNED ) - col0 + - 35 AS col1, - col1 + 40 - + col0 AS col1 FROM tab2
----
-22
-101
-30
-57
-43
-102

skipif mysql # not compatible
query II rowsort label-4220
SELECT DISTINCT col1 * col1 / + CAST ( + + col1 AS INTEGER ) - col0 + - 35 AS col1, - col1 + 40 - + col0 AS col1 FROM tab2
----
-22
-101
-30
-57
-43
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-4221
SELECT DISTINCT + ( + ( - COUNT( ALL + col1 ) ) ) * - 63 FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT + ( + ( - COUNT ( ALL + col1 ) ) ) * - 63 FROM tab2
----
189

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4222
SELECT ALL - + 49 * + AVG ( - CAST( + + 83 AS DECIMAL ) ) AS col0 FROM tab0 AS cor0 WHERE NOT - CAST( - col1 AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL - + 49 * + AVG ( - CAST ( + + 83 AS REAL ) ) AS col0 FROM tab0 AS cor0 WHERE NOT - CAST ( - col1 AS INTEGER ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 + - col1 AS col1 FROM tab0 AS cor0 WHERE 51 * - col1 * - 82 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL 84 AS col0, col2 - + col2 + + col2 col2, - 24 + - 85 AS col1 FROM tab0 AS cor0
----
9 values hashing to 42d62adc66657eb1cd1bae6dc71909bb

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4225
SELECT DISTINCT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT col2 - + CAST( col2 AS SIGNED ) IS NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4225
SELECT DISTINCT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT col2 - + CAST ( col2 AS INTEGER ) IS NULL
----
46
64
75

query I rowsort
SELECT + col1 * 85 AS col1 FROM tab2 AS cor0
----
4335
5695
6545

query I rowsort
SELECT ALL + col1 * + col2 + + col0 FROM tab2 AS cor0
----
1219
3144
3961

query I rowsort
SELECT - col2 * - 45 AS col0 FROM tab0 AS cor0
----
2115
4455
450

query I rowsort
SELECT + ( + 65 ) FROM tab1 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4230
SELECT + 42 * + - COUNT( * ) FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-4230
SELECT + 42 * + - COUNT ( * ) FROM tab2 AS cor0
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT MAX( - col0 ) + - - SUM( DISTINCT - 27 ) + 0 - - - AVG ( col2 ) * - 56 / AVG ( - + 52 ) - - - COUNT( * ) / + + AVG ( ALL + + col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4231
SELECT MAX ( - col0 ) + - - SUM ( DISTINCT - 27 ) + 0 - - - AVG ( col2 ) * - 56 / AVG ( - + 52 ) - - - COUNT ( * ) / + + AVG ( ALL + + col2 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4232
SELECT DISTINCT + ( + 83 ) * + col0 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4232
SELECT DISTINCT + ( + 83 ) * + col0 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT ALL COUNT( * ) * + - 15 AS col2 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL COUNT ( * ) * + - 15 AS col2 FROM tab0
----
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-4234
SELECT ALL col2 DIV + col0 AS col2, - 76 AS col1 FROM tab1
----
0
-76
0
-76
1
-76

skipif mysql # not compatible
query II rowsort label-4234
SELECT ALL col2 / + col0 AS col2, - 76 AS col1 FROM tab1
----
0
-76
0
-76
1
-76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4235
SELECT ALL + - 46 DIV col2 + - col0 FROM tab1 WHERE NOT 9 + col0 < - CAST( + + col1 AS SIGNED )
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4235
SELECT ALL + - 46 / col2 + - col0 FROM tab1 WHERE NOT 9 + col0 < - CAST ( + + col1 AS INTEGER )
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 6 BETWEEN col1 + - col0 + - ( - + 26 ) + + col0 - col1 / 37 * - - col1 / + col2 * + + 35 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT COUNT( 64 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4237
SELECT COUNT ( 64 ) col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4238
SELECT DISTINCT + 93, COUNT( * ) AS col2 FROM tab0 AS cor0
----
93
3

skipif mysql # not compatible
query II rowsort label-4238
SELECT DISTINCT + 93, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
93
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4239
SELECT + MAX( col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4239
SELECT + MAX ( col0 ) AS col2 FROM tab0 AS cor0
----
97

query II rowsort
SELECT ALL + col0, + 58 AS col1 FROM tab2 AS cor0
----
46
58
64
58
75
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col0 FROM tab1 AS cor0
----
-17
-17
-17

query I rowsort
SELECT DISTINCT + + col0 * + - col1 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT DISTINCT 32 * + 61 + SUM( col1 ) AS col0 FROM tab2 AS cor0
----
2147

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT 32 * + 61 + SUM ( col1 ) AS col0 FROM tab2 AS cor0
----
2147

query I rowsort
SELECT + - 80 AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - 59
----

query III rowsort
SELECT * FROM tab0 WHERE 38 NOT BETWEEN NULL AND col0 * - col0 + + col2 - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 44 * col1 * - - col0 * - + col1 + col2 + + col1 * - 94 * - + col2 FROM tab2
----
-14448358
-16406504
-5154139

query I rowsort
SELECT ALL 53 - col1 * - col0 AS col2 FROM tab2
----
2399
4981
5078

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT ALL + AVG ( col1 ) + - ( + - ( - - COUNT( * ) ) ) FROM tab2 WHERE ( + + col2 ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL + AVG ( col1 ) + - ( + - ( - - COUNT ( * ) ) ) FROM tab2 WHERE ( + + col2 ) >= NULL
----
NULL

query I rowsort
SELECT - col0 + + + 62 AS col1 FROM tab0
----
-25
-35
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4250
SELECT - col1 DIV col2 * - - col0 + + 75 - + + 55 FROM tab2
----
-44
-55
-72

skipif mysql # not compatible
query I rowsort label-4250
SELECT - col1 / col2 * - - col0 + + 75 - + + 55 FROM tab2
----
-44
-55
-72

query I rowsort
SELECT DISTINCT 94 - - col2 AS col0 FROM tab1 AS cor0
----
153
162
190

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT COUNT( * ) + - + COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4252
SELECT COUNT ( * ) + - + COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
12

query I rowsort
SELECT DISTINCT + col1 * - col0 FROM tab2 AS cor0 WHERE NOT - 95 / - col0 IS NULL
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + 56 + + col2 AS col2 FROM tab1 cor0
----
115
124
152

query III rowsort
SELECT * FROM tab0 cor0 WHERE + ( + - ( - 47 ) ) NOT BETWEEN NULL AND + - 58
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + ( + 41 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT DISTINCT - ( + COUNT( * ) ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4257
SELECT DISTINCT - ( + COUNT ( * ) ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT DISTINCT + + ( col1 ) AS col2 FROM tab0 cor0
----
1
21
81

query II rowsort
SELECT ALL col0, - 16 FROM tab0 AS cor0
----
15
-16
87
-16
97
-16

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * + col0 * - + 29 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT DISTINCT - MAX( - + 76 ) FROM tab0 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-4261
SELECT DISTINCT - MAX ( - + 76 ) FROM tab0 AS cor0
----
76

query I rowsort
SELECT 5 * - 53 FROM tab1
----
-265
-265
-265

query I rowsort
SELECT - 11 * - 30 FROM tab2
----
330
330
330

query II rowsort
SELECT - col0, + col1 AS col2 FROM tab0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT + ( 24 ) * + col2 * - + col0 FROM tab0
----
-16920
-20880
-230472

query II rowsort
SELECT - col2 AS col0, + col2 AS col1 FROM tab0
----
-10
10
-47
47
-99
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4267
SELECT - col0 AS col0, CAST( - col1 AS SIGNED ) FROM tab1
----
-51
-14
-85
-5
-91
-47

skipif mysql # not compatible
query II rowsort label-4267
SELECT - col0 AS col0, CAST ( - col1 AS INTEGER ) FROM tab1
----
-51
-14
-85
-5
-91
-47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + col2 IN ( + ( ( + 90 ) ) * - ( col1 ) ) )
----

query I rowsort
SELECT - col0 * + col1 * col1 FROM tab1 cor0 WHERE + col0 - + col1 NOT BETWEEN - - col1 AND NULL
----
-201019

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4270
SELECT * FROM tab0 WHERE - col2 NOT IN ( - col2 * + col1 + - col0, col1 * - 97 * + + col1 - - 7, + CAST( + 71 AS SIGNED ) - 48 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4270
SELECT * FROM tab0 WHERE - col2 NOT IN ( - col2 * + col1 + - col0, col1 * - 97 * + + col1 - - 7, + CAST ( + 71 AS INTEGER ) - 48 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 22 + - - 37 + 16 * + 55 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fb2effb098390980f1c08bc35d41b367

query I rowsort
SELECT ALL - col0 * col1 + + col2 FROM tab1 cor0
----
-366
-4209
-618

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 15 + - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + - 38 + + 14 AS col2, + col0 FROM tab2 AS cor0
----
-24
46
-24
64
-24
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4275
SELECT ALL MIN( - + 92 ) DIV - - MIN( - col0 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL MIN ( - + 92 ) / - - MIN ( - col0 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT + COUNT( * ) * - + 91 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4276
SELECT + COUNT ( * ) * - + 91 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT ALL - - col1 + + ( + col2 ) FROM tab1 AS cor0
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 13 * - 23 - + col2 AS col1, col1 * + + col2 col1 FROM tab2
----
241
3886
259
3080
276
1173

onlyif mysql # aggregate syntax: 
query II rowsort label-4279
SELECT + 31 AS col1, COUNT( * ) AS col1 FROM tab0
----
31
3

skipif mysql # not compatible
query II rowsort label-4279
SELECT + 31 AS col1, COUNT ( * ) AS col1 FROM tab0
----
31
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT - SUM( + + col1 ) AS col0 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4280
SELECT - SUM ( + + col1 ) AS col0 FROM tab1
----
-66

query I rowsort
SELECT - 59 - - col1 FROM tab2 AS cor0
----
-8
18
8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 * 57 BETWEEN NULL AND - 18 + col2 * col0
----

query II rowsort
SELECT ALL col0 AS col1, 21 FROM tab1 AS cor0
----
51
21
85
21
91
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT 85 * MAX( + col1 ) FROM tab0 AS cor0
----
6885

skipif mysql # not compatible
query I rowsort label-4284
SELECT 85 * MAX ( + col1 ) FROM tab0 AS cor0
----
6885

query II rowsort
SELECT 50, + col2 AS col1 FROM tab2 AS cor0
----
50
23
50
40
50
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 * - - 57 AND - col0 * - - col2 + col1
----

query I rowsort
SELECT 56 * - + col0 FROM tab1 AS cor0
----
-2856
-4760
-5096

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT + 65 <> col0 + + col1
----
1

skipif mysql # not compatible
query I rowsort label-4288
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT + 65 <> col0 + + col1
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN ( - 67 ) AND ( ( col1 ) ) - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 + + col2 col1 FROM tab0
----
103
14
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4291
SELECT + COUNT( ALL - col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4291
SELECT + COUNT ( ALL - col2 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT + col1 FROM tab1 WHERE - 63 >= col2 - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 68 * col2 >= NULL
----

query I rowsort
SELECT ALL 55 FROM tab2 WHERE ( col0 + - col1 ) NOT BETWEEN + col1 * col2 AND 77
----
55
55
55

onlyif mysql # DIV for integer division: 
query I rowsort label-4295
SELECT DISTINCT col1 DIV col1 - + col0 AS col2 FROM tab1
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-4295
SELECT DISTINCT col1 / col1 - + col0 AS col2 FROM tab1
----
-50
-84
-90

query I rowsort
SELECT 26 + 24 * + 7 FROM tab0
----
194
194
194

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) IN ( - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( col1 / + col1 )
----

query I rowsort
SELECT - col1 * col2 FROM tab2 WHERE NOT ( NULL ) NOT IN ( col1 )
----

query I rowsort
SELECT ALL + ( + 15 ) * + col0 FROM tab2 WHERE ( col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 46 + col1 * ( col2 * + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 * - 7 + ( - 90 + + col1 ) FROM tab0
----
-216
-576
-96

query I rowsort
SELECT - col0 + - ( - col0 + ( - 14 ) ) FROM tab1
----
14
14
14

query III rowsort
SELECT ALL * FROM tab2 WHERE 56 + - 72 * 45 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4305
SELECT ALL col2 * - col0 FROM tab2 WHERE NOT ( CAST( NULL AS DECIMAL ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4305
SELECT ALL col2 * - col0 FROM tab2 WHERE NOT ( CAST ( NULL AS REAL ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT DISTINCT COUNT( ALL - 72 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4306
SELECT DISTINCT COUNT ( ALL - 72 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 48 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4308
SELECT ALL + CAST( NULL AS SIGNED ) - 26 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL + CAST ( NULL AS INTEGER ) - 26 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4309
SELECT CAST( NULL AS SIGNED ) + col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4309
SELECT CAST ( NULL AS INTEGER ) + col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + 69 AS col0 FROM tab0 AS cor0
----
150
70
90

query I rowsort
SELECT DISTINCT 75 FROM tab0 WHERE + 2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4312
SELECT DISTINCT 54 + COUNT( + col2 ) AS col0 FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-4312
SELECT DISTINCT 54 + COUNT ( + col2 ) AS col0 FROM tab2
----
57

query I rowsort
SELECT ALL + ( + col2 ) - 86 AS col0 FROM tab0
----
-39
-76
13

query I rowsort
SELECT DISTINCT - col2 * + 63 AS col0 FROM tab2 AS cor0
----
-1449
-2520
-3654

onlyif mysql # aggregate syntax: 
query I rowsort label-4315
SELECT - 76 * MAX( ALL - col1 ) AS col2 FROM tab2 AS cor0 WHERE + ( + col0 ) * col1 NOT IN ( - 61 )
----
3876

skipif mysql # not compatible
query I rowsort label-4315
SELECT - 76 * MAX ( ALL - col1 ) AS col2 FROM tab2 AS cor0 WHERE + ( + col0 ) * col1 NOT IN ( - 61 )
----
3876

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4316
SELECT + - ( col2 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4316
SELECT + - ( col2 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4317
SELECT ALL 18 DIV + ( - col0 ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL 18 / + ( - col0 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4318
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT - 70 + 59 * col0 FROM tab0 AS cor0
----
5063
5653
815

onlyif mysql # DIV for integer division: 
query I rowsort label-4320
SELECT ALL - col0 DIV + 75 AS col0 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4320
SELECT ALL - col0 / + 75 AS col0 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT ALL + - 71 + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-4321
SELECT ALL + - 71 + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT ( 41 ) * + MAX( col0 ) - 46 col1 FROM tab1 AS cor0
----
3685

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4322
SELECT ( 41 ) * + MAX ( col0 ) - 46 col1 FROM tab1 AS cor0
----
3685

query I rowsort
SELECT + col0 * + 36 FROM tab0 AS cor0 WHERE ( NULL ) IN ( 64 )
----

query I rowsort
SELECT DISTINCT + col1 + - 60 * 0 AS col2 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT DISTINCT - 55 + + col0 + col1 FROM tab1
----
10
35
83

query I rowsort
SELECT DISTINCT col0 + + 25 * col2 AS col0 FROM tab1
----
1560
1791
2451

onlyif mysql # DIV for integer division: 
query I rowsort label-4327
SELECT col0 * - col2 DIV + col2 + - col0 AS col1 FROM tab2
----
-128
-150
-92

skipif mysql # not compatible
query I rowsort label-4327
SELECT col0 * - col2 / + col2 + - col0 AS col1 FROM tab2
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT COUNT( + + 68 ) + 23 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-4328
SELECT COUNT ( + + 68 ) + 23 FROM tab2
----
26

query I rowsort
SELECT col1 + + 90 AS col2 FROM tab1
----
104
137
95

query I rowsort
SELECT + col1 + + - 74 AS col0 FROM tab1
----
-27
-60
-69

query III rowsort
SELECT * FROM tab2 WHERE - 45 < NULL
----

query I rowsort
SELECT DISTINCT col0 + + col0 + 49 * 61 AS col1 FROM tab2
----
3081
3117
3139

query I rowsort
SELECT ALL + 87 * + col1 * 76 - + 79 FROM tab1
----
310685
32981
92489

query III rowsort
SELECT * FROM tab0 WHERE col1 <> - 87
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 FROM tab1 WHERE NOT col2 > NULL OR NOT col1 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 IN ( + col0 + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4337
SELECT col2 + CAST( NULL AS SIGNED ) * - 27 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4337
SELECT col2 + CAST ( NULL AS INTEGER ) * - 27 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4338
SELECT ALL - 60 - CAST( NULL AS SIGNED ) * COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL - 60 - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 4 col0 FROM tab1 WHERE - 99 / 27 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col1 * ( 69 / - 97 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 86 - col2 col2 FROM tab2 cor0 WHERE NOT ( 84 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4342
SELECT DISTINCT CAST( NULL AS SIGNED ) - + col0 AS col1 FROM tab2 WHERE NOT NULL = ( - col0 * 0 )
----

skipif mysql # not compatible
query I rowsort label-4342
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + col0 AS col1 FROM tab2 WHERE NOT NULL = ( - col0 * 0 )
----

query I rowsort
SELECT - ( - 23 ) FROM tab0
----
23
23
23

query I rowsort
SELECT 93 * + col2 * + - ( col0 ) FROM tab2
----
-238080
-404550
-98394

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT NULL < ( col2 * + ( 73 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4346
SELECT COUNT( 29 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4346
SELECT COUNT ( 29 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT ( + 9 ) FROM tab1
----
9

query I rowsort
SELECT ALL col1 * - 65 FROM tab0
----
-1365
-5265
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT + - 96 * COUNT( * ) + 96 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-768

skipif mysql # not compatible
query I rowsort label-4349
SELECT + - 96 * COUNT ( * ) + 96 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT - 42 - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-51

skipif mysql # not compatible
query I rowsort label-4350
SELECT - 42 - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-51

query I rowsort
SELECT ALL + ( + col1 ) AS col1 FROM tab0 AS cor0 WHERE col2 * - col0 + + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col2 / col2 AS col2 FROM tab2 AS cor0 WHERE - 93 * + col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 94 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4355
SELECT - col1 + col1 AS col0 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4355
SELECT - col1 + col1 AS col0 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col1, - col0 * + - col0 + - 34 FROM tab1 AS cor0
----
-59
7191
-68
8247
-96
2567

onlyif mysql # DIV for integer division: 
query I rowsort label-4357
SELECT - 33 DIV col0 + + 97 FROM tab0
----
95
97
97

skipif mysql # not compatible
query I rowsort label-4357
SELECT - 33 / col0 + + 97 FROM tab0
----
95
97
97

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4358
SELECT + col0 + - CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT - 86 <= - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4358
SELECT + col0 + - CAST ( NULL AS REAL ) FROM tab0 WHERE NOT - 86 <= - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col1 + - + col0 * + 60 FROM tab1
----
-3046
-5095
-5413

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 61 + + ( - col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 * - 97 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT ALL COUNT( ALL + 48 ) * COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4362
SELECT ALL COUNT ( ALL + 48 ) * COUNT ( * ) FROM tab0
----
9

query I rowsort
SELECT ALL - 27 * col0 * - col2 AS col2 FROM tab0
----
19035
23490
259281

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT COUNT( * ) * 60 + 62 FROM tab1 WHERE - + 10 BETWEEN ( + col2 * + col1 + col2 ) AND NULL
----
62

skipif mysql # not compatible
query I rowsort label-4364
SELECT COUNT ( * ) * 60 + 62 FROM tab1 WHERE - + 10 BETWEEN ( + col2 * + col1 + col2 ) AND NULL
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT DISTINCT + + COUNT( ALL - col2 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4365
SELECT DISTINCT + + COUNT ( ALL - col2 ) col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4366
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 * CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4366
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 * CAST ( NULL AS INTEGER ) AND NULL
----

query II rowsort
SELECT 12 AS col1, + 13 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 3ccd9f6ce00889f0e55b3b81f67af14e

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4368
SELECT ALL - 17 DIV - COUNT( * ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL - 17 / - COUNT ( * ) FROM tab2
----
5

query I rowsort
SELECT + + col1 + col2 * + col0 * - + col2 FROM tab2 cor0
----
-102323
-24283
-252233

onlyif mysql # aggregate syntax: 
query II rowsort label-4370
SELECT DISTINCT - - COUNT( * ), 24 * - + COUNT( col2 ) AS col1 FROM tab2 AS cor0
----
3
-72

skipif mysql # not compatible
query II rowsort label-4370
SELECT DISTINCT - - COUNT ( * ), 24 * - + COUNT ( col2 ) AS col1 FROM tab2 AS cor0
----
3
-72

query I rowsort
SELECT - - col2 * ( col2 ) + - + col1 + - 11 FROM tab1 AS cor0
----
3465
4566
9191

query I rowsort
SELECT - + 98 + + 47 AS col0 FROM tab0 AS cor0
----
-51
-51
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-4373
SELECT ALL + + col2, - col1 DIV col0 + col2 + - + 9 AS col1 FROM tab1 AS cor0
----
59
50
68
59
96
87

skipif mysql # not compatible
query II rowsort label-4373
SELECT ALL + + col2, - col1 / col0 + col2 + - + 9 AS col1 FROM tab1 AS cor0
----
59
50
68
59
96
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT + - SUM( - + col1 ) AS col2 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-4374
SELECT + - SUM ( - + col1 ) AS col2 FROM tab1 cor0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-4375
SELECT col2 DIV - 60 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4375
SELECT col2 / - 60 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT DISTINCT - COUNT( * ) + + 1 AS col1 FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT - COUNT ( * ) + + 1 AS col1 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT + ( + - col0 ) * - 76 FROM tab1 AS cor0
----
3876
6460
6916

onlyif mysql # aggregate syntax: 
query II rowsort label-4378
SELECT 31, + COUNT( * ) * - 53 col1 FROM tab0
----
31
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4378
SELECT 31, + COUNT ( * ) * - 53 col1 FROM tab0
----
31
-159

query II rowsort
SELECT DISTINCT col2 AS col1, + col1 + + + col2 FROM tab2
----
23
74
40
117
58
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4380
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4380
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( ( 11 ) IN ( col2 + + 0 - 63 ) )
----

query I rowsort
SELECT ALL 16 * - + col0 + + + col2 FROM tab2
----
-1142
-713
-984

query I rowsort
SELECT col2 FROM tab2 WHERE + 53 * 81 <> - 23
----
23
40
58

query I rowsort
SELECT 63 AS col0 FROM tab2, tab1 cor0
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 * + col2 - + + col1 ) IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4386
SELECT ALL 37 DIV + 59 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL 37 / + 59 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - - col0 col2 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE ( + col0 ) + - - 39 + + - col1 IS NOT NULL OR NOT - 25 + col0 <> ( NULL )
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4389
SELECT - SUM( DISTINCT col2 ) AS col2, + 92 FROM tab0 AS cor0
----
-156
92

skipif mysql # not compatible
query II rowsort label-4389
SELECT - SUM ( DISTINCT col2 ) AS col2, + 92 FROM tab0 AS cor0
----
-156
92

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col2 <> - 82
----

query II rowsort
SELECT ALL + 49, + col0 FROM tab1 AS cor0
----
49
51
49
85
49
91

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( - - col0 * col1 + + + col2 ) NOT IN ( 98 )
----

query I rowsort
SELECT ALL - 69 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col1 + + + col2 col1 FROM tab2 cor0
----
2624
4547
5969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4395
SELECT DISTINCT + + ( - CAST( - col0 AS SIGNED ) ) col1 FROM tab1 AS cor0 WHERE + col1 >= - + col2 * - col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4395
SELECT DISTINCT + + ( - CAST ( - col0 AS INTEGER ) ) col1 FROM tab1 AS cor0 WHERE + col1 >= - + col2 * - col2
----

query I rowsort
SELECT DISTINCT + + col0 + + - 65 FROM tab2 AS cor0
----
-1
-19
10

query I rowsort
SELECT + 39 * 16 * + ( - - col2 ) AS col0 FROM tab0 AS cor0
----
29328
61776
6240

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) >= - 42
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( 27 )
----

query I rowsort
SELECT DISTINCT + 66 + - - 97 AS col0 FROM tab2
----
163

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN col2 AND + ( 71 )
----

query I rowsort
SELECT DISTINCT + 17 * - + ( - col1 ) FROM tab1
----
238
799
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4403
SELECT - COUNT( * ) + - 51 col0 FROM tab2
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4403
SELECT - COUNT ( * ) + - 51 col0 FROM tab2
----
-54

query I rowsort
SELECT - col0 AS col1 FROM tab2 cor0 WHERE ( col0 * col2 ) IS NULL
----

query I rowsort
SELECT + col0 * 90 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0 AND - ( + + col0 ) + - col2 >= col1
----

query I rowsort
SELECT ALL col0 + + 42 - + col2 FROM tab2 AS cor0
----
59
65
66

query I rowsort
SELECT - 4 + - 7 + - - col2 * col1 * + col2 + col1 FROM tab1 AS cor0
----
129027
17399
217364

query I rowsort
SELECT ( + col2 ) AS col1 FROM tab1 cor0 WHERE NULL <> ( col0 )
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) < col2
----

query I rowsort
SELECT + 18 + - + col0 AS col0 FROM tab2 cor0
----
-28
-46
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT + - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4411
SELECT + - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4412
SELECT DISTINCT CAST( NULL AS SIGNED ) + col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4412
SELECT DISTINCT CAST ( NULL AS INTEGER ) + col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4413
SELECT * FROM tab2 WHERE - - col2 NOT BETWEEN - 73 * - col0 * - 67 AND - CAST( 51 AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4413
SELECT * FROM tab2 WHERE - - col2 NOT BETWEEN - 73 * - col0 * - 67 AND - CAST ( 51 AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4414
SELECT ALL - COUNT( * ) - 78 col0 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4414
SELECT ALL - COUNT ( * ) - 78 col0 FROM tab1 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4415
SELECT DISTINCT col0 * + CAST( NULL AS SIGNED ), + 57 + + - 50 AS col1 FROM tab0 AS cor0
----
NULL
7

skipif mysql # not compatible
query II rowsort label-4415
SELECT DISTINCT col0 * + CAST ( NULL AS INTEGER ), + 57 + + - 50 AS col1 FROM tab0 AS cor0
----
NULL
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4416
SELECT CAST( 22 AS SIGNED ) - - 56 FROM tab2 AS cor0
----
78
78
78

skipif mysql # not compatible
query I rowsort label-4416
SELECT CAST ( 22 AS INTEGER ) - - 56 FROM tab2 AS cor0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT ALL + SUM( DISTINCT + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL + SUM ( DISTINCT + col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT DISTINCT + + 73 + + col2 AS col2 FROM tab2 AS cor0
----
113
131
96

query II rowsort
SELECT ALL - col1 * - - col2 AS col2, col2 + - col2 AS col1 FROM tab1 AS cor0
----
-1344
0
-295
0
-3196
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT DISTINCT - 60 * - COUNT( * ) AS col2 FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-4420
SELECT DISTINCT - 60 * - COUNT ( * ) AS col2 FROM tab0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE NOT col1 < + 10
----
2

skipif mysql # not compatible
query I rowsort label-4421
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE NOT col1 < + 10
----
2

query I rowsort
SELECT DISTINCT col0 * - 21 * + col0 * + 49 FROM tab0
----
-231525
-7788501
-9681861

onlyif mysql # aggregate syntax: 
query I rowsort label-4423
SELECT ALL COUNT( + + ( + + 87 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4423
SELECT ALL COUNT ( + + ( + + 87 ) ) AS col1 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4424
SELECT DISTINCT col1 DIV + - 97 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4424
SELECT DISTINCT col1 / + - 97 AS col0 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col0 - - - 10 IS NOT NULL
----

query I rowsort
SELECT + AVG ( ALL col0 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col0 * + col1 + + col0 AS col1 FROM tab0 cor0
----
-1200
-1740
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4428
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * 53 FROM tab0 AS cor0
----
1113
4293
53

skipif mysql # not compatible
query I rowsort label-4428
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * 53 FROM tab0 AS cor0
----
1113
4293
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + + col1 * + col2 * + col2 col0 FROM tab0
----
-21000
-8409663
-970299

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT DISTINCT + COUNT( 95 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT + COUNT ( 95 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4431
SELECT ALL + COUNT( * ) AS col1, + 14 AS col0 FROM tab2
----
3
14

skipif mysql # not compatible
query II rowsort label-4431
SELECT ALL + COUNT ( * ) AS col1, + 14 AS col0 FROM tab2
----
3
14

query III rowsort
SELECT * FROM tab0 WHERE NOT - 94 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4433
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4433
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <> + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN col2 / - col2 / col2 + + col2 AND NULL
----

query I rowsort
SELECT ALL - - 21 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
21
21
21

query I rowsort
SELECT ALL + 98 + + + col0 AS col0 FROM tab1 AS cor0
----
149
183
189

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT ALL ( - 31 ) + - + COUNT( * ) FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL ( - 31 ) + - + COUNT ( * ) FROM tab1 AS cor0
----
-34

query I rowsort
SELECT DISTINCT + ( - 74 ) + 70 AS col1 FROM tab0 cor0
----
-4

query I rowsort
SELECT 28 + col1 AS col2 FROM tab1
----
33
42
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4441
SELECT - 39 + - - COUNT( * ) + 51 DIV - 63 AS col1 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-4441
SELECT - 39 + - - COUNT ( * ) + 51 / - 63 AS col1 FROM tab0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT MIN( DISTINCT col2 ) + ( + - 96 ) FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-4442
SELECT MIN ( DISTINCT col2 ) + ( + - 96 ) FROM tab0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4443
SELECT ALL COUNT( * ) * + COUNT( * ) FROM tab2 WHERE + 28 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL COUNT ( * ) * + COUNT ( * ) FROM tab2 WHERE + 28 = NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4444
SELECT ALL 58 AS col0 FROM tab1 WHERE NOT NULL >= - CAST( - col0 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-4444
SELECT ALL 58 AS col0 FROM tab1 WHERE NOT NULL >= - CAST ( - col0 AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT - + SUM( DISTINCT ( col2 ) ) * + - 34 AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
4114

skipif mysql # not compatible
query I rowsort label-4445
SELECT - + SUM ( DISTINCT ( col2 ) ) * + - 34 AS col2 FROM tab2 WHERE col2 IS NOT NULL
----
4114

query I rowsort
SELECT DISTINCT col2 * - 94 + + ( + col0 ) AS col0 FROM tab1
----
-5461
-6301
-8973

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE + + col2 IN ( col1, 11, + col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT ( NULL = - + 36 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4449
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN - + col2 - + col2 + 88 + - - 12 * - 14 * col2 AND ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-4449
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN - + col2 - + col2 + 88 + - - 12 * - 14 * col2 AND ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4450
SELECT DISTINCT + 32 * + + CAST( col0 AS SIGNED ) + - col0 AS col2 FROM tab2
----
1426
1984
2325

skipif mysql # not compatible
query I rowsort label-4450
SELECT DISTINCT + 32 * + + CAST ( col0 AS INTEGER ) + - col0 AS col2 FROM tab2
----
1426
1984
2325

query I rowsort
SELECT DISTINCT col1 - 60 AS col0 FROM tab0
----
-39
-59
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT ALL MIN( - - 10 ) FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4452
SELECT ALL MIN ( - - 10 ) FROM tab2 AS cor0
----
10

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 AS cor0 WHERE NOT col1 + + col2 + - - 12 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT DISTINCT + MAX( + 70 ) AS col0 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4454
SELECT DISTINCT + MAX ( + 70 ) AS col0 FROM tab0 AS cor0
----
70

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + col1 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col1, col2 + col2 col1 FROM tab0 AS cor0
----
-1
198
-21
20
-81
94

query I rowsort
SELECT 85 * 80 AS col0 FROM tab0 AS cor0
----
6800
6800
6800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4458
SELECT DISTINCT CAST( NULL AS SIGNED ) / - 4 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4458
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - 4 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > col1 - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= col1 - + 11
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 * 21 col0 FROM tab2 AS cor0
----
-945
-945
-945

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4462
SELECT * FROM tab0 WHERE NOT + col0 * + 77 - - CAST( NULL AS DECIMAL ) - col1 - - + 35 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4462
SELECT * FROM tab0 WHERE NOT + col0 * + 77 - - CAST ( NULL AS REAL ) - col1 - - + 35 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 25 FROM tab0, tab2 cor0
----
9 values hashing to 40ac8fd000b2e49317aed2411077839e

onlyif mysql # aggregate syntax: 
query I rowsort label-4464
SELECT DISTINCT + - 42 * - COUNT( DISTINCT - ( + + col0 ) ) col1 FROM tab1 AS cor0
----
126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4464
SELECT DISTINCT + - 42 * - COUNT ( DISTINCT - ( + + col0 ) ) col1 FROM tab1 AS cor0
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4465
SELECT ALL + + 44 * + 52 + COUNT( * ) FROM tab1 cor0
----
2291

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL + + 44 * + 52 + COUNT ( * ) FROM tab1 cor0
----
2291

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4466
SELECT ALL * FROM tab0 AS cor0 WHERE 34 NOT BETWEEN col1 * - 79 - CAST( - 59 AS SIGNED ) AND ( + + ( + + col0 ) )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-4466
SELECT ALL * FROM tab0 AS cor0 WHERE 34 NOT BETWEEN col1 * - 79 - CAST ( - 59 AS INTEGER ) AND ( + + ( + + col0 ) )
----
15
81
47

query I rowsort
SELECT + ( 91 ) FROM tab0 cor0
----
91
91
91

query I rowsort
SELECT DISTINCT col2 + + 88 * + ( - col0 ) * + ( + 34 ) AS col2 FROM tab0 AS cor0
----
-260294
-290125
-44833

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4469
SELECT + - 15 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 40 + col2 AND + 68 + CAST( NULL AS SIGNED ) + + 17 / 41 * + col0
----

skipif mysql # not compatible
query I rowsort label-4469
SELECT + - 15 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 40 + col2 AND + 68 + CAST ( NULL AS INTEGER ) + + 17 / 41 * + col0
----

query I rowsort
SELECT ALL + col0 * + + col0 AS col2 FROM tab0 cor0
----
225
7569
9409

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( 68 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4472
SELECT - MAX( DISTINCT + + col1 ) col2 FROM tab2
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4472
SELECT - MAX ( DISTINCT + + col1 ) col2 FROM tab2
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT + SUM( - col0 ) AS col2 FROM tab0 WHERE - col2 + - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4473
SELECT + SUM ( - col0 ) AS col2 FROM tab0 WHERE - col2 + - col1 IS NULL
----
NULL

query I rowsort
SELECT 10 * - col2 * + col2 + - + col0 FROM tab1
----
-34895
-46331
-92211

query I rowsort
SELECT + col1 + 86 AS col2 FROM tab1
----
100
133
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4476
SELECT ALL 69 + 66 AS col1, MAX( DISTINCT + + col2 ) AS col1 FROM tab1
----
135
96

skipif mysql # not compatible
query II rowsort label-4476
SELECT ALL 69 + 66 AS col1, MAX ( DISTINCT + + col2 ) AS col1 FROM tab1
----
135
96

query I rowsort
SELECT DISTINCT + 31 * col2 * + + col1 + + - 83 FROM tab0 WHERE + col2 + - 51 IS NULL AND NOT ( NULL >= - - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4478
SELECT DISTINCT - COUNT( * ) DIV - MIN( + + 50 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4478
SELECT DISTINCT - COUNT ( * ) / - MIN ( + + 50 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT 82 + - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-4479
SELECT 82 + - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
79

query III rowsort
SELECT DISTINCT + col1 AS col2, col2 * + + ( + 13 ), + - col2 AS col2 FROM tab2 AS cor0
----
9 values hashing to fd3ba4bc8cf9efa82320f5e1babbb20a

onlyif mysql # aggregate syntax: 
query I rowsort label-4481
SELECT - COUNT( * ) + - 81 * + - 80 AS col1 FROM tab0 AS cor0
----
6477

skipif mysql # not compatible
query I rowsort label-4481
SELECT - COUNT ( * ) + - 81 * + - 80 AS col1 FROM tab0 AS cor0
----
6477

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4482
SELECT - - CAST( NULL AS SIGNED ) * + 40 * - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4482
SELECT - - CAST ( NULL AS INTEGER ) * + 40 * - + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4484
SELECT DISTINCT + col2 * CAST( + - col0 AS SIGNED ) AS col0 FROM tab1 cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-4484
SELECT DISTINCT + col2 * CAST ( + - col0 AS INTEGER ) AS col0 FROM tab1 cor0
----
-4896
-5015
-6188

query II rowsort
SELECT ALL col1 AS col1, - col1 FROM tab0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT - 66 * + + col2 AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-3102
-6534
-660

query I rowsort
SELECT col1 * 1 * + 28 FROM tab0
----
2268
28
588

query I rowsort
SELECT + ( 52 ) FROM tab0
----
52
52
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4489
SELECT COUNT( * ) * COUNT( * ) FROM tab0 WHERE NOT ( NOT - 84 + - + 2 * + - col0 NOT BETWEEN - + CAST( NULL AS SIGNED ) * + col2 * + - col2 / ( + - col0 ) * - 41 + CAST( col2 AS SIGNED ) - - 8 / col0 * - col0 - col0 + col0 AND col1 )
----
4

skipif mysql # not compatible
query I rowsort label-4489
SELECT COUNT ( * ) * COUNT ( * ) FROM tab0 WHERE NOT ( NOT - 84 + - + 2 * + - col0 NOT BETWEEN - + CAST ( NULL AS INTEGER ) * + col2 * + - col2 / ( + - col0 ) * - 41 + CAST ( col2 AS INTEGER ) - - 8 / col0 * - col0 - col0 + col0 AND col1 )
----
4

query II rowsort
SELECT ALL - + col2 AS col1, - col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col1 * col2 - - col1 FROM tab1 AS cor0
----
1358
300
3243

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT - + SUM( - col2 ) col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4492
SELECT - + SUM ( - col2 ) col1 FROM tab0 AS cor0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 4 + + col2 col0 FROM tab2 AS cor0
----
19
36
54

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 75 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 50 + 41 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-4496
SELECT + SUM( DISTINCT - + col0 ), + SUM( + col0 ) * - 63 + + + MAX( DISTINCT - - 40 ) + - COUNT( * ) AS col2 FROM tab2
----
-185
-11618

skipif mysql # not compatible
query II rowsort label-4496
SELECT + SUM ( DISTINCT - + col0 ), + SUM ( + col0 ) * - 63 + + + MAX ( DISTINCT - - 40 ) + - COUNT ( * ) AS col2 FROM tab2
----
-185
-11618

query I rowsort
SELECT - col1 * + col0 - - col0 FROM tab0 WHERE NOT - col0 IS NULL
----
-1200
-1740
0

query I rowsort
SELECT - col2 + - - col2 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4499
SELECT ALL + 53 * + COUNT( * ) + - + 94 DIV - ( MAX( DISTINCT + col0 ) ) AS col0 FROM tab2 cor0
----
160

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL + 53 * + COUNT ( * ) + - + 94 / - ( MAX ( DISTINCT + col0 ) ) AS col0 FROM tab2 cor0
----
160

query I rowsort
SELECT ALL 16 + + + col2 * + - 20 FROM tab1 AS cor0
----
-1164
-1344
-1904

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 + - col1 col2 FROM tab2 AS cor0
----
-135
-151
-161

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 67 * - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4503
SELECT ALL - col0 + + - 21 + col0 + 41 AS col0, - col1 DIV 69 FROM tab1 cor0
----
20
0
20
0
20
0

skipif mysql # not compatible
query II rowsort label-4503
SELECT ALL - col0 + + - 21 + col0 + 41 AS col0, - col1 / 69 FROM tab1 cor0
----
20
0
20
0
20
0

query I rowsort
SELECT + col0 + 68 * col2 FROM tab2 AS cor0
----
1610
2784
4019

onlyif mysql # DIV for integer division: 
query I rowsort label-4505
SELECT DISTINCT ( - col1 ) DIV - col0 + + col1 + ( - + col1 ) AS col0 FROM tab0 AS cor0
----
0
5

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT ( - col1 ) / - col0 + + col1 + ( - + col1 ) AS col0 FROM tab0 AS cor0
----
0
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4506
SELECT 37 + + + CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-10
23
32

skipif mysql # not compatible
query I rowsort label-4506
SELECT 37 + + + CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-10
23
32

query I rowsort
SELECT ALL - ( + col2 ) + + col2 - - 59 AS col0 FROM tab2 AS cor0
----
59
59
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4508
SELECT ALL col0 + ( + + 70 ) + CAST( - col1 AS SIGNED ) * - col0 FROM tab2
----
2462
5062
5170

skipif mysql # not compatible
query I rowsort label-4508
SELECT ALL col0 + ( + + 70 ) + CAST ( - col1 AS INTEGER ) * - col0 FROM tab2
----
2462
5062
5170

query I rowsort
SELECT DISTINCT ( + col1 ) + + + col1 + + col2 AS col2 FROM tab1
----
124
162
69

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4510
SELECT ALL * FROM tab1 WHERE ( + + 32 * + col2 + - CAST( NULL AS DECIMAL ) + - + col1 ) BETWEEN col2 AND 50 * col2
----

skipif mysql # not compatible
query III rowsort label-4510
SELECT ALL * FROM tab1 WHERE ( + + 32 * + col2 + - CAST ( NULL AS REAL ) + - + col1 ) BETWEEN col2 AND 50 * col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4511
SELECT ALL - col2 + 93 + - col1 * col1 / CAST( NULL AS SIGNED ) * + - col0 + - CAST( NULL AS SIGNED ) * - col2 + - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL - col2 + 93 + - col1 * col1 / CAST ( NULL AS INTEGER ) * + - col0 + - CAST ( NULL AS INTEGER ) * - col2 + - col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 24 * + col1 + - 59 - col1 AS col1 FROM tab1
----
-1234
-184
-409

query II rowsort
SELECT col0, - 63 AS col0 FROM tab0
----
15
-63
87
-63
97
-63

query I rowsort
SELECT + col2 * - - col1 AS col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT ALL - + 71 AS col2 FROM tab2 WHERE + - col1 IS NOT NULL
----
-71
-71
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4516
SELECT ALL + COUNT( * ) DIV + ( 30 ) AS col0, + 12 AS col0 FROM tab1
----
0
12

skipif mysql # not compatible
query II rowsort label-4516
SELECT ALL + COUNT ( * ) / + ( 30 ) AS col0, + 12 AS col0 FROM tab1
----
0
12

query I rowsort
SELECT + + col1 * - col0 AS col1 FROM tab2 WHERE + col1 NOT BETWEEN 97 AND NULL
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-4518
SELECT ALL col1 - col1 + + - col2 DIV - + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4518
SELECT ALL col1 - col1 + + - col2 / - + col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT DISTINCT + 53 - 27 * - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
137

skipif mysql # not compatible
query I rowsort label-4519
SELECT DISTINCT + 53 - 27 * - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
137

query I rowsort
SELECT col1 * - col2 - 90 FROM tab2 AS cor0
----
-1263
-3170
-3976

query I rowsort
SELECT col2 + col1 + + - 11 AS col1 FROM tab2 cor0
----
106
114
63

onlyif mysql # DIV for integer division: 
query I rowsort label-4522
SELECT + - 92 DIV + 5 + col0 FROM tab1 AS cor0
----
33
67
73

skipif mysql # not compatible
query I rowsort label-4522
SELECT + - 92 / + 5 + col0 FROM tab1 AS cor0
----
33
67
73

query I rowsort
SELECT + 98 * - col0 * - + col2 AS col0 FROM tab1
----
479808
491470
606424

query I rowsort
SELECT DISTINCT + - col2 + - - 33 AS col0 FROM tab0 WHERE NOT - col0 IS NULL
----
-14
-66
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT ALL COUNT( * ) * - - COUNT( * ) col0 FROM tab2 WHERE NOT col1 >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4525
SELECT ALL COUNT ( * ) * - - COUNT ( * ) col0 FROM tab2 WHERE NOT col1 >= NULL
----
0

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - 86 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4527
SELECT DISTINCT + - MAX( - col0 ), MIN( DISTINCT - - col1 ) col0 FROM tab0 AS cor0
----
15
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4527
SELECT DISTINCT + - MAX ( - col0 ), MIN ( DISTINCT - - col1 ) col0 FROM tab0 AS cor0
----
15
1

onlyif mysql # aggregate syntax: 
query II rowsort label-4528
SELECT 67 AS col2, - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 + 79 + + + col0 + - col0 IS NOT NULL
----
67
0

skipif mysql # not compatible
query II rowsort label-4528
SELECT 67 AS col2, - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 + 79 + + + col0 + - col0 IS NOT NULL
----
67
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4529
SELECT - col0 * CAST( NULL AS SIGNED ) * - 95 / + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4529
SELECT - col0 * CAST ( NULL AS INTEGER ) * - 95 / + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4530
SELECT ALL + AVG ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4530
SELECT ALL + AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4531
SELECT - COUNT( * ) * 34 * + 64 FROM tab2 WHERE NOT NULL BETWEEN - col1 AND ( col1 - + + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-4531
SELECT - COUNT ( * ) * 34 * + 64 FROM tab2 WHERE NOT NULL BETWEEN - col1 AND ( col1 - + + col2 )
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 16 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 BETWEEN - + col2 AND + + ( - col0 ) + + col0 * + + 49 + + col1
----

query I rowsort
SELECT 41 / - col1 AS col0 FROM tab2 WHERE NOT - 73 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4535
SELECT - 10 DIV - - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4535
SELECT - 10 / - - col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + AVG ( DISTINCT + col2 ) - + AVG ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE NOT - 85 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4537
SELECT - + AVG ( - CAST( NULL AS SIGNED ) ) * - - 25 + + + SUM( col0 ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT - + AVG ( - CAST ( NULL AS INTEGER ) ) * - - 25 + + + SUM ( col0 ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT DISTINCT + + COUNT( * ) + + COUNT( * ) * - 24 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-4538
SELECT DISTINCT + + COUNT ( * ) + + COUNT ( * ) * - 24 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-213

onlyif mysql # DIV for integer division: 
query I rowsort label-4539
SELECT ALL + col2 + + - 52 DIV + col0 AS col2 FROM tab0
----
10
44
99

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL + col2 + + - 52 / + col0 AS col2 FROM tab0
----
10
44
99

query II rowsort
SELECT DISTINCT - + col1 * col1 * + - col1 + + - col2, + col2 FROM tab0 WHERE - ( - - 34 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4541
SELECT + CAST( NULL AS SIGNED ) * 78 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4541
SELECT + CAST ( NULL AS INTEGER ) * 78 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 75 col2 FROM tab0 AS cor0
----
75

query I rowsort
SELECT ALL - col0 * + col2 * + col2 + + 97 + - - col2 AS col1 FROM tab1 AS cor0
----
-295729
-420619
-469823

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4544
SELECT * FROM tab0 AS cor0 WHERE - CAST( 33 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4544
SELECT * FROM tab0 AS cor0 WHERE - CAST ( 33 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * - - 17 AS col1 FROM tab0 AS cor0
----
-1683
-170
-799

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4546
SELECT + 55 * + 35 * + ( + - SUM( ALL - CAST( NULL AS DECIMAL ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4546
SELECT + 55 * + 35 * + ( + - SUM ( ALL - CAST ( NULL AS REAL ) ) ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - ( - 27 ) * + - 37 * + col1 FROM tab1 AS cor0
----
-13986
-46953
-4995

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT - 69 - - - COUNT( * ) * - COUNT( * ) * - MIN( col1 ) FROM tab2 cor0
----
-528

skipif mysql # not compatible
query I rowsort label-4548
SELECT - 69 - - - COUNT ( * ) * - COUNT ( * ) * - MIN ( col1 ) FROM tab2 cor0
----
-528

query I rowsort
SELECT ALL - + col1 + + 85 FROM tab1 AS cor0
----
38
71
80

query II rowsort
SELECT DISTINCT + + col2 AS col1, + col0 AS col2 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT DISTINCT + + col1 + - - 73 AS col1 FROM tab2 WHERE NULL < + - col0 * col2 + - 56 + + col1 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4552
SELECT 89 + + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4552
SELECT 89 + + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4553
SELECT DISTINCT CAST( NULL AS SIGNED ) * col0 + ( + col1 ) * - - col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4553
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col0 + ( + col1 ) * - - col2 AS col2 FROM tab1
----
NULL

query II rowsort
SELECT ( + col2 ) + - col2 * + 13, + col0 + - 24 AS col0 FROM tab1
----
-1152
27
-708
61
-816
67

query I rowsort
SELECT + col1 * col2 * 13 + col0 AS col0 FROM tab2
----
15295
40104
50593

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4556
SELECT DISTINCT + col0 * + + 67 + + - col1 AS col2 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( CAST( - 27 AS SIGNED ), col2 * - col2 + - + col1 * + 62 )
----

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT + col0 * + + 67 + + - col1 AS col2 FROM tab2 AS cor0 WHERE NOT col1 NOT IN ( CAST ( - 27 AS INTEGER ), col2 * - col2 + - + col1 * + 62 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4557
SELECT ALL - - MIN( ALL - + col0 ), 82 AS col0 FROM tab2 AS cor0
----
-75
82

skipif mysql # not compatible
query II rowsort label-4557
SELECT ALL - - MIN ( ALL - + col0 ), 82 AS col0 FROM tab2 AS cor0
----
-75
82

query II rowsort
SELECT ALL + col1 * col2 * + col1 AS col2, + col1 FROM tab0
----
308367
81
4410
21
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT + 71 * - MAX( - 65 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
4615

skipif mysql # not compatible
query I rowsort label-4559
SELECT + 71 * - MAX ( - 65 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
4615

onlyif mysql # aggregate syntax: 
query I rowsort label-4560
SELECT DISTINCT + COUNT( * ) * - - 39 FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-4560
SELECT DISTINCT + COUNT ( * ) * - - 39 FROM tab2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4561
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 45 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4563
SELECT DISTINCT - MAX( - + col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4563
SELECT DISTINCT - MAX ( - + col0 ) AS col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT ALL 77 / + col2 + - + col2 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----

query I rowsort
SELECT ALL + col2 FROM tab0 cor0 WHERE + col0 IS NOT NULL
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL IS NOT NULL ) )
----

query II rowsort
SELECT ALL + + col0 AS col1, col1 AS col2 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
15
81
87
21
97
1

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 < + 72 + col1 + 5
----
51
14
96

query I rowsort
SELECT 62 + - 40 AS col0 FROM tab0
----
22
22
22

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 6 IS NOT NULL
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT NULL < - + col1
----

query II rowsort
SELECT DISTINCT + col1 AS col2, 81 FROM tab1
----
14
81
47
81
5
81

query I rowsort
SELECT 80 + 71 AS col1 FROM tab1
----
151
151
151

onlyif mysql # DIV for integer division: 
query I rowsort label-4574
SELECT DISTINCT col0 DIV + + col2 + + 68 + + + col1 * - col2 AS col2 FROM tab2
----
-1103
-3011
-3817

skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT col0 / + + col2 + + 68 + + + col1 * - col2 AS col2 FROM tab2
----
-1103
-3011
-3817

onlyif mysql # aggregate syntax: 
query I rowsort label-4575
SELECT ( + 55 ) + + - COUNT( * ) FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-4575
SELECT ( + 55 ) + + - COUNT ( * ) FROM tab0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4576
SELECT ALL * FROM tab2 WHERE NOT col1 NOT BETWEEN - + col0 AND - col0 * + - CAST( + - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4576
SELECT ALL * FROM tab2 WHERE NOT col1 NOT BETWEEN - + col0 AND - col0 * + - CAST ( + - col0 AS INTEGER )
----

query I rowsort
SELECT 29 * - - col2 FROM tab2
----
1160
1682
667

query I rowsort
SELECT DISTINCT - 58 + - 96 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-4579
SELECT DISTINCT - 93 DIV - col1 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4579
SELECT DISTINCT - 93 / - col1 AS col2 FROM tab2
----
1

query II rowsort
SELECT DISTINCT - + 6 AS col2, - col0 AS col2 FROM tab0 AS cor0
----
-6
-15
-6
-87
-6
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN + 76 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4582
SELECT - + 54 * + SUM( + - 20 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9720

skipif mysql # not compatible
query I rowsort label-4582
SELECT - + 54 * + SUM ( + - 20 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 86 col1, 64 col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to e269f239a294ae183fe2d065127ee74f

query II rowsort
SELECT DISTINCT 95 * col1 + + + col1 AS col0, - col2 FROM tab1
----
1344
-96
4512
-68
480
-59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4585
SELECT - CAST( NULL AS SIGNED ) col0 FROM tab2 WHERE 81 + + col2 * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4585
SELECT - CAST ( NULL AS INTEGER ) col0 FROM tab2 WHERE 81 + + col2 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4586
SELECT DISTINCT COUNT( ALL 93 ) FROM tab2, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4586
SELECT DISTINCT COUNT ( ALL 93 ) FROM tab2, tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT - MIN( + col2 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59

skipif mysql # not compatible
query I rowsort label-4587
SELECT - MIN ( + col2 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT ALL - - MAX( DISTINCT + 15 ) AS col2 FROM tab1 cor0
----
15

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL - - MAX ( DISTINCT + 15 ) AS col2 FROM tab1 cor0
----
15

query I rowsort
SELECT DISTINCT + col2 + + 99 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4590
SELECT DISTINCT col2 * col0 + + col0 DIV + col2 col0 FROM tab1 cor0
----
4896
5016
6189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4590
SELECT DISTINCT col2 * col0 + + col0 / + col2 col0 FROM tab1 cor0
----
4896
5016
6189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4591
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + col1 + col1 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4591
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + col1 + col1 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
NULL

query I rowsort
SELECT ALL + + col2 * + - col2 AS col0 FROM tab0 WHERE col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT ( - ( + + COUNT( * ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4593
SELECT ( - ( + + COUNT ( * ) ) ) FROM tab2
----
-3

query III rowsort
SELECT * FROM tab1 WHERE + + 17 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 + - - col2 FROM tab0
----
198
20
94

query I rowsort
SELECT + + col2 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4597
SELECT + SUM( - 57 ) + + 76 FROM tab1 AS cor0 WHERE NOT ( NOT + + col1 * + 98 - - - 28 * + - col0 IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4597
SELECT + SUM ( - 57 ) + + 76 FROM tab1 AS cor0 WHERE NOT ( NOT + + col1 * + 98 - - - 28 * + - col0 IS NULL )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 47 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 15 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + + ( - - 85 ) ) AS col1 FROM tab0 cor0
----
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - 43 * - col0 AND + - col2
----

query I rowsort
SELECT DISTINCT - col0 + - - 5 FROM tab1 AS cor0
----
-46
-80
-86

query I rowsort
SELECT DISTINCT - col2 * col1 * - col2 AS col0 FROM tab2 AS cor0
----
123200
225388
26979

onlyif mysql # DIV for integer division: 
query II rowsort label-4604
SELECT ALL col2 DIV 76, - 57 col0 FROM tab0 AS cor0
----
0
-57
0
-57
1
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4604
SELECT ALL col2 / 76, - 57 col0 FROM tab0 AS cor0
----
0
-57
0
-57
1
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT DISTINCT - ( - + MIN( DISTINCT 47 ) ) col2 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4605
SELECT DISTINCT - ( - + MIN ( DISTINCT 47 ) ) col2 FROM tab0 AS cor0
----
47

query I rowsort
SELECT ALL + col2 + + col0 + + - col2 + + col1 - 3 + - col2 * + 16 * - 93 * - col2 + 62 * + col0 * + col1 AS col0 FROM tab0
----
-14577779
-3211569
-35421

query I rowsort
SELECT DISTINCT + ( + col2 ) + + col0 AS col2 FROM tab2
----
104
133
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4608
SELECT DISTINCT 17 DIV - COUNT( ALL + - 68 ) AS col2, - COUNT( * ) FROM tab1
----
-5
-3

skipif mysql # not compatible
query II rowsort label-4608
SELECT DISTINCT 17 / - COUNT ( ALL + - 68 ) AS col2, - COUNT ( * ) FROM tab1
----
-5
-3

query I rowsort
SELECT - 32 * 31 AS col1 FROM tab0
----
-992
-992
-992

query I rowsort
SELECT + - col1 + - + 58 * 32 FROM tab1 AS cor0
----
-1861
-1870
-1903

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 + 65 col0 FROM tab2 AS cor0
----
111
129
140

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + - + 13 + ( + 5 ) = - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT - 39 * + MAX( ALL - - col1 ) FROM tab0 AS cor0
----
-3159

skipif mysql # not compatible
query I rowsort label-4613
SELECT - 39 * + MAX ( ALL - - col1 ) FROM tab0 AS cor0
----
-3159

onlyif mysql # DIV for integer division: 
query II rowsort label-4614
SELECT ALL col0 * + + 60 + ( + col0 ) AS col1, - col2 * col1 + + 23 DIV 1 FROM tab0 AS cor0
----
5307
-187
5917
-76
915
-3784

skipif mysql # not compatible
query II rowsort label-4614
SELECT ALL col0 * + + 60 + ( + col0 ) AS col1, - col2 * col1 + + 23 / 1 FROM tab0 AS cor0
----
5307
-187
5917
-76
915
-3784

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, + 80 col0 FROM tab2 AS cor0
----
51
80
67
80
77
80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + + col0 * + - 35 <= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 87 AS col0, col0 + + 35 FROM tab2 AS cor0
----
87
110
87
81
87
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4618
SELECT + MAX( ALL col1 ) - - COUNT( ALL + col2 ) + + CAST( NULL AS DECIMAL ) * + SUM( ALL + - ( + 16 ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4618
SELECT + MAX ( ALL col1 ) - - COUNT ( ALL + col2 ) + + CAST ( NULL AS REAL ) * + SUM ( ALL + - ( + 16 ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col1 + + 5 AS col1 FROM tab2 cor0
----
56
72
82

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + col1 + 27 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4620
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + col1 + 27 IS NOT NULL
----
3

query I rowsort
SELECT + + col2 + - col2 + - 72 AS col2 FROM tab1 WHERE NULL IN ( - col2, col1 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4622
SELECT * FROM tab2 WHERE - col1 - - CAST( - - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4622
SELECT * FROM tab2 WHERE - col1 - - CAST ( - - col1 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + 47 + + 32 AS col1 FROM tab2 WHERE NULL IS NULL
----
79
79
79

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( - col2 ) + - - 7 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 43 * col1 AS col0 FROM tab2 AS cor0
----
2193
2881
3311

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT ALL + + MAX( DISTINCT - + col0 ) * + - 89 - - 26 AS col1 FROM tab1 AS cor0
----
4565

skipif mysql # not compatible
query I rowsort label-4626
SELECT ALL + + MAX ( DISTINCT - + col0 ) * + - 89 - - 26 AS col1 FROM tab1 AS cor0
----
4565

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL = 84
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4628
SELECT ALL - col0, + 90 DIV - 24 AS col2 FROM tab1
----
-51
-3
-85
-3
-91
-3

skipif mysql # not compatible
query II rowsort label-4628
SELECT ALL - col0, + 90 / - 24 AS col2 FROM tab1
----
-51
-3
-85
-3
-91
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4629
SELECT + AVG ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4629
SELECT + AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4630
SELECT 55 AS col1 FROM tab2 WHERE NOT NULL BETWEEN - - ( + CAST( + col2 AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4630
SELECT 55 AS col1 FROM tab2 WHERE NOT NULL BETWEEN - - ( + CAST ( + col2 AS INTEGER ) ) AND NULL
----

query I rowsort
SELECT DISTINCT - 3 * - - col0 FROM tab1 AS cor0
----
-153
-255
-273

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col2 * + + 58 * + + 38 + - ( ( col0 ) ) - - - 15 BETWEEN + col0 AND - 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 8 IS NULL
----

query I rowsort
SELECT DISTINCT - 51 + + col1 * - 0 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT + COUNT( * ) + + - MAX( 35 ) FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-4636
SELECT + COUNT ( * ) + + - MAX ( 35 ) FROM tab1
----
-32

query I rowsort
SELECT col2 * - col1 + + col0 AS col2 FROM tab0
----
-123
-2
-3792

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 NOT BETWEEN col2 * + - col0 - col0 AND - col0
----
87
21
10
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 18 col1 FROM tab2
----
-1152
-1350
-828

query I rowsort
SELECT + ( col1 ) * + - 29 AS col0 FROM tab2
----
-1479
-1943
-2233

query I rowsort
SELECT ALL col0 * - - col0 AS col2 FROM tab0
----
225
7569
9409

onlyif mysql # DIV for integer division: 
query I rowsort label-4642
SELECT ALL - ( + - col1 ) DIV - 24 FROM tab2 AS cor0
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-4642
SELECT ALL - ( + - col1 ) / - 24 FROM tab2 AS cor0
----
-2
-2
-3

query I rowsort
SELECT col2 + + col2 AS col0 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT ALL + col2 + col0 + - col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4645
SELECT DISTINCT col1 + col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4645
SELECT DISTINCT col1 + col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT - SUM( DISTINCT + col2 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-156

skipif mysql # not compatible
query I rowsort label-4646
SELECT - SUM ( DISTINCT + col2 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-156

query I rowsort
SELECT - 6 * col1 + + 73 FROM tab2
----
-233
-329
-389

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4648
SELECT ALL - CAST( NULL AS SIGNED ) - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4648
SELECT ALL - CAST ( NULL AS INTEGER ) - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col0 FROM tab0 AS cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT COUNT( * ) * - 6 AS col1 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-4650
SELECT COUNT ( * ) * - 6 AS col1 FROM tab2 AS cor0
----
-18

query II rowsort
SELECT - col2 AS col1, 17 AS col1 FROM tab2 AS cor0
----
-23
17
-40
17
-58
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 59 col1, 92 FROM tab2
----
-59
92
-59
92
-59
92

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 69 * + 87 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * - col0 AS col0, + col1 col2 FROM tab0
----
1215
81
1827
21
97
1

query II rowsort
SELECT ALL - col0, + 85 + - col2 + - col2 AS col0 FROM tab2
----
-46
39
-64
5
-75
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4656
SELECT - SUM( - col0 ) col1 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4656
SELECT - SUM ( - col0 ) col1 FROM tab2
----
185

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 <= + col0
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT 23 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4660
SELECT ALL + - col0 col0, - CAST( + - col0 AS SIGNED ) col2 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4660
SELECT ALL + - col0 col0, - CAST ( + - col0 AS INTEGER ) col2 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT - 52 * + 51 AS col1 FROM tab0 AS cor0
----
-2652
-2652
-2652

query I rowsort
SELECT ALL 55 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT + col0 * + 45 AS col2 FROM tab0 AS cor0
----
3915
4365
675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4664
SELECT col2 col2 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * 55 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4664
SELECT col2 col2 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * 55 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + - 34 * - col0 AS col0 FROM tab0 AS cor0
----
23970
29580
326502

query I rowsort
SELECT ALL - - ( - col1 ) * + + 64 FROM tab2 AS cor0
----
-3264
-4288
-4928

onlyif mysql # DIV for integer division: 
query I rowsort label-4667
SELECT ALL - col0 + + 5 DIV - 88 + + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4667
SELECT ALL - col0 + + 5 / - 88 + + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT + SUM( - - col2 ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4668
SELECT + SUM ( - - col2 ) AS col1 FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT DISTINCT - - SUM( + col2 ) + SUM( ALL - col1 ) FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT - - SUM ( + col2 ) + SUM ( ALL - col1 ) FROM tab0 AS cor0
----
53

query I rowsort
SELECT + 74 * - ( - 22 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT + SUM( 35 ) FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-4671
SELECT + SUM ( 35 ) FROM tab2
----
105

query I rowsort
SELECT ALL ( - 92 ) + - col0 FROM tab2
----
-138
-156
-167

query II rowsort
SELECT DISTINCT + 90 * - 87 * 82, + col0 FROM tab0
----
-642060
15
-642060
87
-642060
97

onlyif mysql # aggregate syntax: 
query II rowsort label-4674
SELECT + SUM( DISTINCT + + 86 ) + + - MAX( + col1 ) AS col2, COUNT( * ) FROM tab0 AS cor0
----
5
3

skipif mysql # not compatible
query II rowsort label-4674
SELECT + SUM ( DISTINCT + + 86 ) + + - MAX ( + col1 ) AS col2, COUNT ( * ) FROM tab0 AS cor0
----
5
3

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE ( NOT ( NOT NULL <= NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4676
SELECT ALL - MAX( DISTINCT + 9 ) * + MIN( + col1 ) - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-4676
SELECT ALL - MAX ( DISTINCT + 9 ) * + MIN ( + col1 ) - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT - COUNT( col2 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4677
SELECT - COUNT ( col2 ) col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 < NULL
----

query I rowsort
SELECT - col0 * - + col2 AS col0 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT ALL ( ( - col1 ) ) * + + 37 FROM tab1
----
-1739
-185
-518

query II rowsort
SELECT + 95 * - col0 * - col1, col0 FROM tab1
----
40375
85
406315
91
67830
51

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> col0 * + 72 + col0 + + col2 + - 44 - - - ( 85 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( col1, 29 * + - col2 * + + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4684
SELECT ALL - COUNT( * ) DIV - 93 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4684
SELECT ALL - COUNT ( * ) / - 93 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 15 col0 FROM tab0 AS cor0
----
-15

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - 68 IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * ( + - 15 ) = NULL
----

query II rowsort
SELECT ALL - 34 AS col1, - 74 FROM tab0 AS cor0
----
-34
-74
-34
-74
-34
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 57 + - 89 col1 FROM tab0 AS cor0 WHERE 64 + 17 + - col2 * col2 <= - col0 * + ( + + 53 )
----
-32
-32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4690
SELECT CAST( 37 AS SIGNED ), col0 * CAST( col2 AS SIGNED ) AS col1, + - col2 * - - col2 + col2 AS col0 FROM tab2
----
9 values hashing to 55c9cf17568a08a01c64ac1c16b59467

skipif mysql # not compatible
query III rowsort label-4690
SELECT CAST ( 37 AS INTEGER ), col0 * CAST ( col2 AS INTEGER ) AS col1, + - col2 * - - col2 + col2 AS col0 FROM tab2
----
9 values hashing to 55c9cf17568a08a01c64ac1c16b59467

query I rowsort
SELECT DISTINCT + col1 * - col2 * + + col1 * - 29 * col2 + + + 57 FROM tab0
----
1278957
284286
420304278

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 36 > + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4693
SELECT ALL + CAST( - + col1 AS SIGNED ) + col0 AS col1 FROM tab2
----
-13
-5
8

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL + CAST ( - + col1 AS INTEGER ) + col0 AS col1 FROM tab2
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT COUNT( + + 98 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4694
SELECT COUNT ( + + 98 ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * - 1 AS col1, 40 + 32 col2 FROM tab1
----
-14
72
-47
72
-5
72

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 / 55 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 60 * + col1 - + - 79 * + 30 * - - col1 FROM tab1
----
114210
12150
34020

query I rowsort
SELECT col2 - - - col1 AS col1 FROM tab0 cor0
----
-11
-34
98

query I rowsort
SELECT 71 - col2 AS col1 FROM tab0 AS cor0
----
-28
24
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4700
SELECT ALL CAST( NULL AS SIGNED ) * 46 * + 15 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4700
SELECT ALL CAST ( NULL AS INTEGER ) * 46 * + 15 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 56 + - col2 * + + col0 * - col1 FROM tab1
----
25131
290892
68600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 43 ) col2 FROM tab2
----
-43
-43
-43

query I rowsort
SELECT + 16 * 15 + + ( + 28 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
268
268
268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 col1, col2 FROM tab0 AS cor0
----
15
47
87
10
97
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4705
SELECT CAST( NULL AS SIGNED ) AS col1, 14 AS col0 FROM tab0 AS cor0
----
NULL
14
NULL
14
NULL
14

skipif mysql # not compatible
query II rowsort label-4705
SELECT CAST ( NULL AS INTEGER ) AS col1, 14 AS col0 FROM tab0 AS cor0
----
NULL
14
NULL
14
NULL
14

query I rowsort
SELECT + col2 * - - ( col1 ) FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT - - col0 * + col0 + - - col0 AS col1 FROM tab2 cor0
----
2162
4160
5700

onlyif mysql # aggregate syntax: 
query I rowsort label-4708
SELECT DISTINCT MIN( - 68 ) * 0 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT MIN ( - 68 ) * 0 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4709
SELECT ALL + col1 DIV ( col1 ) * + col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4709
SELECT ALL + col1 / ( col1 ) * + col2 FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4710
SELECT + col2 DIV 27 AS col0 FROM tab1
----
2
2
3

skipif mysql # not compatible
query I rowsort label-4710
SELECT + col2 / 27 AS col0 FROM tab1
----
2
2
3

query I rowsort
SELECT ALL - 23 * - col1 FROM tab0
----
1863
23
483

query III rowsort
SELECT * FROM tab2 WHERE NOT + 27 = + 14
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 25 * + col1 AS col1 FROM tab1
----
1175
125
350

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - ( + 96 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4715
SELECT + ( - CAST( NULL AS SIGNED ) ) + col1 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4715
SELECT + ( - CAST ( NULL AS INTEGER ) ) + col1 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4716
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT ALL + MIN( 55 ) AS col1 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-4717
SELECT ALL + MIN ( 55 ) AS col1 FROM tab1 AS cor0
----
55

query I rowsort
SELECT - + 86 * + 71 * - ( - - col0 ) + col0 AS col2 FROM tab1 AS cor0
----
311457
519095
555737

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4720
SELECT ALL + ( - COUNT( * ) ) DIV + + COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4720
SELECT ALL + ( - COUNT ( * ) ) / + + COUNT ( * ) FROM tab2
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = - - ( + 23 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4722
SELECT ALL - COUNT( * ) AS col0, COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4722
SELECT ALL - COUNT ( * ) AS col0, COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4723
SELECT 48 + + - 47 + - MIN( ALL 84 ) AS col1, 83 FROM tab1 WHERE + + col1 - + ( + - ( - + 30 ) ) IS NULL
----
NULL
83

skipif mysql # not compatible
query II rowsort label-4723
SELECT 48 + + - 47 + - MIN ( ALL 84 ) AS col1, 83 FROM tab1 WHERE + + col1 - + ( + - ( - + 30 ) ) IS NULL
----
NULL
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT DISTINCT - SUM( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4724
SELECT DISTINCT - SUM ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
-185

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 * - + ( + - ( 39 ) ) BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT DISTINCT + ( - COUNT( * ) ) + + SUM( - - col0 ) AS col0 FROM tab0 AS cor0
----
196

skipif mysql # not compatible
query I rowsort label-4726
SELECT DISTINCT + ( - COUNT ( * ) ) + + SUM ( - - col0 ) AS col0 FROM tab0 AS cor0
----
196

query II rowsort
SELECT ALL 1 + + col0 * - col1, col0 FROM tab2 AS cor0
----
-2345
46
-4927
64
-5024
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4728
SELECT ALL + + COUNT( * ) + - 24 FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-4728
SELECT ALL + + COUNT ( * ) + - 24 FROM tab2 AS cor0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4729
SELECT CAST( + col0 AS SIGNED ) + - - col2 FROM tab0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-4729
SELECT CAST ( + col0 AS INTEGER ) + - - col2 FROM tab0
----
196
62
97

onlyif mysql # DIV for integer division: 
query I rowsort label-4730
SELECT col1 + + col1 DIV - - col1 AS col0 FROM tab1
----
15
48
6

skipif mysql # not compatible
query I rowsort label-4730
SELECT col1 + + col1 / - - col1 AS col0 FROM tab1
----
15
48
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4731
SELECT ALL - CAST( NULL AS SIGNED ) - col1 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4731
SELECT ALL - CAST ( NULL AS INTEGER ) - col1 col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + ( - col0 ) FROM tab2
----
-8
13
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4733
SELECT ALL + COUNT( * ) col2 FROM tab1 WHERE NOT + col0 - + 40 + + CAST( NULL AS SIGNED ) + + 68 / - CAST( 99 AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4733
SELECT ALL + COUNT ( * ) col2 FROM tab1 WHERE NOT + col0 - + 40 + + CAST ( NULL AS INTEGER ) + + 68 / - CAST ( 99 AS INTEGER ) IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4734
SELECT + 78 + - + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4734
SELECT + 78 + - + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 - + col1 * 36 AS col1 FROM tab1 AS cor0
----
-1645
-175
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT ALL - SUM( - + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL - SUM ( - + col0 ) FROM tab0 AS cor0
----
199

query I rowsort
SELECT col1 * col0 * - 30 FROM tab0 AS cor0
----
-2910
-36450
-54810

query II rowsort
SELECT DISTINCT - col1, - col1 FROM tab2 cor0
----
-51
-51
-67
-67
-77
-77

query II rowsort
SELECT DISTINCT - 38 AS col2, - 26 FROM tab2 WHERE - 77 + + + col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4740
SELECT - col0 DIV - 27 FROM tab0
----
0
3
3

skipif mysql # not compatible
query I rowsort label-4740
SELECT - col0 / - 27 FROM tab0
----
0
3
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4741
SELECT ALL + COUNT( - + ( + + CAST( - col1 AS DECIMAL ) ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4741
SELECT ALL + COUNT ( - + ( + + CAST ( - col1 AS REAL ) ) ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT ALL - 64 * COUNT( col2 ) AS col0 FROM tab0 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-4742
SELECT ALL - 64 * COUNT ( col2 ) AS col0 FROM tab0 AS cor0
----
-192

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 <> - 15
----

query I rowsort
SELECT ALL + col1 * 41 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT ALL + COUNT( * ) * + 55 FROM tab2 cor0
----
165

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL + COUNT ( * ) * + 55 FROM tab2 cor0
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4746
SELECT ALL col1 * + 20 - 32 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 + - col1 >= - col2 - - CAST( NULL AS SIGNED ) + - 99 + ( - - 18 )
----

skipif mysql # not compatible
query I rowsort label-4746
SELECT ALL col1 * + 20 - 32 AS col2 FROM tab1 AS cor0 WHERE NOT - col2 + - col1 >= - col2 - - CAST ( NULL AS INTEGER ) + - 99 + ( - - 18 )
----

query I rowsort
SELECT DISTINCT - col1 + - 72 - + col0 - + + col1 * + col1 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1 * + + col1 + + col1 AS col2, 1 FROM tab1 cor0
----
210
1
2256
1
30
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4749
SELECT col0 * + CAST( NULL AS SIGNED ) * col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4749
SELECT col0 * + CAST ( NULL AS INTEGER ) * col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 13 - - col1 + - - 90 * + + col2 FROM tab2 WHERE NOT NULL > + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4751
SELECT COUNT( * ) * + + 77 AS col2 FROM tab1
----
231

skipif mysql # not compatible
query I rowsort label-4751
SELECT COUNT ( * ) * + + 77 AS col2 FROM tab1
----
231

query I rowsort
SELECT - + col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4753
SELECT DISTINCT COUNT( col0 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4753
SELECT DISTINCT COUNT ( col0 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4754
SELECT COUNT( * ) * 31 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-4754
SELECT COUNT ( * ) * 31 FROM tab2
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 * ( + col0 ) * - col1 * col0 + - 33 col0 FROM tab1
----
-3395783
-3422949
-36585491

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 42 col0, col1 AS col1 FROM tab2
----
-42
51
-42
67
-42
77

query I rowsort
SELECT DISTINCT + col1 + + col0 AS col2 FROM tab1 cor0
----
138
65
90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - + ( 28 ) IS NULL
----

query I rowsort
SELECT ALL 21 * col0 * - col0 + + + col0 FROM tab2 AS cor0
----
-118050
-44390
-85952

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 64 + + 81 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT ALL + 6 * + COUNT( ALL + col0 ) AS col0 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL + 6 * + COUNT ( ALL + col0 ) AS col0 FROM tab1
----
18

query I rowsort
SELECT DISTINCT - 80 + 51 AS col1 FROM tab2
----
-29

query III rowsort
SELECT * FROM tab0 WHERE NOT 19 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * - 9 AS col2 FROM tab1 WHERE ( + 81 + + 44 ) IS NOT NULL
----
-126
-423
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4765
SELECT + CAST( - CAST( - COUNT( * ) AS SIGNED ) AS SIGNED ) * MIN( DISTINCT 44 ) AS col2 FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-4765
SELECT + CAST ( - CAST ( - COUNT ( * ) AS INTEGER ) AS INTEGER ) * MIN ( DISTINCT 44 ) AS col2 FROM tab0
----
132

query III rowsort
SELECT * FROM tab2 WHERE ( - 15 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE ( - col1 + col2 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4768
SELECT - 35 * - CAST( NULL AS DECIMAL ) + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4768
SELECT - 35 * - CAST ( NULL AS REAL ) + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT 49 * - COUNT( * ) AS col2 FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-4769
SELECT 49 * - COUNT ( * ) AS col2 FROM tab2
----
-147

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( 19 ) AND col1 * 10 + 61
----

query I rowsort
SELECT DISTINCT col0 * 34 FROM tab1
----
1734
2890
3094

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT 55 * COUNT( * ) FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-4772
SELECT 55 * COUNT ( * ) FROM tab1
----
165

query I rowsort
SELECT DISTINCT 68 + col0 AS col2 FROM tab0
----
155
165
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT DISTINCT COUNT( * ) col2 FROM tab1 WHERE NOT NULL NOT BETWEEN ( - ( + 86 ) ) AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4774
SELECT DISTINCT COUNT ( * ) col2 FROM tab1 WHERE NOT NULL NOT BETWEEN ( - ( + 86 ) ) AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 59 * - 6 col1 FROM tab0 WHERE NOT + col0 NOT BETWEEN - col1 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) <> ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NOT NULL < col2
----

query I rowsort
SELECT ( 0 ) FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4779
SELECT + col0 + CAST( NULL AS SIGNED ) * + 34 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4779
SELECT + col0 + CAST ( NULL AS INTEGER ) * + 34 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 * + ( - ( col2 ) * - 73 ) AS col2 FROM tab2 WHERE NOT col1 >= ( NULL )
----

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT col0 NOT IN ( col0 )
----
46
64
75

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - 63 AND ( col0 * 20 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4783
SELECT 90 DIV - ( 63 ) AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4783
SELECT 90 / - ( 63 ) AS col0 FROM tab0
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4784
SELECT + CAST( NULL AS SIGNED ) + MIN( DISTINCT col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4784
SELECT + CAST ( NULL AS INTEGER ) + MIN ( DISTINCT col1 ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 73 * col1 - 20 NOT BETWEEN ( - 33 * 95 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4786
SELECT ALL + 0 DIV + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4786
SELECT ALL + 0 / + col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * col2 NOT BETWEEN col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT DISTINCT 82 * + 12 - COUNT( * ) * - 60 AS col2 FROM tab1 AS cor0
----
1164

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT 82 * + 12 - COUNT ( * ) * - 60 AS col2 FROM tab1 AS cor0
----
1164

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - 15 col0 FROM tab2 cor0
----
38
55
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT ALL SUM( - col0 ) AS col2 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL SUM ( - col0 ) AS col2 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 11 BETWEEN NULL AND + col0
----

query I rowsort
SELECT DISTINCT 7 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
7

query I rowsort
SELECT - ( + 80 ) FROM tab0 AS cor0
----
-80
-80
-80

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col0 - col2 IS NOT NULL
----

query I rowsort
SELECT ALL - ( + 34 ) FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= ( - 27 - 29 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT - COUNT( + 85 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4798
SELECT - COUNT ( + 85 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2
----
-9

query I rowsort
SELECT + - 70 AS col2 FROM tab2 AS cor0
----
-70
-70
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT DISTINCT + MIN( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4800
SELECT DISTINCT + MIN ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 8 col0 FROM tab1 AS cor0
----
408
680
728

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT DISTINCT + 80 + COUNT( - col1 ) AS col0 FROM tab1 AS cor0 WHERE NULL = NULL
----
80

skipif mysql # not compatible
query I rowsort label-4802
SELECT DISTINCT + 80 + COUNT ( - col1 ) AS col0 FROM tab1 AS cor0 WHERE NULL = NULL
----
80

query I rowsort
SELECT ALL + ( + col2 ) * col0 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT + 37 * - col0 AS col0 FROM tab0 AS cor0
----
-3219
-3589
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT - COUNT( * ) * ( + COUNT( * ) ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4805
SELECT - COUNT ( * ) * ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT - col1 * col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1344
-295
-3196

query I rowsort
SELECT col2 * + 65 * + col1 FROM tab2
----
200200
252590
76245

onlyif mysql # aggregate syntax: 
query I rowsort label-4808
SELECT DISTINCT COUNT( * ) + + - 30 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-4808
SELECT DISTINCT COUNT ( * ) + + - 30 FROM tab1
----
-27

query I rowsort
SELECT + 92 * - - col0 * + col2 FROM tab1
----
450432
461380
569296

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + 3 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4812
SELECT DISTINCT CAST( NULL AS SIGNED ) * + MIN( DISTINCT 44 ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4812
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + MIN ( DISTINCT 44 ) col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 > - 40
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4814
SELECT ALL + CAST( NULL AS DECIMAL ) * ( 26 ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL + CAST ( NULL AS REAL ) * ( 26 ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4815
SELECT ALL - COUNT( * ) DIV - + COUNT( * ) + 23 FROM tab0 cor0
----
24

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL - COUNT ( * ) / - + COUNT ( * ) + 23 FROM tab0 cor0
----
24

query I rowsort
SELECT DISTINCT + + 35 AS col0 FROM tab0 AS cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4817
SELECT col1 + + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4817
SELECT col1 + + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4818
SELECT CAST( - col0 AS SIGNED ) * ( + col0 * + col1 + + 95 DIV + col1 ) + col1 FROM tab1 AS cor0 WHERE ( ( + col0 ) ) IS NOT NULL
----
-36706
-37735
-389342

skipif mysql # not compatible
query I rowsort label-4818
SELECT CAST ( - col0 AS INTEGER ) * ( + col0 * + col1 + + 95 / + col1 ) + col1 FROM tab1 AS cor0 WHERE ( ( + col0 ) ) IS NOT NULL
----
-36706
-37735
-389342

onlyif mysql # aggregate syntax: 
query I rowsort label-4819
SELECT - COUNT( * ) + 71 + COUNT( * ) FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-4819
SELECT - COUNT ( * ) + 71 + COUNT ( * ) FROM tab1 AS cor0
----
71

query I rowsort
SELECT ALL 50 + + col2 + col1 AS col2 FROM tab1 AS cor0
----
114
160
165

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 16 / col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + - 37 + - col2 ) IS NULL
----

query I rowsort
SELECT 1 * col2 AS col2 FROM tab2
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4824
SELECT + + col2 DIV 48 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4824
SELECT + + col2 / 48 FROM tab1 AS cor0
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 8 col1 FROM tab1 AS cor0 WHERE 27 > ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4826
SELECT - + col2 DIV col0 DIV + + col1 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4826
SELECT - + col2 / col0 / + + col1 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT 14 * - + col1 + 32 FROM tab2 AS cor0
----
-1046
-682
-906

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4828
SELECT DISTINCT 81 / - CAST( NULL AS SIGNED ) * - 7 + - col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4828
SELECT DISTINCT 81 / - CAST ( NULL AS INTEGER ) * - 7 + - col0 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 11 * + 28 FROM tab1 cor0 WHERE NOT col1 NOT IN ( - 34 )
----

query I rowsort
SELECT - col1 - - - ( col2 ) - + col0 AS col0 FROM tab2 AS cor0
----
-120
-181
-200

query I rowsort
SELECT - col1 + col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4832
SELECT COUNT( * ) - - COUNT( * ) + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4832
SELECT COUNT ( * ) - - COUNT ( * ) + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( - 76 ) AS col0 FROM tab2 AS cor0
----
76
76
76

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 99 * + 68 / col2 < ( ( col2 ) + col1 )
----
51
14
96
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4835
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE 84 * + col1 / + ( col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4835
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE 84 * + col1 / + ( col2 ) IS NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE + 33 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4837
SELECT col2 + CAST( + col0 AS SIGNED ) FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-4837
SELECT col2 + CAST ( + col0 AS INTEGER ) FROM tab2
----
104
133
69

query I rowsort
SELECT + col1 * - 17 FROM tab2 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT col0 + 45 * col1 AS col1 FROM tab0
----
1032
142
3660

query I rowsort
SELECT DISTINCT + ( col1 ) - + 56 FROM tab2
----
-5
11
21

query I rowsort
SELECT - col2 FROM tab2 WHERE 74 * 50 + col2 < NULL
----

query I rowsort
SELECT + col2 + + 24 AS col1 FROM tab2
----
47
64
82

query III rowsort
SELECT * FROM tab1 WHERE - col0 / col1 + - 49 * + col1 + 37 * 51 NOT BETWEEN NULL AND ( + 28 + - col2 )
----
51
14
96
85
5
59

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT - 63 > + 53
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT + COUNT( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4845
SELECT + COUNT ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT DISTINCT + ( + SUM( + + 90 ) ) col0 FROM tab1 cor0
----
270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4846
SELECT DISTINCT + ( + SUM ( + + 90 ) ) col0 FROM tab1 cor0
----
270

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col1 + - 33 + + 90 ) > col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 93 * + 33 + + + col1 < NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 86 * + col0 <> ( 92 * col0 )
----

query I rowsort
SELECT DISTINCT + - ( ( ( + col2 ) ) ) * - col1 + ( + col1 ) AS col2 FROM tab2 cor0
----
1224
3157
3953

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( + 34, + col1 * + + col1 )
----

query I rowsort
SELECT DISTINCT - col0 * - col0 * ( - - col0 ) + col1 FROM tab2 AS cor0
----
262221
421942
97387

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT DISTINCT - MAX( - col2 ) * + 37 + - + COUNT( * ) FROM tab0 AS cor0
----
367

skipif mysql # not compatible
query I rowsort label-4853
SELECT DISTINCT - MAX ( - col2 ) * + 37 + - + COUNT ( * ) FROM tab0 AS cor0
----
367

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4854
SELECT DISTINCT - 17 + + - CAST( NULL AS SIGNED ) + + - COUNT( * ) / - - 7 * COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4854
SELECT DISTINCT - 17 + + - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) / - - 7 * COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4855
SELECT ALL + col2 * + CAST( NULL AS SIGNED ) + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL + col2 * + CAST ( NULL AS INTEGER ) + + col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - ( + 6 ) AS col0, - col2 AS col2 FROM tab1
----
-6
-59
-6
-68
-6
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4857
SELECT DISTINCT + 43, + ( - - 57 ) * 88 * - - col0 + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
43
NULL

skipif mysql # not compatible
query II rowsort label-4857
SELECT DISTINCT + 43, + ( - - 57 ) * 88 * - - col0 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
43
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= col2 * + col2 + col2
----

query I rowsort
SELECT + ( col2 ) * col1 AS col1 FROM tab1
----
1344
295
3196

query I rowsort
SELECT + 77 * + + 87 FROM tab1
----
6699
6699
6699

query I rowsort
SELECT 96 * - 48 + - col2 + 32 + - col1 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4862
SELECT DISTINCT - CAST( ( + col1 ) AS SIGNED ) + + col1 FROM tab1 WHERE NOT - col0 + - - ( - col2 ) > col0
----
0

skipif mysql # not compatible
query I rowsort label-4862
SELECT DISTINCT - CAST ( ( + col1 ) AS INTEGER ) + + col1 FROM tab1 WHERE NOT - col0 + - - ( - col2 ) > col0
----
0

query II rowsort
SELECT DISTINCT col1, 40 * + + col0 FROM tab2 cor0
----
51
1840
67
3000
77
2560

query I rowsort
SELECT DISTINCT + col2 * - - 49 AS col1 FROM tab0 AS cor0
----
2303
4851
490

query I rowsort
SELECT - 77 + 90 * col1 AS col2 FROM tab0 AS cor0 WHERE + col0 * col0 + col1 * + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + 80 AS col0 FROM tab1 AS cor0 WHERE col2 NOT BETWEEN - 31 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4867
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4867
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT ALL - COUNT( * ) + + 83 col0 FROM tab1
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4868
SELECT ALL - COUNT ( * ) + + 83 col0 FROM tab1
----
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + - col2 ) - - ( - + 96 ) + - col2 + - col0 col0 FROM tab1
----
-299
-323
-339

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - - ( col0 ) col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT - 40 AS col0 FROM tab2 cor0 WHERE NULL NOT BETWEEN + 54 AND col1 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4872
SELECT - ( + ( COUNT( ALL - col1 ) ) ) * - 82 AS col2 FROM tab0 AS cor0 WHERE - 61 + + ( + col1 ) + col2 IS NOT NULL
----
246

skipif mysql # not compatible
query I rowsort label-4872
SELECT - ( + ( COUNT ( ALL - col1 ) ) ) * - 82 AS col2 FROM tab0 AS cor0 WHERE - 61 + + ( + col1 ) + col2 IS NOT NULL
----
246

query I rowsort
SELECT ALL 14 * - 69 + - - 19 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT + 69 * - col0 AS col1 FROM tab2 AS cor0
----
-3174
-4416
-5175

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4875
SELECT DISTINCT col1 - - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4875
SELECT DISTINCT col1 - - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4876
SELECT - col1 DIV 83 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4876
SELECT - col1 / 83 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4877
SELECT + 80 DIV - col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4877
SELECT + 80 / - col0 FROM tab2
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4878
SELECT DISTINCT * FROM tab0 WHERE col1 / CAST( NULL AS SIGNED ) BETWEEN NULL AND CAST( NULL AS SIGNED ) / + + col2
----

skipif mysql # not compatible
query III rowsort label-4878
SELECT DISTINCT * FROM tab0 WHERE col1 / CAST ( NULL AS INTEGER ) BETWEEN NULL AND CAST ( NULL AS INTEGER ) / + + col2
----

query II rowsort
SELECT 64 AS col2, col2 - 99 + - + 75 FROM tab0
----
64
-127
64
-164
64
-75

query I rowsort
SELECT ALL col0 * - 44 AS col1 FROM tab2
----
-2024
-2816
-3300

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + ( + 28 ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT COUNT( * ) * + COUNT( * ) AS col2 FROM tab1 WHERE NOT 77 + - - 57 + + col0 / col2 IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-4882
SELECT COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1 WHERE NOT 77 + - - 57 + + col0 / col2 IS NULL
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4883
SELECT DISTINCT col1 DIV - 54 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4883
SELECT DISTINCT col1 / - 54 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4884
SELECT DISTINCT col1 DIV - - col1 + - col0 FROM tab1 AS cor0
----
-50
-84
-90

skipif mysql # not compatible
query I rowsort label-4884
SELECT DISTINCT col1 / - - col1 + - col0 FROM tab1 AS cor0
----
-50
-84
-90

query I rowsort
SELECT DISTINCT - 32 FROM tab1 AS cor0 WHERE NOT 95 + + + col1 IN ( - 50 )
----
-32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4886
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 14 NOT BETWEEN NULL AND - - CAST( NULL AS SIGNED ) + col0
----

skipif mysql # not compatible
query III rowsort label-4886
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 14 NOT BETWEEN NULL AND - - CAST ( NULL AS INTEGER ) + col0
----

query I rowsort
SELECT 11 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT DISTINCT - 99 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4889
SELECT ALL ( col0 ) * + col2 + + ( - - col1 ) + - 12 DIV + col2 FROM tab0 AS cor0
----
786
890
9604

skipif mysql # not compatible
query I rowsort label-4889
SELECT ALL ( col0 ) * + col2 + + ( - - col1 ) + - 12 / + col2 FROM tab0 AS cor0
----
786
890
9604

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 85 ) col2 FROM tab0 cor0
----
-85
-85
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4891
SELECT - - ( + ( + CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4891
SELECT - - ( + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - ( + + col1 ) AS col1 FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT ALL + col2 + - 52, + col1 FROM tab1 AS cor0
----
16
47
44
14
7
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4894
SELECT ALL col2 * + col0 * - col0 + + CAST( - + col0 AS SIGNED ) col2, - col2 col1 FROM tab0
----
-10590
-47
-75777
-10
-931588
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4894
SELECT ALL col2 * + col0 * - col0 + + CAST ( - + col0 AS INTEGER ) col2, - col2 col1 FROM tab0
----
-10590
-47
-75777
-10
-931588
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4895
SELECT * FROM tab0 WHERE NULL < ( + + col1 + - CAST( NULL AS SIGNED ) * - col2 + + + 50 + + - 24 )
----

skipif mysql # not compatible
query III rowsort label-4895
SELECT * FROM tab0 WHERE NULL < ( + + col1 + - CAST ( NULL AS INTEGER ) * - col2 + + + 50 + + - 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT DISTINCT + MAX( ALL + 81 ) + - - COUNT( ALL 58 ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT + MAX ( ALL + 81 ) + - - COUNT ( ALL 58 ) FROM tab0
----
84

query I rowsort
SELECT DISTINCT col1 + + + col1 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT DISTINCT + COUNT( + + 43 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT + COUNT ( + + 43 ) AS col1 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 81 * 22 * - col1 + col2 + - - 97 * 99 + + 28 < + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT - 96 + 43 * + MAX( + col0 ) AS col2 FROM tab1 AS cor0
----
3817

skipif mysql # not compatible
query I rowsort label-4900
SELECT - 96 + 43 * + MAX ( + col0 ) AS col2 FROM tab1 AS cor0
----
3817

onlyif mysql # aggregate syntax: 
query I rowsort label-4901
SELECT + COUNT( DISTINCT - - col1 ) + 75 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4901
SELECT + COUNT ( DISTINCT - - col1 ) + 75 FROM tab0 AS cor0
----
78

query I rowsort
SELECT - col0 * + 76 + col2 FROM tab2 AS cor0
----
-3473
-4824
-5642

query I rowsort
SELECT ALL 85 * col2 + + - 13 * 98 + - ( - col2 ) AS col1 FROM tab0 AS cor0
----
-414
2768
7240

query I rowsort
SELECT DISTINCT + col0 - 95 - + 57 AS col2 FROM tab1 AS cor0
----
-101
-61
-67

query I rowsort
SELECT + 32 * - 49 - + 32 FROM tab1 AS cor0
----
-1600
-1600
-1600

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= + col1 * + 96
----

query II rowsort
SELECT ALL - 94 AS col0, + 14 * - 75 AS col1 FROM tab2 cor0
----
-94
-1050
-94
-1050
-94
-1050

query I rowsort
SELECT ALL col2 * - - col1 * col2 AS col1 FROM tab1 AS cor0
----
129024
17405
217328

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4909
SELECT DISTINCT - CAST( - - col2 AS SIGNED ), - col1 - - 97 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----

skipif mysql # not compatible
query II rowsort label-4909
SELECT DISTINCT - CAST ( - - col2 AS INTEGER ), - col1 - - 97 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4910
SELECT ALL + 44, ( + + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
44
3

skipif mysql # not compatible
query II rowsort label-4910
SELECT ALL + 44, ( + + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
44
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT DISTINCT + 41 * - + COUNT( * ) * 45 AS col1 FROM tab0
----
-5535

skipif mysql # not compatible
query I rowsort label-4911
SELECT DISTINCT + 41 * - + COUNT ( * ) * 45 AS col1 FROM tab0
----
-5535

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = - col1 * 43 + - col0
----

query II rowsort
SELECT ALL col1 * 24 AS col2, - ( - 64 ) AS col1 FROM tab2
----
1224
64
1608
64
1848
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + col2 * - 68 col2 FROM tab0
----
-150212
-666468
-6800

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT MIN( - ( + + col2 ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4915
SELECT MIN ( - ( + + col2 ) ) FROM tab2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4916
SELECT * FROM tab1 WHERE NOT ( NOT - ( - CAST( NULL AS SIGNED ) ) * col2 * - 27 * + - ( + col1 ) - - col2 IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-4916
SELECT * FROM tab1 WHERE NOT ( NOT - ( - CAST ( NULL AS INTEGER ) ) * col2 * - 27 * + - ( + col1 ) - - col2 IS NOT NULL )
----

query I rowsort
SELECT ALL 57 * col1 AS col0 FROM tab0
----
1197
4617
57

query I rowsort
SELECT DISTINCT col0 * + 35 FROM tab0 AS cor0
----
3045
3395
525

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = - ( + 79 )
----

query I rowsort
SELECT - 2 * - + col2 + + col1 + col2 + - - col1 FROM tab1 WHERE NOT col0 BETWEEN + ( + - col0 ) AND - ( col1 )
----
187
298
316

onlyif mysql # DIV for integer division: 
query I rowsort label-4921
SELECT + col2 DIV - 45 col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4921
SELECT + col2 / - 45 col1 FROM tab2
----
-1
0
0

query I rowsort
SELECT DISTINCT - 57 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-4923
SELECT - + col2 DIV - + col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4923
SELECT - + col2 / - + col2 FROM tab1 AS cor0
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - 58 ) col1 FROM tab2 cor0
----
58

query I rowsort
SELECT DISTINCT + 8 * 92 + - ( - + col1 ) FROM tab1 AS cor0
----
741
750
783

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 98 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 98 * - + col0 - + col0 col0 FROM tab2 cor0
----
4462
6208
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-4929
SELECT ( - + MIN( - + col0 ) ) FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
91

skipif mysql # not compatible
query I rowsort label-4929
SELECT ( - + MIN ( - + col0 ) ) FROM tab1 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
91

query I rowsort
SELECT - 4 + - + ( - col1 ) + - - col0 FROM tab0 cor0
----
104
92
94

query II rowsort
SELECT DISTINCT + 23 AS col1, - col0 AS col0 FROM tab1 AS cor0
----
23
-51
23
-85
23
-91

query I rowsort
SELECT - col2 + - col2 - col2 * col1 AS col2 FROM tab1 AS cor0 WHERE col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4933
SELECT ALL + SUM( ALL - col1 ) AS col0 FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4933
SELECT ALL + SUM ( ALL - col1 ) AS col0 FROM tab0 cor0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4934
SELECT - + CAST( + 50 AS SIGNED ) - - col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - + 83 AND + + col0
----

skipif mysql # not compatible
query I rowsort label-4934
SELECT - + CAST ( + 50 AS INTEGER ) - - col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN - + 83 AND + + col0
----

query II rowsort
SELECT DISTINCT + 42 + + 69 + - col2 + col0 AS col2, + col1 FROM tab0 AS cor0
----
109
1
188
21
79
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4936
SELECT col1 + + CAST( - col1 AS SIGNED ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4936
SELECT col1 + + CAST ( - col1 AS INTEGER ) FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col0 - - ( - col0 ) col1 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-4938
SELECT DISTINCT - COUNT( * ) AS col2, COUNT( * ) AS col1 FROM tab1 WHERE NOT + - col0 < + - 4
----
0
0

skipif mysql # not compatible
query II rowsort label-4938
SELECT DISTINCT - COUNT ( * ) AS col2, COUNT ( * ) AS col1 FROM tab1 WHERE NOT + - col0 < + - 4
----
0
0

query I rowsort
SELECT ALL 3 + col2 * + col2 - - ( ( - + col2 ) ) FROM tab1
----
3425
4559
9123

query I rowsort
SELECT DISTINCT + 69 AS col1 FROM tab1 WHERE NULL = - col2
----

query I rowsort
SELECT ALL - ( - col0 ) AS col0 FROM tab0 WHERE NOT + 28 - - 58 > - 1
----

query III rowsort
SELECT * FROM tab0 WHERE ( + ( + + 74 ) ) IS NULL
----

query I rowsort
SELECT ALL + + 67 + ( + col2 ) * + + 70 + col0 FROM tab0 AS cor0
----
3372
7094
854

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT 76 * COUNT( * ) + + + 22 + ( 71 ) + + 46 + + 25 FROM tab1
----
392

skipif mysql # not compatible
query I rowsort label-4944
SELECT 76 * COUNT ( * ) + + + 22 + ( 71 ) + + 46 + + 25 FROM tab1
----
392

onlyif mysql # aggregate syntax: 
query II rowsort label-4945
SELECT ALL COUNT( * ) AS col1, 62 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0
62

skipif mysql # not compatible
query II rowsort label-4945
SELECT ALL COUNT ( * ) AS col1, 62 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4946
SELECT - ( 70 ) + + + ( - - ( - + COUNT( * ) ) ) AS col1, - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
-73
NULL

skipif mysql # not compatible
query II rowsort label-4946
SELECT - ( 70 ) + + + ( - - ( - + COUNT ( * ) ) ) AS col1, - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
-73
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT ALL - COUNT( * ) - 57 AS col0 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-4947
SELECT ALL - COUNT ( * ) - 57 AS col0 FROM tab0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT 37 * + COUNT( * ) + + 51 FROM tab2, tab2 cor0
----
384

skipif mysql # not compatible
query I rowsort label-4948
SELECT 37 * + COUNT ( * ) + + 51 FROM tab2, tab2 cor0
----
384

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 * col2 = NULL
----

query I rowsort
SELECT + - col0 * ( + 28 ) + - col1 AS col0 FROM tab0 AS cor0
----
-2457
-2717
-501

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT ALL + + MAX( ALL col1 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-4951
SELECT ALL + + MAX ( ALL col1 ) FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4952
SELECT - MAX( CAST( + col2 AS SIGNED ) ) AS col2 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4952
SELECT - MAX ( CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab2 cor0
----
-58

query I rowsort
SELECT ALL - + col0 - + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( - col2 ) - + col1 IS NULL
----
-102
-170
-182

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4954
SELECT * FROM tab0 cor0 WHERE NOT - 51 * + col2 BETWEEN + - 96 AND 12 + CAST( - - col2 AS DECIMAL ) * - + 42
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4954
SELECT * FROM tab0 cor0 WHERE NOT - 51 * + col2 BETWEEN + - 96 AND 12 + CAST ( - - col2 AS REAL ) * - + 42
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 * + - 4 * + 97 FROM tab1 cor0 WHERE NOT 62 = NULL
----

query I rowsort
SELECT DISTINCT + - 3 * - + ( - + 99 ) * + col0 + - col2 * col2 FROM tab2 cor0 WHERE NOT - col2 / + ( 38 ) * col2 + + + ( - 95 ) IS NULL
----
-14191
-20608
-25639

query I rowsort
SELECT DISTINCT 99 * + col1 * 59 + + col1 * - - col0 + - + col1 + - - col0 + + - col0 * - 65 AS col1 FROM tab2 AS cor0
----
303222
401255
458832

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT + COUNT( DISTINCT col2 ) * - 48 FROM tab1 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-4958
SELECT + COUNT ( DISTINCT col2 ) * - 48 FROM tab1 AS cor0
----
-144

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * + col0 BETWEEN NULL AND + ( + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 45 <= ( + col2 ) / - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT DISTINCT + 98 * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT + 98 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-4962
SELECT + 9 * + COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4962
SELECT + 9 * + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-81

query III rowsort
SELECT * FROM tab2 WHERE NOT - 27 BETWEEN NULL AND 22
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col1, + 11 AS col0 FROM tab1
----
14
11
47
11
5
11

onlyif mysql # aggregate syntax: 
query II rowsort label-4965
SELECT DISTINCT - 8, + SUM( col2 ) AS col1 FROM tab0
----
-8
156

skipif mysql # not compatible
query II rowsort label-4965
SELECT DISTINCT - 8, + SUM ( col2 ) AS col1 FROM tab0
----
-8
156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4966
SELECT ALL - 39 * COUNT( * ) DIV - + SUM( ALL - - 12 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4966
SELECT ALL - 39 * COUNT ( * ) / - + SUM ( ALL - - 12 ) FROM tab0
----
3

query II rowsort
SELECT ALL col0 AS col2, col0 AS col2 FROM tab2
----
46
46
64
64
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4968
SELECT DISTINCT + CAST( + 9 AS SIGNED ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4968
SELECT DISTINCT + CAST ( + 9 AS INTEGER ) FROM tab1
----
9

query I rowsort
SELECT ALL + 74 * - col1 AS col1 FROM tab0
----
-1554
-5994
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-4970
SELECT 23 AS col0, COUNT( * ) AS col1 FROM tab1 AS cor0
----
23
3

skipif mysql # not compatible
query II rowsort label-4970
SELECT 23 AS col0, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
23
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT MIN( ALL - ( + - col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4971
SELECT MIN ( ALL - ( + - col0 ) ) FROM tab2 AS cor0
----
46

query II rowsort
SELECT + 71, ( - col0 ) + 81 AS col0 FROM tab0 AS cor0
----
71
-16
71
-6
71
66

query I rowsort
SELECT + 45 * + + 15 AS col1 FROM tab1 cor0
----
675
675
675

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 > + col0 + + col0
----
-10
-47
-99

query I rowsort
SELECT + col1 * - - col1 AS col2 FROM tab2 AS cor0
----
2601
4489
5929

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( + col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4977
SELECT col2 * - col2, - col1 DIV - col1 col1 FROM tab2
----
-1600
1
-3364
1
-529
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4977
SELECT col2 * - col2, - col1 / - col1 col1 FROM tab2
----
-1600
1
-3364
1
-529
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT + ( - MIN( + col2 ) ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4978
SELECT + ( - MIN ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * col1 AS col1, col0 col1 FROM tab1 AS cor0
----
196
51
2209
91
25
85

query I rowsort
SELECT - 10 * - col1 AS col0 FROM tab0 AS cor0
----
10
210
810

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4982
SELECT - - col0 DIV col0 + + col0 AS col0, + col2 FROM tab2 cor0
----
47
23
65
40
76
58

skipif mysql # not compatible
query II rowsort label-4982
SELECT - - col0 / col0 + + col0 AS col0, + col2 FROM tab2 cor0
----
47
23
65
40
76
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + + ( + 3 ) NOT BETWEEN - col1 * + - 28 + - col1 / col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - col0 * - 45 FROM tab0 AS cor0
----
3915
4365
675

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col2 + - + col1 IS NOT NULL
----

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE col2 * - - 0 IS NULL
----

query I rowsort
SELECT DISTINCT + + 67 AS col1 FROM tab0 WHERE col0 + col2 - - + col0 IS NOT NULL
----
67

query I rowsort
SELECT DISTINCT - col1 * ( col0 ) - + 8 AS col2 FROM tab1
----
-4285
-433
-722

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4989
SELECT DISTINCT - CAST( + ( + col2 ) AS SIGNED ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4989
SELECT DISTINCT - CAST ( + ( + col2 ) AS INTEGER ) FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4990
SELECT - 45 + ( - CAST( + col0 AS SIGNED ) ) FROM tab1
----
-130
-136
-96

skipif mysql # not compatible
query I rowsort label-4990
SELECT - 45 + ( - CAST ( + col0 AS INTEGER ) ) FROM tab1
----
-130
-136
-96

query II rowsort
SELECT DISTINCT col0 AS col0, col1 FROM tab0
----
15
81
87
21
97
1

query III rowsort
SELECT * FROM tab2 WHERE - - col1 * col1 / + 99 BETWEEN NULL AND + 60 * - + col1 + - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT DISTINCT - COUNT( * ) - + COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4993
SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ) FROM tab2 AS cor0
----
-6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4994
SELECT DISTINCT + + 74 DIV - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-4994
SELECT DISTINCT + + 74 / - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4995
SELECT CAST( + + col0 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4995
SELECT CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4996
SELECT DISTINCT col2 DIV + col0 col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4996
SELECT DISTINCT col2 / + col0 col0 FROM tab1 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT ALL - + ( - MAX( DISTINCT + col2 ) ) AS col1 FROM tab0 cor0
----
99

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL - + ( - MAX ( DISTINCT + col2 ) ) AS col1 FROM tab0 cor0
----
99

query III rowsort
SELECT * FROM tab1 WHERE col2 + + col2 + col2 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE - ( col2 ) <> + + col2
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5001
SELECT CAST( - 11 AS SIGNED ) AS col2, - col2 col2 FROM tab1 AS cor0
----
-11
-59
-11
-68
-11
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5001
SELECT CAST ( - 11 AS INTEGER ) AS col2, - col2 col2 FROM tab1 AS cor0
----
-11
-59
-11
-68
-11
-96

query I rowsort
SELECT DISTINCT + - 90 * + - col2 AS col2 FROM tab1 AS cor0
----
5310
6120
8640

query I rowsort
SELECT col0 * + col1 * - col0 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT + - MIN( + + col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5004
SELECT + - MIN ( + + col0 ) AS col2 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-5005
SELECT DISTINCT COUNT( * ) col0, - 21 AS col0 FROM tab2
----
3
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5005
SELECT DISTINCT COUNT ( * ) col0, - 21 AS col0 FROM tab2
----
3
-21

query III rowsort
SELECT * FROM tab1 WHERE NULL IS NOT NULL OR NOT NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5007
SELECT + COUNT( ALL - + CAST( col2 AS SIGNED ) ) * COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-5007
SELECT + COUNT ( ALL - + CAST ( col2 AS INTEGER ) ) * COUNT ( * ) AS col1 FROM tab1
----
9

query II rowsort
SELECT ALL - 18 AS col0, col2 FROM tab2
----
-18
23
-18
40
-18
58

query I rowsort
SELECT - ( - 11 ) * + - 79 FROM tab1
----
-869
-869
-869

query I rowsort
SELECT DISTINCT - 66 * + 77 AS col0 FROM tab2 AS cor0
----
-5082

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 * + - col2 * + col2 IS NOT NULL
----

query I rowsort
SELECT + col1 * 45 * - col2 FROM tab0
----
-171315
-4455
-9450

query I rowsort
SELECT - 24 * + + col1 FROM tab0
----
-1944
-24
-504

onlyif mysql # DIV for integer division: 
query II rowsort label-5014
SELECT DISTINCT col2 AS col2, 86 DIV col1 * col0 FROM tab1
----
59
1445
68
91
96
306

skipif mysql # not compatible
query II rowsort label-5014
SELECT DISTINCT col2 AS col2, 86 / col1 * col0 FROM tab1
----
59
1445
68
91
96
306

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL IS NOT NULL )
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT ALL + col2 * ( - - 5 ) FROM tab2 AS cor0
----
115
200
290

query I rowsort
SELECT DISTINCT - col0 + ( - col2 ) * - 14 AS col0 FROM tab1 cor0
----
1293
741
861

query I rowsort
SELECT ALL + - 49 + + + col0 FROM tab0 AS cor0
----
-34
38
48

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * 71 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5020
SELECT DISTINCT + ( CAST( + col0 AS SIGNED ) ) DIV col1 DIV 53 AS col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5020
SELECT DISTINCT + ( CAST ( + col0 AS INTEGER ) ) / col1 / 53 AS col2 FROM tab0 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT MAX( ALL + 5 ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5021
SELECT MAX ( ALL + 5 ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 + col2 col1 FROM tab2 AS cor0
----
113
131
96

query I rowsort
SELECT col0 * col0 * - col1 AS col1 FROM tab1 AS cor0
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5024
SELECT ALL COUNT( * ) * - MIN( ALL - - 72 ) + + + 78 DIV - MIN( - col0 ) FROM tab2
----
-215

skipif mysql # not compatible
query I rowsort label-5024
SELECT ALL COUNT ( * ) * - MIN ( ALL - - 72 ) + + + 78 / - MIN ( - col0 ) FROM tab2
----
-215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5025
SELECT DISTINCT + 7 - COUNT( DISTINCT col2 ) + + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT DISTINCT + 7 - COUNT ( DISTINCT col2 ) + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 60 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5027
SELECT ALL + col1 * CAST( NULL AS SIGNED ) - + + col1 + - + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) - + + col1 + - + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5028
SELECT DISTINCT + COUNT( DISTINCT - + col0 ) AS col0, + COUNT( ALL + 44 ) + - COUNT( * ) FROM tab1
----
3
0

skipif mysql # not compatible
query II rowsort label-5028
SELECT DISTINCT + COUNT ( DISTINCT - + col0 ) AS col0, + COUNT ( ALL + 44 ) + - COUNT ( * ) FROM tab1
----
3
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + - - col0 > col1
----
15
81
47

query I rowsort
SELECT DISTINCT 41 * + col2 AS col1 FROM tab1
----
2419
2788
3936

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5031
SELECT COUNT( * ) + + + CAST( - + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-5031
SELECT COUNT ( * ) + + + CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 66 AS col0, + col1 col1 FROM tab1 AS cor0
----
66
14
66
47
66
5

query I rowsort
SELECT ALL + + col0 * + + 23 AS col0 FROM tab0 AS cor0
----
2001
2231
345

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5034
SELECT DISTINCT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5034
SELECT DISTINCT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT 7 <> - 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT + MAX( ALL - 74 ) FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-5036
SELECT + MAX ( ALL - 74 ) FROM tab1
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5037
SELECT DISTINCT ( + col1 ), + CAST( col2 AS SIGNED ) * 6 FROM tab0
----
1
594
21
60
81
282

skipif mysql # not compatible
query II rowsort label-5037
SELECT DISTINCT ( + col1 ), + CAST ( col2 AS INTEGER ) * 6 FROM tab0
----
1
594
21
60
81
282

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT 55 NOT IN ( col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5040
SELECT + 65 * col2 + - + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5040
SELECT + 65 * col2 + - + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col0 <> + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 34 + + + col0 FROM tab1
----
119
125
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5043
SELECT DISTINCT CAST( - col0 AS SIGNED ) + col1 AS col1 FROM tab1
----
-37
-44
-80

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT CAST ( - col0 AS INTEGER ) + col1 AS col1 FROM tab1
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT ALL - COUNT( * ) + - + 63 AS col0 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL - COUNT ( * ) + - + 63 AS col0 FROM tab0
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-5045
SELECT DISTINCT - COUNT( * ) * + 90 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-5045
SELECT DISTINCT - COUNT ( * ) * + 90 FROM tab2
----
-270

query III rowsort
SELECT ALL * FROM tab2 WHERE 93 + - col2 IS NULL
----

query I rowsort
SELECT + 1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT col2 > col0 )
----
87
21
10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5049
SELECT - COUNT( * ) DIV COUNT( * ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5049
SELECT - COUNT ( * ) / COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT + 56 * + + COUNT( * ) FROM tab2 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-5050
SELECT + 56 * + + COUNT ( * ) FROM tab2 AS cor0
----
168

query I rowsort
SELECT DISTINCT + 34 + - 8 AS col0 FROM tab1 AS cor0
----
26

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 60 + - col0 + - col2 <= 98
----

query I rowsort
SELECT - ( col1 ) + - + 45 + + col0 + - 62 + + - 3 FROM tab1
----
-30
-66
-73

query I rowsort
SELECT - col1 + - 53 AS col0 FROM tab0
----
-134
-54
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - col2 col2 FROM tab0
----
-100
-128
-31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5056
SELECT CAST( MIN( DISTINCT - col0 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5056
SELECT CAST ( MIN ( DISTINCT - col0 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT - + ( + + 6 ) / - + col0 * - + 14 AS col2 FROM tab1 AS cor0 WHERE + ( - col2 ) * + + col1 - 8 + 85 + + col1 + - col0 * + + 51 >= NULL
----

query I rowsort
SELECT - + 54 FROM tab0 cor0
----
-54
-54
-54

query I rowsort
SELECT col1 * - - col2 + + col1 + + + col1 + + 49 * - col2 FROM tab0 AS cor0 WHERE NOT 76 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5060
SELECT col2 DIV - - col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5060
SELECT col2 / - - col2 FROM tab2
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5061
SELECT 75 DIV + col2 AS col2 FROM tab2
----
1
1
3

skipif mysql # not compatible
query I rowsort label-5061
SELECT 75 / + col2 AS col2 FROM tab2
----
1
1
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5062
SELECT DISTINCT CAST( NULL AS SIGNED ) / + + ( COUNT( - - 18 ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5062
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + + ( COUNT ( - - 18 ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5063
SELECT ALL 25 DIV - MIN( ALL + 78 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL 25 / - MIN ( ALL + 78 ) AS col2 FROM tab1
----
0

query I rowsort
SELECT col2 * - - col2 - - col1 - + col2 AS col2 FROM tab0 AS cor0
----
111
2243
9703

onlyif mysql # DIV for integer division: 
query I rowsort label-5065
SELECT DISTINCT - col2 DIV + - col0 - 36 + - col2 col2 FROM tab2 AS cor0
----
-59
-76
-94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5065
SELECT DISTINCT - col2 / + - col0 - 36 + - col2 col2 FROM tab2 AS cor0
----
-59
-76
-94

query I rowsort
SELECT ALL - col0 * + col0 * + 50 FROM tab0 AS cor0
----
-11250
-378450
-470450

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5067
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( + col1 AS SIGNED ) + - col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5067
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( + col1 AS INTEGER ) + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + ( 6 ) - + col0 AS col1 FROM tab1 WHERE NOT ( col0 ) + + + col0 + - + 77 * - 51 IS NULL
----
-45
-79
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-5069
SELECT ALL 37 + + COUNT( 74 ) col1, COUNT( * ) AS col1 FROM tab2
----
40
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5069
SELECT ALL 37 + + COUNT ( 74 ) col1, COUNT ( * ) AS col1 FROM tab2
----
40
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 82 IN ( - - 16 - - col1 + + 62 * + 23, col2 + - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-5071
SELECT DISTINCT + col2 DIV col2 * + 52, - 10 col1 FROM tab2
----
52
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5071
SELECT DISTINCT + col2 / col2 * + 52, - 10 col1 FROM tab2
----
52
-10

query I rowsort
SELECT DISTINCT col1 * + + 15 AS col1 FROM tab0
----
1215
15
315

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col0 + - 86 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5074
SELECT + col2 DIV - + 60 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5074
SELECT + col2 / - + 60 AS col0 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT + + col2 AS col0, col1 FROM tab2 WHERE NOT 43 <> col1 * + 75
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col0 / + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 99 col1 FROM tab2 AS cor0
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT ALL + + MIN( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL + + MIN ( DISTINCT + col2 ) AS col1 FROM tab0 AS cor0
----
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 / - 81 > col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5080
SELECT - COUNT( * ) col1, 94 AS col0 FROM tab2 AS cor0
----
-3
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5080
SELECT - COUNT ( * ) col1, 94 AS col0 FROM tab2 AS cor0
----
-3
94

onlyif mysql # DIV for integer division: 
query I rowsort label-5081
SELECT ALL col1 + + - col1 DIV + 2 AS col2 FROM tab1
----
24
3
7

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL col1 + + - col1 / + 2 AS col2 FROM tab1
----
24
3
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT DISTINCT COUNT( DISTINCT - col2 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5082
SELECT DISTINCT COUNT ( DISTINCT - col2 ) col2 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5083
SELECT - - 12 DIV col1 col0 FROM tab0 AS cor0
----
0
0
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5083
SELECT - - 12 / col1 col0 FROM tab0 AS cor0
----
0
0
12

query I rowsort
SELECT DISTINCT ( - 78 ) AS col1 FROM tab1 cor0
----
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, col1 col1 FROM tab1
----
-14
14
-47
47
-5
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( - 77 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT COUNT( * ) - + + ( + COUNT( * ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5087
SELECT COUNT ( * ) - + + ( + COUNT ( * ) ) AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5088
SELECT MIN( CAST( + - col1 AS SIGNED ) ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-47

skipif mysql # not compatible
query I rowsort label-5088
SELECT MIN ( CAST ( + - col1 AS INTEGER ) ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT ALL - MAX( - 22 ) FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-5089
SELECT ALL - MAX ( - 22 ) FROM tab2 AS cor0
----
22

query I rowsort
SELECT ALL - 37 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + col2 AND + ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5091
SELECT + 74 DIV - 79 AS col0 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5091
SELECT + 74 / - 79 AS col0 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT col1 * + col0 + - 33 AS col0 FROM tab1 AS cor0
----
392
4244
681

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT ALL COUNT( * ) * + 69 AS col1 FROM tab1
----
207

skipif mysql # not compatible
query I rowsort label-5093
SELECT ALL COUNT ( * ) * + 69 AS col1 FROM tab1
----
207

query I rowsort
SELECT + - 27 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

query II rowsort
SELECT - 27 AS col0, - 24 + + - 11 FROM tab1 cor0
----
-27
-35
-27
-35
-27
-35

query II rowsort
SELECT - - col0 AS col2, - col0 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 64 col1 FROM tab2 AS cor0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT 67 * 36 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
2412

onlyif mysql # aggregate syntax: 
query II rowsort label-5099
SELECT - - 65 AS col0, - MIN( - col2 ) AS col0 FROM tab1 AS cor0
----
65
96

skipif mysql # not compatible
query II rowsort label-5099
SELECT - - 65 AS col0, - MIN ( - col2 ) AS col0 FROM tab1 AS cor0
----
65
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5100
SELECT - - col1 * col1 DIV - col0 FROM tab0 AS cor0
----
-437
-5
0

skipif mysql # not compatible
query I rowsort label-5100
SELECT - - col1 * col1 / - col0 FROM tab0 AS cor0
----
-437
-5
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5101
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * col0 - CAST( + CAST( + - col0 AS SIGNED ) AS SIGNED ) + 67 * + + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5101
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * col0 - CAST ( + CAST ( + - col0 AS INTEGER ) AS INTEGER ) + 67 * + + col0 IS NULL
----

query II rowsort
SELECT + + col1, col1 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5103
SELECT SUM( - 75 ) AS col2 FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-5103
SELECT SUM ( - 75 ) AS col2 FROM tab2 AS cor0
----
-225

query I rowsort
SELECT DISTINCT + col2 * col2 AS col1 FROM tab1 WHERE NOT - col1 <= - col2 * + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT DISTINCT SUM( ALL + - col2 ) AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-5105
SELECT DISTINCT SUM ( ALL + - col2 ) AS col1 FROM tab0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5106
SELECT CAST( NULL AS SIGNED ) + 38 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5106
SELECT CAST ( NULL AS INTEGER ) + 38 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 25 / - col2 + + + col0 + - 26 <> - 14
----

query I rowsort
SELECT - 61 + + 78 + - col1 * col1 * - - 15 + - + 10 * + col1 FROM tab2 AS cor0
----
-39508
-67988
-89688

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5109
SELECT * FROM tab0 AS cor0 WHERE + col2 BETWEEN + col1 - - + CAST( NULL AS SIGNED ) AND + + col2
----

skipif mysql # not compatible
query III rowsort label-5109
SELECT * FROM tab0 AS cor0 WHERE + col2 BETWEEN + col1 - - + CAST ( NULL AS INTEGER ) AND + + col2
----

query I rowsort
SELECT DISTINCT - - 72 + - col1 AS col0 FROM tab2 AS cor0
----
-5
21
5

query III rowsort
SELECT * FROM tab0 WHERE + ( + 7 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5112
SELECT DISTINCT CAST( NULL AS SIGNED ) - - - col1 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - - col1 AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 49 - + 59 col1 FROM tab0 AS cor0
----
-108
-108
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT + + COUNT( * ) - + 52 FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-5114
SELECT + + COUNT ( * ) - + 52 FROM tab2 AS cor0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT - 96 + - COUNT( * ) + + MIN( ALL + + 88 ) FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-5115
SELECT - 96 + - COUNT ( * ) + + MIN ( ALL + + 88 ) FROM tab0 AS cor0
----
-11

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 50 + - 8 + + 31 * + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( 31, - 58, + 65 )
----

query I rowsort
SELECT ALL 77 * 40 + - + ( - 41 ) - 0 AS col2 FROM tab2 AS cor0
----
3121
3121
3121

query III rowsort
SELECT * FROM tab0 WHERE - + 42 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 29 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE + + col1 = - + col0 / - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5122
SELECT * FROM tab0 WHERE NOT CAST( + - col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5122
SELECT * FROM tab0 WHERE NOT CAST ( + - col2 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> + - col0 + col2
----

query II rowsort
SELECT + 81 * - - col2 AS col0, col2 FROM tab0
----
3807
47
8019
99
810
10

query I rowsort
SELECT DISTINCT - - 47 AS col0 FROM tab2 cor0
----
47

query I rowsort
SELECT - 13 * - - col2 * 48 + - + col1 * + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT col1 NOT BETWEEN + - 23 AND NULL
----

query I rowsort
SELECT ALL - 76 * - col0 * + col2 FROM tab0 AS cor0
----
53580
66120
729828

query I rowsort
SELECT ALL - 70 + - - 87 AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col2 ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + + 35 * 70 + + col0 AS col2 FROM tab1 AS cor0
----
2501
2535
2541

query I rowsort
SELECT ALL + - ( col2 ) + + col0 * - + col0 FROM tab2 AS cor0
----
-2139
-4136
-5683

query I rowsort
SELECT DISTINCT + 2 + ( - - col2 ) AS col0 FROM tab2 AS cor0
----
25
42
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT + 74 + + COUNT( * ) * 51 FROM tab0 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5133
SELECT + 74 + + COUNT ( * ) * 51 FROM tab0 AS cor0
----
227

query I rowsort
SELECT 90 + + 74 AS col0 FROM tab1 AS cor0
----
164
164
164

query III rowsort
SELECT * FROM tab0 WHERE + - col1 * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - col2, col1 AS col2 FROM tab2
----
-23
51
-40
77
-58
67

onlyif mysql # DIV for integer division: 
query II rowsort label-5137
SELECT ALL col1 col2, 26 DIV - col0 * - + col2 col0 FROM tab2
----
51
0
67
0
77
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5137
SELECT ALL col1 col2, 26 / - col0 * - + col2 col0 FROM tab2
----
51
0
67
0
77
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5138
SELECT - CAST( NULL AS SIGNED ) + + col0 * - col0 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5138
SELECT - CAST ( NULL AS INTEGER ) + + col0 * - col0 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col1 - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5140
SELECT COUNT( col0 ) * + 61 col0 FROM tab0
----
183

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5140
SELECT COUNT ( col0 ) * + 61 col0 FROM tab0
----
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) * col1 col0 FROM tab1
----
1344
295
3196

query I rowsort
SELECT DISTINCT - ( - col1 ) - - 33 FROM tab0 AS cor0
----
114
34
54

onlyif mysql # DIV for integer division: 
query I rowsort label-5143
SELECT + col0 DIV 2 + col0 AS col1 FROM tab2 AS cor0
----
112
69
96

skipif mysql # not compatible
query I rowsort label-5143
SELECT + col0 / 2 + col0 AS col1 FROM tab2 AS cor0
----
112
69
96

query I rowsort
SELECT - 74 * - col1 + + + col0 * col2 AS col0 FROM tab2 cor0
----
4832
8258
9308

query I rowsort
SELECT - col2 + + + 52 * - ( - col0 ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
2556
4361
4664

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5146
SELECT COUNT( * ) * + ( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5146
SELECT COUNT ( * ) * + ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 64 col1, - col1 * + 38 FROM tab2
----
64
-1938
64
-2546
64
-2926

query II rowsort
SELECT DISTINCT 98 AS col1, 54 + - col2 + + col2 FROM tab1
----
98
54

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 98 * + ( - 14 ) BETWEEN NULL AND col1
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 WHERE 4 < NULL
----

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT col1 * - - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 ) * + - 50 + col0 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 * + 73 FROM tab2 AS cor0
----
-3723
-4891
-5621

query I rowsort
SELECT DISTINCT ( - col2 ) + - - col0 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5155
SELECT + ( + CAST( COUNT( * ) AS SIGNED ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5155
SELECT + ( + CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ( - + 71 ) FROM tab2 AS cor0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT + 95 + + + col0 FROM tab2 AS cor0
----
141
159
170

query I rowsort
SELECT - 0 AS col1 FROM tab1 AS cor0 WHERE col0 * - col1 IS NULL
----

query I rowsort
SELECT ALL + + col0 + - - 91 FROM tab0 AS cor0
----
106
178
188

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT - SUM( DISTINCT col1 ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-5160
SELECT - SUM ( DISTINCT col1 ) AS col1 FROM tab0
----
-103

query I rowsort
SELECT DISTINCT - ( + 79 ) AS col0 FROM tab2
----
-79

query II rowsort
SELECT - col1 + - ( + 79 ) AS col2, - col0 AS col0 FROM tab0
----
-100
-87
-160
-15
-80
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5163
SELECT + MAX( ALL col1 ) + + + CAST( 71 AS SIGNED ) FROM tab1 AS cor0
----
118

skipif mysql # not compatible
query I rowsort label-5163
SELECT + MAX ( ALL col1 ) + + + CAST ( 71 AS INTEGER ) FROM tab1 AS cor0
----
118

query I rowsort
SELECT + col2 + + 70 AS col2 FROM tab1 AS cor0
----
129
138
166

onlyif mysql # aggregate syntax: 
query I rowsort label-5165
SELECT DISTINCT + - ( - SUM( - + col2 ) ) FROM tab2 cor0 WHERE NOT ( NOT NULL IS NULL )
----
-121

skipif mysql # not compatible
query I rowsort label-5165
SELECT DISTINCT + - ( - SUM ( - + col2 ) ) FROM tab2 cor0 WHERE NOT ( NOT NULL IS NULL )
----
-121

query I rowsort
SELECT ALL + + 87 FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT col1 - - 86 - - col1 AS col1 FROM tab2
----
188
220
240

query I rowsort
SELECT DISTINCT 49 - + col1 FROM tab0
----
-32
28
48

query I rowsort
SELECT DISTINCT 15 - + col2 FROM tab0
----
-32
-84
5

query II rowsort
SELECT 76, + col1 AS col1 FROM tab2
----
76
51
76
67
76
77

query II rowsort
SELECT - col1, + col1 * 70 * - 72 AS col0 FROM tab0 AS cor0
----
-1
-5040
-21
-105840
-81
-408240

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5172
SELECT - CAST( NULL AS SIGNED ), col1 AS col1 FROM tab1 cor0 WHERE NOT - ( - col0 ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-5172
SELECT - CAST ( NULL AS INTEGER ), col1 AS col1 FROM tab1 cor0 WHERE NOT - ( - col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 22 * - col1 * - + col2 / + ( + - 11 ) = + col0 + ( - ( + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5174
SELECT ALL + MAX( DISTINCT ( + - 93 ) ) FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5174
SELECT ALL + MAX ( DISTINCT ( + - 93 ) ) FROM tab0 AS cor0
----
-93

query I rowsort
SELECT ( - - col0 ) * - col0 * + 30 - col0 AS col0 FROM tab2 AS cor0
----
-122944
-168825
-63526

query II rowsort
SELECT DISTINCT + 88 AS col1, col2 FROM tab2 AS cor0
----
88
23
88
40
88
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= + 87
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - 23 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 76 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col1 FROM tab2
----
92
92
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5181
SELECT + CAST( - 13 AS SIGNED ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

skipif mysql # not compatible
query I rowsort label-5181
SELECT + CAST ( - 13 AS INTEGER ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to e95f5f4bd0f480397cced5f5e8a23792

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT ( - - MIN( ALL + 1 ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5182
SELECT ( - - MIN ( ALL + 1 ) ) FROM tab2
----
1

query I rowsort
SELECT DISTINCT col0 * + ( - + col0 ) * + col2 AS col1 FROM tab1
----
-249696
-426275
-563108

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( NOT + 72 IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 45 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 16 AS col1, - col1 FROM tab0
----
-16
-1
-16
-21
-16
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5187
SELECT - COUNT( * ) DIV + 15 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5187
SELECT - COUNT ( * ) / + 15 FROM tab2
----
0

query I rowsort
SELECT ALL 63 - + ( + 95 ) FROM tab0 WHERE NOT + - ( + col1 ) IS NULL
----
-32
-32
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-5189
SELECT + COUNT( * ) - + - 44 AS col0 FROM tab1 AS cor0 WHERE - col1 + - col0 IS NOT NULL
----
47

skipif mysql # not compatible
query I rowsort label-5189
SELECT + COUNT ( * ) - + - 44 AS col0 FROM tab1 AS cor0 WHERE - col1 + - col0 IS NOT NULL
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT ALL ( MIN( - col0 ) ) col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5190
SELECT ALL ( MIN ( - col0 ) ) col2 FROM tab0 AS cor0
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5191
SELECT ALL + CAST( NULL AS SIGNED ) + - - ( + col0 ) + + + col2 - - + col0 * - col0 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL + CAST ( NULL AS INTEGER ) + - - ( + col0 ) + + + col2 - - + col0 * - col0 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT DISTINCT + - 40 + COUNT( * ) FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-5192
SELECT DISTINCT + - 40 + COUNT ( * ) FROM tab1 AS cor0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT DISTINCT + + ( - 54 ) + col0 * + - CAST( - col2 AS SIGNED ) * 48 AS col1 FROM tab1 AS cor0
----
234954
240666
296970

skipif mysql # not compatible
query I rowsort label-5193
SELECT DISTINCT + + ( - 54 ) + col0 * + - CAST ( - col2 AS INTEGER ) * 48 AS col1 FROM tab1 AS cor0
----
234954
240666
296970

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5194
SELECT + CAST( - CAST( - 95 AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
95
95
95

skipif mysql # not compatible
query I rowsort label-5194
SELECT + CAST ( - CAST ( - 95 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
95
95
95

query I rowsort
SELECT ALL + col2 + 29 + + + col1 FROM tab0
----
129
157
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5196
SELECT - MIN( ALL + - col0 ) AS col0 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-5196
SELECT - MIN ( ALL + - col0 ) AS col0 FROM tab1
----
91

query III rowsort
SELECT * FROM tab1 WHERE - ( + col2 ) + 62 = - 62 - + col1
----

query II rowsort
SELECT ( + 83 ) AS col1, ( - - col1 ) AS col2 FROM tab2
----
83
51
83
67
83
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col0 ) col2 FROM tab1 WHERE - + col1 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( + - col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5201
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - col2 - + col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - col2 - + col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5202
SELECT ALL + 44 + 27 - col2 + - - col1 + + CAST( 87 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
104
137
76

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL + 44 + 27 - col2 + - - col1 + + CAST ( 87 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
104
137
76

query III rowsort
SELECT ALL * FROM tab1 WHERE 74 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5204
SELECT DISTINCT + SUM( DISTINCT col1 ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-5204
SELECT DISTINCT + SUM ( DISTINCT col1 ) FROM tab0 cor0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5205
SELECT DISTINCT ( - CAST( col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5205
SELECT DISTINCT ( - CAST ( col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT - - 54 * - - 90 FROM tab1 AS cor0
----
4860
4860
4860

onlyif mysql # aggregate syntax: 
query II rowsort label-5207
SELECT ALL - COUNT( * ), 74 AS col0 FROM tab1 AS cor0
----
-3
74

skipif mysql # not compatible
query II rowsort label-5207
SELECT ALL - COUNT ( * ), 74 AS col0 FROM tab1 AS cor0
----
-3
74

query I rowsort
SELECT col2 * - - col0 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-5209
SELECT + col2 DIV - 68 col0 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5209
SELECT + col2 / - 68 col0 FROM tab0 AS cor0
----
-1
0
0

query I rowsort
SELECT + - col0 * - - col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query II rowsort
SELECT - 44 * + + col2 AS col1, + col1 + - 23 * 0 AS col2 FROM tab2
----
-1012
51
-1760
77
-2552
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5212
SELECT DISTINCT + col2 / + CAST( NULL AS SIGNED ) * + 49 col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5212
SELECT DISTINCT + col2 / + CAST ( NULL AS INTEGER ) * + 49 col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL + col2 * + - 57 FROM tab1
----
-3363
-3876
-5472

query III rowsort
SELECT * FROM tab1 WHERE NOT + 30 * col2 > - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT MAX( col1 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
77

skipif mysql # not compatible
query I rowsort label-5215
SELECT MAX ( col1 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5216
SELECT DISTINCT - - MIN( DISTINCT + - col0 ) AS col1 FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
-97

skipif mysql # not compatible
query I rowsort label-5216
SELECT DISTINCT - - MIN ( DISTINCT + - col0 ) AS col1 FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5217
SELECT + - CAST( - col1 AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5217
SELECT + - CAST ( - col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL - - col0 + + 69 FROM tab2 AS cor0
----
115
133
144

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5219
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-5219
SELECT ALL * FROM tab2 AS cor0 WHERE col0 + CAST ( NULL AS INTEGER ) - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 48 + col2 - + - 54 + + + col0 FROM tab0 AS cor0
----
103
202
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - + col0, col2, + + col0 - 8, + col1 * + - col2, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5222
SELECT DISTINCT - COUNT( - - col1 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5222
SELECT DISTINCT - COUNT ( - - col1 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT 87 - 92 FROM tab1 AS cor0
----
-5
-5
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5224
SELECT - 17 DIV + ( + col2 ) - col1 - + + col2 + - - col0 * col1 FROM tab2 AS cor0
----
2272
4811
4900

skipif mysql # not compatible
query I rowsort label-5224
SELECT - 17 / + ( + col2 ) - col1 - + + col2 + - - col0 * col1 FROM tab2 AS cor0
----
2272
4811
4900

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5225
SELECT DISTINCT + MIN( col2 ) FROM tab0 WHERE ( - CAST( NULL AS DECIMAL ) * 15 / - ( - 25 ) = NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT + MIN ( col2 ) FROM tab0 WHERE ( - CAST ( NULL AS REAL ) * 15 / - ( - 25 ) = NULL )
----
NULL

query I rowsort
SELECT + 56 + + - 76 FROM tab2
----
-20
-20
-20

query I rowsort
SELECT + 74 + 32 FROM tab2
----
106
106
106

onlyif mysql # DIV for integer division: 
query I rowsort label-5228
SELECT col1 + - 9 + col2 DIV col0 FROM tab2
----
42
58
68

skipif mysql # not compatible
query I rowsort label-5228
SELECT col1 + - 9 + col2 / col0 FROM tab2
----
42
58
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT DISTINCT MIN( + col0 ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT MIN ( + col0 ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----
NULL

query I rowsort
SELECT + ( ( col0 ) ) * + 57 FROM tab2 AS cor0
----
2622
3648
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT DISTINCT + ( + - 22 ) * - - MAX( DISTINCT - - col2 ) AS col0 FROM tab2 AS cor0
----
-1276

skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT + ( + - 22 ) * - - MAX ( DISTINCT - - col2 ) AS col0 FROM tab2 AS cor0
----
-1276

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 + + col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col2 - - 35 AS col2 FROM tab2
----
58
75
93

query III rowsort
SELECT * FROM tab0 WHERE - 33 >= NULL
----

query I rowsort
SELECT ALL ( - AVG ( + col1 ) ) FROM tab1 WHERE ( NULL ) > 34 * + col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5236
SELECT ALL AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE 51 * col1 BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL - 65 + col1 FROM tab0
----
-44
-64
16

query I rowsort
SELECT + 48 * + col1 AS col1 FROM tab2 WHERE NULL <= + col1
----

query I rowsort
SELECT + col0 + - col1 * + col0 FROM tab2
----
-2300
-4864
-4950

query III rowsort
SELECT * FROM tab2 WHERE + col2 IN ( - 22 * 7 + - ( col0 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5242
SELECT ALL + col2 - 21 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT col0 * + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL + col2 - 21 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT col0 * + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - col2 AND + 54
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 * 77 ) BETWEEN ( NULL ) AND ( col2 * 84 + col0 / + ( 51 ) )
----
85
5
59
91
47
68

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - col1 * 98 - col1 AND ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5246
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5246
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5247
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5247
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( CAST ( col2 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5248
SELECT * FROM tab2 WHERE CAST( col0 AS SIGNED ) * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5248
SELECT * FROM tab2 WHERE CAST ( col0 AS INTEGER ) * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 + + col1 * - col1 FROM tab1
----
-210
-2256
-30

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE ( col1 ) < - ( 18 ) + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT DISTINCT - CAST( - col1 AS SIGNED ) AS col2 FROM tab2 WHERE 31 * col0 IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 WHERE 31 * col0 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5252
SELECT ALL + CAST( NULL AS SIGNED ) + - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL + CAST ( NULL AS INTEGER ) + - col2 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5253
SELECT + AVG ( DISTINCT - ( CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5253
SELECT + AVG ( DISTINCT - ( CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL ( - col0 ) + - ( col2 ) FROM tab0
----
-196
-62
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5255
SELECT * FROM tab0 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) + - col1 ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-5255
SELECT * FROM tab0 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) + - col1 ) <= NULL
----

query I rowsort
SELECT DISTINCT col0 + 33 AS col1 FROM tab2 AS cor0
----
108
79
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5257
SELECT col0 FROM tab2 AS cor0 WHERE - 62 BETWEEN - CAST( col1 AS SIGNED ) + + col0 * - 32 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5257
SELECT col0 FROM tab2 AS cor0 WHERE - 62 BETWEEN - CAST ( col1 AS INTEGER ) + + col0 * - 32 AND NULL
----

query I rowsort
SELECT DISTINCT - 42 + + col1 * 27 FROM tab0 AS cor0
----
-15
2145
525

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 > - 85
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5260
SELECT ALL SUM( DISTINCT + ( col2 ) ) + COUNT( * ) DIV COUNT( * ) AS col2 FROM tab1 AS cor0
----
224

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL SUM ( DISTINCT + ( col2 ) ) + COUNT ( * ) / COUNT ( * ) AS col2 FROM tab1 AS cor0
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-5261
SELECT DISTINCT MIN( DISTINCT 38 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
38

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT MIN ( DISTINCT 38 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2
----
38

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 * col2 - + col1 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5263
SELECT ALL MAX( - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-5263
SELECT ALL MAX ( - col0 ) FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5264
SELECT + col0 + - col0 FROM tab1 AS cor0 WHERE ( CAST( NULL AS DECIMAL ) - - col1 ) BETWEEN NULL AND + 22 + + 74
----

skipif mysql # not compatible
query I rowsort label-5264
SELECT + col0 + - col0 FROM tab1 AS cor0 WHERE ( CAST ( NULL AS REAL ) - - col1 ) BETWEEN NULL AND + 22 + + 74
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 65 * + col2 BETWEEN NULL AND ( 91 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5266
SELECT + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) <> ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5266
SELECT + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) <> ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 45 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5268
SELECT + + COUNT( * ) DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5268
SELECT + + COUNT ( * ) / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5269
SELECT DISTINCT col0 DIV - col0 + ( - col2 ) DIV col1 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT col0 / - col0 + ( - col2 ) / col1 AS col0 FROM tab2
----
-1

query I rowsort
SELECT ALL col0 - + - col1 * - col0 FROM tab1
----
-340
-4186
-663

query III rowsort
SELECT ALL * FROM tab2 WHERE 38 BETWEEN col1 AND ( NULL )
----

query I rowsort
SELECT 33 * + col0 AS col1 FROM tab2
----
1518
2112
2475

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT SUM( + - ( + col0 ) ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-5273
SELECT SUM ( + - ( + col0 ) ) FROM tab2
----
-185

query I rowsort
SELECT ALL + 7 + - 30 FROM tab0 WHERE ( NULL ) = ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5275
SELECT - CAST( NULL AS SIGNED ) - + col2 + - 28 / - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5275
SELECT - CAST ( NULL AS INTEGER ) - + col2 + - 28 / - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5276
SELECT DISTINCT 17 - + + CAST( NULL AS DECIMAL ) + 17 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5276
SELECT DISTINCT 17 - + + CAST ( NULL AS REAL ) + 17 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT - 63 - + col1 AS col0 FROM tab1 WHERE col0 + + col2 IS NOT NULL
----
-110
-68
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT COUNT( * ) - + 23 * 2 FROM tab2
----
-43

skipif mysql # not compatible
query I rowsort label-5278
SELECT COUNT ( * ) - + 23 * 2 FROM tab2
----
-43

query I rowsort
SELECT DISTINCT col0 * col2 + - 15 AS col0 FROM tab0
----
690
855
9588

onlyif mysql # DIV for integer division: 
query I rowsort label-5280
SELECT ALL ( - - col2 ) - 9 DIV col0 AS col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL ( - - col2 ) - 9 / col0 AS col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5281
SELECT COUNT( * ) AS col0 FROM tab1 WHERE + 20 * 58 < - col2
----
0

skipif mysql # not compatible
query I rowsort label-5281
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE + 20 * 58 < - col2
----
0

query I rowsort
SELECT DISTINCT 19 - - 38 FROM tab1
----
57

onlyif mysql # DIV for integer division: 
query III rowsort label-5283
SELECT ALL * FROM tab1 WHERE ( 65 DIV col2 + col2 ) <= ( col2 )
----
51
14
96
91
47
68

skipif mysql # not compatible
query III rowsort label-5283
SELECT ALL * FROM tab1 WHERE ( 65 / col2 + col2 ) <= ( col2 )
----
51
14
96
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5284
SELECT ALL - CAST( col1 AS SIGNED ) AS col0 FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5284
SELECT ALL - CAST ( col1 AS INTEGER ) AS col0 FROM tab0 cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE col0 NOT IN ( 3 )
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + 97 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col2 * - 41 * - col0 + col0 FROM tab0 AS cor0
----
28920
35757
393820

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE - col0 + 65 IN ( col2 * - 76 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - 90 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT ALL COUNT( DISTINCT + 25 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-5290
SELECT ALL COUNT ( DISTINCT + 25 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT ALL + SUM( ALL - 98 ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-882

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL + SUM ( ALL - 98 ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
-882

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + col0 + col1 * 57 )
----

query I rowsort
SELECT ALL - ( + + col0 ) * 70 * + ( + col0 ) + col0 FROM tab2 AS cor0
----
-148074
-286656
-393675

query I rowsort
SELECT DISTINCT col2 * 64 * + + col0 FROM tab1 AS cor0
----
313344
320960
396032

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT COUNT( * ) * - 10 col0 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5295
SELECT COUNT ( * ) * - 10 col0 FROM tab1 AS cor0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5296
SELECT - 59, - CAST( + + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-59
-15
-59
-87
-59
-97

skipif mysql # not compatible
query II rowsort label-5296
SELECT - 59, - CAST ( + + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-59
-15
-59
-87
-59
-97

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( - + col0 ) IS NULL
----
51
67
77

query I rowsort
SELECT + 66 * + ( col0 ) * - col0 + + 11 AS col1 FROM tab0 AS cor0
----
-14839
-499543
-620983

query II rowsort
SELECT - col0 AS col0, - col2 * + col0 FROM tab2 AS cor0
----
-46
-1058
-64
-2560
-75
-4350

query I rowsort
SELECT ALL AVG ( 28 ) FROM tab2 AS cor0 WHERE NOT col2 BETWEEN - + col0 + + ( + 2 - col2 ) * + col0 AND NULL
----
NULL

query I rowsort
SELECT ALL - col0 * ( + ( + 27 ) ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-1242
-1728
-2025

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col0 <> col0 * - 30
----

query I rowsort
SELECT col2 * + - ( - col2 ) * + 63 FROM tab2
----
100800
211932
33327

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5304
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col1, - col0 AS col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-5304
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col1, - col0 AS col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT DISTINCT 49 AS col1 FROM tab2 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT ALL ( col0 ) * + - 31 + + col1 * + col2 FROM tab1
----
-2340
-237
375

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 23 + col1
----

query I rowsort
SELECT col1 + + - ( + 98 ) AS col0 FROM tab1 AS cor0
----
-51
-84
-93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col2 ) * + 90 * 34 + 27 * - col0 <> - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 65 * 74 + - - col0 col1 FROM tab0 AS cor0
----
4825
4897
4907

query I rowsort
SELECT DISTINCT 29 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5312
SELECT ALL - + CAST( 74 AS SIGNED ) * - 15 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to a2ddcf8441bbeec798e7a00e60329dd4

skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL - + CAST ( 74 AS INTEGER ) * - 15 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to a2ddcf8441bbeec798e7a00e60329dd4

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

query I rowsort
SELECT + col2 * - - 92 FROM tab0
----
4324
9108
920

onlyif mysql # aggregate syntax: 
query I rowsort label-5315
SELECT MAX( ALL + 93 ) * + + 30 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
2790

skipif mysql # not compatible
query I rowsort label-5315
SELECT MAX ( ALL + 93 ) * + + 30 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
2790

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5316
SELECT + ( CAST( 19 AS SIGNED ) ) - col1 + + 79 FROM tab1 cor0
----
51
84
93

skipif mysql # not compatible
query I rowsort label-5316
SELECT + ( CAST ( 19 AS INTEGER ) ) - col1 + + 79 FROM tab1 cor0
----
51
84
93

query I rowsort
SELECT - col0 - 55 FROM tab0 AS cor0
----
-142
-152
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT MIN( - - col1 ) - + + COUNT( * ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5318
SELECT MIN ( - - col1 ) - + + COUNT ( * ) FROM tab1 AS cor0
----
2

query I rowsort
SELECT + col1 - - ( - + col1 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + col1 + + + col0 AS col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( col2 * + col1 ) AND ( ( - + 32 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 - col1 NOT IN ( ( + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - - col0 IS NULL AND NOT ( col1 * - + col2 * + 7 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5324
SELECT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) * 58 * + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5324
SELECT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) * 58 * + col2 IS NOT NULL
----

query I rowsort
SELECT ALL + 70 + + 4 FROM tab0
----
74
74
74

query II rowsort
SELECT DISTINCT col0 + + - 0 - + col1 * - 66, + col0 AS col0 FROM tab0
----
1473
87
163
97
5361
15

query II rowsort
SELECT col2 AS col0, + 34 * col1 AS col0 FROM tab2
----
23
1734
40
2618
58
2278

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT ALL COUNT( * ) * - COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5329
SELECT ALL - col2 DIV ( + - CAST( - col2 AS SIGNED ) ) AS col0, - col0 col1 FROM tab2
----
-1
-46
-1
-64
-1
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5329
SELECT ALL - col2 / ( + - CAST ( - col2 AS INTEGER ) ) AS col0, - col0 col1 FROM tab2
----
-1
-46
-1
-64
-1
-75

query I rowsort
SELECT DISTINCT + 75 * - col2 AS col2 FROM tab0
----
-3525
-7425
-750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5331
SELECT DISTINCT + col0 col1 FROM tab0 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5331
SELECT DISTINCT + col0 col1 FROM tab0 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
15
87
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 / col2 - + + col2 * + 77 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + 66 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT + COUNT( * ) + - + 43 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-34

skipif mysql # not compatible
query I rowsort label-5334
SELECT + COUNT ( * ) + - + 43 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5335
SELECT - COUNT( * ) DIV - 19 * COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5335
SELECT - COUNT ( * ) / - 19 * COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5336
SELECT COUNT( * ) * 93 FROM tab1 cor0
----
279

skipif mysql # not compatible
query I rowsort label-5336
SELECT COUNT ( * ) * 93 FROM tab1 cor0
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5337
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2 * CAST( NULL AS SIGNED ) - + 52
----

skipif mysql # not compatible
query I rowsort label-5337
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col2 * CAST ( NULL AS INTEGER ) - + 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT DISTINCT - COUNT( * ) + MAX( DISTINCT - col0 ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT - COUNT ( * ) + MAX ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-54

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN + col0 AND - 19
----

query I rowsort
SELECT DISTINCT - - 43 AS col1 FROM tab0 cor0
----
43

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5341
SELECT - col0 * 92 + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5341
SELECT - col0 * 92 + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * + - ( + 46 ) FROM tab2
----
-1058
-1840
-2668

onlyif mysql # aggregate syntax: 
query II rowsort label-5343
SELECT DISTINCT COUNT( * ) AS col0, 5 * - - SUM( 32 ) FROM tab1
----
3
480

skipif mysql # not compatible
query II rowsort label-5343
SELECT DISTINCT COUNT ( * ) AS col0, 5 * - - SUM ( 32 ) FROM tab1
----
3
480

query II rowsort
SELECT - 18, + col1 FROM tab0
----
-18
1
-18
21
-18
81

query I rowsort
SELECT ALL col1 * ( + 78 ) + - col2 + 55 + - col0 + 70 FROM tab1
----
1070
3632
371

query II rowsort
SELECT col2 AS col2, - col2 * - col0 FROM tab0
----
10
870
47
705
99
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5347
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5347
SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NOT ( - col1 ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - col1 ) col0 FROM tab2
----
51
67
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 / col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5350
SELECT DISTINCT - - 43 DIV COUNT( * ) + - 61 * - COUNT( * ) + + - SUM( + + 95 ) AS col0 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT - - 43 / COUNT ( * ) + - 61 * - COUNT ( * ) + + - SUM ( + + 95 ) AS col0 FROM tab1 AS cor0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5351
SELECT ALL - + col2 + - + CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL - + col2 + - + CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - col2 + - col1 AS col2 FROM tab2
----
-1224
-3157
-3953

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5353
SELECT DISTINCT + col0 - - col1, CAST( + ( - + col1 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
108
-21
96
-81
98
-1

skipif mysql # not compatible
query II rowsort label-5353
SELECT DISTINCT + col0 - - col1, CAST ( + ( - + col1 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
108
-21
96
-81
98
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5354
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col2 * + - 79 + - col0 NOT IN ( + - col0 * col1 + 85 + + 81 * - col0 + col2 )
----
3

skipif mysql # not compatible
query I rowsort label-5354
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col2 * + - 79 + - col0 NOT IN ( + - col0 * col1 + 85 + + 81 * - col0 + col2 )
----
3

query II rowsort
SELECT ALL - 73 * + 43 AS col2, 18 AS col2 FROM tab2 cor0
----
-3139
18
-3139
18
-3139
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5356
SELECT DISTINCT COUNT( ALL - col2 ) DIV - 59 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5356
SELECT DISTINCT COUNT ( ALL - col2 ) / - 59 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5357
SELECT ALL + CAST( NULL AS DECIMAL ) * + - COUNT( * ) + - 78 + - - 93 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5357
SELECT ALL + CAST ( NULL AS REAL ) * + - COUNT ( * ) + - 78 + - - 93 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + 59 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5359
SELECT ALL COUNT( * ) AS col0, 95 * - 39 FROM tab1
----
3
-3705

skipif mysql # not compatible
query II rowsort label-5359
SELECT ALL COUNT ( * ) AS col0, 95 * - 39 FROM tab1
----
3
-3705

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 83 + + col2 + - - 60 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT ALL 52 * COUNT( * ) FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-5361
SELECT ALL 52 * COUNT ( * ) FROM tab2
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-5362
SELECT col1 DIV + col2 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5362
SELECT col1 / + col2 col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col0 * - 57 * + 79 AS col1 FROM tab2
----
-207138
-288192
-337725

query I rowsort
SELECT DISTINCT ( col1 ) * + - col2 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT ALL + col2 * - 43 FROM tab1 WHERE col0 NOT BETWEEN NULL AND - + 66 + + + col2
----
-2537
-2924
-4128

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5366
SELECT * FROM tab2 WHERE NOT + + col2 IN ( - + CAST( - 88 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5366
SELECT * FROM tab2 WHERE NOT + + col2 IN ( - + CAST ( - 88 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT 59 * - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5367
SELECT 59 * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT DISTINCT - MIN( - - 11 ) FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT - MIN ( - - 11 ) FROM tab1 AS cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT - - COUNT( * ) 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-5369
SELECT - - COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

query III rowsort
SELECT * FROM tab1 WHERE NOT - + ( + - 39 ) * + - col1 + - col1 > NULL
----

query I rowsort
SELECT col0 * + + col1 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT - - 9 AS col1 FROM tab2 cor0
----
9
9
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 43 col1, col1 FROM tab0 AS cor0
----
43
1
43
21
43
81

query II rowsort
SELECT + col2 AS col1, col0 + col2 * col0 AS col0 FROM tab0 AS cor0
----
10
957
47
720
99
9700

query II rowsort
SELECT ALL + - 47 + + col0 AS col0, - col2 FROM tab2 AS cor0
----
-1
-23
17
-40
28
-58

onlyif mysql # DIV for integer division: 
query II rowsort label-5376
SELECT - - col0 AS col2, + col2 + col1 DIV - - ( + ( + col0 ) ) FROM tab2 AS cor0
----
46
24
64
41
75
58

skipif mysql # not compatible
query II rowsort label-5376
SELECT - - col0 AS col2, + col2 + col1 / - - ( + ( + col0 ) ) FROM tab2 AS cor0
----
46
24
64
41
75
58

query I rowsort
SELECT ALL - - col1 * + - 50 + 58 * + - col0 FROM tab2 AS cor0
----
-5218
-7562
-7700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5378
SELECT - CAST( - - 71 AS SIGNED ) FROM tab0 AS cor0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-5378
SELECT - CAST ( - - 71 AS INTEGER ) FROM tab0 AS cor0
----
-71
-71
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5379
SELECT + col1 * - col0 AS col1, CAST( - - 56 AS SIGNED ) FROM tab1 AS cor0
----
-425
56
-4277
56
-714
56

skipif mysql # not compatible
query II rowsort label-5379
SELECT + col1 * - col0 AS col1, CAST ( - - 56 AS INTEGER ) FROM tab1 AS cor0
----
-425
56
-4277
56
-714
56

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE - - 44 / - + col0 * - col0 >= 51
----

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab1 WHERE NOT - col2 * - 47 IS NULL
----
59
68
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5382
SELECT - 93 AS col2 FROM tab2 WHERE + - CAST( - col2 AS DECIMAL ) + + col1 + + col0 * + 26 * + - col1 BETWEEN - col1 AND - col2 * + col0
----

skipif mysql # not compatible
query I rowsort label-5382
SELECT - 93 AS col2 FROM tab2 WHERE + - CAST ( - col2 AS REAL ) + + col1 + + col0 * + 26 * + - col1 BETWEEN - col1 AND - col2 * + col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 27 BETWEEN + - col2 - - + col2 + 69 AND 48
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 FROM tab0 WHERE - 26 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5385
SELECT ALL 9 * + + ( COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL 9 * + + ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5386
SELECT - + 92 DIV + + 8 + col1 FROM tab1 AS cor0
----
-6
3
36

skipif mysql # not compatible
query I rowsort label-5386
SELECT - + 92 / + + 8 + col1 FROM tab1 AS cor0
----
-6
3
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5387
SELECT DISTINCT + COUNT( * ) + + SUM( - col2 ) * + + 80 * + COUNT( DISTINCT 44 ) AS col0 FROM tab0
----
-12477

skipif mysql # not compatible
query I rowsort label-5387
SELECT DISTINCT + COUNT ( * ) + + SUM ( - col2 ) * + + 80 * + COUNT ( DISTINCT 44 ) AS col0 FROM tab0
----
-12477

query I rowsort
SELECT DISTINCT col1 + - 85 + + col0 AS col0 FROM tab0
----
11
13
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT 88 - + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-5389
SELECT 88 - + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
85

query I rowsort
SELECT - col1 * - - col2 + + + col0 AS col1 FROM tab1 AS cor0 WHERE - 96 IS NULL
----

query I rowsort
SELECT 34 - + - col1 FROM tab0 cor0
----
115
35
55

query I rowsort
SELECT ALL + - col2 - col1 AS col0 FROM tab1 AS cor0
----
-110
-115
-64

query II rowsort
SELECT ALL col0, col2 * 69 FROM tab2 AS cor0
----
46
1587
64
2760
75
4002

onlyif mysql # aggregate syntax: 
query I rowsort label-5394
SELECT DISTINCT + + MIN( + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5394
SELECT DISTINCT + + MIN ( + col2 ) FROM tab2 AS cor0
----
23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5396
SELECT ALL - SUM( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL - SUM ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT ALL + 28 * - COUNT( DISTINCT - col0 ) col2 FROM tab0 cor0
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5397
SELECT ALL + 28 * - COUNT ( DISTINCT - col0 ) col2 FROM tab0 cor0
----
-84

query I rowsort
SELECT DISTINCT - col2 * 21 FROM tab0 AS cor0
----
-2079
-210
-987

query I rowsort
SELECT ALL + 25 * + 33 FROM tab1
----
825
825
825

query I rowsort
SELECT DISTINCT - col2 * - 78 FROM tab1
----
4602
5304
7488

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT MIN( - col0 ) col1 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5401
SELECT MIN ( - col0 ) col1 FROM tab1
----
-91

query II rowsort
SELECT ALL col1 * + - col1 AS col1, col0 * - col2 AS col0 FROM tab1
----
-196
-4896
-2209
-6188
-25
-5015

query I rowsort
SELECT + ( 16 ) + col1 + + col2 * + + col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5404
SELECT - col1 DIV 88 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5404
SELECT - col1 / 88 AS col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 27 col1 FROM tab2
----
27
27
27

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5406
SELECT ALL - COUNT( * ) DIV 64 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL - COUNT ( * ) / 64 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT DISTINCT + COUNT( ( - - col2 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT + COUNT ( ( - - col2 ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT - - 74 * - + col0 AS col2 FROM tab1 AS cor0
----
-3774
-6290
-6734

query I rowsort
SELECT + 41 * + col0 FROM tab2
----
1886
2624
3075

onlyif mysql # aggregate syntax: 
query II rowsort label-5410
SELECT DISTINCT ( - - MAX( DISTINCT - col1 ) ) AS col1, 95 AS col0 FROM tab1
----
-5
95

skipif mysql # not compatible
query II rowsort label-5410
SELECT DISTINCT ( - - MAX ( DISTINCT - col1 ) ) AS col1, 95 AS col0 FROM tab1
----
-5
95

query I rowsort
SELECT - ( + + col1 ) + + - 87 AS col0 FROM tab2 AS cor0
----
-138
-154
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-5412
SELECT ALL + COUNT( DISTINCT col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5412
SELECT ALL + COUNT ( DISTINCT col0 ) FROM tab2 cor0
----
3

query I rowsort
SELECT DISTINCT + col2 + - - ( + col2 ) FROM tab2 AS cor0
----
116
46
80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN - + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5415
SELECT + col2 * - + CAST( - + 16 AS SIGNED ) FROM tab1 AS cor0
----
1088
1536
944

skipif mysql # not compatible
query I rowsort label-5415
SELECT + col2 * - + CAST ( - + 16 AS INTEGER ) FROM tab1 AS cor0
----
1088
1536
944

query I rowsort
SELECT DISTINCT + col1 + - + col1 * + - 35 FROM tab2
----
1836
2412
2772

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col1, 99 col2 FROM tab1
----
59
99
68
99
96
99

query I rowsort
SELECT ALL ( - - 64 ) FROM tab0
----
64
64
64

query II rowsort
SELECT col2 AS col2, col1 + + 92 * - col0 FROM tab1
----
59
-7815
68
-8325
96
-4678

query I rowsort
SELECT DISTINCT - 5 * + 49 + + 89 FROM tab0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5421
SELECT - CAST( NULL AS SIGNED ) / + col0 + - + 75 col0, - 16 AS col0 FROM tab0 WHERE - + col2 IS NOT NULL
----
NULL
-16
NULL
-16
NULL
-16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5421
SELECT - CAST ( NULL AS INTEGER ) / + col0 + - + 75 col0, - 16 AS col0 FROM tab0 WHERE - + col2 IS NOT NULL
----
NULL
-16
NULL
-16
NULL
-16

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5422
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN CAST( 47 AS DECIMAL ) AND - - col2
----

skipif mysql # not compatible
query III rowsort label-5422
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN CAST ( 47 AS REAL ) AND - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT COUNT( - col1 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5423
SELECT COUNT ( - col1 ) col1 FROM tab1
----
3

query I rowsort
SELECT ( + 11 ) FROM tab0
----
11
11
11

onlyif mysql # DIV for integer division: 
query I rowsort label-5425
SELECT ALL - ( - 25 ) * - col1 + col2 DIV - 29 FROM tab2
----
-1275
-1677
-1926

skipif mysql # not compatible
query I rowsort label-5425
SELECT ALL - ( - 25 ) * - col1 + col2 / - 29 FROM tab2
----
-1275
-1677
-1926

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 41 col2 FROM tab1
----
-41

query I rowsort
SELECT ALL - 90 * - col1 - - col1 FROM tab2
----
4641
6097
7007

query II rowsort
SELECT ALL col2, - 92 FROM tab1
----
59
-92
68
-92
96
-92

query I rowsort
SELECT DISTINCT - - 69 FROM tab2 cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5430
SELECT - MAX( ALL + + col1 ) * + COUNT( * ) + + 9 AS col0 FROM tab0
----
-234

skipif mysql # not compatible
query I rowsort label-5430
SELECT - MAX ( ALL + + col1 ) * + COUNT ( * ) + + 9 AS col0 FROM tab0
----
-234

query III rowsort
SELECT * FROM tab0 WHERE + + 96 IN ( col2 )
----

query I rowsort
SELECT DISTINCT col1 * - col2 - 63 AS col2 FROM tab0
----
-162
-273
-3870

query I rowsort
SELECT DISTINCT - + 82 AS col2 FROM tab2 AS cor0
----
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 13 col0 FROM tab1 AS cor0
----
13
13
13

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( col1 * - col1 ) IS NOT NULL
----

query I rowsort
SELECT + 67 * + col2 AS col0 FROM tab0 AS cor0
----
3149
6633
670

query II rowsort
SELECT ALL + col2, - 11 * + - col0 AS col0 FROM tab0
----
10
957
47
165
99
1067

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + col2, - col2 * ( col2 ) * - + 74 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5439
SELECT ALL - MIN( DISTINCT col2 ) * 28 DIV 19 AS col0 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-5439
SELECT ALL - MIN ( DISTINCT col2 ) * 28 / 19 AS col0 FROM tab2
----
-33

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 * - 56 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT ALL - COUNT( * ) * - 93 FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL - COUNT ( * ) * - 93 FROM tab0
----
279

query II rowsort
SELECT DISTINCT + 23 - + + ( - - 78 ) + - - 21 * col2, col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
40
58

query II rowsort
SELECT + - col1 + - col0 - + col2 AS col2, 38 AS col0 FROM tab2 AS cor0
----
-120
38
-181
38
-200
38

query I rowsort
SELECT ALL + - 3 + - + 23 FROM tab2 AS cor0
----
-26
-26
-26

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 90 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-5447
SELECT ALL + COUNT( * ) + - 77 * 13 col2 FROM tab0 AS cor0
----
-998

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5447
SELECT ALL + COUNT ( * ) + - 77 * 13 col2 FROM tab0 AS cor0
----
-998

query I rowsort
SELECT ALL col0 - 41 * - + col2 FROM tab2
----
1704
2453
989

onlyif mysql # aggregate syntax: 
query I rowsort label-5449
SELECT ALL - COUNT( * ) + + COUNT( * ) + COUNT( * ) * - + MAX( col2 ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-5449
SELECT ALL - COUNT ( * ) + + COUNT ( * ) + COUNT ( * ) * - + MAX ( col2 ) FROM tab1
----
-288

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) IS NULL OR NOT + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 5 - col0 FROM tab1
----
-56
-90
-96

query I rowsort
SELECT 5 + + col1 FROM tab1
----
10
19
52

query I rowsort
SELECT + ( 76 ) AS col0 FROM tab0 cor0
----
76
76
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5454
SELECT DISTINCT MIN( DISTINCT - CAST( - col2 AS SIGNED ) ) FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-5454
SELECT DISTINCT MIN ( DISTINCT - CAST ( - col2 AS INTEGER ) ) FROM tab2 cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-5455
SELECT - 21 DIV - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5455
SELECT - 21 / - col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - 1 AS col2 FROM tab2 AS cor0 WHERE NOT + 8 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT ALL - ( - COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5457
SELECT ALL - ( - COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT COUNT( * ) + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-5458
SELECT COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT MIN( - 31 ) * - - 24 AS col2 FROM tab0 AS cor0
----
-744

skipif mysql # not compatible
query I rowsort label-5459
SELECT MIN ( - 31 ) * - - 24 AS col2 FROM tab0 AS cor0
----
-744

query II rowsort
SELECT + col2, + col2 AS col1 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # DIV for integer division: 
query II rowsort label-5461
SELECT col0, 66 DIV - + col1 AS col1 FROM tab2 AS cor0
----
46
-1
64
0
75
0

skipif mysql # not compatible
query II rowsort label-5461
SELECT col0, 66 / - + col1 AS col1 FROM tab2 AS cor0
----
46
-1
64
0
75
0

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 NOT IN ( + + col1 - + 94 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( 19 ) FROM tab0 AS cor0
----
19

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col0 - + 88 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query II rowsort
SELECT col1 * - - col0 AS col1, - col2 AS col0 FROM tab2
----
2346
-23
4928
-40
5025
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - 78, - col2 + - col0 col1 FROM tab2
----
-3588
-69
-4992
-104
-5850
-133

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT ALL ( - COUNT( ALL + col1 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL ( - COUNT ( ALL + col1 ) ) FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( col1 ) col0, - 28 AS col2 FROM tab2
----
-51
-28
-67
-28
-77
-28

query I rowsort
SELECT DISTINCT - 47 * 48 * + + col0 * + - col1 FROM tab0 AS cor0
----
218832
2741040
4121712

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab2 AS cor0 WHERE col2 <> - + col2
----
46
64
75

query I rowsort
SELECT + col2 * - - col0 AS col2 FROM tab1 cor0
----
4896
5015
6188

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT NULL <> NULL )
----

query I rowsort
SELECT DISTINCT + col2 * - 93 * + col0 + - 60 AS col2 FROM tab0 AS cor0
----
-65625
-80970
-893139

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT ( - + 27 ) * + - COUNT( * ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-5477
SELECT ( - + 27 ) * + - COUNT ( * ) FROM tab2
----
81

query II rowsort
SELECT 70, 71 + - col2 AS col2 FROM tab1
----
70
-25
70
12
70
3

query I rowsort
SELECT DISTINCT + 93 * - 17 FROM tab0
----
-1581

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5480
SELECT ALL 14 * + + ( 92 ) AS col2, CAST( + col1 AS SIGNED ) * + - 35 + - col1 FROM tab2
----
1288
-1836
1288
-2412
1288
-2772

skipif mysql # not compatible
query II rowsort label-5480
SELECT ALL 14 * + + ( 92 ) AS col2, CAST ( + col1 AS INTEGER ) * + - 35 + - col1 FROM tab2
----
1288
-1836
1288
-2412
1288
-2772

onlyif mysql # aggregate syntax: 
query I rowsort label-5481
SELECT DISTINCT - - COUNT( * ) * COUNT( * ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-5481
SELECT DISTINCT - - COUNT ( * ) * COUNT ( * ) FROM tab2 cor0
----
9

query I rowsort
SELECT + 44 + - - ( ( - - col2 ) ) FROM ta