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 tab2 AS cor0
----
102
67
84

query I rowsort
SELECT ALL ( - 34 ) * 57 FROM tab2 AS cor0
----
-1938
-1938
-1938

query I rowsort
SELECT DISTINCT + col1 * + - 33 FROM tab1 AS cor0
----
-1551
-165
-462

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5485
SELECT + + CAST( NULL AS SIGNED ) * + 4 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5485
SELECT + + CAST ( NULL AS INTEGER ) * + 4 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5486
SELECT ALL 36 + - - col1 DIV col1 FROM tab2 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-5486
SELECT ALL 36 + - - col1 / col1 FROM tab2 AS cor0
----
37
37
37

query I rowsort
SELECT ALL - - 81 + - + col0 AS col1 FROM tab2 AS cor0
----
17
35
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5488
SELECT ALL - COUNT( DISTINCT 79 ) + + SUM( ALL - col0 ) DIV + 37 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL - COUNT ( DISTINCT 79 ) + + SUM ( ALL - col0 ) / + 37 FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT - MIN( - + ( 23 ) ) AS col2 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-5489
SELECT - MIN ( - + ( 23 ) ) AS col2 FROM tab2 cor0
----
23

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

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

skipif mysql # not compatible
query II rowsort label-5491
SELECT DISTINCT - COUNT ( * ) / + 56, 34 AS col0 FROM tab0
----
0
34

query I rowsort
SELECT 84 * - 5 + + col1 + - col2 + + - col0 AS col2 FROM tab1 AS cor0
----
-532
-553
-559

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab1 WHERE - col2 + 81 + + ( col1 ) IS NOT NULL
----
-14
-47
-5

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT SUM( + 94 ) AS col0 FROM tab2 cor0
----
282

skipif mysql # not compatible
query I rowsort label-5495
SELECT SUM ( + 94 ) AS col0 FROM tab2 cor0
----
282

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 >= 60 + 68
----

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

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

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

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

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

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

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

query I rowsort
SELECT + col2 * 6 AS col1 FROM tab0 AS cor0
----
282
594
60

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5503
SELECT 66 DIV col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-5503
SELECT 66 / col2 FROM tab0
----
0
1
6

query II rowsort
SELECT DISTINCT 9 AS col0, col1 FROM tab2
----
9
51
9
67
9
77

query I rowsort
SELECT ALL - ( - - col0 ) / - - col1 + - - col1 FROM tab1 WHERE NOT col0 - - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5506
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab2 WHERE + - 88 + + + ( col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5506
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab2 WHERE + - 88 + + + ( col2 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT MAX( DISTINCT 34 ) col2 FROM tab1
----
34

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 + - - col1 * + - col2 col1 FROM tab0 cor0
----
-173
-3770
-62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT + COUNT( * ) * 49 + - + 39 AS col1 FROM tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-5510
SELECT + COUNT ( * ) * 49 + - + 39 AS col1 FROM tab0 AS cor0
----
108

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col0 > + col0 + 73
----

query I rowsort
SELECT DISTINCT - col0 * 58 AS col2 FROM tab1 AS cor0
----
-2958
-4930
-5278

query I rowsort
SELECT ALL + + col2 + + 22 AS col0 FROM tab1 AS cor0
----
118
81
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT + COUNT( DISTINCT + 50 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5514
SELECT + COUNT ( DISTINCT + 50 ) AS col1 FROM tab0
----
1

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 22 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT col1 * + 49 + + col2 AS col0 FROM tab0 AS cor0
----
1039
148
4016

query II rowsort
SELECT DISTINCT - + col2 * + col2 AS col0, - col1 AS col1 FROM tab0 AS cor0
----
-100
-21
-2209
-81
-9801
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5518
SELECT DISTINCT + COUNT( * ) * + 92 + 17 * - + COUNT( * ) * + 89 * + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT + COUNT ( * ) * + 92 + 17 * - + COUNT ( * ) * + 89 * + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT ALL - 97 * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-5519
SELECT ALL - 97 * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
291

query I rowsort
SELECT DISTINCT - - col0 + + 59 AS col1 FROM tab2 AS cor0
----
105
123
134

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

skipif mysql # not compatible
query I rowsort label-5521
SELECT DISTINCT - - COUNT ( * ) + - + MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
-96

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT DISTINCT - COUNT( * ) + - + MAX( + + col0 ) FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-5525
SELECT DISTINCT - COUNT ( * ) + - + MAX ( + + col0 ) FROM tab1
----
-94

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

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

query III rowsort
SELECT * FROM tab2 WHERE - 26 BETWEEN ( - + ( 20 ) ) AND - col2
----

query III rowsort
SELECT * FROM tab2 WHERE + ( col0 ) IN ( col2 * - 23, 4, + + 24 * - col2 * col1, col2 )
----

query II rowsort
SELECT 54 AS col0, col1 * - + col1 AS col0 FROM tab1
----
54
-196
54
-2209
54
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-5530
SELECT DISTINCT - col0 DIV - - col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-5530
SELECT DISTINCT - col0 / - - col1 FROM tab1 AS cor0
----
-1
-17
-3

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5532
SELECT ALL + MIN( DISTINCT - col0 ) DIV COUNT( DISTINCT + col2 ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-5532
SELECT ALL + MIN ( DISTINCT - col0 ) / COUNT ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-25

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5533
SELECT DISTINCT + col2 DIV - CAST( + 95 AS SIGNED ) * - col1 + + col0 AS col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT + col2 / - CAST ( + 95 AS INTEGER ) * - col1 + + col0 AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL + 49 * + col1 AS col2 FROM tab2 AS cor0 WHERE - col0 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <> - 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5536
SELECT DISTINCT 56 + MAX( col2 ) col2 FROM tab2 AS cor0 WHERE col1 < + - col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5536
SELECT DISTINCT 56 + MAX ( col2 ) col2 FROM tab2 AS cor0 WHERE col1 < + - col2
----
NULL

query II rowsort
SELECT DISTINCT + 3 * ( + 41 ), 36 AS col0 FROM tab1
----
123
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT SUM( - ( + col1 ) ) * 16 AS col2 FROM tab1
----
-1056

skipif mysql # not compatible
query I rowsort label-5538
SELECT SUM ( - ( + col1 ) ) * 16 AS col2 FROM tab1
----
-1056

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

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

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

skipif mysql # not compatible
query I rowsort label-5540
SELECT + ( + COUNT ( * ) ) * COUNT ( 31 ) FROM tab2
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 * col1 col0 FROM tab2
----
-1072
-1232
-816

query II rowsort
SELECT - col1 * - + col2 * - + col1 AS col0, + col2 + col2 FROM tab0
----
-308367
94
-4410
20
-99
198

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 94 - + 68 NOT BETWEEN col2 AND + 85
----

query I rowsort
SELECT DISTINCT 24 + 48 FROM tab2 cor0
----
72

query I rowsort
SELECT 84 * + col1 * 14 AS col1 FROM tab2 AS cor0
----
59976
78792
90552

onlyif mysql # aggregate syntax: 
query I rowsort label-5549
SELECT 19 * - MAX( - 6 ) FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-5549
SELECT 19 * - MAX ( - 6 ) FROM tab2 AS cor0
----
114

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 0 = - 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5552
SELECT ALL + MAX( ALL + col2 ) + MAX( - - 34 ) FROM tab1 cor0
----
130

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL + MAX ( ALL + col2 ) + MAX ( - - 34 ) FROM tab1 cor0
----
130

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE ( 55 + + 62 ) NOT BETWEEN col2 AND - 46 - - col1
----
23
40
58

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

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

query II rowsort
SELECT - col1 - col0 AS col1, 48 AS col2 FROM tab0
----
-108
48
-96
48
-98
48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5557
SELECT + COUNT( * ) - + 77 AS col0 FROM tab2 WHERE NULL < + 29 - col0
----
-77

skipif mysql # not compatible
query I rowsort label-5557
SELECT + COUNT ( * ) - + 77 AS col0 FROM tab2 WHERE NULL < + 29 - col0
----
-77

query I rowsort
SELECT DISTINCT - - 82 AS col2 FROM tab0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5559
SELECT ALL CAST( 15 AS SIGNED ) AS col2 FROM tab2
----
15
15
15

skipif mysql # not compatible
query I rowsort label-5559
SELECT ALL CAST ( 15 AS INTEGER ) AS col2 FROM tab2
----
15
15
15

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN - col2 + + - col2 AND + col1 + 16
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 86 FROM tab0 cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT - + ( + + 84 ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-5565
SELECT - + ( + + 84 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-252

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

query I rowsort
SELECT DISTINCT 95 FROM tab2 AS cor0 WHERE NOT 54 / col0 - + col2 IS NULL
----
95

query II rowsort
SELECT + + 29, + 19 AS col0 FROM tab2 AS cor0
----
29
19
29
19
29
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5569
SELECT - - MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5569
SELECT - - MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-77

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

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

query II rowsort
SELECT col2, + col2 * - + 46 FROM tab0 cor0
----
10
-460
47
-2162
99
-4554

onlyif mysql # DIV for integer division: 
query I rowsort label-5572
SELECT ALL ( 34 ) + + 72 DIV 13 FROM tab0 AS cor0
----
39
39
39

skipif mysql # not compatible
query I rowsort label-5572
SELECT ALL ( 34 ) + + 72 / 13 FROM tab0 AS cor0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT ALL + SUM( ALL 25 ) AS col0 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL + SUM ( ALL 25 ) AS col0 FROM tab1 AS cor0
----
75

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

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

query II rowsort
SELECT + - col1, 43 AS col1 FROM tab1 cor0
----
-14
43
-47
43
-5
43

query I rowsort
SELECT ALL - 22 FROM tab1 WHERE NOT - col0 < + - col2 * - - col0
----
-22
-22
-22

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 IS NOT NULL AND NULL BETWEEN col2 - 92 * - + 10 AND ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5579
SELECT + 29 * - col1 + - + CAST( - - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-2430
-30
-630

skipif mysql # not compatible
query I rowsort label-5579
SELECT + 29 * - col1 + - + CAST ( - - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-2430
-30
-630

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

query I rowsort
SELECT DISTINCT + - col1 + + 68 AS col0 FROM tab1 AS cor0
----
21
54
63

query II rowsort
SELECT DISTINCT + 63 + + col0 AS col2, col0 FROM tab1 AS cor0
----
114
51
148
85
154
91

query I rowsort
SELECT ALL - ( + - col1 ) + col0 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT + COUNT( * ) FROM tab2 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5584
SELECT + COUNT ( * ) FROM tab2 WHERE + col1 IS NULL
----
0

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

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

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

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

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

query I rowsort
SELECT ALL - ( - + 41 ) * - - col2 * - col2 AS col0 FROM tab0 AS cor0
----
-401841
-4100
-90569

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 + col2 - - + 63 col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5590
SELECT SUM( + 75 ) + - 24 * - COUNT( * ) FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-5590
SELECT SUM ( + 75 ) + - 24 * - COUNT ( * ) FROM tab1 AS cor0
----
297

query I rowsort
SELECT ALL - 89 FROM tab1 WHERE NULL = - - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT - SUM( ALL - - col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-5592
SELECT - SUM ( ALL - - col0 ) AS col0 FROM tab2
----
-185

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT DISTINCT SUM( ALL 21 ) AS col2 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-5594
SELECT DISTINCT SUM ( ALL 21 ) AS col2 FROM tab2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5595
SELECT + CAST( - CAST( col2 AS SIGNED ) AS SIGNED ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5595
SELECT + CAST ( - CAST ( col2 AS INTEGER ) AS INTEGER ) FROM tab2
----
-23
-40
-58

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 >= + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5600
SELECT COUNT( * ) * + - 21 * 30 FROM tab1
----
-1890

skipif mysql # not compatible
query I rowsort label-5600
SELECT COUNT ( * ) * + - 21 * 30 FROM tab1
----
-1890

onlyif mysql # aggregate syntax: 
query I rowsort label-5601
SELECT SUM( DISTINCT - ( + 42 ) ) * - COUNT( * ) FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-5601
SELECT SUM ( DISTINCT - ( + 42 ) ) * - COUNT ( * ) FROM tab2
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT - + ( - + COUNT( * ) ) * + + COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5602
SELECT - + ( - + COUNT ( * ) ) * + + COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL < NULL
----
0

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 4 NOT BETWEEN - + col2 AND - 60
----

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

query I rowsort
SELECT col2 * + + 41 + - + col0 AS col2 FROM tab1 AS cor0
----
2334
2697
3885

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

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

query I rowsort
SELECT ALL + 25 + + + col2 * + - col2 + - col0 AS col0 FROM tab1 AS cor0
----
-3541
-4690
-9242

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 + - col2 col0 FROM tab1 AS cor0
----
-18
-46
-9

query I rowsort
SELECT DISTINCT + 38 * + 18 * col0 + - col0 + + - 29 FROM tab2
----
31389
43683
51196

query I rowsort
SELECT ALL - 39 + - 81 - + + col0 AS col2 FROM tab1
----
-171
-205
-211

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

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

query II rowsort
SELECT + 89 * + col2 * col0, col2 FROM tab0
----
62745
47
77430
10
854667
99

query I rowsort
SELECT DISTINCT - 74 + - 49 FROM tab1 AS cor0
----
-123

query I rowsort
SELECT ALL - ( + 78 ) + col0 FROM tab0 AS cor0
----
-63
19
9

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5618
SELECT DISTINCT col0 + + CAST( NULL AS DECIMAL ) / - - 19 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5618
SELECT DISTINCT col0 + + CAST ( NULL AS REAL ) / - - 19 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT 80 + + + col2 FROM tab2
----
103
120
138

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT 70 + + COUNT( * ) AS col0 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-5621
SELECT 70 + + COUNT ( * ) AS col0 FROM tab0
----
73

query I rowsort
SELECT DISTINCT + 28 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
28

query I rowsort
SELECT DISTINCT 7 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
7

query I rowsort
SELECT ALL + 44 - + + col0 FROM tab1 AS cor0
----
-41
-47
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT DISTINCT - COUNT( * ) - - 75 - - ( + 10 ) FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-5625
SELECT DISTINCT - COUNT ( * ) - - 75 - - ( + 10 ) FROM tab0 AS cor0
----
82

query I rowsort
SELECT ALL - 54 FROM tab2 AS cor0 WHERE NOT - col1 <> NULL
----

query I rowsort
SELECT DISTINCT 36 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + col2 * + - 59 + - + col0 AS col1 FROM tab0 AS cor0
----
-2788
-5938
-677

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

query I rowsort
SELECT - - col1 * + - ( - - col0 ) AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5631
SELECT - 14 * + 54 * - COUNT( * ) AS col1 FROM tab2
----
2268

skipif mysql # not compatible
query I rowsort label-5631
SELECT - 14 * + 54 * - COUNT ( * ) AS col1 FROM tab2
----
2268

query I rowsort
SELECT DISTINCT - col0 + + col2 FROM tab2 WHERE ( + col1 ) < col2 * + col0
----
-17
-23
-24

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5636
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col0 col1, ( + - 30 ) AS col1 FROM tab2
----
NULL
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-5637
SELECT DISTINCT - col1 * - + col2 * + col0 * 96 * 42 + - col1 * - + ( - - col2 ) DIV + col2 + col1 * - + col0 + - col0 FROM tab0 AS cor0
----
230246211
38719103
73662747

skipif mysql # not compatible
query I rowsort label-5637
SELECT DISTINCT - col1 * - + col2 * + col0 * 96 * 42 + - col1 * - + ( - - col2 ) / + col2 + col1 * - + col0 + - col0 FROM tab0 AS cor0
----
230246211
38719103
73662747

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5638
SELECT + col1 / col0 + + 15, + col1 FROM tab0 cor0 WHERE 82 * - CAST( + + col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query II rowsort label-5638
SELECT + col1 / col0 + + 15, + col1 FROM tab0 cor0 WHERE 82 * - CAST ( + + col0 AS INTEGER ) IS NULL
----

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

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

query II rowsort
SELECT + ( + col1 ) / + + col1 * - + 79, 20 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col2 + + 25 AS col1 FROM tab2 cor0
----
-15
-33
2

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

query I rowsort
SELECT ALL + ( 67 ) + col0 AS col1 FROM tab2
----
113
131
142

query I rowsort
SELECT - 32 + - + 40 FROM tab2
----
-72
-72
-72

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5646
SELECT DISTINCT COUNT( * ) - + 78, + SUM( DISTINCT + 77 ) AS col0 FROM tab2
----
-75
77

skipif mysql # not compatible
query II rowsort label-5646
SELECT DISTINCT COUNT ( * ) - + 78, + SUM ( DISTINCT + 77 ) AS col0 FROM tab2
----
-75
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT ALL - 4 * - MIN( - 28 ) * - + 39 col2 FROM tab1
----
4368

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5647
SELECT ALL - 4 * - MIN ( - 28 ) * - + 39 col2 FROM tab1
----
4368

query II rowsort
SELECT - col1 AS col2, + col2 FROM tab2 WHERE NULL BETWEEN - 51 AND + 48
----

query II rowsort
SELECT - + 17 + - 69 * + col0 AS col1, col1 * - - col0 FROM tab2 AS cor0
----
-3191
2346
-4433
4928
-5192
5025

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT col1 * ( + 56 ) AS col2 FROM tab2 AS cor0
----
2856
3752
4312

query I rowsort
SELECT ALL + col2 * 14 + - 0 + ( + col0 ) FROM tab2 AS cor0
----
368
624
887

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 38, + col1, 41, col1, 55 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT - + COUNT( * ) * + 73 FROM tab1 cor0
----
-219

skipif mysql # not compatible
query I rowsort label-5655
SELECT - + COUNT ( * ) * + 73 FROM tab1 cor0
----
-219

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

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

query I rowsort
SELECT - ( 11 ) AS col1 FROM tab1 AS cor0
----
-11
-11
-11

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5659
SELECT ALL - 32 AS col0, 19 * COUNT( * ) col2 FROM tab2 AS cor0
----
-32
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5659
SELECT ALL - 32 AS col0, 19 * COUNT ( * ) col2 FROM tab2 AS cor0
----
-32
57

query I rowsort
SELECT DISTINCT + 67 AS col2 FROM tab1 cor0
----
67

query I rowsort
SELECT ALL 44 AS col2 FROM tab2 WHERE NULL IS NULL
----
44
44
44

query I rowsort
SELECT + col2 * - + 54 FROM tab2
----
-1242
-2160
-3132

query I rowsort
SELECT - 97 * + 31 FROM tab1
----
-3007
-3007
-3007

onlyif mysql # aggregate syntax: 
query I rowsort label-5664
SELECT DISTINCT ( - COUNT( * ) ) AS col2 FROM tab2 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT ( - COUNT ( * ) ) AS col2 FROM tab2 WHERE NULL <= NULL
----
0

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

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

query I rowsort
SELECT DISTINCT 16 * col1 AS col2 FROM tab2
----
1072
1232
816

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5667
SELECT - COUNT( * ) + 59 / - MAX( ALL - col0 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5667
SELECT - COUNT ( * ) + 59 / - MAX ( ALL - col0 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 86 AND + + col0
----

query II rowsort
SELECT - - 92 AS col0, - 54 FROM tab1 cor0
----
92
-54
92
-54
92
-54

query I rowsort
SELECT DISTINCT - + 17 + - 74 FROM tab0 AS cor0
----
-91

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

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

query II rowsort
SELECT DISTINCT 1 AS col2, col1 * + + 40 AS col2 FROM tab1
----
1
1880
1
200
1
560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5675
SELECT ALL - ( + + 60 ) + - - 54 - + COUNT( * ) + + 86 * + MAX( - 50 ) + + - MIN( DISTINCT + + ( + col1 ) ) DIV + - 34 AS col1 FROM tab1
----
-4309

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL - ( + + 60 ) + - - 54 - + COUNT ( * ) + + 86 * + MAX ( - 50 ) + + - MIN ( DISTINCT + + ( + col1 ) ) / + - 34 AS col1 FROM tab1
----
-4309

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5676
SELECT DISTINCT + CAST( - ( - - col1 ) AS SIGNED ) * - + col0 - - col0 AS col1 FROM tab0
----
1230
1914
194

skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT + CAST ( - ( - - col1 ) AS INTEGER ) * - + col0 - - col0 AS col1 FROM tab0
----
1230
1914
194

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

query I rowsort
SELECT ALL - col2 - ( + 51 ) FROM tab0
----
-150
-61
-98

query I rowsort
SELECT col0 - 87 AS col0 FROM tab2
----
-12
-23
-41

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE 51 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 + + 95 BETWEEN col2 - + 27 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + - col2 + - + col1 * + col1 FROM tab1 AS cor0
----
-2277
-292
-84

query I rowsort
SELECT - 70 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5684
SELECT ALL - + col1 / + 50 col2 FROM tab2 AS cor0
----
-1
-1
-1

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

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

query I rowsort
SELECT + 26 * col0 + + col0 * + 94 AS col1 FROM tab1 AS cor0
----
10200
10920
6120

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 62 < NULL
----

query I rowsort
SELECT 49 * 51 AS col0 FROM tab0
----
2499
2499
2499

query I rowsort
SELECT DISTINCT + 37 * col2 AS col1 FROM tab1
----
2183
2516
3552

query I rowsort
SELECT ALL ( - - 35 ) * - 18 * - col2 FROM tab1
----
37170
42840
60480

query I rowsort
SELECT - col0 * - col0 + col0 / - col1 + ( 18 ) AS col2 FROM tab1 WHERE NOT ( NOT NULL >= NULL )
----

query I rowsort
SELECT DISTINCT 69 * - col1 AS col0 FROM tab0
----
-1449
-5589
-69

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5696
SELECT ALL + MAX( col1 ), COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
81
3

skipif mysql # not compatible
query II rowsort label-5696
SELECT ALL + MAX ( col1 ), COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
81
3

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

query II rowsort
SELECT ALL col0, col2 + - + col0 FROM tab2 AS cor0
----
46
-23
64
-24
75
-17

query II rowsort
SELECT DISTINCT + ( col0 ) + col2, + 33 AS col1 FROM tab1 AS cor0
----
144
33
147
33
159
33

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

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

query I rowsort
SELECT + col2 * - ( col2 ) - - col1 FROM tab2
----
-1523
-3297
-478

query I rowsort
SELECT + col1 * 93 - - 46 AS col1 FROM tab2
----
4789
6277
7207

onlyif mysql # aggregate syntax: 
query I rowsort label-5704
SELECT DISTINCT + 2 - + COUNT( * ) * + COUNT( * ) FROM tab0 WHERE NOT - col0 * + 48 > NULL
----
2

skipif mysql # not compatible
query I rowsort label-5704
SELECT DISTINCT + 2 - + COUNT ( * ) * + COUNT ( * ) FROM tab0 WHERE NOT - col0 * + 48 > NULL
----
2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 * col1 + + col2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5706
SELECT - CAST( col0 AS SIGNED ) * - col1 + - 57 * + col0 FROM tab2
----
-276
1280
750

skipif mysql # not compatible
query I rowsort label-5706
SELECT - CAST ( col0 AS INTEGER ) * - col1 + - 57 * + col0 FROM tab2
----
-276
1280
750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 col0 FROM tab0
----
59
59
59

query I rowsort
SELECT DISTINCT 34 * 8 AS col0 FROM tab1
----
272

query I rowsort
SELECT ALL - col2 - + 3 * - col0 FROM tab0
----
-2
192
251

query I rowsort
SELECT + col0 * - ( col2 ) + - ( col2 ) FROM tab2
----
-1081
-2600
-4408

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5713
SELECT DISTINCT - 40 + + ( CAST( NULL AS DECIMAL ) ) * 28 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5713
SELECT DISTINCT - 40 + + ( CAST ( NULL AS REAL ) ) * 28 FROM tab1
----
NULL

query I rowsort
SELECT col0 * 76 FROM tab2
----
3496
4864
5700

query I rowsort
SELECT - 92 * 65 FROM tab1
----
-5980
-5980
-5980

onlyif mysql # aggregate syntax: 
query I rowsort label-5716
SELECT COUNT( * ) col0 FROM tab2 WHERE NOT NULL IN ( + col1 - col1 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5716
SELECT COUNT ( * ) col0 FROM tab2 WHERE NOT NULL IN ( + col1 - col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5717
SELECT DISTINCT 32 * + COUNT( * ) FROM tab0 WHERE NULL BETWEEN NULL AND ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5717
SELECT DISTINCT 32 * + COUNT ( * ) FROM tab0 WHERE NULL BETWEEN NULL AND ( - col2 )
----
0

query I rowsort
SELECT 89 * 16 AS col2 FROM tab1
----
1424
1424
1424

query I rowsort
SELECT DISTINCT + col2 + + 0 FROM tab2
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 IN ( - 52 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5721
SELECT + CAST( + col2 AS SIGNED ) * col2 + col2 AS col2 FROM tab2
----
1640
3422
552

skipif mysql # not compatible
query I rowsort label-5721
SELECT + CAST ( + col2 AS INTEGER ) * col2 + col2 AS col2 FROM tab2
----
1640
3422
552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5722
SELECT ALL - 14 / CAST( NULL AS SIGNED ) col0 FROM tab2 WHERE NOT NULL IN ( + col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5722
SELECT ALL - 14 / CAST ( NULL AS INTEGER ) col0 FROM tab2 WHERE NOT NULL IN ( + col0 )
----

query I rowsort
SELECT ALL 8 * 64 + 43 AS col1 FROM tab1 WHERE NOT + col0 + + col1 IS NULL
----
555
555
555

query I rowsort
SELECT 91 AS col1 FROM tab1 WHERE NOT col1 / col1 IS NULL
----
91
91
91

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5726
SELECT ALL * FROM tab0 WHERE NOT - col0 + - CAST( + col0 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5726
SELECT ALL * FROM tab0 WHERE NOT - col0 + - CAST ( + col0 AS REAL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 51 NOT IN ( + col1 )
----

query I rowsort
SELECT ALL 60 - 47 AS col2 FROM tab2 AS cor0
----
13
13
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5729
SELECT ALL 99 DIV - COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5729
SELECT ALL 99 / - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
-11

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5731
SELECT DISTINCT + COUNT( * ) DIV ( + COUNT( * ) ) AS col2 FROM tab0 AS cor0 WHERE - col1 * - 48 NOT BETWEEN 81 AND ( - col2 + - 82 )
----
1

skipif mysql # not compatible
query I rowsort label-5731
SELECT DISTINCT + COUNT ( * ) / ( + COUNT ( * ) ) AS col2 FROM tab0 AS cor0 WHERE - col1 * - 48 NOT BETWEEN 81 AND ( - col2 + - 82 )
----
1

query I rowsort
SELECT + - 76 AS col1 FROM tab2 AS cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT DISTINCT - 59 * - COUNT( * ) FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-5733
SELECT DISTINCT - 59 * - COUNT ( * ) FROM tab1 AS cor0
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-5734
SELECT ALL - 83 + COUNT( * ) FROM tab1 cor0 WHERE NOT NULL IN ( + col1 + + 75 * - col0 )
----
-83

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL - 83 + COUNT ( * ) FROM tab1 cor0 WHERE NOT NULL IN ( + col1 + + 75 * - col0 )
----
-83

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT COUNT( * ) * 16 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-5736
SELECT COUNT ( * ) * 16 FROM tab0 AS cor0
----
48

onlyif mysql # DIV for integer division: 
query I rowsort label-5737
SELECT DISTINCT col2 DIV 86 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5737
SELECT DISTINCT col2 / 86 AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - col0 * + 9 * 34 AS col0 FROM tab0
----
-26622
-29682
-4590

query I rowsort
SELECT - 6 * - col1 FROM tab2 WHERE NOT 19 * col1 + 64 NOT BETWEEN ( col0 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5740
SELECT ALL 17 DIV + + col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL 17 / + + col2 AS col0 FROM tab1
----
0
0
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5743
SELECT + MIN( ALL + + CAST( - CAST( col2 AS SIGNED ) AS SIGNED ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-5743
SELECT + MIN ( ALL + + CAST ( - CAST ( col2 AS INTEGER ) AS INTEGER ) ) FROM tab2
----
-58

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL NOT BETWEEN ( + 54 + - col0 ) AND col1
----

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE ( - - 49 ) IS NOT NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 78 - - 7 < 99 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 * col0 + col0 * + 96 AS col2 FROM tab0
----
-97
1215
783

query I rowsort
SELECT 26 + - ( col0 ) AS col0 FROM tab2 WHERE ( ( col0 * 20 ) IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5749
SELECT DISTINCT + col0 - col2 DIV + + 41 AS col1 FROM tab1
----
49
84
90

skipif mysql # not compatible
query I rowsort label-5749
SELECT DISTINCT + col0 - col2 / + + 41 AS col1 FROM tab1
----
49
84
90

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( col1 / col1 ) AND - 55
----

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE ( + col0 * + col1 * 78 ) <= - col2
----

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

query I rowsort
SELECT DISTINCT 39 FROM tab0 AS cor0 WHERE NULL BETWEEN ( - + col0 ) AND - col2 OR ( NULL ) NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5755
SELECT col1, CAST( + col0 AS SIGNED ) * + col2 AS col0 FROM tab2 AS cor0
----
51
1058
67
4350
77
2560

skipif mysql # not compatible
query II rowsort label-5755
SELECT col1, CAST ( + col0 AS INTEGER ) * + col2 AS col0 FROM tab2 AS cor0
----
51
1058
67
4350
77
2560

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE - col0 + + col1 NOT BETWEEN + col0 AND ( col0 )
----
3

skipif mysql # not compatible
query I rowsort label-5756
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE - col0 + + col1 NOT BETWEEN + col0 AND ( col0 )
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT DISTINCT 47 - + ( + - COUNT( * ) ) FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-5758
SELECT DISTINCT 47 - + ( + - COUNT ( * ) ) FROM tab1 AS cor0
----
50

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE - 71 IS NULL
----

query I rowsort
SELECT ALL - 94 + + ( - ( col2 ) ) FROM tab2
----
-117
-134
-152

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5761
SELECT DISTINCT + CAST ( + COUNT ( * ) AS INTEGER ) + + - 25 col1 FROM tab1
----
-22

query I rowsort
SELECT + col2 - + 37 AS col1 FROM tab0
----
-27
10
62

query I rowsort
SELECT + ( - col2 ) - + 69 AS col0 FROM tab0
----
-116
-168
-79

query I rowsort
SELECT - col1 - + 72 AS col2 FROM tab1
----
-119
-77
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-5765
SELECT - 48 DIV + + col2 FROM tab2 WHERE ( NULL ) IS NULL
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-5765
SELECT - 48 / + + col2 FROM tab2 WHERE ( NULL ) IS NULL
----
-1
-2
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5766
SELECT ALL ( + - COUNT( * ) ) - + - MIN( - CAST( + 89 AS SIGNED ) ) AS col2 FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-5766
SELECT ALL ( + - COUNT ( * ) ) - + - MIN ( - CAST ( + 89 AS INTEGER ) ) AS col2 FROM tab1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 3 NOT BETWEEN + - 43 AND - col1 * + col0
----
0

skipif mysql # not compatible
query I rowsort label-5767
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 3 NOT BETWEEN + - 43 AND - col1 * + col0
----
0

query I rowsort
SELECT - col2 * + + col1 * + + ( - 17 ) AS col1 FROM tab1 AS cor0
----
22848
5015
54332

query I rowsort
SELECT ALL + - col0 * + 10 + - col2 FROM tab0 AS cor0
----
-1069
-197
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-5770
SELECT + 88 * 7 * - + 39 * + - COUNT( * ) FROM tab2 cor0
----
72072

skipif mysql # not compatible
query I rowsort label-5770
SELECT + 88 * 7 * - + 39 * + - COUNT ( * ) FROM tab2 cor0
----
72072

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5772
SELECT + COUNT ( * ) col2 FROM tab1 cor0 WHERE NOT NULL = - col2
----
0

query I rowsort
SELECT 15 FROM tab1 WHERE NOT + 99 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 76 AS col1 FROM tab2 cor0
----
-76

query I rowsort
SELECT ALL - col0 * col1 + - - 42 AS col0 FROM tab1 AS cor0
----
-383
-4235
-672

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5777
SELECT - col0 AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
-46
NULL
-64
NULL
-75
NULL

skipif mysql # not compatible
query II rowsort label-5777
SELECT - col0 AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
-46
NULL
-64
NULL
-75
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT ALL 42 + - COUNT( + 90 ) FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL 42 + - COUNT ( + 90 ) FROM tab2 AS cor0
----
39

query I rowsort
SELECT - 60 * + col0 FROM tab0
----
-5220
-5820
-900

query I rowsort
SELECT DISTINCT col0 + + - col0 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5784
SELECT DISTINCT + ( - COUNT( + 49 ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5784
SELECT DISTINCT + ( - COUNT ( + 49 ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT DISTINCT ( MIN( + col2 ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-5785
SELECT DISTINCT ( MIN ( + col2 ) ) FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT ALL + 10 - - - COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL <= NULL
----
10

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL + 10 - - - COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL <= NULL
----
10

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT ALL 34 * + + MIN( col1 ) FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-5789
SELECT ALL 34 * + + MIN ( col1 ) FROM tab0
----
34

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

query I rowsort
SELECT ALL - col1 * - + 69 FROM tab0 AS cor0
----
1449
5589
69

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <= - 65
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5794
SELECT DISTINCT COUNT( DISTINCT + - col1 ) + + 30 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT COUNT ( DISTINCT + - col1 ) + + 30 FROM tab1 AS cor0
----
33

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

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

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

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 AS cor0 WHERE 56 IS NOT NULL
----
23
40
58

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

query I rowsort
SELECT DISTINCT - ( 15 ) FROM tab2 WHERE NULL = NULL
----

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

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

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

query I rowsort
SELECT 32 - col0 FROM tab0
----
-55
-65
17

query I rowsort
SELECT - + ( - - 69 ) - - - col2 + - 34 AS col0 FROM tab1 cor0
----
-162
-171
-199

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

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

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

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

query II rowsort
SELECT ALL col1 + + col1, col0 AS col2 FROM tab2 AS cor0
----
102
46
134
75
154
64

query I rowsort
SELECT ALL + 74 AS col1 FROM tab0 cor0 WHERE NOT NULL <= + col1
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5809
SELECT - - 49 + - col1 * ( + col0 ) DIV col0 + - col2 + + - col0 * - col2 FROM tab2 AS cor0
----
1033
2492
4274

skipif mysql # not compatible
query I rowsort label-5809
SELECT - - 49 + - col1 * ( + col0 ) / col0 + - col2 + + - col0 * - col2 FROM tab2 AS cor0
----
1033
2492
4274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5810
SELECT ALL col2 + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 + + 45 IN ( col0 * + 61 / - col2 * - + col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5810
SELECT ALL col2 + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT col2 + + 45 IN ( col0 * + 61 / - col2 * - + col1 )
----
NULL
NULL
NULL

query I rowsort
SELECT + + ( + col2 ) + col0 - - col2 + col0 AS col2 FROM tab0 AS cor0
----
124
194
392

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

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

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

query I rowsort
SELECT col1 FROM tab0 WHERE ( NULL ) IS NULL
----
1
21
81

query II rowsort
SELECT DISTINCT col0 AS col0, - col1 FROM tab2
----
46
-51
64
-77
75
-67

query I rowsort
SELECT ALL col0 * + - col0 * + - col2 * col1 FROM tab2 WHERE NOT NULL BETWEEN + 87 AND NULL
----

query I rowsort
SELECT ALL ( - col1 ) * + + col2 + - 5 AS col1 FROM tab0
----
-104
-215
-3812

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5818
SELECT col2 AS col0, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-5818
SELECT col2 AS col0, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query II rowsort
SELECT - 97 AS col1, 51 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5820
SELECT + ( - 11 ) + + 22 * + 59, + AVG ( ALL - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
1287
NULL

skipif mysql # not compatible
query II rowsort label-5820
SELECT + ( - 11 ) + + 22 * + 59, + AVG ( ALL - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
1287
NULL

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( - col0 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col1 * ( col2 ) col2 FROM tab0 cor0
----
198
220
3854

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

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

query I rowsort
SELECT + ( + + col1 ) * + col0 * - + col1 FROM tab0
----
-38367
-97
-98415

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5829
SELECT ALL + 74 + + COUNT( * ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5829
SELECT ALL + 74 + + COUNT ( * ) AS col0 FROM tab2
----
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - + 68 * + - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5831
SELECT col0 AS col2, CAST( NULL AS SIGNED ) FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-5831
SELECT col0 AS col2, CAST ( NULL AS INTEGER ) FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5832
SELECT + 58 * + COUNT( * ) col1 FROM tab2
----
174

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5833
SELECT col0 DIV + - col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5833
SELECT col0 / + - col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE NOT ( + - col2 ) IS NULL
----
-23
-40
-58

query I rowsort
SELECT - 25 * - - col2 FROM tab2
----
-1000
-1450
-575

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5836
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + col1 * + CAST( NULL AS SIGNED ) * + + 33, + col2, - ( + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-5836
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + col1 * + CAST ( NULL AS INTEGER ) * + + 33, + col2, - ( + col2 ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5838
SELECT DISTINCT + COUNT( DISTINCT - col0 ) * + 22 AS col1 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-5838
SELECT DISTINCT + COUNT ( DISTINCT - col0 ) * + 22 AS col1 FROM tab0 AS cor0
----
66

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

skipif mysql # not compatible
query I rowsort label-5839
SELECT - col0 / - col1 AS col1 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
0
0
1

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

query I rowsort
SELECT ALL 51 + + col1 FROM tab1 AS cor0
----
56
65
98

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 = - 0
----

query I rowsort
SELECT + col2 + - + col0 AS col0 FROM tab0
----
-77
2
32

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

skipif mysql # not compatible
query I rowsort label-5844
SELECT ALL + COUNT ( * ) + - - CAST ( 38 AS INTEGER ) AS col2 FROM tab0
----
41

query I rowsort
SELECT - 43 + + - col2 * + ( + col1 ) * + - col0 + - col2 AS col2 FROM tab1
----
24973
290725
68405

query I rowsort
SELECT 2 * - 14 * + col2 FROM tab1 AS cor0 WHERE NULL BETWEEN col1 / col1 AND + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5847
SELECT * FROM tab0 AS cor0 WHERE ( + + CAST( + - col0 AS SIGNED ) ) BETWEEN NULL AND - 80 * col0
----

skipif mysql # not compatible
query III rowsort label-5847
SELECT * FROM tab0 AS cor0 WHERE ( + + CAST ( + - col0 AS INTEGER ) ) BETWEEN NULL AND - 80 * col0
----

query I rowsort
SELECT - col1 * - - 66 AS col1 FROM tab2 AS cor0
----
-3366
-4422
-5082

onlyif mysql # aggregate syntax: 
query II rowsort label-5849
SELECT ALL - COUNT( * ) AS col1, 19 AS col1 FROM tab1 AS cor0
----
-3
19

skipif mysql # not compatible
query II rowsort label-5849
SELECT ALL - COUNT ( * ) AS col1, 19 AS col1 FROM tab1 AS cor0
----
-3
19

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5851
SELECT 83 DIV - col2 col0 FROM tab2
----
-1
-2
-3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5852
SELECT ALL col1 * + + col1 col2 FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) / - col0 NOT BETWEEN + col2 AND + - CAST( 43 AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5852
SELECT ALL col1 * + + col1 col2 FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) / - col0 NOT BETWEEN + col2 AND + - CAST ( 43 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5853
SELECT COUNT( * ), + 47 AS col2 FROM tab2 WHERE NOT 4 <= ( - + col0 * - col1 / col1 )
----
0
47

skipif mysql # not compatible
query II rowsort label-5853
SELECT COUNT ( * ), + 47 AS col2 FROM tab2 WHERE NOT 4 <= ( - + col0 * - col1 / col1 )
----
0
47

query I rowsort
SELECT ALL - col0 * + ( - col1 ) AS col1 FROM tab2
----
2346
4928
5025

onlyif mysql # DIV for integer division: 
query I rowsort label-5855
SELECT + col2 DIV 93 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5855
SELECT + col2 / 93 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 54 AS col1 FROM tab1 WHERE - col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 66 IS NOT NULL
----

query II rowsort
SELECT ALL 25 + - col0, col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-21
23
-39
40
-50
58

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

query I rowsort
SELECT DISTINCT + 17 FROM tab1 AS cor0 WHERE NOT ( NOT 84 IS NOT NULL )
----
17

query I rowsort
SELECT 89 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - - 88 AS col2, 36 FROM tab0 AS cor0
----
88
36
88
36
88
36

query II rowsort
SELECT + col1 AS col1, + col0 FROM tab2 AS cor0
----
51
46
67
75
77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5864
SELECT ALL CAST( NULL AS SIGNED ) + - 65 + - + 95 + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5864
SELECT ALL CAST ( NULL AS INTEGER ) + - 65 + - + 95 + - col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT 78 + 38 AS col2 FROM tab1 AS cor0
----
116

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5867
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 NOT IN ( col2 * + CAST( - + col2 AS SIGNED ) / - 99 + + - 10 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5867
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 NOT IN ( col2 * + CAST ( - + col2 AS INTEGER ) / - 99 + + - 10 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 76 IS NOT NULL
----

query I rowsort
SELECT ALL 68 + + + 85 AS col2 FROM tab1
----
153
153
153

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT 61 + - SUM( DISTINCT + - col2 ) + 65 FROM tab0
----
282

skipif mysql # not compatible
query I rowsort label-5870
SELECT 61 + - SUM ( DISTINCT + - col2 ) + 65 FROM tab0
----
282

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5871
SELECT DISTINCT CAST( - col0 AS SIGNED ) * 62 AS col0 FROM tab1 WHERE NOT + + CAST( NULL AS DECIMAL ) * col0 NOT BETWEEN col2 * - col0 AND - 84
----

skipif mysql # not compatible
query I rowsort label-5871
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * 62 AS col0 FROM tab1 WHERE NOT + + CAST ( NULL AS REAL ) * col0 NOT BETWEEN col2 * - col0 AND - 84
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5872
SELECT * FROM tab1 WHERE ( NULL ) IN ( col1 / col2 * + col2 * + - col0 + + ( col1 ) - CAST( + 33 AS SIGNED ) * + + col0 )
----

skipif mysql # not compatible
query III rowsort label-5872
SELECT * FROM tab1 WHERE ( NULL ) IN ( col1 / col2 * + col2 * + - col0 + + ( col1 ) - CAST ( + 33 AS INTEGER ) * + + col0 )
----

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

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

query I rowsort
SELECT - col2 + + - ( + col0 ) FROM tab2
----
-104
-133
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-5875
SELECT - MIN( + col1 ) * COUNT( ALL - col0 ) + + COUNT( * ) AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5875
SELECT - MIN ( + col1 ) * COUNT ( ALL - col0 ) + + COUNT ( * ) AS col1 FROM tab0 cor0
----
0

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 47 IN ( + 1 )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

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

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

query I rowsort
SELECT DISTINCT - 28 - col2 + - 93 AS col0 FROM tab0 AS cor0
----
-131
-168
-220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5879
SELECT CAST( + - col2 AS SIGNED ) + + + ( 22 ) FROM tab1 AS cor0
----
-37
-46
-74

skipif mysql # not compatible
query I rowsort label-5879
SELECT CAST ( + - col2 AS INTEGER ) + + + ( 22 ) FROM tab1 AS cor0
----
-37
-46
-74

query II rowsort
SELECT + + 13 AS col0, col2 * + - 3 + + col1 + 16 FROM tab1 AS cor0
----
13
-141
13
-156
13
-258

query I rowsort
SELECT + + 9 * + col0 FROM tab0 AS cor0
----
135
783
873

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT ALL SUM( - - 10 ) FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL SUM ( - - 10 ) FROM tab1 AS cor0
----
30

onlyif mysql # DIV for integer division: 
query I rowsort label-5883
SELECT DISTINCT + col1 DIV - + col0 * + 2 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5883
SELECT DISTINCT + col1 / - + col0 * + 2 AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5884
SELECT col1 DIV - 90 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5884
SELECT col1 / - 90 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT 70 * + COUNT( * ) AS col1 FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-5885
SELECT 70 * + COUNT ( * ) AS col1 FROM tab1
----
210

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5886
SELECT DISTINCT 59 / + + SUM( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5886
SELECT DISTINCT 59 / + + SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5887
SELECT + col1 / - + col2 AS col1 FROM tab2
----
-1
-1
-2

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

skipif mysql # not compatible
query I rowsort label-5888
SELECT - MIN ( DISTINCT - + col0 ) FROM tab0
----
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT + MAX( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 * col2 ) = - 83 + + col1
----
-10

skipif mysql # not compatible
query I rowsort label-5890
SELECT + MAX ( DISTINCT - col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col2 * col2 ) = - 83 + + col1
----
-10

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

query I rowsort
SELECT 39 * - - col0 + - 98 * + 64 FROM tab0
----
-2489
-2879
-5687

onlyif mysql # aggregate syntax: 
query I rowsort label-5893
SELECT MAX( DISTINCT - col1 ) * + 32 FROM tab2 AS cor0
----
-1632

skipif mysql # not compatible
query I rowsort label-5893
SELECT MAX ( DISTINCT - col1 ) * + 32 FROM tab2 AS cor0
----
-1632

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 95 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 79 > + ( + col2 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5896
SELECT DISTINCT + col0 + + CAST ( NULL AS INTEGER ) * + - col0 * CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT ALL COUNT( * ) + + - COUNT( * ) AS col2 FROM tab2 WHERE NOT + 4 = + col0
----
0

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL COUNT ( * ) + + - COUNT ( * ) AS col2 FROM tab2 WHERE NOT + 4 = + col0
----
0

query I rowsort
SELECT ALL + 29 + - + col0 AS col1 FROM tab0
----
-58
-68
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5900
SELECT ALL CAST( col2 AS SIGNED ) col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5900
SELECT ALL CAST ( col2 AS INTEGER ) col2 FROM tab2
----
23
40
58

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5902
SELECT ALL 47 DIV + col0 - - - 59, 50 AS col1 FROM tab2
----
-58
50
-59
50
-59
50

skipif mysql # not compatible
query II rowsort label-5902
SELECT ALL 47 / + col0 - - - 59, 50 AS col1 FROM tab2
----
-58
50
-59
50
-59
50

query II rowsort
SELECT DISTINCT + - 32, - col2 * - 90 AS col0 FROM tab2 cor0
----
-32
2070
-32
3600
-32
5220

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

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

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

query I rowsort
SELECT + col1 * + col1 * - col1 AS col0 FROM tab2 AS cor0
----
-132651
-300763
-456533

query I rowsort
SELECT DISTINCT 58 / col1 * - col0 FROM tab0 cor0 WHERE NOT - col1 * - col2 * + col0 > - - 90 - - col1
----

query I rowsort
SELECT 50 * - 14 AS col2 FROM tab2
----
-700
-700
-700

query I rowsort
SELECT - col2 * - + 41 AS col2 FROM tab0
----
1927
4059
410

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

query I rowsort
SELECT ALL + - 27 FROM tab2 cor0
----
-27
-27
-27

query I rowsort
SELECT col0 * + - col1 + - + ( - + ( + + col0 ) ) FROM tab2 AS cor0
----
-2300
-4864
-4950

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5914
SELECT ALL CAST( ( - 25 ) AS SIGNED ) DIV - col1 + + col0 col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5914
SELECT ALL CAST ( ( - 25 ) AS INTEGER ) / - col1 + + col0 col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5915
SELECT col2 AS col1, - 59 / - ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-5915
SELECT col2 AS col1, - 59 / - ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
10
NULL
47
NULL
99
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5917
SELECT + COUNT( * ), + CAST( COUNT( * ) AS SIGNED ) FROM tab0, tab0 AS cor0
----
9
9

skipif mysql # not compatible
query II rowsort label-5917
SELECT + COUNT ( * ), + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0, tab0 AS cor0
----
9
9

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5919
SELECT ALL - ( + 24 ), + 44 - 83 * - ( - SUM( + + col2 ) ) * + 98 AS col0 FROM tab0 AS cor0
----
-24
-1268860

skipif mysql # not compatible
query II rowsort label-5919
SELECT ALL - ( + 24 ), + 44 - 83 * - ( - SUM ( + + col2 ) ) * + 98 AS col0 FROM tab0 AS cor0
----
-24
-1268860

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT DISTINCT + + 11 + - MIN( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-5920
SELECT DISTINCT + + 11 + - MIN ( ALL col2 ) AS col2 FROM tab1 AS cor0
----
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 * - col1 col0 FROM tab2 AS cor0
----
-3162
-4154
-4774

query I rowsort
SELECT + col2 * + col1 + + 25 AS col2 FROM tab2 AS cor0
----
1198
3105
3911

query I rowsort
SELECT col0 + - 50 FROM tab0 AS cor0
----
-35
37
47

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

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

query I rowsort
SELECT - col1 + - + 91 FROM tab2 AS cor0
----
-142
-158
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-5926
SELECT 82 + + MAX( + 1 ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-5926
SELECT 82 + + MAX ( + 1 ) FROM tab2
----
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * - 7 + - col0 * - - col0 * - + col2 AS col0, - col0 col0 FROM tab2
----
163301
-64
325781
-75
48311
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5928
SELECT DISTINCT COUNT( * ) - - MAX( ALL - col1 ) AS col0 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-5928
SELECT DISTINCT COUNT ( * ) - - MAX ( ALL - col1 ) AS col0 FROM tab1
----
-2

query I rowsort
SELECT DISTINCT col0 * + 81 FROM tab2
----
3726
5184
6075

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT COUNT( * ) * MAX( col1 ) FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-5930
SELECT COUNT ( * ) * MAX ( col1 ) FROM tab2
----
231

query I rowsort
SELECT ALL + 34 - + 66 FROM tab1 AS cor0
----
-32
-32
-32

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

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

query I rowsort
SELECT ALL col1 * - - col1 * col0 FROM tab1 WHERE + col2 - + col1 BETWEEN - col0 AND + col0
----
201019
2125

onlyif mysql # DIV for integer division: 
query I rowsort label-5934
SELECT col2 DIV 33 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5934
SELECT col2 / 33 FROM tab0
----
0
1
3

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

query I rowsort
SELECT ALL ( - col0 ) * + col0 - + - 50 FROM tab2 AS cor0
----
-2066
-4046
-5575

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

query I rowsort
SELECT DISTINCT - 42 * + 78 + col1 * - col0 AS col1 FROM tab2 cor0
----
-5622
-8204
-8301

query I rowsort
SELECT DISTINCT - + 60 + + col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-39
-59
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT - MIN( + col0 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5940
SELECT - MIN ( + col0 ) AS col0 FROM tab0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5941
SELECT ALL col0 DIV - col2 col1 FROM tab1
----
-1
-1
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT - SUM( DISTINCT + + col2 ) FROM tab1 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5942
SELECT - SUM ( DISTINCT + + col2 ) FROM tab1 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5943
SELECT 60 DIV - - COUNT( ALL + - col2 ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-5943
SELECT 60 / - - COUNT ( ALL + - col2 ) FROM tab2
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5944
SELECT - + MAX( DISTINCT + col1 ) FROM tab2 WHERE NOT ( 61 NOT BETWEEN + 20 AND - 75 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5944
SELECT - + MAX ( DISTINCT + col1 ) FROM tab2 WHERE NOT ( 61 NOT BETWEEN + 20 AND - 75 )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 44 = NULL
----

query I rowsort
SELECT - col1 * + 55 AS col0 FROM tab2
----
-2805
-3685
-4235

query I rowsort
SELECT DISTINCT 99 * + + 45 AS col2 FROM tab0 AS cor0
----
4455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5948
SELECT ALL - - 56 * col1 + - CAST( NULL AS SIGNED ) + + 28 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - 56 + - - 68 AS col0 FROM tab2
----
12
12
12

query III rowsort
SELECT * FROM tab1 WHERE - 64 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - 46 * ( + col2 ) FROM tab1 AS cor0
----
-2714
-3128
-4416

query I rowsort
SELECT ALL - col2 * + 63 FROM tab0 AS cor0
----
-2961
-6237
-630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5953
SELECT DISTINCT + CAST( col0 AS SIGNED ) col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5953
SELECT DISTINCT + CAST ( col0 AS INTEGER ) col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT - - 40 * + 85 * - col1 * + col0 FROM tab0 cor0
----
-329800
-4131000
-6211800

query I rowsort
SELECT DISTINCT - 87 + - + col1 AS col2 FROM tab2 AS cor0
----
-138
-154
-164

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

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

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

query I rowsort
SELECT ALL - 98 + - 70 AS col0 FROM tab1 AS cor0
----
-168
-168
-168

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5960
SELECT ALL 93 + COUNT( * ) col1 FROM tab0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5960
SELECT ALL 93 + COUNT ( * ) col1 FROM tab0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT ALL - 22 - - COUNT( * ) * - 13 FROM tab2
----
-61

skipif mysql # not compatible
query I rowsort label-5961
SELECT ALL - 22 - - COUNT ( * ) * - 13 FROM tab2
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT + SUM( ALL - + 88 ) AS col2 FROM tab0
----
-264

skipif mysql # not compatible
query I rowsort label-5962
SELECT + SUM ( ALL - + 88 ) AS col2 FROM tab0
----
-264

query II rowsort
SELECT + col0 - 17 AS col0, - col1 FROM tab2
----
29
-51
47
-77
58
-67

query I rowsort
SELECT + col2 - - 77 FROM tab1
----
136
145
173

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT COUNT( * ) - - 20 col2 FROM tab0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5965
SELECT COUNT ( * ) - - 20 col2 FROM tab0
----
23

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5966
SELECT * FROM tab0 WHERE - CAST( col2 AS DECIMAL ) + + 44 <= col2
----
15
81
47
97
1
99

skipif mysql # not compatible
query III rowsort label-5966
SELECT * FROM tab0 WHERE - CAST ( col2 AS REAL ) + + 44 <= col2
----
15
81
47
97
1
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 39 > NULL
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5969
SELECT DISTINCT col2 DIV 29 - col0 * col1 * + ( + col1 ) AS col0, col1 FROM tab0
----
-38367
21
-94
1
-98414
81

skipif mysql # not compatible
query II rowsort label-5969
SELECT DISTINCT col2 / 29 - col0 * col1 * + ( + col1 ) AS col0, col1 FROM tab0
----
-38367
21
-94
1
-98414
81

query I rowsort
SELECT - 93 * col2 FROM tab1 cor0 WHERE col2 IS NOT NULL
----
-5487
-6324
-8928

query I rowsort
SELECT + col1 + - + ( - + 97 ) - - + col2 AS col0 FROM tab2 AS cor0
----
171
214
222

query I rowsort
SELECT - col2 * - 82 * + col2 FROM tab1 AS cor0
----
285442
379168
755712

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5973
SELECT - SUM( + col0 ) DIV + ( - 75 ) AS col1 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5973
SELECT - SUM ( + col0 ) / + ( - 75 ) AS col1 FROM tab0 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT - MIN( DISTINCT + ( col1 ) ) * + 20 * - 30 FROM tab2 AS cor0
----
30600

skipif mysql # not compatible
query I rowsort label-5974
SELECT - MIN ( DISTINCT + ( col1 ) ) * + 20 * - 30 FROM tab2 AS cor0
----
30600

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5975
SELECT - - col1 AS col1, + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-5975
SELECT - - col1 AS col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT DISTINCT COUNT( DISTINCT + 17 ) AS col1 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5977
SELECT DISTINCT COUNT ( DISTINCT + 17 ) AS col1 FROM tab0 cor0
----
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5979
SELECT + MAX( - + col2 ), 66 AS col2 FROM tab2 AS cor0
----
-23
66

skipif mysql # not compatible
query II rowsort label-5979
SELECT + MAX ( - + col2 ), 66 AS col2 FROM tab2 AS cor0
----
-23
66

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

query I rowsort
SELECT ALL - 24 * 57 FROM tab1 AS cor0
----
-1368
-1368
-1368

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 / 58 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5984
SELECT ALL COUNT( * ) col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5984
SELECT ALL COUNT ( * ) col0 FROM tab2 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT col1 * col2 FROM tab2 WHERE NOT + col0 <= + ( - 25 )
----
1173
3080
3886

query I rowsort
SELECT ALL + col1 * + 53 AS col2 FROM tab1
----
2491
265
742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 97 + - - col2 col0 FROM tab0 AS cor0
----
107
144
196

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NULL >= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5989
SELECT ALL 0 / - col1 + - ( - + ( - 0 ) ) - - - col1 + + ( - ( CAST( NULL AS SIGNED ) ) ), + col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-5989
SELECT ALL 0 / - col1 + - ( - + ( - 0 ) ) - - - col1 + + ( - ( CAST ( NULL AS INTEGER ) ) ), + col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query II rowsort label-5990
SELECT - - SUM( - - col2 ) + 63, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
219
-3

skipif mysql # not compatible
query II rowsort label-5990
SELECT - - SUM ( - - col2 ) + 63, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
219
-3

query II rowsort
SELECT + col1 + + - ( - 7 ) AS col1, col0 AS col0 FROM tab2 AS cor0
----
58
46
74
75
84
64

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5993
SELECT + - 68 AS col0, + COUNT( * ) FROM tab1 AS cor0
----
-68
3

skipif mysql # not compatible
query II rowsort label-5993
SELECT + - 68 AS col0, + COUNT ( * ) FROM tab1 AS cor0
----
-68
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5994
SELECT DISTINCT 36 * AVG ( ALL CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5994
SELECT DISTINCT 36 * AVG ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 2 - col0 + - + col0 FROM tab1
----
-100
-168
-180

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5996
SELECT DISTINCT + ( 28 ) AS col0, - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
28
-23
28
-40
28
-58

skipif mysql # not compatible
query II rowsort label-5996
SELECT DISTINCT + ( 28 ) AS col0, - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
28
-23
28
-40
28
-58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT DISTINCT - 89 * + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-5998
SELECT DISTINCT - 89 * + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5999
SELECT + - 9 + CAST( NULL AS SIGNED ) + + 43 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5999
SELECT + - 9 + CAST ( NULL AS INTEGER ) + + 43 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6001
SELECT ALL + col0 DIV - + col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6001
SELECT ALL + col0 / - + col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

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

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

query I rowsort
SELECT ALL col1 + ( - col0 ) + - col2 * - ( 70 ) AS col1 FROM tab2
----
1615
2813
4052

onlyif mysql # aggregate syntax: 
query I rowsort label-6004
SELECT ALL - 88 + COUNT( * ) FROM tab0, tab2 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-6004
SELECT ALL - 88 + COUNT ( * ) FROM tab0, tab2 AS cor0
----
-79

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6008
SELECT COUNT ( * ) * + 2 / - 82 AS col0 FROM tab0
----
0

query II rowsort
SELECT col0 AS col1, - 26 * - col0 * - - col2 FROM tab0
----
15
18330
87
22620
97
249678

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT 63 * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
567

skipif mysql # not compatible
query I rowsort label-6010
SELECT 63 * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
567

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

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

query I rowsort
SELECT - 95 + 80 + + col1 FROM tab0 AS cor0
----
-14
6
66

query I rowsort
SELECT + + 81 + + - col2 + + 53 AS col0 FROM tab1 AS cor0
----
38
66
75

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

query II rowsort
SELECT col2 * - + col0 AS col0, - col1 * + col1 FROM tab1
----
-4896
-196
-5015
-25
-6188
-2209

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6016
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + - - col2 BETWEEN - col1 AND + + 69
----

skipif mysql # not compatible
query III rowsort label-6016
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + - - col2 BETWEEN - col1 AND + + 69
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6018
SELECT CAST( col1 AS SIGNED ) AS col0, 25 AS col0 FROM tab0
----
1
25
21
25
81
25

skipif mysql # not compatible
query II rowsort label-6018
SELECT CAST ( col1 AS INTEGER ) AS col0, 25 AS col0 FROM tab0
----
1
25
21
25
81
25

query III rowsort
SELECT * FROM tab2 WHERE ( + col1 * + col2 * 92 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6020
SELECT ALL - CAST( 8 AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT 69 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6020
SELECT ALL - CAST ( 8 AS REAL ) FROM tab2 AS cor0 WHERE NOT 69 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT ALL - COUNT( - col1 ) + + 73 * - 30 FROM tab1 AS cor0
----
-2193

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL - COUNT ( - col1 ) + + 73 * - 30 FROM tab1 AS cor0
----
-2193

query I rowsort
SELECT DISTINCT + col1 * - col0 + - col0 AS col0 FROM tab1
----
-4368
-510
-765

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6023
SELECT - col1 + 12 - + col2, col1 - - col2 + - - CAST( - - col1 AS SIGNED ) * + 63 AS col2 FROM tab0
----
-116
5231
-19
1354
-88
163

skipif mysql # not compatible
query II rowsort label-6023
SELECT - col1 + 12 - + col2, col1 - - col2 + - - CAST ( - - col1 AS INTEGER ) * + 63 AS col2 FROM tab0
----
-116
5231
-19
1354
-88
163

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

query I rowsort
SELECT DISTINCT col1 - - 74 FROM tab2
----
125
141
151

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 <> + 98
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT ALL - SUM( + + 54 ) FROM tab1 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-6028
SELECT ALL - SUM ( + + 54 ) FROM tab1 AS cor0
----
-162

onlyif mysql # aggregate syntax: 
query II rowsort label-6029
SELECT - ( + 27 ) - - 59, SUM( - col1 ) col2 FROM tab1 AS cor0
----
32
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6029
SELECT - ( + 27 ) - - 59, SUM ( - col1 ) col2 FROM tab1 AS cor0
----
32
-66

query I rowsort
SELECT - col1 * col1 - - col1 FROM tab2 cor0
----
-2550
-4422
-5852

onlyif mysql # aggregate syntax: 
query I rowsort label-6031
SELECT DISTINCT ( + + 93 ) + + COUNT( * ) - - 56 AS col2 FROM tab0
----
152

skipif mysql # not compatible
query I rowsort label-6031
SELECT DISTINCT ( + + 93 ) + + COUNT ( * ) - - 56 AS col2 FROM tab0
----
152

onlyif mysql # DIV for integer division: 
query I rowsort label-6032
SELECT + ( col1 ) - + col2 - - col0 DIV col0 AS col0 FROM tab0
----
-97
12
35

skipif mysql # not compatible
query I rowsort label-6032
SELECT + ( col1 ) - + col2 - - col0 / col0 AS col0 FROM tab0
----
-97
12
35

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

skipif mysql # not compatible
query I rowsort label-6033
SELECT DISTINCT 31 * + COUNT ( * ) FROM tab1
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT - ( - MAX( DISTINCT 69 ) ) AS col1 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-6034
SELECT - ( - MAX ( DISTINCT 69 ) ) AS col1 FROM tab2 AS cor0
----
69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6036
SELECT + + COUNT( * ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6036
SELECT + + COUNT ( * ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT - SUM( ALL - col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-6037
SELECT - SUM ( ALL - col0 ) FROM tab1 AS cor0
----
227

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 86 col0 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * col0 >= - - col1
----

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

query III rowsort
SELECT DISTINCT col0 AS col0, + 56 AS col1, col2 + col0 AS col0 FROM tab1
----
9 values hashing to 179ba3c99eb3edd501925bccbdf65c3b

query I rowsort
SELECT DISTINCT col0 * + col0 + + - col1 * col2 AS col2 FROM tab1
----
1257
5085
6930

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

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

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

query I rowsort
SELECT col1 * - - col0 + + - 29 FROM tab1
----
396
4248
685

query I rowsort
SELECT DISTINCT + 17 * + col2 FROM tab1
----
1003
1156
1632

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT ALL COUNT( ALL + col0 ) col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6050
SELECT ALL COUNT ( ALL + col0 ) col2 FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6051
SELECT 37 DIV 98 * + 20 + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6051
SELECT 37 / 98 * + 20 + COUNT ( * ) FROM tab2
----
3

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

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

query II rowsort
SELECT - col2, col0 * + col2 AS col2 FROM tab1 AS cor0
----
-59
5015
-68
6188
-96
4896

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, + 42 col2 FROM tab2 WHERE - col0 > + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + 79 <> - + 37
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT DISTINCT + + COUNT( * ) + + + COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-6056
SELECT DISTINCT + + COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18

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

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

query I rowsort
SELECT + 79 + ( + + col0 ) + + - 56 FROM tab0 cor0
----
110
120
38

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

query I rowsort
SELECT 69 + col0 * - col1 FROM tab1 cor0
----
-356
-4208
-645

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 15 + 86 col2 FROM tab2 AS cor0
----
101
101
101

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

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

query I rowsort
SELECT ALL - col2 * - 78 * + col1 AS col1 FROM tab1 AS cor0
----
104832
23010
249288

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

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

query I rowsort
SELECT DISTINCT + col0 + col2 FROM tab0 WHERE NOT - + col0 IS NULL
----
196
62
97

query II rowsort
SELECT 69, 95 AS col1 FROM tab1
----
69
95
69
95
69
95

query I rowsort
SELECT DISTINCT + 30 * - col2 AS col2 FROM tab0
----
-1410
-2970
-300

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6069
SELECT DISTINCT * FROM tab1 WHERE 94 * col2 + + + ( + - ( + + col2 ) ) < CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6069
SELECT DISTINCT * FROM tab1 WHERE 94 * col2 + + + ( + - ( + + col2 ) ) < CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL + ( 44 ) AS col1 FROM tab1
----
44
44
44

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

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

query II rowsort
SELECT + col2, 49 * - col1 + + 15 AS col1 FROM tab1
----
59
-230
68
-2288
96
-671

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6075
SELECT - col0, CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-6075
SELECT - col0, CAST ( NULL AS REAL ) AS col2 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

query I rowsort
SELECT 35 * - col1 * col1 AS col1 FROM tab1
----
-6860
-77315
-875

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 70 * - col1 > ( + col2 * + col0 + - - ( + col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT + - col2 < NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col0 NOT BETWEEN - - col2 AND 91 * + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + 79 * + + 77 - col2 )
----

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

query I rowsort
SELECT ALL + col1 / + col1 * 12 * 29 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL col0 + - - col2 * ( col0 ) AS col0 FROM tab0
----
720
957
9700

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT + MIN( ALL + 81 ) FROM tab2
----
81

skipif mysql # not compatible
query I rowsort label-6085
SELECT + MIN ( ALL + 81 ) FROM tab2
----
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 83 > + - 3 - col2
----

query I rowsort
SELECT ALL - ( - ( + col2 ) ) + - col2 - + col1 * + - col2 + col2 AS col2 FROM tab1
----
1440
3264
354

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6089
SELECT DISTINCT col1 + - CAST( + + 0 AS SIGNED ) AS col0 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6089
SELECT DISTINCT col1 + - CAST ( + + 0 AS INTEGER ) AS col0 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT COUNT( 88 ) * 43 AS col0 FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-6090
SELECT COUNT ( 88 ) * 43 AS col0 FROM tab0
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6091
SELECT ALL - ( - + CAST( - col2 AS SIGNED ) ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-6091
SELECT ALL - ( - + CAST ( - col2 AS INTEGER ) ) FROM tab0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 WHERE + col2 <> - 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6093
SELECT - col1 - + CAST( NULL AS SIGNED ) - + 37, - col1 - - 56 - - col2 - + col1 * + - ( - col0 ) + - 27 AS col2 FROM tab1 AS cor0
----
NULL
-342
NULL
-4227
NULL
-603

skipif mysql # not compatible
query II rowsort label-6093
SELECT - col1 - + CAST ( NULL AS INTEGER ) - + 37, - col1 - - 56 - - col2 - + col1 * + - ( - col0 ) + - 27 AS col2 FROM tab1 AS cor0
----
NULL
-342
NULL
-4227
NULL
-603

query I rowsort
SELECT DISTINCT - + 86 FROM tab2 cor0
----
-86

query I rowsort
SELECT + 53 + col1 + - 8 FROM tab2
----
112
122
96

onlyif mysql # DIV for integer division: 
query I rowsort label-6096
SELECT DISTINCT col2 DIV - - 23 - col0 + 90 col1 FROM tab2
----
17
27
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6096
SELECT DISTINCT col2 / - - 23 - col0 + 90 col1 FROM tab2
----
17
27
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT + COUNT( * ) + 32 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-6097
SELECT + COUNT ( * ) + 32 FROM tab0
----
35

query I rowsort
SELECT DISTINCT + 32 * - 37 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1184

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, 90 * col0 FROM tab0 AS cor0
----
-1
8730
-21
7830
-81
1350

onlyif mysql # aggregate syntax: 
query I rowsort label-6102
SELECT + - MAX( DISTINCT - + col1 ) / + 73 AS col0 FROM tab1 AS cor0 WHERE NOT col0 + - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6102
SELECT + - MAX ( DISTINCT - + col1 ) / + 73 AS col0 FROM tab1 AS cor0 WHERE NOT col0 + - col1 IS NOT NULL
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6104
SELECT CAST( - + col2 AS SIGNED ) * + 85 AS col2 FROM tab1
----
-5015
-5780
-8160

skipif mysql # not compatible
query I rowsort label-6104
SELECT CAST ( - + col2 AS INTEGER ) * + 85 AS col2 FROM tab1
----
-5015
-5780
-8160

onlyif mysql # aggregate syntax: 
query I rowsort label-6105
SELECT DISTINCT SUM( DISTINCT - - 79 ) FROM tab0
----
79

skipif mysql # not compatible
query I rowsort label-6105
SELECT DISTINCT SUM ( DISTINCT - - 79 ) FROM tab0
----
79

query I rowsort
SELECT DISTINCT + ( - + 78 ) AS col2 FROM tab2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT MIN( DISTINCT - - col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6107
SELECT MIN ( DISTINCT - - col1 ) AS col1 FROM tab1
----
5

query I rowsort
SELECT DISTINCT + ( 51 ) AS col2 FROM tab2 WHERE - 6 <= 49 * - + col1 - 72 * + col2 - - + col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT DISTINCT - - ( + MIN( + 66 ) ) * 3 AS col2 FROM tab0 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT - - ( + MIN ( + 66 ) ) * 3 AS col2 FROM tab0 AS cor0
----
198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 * + - col1 col1 FROM tab2 cor0
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT + MIN( DISTINCT + 12 ) col1 FROM tab1 cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6111
SELECT + MIN ( DISTINCT + 12 ) col1 FROM tab1 cor0
----
12

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6112
SELECT * FROM tab0 cor0 WHERE NOT CAST( - 9 AS DECIMAL ) + + + col0 - - + col1 = + 3
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6112
SELECT * FROM tab0 cor0 WHERE NOT CAST ( - 9 AS REAL ) + + + col0 - - + col1 = + 3
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6113
SELECT - - CAST( NULL AS SIGNED ) * - AVG ( DISTINCT 5 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + - col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6113
SELECT - - CAST ( NULL AS INTEGER ) * - AVG ( DISTINCT 5 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + - col1 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT COUNT( * ) * - 66 AS col0 FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-6114
SELECT COUNT ( * ) * - 66 AS col0 FROM tab2
----
-198

query I rowsort
SELECT ALL 44 * - - 11 FROM tab0
----
484
484
484

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

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

query I rowsort
SELECT col1 + + col1 AS col1 FROM tab2 WHERE NULL IN ( + - ( - + 83 ), 99, col1, - 61 )
----

query I rowsort
SELECT ( + col1 ) * - + col0 + + col0 FROM tab0
----
-1200
-1740
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT DISTINCT + COUNT( * ) + MIN( ALL - + col2 ) AS col2 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-6119
SELECT DISTINCT + COUNT ( * ) + MIN ( ALL - + col2 ) AS col2 FROM tab0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-6120
SELECT DISTINCT col2 * ( - 63 ) + col1 + col1 DIV + col1 FROM tab2
----
-1397
-2442
-3586

skipif mysql # not compatible
query I rowsort label-6120
SELECT DISTINCT col2 * ( - 63 ) + col1 + col1 / + col1 FROM tab2
----
-1397
-2442
-3586

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6121
SELECT * FROM tab1 AS cor0 WHERE CAST( 15 AS SIGNED ) + - 71 NOT IN ( col0 / - + CAST( + 20 AS SIGNED ) + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6121
SELECT * FROM tab1 AS cor0 WHERE CAST ( 15 AS INTEGER ) + - 71 NOT IN ( col0 / - + CAST ( + 20 AS INTEGER ) + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 3 * + ( + 49 ) AS col1 FROM tab1 cor0
----
147
147
147

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

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

query I rowsort
SELECT DISTINCT 48 * + + col1 FROM tab2
----
2448
3216
3696

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6126
SELECT DISTINCT + COUNT ( - 55 ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT col0 + col0 * - - col1 * - 60 * - col0 + + ( col1 ) IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-6128
SELECT DISTINCT - MAX( - 42 ) col0 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6128
SELECT DISTINCT - MAX ( - 42 ) col0 FROM tab1 AS cor0
----
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - + 25 * - col1 col1 FROM tab0 AS cor0
----
11025
164025
25

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6131
SELECT DISTINCT CAST( + + 66 AS SIGNED ) FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6131
SELECT DISTINCT CAST ( + + 66 AS INTEGER ) FROM tab0 AS cor0
----
66

query II rowsort
SELECT ALL + 30 AS col1, 10 - col1 FROM tab0
----
30
-11
30
-71
30
9

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

query I rowsort
SELECT DISTINCT + 47 * + 81 AS col1 FROM tab2
----
3807

query I rowsort
SELECT DISTINCT - + 41 FROM tab2 WHERE NULL <= NULL
----

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

skipif mysql # not compatible
query I rowsort label-6136
SELECT col2 / + + col1 AS col1 FROM tab0
----
0
0
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6137
SELECT + + 71 DIV - + COUNT( * ) FROM tab0 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-6137
SELECT + + 71 / - + COUNT ( * ) FROM tab0 AS cor0
----
-23

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

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

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

query I rowsort
SELECT DISTINCT col1 + + - col2 * - - col0 AS col1 FROM tab0 AS cor0 WHERE + 37 <> - + col2
----
-624
-849
-9602

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6141
SELECT MAX( ALL + - col0 ) DIV - + 61 + - MAX( DISTINCT - + col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6141
SELECT MAX ( ALL + - col0 ) / - + 61 + - MAX ( DISTINCT - + col0 ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT ALL COUNT( + - 0 ) * 48 + COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6142
SELECT ALL COUNT ( + - 0 ) * 48 + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6143
SELECT + COUNT ( * ) col0 FROM tab0 AS cor0 WHERE 71 IS NULL
----
0

query I rowsort
SELECT ALL + 12 * - + col2 * + 60 + - + col0 + - col2 AS col2 FROM tab0 AS cor0
----
-33902
-71476
-7297

query I rowsort
SELECT DISTINCT col1 + col2 + col2 FROM tab0 AS cor0
----
175
199
41

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6146
SELECT CAST( NULL AS DECIMAL ), - col2 AS col0 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
query II rowsort label-6146
SELECT CAST ( NULL AS REAL ), - col2 AS col0 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT SUM( 13 ) col1 FROM tab0
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6147
SELECT SUM ( 13 ) col1 FROM tab0
----
39

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6149
SELECT ALL col0 DIV + + col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-6149
SELECT ALL col0 / + + col2 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6150
SELECT COUNT( * ) - 60 * + 52 AS col0 FROM tab1
----
-3117

skipif mysql # not compatible
query I rowsort label-6150
SELECT COUNT ( * ) - 60 * + 52 AS col0 FROM tab1
----
-3117

onlyif mysql # aggregate syntax: 
query II rowsort label-6151
SELECT + ( 59 ) - 51 AS col2, COUNT( * ) AS col1 FROM tab0 AS cor0
----
8
3

skipif mysql # not compatible
query II rowsort label-6151
SELECT + ( 59 ) - 51 AS col2, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
8
3

query I rowsort
SELECT DISTINCT + + col0 * + - 80 AS col2 FROM tab0 AS cor0
----
-1200
-6960
-7760

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT DISTINCT + MAX( ALL + 48 ) FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6153
SELECT DISTINCT + MAX ( ALL + 48 ) FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----
NULL

query I rowsort
SELECT DISTINCT 25 FROM tab2 WHERE NOT ( 71 ) > NULL
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT NULL <= - 30 * - 7
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT COUNT( * ) + - 64 col0 FROM tab1
----
-61

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6159
SELECT DISTINCT + ( 73 ) DIV 4 + col2 DIV 69 AS col1 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-6159
SELECT DISTINCT + ( 73 ) / 4 + col2 / 69 AS col1 FROM tab2
----
18

query I rowsort
SELECT ALL + AVG ( DISTINCT - 0 ) FROM tab1 WHERE col0 * 30 + col2 = NULL
----
NULL

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

query I rowsort
SELECT DISTINCT - 70 + col1 AS col1 FROM tab0 WHERE col2 BETWEEN + col0 - col0 AND ( col2 )
----
-49
-69
11

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6163
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN ( col1 + CAST( NULL AS DECIMAL ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6163
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN ( col1 + CAST ( NULL AS REAL ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6164
SELECT DISTINCT + MIN( col1 ) * + 8 + - COUNT( * ) FROM tab2
----
405

skipif mysql # not compatible
query I rowsort label-6164
SELECT DISTINCT + MIN ( col1 ) * + 8 + - COUNT ( * ) FROM tab2
----
405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 41 col0 FROM tab2 WHERE NOT ( col1 ) IN ( col0 * col0 )
----
-41
-41
-41

query I rowsort
SELECT - col2 + 65 AS col0 FROM tab2
----
25
42
7

query I rowsort
SELECT col1 * + 36 + + 69 FROM tab1
----
1761
249
573

query I rowsort
SELECT - 27 FROM tab1 WHERE NULL IS NULL
----
-27
-27
-27

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

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 ) <= ( + 6 )
----
97
1
99

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6176
SELECT CAST( - 3 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-6176
SELECT CAST ( - 3 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-3
-3
-3

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 + col1 NOT BETWEEN + col2 * - col0 AND ( col0 + + col1 )
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6181
SELECT MIN( 48 ) DIV 95 - 90 AS col1 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-6181
SELECT MIN ( 48 ) / 95 - 90 AS col1 FROM tab1 AS cor0
----
-90

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

query I rowsort
SELECT DISTINCT col1 * - 4 - col2 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( + col1 ) AND ( NULL )
----

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

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

query I rowsort
SELECT ALL - ( col1 ) + + 48 FROM tab2 AS cor0
----
-19
-29
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6186
SELECT + 53 DIV - ( + 55 + 48 ) + - col0 * col1 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-6186
SELECT + 53 / - ( + 55 + 48 ) + - col0 * col1 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col2 col1 FROM tab0 AS cor0 WHERE - col2 <> ( col1 ) / - 28
----
705
870
9603

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( + 28 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6190
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE col2 * + 39 <> NULL
----

skipif mysql # not compatible
query I rowsort label-6190
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE col2 * + 39 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 <= + col0
----
75
67
58

query I rowsort
SELECT DISTINCT - col1 * col0 AS col2 FROM tab1 cor0 WHERE NOT - col0 * col0 <= + col2 * + col2 - ( + 23 ) * 97
----

query I rowsort
SELECT ALL + col0 - - 18 AS col0 FROM tab0 WHERE col2 NOT IN ( col1 )
----
105
115
33

query I rowsort
SELECT - col1 FROM tab0 WHERE NULL IN ( 45 + 47 )
----

query I rowsort
SELECT ALL col1 + 55 FROM tab2
----
106
122
132

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

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

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

query I rowsort
SELECT ALL col1 - + 9 + 48 FROM tab0
----
120
40
60

onlyif mysql # aggregate syntax: 
query I rowsort label-6199
SELECT - SUM( 50 ) FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-6199
SELECT - SUM ( 50 ) FROM tab0
----
-150

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

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

query I rowsort
SELECT DISTINCT - col1 * + - 23 * + col0 AS col0 FROM tab1 AS cor0
----
16422
9775
98371

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

query I rowsort
SELECT DISTINCT 10 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
10

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

query I rowsort
SELECT DISTINCT + ( ( 5 ) ) * col1 FROM tab2 AS cor0
----
255
335
385

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 33 * + col1 <= col0 / 55
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

skipif mysql # not compatible
query I rowsort label-6211
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) + + 0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + 8 * + col2 AS col1 FROM tab2 AS cor0
----
184
320
464

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6213
SELECT ALL ( 21 ) + + CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL
NULL
NULL

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

query II rowsort
SELECT - 28 * - - 88 AS col0, col2 AS col2 FROM tab2
----
-2464
23
-2464
40
-2464
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 col1 FROM tab1 WHERE NOT ( - col1 - + + ( + col0 ) ) BETWEEN ( col1 ) AND + col1 + - 71
----
-3481
-4624
-9216

query I rowsort
SELECT - 95 * + 31 FROM tab0
----
-2945
-2945
-2945

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6217
SELECT + 22 DIV + - COUNT( col1 ) AS col1 FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-6217
SELECT + 22 / + - COUNT ( col1 ) AS col1 FROM tab0
----
-7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6218
SELECT DISTINCT + CAST( + col0 AS SIGNED ) DIV - - 78 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) / - - 78 FROM tab2
----
0

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

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE ( NULL ) NOT BETWEEN ( - col0 + col1 ) AND 8
----

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

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

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

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

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

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

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

query I rowsort
SELECT ALL - 85 * + col2 + + col0 AS col1 FROM tab1
----
-4930
-5689
-8109

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT ALL - ( MAX( + 98 ) ) col1 FROM tab2 WHERE NOT + - col2 * - col1 IS NULL
----
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6227
SELECT ALL - ( MAX ( + 98 ) ) col1 FROM tab2 WHERE NOT + - col2 * - col1 IS NULL
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-6228
SELECT 8 - + ( + ( ( + COUNT( ALL - col1 ) ) ) ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6228
SELECT 8 - + ( + ( ( + COUNT ( ALL - col1 ) ) ) ) FROM tab1
----
5

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

query I rowsort
SELECT 16 - + + 54 FROM tab2
----
-38
-38
-38

query I rowsort
SELECT + 79 + + + col0 FROM tab0 WHERE NULL IN ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6232
SELECT ALL col1 * + col1 - - col0 + - col2 + + + col2 DIV - + col2 - 12 FROM tab2
----
2611
4493
5940

skipif mysql # not compatible
query I rowsort label-6232
SELECT ALL col1 * + col1 - - col0 + - col2 + + + col2 / - + col2 - 12 FROM tab2
----
2611
4493
5940

query I rowsort
SELECT + ( + 8 ) * + 30 - + - col2 AS col0 FROM tab0
----
250
287
339

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 54 > ( - col1 * - 38 )
----

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 * + - col2 > ( col2 + 86 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * - + ( 65 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6238
SELECT ALL COUNT( * ) AS col2, COUNT( * ) * + 87 FROM tab2 cor0
----
3
261

skipif mysql # not compatible
query II rowsort label-6238
SELECT ALL COUNT ( * ) AS col2, COUNT ( * ) * + 87 FROM tab2 cor0
----
3
261

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT + 88 * + SUM( ALL 23 ) AS col2 FROM tab1 cor0
----
6072

skipif mysql # not compatible
query I rowsort label-6239
SELECT + 88 * + SUM ( ALL 23 ) AS col2 FROM tab1 cor0
----
6072

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6240
SELECT + CAST( + 8 AS SIGNED ) DIV - col1 + 98 FROM tab0
----
90
98
98

skipif mysql # not compatible
query I rowsort label-6240
SELECT + CAST ( + 8 AS INTEGER ) / - col1 + 98 FROM tab0
----
90
98
98

query II rowsort
SELECT 10 * - col0 * - + 94 AS col1, + 3 FROM tab2
----
43240
3
60160
3
70500
3

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

query I rowsort
SELECT + 33 * - col0 FROM tab1 AS cor0
----
-1683
-2805
-3003

onlyif mysql # aggregate syntax: 
query II rowsort label-6244
SELECT MIN( + + 74 ), 8 AS col1 FROM tab1 AS cor0
----
74
8

skipif mysql # not compatible
query II rowsort label-6244
SELECT MIN ( + + 74 ), 8 AS col1 FROM tab1 AS cor0
----
74
8

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + 16 * - col0 NOT BETWEEN + col1 AND - col2 * - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 77 col2 FROM tab1
----
4543
5236
7392

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col1 + - + col0 = NULL
----

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

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

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

query II rowsort
SELECT DISTINCT + 62 AS col1, - col2 * col1 * + col2 FROM tab2 AS cor0
----
62
-123200
62
-225388
62
-26979

query II rowsort
SELECT 93 AS col0, + 51 AS col1 FROM tab1 AS cor0
----
93
51
93
51
93
51

onlyif mysql # DIV for integer division: 
query I rowsort label-6253
SELECT col1 DIV - 90 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6253
SELECT col1 / - 90 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + ( - 44 ) col2 FROM tab1
----
-129
-135
-95

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6256
SELECT + col1 - + - col2 + + 19 DIV col1 + - col2 + - col0 AS col0 FROM tab1
----
-36
-44
-77

skipif mysql # not compatible
query I rowsort label-6256
SELECT + col1 - + - col2 + + 19 / col1 + - col2 + - col0 AS col0 FROM tab1
----
-36
-44
-77

query I rowsort
SELECT DISTINCT col0 + - - ( + col0 ) + + - 31 AS col0 FROM tab0 AS cor0 WHERE NOT 26 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT ALL - - 88 * MAX( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-1320

skipif mysql # not compatible
query I rowsort label-6258
SELECT ALL - - 88 * MAX ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-1320

query I rowsort
SELECT ALL - 86 + + 30 + - col2 FROM tab1 cor0
----
-115
-124
-152

query I rowsort
SELECT DISTINCT 11 + + 74 + col2 FROM tab0 cor0
----
132
184
95

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

query I rowsort
SELECT ALL col1 + - col0 * - 37 * + - col2 FROM tab2
----
-160883
-39095
-94643

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6263
SELECT DISTINCT + CAST( + - 50 AS SIGNED ) DIV + - ( - col2 ) FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6263
SELECT DISTINCT + CAST ( + - 50 AS INTEGER ) / + - ( - col2 ) FROM tab2
----
-1
-2
0

query I rowsort
SELECT - col2 + - col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6266
SELECT col1, - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-6266
SELECT col1, - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 + - + col2 <> + 19
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6268
SELECT ALL + COUNT( * ) AS col1, - CAST( NULL AS SIGNED ) FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-6268
SELECT ALL + COUNT ( * ) AS col1, - CAST ( NULL AS INTEGER ) FROM tab2
----
3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, - 45 col2 FROM tab0
----
-15
-45
-87
-45
-97
-45

query I rowsort
SELECT + 8 AS col1 FROM tab2 cor0
----
8
8
8

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6271
SELECT ALL + COUNT ( * ) col0, COUNT ( DISTINCT + col1 ) FROM tab2 AS cor0
----
3
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6273
SELECT 71 * SUM( + col0 ) FROM tab0
----
14129

skipif mysql # not compatible
query I rowsort label-6273
SELECT 71 * SUM ( + col0 ) FROM tab0
----
14129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, col1 AS col2 FROM tab2
----
23
51
40
77
58
67

query II rowsort
SELECT 97, 79 * + + col1 AS col2 FROM tab1
----
97
1106
97
3713
97
395

query I rowsort
SELECT ALL + 52 + - - ( - 59 ) AS col0 FROM tab0 AS cor0
----
-7
-7
-7

query I rowsort
SELECT ALL - 13 * - 71 AS col1 FROM tab1 cor0
----
923
923
923

onlyif mysql # aggregate syntax: 
query I rowsort label-6278
SELECT ALL - + 23 + - COUNT( * ) FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-6278
SELECT ALL - + 23 + - COUNT ( * ) FROM tab2 AS cor0
----
-26

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

query II rowsort
SELECT ALL 2 + 76 AS col0, - col1 AS col0 FROM tab1
----
78
-14
78
-47
78
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6281
SELECT + COUNT( DISTINCT col1 ) AS col1, ( + COUNT( * ) ) * CAST( MIN( ALL - - col1 ) AS SIGNED ) - 88 AS col0 FROM tab1
----
3
-73

skipif mysql # not compatible
query II rowsort label-6281
SELECT + COUNT ( DISTINCT col1 ) AS col1, ( + COUNT ( * ) ) * CAST ( MIN ( ALL - - col1 ) AS INTEGER ) - 88 AS col0 FROM tab1
----
3
-73

query I rowsort
SELECT DISTINCT col1 * 84 AS col2 FROM tab2
----
4284
5628
6468

query I rowsort
SELECT ALL ( + 96 ) * - - ( 12 ) FROM tab2
----
1152
1152
1152

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + col2 * + + 75 AND + + 38
----

query I rowsort
SELECT - ( + 57 ) AS col1 FROM tab2
----
-57
-57
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 95 col2 FROM tab1 WHERE NOT ( col2 + - + col2 + - col0 NOT BETWEEN - col1 AND NULL )
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6290
SELECT ALL + 15 AS col1, MAX( DISTINCT ( 36 ) ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
15
36

skipif mysql # not compatible
query II rowsort label-6290
SELECT ALL + 15 AS col1, MAX ( DISTINCT ( 36 ) ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
15
36

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6292
SELECT + 68 * - COUNT( * ) FROM tab0
----
-204

skipif mysql # not compatible
query I rowsort label-6292
SELECT + 68 * - COUNT ( * ) FROM tab0
----
-204

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6296
SELECT - - 7 AS col0, col0 * + + col2 * - ( - CAST( NULL AS SIGNED ) ) + col1 * col2 * - col1 AS col0 FROM tab1 AS cor0
----
7
NULL
7
NULL
7
NULL

skipif mysql # not compatible
query II rowsort label-6296
SELECT - - 7 AS col0, col0 * + + col2 * - ( - CAST ( NULL AS INTEGER ) ) + col1 * col2 * - col1 AS col0 FROM tab1 AS cor0
----
7
NULL
7
NULL
7
NULL

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

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

query I rowsort
SELECT ALL + 81 * + 45 FROM tab1 AS cor0 WHERE NOT 87 + 90 BETWEEN + + 65 AND - - col0
----
3645
3645
3645

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT DISTINCT - + SUM( ALL 12 ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-6299
SELECT DISTINCT - + SUM ( ALL 12 ) FROM tab2 AS cor0
----
-36

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6301
SELECT + col0 DIV ( + col1 ) * - + col1 + + + col2 FROM tab0 AS cor0
----
-74
2
47

skipif mysql # not compatible
query I rowsort label-6301
SELECT + col0 / ( + col1 ) * - + col1 + + + col2 FROM tab0 AS cor0
----
-74
2
47

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6303
SELECT - 53 DIV col0 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6303
SELECT - 53 / col0 FROM tab1
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6304
SELECT DISTINCT + col2 * col1 DIV - - col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT + col2 * col1 / - - col1 FROM tab0
----
10
47
99

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

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

query I rowsort
SELECT ALL + ( col2 ) FROM tab1 WHERE - 96 * - col0 IS NULL
----

query I rowsort
SELECT - 34 * + 74 FROM tab1 AS cor0
----
-2516
-2516
-2516

query I rowsort
SELECT + 48 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b09cc2c99c2102036162d063e0e5a4b

onlyif mysql # DIV for integer division: 
query III rowsort label-6309
SELECT DISTINCT + col0, 5 DIV + col0 col1, - col0 * + col0 * - + col2 + col2 FROM tab1
----
9 values hashing to d0e98f5175b05562b584c7cbc0cbf530

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-6309
SELECT DISTINCT + col0, 5 / + col0 col1, - col0 * + col0 * - + col2 + col2 FROM tab1
----
9 values hashing to d0e98f5175b05562b584c7cbc0cbf530

query I rowsort
SELECT col0 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
51
85
91

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

query I rowsort
SELECT + + col2 FROM tab0 AS cor0 WHERE NOT 90 + - 80 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL + - 80 * col1 AS col0 FROM tab0 AS cor0
----
-1680
-6480
-80

query I rowsort
SELECT ALL + + 67 * 23 + + col2 * - col2 AS col2 FROM tab1 AS cor0
----
-1940
-3083
-7675

query I rowsort
SELECT col2 + ( + - col1 ) AS col2 FROM tab0 AS cor0
----
-11
-34
98

query II rowsort
SELECT + 24 + col1 + - 54 - - col1 AS col1, col0 AS col0 FROM tab2
----
104
75
124
64
72
46

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN 87 AND col1
----

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

skipif mysql # not compatible
query I rowsort label-6319
SELECT ALL - 14 * - COUNT ( * ) FROM tab0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT + 65 + - + COUNT( * ) + - - 32 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-6320
SELECT + 65 + - + COUNT ( * ) + - - 32 FROM tab1
----
94

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

query II rowsort
SELECT ALL - col1 AS col0, col1 + 62 FROM tab2
----
-51
113
-67
129
-77
139

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6324
SELECT + 42 + - COUNT( * ) col2 FROM tab2 cor0 WHERE - col1 * + 85 IS NULL
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6324
SELECT + 42 + - COUNT ( * ) col2 FROM tab2 cor0 WHERE - col1 * + 85 IS NULL
----
42

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

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

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

query I rowsort
SELECT 5 * - col2 + 28 FROM tab2 AS cor0
----
-172
-262
-87

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

query I rowsort
SELECT + ( + col2 ) * - + 76 FROM tab2 AS cor0
----
-1748
-3040
-4408

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6331
SELECT DISTINCT + CAST( + 38 AS SIGNED ) FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-6331
SELECT DISTINCT + CAST ( + 38 AS INTEGER ) FROM tab0 AS cor0
----
38

query I rowsort
SELECT ALL col0 * - 29 AS col2 FROM tab2 AS cor0
----
-1334
-1856
-2175

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT 19 <= + col0 )
----
87
21
10
97
1
99

query II rowsort
SELECT DISTINCT + 51, col1 FROM tab0
----
51
1
51
21
51
81

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

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

query I rowsort
SELECT DISTINCT ( - - 33 ) AS col1 FROM tab1
----
33

query II rowsort
SELECT ALL - col1 AS col1, - col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

query I rowsort
SELECT ALL + 44 * - col2 AS col0 FROM tab0 AS cor0
----
-2068
-4356
-440

onlyif mysql # aggregate syntax: 
query II rowsort label-6339
SELECT - COUNT( * ) AS col1, + COUNT( - col1 ) * COUNT( * ) * - + COUNT( * ) + MAX( col1 ) + COUNT( * ) FROM tab1 WHERE col1 IS NOT NULL
----
-3
23

skipif mysql # not compatible
query II rowsort label-6339
SELECT - COUNT ( * ) AS col1, + COUNT ( - col1 ) * COUNT ( * ) * - + COUNT ( * ) + MAX ( col1 ) + COUNT ( * ) FROM tab1 WHERE col1 IS NOT NULL
----
-3
23

query I rowsort
SELECT ALL + col0 + col1 - + + col0 * + col1 FROM tab0 AS cor0
----
-1119
-1719
1

query I rowsort
SELECT DISTINCT col1 * + - col0 + + + ( + + 97 ) - - col1 * + col2 FROM tab0
----
-1520
2689
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT ALL COUNT( * ) - + - MAX( - col2 ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL COUNT ( * ) - + - MAX ( - col2 ) FROM tab2
----
-20

query III rowsort
SELECT * FROM tab0 WHERE - - 44 BETWEEN NULL AND + col1 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6344
SELECT + 74 * + + COUNT( * ) col2 FROM tab2
----
222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6344
SELECT + 74 * + + COUNT ( * ) col2 FROM tab2
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-6345
SELECT ALL MAX( DISTINCT + 25 ) AS col0 FROM tab0
----
25

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL MAX ( DISTINCT + 25 ) AS col0 FROM tab0
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
23
40
58

query I rowsort
SELECT col2 + - 89 FROM tab2 AS cor0
----
-31
-49
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT ALL + 75 * - - 50 * MAX( + 81 ) FROM tab0
----
303750

skipif mysql # not compatible
query I rowsort label-6348
SELECT ALL + 75 * - - 50 * MAX ( + 81 ) FROM tab0
----
303750

onlyif mysql # aggregate syntax: 
query II rowsort label-6349
SELECT + COUNT( - 15 ) AS col2, + 98 FROM tab2 AS cor0
----
3
98

skipif mysql # not compatible
query II rowsort label-6349
SELECT + COUNT ( - 15 ) AS col2, + 98 FROM tab2 AS cor0
----
3
98

query I rowsort
SELECT DISTINCT - - ( + 51 ) * + + col0 FROM tab0 AS cor0
----
4437
4947
765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6351
SELECT - ( + 43 ) DIV + COUNT( * ) FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-6351
SELECT - ( + 43 ) / + COUNT ( * ) FROM tab2
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-6352
SELECT DISTINCT col2 DIV - ( - 54 ) FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-6352
SELECT DISTINCT col2 / - ( - 54 ) FROM tab2
----
0
1

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 NOT IN ( + col2, col1, + + col2, + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6354
SELECT DISTINCT + SUM( col2 ) * - 4 FROM tab1
----
-892

skipif mysql # not compatible
query I rowsort label-6354
SELECT DISTINCT + SUM ( col2 ) * - 4 FROM tab1
----
-892

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6355
SELECT DISTINCT - CAST( MAX( + 29 ) AS SIGNED ) AS col1, + 29 FROM tab0
----
-29
29

skipif mysql # not compatible
query II rowsort label-6355
SELECT DISTINCT - CAST ( MAX ( + 29 ) AS INTEGER ) AS col1, + 29 FROM tab0
----
-29
29

query I rowsort
SELECT - col2 + + - col0 AS col1 FROM tab2 cor0
----
-104
-133
-69

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

query II rowsort
SELECT ALL + col1, ( + col2 ) + + 90 FROM tab0 AS cor0
----
1
189
21
100
81
137

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6359
SELECT ALL - SUM( - 97 ) + + 1 DIV - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-6359
SELECT ALL - SUM ( - 97 ) + + 1 / - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
291

onlyif mysql # DIV for integer division: 
query I rowsort label-6360
SELECT - + 6 DIV + col1 FROM tab0 AS cor0
----
-6
0
0

skipif mysql # not compatible
query I rowsort label-6360
SELECT - + 6 / + col1 FROM tab0 AS cor0
----
-6
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6361
SELECT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE + 55 * + 89 <= - + 58
----

skipif mysql # not compatible
query I rowsort label-6361
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE + 55 * + 89 <= - + 58
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6362
SELECT + ( + + CAST( - - COUNT( * ) AS DECIMAL ) ) * - CAST( NULL AS SIGNED ) AS col1, COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6362
SELECT + ( + + CAST ( - - COUNT ( * ) AS REAL ) ) * - CAST ( NULL AS INTEGER ) AS col1, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 IS NULL AND col0 < NULL
----

query I rowsort
SELECT + ( - - col1 ) + + 21 + + + col2 AS col2 FROM tab0 AS cor0
----
121
149
52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT ALL ( MAX( - + col2 ) ) + - COUNT( * ) FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-6366
SELECT ALL ( MAX ( - + col2 ) ) + - COUNT ( * ) FROM tab0 AS cor0
----
-13

query I rowsort
SELECT DISTINCT + col2 + - - col2 * - 98 * 55 FROM tab2 cor0
----
-123947
-215560
-312562

query I rowsort
SELECT - col0 + + ( + ( - - 21 ) ) + col1 AS col2 FROM tab0
----
-45
-75
87

onlyif mysql # aggregate syntax: 
query II rowsort label-6369
SELECT DISTINCT - COUNT( * ) + MAX( DISTINCT + col2 ) + - 54, - 70 + + 22 * - ( - COUNT( * ) ) AS col2 FROM tab1
----
39
-4

skipif mysql # not compatible
query II rowsort label-6369
SELECT DISTINCT - COUNT ( * ) + MAX ( DISTINCT + col2 ) + - 54, - 70 + + 22 * - ( - COUNT ( * ) ) AS col2 FROM tab1
----
39
-4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT - ( - - col1 ) <= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6371
SELECT DISTINCT col2 * + + CAST( + - 21 AS SIGNED ) * - col2 * + - 70 * + col1 + + col2 FROM tab1
----
-189665184
-25585291
-319472092

skipif mysql # not compatible
query I rowsort label-6371
SELECT DISTINCT col2 * + + CAST ( + - 21 AS INTEGER ) * - col2 * + - 70 * + col1 + + col2 FROM tab1
----
-189665184
-25585291
-319472092

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT ALL - COUNT( * ) AS col1 FROM tab1 WHERE ( col1 IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 WHERE ( col1 IS NOT NULL )
----
-3

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

query I rowsort
SELECT - col2 * 10 FROM tab0 WHERE - - col2 + col0 IS NOT NULL
----
-100
-470
-990

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

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

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

query I rowsort
SELECT DISTINCT 96 - + col0 FROM tab1 AS cor0
----
11
45
5

query I rowsort
SELECT - - 81 * col0 AS col1 FROM tab1 AS cor0
----
4131
6885
7371

query II rowsort
SELECT DISTINCT col0 AS col1, + col2 * - + col0 * - col2 FROM tab2 cor0 WHERE NOT - col0 * - - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 / - 9 <= - - 47
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 1 IN ( + 86 + col2 * 29 + - 27 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT DISTINCT - COUNT( + - col0 ) FROM tab0 WHERE NOT + 43 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6382
SELECT DISTINCT - COUNT ( + - col0 ) FROM tab0 WHERE NOT + 43 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6383
SELECT ALL + 92 col1, ( COUNT( * ) ) FROM tab2
----
92
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6383
SELECT ALL + 92 col1, ( COUNT ( * ) ) FROM tab2
----
92
3

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

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

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

query I rowsort
SELECT ALL + ( - - col0 ) FROM tab1
----
51
85
91

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

query I rowsort
SELECT DISTINCT - col1 * + ( - ( col1 ) ) FROM tab1
----
196
2209
25

query II rowsort
SELECT col1, 49 * - col1 FROM tab2
----
51
-2499
67
-3283
77
-3773

query I rowsort
SELECT ALL col2 + + 74 FROM tab1 AS cor0
----
133
142
170

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

query I rowsort
SELECT - 29 + - + col2 * + 93 * - col0 FROM tab0
----
65536
80881
893050

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6395
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 * col1 * 85 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-6395
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 * col1 * 85 >= NULL
----
0

query I rowsort
SELECT + ( 97 ) FROM tab1 AS cor0 WHERE NULL >= NULL OR NOT - + 33 * - col0 + - ( - - col1 ) + + col0 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6398
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( CAST( NULL AS SIGNED ) ) IS NOT NULL OR ( NOT col1 > 31 - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6398
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( CAST ( NULL AS INTEGER ) ) IS NOT NULL OR ( NOT col1 > 31 - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

skipif mysql # not compatible
query III rowsort label-6400
SELECT * FROM tab0 AS cor0 WHERE + ( + + CAST ( NULL AS REAL ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 - ( - col0 ) + + 73 - - col0 * + 14 * + col2 FROM tab2 AS cor0
----
14982
36054
61115

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

query I rowsort
SELECT DISTINCT 34 + + 73 + col0 AS col2 FROM tab2
----
153
171
182

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

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

query I rowsort
SELECT DISTINCT col1 * - - col1 + - col1 AS col2 FROM tab2
----
2550
4422
5852

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT ALL - SUM( - + col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-6406
SELECT ALL - SUM ( - + col1 ) FROM tab0
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6407
SELECT - 14 DIV + - COUNT( * ) - - COUNT( DISTINCT col0 ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-6407
SELECT - 14 / + - COUNT ( * ) - - COUNT ( DISTINCT col0 ) FROM tab2
----
7

query I rowsort
SELECT col2 - - + col2 * + - col1 AS col0 FROM tab0
----
-200
-3760
0

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

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

query I rowsort
SELECT 84 * 93 * - - col2 FROM tab0 WHERE + col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( + col1 ) * col1 < - col2 + + + 94 AND + col2 IS NULL
----

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

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

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

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

query I rowsort
SELECT 95 AS col1 FROM tab1 WHERE NOT col0 + + - col0 IS NULL
----
95
95
95

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 >= 22 - + col0
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6419
SELECT ( - COUNT( * ) ) col1, + 26 AS col1 FROM tab1 AS cor0
----
-3
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6419
SELECT ( - COUNT ( * ) ) col1, + 26 AS col1 FROM tab1 AS cor0
----
-3
26

query I rowsort
SELECT - - col2 * + + col1 + 10 FROM tab0 AS cor0
----
109
220
3817

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

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

query I rowsort
SELECT DISTINCT - ( + 40 ) * + - col2 AS col2 FROM tab1
----
2360
2720
3840

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6425
SELECT ALL + 71 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6425
SELECT ALL + 71 / - col0 AS col1 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT 83 + + col1 AS col0 FROM tab1 AS cor0
----
130
88
97

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

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

query I rowsort
SELECT DISTINCT + col1 + - + ( + col2 ) AS col0 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # DIV for integer division: 
query I rowsort label-6430
SELECT - 90 + col0 + + + col1 - + 54 DIV col2 * - col2 + col0 AS col2 FROM tab0 cor0
----
105
155
68

skipif mysql # not compatible
query I rowsort label-6430
SELECT - 90 + col0 + + + col1 - + 54 / col2 * - col2 + col0 AS col2 FROM tab0 cor0
----
105
155
68

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE col1 BETWEEN NULL AND + col0
----

query I rowsort
SELECT + + 17 + - + col1 + + + col2 FROM tab0 AS cor0
----
-17
115
6

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6434
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE ( col1 <= NULL )
----

skipif mysql # not compatible
query I rowsort label-6434
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE ( col1 <= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 + col0 + col0 - + col2 + - - ( col2 ) col1 FROM tab0 AS cor0
----
100
244
264

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col2 * - - 21 < ( - col1 )
----

query I rowsort
SELECT DISTINCT 58 + - - col1 + - col2 AS col1 FROM tab2
----
67
86
95

query I rowsort
SELECT DISTINCT ( + col0 ) - + 25 * col2 AS col1 FROM tab1
----
-1390
-1609
-2349

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6439
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + - col1 AND col0 / 17 + CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6439
SELECT * FROM tab0 WHERE NOT NULL BETWEEN + - col1 AND col0 / 17 + CAST ( - col1 AS INTEGER )
----

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

query I rowsort
SELECT 19 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-6442
SELECT DISTINCT + CAST ( col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
23
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 IS NULL AND NOT NULL <> - col2 * - col0
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT DISTINCT MIN( + 46 ) AS col2 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-6448
SELECT DISTINCT MIN ( + 46 ) AS col2 FROM tab2 cor0
----
46

query I rowsort
SELECT DISTINCT col0 + + 79 FROM tab2 AS cor0
----
125
143
154

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

query I rowsort
SELECT + ( + 86 ) * - 29 FROM tab1
----
-2494
-2494
-2494

onlyif mysql # DIV for integer division: 
query I rowsort label-6452
SELECT ALL - col1 DIV - - col0 + 5 AS col0 FROM tab2
----
4
4
5

skipif mysql # not compatible
query I rowsort label-6452
SELECT ALL - col1 / - - col0 + 5 AS col0 FROM tab2
----
4
4
5

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

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

query III rowsort
SELECT * FROM tab0 WHERE 86 * - - 3 - + 49 * - 14 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 64 * - + 68 AS col1 FROM tab0
----
4352
4352
4352

onlyif mysql # DIV for integer division: 
query I rowsort label-6456
SELECT ALL - col1 DIV - + col2 + 70 AS col1 FROM tab0 cor0
----
70
71
72

skipif mysql # not compatible
query I rowsort label-6456
SELECT ALL - col1 / - + col2 + 70 AS col1 FROM tab0 cor0
----
70
71
72

query I rowsort
SELECT + - 50 + 99 AS col2 FROM tab1 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT DISTINCT - MAX( + - 63 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
63

skipif mysql # not compatible
query I rowsort label-6458
SELECT DISTINCT - MAX ( + - 63 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
63

query I rowsort
SELECT col0 * - col1 - col1 AS col0 FROM tab0 cor0
----
-1296
-1848
-98

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

skipif mysql # not compatible
query I rowsort label-6460
SELECT - MAX ( ALL - col0 ) AS col1 FROM tab2
----
46

query I rowsort
SELECT ALL - ( 74 ) - - + col0 + + 43 FROM tab1 WHERE + + col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6462
SELECT DISTINCT - 16 DIV MAX( - col2 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT - 16 / MAX ( - col2 ) FROM tab0
----
1

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

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

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

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

query I rowsort
SELECT ALL ( - ( + + AVG ( ALL + 38 ) ) ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6466
SELECT DISTINCT - 24 AS col1, col0 + - col1 / ( + CAST( NULL AS DECIMAL ) ) col2 FROM tab1 cor0
----
-24
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6466
SELECT DISTINCT - 24 AS col1, col0 + - col1 / ( + CAST ( NULL AS REAL ) ) col2 FROM tab1 cor0
----
-24
NULL

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

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

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

query II rowsort
SELECT ALL - ( + col2 ) + - col2 AS col1, ( + 30 ) AS col2 FROM tab1
----
-118
30
-136
30
-192
30

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

skipif mysql # not compatible
query I rowsort label-6470
SELECT - 74 + - - COUNT ( * ) FROM tab0
----
-71

query I rowsort
SELECT + 37 * + col1 + + col2 * - - 48 * - 7 AS col1 FROM tab1
----
-19639
-21109
-31738

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 / + 60 = NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6474
SELECT DISTINCT + COUNT( * ) + - 67 FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-6474
SELECT DISTINCT + COUNT ( * ) + - 67 FROM tab0
----
-64

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

query I rowsort
SELECT - - col1 * + + col1 + + col2 FROM tab1 WHERE - + col0 IS NOT NULL
----
2277
292
84

query I rowsort
SELECT - col0 + + 71 - - - col1 AS col1 FROM tab1
----
-19
-67
6

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * 72 BETWEEN col0 AND - - 9
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT ALL + col1 + 35 + + col1 * - col0 AS col0 FROM tab2 cor0
----
-2260
-4816
-4923

query II rowsort
SELECT 30 * - 33 * - col0 + - col2 * + col2 + ( col1 ) AS col2, - 4 AS col2 FROM tab2
----
45062
-4
61837
-4
70953
-4

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

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( NULL ) >= - col1 * + - 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 47 col1 FROM tab0 AS cor0
----
-52
0
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
15
87
97

query I rowsort
SELECT - + 78 + - col0 FROM tab1 cor0
----
-129
-163
-169

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

skipif mysql # not compatible
query I rowsort label-6489
SELECT ALL CAST ( + MIN ( ALL - col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-81

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

query I rowsort
SELECT ALL 13 + 62 FROM tab1 AS cor0 WHERE NULL IS NULL
----
75
75
75

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

query I rowsort
SELECT DISTINCT - 14 * 0 AS col2 FROM tab0 cor0
----
0

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

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

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6498
SELECT ALL ( + + 18 ) * COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL NOT BETWEEN ( NULL ) AND col1 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6499
SELECT ALL CAST( col2 AS SIGNED ) * + 93 * - 35 * + col0 AS col1 FROM tab2 AS cor0
----
-14159250
-3443790
-8332800

skipif mysql # not compatible
query I rowsort label-6499
SELECT ALL CAST ( col2 AS INTEGER ) * + 93 * - 35 * + col0 AS col1 FROM tab2 AS cor0
----
-14159250
-3443790
-8332800

query I rowsort
SELECT 64 * - col1 AS col2 FROM tab2
----
-3264
-4288
-4928

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - 70 col1 FROM tab2 AS cor0
----
-19
-3
7

query I rowsort
SELECT DISTINCT - 19 * + - col0 AS col0 FROM tab2 AS cor0
----
1216
1425
874

query I rowsort
SELECT ALL + - 89 + 18 FROM tab2 AS cor0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT 13 + - col2 FROM tab1 cor0
----
-46
-55
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6506
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE + col2 * - col0 / 24 + - col2 * - col2 * - col0 IN ( + col1 + - - CAST( NULL AS SIGNED ) * + col0, CAST( col1 AS SIGNED ), - + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6506
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE + col2 * - col0 / 24 + - col2 * - col2 * - col0 IN ( + col1 + - - CAST ( NULL AS INTEGER ) * + col0, CAST ( col1 AS INTEGER ), - + col2 )
----
0

query I rowsort
SELECT ALL + ( + + 15 ) + + col2 FROM tab1
----
111
74
83

onlyif mysql # DIV for integer division: 
query I rowsort label-6508
SELECT - col0 DIV col2 * - col0 * - - 52 AS col2 FROM tab1
----
0
4420
4732

skipif mysql # not compatible
query I rowsort label-6508
SELECT - col0 / col2 * - col0 * - - 52 AS col2 FROM tab1
----
0
4420
4732

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

query I rowsort
SELECT 82 - + col1 FROM tab2
----
15
31
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + + col1 - - col1 col1 FROM tab0
----
1296
1848
98

query I rowsort
SELECT - - col0 FROM tab0 cor0 WHERE ( - col1 ) / + - col2 > - col2 * + + col2 * + + col0 + - + 99
----
15
87
97

query I rowsort
SELECT col1 + + + col1 + + 10 * col1 FROM tab0 AS cor0
----
12
252
972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + - 37 col1 FROM tab1
----
22
31
59

query I rowsort
SELECT DISTINCT + col1 + - + 24 FROM tab0
----
-23
-3
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6516
SELECT DISTINCT - COUNT( * ) - + + 69 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-78

skipif mysql # not compatible
query I rowsort label-6516
SELECT DISTINCT - COUNT ( * ) - + + 69 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT ALL + MAX( - 38 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-38

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL + MAX ( - 38 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
-38

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 / 84 + - 16 + - 85 * - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT DISTINCT MAX( - - 82 ) col2 FROM tab1 AS cor0
----
82

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6521
SELECT - 9 * + - CAST( + col0 AS SIGNED ) + col0 AS col1 FROM tab0 AS cor0
----
150
870
970

skipif mysql # not compatible
query I rowsort label-6521
SELECT - 9 * + - CAST ( + col0 AS INTEGER ) + col0 AS col1 FROM tab0 AS cor0
----
150
870
970

query III rowsort
SELECT col0, col1 AS col0, col0 / col1 FROM tab1 WHERE NOT 77 IS NOT NULL
----

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

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

query I rowsort
SELECT + col0 * - 6 FROM tab2
----
-276
-384
-450

query I rowsort
SELECT - col2 + col0 AS col2 FROM tab1 WHERE NOT - 65 >= NULL
----

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 WHERE - col0 * + col2 + col0 = NULL
----

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

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

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

query I rowsort
SELECT - col2 + + col0 FROM tab2 cor0 WHERE - 74 NOT IN ( + col0 * 22 )
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6530
SELECT ALL 87 * - - COUNT( * ) * 89 * + 34 AS col0 FROM tab0 AS cor0
----
789786

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL 87 * - - COUNT ( * ) * 89 * + 34 AS col0 FROM tab0 AS cor0
----
789786

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query I rowsort label-6531
SELECT + COUNT( + CAST( + 3 AS DECIMAL ) ) DIV + COUNT( * ) col0 FROM tab0 AS cor0
----
1

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

query I rowsort
SELECT ALL - col0 + + + 26 AS col0 FROM tab2 cor0
----
-20
-38
-49

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

skipif mysql # not compatible
query I rowsort label-6533
SELECT ALL COUNT ( * ) * + COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
27

query II rowsort
SELECT 43 * - col2 + col2, - col2 AS col1 FROM tab2 AS cor0
----
-1680
-40
-2436
-58
-966
-23

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

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

query I rowsort
SELECT - col0 + + + 83 * col2 + + col0 AS col2 FROM tab2 AS cor0
----
1909
3320
4814

query III rowsort
SELECT * FROM tab0 cor0 WHERE 61 + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * 28 IS NULL
----

query I rowsort
SELECT DISTINCT col1 - - 61 + + 84 AS col2 FROM tab0
----
146
166
226

query I rowsort
SELECT ALL 6 + - - col1 FROM tab0
----
27
7
87

query I rowsort
SELECT DISTINCT - col1 + + + col1 AS col1 FROM tab2
----
0

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

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

query I rowsort
SELECT DISTINCT - col0 * + col0 - + 31 + + col0 AS col1 FROM tab1
----
-2581
-7171
-8221

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 55, - col0 col0 FROM tab0
----
55
-15
55
-87
55
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT 51 * + COUNT( * ) FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-6545
SELECT 51 * + COUNT ( * ) FROM tab0
----
153

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

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6548
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - ( + CAST( NULL AS SIGNED ) ) = + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-6548
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - ( + CAST ( NULL AS INTEGER ) ) = + - CAST ( NULL AS INTEGER )
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6550
SELECT ALL COUNT ( DISTINCT - col1 ) col1 FROM tab1
----
3

query I rowsort
SELECT - ( - 49 ) AS col0 FROM tab2
----
49
49
49

query II rowsort
SELECT DISTINCT - col2 AS col1, col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT - COUNT( * ) * - + 51 * + 45 AS col0 FROM tab1, tab2 AS cor0
----
20655

skipif mysql # not compatible
query I rowsort label-6553
SELECT - COUNT ( * ) * - + 51 * + 45 AS col0 FROM tab1, tab2 AS cor0
----
20655

query I rowsort
SELECT ( - col0 ) * + col1 * col2 FROM tab2
----
-197120
-291450
-53958

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 WHERE NULL BETWEEN - col2 AND + col0 + + col2 * + col2 + + col0 * + col0 * - col1 + - col0 * - col2 * + 54
----

query II rowsort
SELECT + col0 * + ( - 41 ) AS col1, + col2 AS col0 FROM tab0
----
-3567
10
-3977
99
-615
47

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6559
SELECT * FROM tab1 WHERE NULL IN ( col2 + - CAST( - 33 AS SIGNED ) * - col0 )
----

skipif mysql # not compatible
query III rowsort label-6559
SELECT * FROM tab1 WHERE NULL IN ( col2 + - CAST ( - 33 AS INTEGER ) * - col0 )
----

query I rowsort
SELECT 47 * - 28 AS col0 FROM tab0
----
-1316
-1316
-1316

onlyif mysql # DIV for integer division: 
query I rowsort label-6561
SELECT ALL 45 DIV 9 + - 26 FROM tab1
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-6561
SELECT ALL 45 / 9 + - 26 FROM tab1
----
-21
-21
-21

query I rowsort
SELECT - col1 * + 39 FROM tab1
----
-1833
-195
-546

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE ( NULL ) NOT IN ( - col1 )
----

query I rowsort
SELECT DISTINCT col0 + col2 * 13 AS col0 FROM tab1
----
1299
852
975

query I rowsort
SELECT DISTINCT col1 * - 6 + 0 AS col0 FROM tab0
----
-126
-486
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT COUNT( * ) * + 56 AS col2 FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-6566
SELECT COUNT ( * ) * + 56 AS col2 FROM tab0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-6567
SELECT DISTINCT + MIN( ALL 35 ) col0 FROM tab1
----
35

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 45 col2 FROM tab0
----
3915
4365
675

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE NULL <= + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NULL = + 51
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - 78 col2 FROM tab2
----
-3978
-5226
-6006

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6576
SELECT ALL 22 DIV + 43 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL 22 / + 43 AS col0 FROM tab1
----
0
0
0

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

skipif mysql # not compatible
query I rowsort label-6577
SELECT 61 / col2 AS col0 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6578
SELECT 5 DIV + MIN( ALL + 30 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6578
SELECT 5 / + MIN ( ALL + 30 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT col2 * col0 + - 34 AS col2 FROM tab2
----
1024
2526
4316

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6580
SELECT col2 DIV ( CAST( - col0 AS SIGNED ) ) AS col0 FROM tab0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-6580
SELECT col2 / ( CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab0
----
-1
-3
0

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

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

query I rowsort
SELECT 10 + 84 FROM tab0
----
94
94
94

query III rowsort
SELECT * FROM tab0 WHERE NOT - 9 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6584
SELECT ALL - 47 * MIN( DISTINCT - col1 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL - 47 * MIN ( DISTINCT - col1 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6587
SELECT ALL MIN( ALL col1 ) * COUNT( * ) - 26 FROM tab0 AS cor0 WHERE NOT ( col1 ) BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6587
SELECT ALL MIN ( ALL col1 ) * COUNT ( * ) - 26 FROM tab0 AS cor0 WHERE NOT ( col1 ) BETWEEN ( NULL ) AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 63 >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT - COUNT( * ) + COUNT( * ) * - 74 FROM tab0 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-6589
SELECT - COUNT ( * ) + COUNT ( * ) * - 74 FROM tab0 AS cor0
----
-225

query I rowsort
SELECT DISTINCT + ( col2 ) * 69 AS col1 FROM tab2
----
1587
2760
4002

query I rowsort
SELECT ALL 4 * col2 FROM tab1
----
236
272
384

onlyif mysql # DIV for integer division: 
query I rowsort label-6592
SELECT 19 DIV col2 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6592
SELECT 19 / col2 AS col2 FROM tab0
----
0
0
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6594
SELECT COUNT( 61 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6594
SELECT COUNT ( 61 ) FROM tab2
----
3

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

query I rowsort
SELECT 51 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

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

query I rowsort
SELECT + 67 - + 61 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6600
SELECT col2 + col0 AS col1 FROM tab1 AS cor0 WHERE NOT + 8 + CAST( + col1 AS SIGNED ) IS NULL
----
144
147
159

skipif mysql # not compatible
query I rowsort label-6600
SELECT col2 + col0 AS col1 FROM tab1 AS cor0 WHERE NOT + 8 + CAST ( + col1 AS INTEGER ) IS NULL
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6601
SELECT DISTINCT AVG ( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6601
SELECT DISTINCT AVG ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6602
SELECT 94 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-6602
SELECT 94 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
282

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < 26
----

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

query I rowsort
SELECT col0 * + col1 * ( + 90 ) FROM tab0
----
109350
164430
8730

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 >= ( 65 )
----
15
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 * + 78 col2 FROM tab0
----
234
234
234

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6612
SELECT COUNT( + ( - ( col2 ) ) ) * - 60 FROM tab2 cor0
----
-180

skipif mysql # not compatible
query I rowsort label-6612
SELECT COUNT ( + ( - ( col2 ) ) ) * - 60 FROM tab2 cor0
----
-180

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( + col1 / - col0 )
----

query I rowsort
SELECT DISTINCT - col1 * - + ( 53 ) + - 27 + col2 * - 25 AS col1 FROM tab2 AS cor0
----
2074
2101
3054

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE + - col0 IS NOT NULL
----
51
67
77

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 55 ) col1 FROM tab1, tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col1 + + - col1 + col1 + 48 AS col1 FROM tab1 AS cor0
----
1
34
43

query I rowsort
SELECT ALL - col1 * col1 + + 29 FROM tab2 AS cor0
----
-2572
-4460
-5900

onlyif mysql # DIV for integer division: 
query I rowsort label-6620
SELECT - + col0 DIV + col2 + - - 53 + col0 FROM tab1 AS cor0
----
104
137
143

skipif mysql # not compatible
query I rowsort label-6620
SELECT - + col0 / + col2 + - - 53 + col0 FROM tab1 AS cor0
----
104
137
143

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6622
SELECT ALL + 6 FROM tab2 cor0 WHERE NOT CAST( NULL AS DECIMAL ) * - + col1 - col0 NOT IN ( - col0 + col1 )
----

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL + 6 FROM tab2 cor0 WHERE NOT CAST ( NULL AS REAL ) * - + col1 - col0 NOT IN ( - col0 + col1 )
----

query I rowsort
SELECT col0 + + 52 FROM tab0 cor0
----
139
149
67

query I rowsort
SELECT DISTINCT - - 28 + - col2 AS col2 FROM tab1 AS cor0
----
-31
-40
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6625
SELECT ALL - COUNT( * ) + + + ( - 38 ) AS col2 FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL - COUNT ( * ) + + + ( - 38 ) AS col2 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT col0 + col0 AS col2 FROM tab0 WHERE col1 - col0 / col2 <> - col2
----
174
194
30

query II rowsort
SELECT col0 + + - col1, - ( 60 ) + - col2 AS col1 FROM tab1
----
37
-156
44
-128
80
-119

query I rowsort
SELECT DISTINCT - 40 * + 18 - + col0 FROM tab2
----
-766
-784
-795

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 37 NOT BETWEEN - 34 AND NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col0 / + col1 + + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + + ( + col2 ) * 15 IS NULL
----

query I rowsort
SELECT DISTINCT 82 * - + col1 - col1 AS col0 FROM tab2
----
-4233
-5561
-6391

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

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

query I rowsort
SELECT - col1 * - col0 - 50 AS col1 FROM tab0 AS cor0
----
1165
1777
47

query I rowsort
SELECT + 82 * + col1 * + + 38 FROM tab0 AS cor0
----
252396
3116
65436

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

query II rowsort
SELECT DISTINCT + col0 * - + col1 * 20, - col0 AS col0 FROM tab0
----
-1940
-97
-24300
-15
-36540
-87

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 74 + - 4 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6641
SELECT 89 DIV + - 18 col1 FROM tab1
----
-4
-4
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6641
SELECT 89 / + - 18 col1 FROM tab1
----
-4
-4
-4

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6643
SELECT DISTINCT - + CAST( + + 24 AS SIGNED ) * - 64 col1, col1 + + col0 * + col0 FROM tab1 cor0
----
1536
2615
1536
7230
1536
8328

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6643
SELECT DISTINCT - + CAST ( + + 24 AS INTEGER ) * - 64 col1, col1 + + col0 * + col0 FROM tab1 cor0
----
1536
2615
1536
7230
1536
8328

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 74 + col0 >= ( - 83 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT + 36 FROM tab2 WHERE NOT ( ( NULL ) IS NOT NULL )
----
36
36
36

query II rowsort
SELECT col1 AS col2, 96 * - + 21 FROM tab0
----
1
-2016
21
-2016
81
-2016

onlyif mysql # aggregate syntax: 
query I rowsort label-6648
SELECT DISTINCT - MIN( + - 89 ) AS col0 FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-6648
SELECT DISTINCT - MIN ( + - 89 ) AS col0 FROM tab2
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-6649
SELECT ALL ( + col2 ) DIV col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6649
SELECT ALL ( + col2 ) / col1 AS col2 FROM tab2
----
0
0
0

query II rowsort
SELECT DISTINCT col1, 93 * col2 AS col2 FROM tab1
----
14
8928
47
6324
5
5487

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6651
SELECT DISTINCT - 31, CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
-31
NULL

skipif mysql # not compatible
query II rowsort label-6651
SELECT DISTINCT - 31, CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
-31
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6652
SELECT ALL - MAX( + col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-6652
SELECT ALL - MAX ( + col2 ) FROM tab1
----
-96

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 45 IN ( + - col1 * col2 * + + col1 + - 15 )
----

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - 43 = col0
----

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

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

query I rowsort
SELECT DISTINCT + col0 / col1 + 41 FROM tab0 WHERE NULL NOT IN ( - - col1, - 13 * - - col1 * + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col2 * + + 36, col0, 19 / - col0 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT COUNT( * ) FROM tab1 cor0 WHERE ( NOT col2 NOT BETWEEN - col0 * + 92 AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6663
SELECT COUNT ( * ) FROM tab1 cor0 WHERE ( NOT col2 NOT BETWEEN - col0 * + 92 AND NULL )
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 19 ) <> col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 92 col1 FROM tab2 AS cor0 WHERE ( NULL <= NULL )
----

query I rowsort
SELECT ALL - - col1 + + 47 AS col0 FROM tab1 AS cor0
----
52
61
94

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

skipif mysql # not compatible
query I rowsort label-6667
SELECT + + COUNT ( * ) - COUNT ( * ) FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6668
SELECT - ( - + 45 ) - 43 + - - COUNT( * ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6668
SELECT - ( - + 45 ) - 43 + - - COUNT ( * ) AS col1 FROM tab1
----
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 19 * + 43 <= ( + col0 / - - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6670
SELECT col2 * 69 DIV col1 - col0 * - 63 AS col1 FROM tab0
----
12942
5513
985

skipif mysql # not compatible
query I rowsort label-6670
SELECT col2 * 69 / col1 - col0 * - 63 AS col1 FROM tab0
----
12942
5513
985

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 * - + col0 col0 FROM tab2
----
3772
5248
6150

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT - ( - MAX( DISTINCT + col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6674
SELECT - ( - MAX ( DISTINCT + col0 ) ) FROM tab1
----
91

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6676
SELECT ALL ( - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6676
SELECT ALL ( - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
0

query II rowsort
SELECT DISTINCT + col0 * + 58 - 85, 62 AS col2 FROM tab1 cor0
----
2873
62
4845
62
5193
62

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 = - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 60 * col1 AS col1 FROM tab0 AS cor0
----
-1260
-4860
-60

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6681
SELECT ALL - 62 * + + col2 DIV col2 col0 FROM tab0 AS cor0
----
-62
-62
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6681
SELECT ALL - 62 * + + col2 / col2 col0 FROM tab0 AS cor0
----
-62
-62
-62

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

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

query I rowsort
SELECT ALL + - 5 + col2 - - col1 * - col2 AS col0 FROM tab2 AS cor0
----
-1155
-3045
-3833

query II rowsort
SELECT DISTINCT - + col0 * + col0 AS col0, 83 FROM tab2 AS cor0
----
-2116
83
-4096
83
-5625
83

query I rowsort
SELECT ALL - col1 + + 23 AS col2 FROM tab1 AS cor0
----
-24
18
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT + SUM( ALL col2 ) FROM tab0 cor0 WHERE NOT - col2 NOT IN ( - col0, col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6687
SELECT + SUM ( ALL col2 ) FROM tab0 cor0 WHERE NOT - col2 NOT IN ( - col0, col0 )
----
NULL

query I rowsort
SELECT DISTINCT 14 + - col0 FROM tab0 AS cor0
----
-1
-73
-83

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6690
SELECT - COUNT( * ) + 93 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-6690
SELECT - COUNT ( * ) + 93 FROM tab1
----
90

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

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

query II rowsort
SELECT ALL + 18 AS col0, + 21 * + - col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
18
-2079
18
-210
18
-987

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

query I rowsort
SELECT ALL + - 8 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

query I rowsort
SELECT DISTINCT + col2 + + + 15 FROM tab2
----
38
55
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6697
SELECT - - CAST( + 34 AS SIGNED ) + - 28 AS col1 FROM tab1 cor0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-6697
SELECT - - CAST ( + 34 AS INTEGER ) + - 28 AS col1 FROM tab1 cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6698
SELECT DISTINCT - SUM( 25 ) FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6698
SELECT DISTINCT - SUM ( 25 ) FROM tab1 AS cor0
----
-75

query I rowsort
SELECT + + 15 + - 53 FROM tab1 AS cor0
----
-38
-38
-38

query I rowsort
SELECT DISTINCT + col1 * + 65 FROM tab0 AS cor0
----
1365
5265
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6701
SELECT DISTINCT + MAX( - - col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-6701
SELECT DISTINCT + MAX ( - - col0 ) FROM tab0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6702
SELECT + MIN( ALL - + 67 ) AS col2, ( + - 53 ) DIV 5 * ( + + 28 ) AS col1 FROM tab1
----
-67
-280

skipif mysql # not compatible
query II rowsort label-6702
SELECT + MIN ( ALL - + 67 ) AS col2, ( + - 53 ) / 5 * ( + + 28 ) AS col1 FROM tab1
----
-67
-280

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + + - col1 + + - col1 * + 41 * + 23 > NULL
----

query I rowsort
SELECT ALL - col0 * - col2 * - 69 AS col0 FROM tab1 cor0
----
-337824
-346035
-426972

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

query I rowsort
SELECT DISTINCT - ( - - 88 ) FROM tab0
----
-88

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT - col1 * 47 + - + col0 IS NULL
----
59
68
96

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

skipif mysql # not compatible
query I rowsort label-6708
SELECT 70 + - COUNT ( ALL - col2 ) FROM tab0
----
67

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

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

query II rowsort
SELECT - col2 * - + col0, - col2 AS col2 FROM tab2 AS cor0 WHERE NOT col0 + + 99 + 94 + + 52 = ( + 41 )
----
1058
-23
2560
-40
4350
-58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT DISTINCT + MIN( DISTINCT - 45 ) AS col1 FROM tab0 AS cor0 WHERE ( - col1 = + + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6712
SELECT DISTINCT + MIN ( DISTINCT - 45 ) AS col1 FROM tab0 AS cor0 WHERE ( - col1 = + + col0 )
----
NULL

query II rowsort
SELECT ALL - - 68, col2 * col2 AS col2 FROM tab0 AS cor0
----
68
100
68
2209
68
9801

query I rowsort
SELECT - ( col2 ) * - - col2 FROM tab1
----
-3481
-4624
-9216

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

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

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

query II rowsort
SELECT - 26 * + 30 AS col0, 44 FROM tab1
----
-780
44
-780
44
-780
44

onlyif mysql # aggregate syntax: 
query II rowsort label-6718
SELECT + 93 * - COUNT( * ) col0, 62 * - 41 FROM tab1
----
-279
-2542

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6718
SELECT + 93 * - COUNT ( * ) col0, 62 * - 41 FROM tab1
----
-279
-2542

onlyif mysql # DIV for integer division: 
query II rowsort label-6719
SELECT col2 DIV + - col0, col1 AS col1 FROM tab1
----
-1
14
0
47
0
5

skipif mysql # not compatible
query II rowsort label-6719
SELECT col2 / + - col0, col1 AS col1 FROM tab1
----
-1
14
0
47
0
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6720
SELECT ALL col1 DIV + + col0 + col0 AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6720
SELECT ALL col1 / + + col0 + col0 AS col2 FROM tab1 AS cor0
----
51
85
91

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

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

query I rowsort
SELECT ALL + - 49 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT ALL - - 42 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT - col0 * + - col0 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT ( - MAX( ALL - 24 ) ) AS col1 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-6726
SELECT ( - MAX ( ALL - 24 ) ) AS col1 FROM tab0
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6727
SELECT - col0 * - + col0 * CAST( - col1 AS SIGNED ) * col0 AS col1 FROM tab2 cor0
----
-20185088
-28265625
-4964136

skipif mysql # not compatible
query I rowsort label-6727
SELECT - col0 * - + col0 * CAST ( - col1 AS INTEGER ) * col0 AS col1 FROM tab2 cor0
----
-20185088
-28265625
-4964136

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6730
SELECT + 74 DIV col1 * - col1 AS col1 FROM tab1 AS cor0
----
-47
-70
-70

skipif mysql # not compatible
query I rowsort label-6730
SELECT + 74 / col1 * - col1 AS col1 FROM tab1 AS cor0
----
-47
-70
-70

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

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

query II rowsort
SELECT DISTINCT col1, - col0 * col2 - + - col1 FROM tab0
----
1
-9602
21
-849
81
-624

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 84 col1, 37 FROM tab0
----
-84
37
-84
37
-84
37

query II rowsort
SELECT ALL - 66 AS col1, + 58 * + col0 AS col2 FROM tab2
----
-66
2668
-66
3712
-66
4350

query I rowsort
SELECT col1 * + 11 AS col0 FROM tab0
----
11
231
891

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 <> - - 99
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6738
SELECT DISTINCT CAST( NULL AS SIGNED ) / col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6738
SELECT DISTINCT CAST ( NULL AS INTEGER ) / col1 FROM tab0
----
NULL

query I rowsort
SELECT ALL - + 83 AS col1 FROM tab1 AS cor0 WHERE - col1 <= + - 17
----
-83

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6742
SELECT - CAST( + + col2 AS SIGNED ) * ( 18 ) * - col0 + - col2 AS col0 FROM tab1 AS cor0
----
111316
88032
90211

skipif mysql # not compatible
query I rowsort label-6742
SELECT - CAST ( + + col2 AS INTEGER ) * ( 18 ) * - col0 + - col2 AS col0 FROM tab1 AS cor0
----
111316
88032
90211

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

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

query I rowsort
SELECT DISTINCT ( + 86 ) AS col0 FROM tab1
----
86

query II rowsort
SELECT ALL + 7 + + col1 AS col2, - 67 AS col1 FROM tab2 cor0
----
58
-67
74
-67
84
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-6746
SELECT DISTINCT col0 DIV + - col2 + ( + 12 ) AS col1 FROM tab2 AS cor0
----
10
11

skipif mysql # not compatible
query I rowsort label-6746
SELECT DISTINCT col0 / + - col2 + ( + 12 ) AS col1 FROM tab2 AS cor0
----
10
11

query I rowsort
SELECT ALL 50 + col0 + - ( - col1 ) * + col1 AS col0 FROM tab0 AS cor0
----
148
578
6626

query I rowsort
SELECT ALL + col1 * + col0 + - 91 FROM tab1
----
334
4186
623

query I rowsort
SELECT col0 + col1 * - + col2 FROM tab0
----
-123
-2
-3792

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

query I rowsort
SELECT 54 + + + col0 FROM tab0
----
141
151
69

query I rowsort
SELECT + - 44 * - col0 AS col2 FROM tab1 AS cor0
----
2244
3740
4004

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

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

query I rowsort
SELECT DISTINCT 23 * - 90 + - 27 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 77 NOT IN ( + col1 * + 95 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6760
SELECT + + CAST( + col1 AS SIGNED ) * col0 + - col0 AS col2, + col1 AS col2 FROM tab2 AS cor0
----
2300
51
4864
77
4950
67

skipif mysql # not compatible
query II rowsort label-6760
SELECT + + CAST ( + col1 AS INTEGER ) * col0 + - col0 AS col2, + col1 AS col2 FROM tab2 AS cor0
----
2300
51
4864
77
4950
67

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

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

query I rowsort
SELECT + col0 * 2 * + + col1 FROM tab0 cor0
----
194
2430
3654

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 37 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6765
SELECT - AVG ( + CAST( NULL AS DECIMAL ) ) FROM tab2 WHERE NOT + 35 * + col0 BETWEEN ( 15 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6765
SELECT - AVG ( + CAST ( NULL AS REAL ) ) FROM tab2 WHERE NOT + 35 * + col0 BETWEEN ( 15 ) AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6766
SELECT col0 DIV 90 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6766
SELECT col0 / 90 FROM tab0
----
0
0
1

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6768
SELECT MIN( ALL + + col1 ) DIV - 4 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6768
SELECT MIN ( ALL + + col1 ) / - 4 AS col0 FROM tab0
----
0

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 2 NOT BETWEEN NULL AND - col2 + col0 * + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6773
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 50 * + 36 col2 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT - 56 + 77 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

query I rowsort
SELECT DISTINCT + + 46 AS col1 FROM tab0 AS cor0 WHERE - col0 * - ( 44 ) * 77 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 + - col1 BETWEEN col0 AND NULL
----
85
5
59
91
47
68

query II rowsort
SELECT ALL - col1 * + col1 + + col0 + - col2 AS col0, col1 * + - 83 AS col2 FROM tab2 cor0
----
-2578
-4233
-4472
-5561
-5905
-6391

query I rowsort
SELECT ALL - - col1 + - 12 FROM tab1 AS cor0
----
-7
2
35

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT ALL - COUNT( * ) + 39 AS col2 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-6780
SELECT ALL - COUNT ( * ) + 39 AS col2 FROM tab0 AS cor0
----
36

query I rowsort
SELECT - - 20 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT - 58 + + col0 + + 31 + col2 * + ( - - 53 ) * + col2 * - + col0 AS col0 FROM tab1 AS cor0
----
-15681847
-22301488
-24910824

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 27 * - + col0 IS NULL
----

query I rowsort
SELECT + col0 - - col0 * - col0 FROM tab0
----
-210
-7482
-9312

query I rowsort
SELECT DISTINCT - col1 + + 65 FROM tab2
----
-12
-2
14

query I rowsort
SELECT - col0 * ( + + col0 ) - col2 AS col0 FROM tab0
----
-272
-7579
-9508

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6791
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 40 - + - 45 IN ( + col2, + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6791
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 40 - + - 45 IN ( + col2, + CAST ( NULL AS INTEGER ) )
----

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

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE 67 = col1 / + col0 + col2 * + col2 + col0 - - + 51 / col1 + - + 13 * 14
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6795
SELECT DISTINCT - - col2 * 55 * 97 AS col1, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
314765
NULL
362780
NULL
512160
NULL

skipif mysql # not compatible
query II rowsort label-6795
SELECT DISTINCT - - col2 * 55 * 97 AS col1, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
314765
NULL
362780
NULL
512160
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, 83 + + col1 col1 FROM tab1 AS cor0
----
-51
97
-85
88
-91
130

query I rowsort
SELECT DISTINCT - 3 * + - col0 + 5 FROM tab1 AS cor0
----
158
260
278

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 col0, + col0 * - + ( + col0 ) * - + 73 AS col0 FROM tab1 AS cor0
----
-59
527425
-68
604513
-96
189873

query I rowsort
SELECT ALL col1 * + 36 FROM tab0 AS cor0
----
2916
36
756

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

query II rowsort
SELECT - col1 * col2 * - col0, col0 AS col1 FROM tab2 AS cor0
----
197120
64
291450
75
53958
46

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

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

skipif mysql # not compatible
query I rowsort label-6803
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1
----
9

query I rowsort
SELECT ALL - 10 * - + col2 * - 50 * - 2 AS col2 FROM tab1
----
59000
68000
96000

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6805
SELECT + + 69 + + - COUNT( * ) DIV 71 FROM tab2 WHERE NOT + - col1 IS NOT NULL
----
69

skipif mysql # not compatible
query I rowsort label-6805
SELECT + + 69 + + - COUNT ( * ) / 71 FROM tab2 WHERE NOT + - col1 IS NOT NULL
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-6806
SELECT - ( + COUNT( * ) ), COUNT( 97 ) * + + 36 col0 FROM tab1 AS cor0
----
-3
108

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6806
SELECT - ( + COUNT ( * ) ), COUNT ( 97 ) * + + 36 col0 FROM tab1 AS cor0
----
-3
108

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6807
SELECT * FROM tab1 AS cor0 WHERE NOT + 89 / CAST( NULL AS SIGNED ) + - 33 <= + col2 + 5
----

skipif mysql # not compatible
query III rowsort label-6807
SELECT * FROM tab1 AS cor0 WHERE NOT + 89 / CAST ( NULL AS INTEGER ) + - 33 <= + col2 + 5
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * col1 * + + col2 col1, - col0 * + - 48 FROM tab0
----
178929
720
2100
4176
9801
4656

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

query I rowsort
SELECT + + 61 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

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

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

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

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

query I rowsort
SELECT col1 + - col0 * - 61 AS col0 FROM tab2 cor0
----
2857
3981
4642

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col1 + + col0 - + col0 + - 77 * - 37 * + col0 * + - 76 / - 71 AND + col2
----

query I rowsort
SELECT col2 + - + col2 + + + col0 * - - col0 AS col2 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT - col0 * + col1 AS col1 FROM tab0 AS cor0 WHERE - col0 <> + - col1 + + - 10 * + col2 * col1
----
-1215
-1827
-97

query I rowsort
SELECT + 10 + + + col1 AS col1 FROM tab1 AS cor0
----
15
24
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT - ( + MAX( - col0 ) ) col2 FROM tab0 AS cor0 WHERE - col2 <= NULL
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 * + 57 col0 FROM tab2 AS cor0
----
-1425
-1425
-1425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 16 + + + col0 col0 FROM tab1 cor0
----
101
107
67

query I rowsort
SELECT - 19 + - 84 FROM tab0 AS cor0
----
-103
-103
-103

query I rowsort
SELECT ALL - 65 * + - 69 - + col2 AS col1 FROM tab0
----
4386
4438
4475

query I rowsort
SELECT + col0 + - - 1 AS col0 FROM tab0
----
16
88
98

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

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

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

query I rowsort
SELECT ALL col2 - - - col2 FROM tab2
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col1 * - + col0 - + 62 col0 FROM tab0 AS cor0
----
158887
18163
9347

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

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

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

query I rowsort
SELECT - 26 * - - 40 AS col0 FROM tab0 AS cor0
----
-1040
-1040
-1040

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6833
SELECT - CAST( col2 AS SIGNED ), col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

skipif mysql # not compatible
query II rowsort label-6833
SELECT - CAST ( col2 AS INTEGER ), col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 + + col2 col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col0 AND col1 + + 10 * + + 78 * - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT ALL 35 * COUNT( * ) AS col0 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-6836
SELECT ALL 35 * COUNT ( * ) AS col0 FROM tab0
----
105

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6839
SELECT + MIN( ALL - col2 ) DIV + SUM( col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6839
SELECT + MIN ( ALL - col2 ) / + SUM ( col2 ) FROM tab0
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6841
SELECT + col1 DIV + 67 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6841
SELECT + col1 / + 67 AS col1 FROM tab0
----
0
0
1

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE + col2 + - col2 > NULL
----

query I rowsort
SELECT - 38 * col2 AS col0 FROM tab2 AS cor0
----
-1520
-2204
-874

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

query I rowsort
SELECT ALL + + 78 + + 25 + col0 + + + 1 * col0 * + + ( + + col1 ) + col2 * + col2 AS col0 FROM tab0 AS cor0
----
10098
2117
3542

query I rowsort
SELECT ALL 20 - + ( + col1 ) FROM tab2
----
-31
-47
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6847
SELECT DISTINCT + MIN( DISTINCT - 69 ) AS col2 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-6847
SELECT DISTINCT + MIN ( DISTINCT - 69 ) AS col2 FROM tab0 AS cor0
----
-69

query I rowsort
SELECT ALL - ( - col0 ) + + + col2 FROM tab2 AS cor0
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 94 col0 FROM tab0 cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6850
SELECT ALL - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < + 68
----
0

skipif mysql # not compatible
query I rowsort label-6850
SELECT ALL - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL < + 68
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( col0 ) BETWEEN + col1 * + - col0 AND + + 87
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query II rowsort label-6852
SELECT + 79 * + COUNT( * ) AS col1, + 96 AS col1 FROM tab2 AS cor0
----
237
96

skipif mysql # not compatible
query II rowsort label-6852
SELECT + 79 * + COUNT ( * ) AS col1, + 96 AS col1 FROM tab2 AS cor0
----
237
96

query I rowsort
SELECT 68 * col1 - - - 90 FROM tab0 AS cor0
----
-22
1338
5418

query III rowsort
SELECT ALL + 62 * + col1 + col1, 87 * - 22 + 36 AS col1, col0 FROM tab0
----
9 values hashing to d589dfcee775c8b55b98df84768d3798

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

query I rowsort
SELECT - ( + - 76 ) - + 76 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6857
SELECT DISTINCT 92 + - 80 + COUNT( * ) * + 7 FROM tab2
----
33

skipif mysql # not compatible
query I rowsort label-6857
SELECT DISTINCT 92 + - 80 + COUNT ( * ) * + 7 FROM tab2
----
33

query I rowsort
SELECT DISTINCT + col2 + - ( - + 40 ) FROM tab1
----
108
136
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6859
SELECT + ( 43 ) DIV + 45 - - + col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6859
SELECT + ( 43 ) / + 45 - - + col0 FROM tab1
----
51
85
91

query I rowsort
SELECT - + 79 - 9 AS col1 FROM tab1 WHERE NULL <= + 89
----

query I rowsort
SELECT col2 + 27 + col1 FROM tab0
----
127
155
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6862
SELECT ALL - ( + + col1 ) DIV col0 + col1 * col2 * - + col0 AS col1 FROM tab0
----
-18270
-57110
-9603

skipif mysql # not compatible
query I rowsort label-6862
SELECT ALL - ( + + col1 ) / col0 + col1 * col2 * - + col0 AS col1 FROM tab0
----
-18270
-57110
-9603

query I rowsort
SELECT ALL + ( - 31 ) FROM tab2
----
-31
-31
-31

query I rowsort
SELECT col2 + + 0 AS col0 FROM tab0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6865
SELECT ALL 26 - - COUNT( * ) * + COUNT( ALL - + col2 ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-6865
SELECT ALL 26 - - COUNT ( * ) * + COUNT ( ALL - + col2 ) FROM tab2
----
35

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT - 9 <> NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6868
SELECT ALL MIN( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6868
SELECT ALL MIN ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
51

query II rowsort
SELECT DISTINCT col0, col1 * - 83 * col0 AS col1 FROM tab0 AS cor0 WHERE ( col2 > + col0 )
----
15
-100845
97
-8051

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * ( + col0 ) + + + col1 - - + col0 col1 FROM tab0 AS cor0
----
-129
-7461
-9311

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT - COUNT( DISTINCT + ( col0 ) ) * - + 22 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6871
SELECT - COUNT ( DISTINCT + ( col0 ) ) * - + 22 FROM tab2 AS cor0
----
66

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

query I rowsort
SELECT 53 * + 22 + 16 AS col1 FROM tab1
----
1182
1182
1182

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - col1 * 41 / + - ( - + col0 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6875
SELECT DISTINCT - col1 + + + col0 DIV - 50 - - + 83 AS col0 FROM tab2 AS cor0
----
15
32
5

skipif mysql # not compatible
query I rowsort label-6875
SELECT DISTINCT - col1 + + + col0 / - 50 - - + 83 AS col0 FROM tab2 AS cor0
----
15
32
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 * 64 - + col1 col2 FROM tab2 AS cor0
----
2803
2813
2829

onlyif mysql # aggregate syntax: 
query I rowsort label-6877
SELECT - COUNT( * ) * - SUM( DISTINCT + + col1 ) + + 69 FROM tab2 AS cor0
----
654

skipif mysql # not compatible
query I rowsort label-6877
SELECT - COUNT ( * ) * - SUM ( DISTINCT + + col1 ) + + 69 FROM tab2 AS cor0
----
654

query I rowsort
SELECT DISTINCT + ( - col2 ) + col0 AS col2 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6879
SELECT ALL - CAST( + 61 AS SIGNED ) DIV + - 49 + - - 70 FROM tab1 AS cor0
----
71
71
71

skipif mysql # not compatible
query I rowsort label-6879
SELECT ALL - CAST ( + 61 AS INTEGER ) / + - 49 + - - 70 FROM tab1 AS cor0
----
71
71
71

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6881
SELECT + col1 + + - CAST( - - col2 AS SIGNED ) + + col1 AS col0 FROM tab0 cor0
----
-97
115
32

skipif mysql # not compatible
query I rowsort label-6881
SELECT + col1 + + - CAST ( - - col2 AS INTEGER ) + + col1 AS col0 FROM tab0 cor0
----
-97
115
32

query I rowsort
SELECT ALL col0 * - + 69 AS col2 FROM tab0 AS cor0
----
-1035
-6003
-6693

query I rowsort
SELECT - - 53 * - 82 * + ( - - col1 ) + 85 FROM tab1 AS cor0 WHERE + 55 IS NULL
----

query I rowsort
SELECT ALL 67 * col0 AS col0 FROM tab0 AS cor0
----
1005
5829
6499

query I rowsort
SELECT ALL + - 57 + - + 15 FROM tab2 AS cor0
----
-72
-72
-72

query I rowsort
SELECT - - col2 + - 66 FROM tab2 AS cor0
----
-26
-43
-8

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

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

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

query I rowsort
SELECT ALL 50 + col0 FROM tab0
----
137
147
65

query I rowsort
SELECT ALL + 40 + 43 FROM tab2
----
83
83
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6891
SELECT ALL CAST( NULL AS DECIMAL ) * col0 * + 51 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6891
SELECT ALL CAST ( NULL AS REAL ) * col0 * + 51 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * - col2 * - - col0 * col1 FROM tab1
----
-125375
-13669292
-959616

onlyif mysql # DIV for integer division: 
query I rowsort label-6893
SELECT DISTINCT 36 DIV - 56 * - + col1 * - - 68 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6893
SELECT DISTINCT 36 / - 56 * - + col1 * - - 68 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6894
SELECT DISTINCT COUNT( * ) + - 53 FROM tab2 WHERE NOT - 35 / + + col1 = NULL
----
-53

skipif mysql # not compatible
query I rowsort label-6894
SELECT DISTINCT COUNT ( * ) + - 53 FROM tab2 WHERE NOT - 35 / + + col1 = NULL
----
-53

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 21 + col1 col2 FROM tab2
----
30
46
56

query I rowsort
SELECT - - 9 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT - + 35 * 22 + + COUNT( * ) FROM tab2 AS cor0
----
-767

skipif mysql # not compatible
query I rowsort label-6898
SELECT - + 35 * 22 + + COUNT ( * ) FROM tab2 AS cor0
----
-767

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

query I rowsort
SELECT + + col1 - - 16 * - + ( - - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 * + 94 IS NULL
----
-1005
-1155
-765

query II rowsort
SELECT DISTINCT col1 AS col1, + col0 FROM tab2 AS cor0 WHERE NULL = col0
----

query I rowsort
SELECT ALL - col1 + - ( - 46 ) AS col0 FROM tab1 AS cor0
----
-1
32
41

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

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

query I rowsort
SELECT ALL + ( - 88 ) FROM tab1 AS cor0 WHERE + 61 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > - col2 * - 13
----

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

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND 49 + - + col1
----

query I rowsort
SELECT ALL + 7 * - 70 * 37 * + col0 FROM tab1
----
-1541050
-1649830
-924630

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT MAX( DISTINCT + ( - - 48 ) ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-6909
SELECT MAX ( DISTINCT + ( - - 48 ) ) FROM tab2
----
48

query II rowsort
SELECT ALL - 66, col2 FROM tab1
----
-66
59
-66
68
-66
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6911
SELECT ALL col0 AS col2, + col0 AS col0, + CAST( - + col0 AS SIGNED ) * + + 98 FROM tab2
----
9 values hashing to e369a6109284029cdf1da6ec3992064a

skipif mysql # not compatible
query III rowsort label-6911
SELECT ALL col0 AS col2, + col0 AS col0, + CAST ( - + col0 AS INTEGER ) * + + 98 FROM tab2
----
9 values hashing to e369a6109284029cdf1da6ec3992064a

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + col1 ) < + ( + 1 ) + - 31
----

query I rowsort
SELECT ALL col1 - - col1 + - col1 FROM tab2
----
51
67
77

query I rowsort
SELECT - col0 + - 54 AS col2 FROM tab2
----
-100
-118
-129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 84 * ( + col2 ) * - col2 - + - 92 col2 FROM tab2
----
-134308
-282484
-44344

onlyif mysql # DIV for integer division: 
query II rowsort label-6918
SELECT DISTINCT col0 + + + 66, col0 + col1 DIV + + 25 AS col2 FROM tab2
----
112
48
130
67
141
77

skipif mysql # not compatible
query II rowsort label-6918
SELECT DISTINCT col0 + + + 66, col0 + col1 / + + 25 AS col2 FROM tab2
----
112
48
130
67
141
77

query I rowsort
SELECT DISTINCT - 25 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-25

query I rowsort
SELECT - col0 * 72 FROM tab1 AS cor0
----
-3672
-6120
-6552

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT SUM( - col1 ) FROM tab2 AS cor0 WHERE ( NOT ( - 50 ) > ( NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-6922
SELECT SUM ( - col1 ) FROM tab2 AS cor0 WHERE ( NOT ( - 50 ) > ( NULL ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT COUNT( ALL - - 24 ) * 70 FROM tab2 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-6923
SELECT COUNT ( ALL - - 24 ) * 70 FROM tab2 AS cor0
----
210

onlyif mysql # aggregate syntax: 
query II rowsort label-6924
SELECT - SUM( DISTINCT + - col0 ) AS col1, - 74 AS col0 FROM tab1 AS cor0
----
227
-74

skipif mysql # not compatible
query II rowsort label-6924
SELECT - SUM ( DISTINCT + - col0 ) AS col1, - 74 AS col0 FROM tab1 AS cor0
----
227
-74

query I rowsort
SELECT col0 * + 14 AS col2 FROM tab2
----
1050
644
896

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

query I rowsort
SELECT + + ( + 95 ) FROM tab2 WHERE NOT NULL NOT IN ( col1, - col0 * - + col2 - + - 67, col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 91, - ( + col1 ) col1 FROM tab1
----
91
-14
91
-47
91
-5

query I rowsort
SELECT DISTINCT col1 * + ( + + col1 ) AS col2 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT DISTINCT col0 * + 12 AS col0 FROM tab2
----
552
768
900

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6933
SELECT DISTINCT 33 DIV col1 * col0 FROM tab1
----
0
102
510

skipif mysql # not compatible
query I rowsort label-6933
SELECT DISTINCT 33 / col1 * col0 FROM tab1
----
0
102
510

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

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

query I rowsort
SELECT ALL + + 48 * - + col2 * - col2 * + + 82 * 15 AS col2 FROM tab0 AS cor0
----
130419360
578651040
5904000

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

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

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

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

query II rowsort
SELECT DISTINCT + ( 28 ), 24 / col2 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-6939
SELECT DISTINCT MIN ( ALL 11 ) FROM tab1 AS cor0
----
11

query I rowsort
SELECT DISTINCT - 59 + - 53 FROM tab2 AS cor0
----
-112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col1 col0 FROM tab1
----
110
115
64

query I rowsort
SELECT DISTINCT - ( - - 99 ) + ( - col0 ) FROM tab0
----
-114
-186
-196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6943
SELECT DISTINCT - CAST( + ( - - col0 ) AS SIGNED ) AS col2 FROM tab0 WHERE - 13 * - col0 + col0 / + col1 * + - 19 <= NULL
----

skipif mysql # not compatible
query I rowsort label-6943
SELECT DISTINCT - CAST ( + ( - - col0 ) AS INTEGER ) AS col2 FROM tab0 WHERE - 13 * - col0 + col0 / + col1 * + - 19 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6944
SELECT + - 69 * 40 * CAST( NULL AS SIGNED ) * - col1 - + col0 * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6944
SELECT + - 69 * 40 * CAST ( NULL AS INTEGER ) * - col1 - + col0 * + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6946
SELECT DISTINCT 72 - + + CAST( NULL AS SIGNED ) + + - col2 AS col1, col2 AS col2 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-6946
SELECT DISTINCT 72 - + + CAST ( NULL AS INTEGER ) + + - col2 AS col1, col2 AS col2 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
NULL
10
NULL
47
NULL
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 / col0 * - 20 * + 22 BETWEEN + - 46 * + col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col1 IN ( - col1, - 8 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT SUM( ALL - 80 ) + + 9 + - + COUNT( * ) + - COUNT( * ) + + COUNT( * ) + MIN( 21 ) - - ( - + ( + 72 ) ) FROM tab2
----
-285

skipif mysql # not compatible
query I rowsort label-6950
SELECT SUM ( ALL - 80 ) + + 9 + - + COUNT ( * ) + - COUNT ( * ) + + COUNT ( * ) + MIN ( 21 ) - - ( - + ( + 72 ) ) FROM tab2
----
-285

query I rowsort
SELECT col2 + - col0 * col0 + + col1 AS col2 FROM tab2
----
-2042
-3979
-5500

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6952
SELECT * FROM tab1 cor0 WHERE 37 * + CAST( - 79 AS DECIMAL ) * - 30 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6952
SELECT * FROM tab1 cor0 WHERE 37 * + CAST ( - 79 AS REAL ) * - 30 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6954
SELECT DISTINCT - + col2 DIV col2 AS col2 FROM tab1 AS cor0 WHERE + 77 + - + col0 + - + col1 IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-6954
SELECT DISTINCT - + col2 / col2 AS col2 FROM tab1 AS cor0 WHERE + 77 + - + col0 + - + col1 IS NOT NULL
----
-1

query I rowsort
SELECT ALL - - col2 - 47 * + col2 AS col2 FROM tab0 AS cor0
----
-2162
-4554
-460

query II rowsort
SELECT ALL + 10, col0 + col2 AS col1 FROM tab2 AS cor0
----
10
104
10
133
10
69

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

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

query I rowsort
SELECT DISTINCT + col0 * + + col1 + + col2 AS col0 FROM tab2 AS cor0
----
2369
4968
5083

query II rowsort
SELECT ALL 68 AS col0, 17 AS col0 FROM tab2 AS cor0
----
68
17
68
17
68
17

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - 76 <= - 37
----
91
47
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6961
SELECT CAST( NULL AS SIGNED ) * + 7 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6961
SELECT CAST ( NULL AS INTEGER ) * + 7 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 FROM tab2 AS cor0 WHERE NOT NULL < col0
----

query I rowsort
SELECT DISTINCT - 17 * col2 FROM tab0 AS cor0
----
-1683
-170
-799

query I rowsort
SELECT DISTINCT + col2 * + 58 FROM tab1 AS cor0
----
3422
3944
5568

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 < - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL - 45 * - + 19 FROM tab1
----
855
855
855

query I rowsort
SELECT DISTINCT + ( 99 ) * + col2 AS col1 FROM tab1
----
5841
6732
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-6970
SELECT DISTINCT - ( COUNT( DISTINCT 49 ) ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6970
SELECT DISTINCT - ( COUNT ( DISTINCT 49 ) ) FROM tab0
----
-1

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

skipif mysql # not compatible
query II rowsort label-6971
SELECT + 75 / - + SUM ( + + col2 ) AS col0, - COUNT ( * ) AS col1 FROM tab0
----
0
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT + MIN( + 97 ) FROM tab1, tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-6972
SELECT + MIN ( + 97 ) FROM tab1, tab0 AS cor0
----
97

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6974
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0, 77 AS col1 FROM tab1
----
NULL
77

skipif mysql # not compatible
query II rowsort label-6974
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0, 77 AS col1 FROM tab1
----
NULL
77

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 29 <> NULL
----

query I rowsort
SELECT ALL col1 * - 4 AS col1 FROM tab2
----
-204
-268
-308

onlyif mysql # DIV for integer division: 
query I rowsort label-6978
SELECT - col0 + + col0 * col1 DIV + col0 AS col2 FROM tab2
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-6978
SELECT - col0 + + col0 * col1 / + col0 AS col2 FROM tab2
----
-8
13
5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + + col0 - - col0 col0 FROM tab2 AS cor0
----
143
205
217

query I rowsort
SELECT - 55 * - 42 + - + col1 AS col2 FROM tab0 AS cor0
----
2229
2289
2309

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

skipif mysql # not compatible
query II rowsort label-6982
SELECT ALL + COUNT ( * ), - 41 AS col0 FROM tab2 AS cor0
----
3
-41

onlyif mysql # DIV for integer division: 
query II rowsort label-6983
SELECT - col2 AS col1, + 27 DIV col0 AS col2 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

skipif mysql # not compatible
query II rowsort label-6983
SELECT - col2 AS col1, + 27 / col0 AS col2 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

query I rowsort
SELECT ALL + col2 + - - 39 FROM tab0 AS cor0
----
138
49
86

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

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

query I rowsort
SELECT ALL + col0 * - col0 + + + 66 AS col1 FROM tab0 AS cor0
----
-159
-7503
-9343

query I rowsort
SELECT ALL col2 + - + 78 FROM tab0 cor0
----
-31
-68
21

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE col0 * 90 < NULL
----

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

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

query I rowsort
SELECT DISTINCT col0 + - col0 * 11 * + col2 + + 48 AS col0 FROM tab2
----
-11544
-28048
-47727

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 * + + col0 / ( + + col1 ) + + ( - 55 ) IS NULL
----

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

query I rowsort
SELECT + col0 * col0 * 88 AS col2 FROM tab0
----
19800
666072
827992

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6994
SELECT col1 * - CAST( + ( - + 92 ) AS SIGNED ) - col1 + - 62 * - col0 FROM tab1
----
4436
5725
9919

skipif mysql # not compatible
query I rowsort label-6994
SELECT col1 * - CAST ( + ( - + 92 ) AS INTEGER ) - col1 + - 62 * - col0 FROM tab1
----
4436
5725
9919

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6995
SELECT + AVG ( ALL col1 ) * - + CAST( AVG ( DISTINCT + - 13 ) AS DECIMAL ) * - 70 * - 80 + - 61 FROM tab1 WHERE - 12 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6995
SELECT + AVG ( ALL col1 ) * - + CAST ( AVG ( DISTINCT + - 13 ) AS REAL ) * - 70 * - 80 + - 61 FROM tab1 WHERE - 12 IS NULL
----
NULL

query I rowsort
SELECT - 62 - + 60 FROM tab2
----
-122
-122
-122

onlyif mysql # DIV for integer division: 
query I rowsort label-6997
SELECT ALL - col2 DIV col2 + + + col2 + - col1 col2 FROM tab0
----
-12
-35
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6997
SELECT ALL - col2 / col2 + + + col2 + - col1 col2 FROM tab0
----
-12
-35
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6998
SELECT ( - + 1 ) * + + SUM( ALL col2 ) - 79 * 77 AS col1 FROM tab1
----
-6306

skipif mysql # not compatible
query I rowsort label-6998
SELECT ( - + 1 ) * + + SUM ( ALL col2 ) - 79 * 77 AS col1 FROM tab1
----
-6306

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 - 84 <= - 78 * + 63 + + + col0
----

query I rowsort
SELECT DISTINCT col1 + + 15 AS col2 FROM tab1 cor0
----
20
29
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT - COUNT( DISTINCT + + 77 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7001
SELECT - COUNT ( DISTINCT + + 77 ) FROM tab2
----
-1

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON - 16 NOT BETWEEN NULL AND - 32
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

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

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

query II rowsort
SELECT 45 * + col2 * - col2 AS col0, col2 AS col1 FROM tab0 AS cor0
----
-441045
99
-4500
10
-99405
47

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7005
SELECT ALL ( + SUM ( + + col0 ) ) col2 FROM tab0
----
199

query I rowsort
SELECT 49 * - 97 AS col0 FROM tab2
----
-4753
-4753
-4753

query II rowsort
SELECT ALL col1 AS col0, - 52 - + + 26 FROM tab0
----
1
-78
21
-78
81
-78

query II rowsort
SELECT - col2 AS col1, col2 + col2 AS col0 FROM tab0
----
-10
20
-47
94
-99
198

query I rowsort
SELECT - ( - - 10 ) FROM tab1
----
-10
-10
-10

query I rowsort
SELECT 28 * + col1 AS col1 FROM tab2
----
1428
1876
2156

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7012
SELECT DISTINCT + col0 AS col1, - 49 DIV - + col0 AS col1 FROM tab1
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-7012
SELECT DISTINCT + col0 AS col1, - 49 / - + col0 AS col1 FROM tab1
----
51
0
85
0
91
0

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = - 84 - + + 67
----

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

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

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

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

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

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

query I rowsort
SELECT ALL - + 18 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

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

skipif mysql # not compatible
query I rowsort label-7018
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE col2 - - col2 <> - 63
----
3

query I rowsort
SELECT DISTINCT - - col2 * - 41 * + 96 FROM tab0 AS cor0
----
-184992
-389664
-39360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7020
SELECT - ( CAST( + + 93 AS SIGNED ) ) + + - 0 AS col2 FROM tab0 AS cor0
----
-93
-93
-93

skipif mysql # not compatible
query I rowsort label-7020
SELECT - ( CAST ( + + 93 AS INTEGER ) ) + + - 0 AS col2 FROM tab0 AS cor0
----
-93
-93
-93

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7022
SELECT ALL - col0 * - 13 + - CAST( NULL AS DECIMAL ) * - col1 / + 25 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7022
SELECT ALL - col0 * - 13 + - CAST ( NULL AS REAL ) * - col1 / + 25 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 81 + + + 41 FROM tab2 AS cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-7024
SELECT + - COUNT( * ) + + COUNT( - col2 ) AS col2, - COUNT( * ) - ( MAX( DISTINCT col0 ) ) AS col1 FROM tab0 AS cor0
----
0
-100

skipif mysql # not compatible
query II rowsort label-7024
SELECT + - COUNT ( * ) + + COUNT ( - col2 ) AS col2, - COUNT ( * ) - ( MAX ( DISTINCT col0 ) ) AS col1 FROM tab0 AS cor0
----
0
-100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7025
SELECT + col2 * 26 + + + CAST( - col0 AS SIGNED ) FROM tab1
----
1449
1677
2445

skipif mysql # not compatible
query I rowsort label-7025
SELECT + col2 * 26 + + + CAST ( - col0 AS INTEGER ) FROM tab1
----
1449
1677
2445

onlyif mysql # aggregate syntax: 
query I rowsort label-7026
SELECT ALL COUNT( * ) - - + 20 + - ( - 5 ) FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-7026
SELECT ALL COUNT ( * ) - - + 20 + - ( - 5 ) FROM tab1
----
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 col0 FROM tab1
----
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT - COUNT( * ) * - 21 * + 23 * 15 FROM tab2
----
21735

skipif mysql # not compatible
query I rowsort label-7029
SELECT - COUNT ( * ) * - 21 * + 23 * 15 FROM tab2
----
21735

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 98 - - + col1 col2 FROM tab0
----
119
179
99

query I rowsort
SELECT col0 / - col2 FROM tab0 WHERE NULL > NULL
----

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

query I rowsort
SELECT ALL - col2 * col1 + - 16 AS col1 FROM tab2
----
-1189
-3096
-3902

query I rowsort
SELECT ALL 82 * + col1 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 * col0 + + col2 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7036
SELECT MAX( 74 ) AS col0 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-7036
SELECT MAX ( 74 ) AS col0 FROM tab2
----
74

query I rowsort
SELECT ( - 63 ) AS col1 FROM tab0
----
-63
-63
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7038
SELECT - CAST( col1 AS SIGNED ) * - 37 FROM tab0 WHERE NULL NOT BETWEEN + col0 - CAST( NULL AS SIGNED ) AND + 85
----

skipif mysql # not compatible
query I rowsort label-7038
SELECT - CAST ( col1 AS INTEGER ) * - 37 FROM tab0 WHERE NULL NOT BETWEEN + col0 - CAST ( NULL AS INTEGER ) AND + 85
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + 69 col2 FROM tab1 WHERE NOT NULL = ( - col2 )
----

query I rowsort
SELECT - col1 / col0 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7042
SELECT DISTINCT 69 AS col2 FROM tab2 WHERE col2 IN ( + CAST( col1 AS SIGNED ) + - col1 )
----

skipif mysql # not compatible
query I rowsort label-7042
SELECT DISTINCT 69 AS col2 FROM tab2 WHERE col2 IN ( + CAST ( col1 AS INTEGER ) + - col1 )
----

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7044
SELECT - COUNT( CAST( NULL AS DECIMAL ) ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7044
SELECT - COUNT ( CAST ( NULL AS REAL ) ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7045
SELECT DISTINCT + COUNT( * ) + + ( SUM( + col2 ) - + 17 ) FROM tab1
----
209

skipif mysql # not compatible
query I rowsort label-7045
SELECT DISTINCT + COUNT ( * ) + + ( SUM ( + col2 ) - + 17 ) FROM tab1
----
209

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 <> - 64
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 60 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 45 ) NOT BETWEEN 28 AND 82
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7049
SELECT 90 DIV 67 + - COUNT( * ) AS col1 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-7049
SELECT 90 / 67 + - COUNT ( * ) AS col1 FROM tab0
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7050
SELECT ALL * FROM tab2 WHERE NOT ( - ( ( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) ) ) - 45 / - col2 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-7050
SELECT ALL * FROM tab2 WHERE NOT ( - ( ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) ) - 45 / - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7051
SELECT CAST( - 42 AS SIGNED ) + - col0 FROM tab1
----
-127
-133
-93

skipif mysql # not compatible
query I rowsort label-7051
SELECT CAST ( - 42 AS INTEGER ) + - col0 FROM tab1
----
-127
-133
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-7052
SELECT DISTINCT 89 + + COUNT( * ) FROM tab2 cor0
----
92

skipif mysql # not compatible
query I rowsort label-7052
SELECT DISTINCT 89 + + COUNT ( * ) FROM tab2 cor0
----
92

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 + - col0 col0 FROM tab0
----
-52
-62
20

query I rowsort
SELECT - 35 + col0 FROM tab1
----
16
50
56

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

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NULL IN ( 53 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7058
SELECT - - 7 DIV col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7058
SELECT - - 7 / col2 FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 28 ) < NULL
----

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

query I rowsort
SELECT DISTINCT + col2 * 28 FROM tab2 AS cor0 WHERE ( col2 ) / col2 > NULL
----

query I rowsort
SELECT - 29 FROM tab0 AS cor0 WHERE - 57 IS NOT NULL
----
-29
-29
-29

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7064
SELECT ALL col0 + col0 DIV col1 FROM tab1 AS cor0
----
102
54
92

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL col0 + col0 / col1 FROM tab1 AS cor0
----
102
54
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7065
SELECT DISTINCT + ( + 45 ) * 35 + CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
1580
1589
1622

skipif mysql # not compatible
query I rowsort label-7065
SELECT DISTINCT + ( + 45 ) * 35 + CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
1580
1589
1622

query I rowsort
SELECT col1 * - + 14 - col1 AS col1 FROM tab0
----
-1215
-15
-315

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7068
SELECT ALL - 16 * + - COUNT( * ) + 60 * COUNT( * ) AS col1 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-7068
SELECT ALL - 16 * + - COUNT ( * ) + 60 * COUNT ( * ) AS col1 FROM tab0
----
228

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

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

query III rowsort
SELECT * FROM tab2 WHERE 51 NOT IN ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + + 2 FROM tab0
----
17
89
99

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7074
SELECT CAST( ( COUNT( * ) ) AS SIGNED ) col0 FROM tab1
----
3

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

query I rowsort
SELECT ALL + 80 AS col0 FROM tab1, tab1 cor0
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # DIV for integer division: 
query I rowsort label-7076
SELECT ALL - col0 DIV - 44 AS col2 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7076
SELECT ALL - col0 / - 44 AS col2 FROM tab1 AS cor0
----
1
1
2

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

skipif mysql # not compatible
query I rowsort label-7077
SELECT - COUNT ( 56 ) AS col0 FROM tab0 AS cor0
----
-3

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

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

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

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

query I rowsort
SELECT DISTINCT - 52 AS col1 FROM tab1 WHERE NOT ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT col0 + ( - col1 ) + col0 * col2 FROM tab0
----
639
936
9699

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= col0 AND - 54 IS NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7086
SELECT 45 + - MIN( ALL + + CAST( col0 AS SIGNED ) ) + + 78 FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-7086
SELECT 45 + - MIN ( ALL + + CAST ( col0 AS INTEGER ) ) + + 78 FROM tab1 AS cor0
----
72

query I rowsort
SELECT ALL + + col2 + + + col1 FROM tab2 AS cor0
----
117
125
74

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7089
SELECT - SUM( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT ALL 17 FROM tab1 WHERE NOT ( + col2 ) IS NOT NULL
----

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 ) < + 38
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * col1 + + col0 * - col2 col0 FROM tab1 AS cor0
----
-1911
-4182
-4590

query I rowsort
SELECT + col2 + - col1 / 48 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + 65 + col0 + - 69 FROM tab2 AS cor0
----
42
60
71

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7100
SELECT ALL - 96 + + 74 DIV - - col0 + + 45 AS col2 FROM tab1 AS cor0
----
-50
-51
-51

skipif mysql # not compatible
query I rowsort label-7100
SELECT ALL - 96 + + 74 / - - col0 + + 45 AS col2 FROM tab1 AS cor0
----
-50
-51
-51

query I rowsort
SELECT + col1 * + col2 + + 3 + ( - col2 ) FROM tab2 AS cor0
----
1153
3043
3831

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

skipif mysql # not compatible
query I rowsort label-7102
SELECT DISTINCT + 7 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
4

query I rowsort
SELECT DISTINCT - 77 - col0 AS col1 FROM tab2 AS cor0
----
-123
-141
-152

query III rowsort
SELECT * FROM tab2 WHERE - col0 = + - 86
----

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

skipif mysql # not compatible
query I rowsort label-7105
SELECT DISTINCT - col2 - + col2 * - CAST ( NULL AS INTEGER ) + - col0 + + ( - - CAST ( NULL AS REAL ) ) * 69 AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - 97, + col2, + col1 * + - col2 * ( col2 ) + + col1 )
----

query I rowsort
SELECT ALL col0 * col1 + + - 82 - + 14 FROM tab1
----
329
4181
618

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT DISTINCT + 67 - - COUNT( * ) FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-7109
SELECT DISTINCT + 67 - - COUNT ( * ) FROM tab2
----
70

query II rowsort
SELECT ALL + ( - - col0 ) AS col0, + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
51
64
77
75
67

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7114
SELECT DISTINCT ( + col2 ) DIV - 75 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7114
SELECT DISTINCT ( + col2 ) / - 75 FROM tab2
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7116
SELECT DISTINCT - MAX( 82 ) DIV - COUNT( * ) + - + MAX( DISTINCT + col2 ) FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-7116
SELECT DISTINCT - MAX ( 82 ) / - COUNT ( * ) + - + MAX ( DISTINCT + col2 ) FROM tab0 AS cor0
----
-72

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7118
SELECT ( + COUNT( * ) ) * + MAX( DISTINCT + col1 ) DIV - COUNT( DISTINCT 11 ) + MIN( + col2 ) * 52 FROM tab2 AS cor0
----
965

skipif mysql # not compatible
query I rowsort label-7118
SELECT ( + COUNT ( * ) ) * + MAX ( DISTINCT + col1 ) / - COUNT ( DISTINCT 11 ) + MIN ( + col2 ) * 52 FROM tab2 AS cor0
----
965

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

query I rowsort
SELECT + - col1 AS col2 FROM tab2 AS cor0 WHERE NOT 1 = + col1
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 51 * + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7122
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( - + col0 ) BETWEEN - + 51 AND ( 60 * + + col1 )
----
2

skipif mysql # not compatible
query I rowsort label-7122
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( - + col0 ) BETWEEN - + 51 AND ( 60 * + + col1 )
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7123
SELECT DISTINCT + - ( - + 98 ) * - 36 + + ( - MAX( + col2 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 + col1, col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT + - ( - + 98 ) * - 36 + + ( - MAX ( + col2 ) ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 + col1, col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7124
SELECT DISTINCT - CAST( + col1 AS SIGNED ) * - col2 * + 54 AS col2, 96 col0 FROM tab1
----
15930
96
172584
96
72576
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7124
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) * - col2 * + 54 AS col2, 96 col0 FROM tab1
----
15930
96
172584
96
72576
96

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

skipif mysql # not compatible
query I rowsort label-7125
SELECT DISTINCT 57 + - + COUNT ( * ) FROM tab1
----
54

query I rowsort
SELECT 82 * + - 84 * + ( col1 ) FROM tab0
----
-144648
-557928
-6888

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

query I rowsort
SELECT + 3 + - col1 * col1 * + ( + - ( - col2 ) ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-308364
-4407
-96

query I rowsort
SELECT DISTINCT col2 + 44 FROM tab1 AS cor0
----
103
112
140

query I rowsort
SELECT - col0 + + 38 FROM tab2 AS cor0
----
-26
-37
-8

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT 4 + COUNT( + + col1 ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-7132
SELECT 4 + COUNT ( + + col1 ) FROM tab1
----
7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7133
SELECT - 44 * - CAST( NULL AS DECIMAL ) AS col1, COUNT( * ) FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7133
SELECT - 44 * - CAST ( NULL AS REAL ) AS col1, COUNT ( * ) FROM tab0
----
NULL
3

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7135
SELECT ALL + AVG ( DISTINCT col1 ) FROM tab1 WHERE NOT - 22 * - 60 + + col2 NOT BETWEEN ( - 85 ) * + - CAST( + col1 AS DECIMAL ) * - col0 AND + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7135
SELECT ALL + AVG ( DISTINCT col1 ) FROM tab1 WHERE NOT - 22 * - 60 + + col2 NOT BETWEEN ( - 85 ) * + - CAST ( + col1 AS REAL ) * - col0 AND + col0
----
NULL

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

query I rowsort
SELECT ALL + - col2 * col1 + - col2 FROM tab2 AS cor0
----
-1196
-3120
-3944

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

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

query I rowsort
SELECT 17 - - col2 FROM tab0 cor0
----
116
27
64

query I rowsort
SELECT DISTINCT + AVG ( ( - 10 ) ) FROM tab0 WHERE ( NULL ) IS NULL AND NULL BETWEEN col1 AND NULL
----
NULL

query I rowsort
SELECT col0 * ( col0 ) AS col1 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE - col1 + 67 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7143
SELECT 55 * + 90 * + - COUNT( * ) FROM tab1 AS cor0
----
-14850

skipif mysql # not compatible
query I rowsort label-7143
SELECT 55 * + 90 * + - COUNT ( * ) FROM tab1 AS cor0
----
-14850

query I rowsort
SELECT - 65 * + col1 * col0 AS col0 FROM tab1 AS cor0
----
-27625
-278005
-46410

query I rowsort
SELECT DISTINCT - col1 * + ( + + col1 ) * 45 + - col0 FROM tab1 AS cor0 WHERE NOT ( NOT col0 + 56 NOT BETWEEN - col1 AND NULL )
----

query I rowsort
SELECT DISTINCT - - 82 * - col2 FROM tab2 AS cor0
----
-1886
-3280
-4756

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7148
SELECT + COUNT( * ), ( 88 ) DIV - - COUNT( * ) AS col1 FROM tab0
----
3
29

skipif mysql # not compatible
query II rowsort label-7148
SELECT + COUNT ( * ), ( 88 ) / - - COUNT ( * ) AS col1 FROM tab0
----
3
29

query I rowsort
SELECT DISTINCT 8 - + 95 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-7150
SELECT ALL + col1 * - - col2 * col1 + ( + 77 ) + - 93 DIV + col2 + + col0 FROM tab0 AS cor0
----
273
308458
4565

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL + col1 * - - col2 * col1 + ( + 77 ) + - 93 / + col2 + + col0 FROM tab0 AS cor0
----
273
308458
4565

onlyif mysql # aggregate syntax: 
query II rowsort label-7151
SELECT DISTINCT - 81 AS col0, ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-81
-3

skipif mysql # not compatible
query II rowsort label-7151
SELECT DISTINCT - 81 AS col0, ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-81
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7153
SELECT ALL - ( + - COUNT( * ) ) + SUM( - col2 ) AS col1 FROM tab1 AS cor0
----
-220

skipif mysql # not compatible
query I rowsort label-7153
SELECT ALL - ( + - COUNT ( * ) ) + SUM ( - col2 ) AS col1 FROM tab1 AS cor0
----
-220

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

query I rowsort
SELECT ALL - + col0 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN col0 AND + col0
----

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

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

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

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

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

query I rowsort
SELECT 18 + - col1 * 45 * col0 + + + col1 * col1 + + - col2 AS col2 FROM tab1 WHERE + col1 * - + col1 + - col1 IS NOT NULL
----
-190306
-19141
-32012

query I rowsort
SELECT 61 + - + col1 + - + col1 AS col1 FROM tab2
----
-41
-73
-93

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 > + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7164
SELECT + 66 / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7164
SELECT + 66 / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7165
SELECT ALL - + COUNT( * ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7165
SELECT ALL - + COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 6 + + 98 FROM tab0 AS cor0
----
104
104
104

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7167
SELECT ALL * FROM tab2 cor0 WHERE NOT 93 <> - - col2 / - col2 + + + 38 + ( - CAST( NULL AS SIGNED ) ) * col1 + - 94
----

skipif mysql # not compatible
query III rowsort label-7167
SELECT ALL * FROM tab2 cor0 WHERE NOT 93 <> - - col2 / - col2 + + + 38 + ( - CAST ( NULL AS INTEGER ) ) * col1 + - 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT - COUNT( - col0 ) + + - 66 col0 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7168
SELECT - COUNT ( - col0 ) + + - 66 col0 FROM tab1 AS cor0
----
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7169
SELECT ALL + 7 DIV - - 33 + + COUNT( DISTINCT - col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL + 7 / - - 33 + + COUNT ( DISTINCT - col0 ) FROM tab0 AS cor0
----
3

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

query II rowsort
SELECT 21 AS col2, - 14 FROM tab1 AS cor0
----
21
-14
21
-14
21
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT + MAX( - col0 ) col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7172
SELECT + MAX ( - col0 ) col2 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT ALL MAX( DISTINCT 15 ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-7173
SELECT ALL MAX ( DISTINCT 15 ) FROM tab2
----
15

query II rowsort
SELECT col1 + - - col2 AS col2, col1 FROM tab2 WHERE NOT NULL > NULL
----

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

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col2 > + col0
----
15
81
47
97
1
99

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

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

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

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

query I rowsort
SELECT DISTINCT 83 * col0 - ( + + col1 ) AS col1 FROM tab1 AS cor0
----
4219
7050
7506

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7181
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL <= - CAST( - + col1 AS SIGNED ) - - col1
----

skipif mysql # not compatible
query III rowsort label-7181
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL <= - CAST ( - + col1 AS INTEGER ) - - col1
----

query I rowsort
SELECT - 21 AS col1 FROM tab2 cor0 WHERE NOT ( col2 ) < - col0
----
-21
-21
-21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7183
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + 77 * - CAST( + 61 AS SIGNED ) * col2 + - - col0 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7183
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( + 77 * - CAST ( + 61 AS INTEGER ) * col2 + - - col0 ) AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-7184
SELECT ALL COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7185
SELECT - CAST( - MIN( ALL - 73 ) AS SIGNED ) FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-7185
SELECT - CAST ( - MIN ( ALL - 73 ) AS INTEGER ) FROM tab1 AS cor0
----
-73

query I rowsort
SELECT DISTINCT + - col0 * - - col0 * 41 + - col2 AS col1 FROM tab1 AS cor0
----
-106737
-296284
-339589

query I rowsort
SELECT DISTINCT + + col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + ( + 2 ) + + 15 * + col1 FROM tab0
----
1217
17
317

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT + SUM( DISTINCT + + 69 ) FROM tab0
----
69

skipif mysql # not compatible
query I rowsort label-7191
SELECT + SUM ( DISTINCT + + 69 ) FROM tab0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7192
SELECT 41 * + + MIN( col0 ) AS col1 FROM tab2
----
1886

skipif mysql # not compatible
query I rowsort label-7192
SELECT 41 * + + MIN ( col0 ) AS col1 FROM tab2
----
1886

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT DISTINCT - COUNT( * ) * - + 32 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT - COUNT ( * ) * - + 32 FROM tab0
----
96

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

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

query I rowsort
SELECT + col1 + - col1 + col0 * 77 FROM tab1
----
3927
6545
7007

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 86 <> + - 29 / - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE + + col1 * + col1 * - col2 <= - - col0 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 * - 36 FROM tab0 AS cor0
----
-1692
-3564
-360

query I rowsort
SELECT + + col1 FROM tab2 AS cor0 WHERE NOT col2 + col0 IS NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-7204
SELECT DISTINCT - 1 DIV - ( - col1 ) + ( + 35 ) + + col1 + col1 * + col2 FROM tab0 AS cor0 WHERE + col2 - + col2 - + 35 NOT BETWEEN + - col2 AND NULL
----
266

skipif mysql # not compatible
query I rowsort label-7204
SELECT DISTINCT - 1 / - ( - col1 ) + ( + 35 ) + + col1 + col1 * + col2 FROM tab0 AS cor0 WHERE + col2 - + col2 - + 35 NOT BETWEEN + - col2 AND NULL
----
266

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 + - 53 > NULL )
----

query I rowsort
SELECT + ( ( - - ( - + col2 ) ) ) * - col0 + + 71 + col2 FROM tab2
----
1152
2671
4479

query I rowsort
SELECT - 69 * 3 FROM tab2
----
-207
-207
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-7211
SELECT ALL COUNT( * ) - COUNT( * ) AS col1 FROM tab0, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7211
SELECT ALL COUNT ( * ) - COUNT ( * ) AS col1 FROM tab0, tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7212
SELECT DISTINCT - COUNT( * ) col1, 6 FROM tab2
----
-3
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7212
SELECT DISTINCT - COUNT ( * ) col1, 6 FROM tab2
----
-3
6

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - col2 * + col1 ) <= - 89
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 64 * - + col0 col2, col2 AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL - - 18 * col2 + - 34 * + col1 FROM tab0 AS cor0
----
-1908
-534
1748

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 67 col0, col0 + col2 FROM tab1 AS cor0
----
-67
144
-67
147
-67
159

query II rowsort
SELECT DISTINCT + + col1, col1 - - col1 AS col0 FROM tab1 AS cor0
----
14
28
47
94
5
10

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 36 * 98 + + col0 * - 41 + - + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col1 * + col1 * - + col0 AS col2 FROM tab1
----
-201019
-2125
-9996

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

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 AS cor0 WHERE + col1 <= + col1 * ( 35 )
----
1
21
81

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

query I rowsort
SELECT ALL - 8 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-8
-8
-8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query II rowsort label-7226
SELECT DISTINCT col0 * col1 * + col1 + - 39 DIV col1 AS col1, 74 FROM tab2
----
119646
74
336675
74
379456
74

skipif mysql # not compatible
query II rowsort label-7226
SELECT DISTINCT col0 * col1 * + col1 + - 39 / col1 AS col1, 74 FROM tab2
----
119646
74
336675
74
379456
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + col0 col2 FROM tab1
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7228
SELECT ALL - col1 - col1 * ( - col1 ) + CAST( + col1 AS SIGNED ) col1 FROM tab2 WHERE NOT + - 79 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7228
SELECT ALL - col1 - col1 * ( - col1 ) + CAST ( + col1 AS INTEGER ) col1 FROM tab2 WHERE NOT + - 79 IS NOT NULL
----

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7230
SELECT COUNT( * ), ( - 21 ) * + CAST( NULL AS DECIMAL ) + COUNT( * ) AS col1 FROM tab0 cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7230
SELECT COUNT ( * ), ( - 21 ) * + CAST ( NULL AS REAL ) + COUNT ( * ) AS col1 FROM tab0 cor0
----
3
NULL

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

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

query I rowsort
SELECT ALL 72 FROM tab1 AS cor0 WHERE ( - + 36 ) >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 40 * col1 IS NULL
----

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

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

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

query I rowsort
SELECT ALL 0 + + - 1 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7237
SELECT DISTINCT + ( 15 ) - + col0 DIV 71 * + col1 - + + 11 - + 86 * col0 FROM tab2
----
-3952
-5500
-6513

skipif mysql # not compatible
query I rowsort label-7237
SELECT DISTINCT + ( 15 ) - + col0 / 71 * + col1 - + + 11 - + 86 * col0 FROM tab2
----
-3952
-5500
-6513

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < - col0 + 81 + - col1 + 38
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7239
SELECT COUNT( * ) AS col2, + 38 FROM tab0
----
3
38

skipif mysql # not compatible
query II rowsort label-7239
SELECT COUNT ( * ) AS col2, + 38 FROM tab0
----
3
38

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7241
SELECT ALL - CAST( NULL AS SIGNED ), 22 AS col0 FROM tab2 AS cor0
----
NULL
22
NULL
22
NULL
22

skipif mysql # not compatible
query II rowsort label-7241
SELECT ALL - CAST ( NULL AS INTEGER ), 22 AS col0 FROM tab2 AS cor0
----
NULL
22
NULL
22
NULL
22

query II rowsort
SELECT ALL - 19 AS col0, 56 AS col0 FROM tab1 AS cor0
----
-19
56
-19
56
-19
56

query I rowsort
SELECT ALL col0 FROM tab2 WHERE + col2 BETWEEN - 78 AND - - col1
----
46
64
75

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= - 39
----

query I rowsort
SELECT ALL + 34 * - 63 * - col0 AS col1 FROM tab0
----
186354
207774
32130

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7246
SELECT ALL + COUNT( * ) DIV - - 71 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL + COUNT ( * ) / - - 71 FROM tab2
----
0

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

query I rowsort
SELECT ( + ( 94 ) ) FROM tab2
----
94
94
94

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

query I rowsort
SELECT ALL + 66 * - + 22 * + 81 FROM tab0 AS cor0 WHERE ( 32 * + 55 + 37 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT 39 + + - COUNT( * ) col1 FROM tab0
----
36

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7252
SELECT COUNT( * ), - 54 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-54

skipif mysql # not compatible
query II rowsort label-7252
SELECT COUNT ( * ), - 54 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-54

query I rowsort
SELECT ALL + - 97 + + col0 AS col1 FROM tab2 AS cor0
----
-22
-33
-51

query II rowsort
SELECT ALL + ( - 14 ) + - 11 AS col1, - 61 AS col0 FROM tab0 cor0
----
-25
-61
-25
-61
-25
-61

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

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

query I rowsort
SELECT DISTINCT - col2 * - col2 - - + 28 AS col2 FROM tab1
----
3509
4652
9244

onlyif mysql # DIV for integer division: 
query I rowsort label-7257
SELECT ALL + col0 * - - col2 DIV + - col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-7257
SELECT ALL + col0 * - - col2 / + - col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT col2 + + 21 AS col1 FROM tab1
----
117
80
89

query I rowsort
SELECT DISTINCT - col2 * - ( - 30 ) + - 25 + + - col1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1302
-1832
-766

query I rowsort
SELECT col2 * + + col1 + + + col1 AS col0 FROM tab2
----
1224
3157
3953

onlyif mysql # DIV for integer division: 
query I rowsort label-7261
SELECT + - 22 DIV col2 AS col0 FROM tab0 WHERE NULL IS NULL
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-7261
SELECT + - 22 / col2 AS col0 FROM tab0 WHERE NULL IS NULL
----
-2
0
0

query I rowsort
SELECT col1 + - 57 FROM tab0 AS cor0
----
-36
-56
24

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

query I rowsort
SELECT DISTINCT - 89 * - + col0 FROM tab2
----
4094
5696
6675

query I rowsort
SELECT ALL 56 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7266
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * - CAST( - - ( - + 12 ) AS DECIMAL ) NOT BETWEEN NULL AND - ( + col2 )
----

skipif mysql # not compatible
query III rowsort label-7266
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * - CAST ( - - ( - + 12 ) AS REAL ) NOT BETWEEN NULL AND - ( + col2 )
----

query I rowsort
SELECT ALL + - 57 * + - col0 FROM tab1 AS cor0
----
2907
4845
5187

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7269
SELECT ALL + - 63 * - - col0 * - CAST( NULL AS SIGNED ), col0 + - col2 AS col0 FROM tab1 AS cor0
----
NULL
-45
NULL
23
NULL
26

skipif mysql # not compatible
query II rowsort label-7269
SELECT ALL + - 63 * - - col0 * - CAST ( NULL AS INTEGER ), col0 + - col2 AS col0 FROM tab1 AS cor0
----
NULL
-45
NULL
23
NULL
26

query I rowsort
SELECT DISTINCT - 11 * col0 * col0 FROM tab0 AS cor0
----
-103499
-2475
-83259

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 45 * - - col2 NOT BETWEEN NULL AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7273
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 84 NOT BETWEEN + 61 AND + CAST( NULL AS SIGNED ) + - 69 )
----

skipif mysql # not compatible
query III rowsort label-7273
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 84 NOT BETWEEN + 61 AND + CAST ( NULL AS INTEGER ) + - 69 )
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7276
SELECT COUNT( * ) DIV 38 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7276
SELECT COUNT ( * ) / 38 AS col0 FROM tab0
----
0

query I rowsort
SELECT - col1 + + 29 FROM tab0 WHERE NOT NULL >= col0
----

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7279
SELECT ALL + ( col1 ) DIV CAST( - + 87 AS SIGNED ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7279
SELECT ALL + ( col1 ) / CAST ( - + 87 AS INTEGER ) FROM tab0
----
0
0
0

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

query II rowsort
SELECT + col2 AS col0, col1 AS col2 FROM tab0 AS cor0
----
10
21
47
81
99
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7283
SELECT - MAX( + ( - col0 ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7283
SELECT - MAX ( + ( - col0 ) ) FROM tab2
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 * 24 + + col1 + + - col0 col0 FROM tab2
----
40
53
61

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

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

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

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

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

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

query II rowsort
SELECT + - 72 + 67 AS col1, + 86 FROM tab1 AS cor0
----
-5
86
-5
86
-5
86

query II rowsort
SELECT 49 + + - col1, col2 FROM tab0 AS cor0
----
-32
47
28
10
48
99

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7291
SELECT + col0 + + 99 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) < NULL
----

skipif mysql # not compatible
query I rowsort label-7291
SELECT + col0 + + 99 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7292
SELECT CAST( NULL AS DECIMAL ) + + 11 AS col1, COUNT( * ) * - - COUNT( * ) FROM tab1 AS cor0
----
NULL
9

skipif mysql # not compatible
query II rowsort label-7292
SELECT CAST ( NULL AS REAL ) + + 11 AS col1, COUNT ( * ) * - - COUNT ( * ) FROM tab1 AS cor0
----
NULL
9

query I rowsort
SELECT 64 + + col2 * + col1 AS col0 FROM tab0 AS cor0
----
163
274
3871

query I rowsort
SELECT ALL col0 - + - 73 * - 48 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3413
-3419
-3453

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

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

query III rowsort
SELECT * FROM tab0 WHERE + - col0 / + col0 NOT BETWEEN NULL AND - + 10 * ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 20 + col2 - - col1 + col2 AS col2, col0 + col1 + - col0 AS col0 FROM tab1
----
143
5
203
47
226
14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7298
SELECT col1 AS col2, CAST( - + 11 AS SIGNED ) FROM tab2 WHERE col0 + + - 84 + 53 IS NULL
----

skipif mysql # not compatible
query II rowsort label-7298
SELECT col1 AS col2, CAST ( - + 11 AS INTEGER ) FROM tab2 WHERE col0 + + - 84 + 53 IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7301
SELECT DISTINCT + COUNT( * ) - + 86 AS col1 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-7301
SELECT DISTINCT + COUNT ( * ) - + 86 AS col1 FROM tab0
----
-83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7302
SELECT + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE NULL = + 33 * + col0
----

skipif mysql # not compatible
query I rowsort label-7302
SELECT + + CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE NULL = + 33 * + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7303
SELECT - 52 DIV - 84 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7303
SELECT - 52 / - 84 AS col0 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT ALL + ( + SUM( DISTINCT col0 ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-7305
SELECT ALL + ( + SUM ( DISTINCT col0 ) ) FROM tab1
----
227

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) > col0 * - col1
----

query I rowsort
SELECT DISTINCT 79 * col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
4661
5372
7584

query I rowsort
SELECT DISTINCT + 68 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 25 * + - col0 AS col0 FROM tab0 AS cor0
----
-2175
-2425
-375

onlyif mysql # aggregate syntax: 
query I rowsort label-7311
SELECT ALL COUNT( ALL - 54 ) * - COUNT( * ) AS col1 FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7311
SELECT ALL COUNT ( ALL - 54 ) * - COUNT ( * ) AS col1 FROM tab0 cor0
----
-9

query I rowsort
SELECT DISTINCT 11 * + col1 * - col0 FROM tab0
----
-1067
-13365
-20097

query I rowsort
SELECT ( col2 ) * + col0 * - - col0 AS col1 FROM tab1
----
249696
426275
563108

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7314
SELECT 75 DIV - + COUNT( * ) AS col2 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-7314
SELECT 75 / - + COUNT ( * ) AS col2 FROM tab1
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-7315
SELECT 93 * COUNT( col2 ) AS col1 FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-7315
SELECT 93 * COUNT ( col2 ) AS col1 FROM tab2
----
279

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7317
SELECT ( + col1 ) * 82 DIV - - 14 AS col0 FROM tab2
----
298
392
451

skipif mysql # not compatible
query I rowsort label-7317
SELECT ( + col1 ) * 82 / - - 14 AS col0 FROM tab2
----
298
392
451

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

skipif mysql # not compatible
query I rowsort label-7318
SELECT - COUNT ( * ) * 74 AS col0 FROM tab0
----
-222

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE col1 > - 84 - - 20 + + col2
----
3

skipif mysql # not compatible
query I rowsort label-7320
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE col1 > - 84 - - 20 + + col2
----
3

query I rowsort
SELECT ALL - 75 + + - ( + 27 ) * - col0 AS col2 FROM tab2 cor0
----
1167
1653
1950

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

query I rowsort
SELECT 84 AS col0 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT ( 24 ) AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

query I rowsort
SELECT 0 * - 91 * + 80 FROM tab0
----
0
0
0

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

query I rowsort
SELECT + 89 * + + col1 AS col1 FROM tab0 AS cor0
----
1869
7209
89

query I rowsort
SELECT ALL col0 + + 41 + + + col1 FROM tab1 cor0
----
106
131
179

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

skipif mysql # not compatible
query I rowsort label-7329
SELECT DISTINCT - COUNT ( - 79 ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - 51 - 29 * - col1 AS col1 FROM tab0 AS cor0 WHERE - 82 IS NULL
----

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

query I rowsort
SELECT ALL - + col1 * + - col1 + col0 FROM tab2 AS cor0
----
2647
4564
5993

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7334
SELECT DISTINCT CAST( NULL AS DECIMAL ) FROM tab1 AS cor0 WHERE ( NULL ) > - 70
----

skipif mysql # not compatible
query I rowsort label-7334
SELECT DISTINCT CAST ( NULL AS REAL ) FROM tab1 AS cor0 WHERE ( NULL ) > - 70
----

query I rowsort
SELECT + col2 - - 15 FROM tab2 cor0
----
38
55
73

query I rowsort
SELECT ALL col0 FROM tab2 WHERE + 67 * + 57 BETWEEN 5 AND - - col0
----

query I rowsort
SELECT - col0 + col2 * - col1 AS col0 FROM tab1
----
-1395
-3287
-380

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7339
SELECT ALL COUNT( * ) + - + 77 + - 69 * + 1 FROM tab0
----
-143

skipif mysql # not compatible
query I rowsort label-7339
SELECT ALL COUNT ( * ) + - + 77 + - 69 * + 1 FROM tab0
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT ALL - 49 * + MIN( DISTINCT + col2 ) - + - 49 FROM tab2
----
-1078

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL - 49 * + MIN ( DISTINCT + col2 ) - + - 49 FROM tab2
----
-1078

onlyif mysql # aggregate syntax: 
query I rowsort label-7341
SELECT + 10 + - COUNT( * ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-7341
SELECT + 10 + - COUNT ( * ) FROM tab2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT 22 + - COUNT( * ) AS col1 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-7342
SELECT 22 + - COUNT ( * ) AS col1 FROM tab0
----
19

query II rowsort
SELECT ALL col2 AS col1, + col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 95 * - col1 * - - col0 AS col2 FROM tab1 AS cor0
----
-40375
-406315
-67830

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT + MIN( ALL 88 ) AS col1 FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-7345
SELECT + MIN ( ALL 88 ) AS col1 FROM tab2
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT - MAX( DISTINCT - 65 ) col2 FROM tab1 AS cor0
----
65

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT DISTINCT - - 64 * + 5 * COUNT( * ) + + - MIN( - + col2 ) AS col1 FROM tab0 AS cor0
----
1059

skipif mysql # not compatible
query I rowsort label-7347
SELECT DISTINCT - - 64 * + 5 * COUNT ( * ) + + - MIN ( - + col2 ) AS col1 FROM tab0 AS cor0
----
1059

query II rowsort
SELECT ALL 56 AS col2, - col2 * - 39 AS col1 FROM tab2 AS cor0
----
56
1560
56
2262
56
897

query I rowsort
SELECT - + col2 * - col1 * + 37 FROM tab0 AS cor0
----
140859
3663
7770

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7350
SELECT + COUNT ( ALL 24 ) * + MAX ( col1 ) col1, ( COUNT ( * ) ) AS col0 FROM tab0
----
243
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7351
SELECT + col0 + - col2 + col1 DIV 80 + + col1 FROM tab1
----
-31
31
70

skipif mysql # not compatible
query I rowsort label-7351
SELECT + col0 + - col2 + col1 / 80 + + col1 FROM tab1
----
-31
31
70

query I rowsort
SELECT ALL - + col2 FROM tab2 WHERE NOT col1 IS NULL
----
-23
-40
-58

query II rowsort
SELECT ALL 79, col2 * - 6 AS col1 FROM tab1 WHERE NOT NULL < 61
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( col1 ) col1, + 0 * - + col0 FROM tab1 AS cor0
----
14
0
47
0
5
0

query I rowsort
SELECT ALL - col0 + - col2 + - col0 * - col1 AS col1 FROM tab2
----
2277
4824
4892

query I rowsort
SELECT ALL 25 * col2 - - col1 AS col2 FROM tab2
----
1077
1517
626

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 63 + + col0 + + col1 col1, 27 FROM tab0 AS cor0
----
159
27
161
27
171
27

onlyif mysql # DIV for integer division: 
query II rowsort label-7362
SELECT + - col0 + col1 * + col1 + - + col1 DIV 25 AS col1, + ( - - 26 ) FROM tab0 AS cor0
----
-96
26
354
26
6543
26

skipif mysql # not compatible
query II rowsort label-7362
SELECT + - col0 + col1 * + col1 + - + col1 / 25 AS col1, + ( - - 26 ) FROM tab0 AS cor0
----
-96
26
354
26
6543
26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT ALL + 44 + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7364
SELECT ALL + 44 + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
47

query I rowsort
SELECT ALL - 63 AS col1 FROM tab0 WHERE + col1 - - 31 NOT BETWEEN - + 15 AND + 72
----
-63

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 73 col1 FROM tab1
----
4307
4964
7008

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 44, col1 - - col0 + + 91 col1 FROM tab0 AS cor0
----
44
187
44
189
44
199

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NOT + ( + ( - 87 ) ) IS NULL
----
10
47
99

query II rowsort
SELECT DISTINCT + + col1 AS col0, + col0 * col0 FROM tab0 AS cor0
----
1
9409
21
7569
81
225

query I rowsort
SELECT + ( 38 ) + - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7373
SELECT MIN( + col1 ) AS col1 FROM tab2 WHERE NOT + col2 * col2 IN ( - 88 - col0 )
----
51

skipif mysql # not compatible
query I rowsort label-7373
SELECT MIN ( + col1 ) AS col1 FROM tab2 WHERE NOT + col2 * col2 IN ( - 88 - col0 )
----
51

query II rowsort
SELECT + 66 * + 36 AS col0, - col2 * + col2 AS col0 FROM tab2
----
2376
-1600
2376
-3364
2376
-529

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7378
SELECT ALL - col1 + + 16 DIV col1 - 89 AS col2 FROM tab1 AS cor0
----
-102
-136
-91

skipif mysql # not compatible
query I rowsort label-7378
SELECT ALL - col1 + + 16 / col1 - 89 AS col2 FROM tab1 AS cor0
----
-102
-136
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-7379
SELECT ALL + COUNT( ALL + col2 ) + - 88 col2, + 80 FROM tab1 cor0
----
-85
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7379
SELECT ALL + COUNT ( ALL + col2 ) + - 88 col2, + 80 FROM tab1 cor0
----
-85
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + col1 ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7382
SELECT col2 AS col1, col2 * - + CAST( col0 AS SIGNED ) FROM tab0
----
10
-870
47
-705
99
-9603

skipif mysql # not compatible
query II rowsort label-7382
SELECT col2 AS col1, col2 * - + CAST ( col0 AS INTEGER ) FROM tab0
----
10
-870
47
-705
99
-9603

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> + - ( - ( col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7384
SELECT DISTINCT - col1 * - CAST( NULL AS SIGNED ) + + col0, + col1 * - col1 AS col2 FROM tab1
----
NULL
-196
NULL
-2209
NULL
-25

skipif mysql # not compatible
query II rowsort label-7384
SELECT DISTINCT - col1 * - CAST ( NULL AS INTEGER ) + + col0, + col1 * - col1 AS col2 FROM tab1
----
NULL
-196
NULL
-2209
NULL
-25

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

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

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

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

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

query I rowsort
SELECT ALL - col0 + - ( col2 ) FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-7389
SELECT - 52 + - + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-61

skipif mysql # not compatible
query I rowsort label-7389
SELECT - 52 + - + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-7390
SELECT - SUM( 5 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7390
SELECT - SUM ( 5 ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7391
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE + 17 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7391
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE + 17 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 66 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7393
SELECT - COUNT( * ) * - 58 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7393
SELECT - COUNT ( * ) * - 58 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col2 + - - col1 * - col1 AS col0 FROM tab0 AS cor0
----
-431
-6514
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7395
SELECT DISTINCT + CAST( + COUNT( ALL + col0 ) AS SIGNED ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7395
SELECT DISTINCT + CAST ( + COUNT ( ALL + col0 ) AS INTEGER ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7396
SELECT ALL + CAST( - + col1 AS SIGNED ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7396
SELECT ALL + CAST ( - + col1 AS INTEGER ) FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL - col1 * 44 FROM tab0
----
-3564
-44
-924

query I rowsort
SELECT DISTINCT + ( + col2 ) * col1 FROM tab0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7399
SELECT DISTINCT ( + col1 ) * 85 * + + CAST( col2 AS SIGNED ) + col2 FROM tab2
----
261840
330368
99728

skipif mysql # not compatible
query I rowsort label-7399
SELECT DISTINCT ( + col1 ) * 85 * + + CAST ( col2 AS INTEGER ) + col2 FROM tab2
----
261840
330368
99728

query I rowsort
SELECT ( ( - + col1 ) ) FROM tab2
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT ALL - ( + SUM( DISTINCT + - 3 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7402
SELECT ALL - ( + SUM ( DISTINCT + - 3 ) ) FROM tab1
----
3

query I rowsort
SELECT - col2 / - - ( col0 ) * + col2 - + col2 + + - ( + col0 ) * - - col0 FROM tab1 WHERE NOT + 29 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7404
SELECT ALL - 52 AS col0, CAST( NULL AS SIGNED ) * ( + col1 ) AS col2 FROM tab1 AS cor0
----
-52
NULL
-52
NULL
-52
NULL

skipif mysql # not compatible
query II rowsort label-7404
SELECT ALL - 52 AS col0, CAST ( NULL AS INTEGER ) * ( + col1 ) AS col2 FROM tab1 AS cor0
----
-52
NULL
-52
NULL
-52
NULL

query I rowsort
SELECT col2 * + 96 AS col1 FROM tab0
----
4512
9504
960

query I rowsort
SELECT - 4 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - - 20 + + 92 col0 FROM tab0 AS cor0
----
1832
2032
392

query I rowsort
SELECT - 7 + + col0 AS col0 FROM tab0 AS cor0
----
8
80
90

query I rowsort
SELECT - col0 + + 5 FROM tab2
----
-41
-59
-70

query I rowsort
SELECT + ( col1 ) + - col0 FROM tab0
----
-66
-96
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7411
SELECT ALL - CAST( NULL AS SIGNED ) + - + col1 * col0 + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7411
SELECT ALL - CAST ( NULL AS INTEGER ) + - + col1 * col0 + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT col1 / - ( - col1 ) * 84 AS col0, col0 FROM tab1 WHERE - 92 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + 74 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 * + col2 col1, col1 FROM tab0
----
100
21
2209
81
9801
1

query II rowsort
SELECT col0 * - col0 AS col1, 31 FROM tab1
----
-2601
31
-7225
31
-8281
31

query I rowsort
SELECT 0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7417
SELECT DISTINCT + - SUM( - col2 ) + + MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + + 42 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7417
SELECT DISTINCT + - SUM ( - col2 ) + + MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + 42 AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 + 37 AS col0 FROM tab2 AS cor0
----
104
114
88

query I rowsort
SELECT - 71 - - - 8 AS col1 FROM tab1 AS cor0
----
-79
-79
-79

query III rowsort
SELECT * FROM tab2 WHERE - col1 * - col1 - - - ( - + 49 ) NOT BETWEEN + col0 AND 24
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7421
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE - col0 * col2 NOT BETWEEN + - col2 - + + col1 AND col1
----
-3

skipif mysql # not compatible
query I rowsort label-7421
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE - col0 * col2 NOT BETWEEN + - col2 - + + col1 AND col1
----
-3

query I rowsort
SELECT + + 40 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT + + COUNT( * ) * - + 13 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-7423
SELECT + + COUNT ( * ) * - + 13 FROM tab1 AS cor0
----
-39

query II rowsort
SELECT ALL 35 AS col1, + 37 AS col0 FROM tab2 AS cor0
----
35
37
35
37
35
37

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT - SUM( ALL + + col1 ) * - COUNT( + - col2 ) + - COUNT( * ) * COUNT( ALL - ( - 44 ) ) FROM tab1 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-7425
SELECT - SUM ( ALL + + col1 ) * - COUNT ( + - col2 ) + - COUNT ( * ) * COUNT ( ALL - ( - 44 ) ) FROM tab1 AS cor0
----
189

query II rowsort
SELECT DISTINCT - - col0 AS col0, ( col0 ) FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7427
SELECT DISTINCT + + SUM( - 35 ) FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-7427
SELECT DISTINCT + + SUM ( - 35 ) FROM tab1 AS cor0
----
-105

query I rowsort
SELECT + col0 * 92 * col2 FROM tab2 AS cor0
----
235520
400200
97336

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT + + MAX( + col2 ) * - SUM( - col0 ) FROM tab0 cor0
----
19701

skipif mysql # not compatible
query I rowsort label-7429
SELECT + + MAX ( + col2 ) * - SUM ( - col0 ) FROM tab0 cor0
----
19701

onlyif mysql # aggregate syntax: 
query I rowsort label-7430
SELECT ALL + 3 * COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7430
SELECT ALL + 3 * COUNT ( * ) AS col2 FROM tab2
----
9

query I rowsort
SELECT - + col0 AS col0 FROM tab2 WHERE NOT + + 7 + + col0 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT ALL + ( ( + COUNT( * ) ) ) * - + COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7432
SELECT ALL + ( ( + COUNT ( * ) ) ) * - + COUNT ( * ) AS col1 FROM tab0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 5 >= + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 71 + col2 FROM tab1 WHERE - + col2 NOT BETWEEN - 9 AND + col1 * + + col1
----
130
139
167

query II rowsort
SELECT ( + + col1 ) AS col2, + 48 AS col2 FROM tab1
----
14
48
47
48
5
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 65 col0 FROM tab0 AS cor0
----
5655
6305
975

onlyif mysql # DIV for integer division: 
query I rowsort label-7437
SELECT ALL 53 DIV col0 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL 53 / col0 AS col0 FROM tab1
----
0
0
1

query I rowsort
SELECT - 19 + - + 47 AS col0 FROM tab1
----
-66
-66
-66

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 + - ( col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 + - 1 FROM tab2 cor0
----
50
66
76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7441
SELECT ALL col2 + col1 * - 33 AS col1, - CAST( NULL AS SIGNED ) / + - col2 * 89 FROM tab2 cor0
----
-1660
NULL
-2153
NULL
-2501
NULL

skipif mysql # not compatible
query II rowsort label-7441
SELECT ALL col2 + col1 * - 33 AS col1, - CAST ( NULL AS INTEGER ) / + - col2 * 89 FROM tab2 cor0
----
-1660
NULL
-2153
NULL
-2501
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - 31 col2 FROM tab2
----
15
33
44

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 83 + - 48 <> col1
----

query III rowsort
SELECT * FROM tab2 WHERE - + 10 IS NULL
----

query I rowsort
SELECT 40 * - col2 * col2 - + + col0 * + col1 AS col0 FROM tab0
----
-392137
-5827
-89575

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + - 98 col2 FROM tab2
----
-21
-31
-47

query II rowsort
SELECT DISTINCT - col1, col2 AS col0 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

query I rowsort
SELECT DISTINCT + 88 AS col0 FROM tab1 cor0
----
88

query I rowsort
SELECT ALL - - 0 + - 9 * + - 40 FROM tab0 AS cor0
----
360
360
360

onlyif mysql # aggregate syntax: 
query I rowsort label-7450
SELECT MAX( - + 36 ) AS col1 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-7450
SELECT MAX ( - + 36 ) AS col1 FROM tab1 AS cor0
----
-36

query I rowsort
SELECT ALL 96 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query III rowsort
SELECT * FROM tab1 WHERE - 99 * + 24 + - 39 * col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 80 * - 28 AS col0 FROM tab0 AS cor0
----
-2240

onlyif mysql # aggregate syntax: 
query I rowsort label-7454
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) < + 90
----
0

skipif mysql # not compatible
query I rowsort label-7454
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) < + 90
----
0

query I rowsort
SELECT - - col2 * - 91 FROM tab1 AS cor0
----
-5369
-6188
-8736

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE 22 * - - col1 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7457
SELECT DISTINCT col1 * + CAST( + 66 AS SIGNED ) AS col2, col0 FROM tab1 AS cor0
----
3102
91
330
85
924
51

skipif mysql # not compatible
query II rowsort label-7457
SELECT DISTINCT col1 * + CAST ( + 66 AS INTEGER ) AS col2, col0 FROM tab1 AS cor0
----
3102
91
330
85
924
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT DISTINCT + MIN( ALL 0 ) * - + 77 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7458
SELECT DISTINCT + MIN ( ALL 0 ) * - + 77 FROM tab1 AS cor0
----
0

query II rowsort
SELECT ( + col0 ) AS col0, col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT 89 * - + 98 FROM tab1
----
-8722
-8722
-8722

onlyif mysql # DIV for integer division: 
query II rowsort label-7461
SELECT - col0 col1, 68 DIV col2 * + col0 FROM tab1
----
-51
0
-85
85
-91
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7461
SELECT - col0 col1, 68 / col2 * + col0 FROM tab1
----
-51
0
-85
85
-91
91

onlyif mysql # DIV for integer division: 
query II rowsort label-7462
SELECT - col1 AS col0, - 40 DIV 16 * - - col0 FROM tab2
----
-51
-92
-67
-150
-77
-128

skipif mysql # not compatible
query II rowsort label-7462
SELECT - col1 AS col0, - 40 / 16 * - - col0 FROM tab2
----
-51
-92
-67
-150
-77
-128

query I rowsort
SELECT - col0 * - + 70 FROM tab0
----
1050
6090
6790

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7464
SELECT DISTINCT - col1 DIV + CAST( + 32 AS SIGNED ) FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-7464
SELECT DISTINCT - col1 / + CAST ( + 32 AS INTEGER ) FROM tab2
----
-1
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7465
SELECT - CAST( - 79 AS SIGNED ) AS col2 FROM tab1
----
79
79
79

skipif mysql # not compatible
query I rowsort label-7465
SELECT - CAST ( - 79 AS INTEGER ) AS col2 FROM tab1
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + 43 col1 FROM tab1 WHERE NOT col1 * col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 14 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7468
SELECT - COUNT( col2 ) * + 33 AS col2 FROM tab0 WHERE - col1 IS NOT NULL
----
-99

skipif mysql # not compatible
query I rowsort label-7468
SELECT - COUNT ( col2 ) * + 33 AS col2 FROM tab0 WHERE - col1 IS NOT NULL
----
-99

query I rowsort
SELECT + ( 81 ) AS col0 FROM tab2
----
81
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7470
SELECT - AVG ( ALL - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7470
SELECT - AVG ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT ALL MAX( + col2 ) * 33 AS col0 FROM tab0
----
3267

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL MAX ( + col2 ) * 33 AS col0 FROM tab0
----
3267

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 * - col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + col1 ) <= 27 / 32
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT 93 + + 57 * COUNT( * ) FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-7474
SELECT 93 + + 57 * COUNT ( * ) FROM tab0
----
264

query I rowsort
SELECT ALL + col1 + + 27 AS col0 FROM tab0
----
108
28
48

query I rowsort
SELECT 4 * + col0 FROM tab0
----
348
388
60

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN 95 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7478
SELECT ALL 96 DIV COUNT( * ) AS col0 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-7478
SELECT ALL 96 / COUNT ( * ) AS col0 FROM tab2
----
32

onlyif mysql # DIV for integer division: 
query I rowsort label-7479
SELECT ALL + 52 DIV ( - col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7479
SELECT ALL + 52 / ( - col2 ) FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT - 70 * - col2 AS col2 FROM tab2
----
1610
2800
4060

onlyif mysql # aggregate syntax: 
query I rowsort label-7481
SELECT ALL MAX( ALL 60 ) AS col2 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL MAX ( ALL 60 ) AS col2 FROM tab1
----
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7482
SELECT ALL - COUNT( * ) DIV 28 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL - COUNT ( * ) / 28 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT COUNT( DISTINCT 84 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7483
SELECT COUNT ( DISTINCT 84 ) FROM tab1
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT - 70 * 28 IS NOT NULL
----

query I rowsort
SELECT ALL + 11 * - col2 FROM tab1
----
-1056
-649
-748

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7486
SELECT - col0 FROM tab2 WHERE NOT - col1 - col0 IN ( - col0 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7486
SELECT - col0 FROM tab2 WHERE NOT - col1 - col0 IN ( - col0 + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7487
SELECT ALL * FROM tab2 WHERE NOT 66 IN ( col0 * + 21 + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-7487
SELECT ALL * FROM tab2 WHERE NOT 66 IN ( col0 * + 21 + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT + col1 * + 62 AS col0 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7489
SELECT ALL - ( - COUNT( * ) ) FROM tab2 WHERE NOT col0 * ( - col2 ) + col1 * - col1 IN ( ( 85 ) * col2 )
----
3

skipif mysql # not compatible
query I rowsort label-7489
SELECT ALL - ( - COUNT ( * ) ) FROM tab2 WHERE NOT col0 * ( - col2 ) + col1 * - col1 IN ( ( 85 ) * col2 )
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 97 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - col0 ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 14 BETWEEN ( + col0 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 43 + col0 col1 FROM tab2 AS cor0
----
107
118
89

query I rowsort
SELECT - col1 - + col1 * col2 FROM tab2 AS cor0
----
-1224
-3157
-3953

onlyif mysql # aggregate syntax: 
query I rowsort label-7495
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7495
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7496
SELECT ALL col1 / + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7496
SELECT ALL col1 / + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT - ( MAX( DISTINCT + 22 ) ) * 84 FROM tab1 AS cor0 CROSS JOIN tab1
----
-1848

skipif mysql # not compatible
query I rowsort label-7497
SELECT - ( MAX ( DISTINCT + 22 ) ) * 84 FROM tab1 AS cor0 CROSS JOIN tab1
----
-1848

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 67 + col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 + - ( - 7 ) AND ( + col1 )
----

query I rowsort
SELECT DISTINCT - ( - ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7501
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col1 ) BETWEEN ( col1 ) AND + 20 * ( ( col1 ) )
----

query I rowsort
SELECT ALL col0 * + 92 FROM tab2 WHERE NOT col1 + - col2 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT + MIN( ALL - + col2 ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-7504
SELECT + MIN ( ALL - + col2 ) AS col2 FROM tab0
----
-99

query I rowsort
SELECT 7 * + col1 * - col2 AS col2 FROM tab2
----
-21560
-27202
-8211

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * col1 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL + ( + + 88 ) * 14 + + col1 AS col1 FROM tab2 AS cor0
----
1283
1299
1309

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT SUM( DISTINCT + col2 ) AS col0 FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-7508
SELECT SUM ( DISTINCT + col2 ) AS col0 FROM tab2 cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-7509
SELECT DISTINCT - 59 * - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-7509
SELECT DISTINCT - 59 * - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-177

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 99 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( col0 ) NOT IN ( col0 * ( 24 ) + col0 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7512
SELECT ALL 99 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL 99 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 19 FROM tab2 WHERE NOT + 91 NOT BETWEEN NULL AND 64
----

query I rowsort
SELECT ( + + col0 ) * + col2 + + col0 FROM tab0
----
720
957
9700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7515
SELECT CAST( NULL AS SIGNED ) + + + col1 * - - col0 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7515
SELECT CAST ( NULL AS INTEGER ) + + + col1 * - - col0 col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 97 * 57 + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * + col2 + 33 AS col1 FROM tab2
----
1206
3113
3919

onlyif mysql # aggregate syntax: 
query I rowsort label-7518
SELECT - 14 + - ( - ( + MIN( col0 ) ) ) - ( + 88 - + 69 ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-7518
SELECT - 14 + - ( - ( + MIN ( col0 ) ) ) - ( + 88 - + 69 ) FROM tab1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7519
SELECT 4 + + ( - col1 ) - + CAST( col1 + + col0 AS SIGNED ) AS col2 FROM tab0
----
-125
-173
-95

skipif mysql # not compatible
query I rowsort label-7519
SELECT 4 + + ( - col1 ) - + CAST ( col1 + + col0 AS INTEGER ) AS col2 FROM tab0
----
-125
-173
-95

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 * col0 ) < col1
----

query I rowsort
SELECT + 90 + 96 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 7c201b64e0e5870bf1ece59e22cba4f7

query I rowsort
SELECT ALL + 35 * col0 - - ( - ( col1 ) ) FROM tab1 AS cor0
----
1771
2970
3138

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT ALL + MAX( ALL + 97 ) + + 79 AS col1 FROM tab2 AS cor0
----
176

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL + MAX ( ALL + 97 ) + + 79 AS col1 FROM tab2 AS cor0
----
176

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 NOT IN ( - 27 * - col1 + - 73 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7525
SELECT DISTINCT - 26 DIV ( - - 94 ) + 67 * + 60 FROM tab2 AS cor0
----
4020

skipif mysql # not compatible
query I rowsort label-7525
SELECT DISTINCT - 26 / ( - - 94 ) + 67 * + 60 FROM tab2 AS cor0
----
4020

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE ( 91 ) IN ( - 47 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 60 ) >= ( + col0 )
----
51
14
96

query I rowsort
SELECT DISTINCT col2 + + 47 * - + col2 * - col1 AS col1 FROM tab1 AS cor0
----
13924
150280
63264

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7529
SELECT col2 - - 77 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7529
SELECT col2 - - 77 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7530
SELECT - COUNT( * ) DIV + COUNT( * ) - + COUNT( ALL - - 68 ) * - 91 FROM tab2
----
272

skipif mysql # not compatible
query I rowsort label-7530
SELECT - COUNT ( * ) / + COUNT ( * ) - + COUNT ( ALL - - 68 ) * - 91 FROM tab2
----
272

onlyif mysql # aggregate syntax: 
query I rowsort label-7531
SELECT ALL 45 + - COUNT( - 58 ) FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-7531
SELECT ALL 45 + - COUNT ( - 58 ) FROM tab0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT + COUNT( * ) FROM tab2 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-7532
SELECT + COUNT ( * ) FROM tab2 WHERE NULL = NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) < - ( + 85 ) + - 8 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 - - - ( - col0 ) FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT + MAX( - 55 ) + - MAX( + col1 ) FROM tab2
----
-132

skipif mysql # not compatible
query I rowsort label-7535
SELECT + MAX ( - 55 ) + - MAX ( + col1 ) FROM tab2
----
-132

query I rowsort
SELECT ALL ( + 21 ) - + 98 + col0 AS col2 FROM tab1
----
-26
14
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7537
SELECT ALL COUNT( * ) DIV 95 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL COUNT ( * ) / 95 FROM tab0
----
0

query I rowsort
SELECT ALL - 65 - - 16 + + + 12 AS col0 FROM tab0
----
-37
-37
-37

query III rowsort
SELECT * FROM tab1 WHERE - col1 <> + col2 / col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7540
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( + + 21 <= col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( + + 21 <= col2 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7541
SELECT + - AVG ( - - col1 ) * - 63 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7541
SELECT + - AVG ( - - col1 ) * - 63 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----
NULL

query I rowsort
SELECT + 91 * - - ( + + 18 ) + - 16 + 4 FROM tab2 cor0
----
1626
1626
1626

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT - COUNT( * ) * + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7543
SELECT - COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT ALL - 69 * - + COUNT( * ) FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-7544
SELECT ALL - 69 * - + COUNT ( * ) FROM tab2
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT + COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT col1 * + ( - + col1 ) BETWEEN ( + col1 ) AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-7545
SELECT + COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT col1 * + ( - + col1 ) BETWEEN ( + col1 ) AND NULL
----
3

query I rowsort
SELECT + col0 / 0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col1 + - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT ( + + COUNT( * ) ) * - + 0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7547
SELECT ( + + COUNT ( * ) ) * - + 0 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-68
-68
-68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7549
SELECT ALL col0 FROM tab1 cor0 WHERE col0 * - - CAST( NULL AS DECIMAL ) NOT IN ( + col2 )
----

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL col0 FROM tab1 cor0 WHERE col0 * - - CAST ( NULL AS REAL ) NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7550
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST( + col2 AS DECIMAL ) * + - col0 = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7550
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( + col2 AS REAL ) * + - col0 = ( NULL )
----

query I rowsort
SELECT ALL + + ( + + col0 ) + - + ( - - col0 ) + - col0 - col0 * 30 AS col0 FROM tab0 AS cor0
----
-2697
-3007
-465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7552
SELECT - CAST( AVG ( + + col2 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-7552
SELECT - CAST ( AVG ( + + col2 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-74

query II rowsort
SELECT + col1 AS col1, + 51 FROM tab2
----
51
51
67
51
77
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 84 ) col0 FROM tab2
----
84
84
84

onlyif mysql # DIV for integer division: 
query II rowsort label-7555
SELECT DISTINCT 79 col1, + 89 DIV + + 65 + 59 AS col0 FROM tab1
----
79
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7555
SELECT DISTINCT 79 col1, + 89 / + + 65 + 59 AS col0 FROM tab1
----
79
60

query I rowsort
SELECT ALL ( - - 30 ) AS col2 FROM tab0
----
30
30
30

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT ( + col1 * + + 46 ) <= col2 * + col1
----
46
64

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 20 * + col1 * + + col2 + - col0 + - col2 ) = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 38 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 58 col0 FROM tab0 AS cor0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT DISTINCT - - SUM( + - 71 ) + 58 AS col1 FROM tab2 AS cor0
----
-155

skipif mysql # not compatible
query I rowsort label-7561
SELECT DISTINCT - - SUM ( + - 71 ) + 58 AS col1 FROM tab2 AS cor0
----
-155

query I rowsort
SELECT DISTINCT 65 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT ALL COUNT( * ) + - - COUNT( * ) + 16 * 30 FROM tab0
----
486

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL COUNT ( * ) + - - COUNT ( * ) + 16 * 30 FROM tab0
----
486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7564
SELECT - ( + - CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7564
SELECT - ( + - CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT ALL COUNT( + 78 ) * - 90 * 20 AS col1 FROM tab0 AS cor0
----
-5400

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL COUNT ( + 78 ) * - 90 * 20 AS col1 FROM tab0 AS cor0
----
-5400

query I rowsort
SELECT ALL - 28 + - col2 FROM tab2 AS cor0
----
-51
-68
-86

query I rowsort
SELECT DISTINCT - + col1 + - - 62 FROM tab1 AS cor0 WHERE - col2 IS NOT NULL
----
15
48
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7568
SELECT - CAST( - col0 AS SIGNED ) + col2 + + + 33 AS col1 FROM tab1 AS cor0
----
177
180
192

skipif mysql # not compatible
query I rowsort label-7568
SELECT - CAST ( - col0 AS INTEGER ) + col2 + + + 33 AS col1 FROM tab1 AS cor0
----
177
180
192

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT - 87 + + MIN( + + ( - col1 ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-134

skipif mysql # not compatible
query I rowsort label-7569
SELECT - 87 + + MIN ( + + ( - col1 ) ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-134

query I rowsort
SELECT 8 * + - col1 + + - 26 FROM tab0 AS cor0
----
-194
-34
-674

query II rowsort
SELECT ALL + col2 + - - col1 AS col0, ( - + col1 ) FROM tab2 AS cor0
----
117
-77
125
-67
74
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-7572
SELECT - + col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7572
SELECT - + col2 / - col2 AS col1 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT - 0 AS col1 FROM tab2 AS cor0 WHERE col2 = ( + col0 )
----

query I rowsort
SELECT ALL - col0 + + col0 - - col2 + col1 AS col2 FROM tab2 AS cor0
----
117
125
74

query III rowsort
SELECT * FROM tab1 WHERE ( 34 * + col1 + + col2 ) BETWEEN ( col2 ) AND - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col2, 8 col2 FROM tab2
----
23
8
40
8
58
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT ALL + SUM( DISTINCT - 16 ) - COUNT( * ) * + - COUNT( - + col0 ) FROM tab0
----
-7

skipif mysql # not compatible
query I rowsort label-7577
SELECT ALL + SUM ( DISTINCT - 16 ) - COUNT ( * ) * + - COUNT ( - + col0 ) FROM tab0
----
-7

query I rowsort
SELECT DISTINCT - col0 + + 7 AS col1 FROM tab1
----
-44
-78
-84

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - - 23, - 5 * + col1 )
----

query I rowsort
SELECT DISTINCT 30 - + + col2 AS col1 FROM tab2
----
-10
-28
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7581
SELECT - col1 * + + col0 * - CAST( + col0 AS SIGNED ) FROM tab0
----
158949
18225
9409

skipif mysql # not compatible
query I rowsort label-7581
SELECT - col1 * + + col0 * - CAST ( + col0 AS INTEGER ) FROM tab0
----
158949
18225
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT ALL SUM( + 54 ) col0 FROM tab0 AS cor0
----
162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7582
SELECT ALL SUM ( + 54 ) col0 FROM tab0 AS cor0
----
162

query II rowsort
SELECT DISTINCT + 85 AS col2, + 85 * - + col2 FROM tab2 AS cor0
----
85
-1955
85
-3400
85
-4930

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT + COUNT( * ) * COUNT( - - col1 ) * - 97 AS col2 FROM tab1 AS cor0
----
-873

skipif mysql # not compatible
query I rowsort label-7584
SELECT + COUNT ( * ) * COUNT ( - - col1 ) * - 97 AS col2 FROM tab1 AS cor0
----
-873

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( 15 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7586
SELECT ALL + MIN( + - col0 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-75

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL + MIN ( + - col0 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-75

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 + + 85 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT + 63 * + COUNT( DISTINCT - - col1 ) * 32 - + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
6051

skipif mysql # not compatible
query I rowsort label-7588
SELECT + 63 * + COUNT ( DISTINCT - - col1 ) * 32 - + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
6051

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL IN ( 15 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1ebd1cea4a9773069af34fbf8ea3540

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7591
SELECT * FROM tab1 WHERE NOT col0 - + - CAST( - col1 AS SIGNED ) + 56 - + col0 * - col2 + - 0 * + col0 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7591
SELECT * FROM tab1 WHERE NOT col0 - + - CAST ( - col1 AS INTEGER ) + 56 - + col0 * - col2 + - 0 * + col0 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7592
SELECT ALL + col0 DIV - - col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7592
SELECT ALL + col0 / - - col0 FROM tab0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE + col1 / - 81 <> + col2 OR + + col1 / + col1 <> - col0
----
3

skipif mysql # not compatible
query I rowsort label-7593
SELECT ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE + col1 / - 81 <> + col2 OR + + col1 / + col1 <> - col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7594
SELECT DISTINCT + 92 / + - SUM( - col1 ) AS col0 FROM tab2 AS cor0 WHERE 5 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7594
SELECT DISTINCT + 92 / + - SUM ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE 5 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col1 ) IN ( col1, + ( + col1 ) )
----

query I rowsort
SELECT ALL + col2 * - - col2 * + 39 FROM tab1 AS cor0
----
135759
180336
359424

onlyif mysql # aggregate syntax: 
query I rowsort label-7597
SELECT ( + - MAX( ALL - col1 ) ) col2 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7597
SELECT ( + - MAX ( ALL - col1 ) ) col2 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT - ( ( + - COUNT( DISTINCT - col2 ) ) ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7598
SELECT - ( ( + - COUNT ( DISTINCT - col2 ) ) ) col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7599
SELECT DISTINCT 1 DIV + - SUM( DISTINCT + col2 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7599
SELECT DISTINCT 1 / + - SUM ( DISTINCT + col2 ) FROM tab1
----
0

query II rowsort
SELECT col2, - col1 - + col2 AS col1 FROM tab2
----
23
-74
40
-117
58
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7601
SELECT DISTINCT + + CAST( col1 AS SIGNED ) * - col1 FROM tab1 AS cor0 WHERE 89 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7601
SELECT DISTINCT + + CAST ( col1 AS INTEGER ) * - col1 FROM tab1 AS cor0 WHERE 89 IS NULL
----

query I rowsort
SELECT ALL + - 49 FROM tab0 AS cor0 WHERE col1 * + 95 IS NULL
----

query I rowsort
SELECT col0 * - col2 + + - 59 * + col1 * col2 AS col1 FROM tab2
----
-184280
-233624
-70265

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE NOT - col2 >= 63
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7605
SELECT DISTINCT - - MIN( ALL col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7605
SELECT DISTINCT - - MIN ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > + col2 + + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT DISTINCT - COUNT( * ) * - + 83 + + + COUNT( * ) FROM tab0 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT - COUNT ( * ) * - + 83 + + + COUNT ( * ) FROM tab0 AS cor0
----
252

query I rowsort
SELECT + col2 + - 44 FROM tab2
----
-21
-4
14

query I rowsort
SELECT ( + 98 ) AS col0 FROM tab0
----
98
98
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7610
SELECT DISTINCT col2 DIV + + 62 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-7610
SELECT DISTINCT col2 / + + 62 FROM tab1
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7611
SELECT ( + col2 ) * + 65 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7611
SELECT ( + col2 ) * + 65 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7612
SELECT ALL - - 42 * - 83 + col2 - + + col0 DIV 66 + + col2 FROM tab2 AS cor0
----
-3371
-3406
-3440

skipif mysql # not compatible
query I rowsort label-7612
SELECT ALL - - 42 * - 83 + col2 - + + col0 / 66 + + col2 FROM tab2 AS cor0
----
-3371
-3406
-3440

query I rowsort
SELECT ALL - + ( - 66 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - 38 + + col1 AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - - col1 col1 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-7615
SELECT + - 19 DIV + col0 + + - col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-7615
SELECT + - 19 / + col0 + + - col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT + col1 * - col0 * - + col0 * + col2 FROM tab2 cor0
----
12615680
21858750
2482068

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT col2 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7618
SELECT ALL + - CAST( NULL AS SIGNED ) AS col2, COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7618
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col2, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL
3

query II rowsort
SELECT - + 37, col1 * + 18 AS col0 FROM tab1 AS cor0 WHERE NOT 36 >= - + col2 / col0 - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 74 = + - 27
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col2 + ( 60 ) / - col0 * - 38, + col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= col2 * 65 * + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 68 col2 FROM tab1 AS cor0
----
-68

query I rowsort
SELECT DISTINCT 78 + col1 AS col1 FROM tab0 AS cor0
----
159
79
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7624
SELECT + MIN( + col1 ) + - CAST( NULL AS SIGNED ) + - 11 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7624
SELECT + MIN ( + col1 ) + - CAST ( NULL AS INTEGER ) + - 11 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7625
SELECT COUNT( * ) + - CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7625
SELECT COUNT ( * ) + - CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL - col0 + + 58 AS col1 FROM tab2
----
-17
-6
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + - - 79 col2 FROM tab0
----
-2
58
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - col1 * - - 43 + + col1 - + col0 col1 FROM tab2
----
-2137
-2822
-3221

query III rowsort
SELECT * FROM tab0 WHERE - - 53 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7630
SELECT DISTINCT - COUNT( ALL + col1 ) - + ( COUNT( * ) ) AS col0 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-7630
SELECT DISTINCT - COUNT ( ALL + col1 ) - + ( COUNT ( * ) ) AS col0 FROM tab1
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7631
SELECT 86 + + + 58 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7631
SELECT 86 + + + 58 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7632
SELECT ALL + MAX( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL + MAX ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7633
SELECT DISTINCT + MIN( DISTINCT col0 ) + 7 AS col2 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-7633
SELECT DISTINCT + MIN ( DISTINCT col0 ) + 7 AS col2 FROM tab0 AS cor0
----
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 58 ) col0 FROM tab2 AS cor0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT - 67 * COUNT( * ) * - 47 FROM tab1 AS cor0
----
9447

skipif mysql # not compatible
query I rowsort label-7635
SELECT - 67 * COUNT ( * ) * - 47 FROM tab1 AS cor0
----
9447

onlyif mysql # aggregate syntax: 
query II rowsort label-7636
SELECT - 46 AS col1, COUNT( * ) AS col1 FROM tab2 AS cor0
----
-46
3

skipif mysql # not compatible
query II rowsort label-7636
SELECT - 46 AS col1, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-46
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 46 - + col0 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7638
SELECT + 72 DIV - ( - + COUNT( * ) ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7638
SELECT + 72 / - ( - + COUNT ( * ) ) FROM tab0 AS cor0
----
24

query I rowsort
SELECT ALL ( - - 35 ) AS col1 FROM tab2 AS cor0
----
35
35
35

onlyif mysql # aggregate syntax: 
query II rowsort label-7640
SELECT ( + + ( + + 68 ) ) AS col1, COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
68
-9

skipif mysql # not compatible
query II rowsort label-7640
SELECT ( + + ( + + 68 ) ) AS col1, COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
68
-9

query II rowsort
SELECT + 65 AS col1, col0 FROM tab2
----
65
46
65
64
65
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 49 * - 75 * 40 * col2 col1, + col0 AS col2 FROM tab2
----
-3381000
46
-5880000
64
-8526000
75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + 5 / - col0 <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7644
SELECT - CAST( NULL AS DECIMAL ) * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7644
SELECT - CAST ( NULL AS REAL ) * - col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7645
SELECT DISTINCT + + CAST( NULL AS SIGNED ) AS col2, - 91 FROM tab2 cor0
----
NULL
-91

skipif mysql # not compatible
query II rowsort label-7645
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) AS col2, - 91 FROM tab2 cor0
----
NULL
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-7646
SELECT DISTINCT COUNT( - - 52 ) AS col1, - MIN( - 23 ) + - - SUM( col1 ) FROM tab2
----
3
218

skipif mysql # not compatible
query II rowsort label-7646
SELECT DISTINCT COUNT ( - - 52 ) AS col1, - MIN ( - 23 ) + - - SUM ( col1 ) FROM tab2
----
3
218

query I rowsort
SELECT DISTINCT col2 * 22 FROM tab2
----
1276
506
880

query I rowsort
SELECT 86 + - col0 FROM tab0 cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL + col1 + + - 30 AS col2 FROM tab0 AS cor0
----
-29
-9
51

query I rowsort
SELECT - 59 * col0 AS col1 FROM tab0 AS cor0
----
-5133
-5723
-885

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL col1 * - col1 AS col2, - ( - + col0 ) FROM tab2 AS cor0
----
-2601
46
-4489
75
-5929
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7653
SELECT - COUNT( * ) * - + 22 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7653
SELECT - COUNT ( * ) * - + 22 FROM tab1
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7654
SELECT + 56 * - COUNT( * ) - 4 DIV + 78 * - 86 FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-7654
SELECT + 56 * - COUNT ( * ) - 4 / + 78 * - 86 FROM tab0
----
-168

query III rowsort
SELECT * FROM tab0 WHERE ( NOT 83 * - col0 < NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7656
SELECT - COUNT( DISTINCT + - ( - + CAST( 92 AS SIGNED ) ) ) + 57 AS col2 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-7656
SELECT - COUNT ( DISTINCT + - ( - + CAST ( 92 AS INTEGER ) ) ) + 57 AS col2 FROM tab1
----
56

query I rowsort
SELECT ALL 41 * + 18 AS col1 FROM tab0
----
738
738
738

query II rowsort
SELECT DISTINCT - col1, + col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
1
-21
21
-81
81

query I rowsort
SELECT ALL + col0 * + + col0 AS col2 FROM tab0
----
225
7569
9409

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7660
SELECT DISTINCT + - 68 DIV - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
7

skipif mysql # not compatible
query I rowsort label-7660
SELECT DISTINCT + - 68 / - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7661
SELECT + CAST( NULL AS SIGNED ) - - + COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7661
SELECT + CAST ( NULL AS INTEGER ) - - + COUNT ( * ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL - 30 - - - col2 FROM tab2
----
-53
-70
-88

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT - COUNT( * ) * - 78 AS col0 FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-7665
SELECT - COUNT ( * ) * - 78 AS col0 FROM tab1
----
234

query I rowsort
SELECT col1 * + + 37 * 39 FROM tab0
----
116883
1443
30303

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7667
SELECT CAST( NULL AS SIGNED ) / - 98 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7667
SELECT CAST ( NULL AS INTEGER ) / - 98 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - 2 NOT BETWEEN - col1 AND + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7669
SELECT ALL - 52 * - + COUNT( * ) + - - CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7669
SELECT ALL - 52 * - + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7670
SELECT ALL + - SUM( + col2 ) col2 FROM tab0 cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7670
SELECT ALL + - SUM ( + col2 ) col2 FROM tab0 cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-7671
SELECT DISTINCT ( + ( - - 27 ) ) + - COUNT( * ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7671
SELECT DISTINCT ( + ( - - 27 ) ) + - COUNT ( * ) FROM tab0 AS cor0
----
24

query I rowsort
SELECT + col1 + - + col1 - - 83 FROM tab0 AS cor0
----
83
83
83

query I rowsort
SELECT - col1 * - col2 + 56 AS col2 FROM tab0 AS cor0
----
155
266
3863

onlyif mysql # aggregate syntax: 
query I rowsort label-7674
SELECT ALL - 19 + + - COUNT( * ) FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-7674
SELECT ALL - 19 + + - COUNT ( * ) FROM tab0 AS cor0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7675
SELECT DISTINCT - col2 * + CAST( 27 AS SIGNED ) + + - col0 AS col0, col2 FROM tab0 AS cor0
----
-1284
47
-2770
99
-357
10

skipif mysql # not compatible
query II rowsort label-7675
SELECT DISTINCT - col2 * + CAST ( 27 AS INTEGER ) + + - col0 AS col0, col2 FROM tab0 AS cor0
----
-1284
47
-2770
99
-357
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7676
SELECT DISTINCT + COUNT( * ) / - CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT + COUNT ( * ) / - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 84 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 <= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col2 + col2 FROM tab2 WHERE + col0 NOT BETWEEN - col1 + - + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7680
SELECT ALL 17 + - col2 DIV - - col0 AS col0 FROM tab0
----
14
16
17

skipif mysql # not compatible
query I rowsort label-7680
SELECT ALL 17 + - col2 / - - col0 AS col0 FROM tab0
----
14
16
17

query I rowsort
SELECT DISTINCT + col1 + - ( col1 ) + - col0 * - + 29 FROM tab0 WHERE + col1 + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7682
SELECT DISTINCT - 32 * CAST( NULL AS SIGNED ) + + + 39 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7682
SELECT DISTINCT - 32 * CAST ( NULL AS INTEGER ) + + + 39 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT 4 AS col2 FROM tab0 WHERE NULL <= + col1
----

query III rowsort
SELECT * FROM tab1 WHERE - + col2 + - + col1 > - col2
----

query I rowsort
SELECT ALL 37 - + col2 AS col1 FROM tab1
----
-22
-31
-59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7686
SELECT ALL * FROM tab0 WHERE NOT NULL = CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7686
SELECT ALL * FROM tab0 WHERE NOT NULL = CAST ( - col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7687
SELECT ALL + + 90 * COUNT( + col2 ) AS col0 FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-7687
SELECT ALL + + 90 * COUNT ( + col2 ) AS col0 FROM tab0 AS cor0
----
270

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * + 99 > NULL
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT ( ( NOT ( NULL ) <= NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7690
SELECT + 62 DIV + COUNT( * ) - SUM( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-7690
SELECT + 62 / + COUNT ( * ) - SUM ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
-207

query I rowsort
SELECT ALL 51 * + - col0 * + + col1 FROM tab0
----
-4947
-61965
-93177

onlyif mysql # aggregate syntax: 
query II rowsort label-7692
SELECT - + MAX( ALL + 22 ), - COUNT( * ) col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-22
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7692
SELECT - + MAX ( ALL + 22 ), - COUNT ( * ) col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-22
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7693
SELECT DISTINCT COUNT( * ) * - - 23 AS col1 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-7693
SELECT DISTINCT COUNT ( * ) * - - 23 AS col1 FROM tab2
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT + SUM( 32 ) * + 95 FROM tab0
----
9120

skipif mysql # not compatible
query I rowsort label-7694
SELECT + SUM ( 32 ) * + 95 FROM tab0
----
9120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, col2 * - + col1 col1 FROM tab2 cor0
----
46
-1173
64
-3080
75
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT + - MIN( + + col0 ) * + COUNT( DISTINCT + 13 ) col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7696
SELECT + - MIN ( + + col0 ) * + COUNT ( DISTINCT + 13 ) col2 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT ALL col1 * - + col2 AS col2 FROM tab0 AS cor0 WHERE 99 * + - 11 BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT - - COUNT( + - col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7698
SELECT - - COUNT ( + - col2 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col0 * col2 * ( + + 11 ) FROM tab1 AS cor0
----
53856
55165
68068

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7700
SELECT ALL + - CAST( NULL AS SIGNED ), - col1 * CAST( + - 52 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
2444
NULL
260
NULL
728

skipif mysql # not compatible
query II rowsort label-7700
SELECT ALL + - CAST ( NULL AS INTEGER ), - col1 * CAST ( + - 52 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
2444
NULL
260
NULL
728

query I rowsort
SELECT ALL - + 62 * - col1 FROM tab1 AS cor0
----
2914
310
868

query I rowsort
SELECT DISTINCT col2 * - - ( + - 64 ) / ( + col1 ) FROM tab2 WHERE - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 96 * - + 63 col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 71 FROM tab2 WHERE + col1 * col1 + 84 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col1 <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT DISTINCT MIN( + col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7706
SELECT DISTINCT MIN ( + col0 ) AS col2 FROM tab2
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 70 * - col1 + + col0 col1 FROM tab0 AS cor0
----
-1383
-5655
27

query I rowsort
SELECT - - ( - 69 ) FROM tab0 AS cor0
----
-69
-69
-69

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col2 / + 48 - col0 IS NOT NULL
----

query I rowsort
SELECT + col1 + - - col0 + + 50 FROM tab2
----
147
191
192

onlyif mysql # aggregate syntax: 
query I rowsort label-7711
SELECT - 30 + MAX( + - 79 ) - + 61 AS col1 FROM tab2
----
-170

skipif mysql # not compatible
query I rowsort label-7711
SELECT - 30 + MAX ( + - 79 ) - + 61 AS col1 FROM tab2
----
-170

query I rowsort
SELECT col1 * + ( 8 ) AS col1 FROM tab2 AS cor0
----
408
536
616

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT ALL 25 * + COUNT( * ) * 84 col1 FROM tab0 AS cor0
----
6300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7713
SELECT ALL 25 * + COUNT ( * ) * 84 col1 FROM tab0 AS cor0
----
6300

query I rowsort
SELECT DISTINCT col1 - + col2 - - col1 FROM tab2 AS cor0
----
114
76
79

query I rowsort
SELECT DISTINCT col2 + - 15 - + 98 AS col0 FROM tab2
----
-55
-73
-90

query I rowsort
SELECT ALL ( + col1 ) - - 5 FROM tab1
----
10
19
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT ALL COUNT( * ) * - 51 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-7717
SELECT ALL COUNT ( * ) * - 51 FROM tab0
----
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7718
SELECT DISTINCT 2 - - CAST( + col2 AS SIGNED ) FROM tab0
----
101
12
49

skipif mysql # not compatible
query I rowsort label-7718
SELECT DISTINCT 2 - - CAST ( + col2 AS INTEGER ) FROM tab0
----
101
12
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT COUNT( * ) + - + MAX( + + col2 ) AS col2 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-7719
SELECT COUNT ( * ) + - + MAX ( + + col2 ) AS col2 FROM tab1
----
-93

query I rowsort
SELECT - + 96 + + + col2 FROM tab0 AS cor0
----
-49
-86
3

query I rowsort
SELECT DISTINCT ( - 27 ) AS col1 FROM tab0 AS cor0
----
-27

query I rowsort
SELECT DISTINCT - 47 AS col0 FROM tab2 cor0
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7723
SELECT - - 28 DIV COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7723
SELECT - - 28 / COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

query I rowsort
SELECT DISTINCT - 11 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-11

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + + col2 * col2 NOT BETWEEN - col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 78 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7727
SELECT DISTINCT - 97 DIV col1 AS col2 FROM tab0 AS cor0
----
-1
-4
-97

skipif mysql # not compatible
query I rowsort label-7727
SELECT DISTINCT - 97 / col1 AS col2 FROM tab0 AS cor0
----
-1
-4
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT DISTINCT MIN( DISTINCT + 17 ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-7728
SELECT DISTINCT MIN ( DISTINCT + 17 ) FROM tab2 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT SUM( DISTINCT - col0 ) * - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7729
SELECT SUM ( DISTINCT - col0 ) * - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - - col2
----
NULL

query I rowsort
SELECT DISTINCT col1 * - col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * - + 90 + + + col0 FROM tab2 AS cor0
----
-2024
-3536
-5145

query II rowsort
SELECT ALL + 34 * - + col0 AS col2, 12 FROM tab2 AS cor0
----
-1564
12
-2176
12
-2550
12

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7733
SELECT + - CAST( col2 AS SIGNED ) DIV + + col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7733
SELECT + - CAST ( col2 AS INTEGER ) / + + col2 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + + 57 col1 FROM tab1
----
3363
3876
5472

onlyif mysql # DIV for integer division: 
query I rowsort label-7735
SELECT ALL col0 DIV - - 8 AS col2 FROM tab2
----
5
8
9

skipif mysql # not compatible
query I rowsort label-7735
SELECT ALL col0 / - - 8 AS col2 FROM tab2
----
5
8
9

query II rowsort
SELECT DISTINCT + col1, + ( 10 ) FROM tab1
----
14
10
47
10
5
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7737
SELECT ALL - COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL - COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 + 1 + - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7739
SELECT - 17 / - CAST( + col0 AS SIGNED ) + 84 AS col1 FROM tab2 WHERE NOT + + 87 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7739
SELECT - 17 / - CAST ( + col0 AS INTEGER ) + 84 AS col1 FROM tab2 WHERE NOT + + 87 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + + + 32 FROM tab2 cor0
----
55
72
90

query I rowsort
SELECT DISTINCT + - 7 AS col0 FROM tab2 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
-7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-7742
SELECT + COUNT( * ) AS col1, - SUM( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7742
SELECT + COUNT ( * ) AS col1, - SUM ( - CAST ( NULL AS REAL ) ) AS col1 FROM tab2 AS cor0
----
3
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7743
SELECT ALL - 25 + 46 + - COUNT( * ) DIV - MAX( ALL - col0 ) FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL - 25 + 46 + - COUNT ( * ) / - MAX ( ALL - col0 ) FROM tab1 AS cor0
----
21

query I rowsort
SELECT + ( + 90 ) FROM tab1 AS cor0
----
90
90
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT + 58 * COUNT( * ) FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-7745
SELECT + 58 * COUNT ( * ) FROM tab2
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-7746
SELECT DISTINCT - + MAX( DISTINCT 34 ) AS col0 FROM tab1 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-7746
SELECT DISTINCT - + MAX ( DISTINCT 34 ) AS col0 FROM tab1 AS cor0
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-7747
SELECT 12 + + 61 DIV col0 FROM tab0 AS cor0
----
12
12
16

skipif mysql # not compatible
query I rowsort label-7747
SELECT 12 + + 61 / col0 FROM tab0 AS cor0
----
12
12
16

query I rowsort
SELECT 34 * + col0 + - + col0 FROM tab1 AS cor0
----
1683
2805
3003

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT - COUNT( * ) + - 38 col1 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7749
SELECT - COUNT ( * ) + - 38 col1 FROM tab2 AS cor0
----
-41

query I rowsort
SELECT 63 + + col0 FROM tab1 cor0
----
114
148
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 + - + col0 + - + col0 + 51 AS col2, - col2 * + + col2 - + + col2 col1 FROM tab2 AS cor0
----
-141
-1640
-174
-3422
-87
-552

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) <> col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7753
SELECT DISTINCT - CAST( NULL AS SIGNED ) - + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7753
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - + COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7754
SELECT ALL COUNT( * ) FROM tab0 WHERE ( NULL BETWEEN NULL AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7754
SELECT ALL COUNT ( * ) FROM tab0 WHERE ( NULL BETWEEN NULL AND NULL )
----
0

query I rowsort
SELECT DISTINCT col2 - - 64 FROM tab0
----
111
163
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7756
SELECT - CAST( NULL AS SIGNED ) - + col0 - col2 / - + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7756
SELECT - CAST ( NULL AS INTEGER ) - + col0 - col2 / - + col0 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7757
SELECT + col1 * - CAST( NULL AS SIGNED ) - + + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7757
SELECT + col1 * - CAST ( NULL AS INTEGER ) - + + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 59 - + col0 AS col0 FROM tab2 AS cor0
----
-105
-123
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT DISTINCT 30 * + - COUNT( * ) * - COUNT( DISTINCT - + col0 ) AS col1 FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-7759
SELECT DISTINCT 30 * + - COUNT ( * ) * - COUNT ( DISTINCT - + col0 ) AS col1 FROM tab0
----
270

query II rowsort
SELECT 41 AS col2, col0 * col2 + + + 56 FROM tab1
----
41
4952
41
5071
41
6244

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 37 col2 FROM tab2 AS cor0
----
-37
-37
-37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 ) > - 4
----

query I rowsort
SELECT ALL + 66 * col2 FROM tab1 cor0
----
3894
4488
6336

query I rowsort
SELECT DISTINCT 78 * 35 FROM tab0 AS cor0
----
2730

query I rowsort
SELECT ALL - col2 * 98 FROM tab1 AS cor0
----
-5782
-6664
-9408

query II rowsort
SELECT - 90, - ( + 41 ) AS col0 FROM tab2 AS cor0
----
-90
-41
-90
-41
-90
-41

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7768
SELECT + col2 DIV + 57 AS col2, 17 FROM tab2
----
0
17
0
17
1
17

skipif mysql # not compatible
query II rowsort label-7768
SELECT + col2 / + 57 AS col2, 17 FROM tab2
----
0
17
0
17
1
17

query I rowsort
SELECT col0 * + ( - col1 ) AS col0 FROM tab1 WHERE NOT + col1 + - col1 IS NULL
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT DISTINCT ( + + ( - COUNT( * ) ) ) * - 50 AS col2 FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-7770
SELECT DISTINCT ( + + ( - COUNT ( * ) ) ) * - 50 AS col2 FROM tab1
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-7771
SELECT - COUNT( * ) * 92 AS col0 FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-7771
SELECT - COUNT ( * ) * 92 AS col0 FROM tab1
----
-276

query I rowsort
SELECT col0 + + 39 AS col1 FROM tab0 AS cor0
----
126
136
54

onlyif mysql # DIV for integer division: 
query I rowsort label-7773
SELECT 68 DIV + + 39 + + col0 * + col1 - - 46 * + + 75 * col2 * col1 + - 73 FROM tab1
----
1018103
11030405
4637442

skipif mysql # not compatible
query I rowsort label-7773
SELECT 68 / + + 39 + + col0 * + col1 - - 46 * + + 75 * col2 * col1 + - 73 FROM tab1
----
1018103
11030405
4637442

query I rowsort
SELECT + 1 * + col2 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL + + 61 * - 37 FROM tab2 AS cor0
----
-2257
-2257
-2257

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7776
SELECT * FROM tab0 AS cor0 WHERE NULL = 9 + - + CAST( - col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7776
SELECT * FROM tab0 AS cor0 WHERE NULL = 9 + - + CAST ( - col0 AS INTEGER )
----

query I rowsort
SELECT ALL + - 66 AS col2 FROM tab1 cor0
----
-66
-66
-66

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN ( col0 ) AND NULL
----
87
21
10

query I rowsort
SELECT ALL - - 33 FROM tab0 AS cor0 WHERE NOT + ( col2 ) IS NULL
----
33
33
33

query II rowsort
SELECT DISTINCT 56 AS col1, col1 AS col0 FROM tab0 AS cor0 WHERE NOT - 69 <= + + 89
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7781
SELECT + - col2 * + 79 * ( + 55 ) - + 70 DIV + col2 + - col0 AS col0 FROM tab2 AS cor0
----
-173865
-252086
-99984

skipif mysql # not compatible
query I rowsort label-7781
SELECT + - col2 * + 79 * ( + 55 ) - + 70 / + col2 + - col0 AS col0 FROM tab2 AS cor0
----
-173865
-252086
-99984

query I rowsort
SELECT ALL + 14 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND + col1 + + 96
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7783
SELECT DISTINCT + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7783
SELECT DISTINCT + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL 69 + col2 AS col1 FROM tab2
----
109
127
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7785
SELECT ALL - col1 / + ( + col1 ) * + 89 - - CAST( NULL AS SIGNED ) * + col0 * - 64 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7785
SELECT ALL - col1 / + ( + col1 ) * + 89 - - CAST ( NULL AS INTEGER ) * + col0 * - 64 col1 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) + - - 18 + - col0 * col0 + - - 82 col0 FROM tab0
----
-172
-7479
-9408

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT ALL - COUNT( + 3 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7787
SELECT ALL - COUNT ( + 3 ) FROM tab0
----
-3

query I rowsort
SELECT ALL + + ( 13 ) FROM tab2 AS cor0
----
13
13
13

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT MAX( - - 99 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7790
SELECT MAX ( - - 99 ) AS col2 FROM tab0 AS cor0
----
99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 + + - col0 - - col1 IS NOT NULL
----

query II rowsort
SELECT ALL - 22 AS col2, - col1 FROM tab1 AS cor0
----
-22
-14
-22
-47
-22
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT DISTINCT + COUNT( * ) * 96 * + ( - COUNT( * ) ) FROM tab0 cor0
----
-864

skipif mysql # not compatible
query I rowsort label-7793
SELECT DISTINCT + COUNT ( * ) * 96 * + ( - COUNT ( * ) ) FROM tab0 cor0
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-7794
SELECT DISTINCT - ( + 34 ) + + COUNT( * ) col0 FROM tab0 AS cor0 WHERE 19 / - + 85 * 54 + - col0 IS NULL
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7794
SELECT DISTINCT - ( + 34 ) + + COUNT ( * ) col0 FROM tab0 AS cor0 WHERE 19 / - + 85 * 54 + - col0 IS NULL
----
-34

onlyif mysql # aggregate syntax: 
query II rowsort label-7795
SELECT COUNT( * ), + 9 AS col2 FROM tab2 AS cor0
----
3
9

skipif mysql # not compatible
query II rowsort label-7795
SELECT COUNT ( * ), + 9 AS col2 FROM tab2 AS cor0
----
3
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7796
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT - col2 * - + 60 AS col0 FROM tab1 AS cor0
----
3540
4080
5760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7798
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7798
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT 8 AS col1, - ( - - col2 ) FROM tab0 AS cor0
----
8
-10
8
-47
8
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT DISTINCT - COUNT( ALL ( + + 30 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7800
SELECT DISTINCT - COUNT ( ALL ( + + 30 ) ) FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 5 col1 FROM tab2, tab1 cor0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-7802
SELECT ALL + COUNT( * ) col2, 37 AS col1 FROM tab2
----
3
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7802
SELECT ALL + COUNT ( * ) col2, 37 AS col1 FROM tab2
----
3
37

query I rowsort
SELECT ALL 46 * + 32 FROM tab1
----
1472
1472
1472

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7804
SELECT + col1 * col1 + - 36 + + 30 AS col0, + 41 * col2 * CAST( + - col1 AS SIGNED ) FROM tab0 AS cor0
----
-5
-4059
435
-8610
6555
-156087

skipif mysql # not compatible
query II rowsort label-7804
SELECT + col1 * col1 + - 36 + + 30 AS col0, + 41 * col2 * CAST ( + - col1 AS INTEGER ) FROM tab0 AS cor0
----
-5
-4059
435
-8610
6555
-156087

query I rowsort
SELECT 83 * + col2 + + - 65 FROM tab0 AS cor0
----
3836
765
8152

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT - + MIN( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7806
SELECT - + MIN ( DISTINCT col1 ) AS col0 FROM tab2 AS cor0
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-7807
SELECT ALL + + 93 + - 80 DIV col2 FROM tab2 AS cor0
----
90
91
92

skipif mysql # not compatible
query I rowsort label-7807
SELECT ALL + + 93 + - 80 / col2 FROM tab2 AS cor0
----
90
91
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT ALL - COUNT( * ) FROM tab2 cor0 WHERE col0 * - - 55 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL - COUNT ( * ) FROM tab2 cor0 WHERE col0 * - - 55 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7809
SELECT col0 DIV + + 54 + + col2 AS col1 FROM tab1
----
60
69
96

skipif mysql # not compatible
query I rowsort label-7809
SELECT col0 / + + 54 + + col2 AS col1 FROM tab1
----
60
69
96

query I rowsort
SELECT - col0 + 66 + + col2 * - col2 AS col0 FROM tab2 cor0
----
-1598
-3373
-509

onlyif mysql # DIV for integer division: 
query I rowsort label-7811
SELECT DISTINCT col2 * col1 - + col2 DIV col0 AS col2 FROM tab1 AS cor0
----
1343
295
3196

skipif mysql # not compatible
query I rowsort label-7811
SELECT DISTINCT col2 * col1 - + col2 / col0 AS col2 FROM tab1 AS cor0
----
1343
295
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7812
SELECT DISTINCT + + SUM( DISTINCT - col2 ) * + + SUM( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7812
SELECT DISTINCT + + SUM ( DISTINCT - col2 ) * + + SUM ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT - - 25 + + col1 * col0 - + 22 + col1 - + col0 FROM tab2 AS cor0
----
2354
4944
5020

onlyif mysql # aggregate syntax: 
query I rowsort label-7814
SELECT COUNT( * ) + - COUNT( DISTINCT + + 2 ) AS col0 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-7814
SELECT COUNT ( * ) + - COUNT ( DISTINCT + + 2 ) AS col0 FROM tab1 AS cor0
----
2

query I rowsort
SELECT - ( - + col0 ) * + + col1 + - col0 FROM tab0 AS cor0
----
0
1200
1740

query II rowsort
SELECT ALL col1 + + col1 AS col2, col0 * + 82 * - col0 FROM tab1 AS cor0
----
10
-592450
28
-213282
94
-679042

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 11 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 * + + ( + col0 ) + 73 + + + col1 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 38 AS col1, col0 FROM tab1
----
38
51
38
85
38
91

query II rowsort
SELECT col1, 79 + col1 FROM tab1 AS cor0
----
14
93
47
126
5
84

query II rowsort
SELECT - - col1, col2 + + col0 * + col2 + col0 AS col1 FROM tab0 cor0
----
1
9799
21
967
81
767

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN NULL AND - + 8 * - + col1
----
97
1
99

query II rowsort
SELECT DISTINCT - 77 AS col2, col0 AS col1 FROM tab2 AS cor0
----
-77
46
-77
64
-77
75

query II rowsort
SELECT - 59, + col2 AS col0 FROM tab0 AS cor0
----
-59
10
-59
47
-59
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + - 33 ) * 34 * - - 72 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL <> NULL )
----

query I rowsort
SELECT - ( - 68 ) * - col0 AS col0 FROM tab1
----
-3468
-5780
-6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7828
SELECT MAX( + CAST( NULL AS SIGNED ) ) FROM tab1, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7828
SELECT MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab1, tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col1, 78 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7830
SELECT COUNT( - + ( + col0 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7830
SELECT COUNT ( - + ( + col0 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + col0 + + + 34 FROM tab1 AS cor0
----
119
125
85

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT col1 * + 37 IS NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7833
SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE col1 > NULL
----

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7834
SELECT + ( + + ( + COUNT( * ) ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7834
SELECT + ( + + ( + COUNT ( * ) ) ) AS col0 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + col1 ) col1, 47 + - - col2 + + col0 AS col0 FROM tab2 cor0
----
51
116
67
180
77
151

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT DISTINCT + 95 * - MAX( DISTINCT + col2 ) * - COUNT( * ) AS col1 FROM tab1
----
27360

skipif mysql # not compatible
query I rowsort label-7836
SELECT DISTINCT + 95 * - MAX ( DISTINCT + col2 ) * - COUNT ( * ) AS col1 FROM tab1
----
27360

query I rowsort
SELECT ALL 70 * + 88 FROM tab1
----
6160
6160
6160

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT DISTINCT - SUM( - - 46 ) AS col2 FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-7838
SELECT DISTINCT - SUM ( - - 46 ) AS col2 FROM tab1
----
-138

query I rowsort
SELECT + 66 + + col1 AS col0 FROM tab2 AS cor0
----
117
133
143

onlyif mysql # aggregate syntax: 
query I rowsort label-7840
SELECT ALL + MAX( DISTINCT col0 ) col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7840
SELECT ALL + MAX ( DISTINCT col0 ) col2 FROM tab0 AS cor0
----
97

query I rowsort
SELECT ALL - ( + + col2 ) * - col1 AS col2 FROM tab2 AS cor0 WHERE NULL = + 27 * - col1
----

query II rowsort
SELECT DISTINCT + col0 + - col0 AS col1, - 12 FROM tab0
----
0
-12

query I rowsort
SELECT ALL - + col0 * - + 80 + - 13 - col2 * - 2 FROM tab2 AS cor0
----
3713
5187
6103

query I rowsort
SELECT ALL - - 22 FROM tab0 cor0
----
22
22
22

query I rowsort
SELECT + col2 / + col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col2 ) * - col0 col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT - MIN( DISTINCT + ( col1 ) ) AS col2 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7847
SELECT - MIN ( DISTINCT + ( col1 ) ) AS col2 FROM tab2 AS cor0
----
-51

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 - + 0 / - 37 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT 58 < NULL
----

query II rowsort
SELECT DISTINCT col0 * + - col0 AS col0, + col0 AS col1 FROM tab1
----
-2601
51
-7225
85
-8281
91

query I rowsort
SELECT - 33 * - - 31 AS col2 FROM tab1 AS cor0
----
-1023
-1023
-1023

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 21 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * 9 * + col0 FROM tab1 cor0
----
23409
65025
74529

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7854
SELECT col0, - col2 / + + CAST( NULL AS SIGNED ) * - col0 col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7854
SELECT col0, - col2 / + + CAST ( NULL AS INTEGER ) * - col0 col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7855
SELECT + - 83 AS col2, - 17 + - COUNT( + - col0 ) + - COUNT( * ) DIV + 47 * - 12 FROM tab0 AS cor0
----
-83
-20

skipif mysql # not compatible
query II rowsort label-7855
SELECT + - 83 AS col2, - 17 + - COUNT ( + - col0 ) + - COUNT ( * ) / + 47 * - 12 FROM tab0 AS cor0
----
-83
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7857
SELECT DISTINCT - 94 + + + ( + CAST( NULL AS DECIMAL ) ) AS col2, col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-7857
SELECT DISTINCT - 94 + + + ( + CAST ( NULL AS REAL ) ) AS col2, col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT DISTINCT + + 27 + + col0 AS col2 FROM tab2 AS cor0
----
102
73
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 + + col0 col1 FROM tab1 AS cor0
----
-14
-48
-8

query I rowsort
SELECT + col0 + - + col2 AS col0 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT col2 + 89 AS col1 FROM tab0 AS cor0
----
136
188
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT DISTINCT - MIN( ALL + ( - ( - 70 ) ) ) + + - SUM( - col2 ) AS col0 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-7862
SELECT DISTINCT - MIN ( ALL + ( - ( - 70 ) ) ) + + - SUM ( - col2 ) AS col0 FROM tab0
----
86

query I rowsort
SELECT col2 + + 51 + - col1 FROM tab0
----
149
17
40

query III rowsort
SELECT * FROM tab0 WHERE + - ( + - col0 ) BETWEEN NULL AND + ( + 12 )
----

query I rowsort
SELECT DISTINCT + 65 * - 50 + + + col1 AS col0 FROM tab2
----
-3173
-3183
-3199

query I rowsort
SELECT col2 + - + col2 + - col2 AS col2 FROM tab1
----
-59
-68
-96

query II rowsort
SELECT DISTINCT + col2 + + - ( + - ( col1 ) ) AS col2, 47 FROM tab1
----
110
47
115
47
64
47

query I rowsort
SELECT ALL + 85 * + - 45 - + col1 * - col2 AS col2 FROM tab0
----
-18
-3615
-3726

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7869
SELECT - ( + col0 ) + CAST( + - 61 AS SIGNED ) * + - ( + 76 ) FROM tab0 AS cor0 WHERE + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7869
SELECT - ( + col0 ) + CAST ( + - 61 AS INTEGER ) * + - ( + 76 ) FROM tab0 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT + col2 * - + 89 FROM tab0 cor0
----
-4183
-8811
-890

query I rowsort
SELECT ALL + 42 * col1 + + col0 AS col2 FROM tab1 AS cor0
----
2065
295
639

query I rowsort
SELECT - + 0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 13 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT + - 37 * + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-111

skipif mysql # not compatible
query I rowsort label-7874
SELECT + - 37 * + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7875
SELECT ALL + 25 * + - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
2175
2425
375

skipif mysql # not compatible
query I rowsort label-7875
SELECT ALL + 25 * + - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
2175
2425
375

query I rowsort
SELECT ALL - + 90 AS col1 FROM tab2 AS cor0
----
-90
-90
-90

query I rowsort
SELECT + ( + + col2 ) AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7878
SELECT - MIN( ALL + col0 ) * - CAST( NULL AS SIGNED ) AS col1, 35 FROM tab1 AS cor0
----
NULL
35

skipif mysql # not compatible
query II rowsort label-7878
SELECT - MIN ( ALL + col0 ) * - CAST ( NULL AS INTEGER ) AS col1, 35 FROM tab1 AS cor0
----
NULL
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7879
SELECT - col2 * - CAST( 62 AS SIGNED ) - + ( - ( + 47 ) ) + + - col2 + - 93 * - 79 FROM tab0 AS cor0
----
10261
13433
8004

skipif mysql # not compatible
query I rowsort label-7879
SELECT - col2 * - CAST ( 62 AS INTEGER ) - + ( - ( + 47 ) ) + + - col2 + - 93 * - 79 FROM tab0 AS cor0
----
10261
13433
8004

query II rowsort
SELECT DISTINCT col0, + 8 + - col1 + 40 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + col2
----

query I rowsort
SELECT - ( - col0 ) * - col0 FROM tab0 AS cor0
----
-225
-7569
-9409

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= 80
----

query I rowsort
SELECT DISTINCT 71 * col0 FROM tab1
----
3621
6035
6461

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * - col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 + + ( col2 ) / 59 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7886
SELECT * FROM tab1 WHERE NOT - - col1 - 93 * - + ( col1 ) * + CAST( NULL AS SIGNED ) * + + col1 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7886
SELECT * FROM tab1 WHERE NOT - - col1 - 93 * - + ( col1 ) * + CAST ( NULL AS INTEGER ) * + + col1 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 90 * - - 26 + + col1 AS col2 FROM tab2 AS cor0
----
2391
2407
2417

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7888
SELECT DISTINCT + col0 * - + 33 + + col2 AS col2, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-1587
NULL
-2746
NULL
-2935
NULL

skipif mysql # not compatible
query II rowsort label-7888
SELECT DISTINCT + col0 * - + 33 + + col2 AS col2, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-1587
NULL
-2746
NULL
-2935
NULL

query I rowsort
SELECT - 93 AS col1 FROM tab0 cor0
----
-93
-93
-93

query II rowsort
SELECT DISTINCT 95 + + col2, 13 AS col2 FROM tab1 AS cor0
----
154
13
163
13
191
13

query I rowsort
SELECT ALL - col1 * - ( + + col1 ) + + 40 FROM tab0 AS cor0
----
41
481
6601

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + + + 39 + + 50 + + - col2 IS NOT NULL
----

query I rowsort
SELECT ALL + - 16 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 < col0
----
87
21
10
97
1
99

query II rowsort
SELECT DISTINCT 48 + - col2 AS col1, col1 AS col0 FROM tab2 AS cor0
----
-10
67
25
51
8
77

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT IN ( + 54 * - col1, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT ( NOT NULL <> 69 )
----
0

skipif mysql # not compatible
query I rowsort label-7897
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT ( NOT NULL <> 69 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7898
SELECT - COUNT( * ) * + 99 - + COUNT( * ) * - 26 + 56 AS col1 FROM tab0
----
-163

skipif mysql # not compatible
query I rowsort label-7898
SELECT - COUNT ( * ) * + 99 - + COUNT ( * ) * - 26 + 56 AS col1 FROM tab0
----
-163

onlyif mysql # aggregate syntax: 
query I rowsort label-7899
SELECT DISTINCT - 97 * MAX( DISTINCT + 36 ) + - + COUNT( * ) AS col0 FROM tab0
----
-3495

skipif mysql # not compatible
query I rowsort label-7899
SELECT DISTINCT - 97 * MAX ( DISTINCT + 36 ) + - + COUNT ( * ) AS col0 FROM tab0
----
-3495

query I rowsort
SELECT - col0 + + 34 FROM tab1
----
-17
-51
-57

query I rowsort
SELECT + col1 + ( - col0 ) FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT ALL MIN( ( col1 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7902
SELECT ALL MIN ( ( col1 ) ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7903
SELECT DISTINCT + + 16 AS col2, + COUNT( * ) FROM tab2 AS cor0
----
16
3

skipif mysql # not compatible
query II rowsort label-7903
SELECT DISTINCT + + 16 AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
16
3

query I rowsort
SELECT ALL - ( - col2 ) + col2 + + col1 FROM tab2 AS cor0
----
157
183
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7905
SELECT ALL col1 + + 91 + - CAST( - col2 AS SIGNED ) * + 28 FROM tab2 cor0
----
1288
1782
786

skipif mysql # not compatible
query I rowsort label-7905
SELECT ALL col1 + + 91 + - CAST ( - col2 AS INTEGER ) * + 28 FROM tab2 cor0
----
1288
1782
786

query I rowsort
SELECT ALL 65 * + col2 FROM tab2
----
1495
2600
3770

query I rowsort
SELECT col1 FROM tab0 WHERE ( col0 ) NOT BETWEEN ( col1 ) AND NULL
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7908
SELECT - col2 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7908
SELECT - col2 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * - 85 + col2 NOT BETWEEN col2 AND 34
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT BETWEEN - col2 AND ( col0 )
----

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT - ( ( col2 ) ) < + ( + 52 ) * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7912
SELECT ALL 34 - CAST( col0 AS SIGNED ) AS col0 FROM tab1
----
-17
-51
-57

skipif mysql # not compatible
query I rowsort label-7912
SELECT ALL 34 - CAST ( col0 AS INTEGER ) AS col0 FROM tab1
----
-17
-51
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT COUNT( - 48 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7913
SELECT COUNT ( - 48 ) FROM tab2
----
3

query I rowsort
SELECT col1 AS col0 FROM tab0 WHERE - col1 + col1 IN ( + col2 + + 6 )
----

query I rowsort
SELECT 68 * col2 FROM tab0 WHERE - col0 / - col0 IS NOT NULL
----
3196
6732
680

query I rowsort
SELECT col1 * + col0 + + col2 FROM tab1
----
4345
484
810

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 NOT BETWEEN + col0 + col1 * 23 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col0 / - ( 25 * 77 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7919
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7919
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + ( col0 ) ) AS col1 FROM tab0
----
15
87
97

query I rowsort
SELECT 2 FROM tab1 WHERE NOT col1 / 43 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT ALL 78 + + MIN( ALL - ( ( 28 ) ) + col2 ) FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7922
SELECT ALL 78 + + MIN ( ALL - ( ( 28 ) ) + col2 ) FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 68 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 15 FROM tab1 WHERE ( + col0 ) = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col2 + col1 ) >= + col1 + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7926
SELECT - 35 + MIN( - col1 ) * COUNT( * ) FROM tab0
----
-278

skipif mysql # not compatible
query I rowsort label-7926
SELECT - 35 + MIN ( - col1 ) * COUNT ( * ) FROM tab0
----
-278

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 >= col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 2 < col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7929
SELECT ALL - CAST( NULL AS SIGNED ) + + 73 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL - CAST ( NULL AS INTEGER ) + + 73 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7930
SELECT DISTINCT COUNT( * ) + - ( - 6 ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT COUNT ( * ) + - ( - 6 ) AS col2 FROM tab2 AS cor0
----
9

query I rowsort
SELECT ALL col0 * 70 AS col2 FROM tab1 AS cor0
----
3570
5950
6370

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( 12 ) + - col2 NOT IN ( + 95 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 49 * ( + col0 * - col2 ) AS col0 FROM tab2 AS cor0
----
-125440
-213150
-51842

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7934
SELECT DISTINCT 8 DIV - COUNT( * ) AS col1 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-7934
SELECT DISTINCT 8 / - COUNT ( * ) AS col1 FROM tab0
----
-2

query I rowsort
SELECT DISTINCT 49 AS col1 FROM tab0 cor0 CROSS JOIN tab1
----
49

query I rowsort
SELECT DISTINCT 61 / 94 + col2 AS col0 FROM tab0 WHERE NOT ( NULL ) > + col0
----

query I rowsort
SELECT 96 + 29 FROM tab0 AS cor0
----
125
125
125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7938
SELECT ALL - col1 FROM tab2 AS cor0 WHERE CAST( - col0 AS SIGNED ) * col2 IN ( - 47 / + col0 )
----

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL - col1 FROM tab2 AS cor0 WHERE CAST ( - col0 AS INTEGER ) * col2 IN ( - 47 / + col0 )
----

query I rowsort
SELECT + 64 AS col1 FROM tab2 AS cor0 WHERE ( + 76 - + 79 ) BETWEEN ( + col1 / col0 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7940
SELECT 25 DIV - col0 + 46 AS col0 FROM tab2 AS cor0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-7940
SELECT 25 / - col0 + 46 AS col0 FROM tab2 AS cor0
----
46
46
46

query I rowsort
SELECT - ( 68 ) + - col1 FROM tab1 AS cor0
----
-115
-73
-82

query I rowsort
SELECT ( col0 ) * 2 FROM tab1 AS cor0 WHERE 30 + col0 / col2 <> ( NULL )
----

query I rowsort
SELECT - col1 + - 82 AS col0 FROM tab2 AS cor0
----
-133
-149
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT COUNT( * ) + - 7 AS col2 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7944
SELECT COUNT ( * ) + - 7 AS col2 FROM tab0 AS cor0
----
-4

query I rowsort
SELECT + + 71 + col2 FROM tab0 AS cor0
----
118
170
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7946
SELECT DISTINCT + col2 + 94 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7946
SELECT DISTINCT + col2 + 94 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 16 + 27 FROM tab2 AS cor0
----
11

query I rowsort
SELECT ALL - 67 + - col0 FROM tab0 AS cor0
----
-154
-164
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-7949
SELECT DISTINCT COUNT( DISTINCT - col2 ) - SUM( + 51 ) FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-7949
SELECT DISTINCT COUNT ( DISTINCT - col2 ) - SUM ( + 51 ) FROM tab2 AS cor0
----
-150

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE ( + 33 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7951
SELECT - CAST( 13 AS SIGNED ) AS col0 FROM tab1
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-7951
SELECT - CAST ( 13 AS INTEGER ) AS col0 FROM tab1
----
-13
-13
-13

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 ) <= col1
----
15
81
47

query I rowsort
SELECT - col1 FROM tab1 WHERE ( NULL ) IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT ALL 39 * + 91 + COUNT( * ) FROM tab1
----
3552

skipif mysql # not compatible
query I rowsort label-7954
SELECT ALL 39 * + 91 + COUNT ( * ) FROM tab1
----
3552

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT - SUM( ALL + - col1 ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7955
SELECT - SUM ( ALL + - col1 ) AS col2 FROM tab1
----
66

query I rowsort
SELECT + 80 * - col2 AS col0 FROM tab1
----
-4720
-5440
-7680

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 * - 42 ) >= + 80
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 - - - 8 FROM tab2
----
15
32
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7959
SELECT DISTINCT + CAST( + - 6 AS SIGNED ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT + CAST ( + - 6 AS INTEGER ) FROM tab1
----
-6

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 NOT IN ( - ( 81 ) * + 6 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 3 * col1 col2 FROM tab2 AS cor0 WHERE NULL IS NULL AND NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7962
SELECT DISTINCT 35 DIV + ( 17 ) + + 34 * 40 + - SUM( DISTINCT 11 ) FROM tab2 AS cor0
----
1351

skipif mysql # not compatible
query I rowsort label-7962
SELECT DISTINCT 35 / + ( 17 ) + + 34 * 40 + - SUM ( DISTINCT 11 ) FROM tab2 AS cor0
----
1351

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT COUNT( * ) - ( - 97 ) FROM tab2 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-7963
SELECT COUNT ( * ) - ( - 97 ) FROM tab2 AS cor0
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7964
SELECT - CAST( + - col1 AS SIGNED ) col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7964
SELECT - CAST ( + - col1 AS INTEGER ) col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7965
SELECT DISTINCT + CAST( + 72 AS SIGNED ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT + CAST ( + 72 AS INTEGER ) FROM tab0
----
72

query I rowsort
SELECT col1 + + col0 AS col0 FROM tab1 WHERE NOT ( + + 99 ) < 84
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT DISTINCT - - 72 * - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-648

skipif mysql # not compatible
query I rowsort label-7967
SELECT DISTINCT - - 72 * - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-648

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT ALL - ( - COUNT( * ) ) FROM tab2 AS cor0 WHERE ( ( col1 ) ) + + col2 / col1 >= - col1 * col0 + + col1
----
3

skipif mysql # not compatible
query I rowsort label-7968
SELECT ALL - ( - COUNT ( * ) ) FROM tab2 AS cor0 WHERE ( ( col1 ) ) + + col2 / col1 >= - col1 * col0 + + col1
----
3

query I rowsort
SELECT + 59 * - col2 * + col1 * - col2 + - 95 FROM tab2 AS cor0
----
13297797
1591666
7268705

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT ( + 71 ) < col2
----
23
40
58

query I rowsort
SELECT DISTINCT 68 AS col0 FROM tab1 AS cor0 WHERE NULL = + col0 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7972
SELECT ALL ( + + SUM( 28 ) ) AS col2 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-7972
SELECT ALL ( + + SUM ( 28 ) ) AS col2 FROM tab1 AS cor0
----
84

query II rowsort
SELECT DISTINCT - 7, col2 FROM tab2 AS cor0
----
-7
23
-7
40
-7
58

query I rowsort
SELECT + + col0 * + col1 * - 64 * col1 FROM tab1 AS cor0
----
-12865216
-136000
-639744

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 5 * + col0 * col1 IS NOT NULL
----

query I rowsort
SELECT ALL col0 FROM tab2 AS cor0 WHERE NOT NULL > + col2
----

query I rowsort
SELECT + 15 * + + col1 FROM tab0 AS cor0
----
1215
15
315

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE NOT + ( 7 ) * + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 43 * - - col0 col0 FROM tab1 AS cor0
----
2193
3655
3913

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 * + col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 + ( 47 ) AS col1 FROM tab2 WHERE NOT - 8 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 col2 FROM tab0 WHERE NOT - col2 <= - 81
----
81
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 ) NOT IN ( - 24 )
----

query I rowsort
SELECT col2 + + + col0 AS col2 FROM tab1 AS cor0
----
144
147
159

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7985
SELECT ALL ( - 40 ) + - 45 DIV - COUNT( * ) FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL ( - 40 ) + - 45 / - COUNT ( * ) FROM tab0 AS cor0
----
-25

query I rowsort
SELECT ALL + - col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 24 col0 FROM tab2
----
27
43
53

query I rowsort
SELECT DISTINCT + 60 + - col2 + + col2 FROM tab0
----
60

query I rowsort
SELECT 50 / 35 AS col2 FROM tab2 WHERE + - 59 + + ( + ( col0 ) ) * col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT + ( - COUNT( ALL + 60 ) ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7990
SELECT + ( - COUNT ( ALL + 60 ) ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
-9

query II rowsort
SELECT col1 AS col1, - 40 FROM tab2
----
51
-40
67
-40
77
-40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * + - col2 + - - 96 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7993
SELECT DISTINCT + + CAST( + 75 AS SIGNED ) + - COUNT( * ) AS col1, 4 * + + COUNT( ALL - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
72
0

skipif mysql # not compatible
query II rowsort label-7993
SELECT DISTINCT + + CAST ( + 75 AS INTEGER ) + - COUNT ( * ) AS col1, 4 * + + COUNT ( ALL - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
72
0

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE ( ( + + ( 51 ) ) ) IS NOT NULL
----
15
87
97

query II rowsort
SELECT col2, col0 AS col1 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT - col0 - col0 * + + 70 * 31 AS col1 FROM tab0 cor0
----
-188877
-210587
-32565

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 <> + 63 * + ( 25 ) AND NOT ( col0 ) < ( NULL )
----

query I rowsort
SELECT - 50 * 55 + + 7 AS col0 FROM tab1
----
-2743
-2743
-2743

query I rowsort
SELECT 3 * col1 * - 68 * - col0 + - 9 FROM tab2
----
1005303
1025091
478575

query I rowsort
SELECT DISTINCT col1 + 34 - + col2 * - 49 FROM tab2
----
1212
2071
2943

query I rowsort
SELECT 82 * 80 AS col1 FROM tab0, tab0 AS cor0
----
9 values hashing to b8316577066a62d722e3ddffa0c71583

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT + ( - COUNT( * ) ) + MAX( - col2 ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-8002
SELECT + ( - COUNT ( * ) ) + MAX ( - col2 ) FROM tab2
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-8003
SELECT col0 DIV - col1 + - 76 FROM tab0
----
-173
-76
-80

skipif mysql # not compatible
query I rowsort label-8003
SELECT col0 / - col1 + - 76 FROM tab0
----
-173
-76
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT ALL + MAX( + + ( + - col2 ) ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8004
SELECT ALL + MAX ( + + ( + - col2 ) ) FROM tab1 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + 77 ) col0 FROM tab2 AS cor0
----
-77
-77
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - 83, + 70 + ( - col1 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 - + col1 + + 1 * + - col2 * 8 ) IN ( 73 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 59 BETWEEN NULL AND - - col0
----
51
14
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8009
SELECT ALL + - SUM( ALL CAST( NULL AS SIGNED ) ) AS col2, COUNT( * ) FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-8009
SELECT ALL + - SUM ( ALL CAST ( NULL AS INTEGER ) ) AS col2, COUNT ( * ) FROM tab1 AS cor0
----
NULL
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * col2 NOT IN ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col2 + + 89 col2 FROM tab0 AS cor0
----
-11
-2120
-9712

query I rowsort
SELECT + ( + ( - col0 ) ) FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT - - col1 * + 27 FROM tab1 AS cor0
----
1269
135
378

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT + + MAX( ALL col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-8014
SELECT + + MAX ( ALL col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT + COUNT( ALL ( + col2 ) ) + 10 AS col0 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-8015
SELECT + COUNT ( ALL ( + col2 ) ) + 10 AS col0 FROM tab0
----
13

query I rowsort
SELECT ALL - col0 + + 4 FROM tab2
----
-42
-60
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, + col1 * col0 + - col1 col0 FROM tab0
----
-1
96
-21
1806
-81
1134

query II rowsort
SELECT ALL + col0, - 88 FROM tab1
----
51
-88
85
-88
91
-88

onlyif mysql # aggregate syntax: 
query II rowsort label-8019
SELECT DISTINCT COUNT( * ) AS col0, MAX( DISTINCT + 32 ) + + COUNT( * ) FROM tab0
----
3
35

skipif mysql # not compatible
query II rowsort label-8019
SELECT DISTINCT COUNT ( * ) AS col0, MAX ( DISTINCT + 32 ) + + COUNT ( * ) FROM tab0
----
3
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8020
SELECT DISTINCT + COUNT( * ) * + - 74 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 88 + + 95
----
0

skipif mysql # not compatible
query I rowsort label-8020
SELECT DISTINCT + COUNT ( * ) * + - 74 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + 88 + + 95
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8021
SELECT DISTINCT SUM( ALL + 97 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
291

skipif mysql # not compatible
query I rowsort label-8021
SELECT DISTINCT SUM ( ALL + 97 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
291

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( + - col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8023
SELECT + - 31 + COUNT( * ) + MAX( DISTINCT + - col1 ), 61 AS col1 FROM tab1 AS cor0
----
-33
61

skipif mysql # not compatible
query II rowsort label-8023
SELECT + - 31 + COUNT ( * ) + MAX ( DISTINCT + - col1 ), 61 AS col1 FROM tab1 AS cor0
----
-33
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 col0 FROM tab2 AS cor0
----
-25
-25
-25

query I rowsort
SELECT + + 77 * - 56 * - + ( + + col0 ) FROM tab0 AS cor0
----
375144
418264
64680

onlyif mysql # DIV for integer division: 
query I rowsort label-8026
SELECT DISTINCT + + col2 DIV + col1 + ( col2 ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT + + col2 / + col1 + ( col2 ) FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT DISTINCT 92 * - COUNT( * ) - COUNT( * ) FROM tab1 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-8027
SELECT DISTINCT 92 * - COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0
----
-279

onlyif mysql # DIV for integer division: 
query I rowsort label-8028
SELECT col2 DIV + + col2 col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8028
SELECT col2 / + + col2 col0 FROM tab0
----
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - ( + - 2 ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NULL <> col2
----
0

skipif mysql # not compatible
query I rowsort label-8030
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NULL <> col2
----
0

query I rowsort
SELECT DISTINCT 19 * - - col1 AS col2 FROM tab1
----
266
893
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8032
SELECT ( + 36 ) * + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8032
SELECT ( + 36 ) * + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8033
SELECT 15 AS col2, - COUNT( * ) FROM tab0 cor0
----
15
-3

skipif mysql # not compatible
query II rowsort label-8033
SELECT 15 AS col2, - COUNT ( * ) FROM tab0 cor0
----
15
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8034
SELECT DISTINCT + 86 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8034
SELECT DISTINCT + 86 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT DISTINCT - COUNT( 2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8035
SELECT DISTINCT - COUNT ( 2 ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT col2 - + 44 * - 64 AS col2 FROM tab0 WHERE NOT ( - 43 + - 46 - - 26 + col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE - 60 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 88 * + + col2 col1 FROM tab2
----
-2024
-3520
-5104

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8039
SELECT - COUNT( * ) DIV - ( + MIN( - col2 ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8039
SELECT - COUNT ( * ) / - ( + MIN ( - col2 ) ) FROM tab2
----
0

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT col1 * - col0 * - col2 * - + col1 AS col0 FROM tab0
----
-383670
-4625505
-9603

query II rowsort
SELECT - col2 + + col1 AS col1, - col1 AS col0 FROM tab0 AS cor0
----
-98
-1
11
-21
34
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 + - 10 ) NOT IN ( + col1, 88 * col2, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL <= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 57 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + col1 col2 FROM tab1
----
51
14
85
5
91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 12 * 36 col0 FROM tab2
----
-432
-432
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT DISTINCT + SUM( ALL - - col1 ) + - COUNT( * ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-8048
SELECT DISTINCT + SUM ( ALL - - col1 ) + - COUNT ( * ) FROM tab0
----
100

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 53 - - col2 AS col2 FROM tab1 AS cor0
----
112
121
149

query I rowsort
SELECT + 95 - - col1 AS col2 FROM tab0 AS cor0
----
116
176
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8052
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 + CAST( + col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8052
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 + CAST ( + col0 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8053
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, + 33 - col1 FROM tab1 AS cor0
----
NULL
-14
NULL
19
NULL
28

skipif mysql # not compatible
query II rowsort label-8053
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, + 33 - col1 FROM tab1 AS cor0
----
NULL
-14
NULL
19
NULL
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8054
SELECT + COUNT( * ) + 59 + + COUNT( * ) col1 FROM tab0 AS cor0
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8054
SELECT + COUNT ( * ) + 59 + + COUNT ( * ) col1 FROM tab0 AS cor0
----
65

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT ( - col0 NOT BETWEEN - col2 * + col0 + + col2 * + 64 * + col0 / - col2 AND - col2 )
----
21

query I rowsort
SELECT 60 FROM tab1 AS cor0 WHERE NOT col2 * + col1 NOT IN ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 * + + 45 col2 FROM tab1 AS cor0
----
3420
3420
3420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8058
SELECT ALL 43 * - CAST( col0 AS SIGNED ) FROM tab2
----
-1978
-2752
-3225

skipif mysql # not compatible
query I rowsort label-8058
SELECT ALL 43 * - CAST ( col0 AS INTEGER ) FROM tab2
----
-1978
-2752
-3225

onlyif mysql # DIV for integer division: 
query I rowsort label-8059
SELECT col1 DIV col2 * - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8059
SELECT col1 / col2 * - col2 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + - ( - col0 ) + - col1 FROM tab2 WHERE NOT 62 IS NOT NULL
----

query I rowsort
SELECT - col0 * - 90 * 96 AS col0 FROM tab0
----
129600
751680
838080

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT DISTINCT + ( + - COUNT( * ) ) col2 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8062
SELECT DISTINCT + ( + - COUNT ( * ) ) col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT DISTINCT - MAX( + col0 ) * - COUNT( + + col1 ) * - MAX( col2 ) FROM tab0
----
-28809

skipif mysql # not compatible
query I rowsort label-8063
SELECT DISTINCT - MAX ( + col0 ) * - COUNT ( + + col1 ) * - MAX ( col2 ) FROM tab0
----
-28809

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT + COUNT( DISTINCT 38 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8064
SELECT + COUNT ( DISTINCT 38 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT ALL + - col0 * + + col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT ALL col1 * 62 FROM tab1 AS cor0
----
2914
310
868

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT ALL - COUNT( * ) col1 FROM tab0, tab1 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8067
SELECT ALL - COUNT ( * ) col1 FROM tab0, tab1 AS cor0
----
-9

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE NOT col1 * + + col0 = NULL
----

query II rowsort
SELECT ALL + + 23 * + col0, + ( col1 ) + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT 73 * + ( + + 44 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8070
SELECT ALL + MAX( - 0 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8070
SELECT ALL + MAX ( - 0 ) FROM tab2 cor0
----
0

query I rowsort
SELECT - col0 + - 41 + col0 FROM tab0 AS cor0 WHERE NOT 14 <= - - 38
----

query I rowsort
SELECT + 68 + - 69 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8073
SELECT + ( 55 ) + - + COUNT( * ) FROM tab1 cor0
----
52

skipif mysql # not compatible
query I rowsort label-8073
SELECT + ( 55 ) + - + COUNT ( * ) FROM tab1 cor0
----
52

query I rowsort
SELECT - col2 + - ( 61 ) + col2 * - col0 FROM tab0 AS cor0
----
-813
-941
-9763

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8075
SELECT ALL - 73 * - CAST( + COUNT( * ) AS SIGNED ) DIV + - COUNT( * ) + + - SUM( DISTINCT - col0 ) + + 81 AS col0 FROM tab0 cor0
----
207

skipif mysql # not compatible
query I rowsort label-8075
SELECT ALL - 73 * - CAST ( + COUNT ( * ) AS INTEGER ) / + - COUNT ( * ) + + - SUM ( DISTINCT - col0 ) + + 81 AS col0 FROM tab0 cor0
----
207

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT 20 + - + 35 + - + COUNT( * ) * + 37 col1 FROM tab1 AS cor0
----
-126

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8076
SELECT 20 + - + 35 + - + COUNT ( * ) * + 37 col1 FROM tab1 AS cor0
----
-126

query I rowsort
SELECT 55 + - - col2 AS col2 FROM tab0 AS cor0
----
102
154
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT + COUNT( * ) + + + COUNT( ALL - - col0 ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8078
SELECT + COUNT ( * ) + + + COUNT ( ALL - - col0 ) AS col2 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8079
SELECT DISTINCT + COUNT( * ) + + 70 FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-8079
SELECT DISTINCT + COUNT ( * ) + + 70 FROM tab2 AS cor0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8080
SELECT COUNT( * ) + + MAX( DISTINCT + - 82 ) * - COUNT( * ) FROM tab1
----
249

skipif mysql # not compatible
query I rowsort label-8080
SELECT COUNT ( * ) + + MAX ( DISTINCT + - 82 ) * - COUNT ( * ) FROM tab1
----
249

query I rowsort
SELECT col1 + - - col2 + + + 78 AS col2 FROM tab2
----
152
195
203

query III rowsort
SELECT * FROM tab0 WHERE col2 + - - col0 * - + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + col1 * + 93 < NULL
----

query I rowsort
SELECT - + 1 FROM tab2 AS cor0 WHERE ( NOT + + col2 IS NULL )
----
-1
-1
-1

query II rowsort
SELECT col0, - 44 AS col0 FROM tab0 AS cor0
----
15
-44
87
-44
97
-44

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND col0 - + col1
----

query II rowsort
SELECT ALL + col1 AS col1, col1 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT 22 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 30 IS NULL
----

query I rowsort
SELECT ALL + - 44 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab2 WHERE NOT NULL NOT IN ( 56, col2 * - 20, + - col0 )
----

query I rowsort
SELECT ALL 84 - - col1 FROM tab2 AS cor0
----
135
151
161

onlyif mysql # aggregate syntax: 
query I rowsort label-8093
SELECT ALL - COUNT( * ) + - + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-8094
SELECT DISTINCT - ( - COUNT( * ) ) AS col1, - 54 * + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
-162

skipif mysql # not compatible
query II rowsort label-8094
SELECT DISTINCT - ( - COUNT ( * ) ) AS col1, - 54 * + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
-162

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 - - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-8096
SELECT + col2 DIV 98 AS col2, - 82 FROM tab2 AS cor0
----
0
-82
0
-82
0
-82

skipif mysql # not compatible
query II rowsort label-8096
SELECT + col2 / 98 AS col2, - 82 FROM tab2 AS cor0
----
0
-82
0
-82
0
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT COUNT( * ) * - ( + 11 ) col0 FROM tab0 AS cor0
----
-33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8097
SELECT COUNT ( * ) * - ( + 11 ) col0 FROM tab0 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT ALL + COUNT( * ) * - 76 * 83 + 83 FROM tab1 AS cor0
----
-18841

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL + COUNT ( * ) * - 76 * 83 + 83 FROM tab1 AS cor0
----
-18841

query II rowsort
SELECT + col0, 13 AS col2 FROM tab2
----
46
13
64
13
75
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col1, col2 + + col0 FROM tab0
----
15
62
87
97
97
196

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE ( - col2 ) NOT BETWEEN 45 AND ( NULL )
----
14
47
5

query I rowsort
SELECT ALL col2 * + 94 FROM tab2
----
2162
3760
5452

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8103
SELECT CAST( - + CAST( - + col2 AS SIGNED ) AS SIGNED ), - col1 + col0 AS col2 FROM tab0 AS cor0
----
10
66
47
-66
99
96

skipif mysql # not compatible
query II rowsort label-8103
SELECT CAST ( - + CAST ( - + col2 AS INTEGER ) AS INTEGER ), - col1 + col0 AS col2 FROM tab0 AS cor0
----
10
66
47
-66
99
96

query I rowsort
SELECT ALL + 32 * - 46 AS col1 FROM tab2 AS cor0
----
-1472
-1472
-1472

query II rowsort
SELECT ALL + + col0, 42 FROM tab1 AS cor0
----
51
42
85
42
91
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8106
SELECT DISTINCT 91 * + - COUNT( * ) FROM tab2 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-8106
SELECT DISTINCT 91 * + - COUNT ( * ) FROM tab2 AS cor0
----
-273

onlyif mysql # DIV for integer division: 
query I rowsort label-8107
SELECT DISTINCT - col1 DIV - + col2 + + col0 FROM tab0 AS cor0 WHERE 1 IS NOT NULL
----
16
89
97

skipif mysql # not compatible
query I rowsort label-8107
SELECT DISTINCT - col1 / - + col2 + + col0 FROM tab0 AS cor0 WHERE 1 IS NOT NULL
----
16
89
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT ALL MIN( col1 ) col2 FROM tab1 cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8108
SELECT ALL MIN ( col1 ) col2 FROM tab1 cor0
----
5

query I rowsort
SELECT 11 + col0 AS col0 FROM tab2
----
57
75
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8110
SELECT + 93 * + COUNT( * ) AS col2 FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-8110
SELECT + 93 * + COUNT ( * ) AS col2 FROM tab1
----
279

query I rowsort
SELECT 9 * + 26 + + - col1 FROM tab1 cor0
----
187
220
229

query I rowsort
SELECT ALL 55 * 89 + 90 FROM tab0 AS cor0
----
4985
4985
4985

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8113
SELECT - COUNT( * ) DIV ( + - 68 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8113
SELECT - COUNT ( * ) / ( + - 68 ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 90 * col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8115
SELECT AVG ( - col1 ) * COUNT( + col0 ) + CAST( + AVG ( ALL + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8115
SELECT AVG ( - col1 ) * COUNT ( + col0 ) + CAST ( + AVG ( ALL + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8116
SELECT DISTINCT col1 * + + col0 + 99 DIV - 87 AS col0 FROM tab0 AS cor0
----
1214
1826
96

skipif mysql # not compatible
query I rowsort label-8116
SELECT DISTINCT col1 * + + col0 + 99 / - 87 AS col0 FROM tab0 AS cor0
----
1214
1826
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT + COUNT( DISTINCT + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8117
SELECT + COUNT ( DISTINCT + col2 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8118
SELECT ALL COUNT( + 25 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8118
SELECT ALL COUNT ( + 25 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT - col1 + + col1 - - - 71 * col1 FROM tab2
----
-3621
-4757
-5467

query II rowsort
SELECT ALL - col1 AS col0, - 63 * + 48 - + + col2 AS col2 FROM tab2 AS cor0
----
-51
-3047
-67
-3082
-77
-3064

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( + + ( - - col0 ) ) - - + 7 IN ( - 14, + col1, + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + + 40 + - + col2 + + - col0 AS col2 FROM tab0 cor0
----
-156
-22
-57

query I rowsort
SELECT - col0 + + - ( 56 ) FROM tab0 AS cor0
----
-143
-153
-71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 44 >= - ( - + col2 )
----
87
21
10

query I rowsort
SELECT DISTINCT - 55 FROM tab0 AS cor0 WHERE NOT NULL < col2 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT DISTINCT - MIN( + 35 ) + + MIN( + + col2 ) AS col2 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8126
SELECT DISTINCT - MIN ( + 35 ) + + MIN ( + + col2 ) AS col2 FROM tab0 AS cor0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8127
SELECT ALL - CAST( NULL AS SIGNED ) - 52 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL - CAST ( NULL AS INTEGER ) - 52 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT ALL - col2 AS col2, col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT col0 / + - ( + - col2 ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL - col1 * - - 47 FROM tab0 AS cor0
----
-3807
-47
-987

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - - col0 ) * + + ( - ( + col2 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL ( + col1 ), col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT + + COUNT( * ) * + - 84 FROM tab1 AS cor0
----
-252

skipif mysql # not compatible
query I rowsort label-8133
SELECT + + COUNT ( * ) * + - 84 FROM tab1 AS cor0
----
-252

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8134
SELECT - ( - + CAST( 14 AS SIGNED ) ) * ( - MAX( ALL + + col1 ) ) AS col2 FROM tab1
----
-658

skipif mysql # not compatible
query I rowsort label-8134
SELECT - ( - + CAST ( 14 AS INTEGER ) ) * ( - MAX ( ALL + + col1 ) ) AS col2 FROM tab1
----
-658

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 NOT BETWEEN + 34 + - + col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8136
SELECT + 70 DIV - - SUM( + + 41 ) col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8136
SELECT + 70 / - - SUM ( + + 41 ) col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8137
SELECT DISTINCT COUNT( DISTINCT 48 ) AS col0, - 3 FROM tab0
----
1
-3

skipif mysql # not compatible
query II rowsort label-8137
SELECT DISTINCT COUNT ( DISTINCT 48 ) AS col0, - 3 FROM tab0
----
1
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> + 9
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT DISTINCT + SUM( - col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8139
SELECT DISTINCT + SUM ( - col1 ) AS col2 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT ALL + COUNT( * ) + + - ( - MAX( - + col2 ) ) AS col0 FROM tab2 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-8140
SELECT ALL + COUNT ( * ) + + - ( - MAX ( - + col2 ) ) AS col0 FROM tab2 AS cor0
----
-20

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * - + 58 <> 26 * - 18 + + + 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8142
SELECT ALL + SUM( DISTINCT + + ( - col1 ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8142
SELECT ALL + SUM ( DISTINCT + + ( - col1 ) ) FROM tab1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-8143
SELECT col2 DIV col2 * - - col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8143
SELECT col2 / col2 * - - col0 FROM tab1
----
51
85
91

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 18 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8145
SELECT ALL CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) * 72 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8145
SELECT ALL CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) * 72 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 81 + - col1 * + col1 col1 FROM tab2 AS cor0
----
-2705
-4628
-6050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * - 53 + + 54, + col0 + - col2 col2 FROM tab1 AS cor0
----
-2649
-45
-4451
26
-4769
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8148
SELECT - - 59 / + CAST( NULL AS SIGNED ) + + + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8148
SELECT - - 59 / + CAST ( NULL AS INTEGER ) + + + col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8149
SELECT + SUM( DISTINCT col2 ) * - + COUNT( * ) + + + 46 FROM tab0
----
-422

skipif mysql # not compatible
query I rowsort label-8149
SELECT + SUM ( DISTINCT col2 ) * - + COUNT ( * ) + + + 46 FROM tab0
----
-422

query I rowsort
SELECT DISTINCT col2 * 3 AS col1 FROM tab2
----
120
174
69

query I rowsort
SELECT + col2 * + 53 * + - col0 AS col1 FROM tab1
----
-259488
-265795
-327964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8152
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 * + - col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 * + - col2 FROM tab1
----
NULL

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE - + 96 <= - ( col0 )
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - + col2 col1 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8155
SELECT ALL - CAST( NULL AS SIGNED ) * COUNT( * ) + + + AVG ( - col1 ) / + + COUNT( * ) + - 90 col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8155
SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * ) + + + AVG ( - col1 ) / + + COUNT ( * ) + - 90 col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 + col1 <= NULL
----

query II rowsort
SELECT DISTINCT col2 AS col1, col1 FROM tab0 WHERE - col2 + - + col1 <= ( NULL )
----

query II rowsort
SELECT ALL 6, col2 AS col2 FROM tab2 AS cor0
----
6
23
6
40
6
58

query II rowsort
SELECT - 92, + col0 AS col1 FROM tab2 AS cor0
----
-92
46
-92
64
-92
75

query I rowsort
SELECT - ( col0 ) FROM tab0 AS cor0 WHERE NOT 71 * + + col0 IN ( + 87 )
----
-15
-87
-97

query I rowsort
SELECT + col2 * - - col2 AS col0 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-8162
SELECT ALL + MAX( + - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-8162
SELECT ALL + MAX ( + - col2 ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT 34 * - col1 FROM tab0
----
-2754
-34
-714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8164
SELECT - COUNT( * ) DIV - ( COUNT( * ) ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8164
SELECT - COUNT ( * ) / - ( COUNT ( * ) ) AS col1 FROM tab2
----
1

query II rowsort
SELECT 80, 28 AS col1 FROM tab1
----
80
28
80
28
80
28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8166
SELECT CAST( - COUNT( ALL + - col2 ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8166
SELECT CAST ( - COUNT ( ALL + - col2 ) AS INTEGER ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8167
SELECT ALL + - ( - + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL + - ( - + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + 32 FROM tab1 cor0
----
32
32
32

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 12 = col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 * + 47 col0 FROM tab2 AS cor0
----
4136

onlyif mysql # aggregate syntax: 
query I rowsort label-8171
SELECT - MAX( - 90 ) * - COUNT( * ) * COUNT( * ) col2 FROM tab1 AS cor0 WHERE 30 IS NOT NULL
----
-810

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8171
SELECT - MAX ( - 90 ) * - COUNT ( * ) * COUNT ( * ) col2 FROM tab1 AS cor0 WHERE 30 IS NOT NULL
----
-810

onlyif mysql # aggregate syntax: 
query I rowsort label-8172
SELECT + MAX( + 75 ) * 1 AS col1 FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-8172
SELECT + MAX ( + 75 ) * 1 AS col1 FROM tab1 AS cor0
----
75

query I rowsort
SELECT + 83 - - ( - 79 ) FROM tab1 AS cor0
----
4
4
4

query I rowsort
SELECT + - col1 - col2 + - col1 AS col1 FROM tab2 AS cor0 WHERE 49 <> col0
----
-125
-192
-194

query I rowsort
SELECT - col2 AS col2 FROM tab0 AS cor0 WHERE + col0 = NULL
----

query I rowsort
SELECT - col2 - + + col1 AS col1 FROM tab2 AS cor0
----
-117
-125
-74

query II rowsort
SELECT 39 + col2 + - 37 AS col0, 68 * + + col1 FROM tab0
----
101
68
12
1428
49
5508

query I rowsort
SELECT col0 + - 2 FROM tab2
----
44
62
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 80 + + col0 - - - col1 col1 FROM tab0
----
14
146
176

query I rowsort
SELECT ALL 52 * + col0 FROM tab1
----
2652
4420
4732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8181
SELECT ALL CAST( NULL AS SIGNED ) / - col1 - - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL CAST ( NULL AS INTEGER ) / - col1 - - col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * - col2 * col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8183
SELECT ALL + CAST( NULL AS SIGNED ) * + 47 AS col2, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-8183
SELECT ALL + CAST ( NULL AS INTEGER ) * + 47 AS col2, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8184
SELECT CAST( + AVG ( ALL + - col1 ) AS SIGNED ) FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-8184
SELECT CAST ( + AVG ( ALL + - col1 ) AS INTEGER ) FROM tab0
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT DISTINCT - MIN( ALL - ( + col2 ) ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8185
SELECT DISTINCT - MIN ( ALL - ( + col2 ) ) AS col1 FROM tab1 AS cor0
----
96

query I rowsort
SELECT col2 + ( - col1 ) + + col0 + - - 99 FROM tab1
----
211
232
238

query I rowsort
SELECT col0 + + col2 * - 38 * 74 AS col0 FROM tab2
----
-112416
-163021
-64630

query I rowsort
SELECT 86 * + 4 AS col2 FROM tab2
----
344
344
344

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT DISTINCT - + 84 * COUNT( * ) * 98 FROM tab0 WHERE col2 + - - ( + ( + col2 ) ) IS NOT NULL
----
-24696

skipif mysql # not compatible
query I rowsort label-8190
SELECT DISTINCT - + 84 * COUNT ( * ) * 98 FROM tab0 WHERE col2 + - - ( + ( + col2 ) ) IS NOT NULL
----
-24696

query I rowsort
SELECT DISTINCT + 23 FROM tab2 cor0 WHERE NULL IS NULL
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT - MIN( ALL 5 ) AS col0 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8192
SELECT - MIN ( ALL 5 ) AS col0 FROM tab2 AS cor0
----
-5

query I rowsort
SELECT ALL + + 4 AS col1 FROM tab2 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT MIN( DISTINCT - 10 ) col2 FROM tab0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8194
SELECT MIN ( DISTINCT - 10 ) col2 FROM tab0
----
-10

query I rowsort
SELECT 49 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL BETWEEN 71 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8197
SELECT DISTINCT - MIN( ALL + + col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8197
SELECT DISTINCT - MIN ( ALL + + col1 ) AS col0 FROM tab1 AS cor0
----
-5

query II rowsort
SELECT ALL - - col1 AS col2, col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT DISTINCT - - 5 + - + col1 + + col1 * + + col1 FROM tab0 AS cor0
----
425
5
6485

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT ALL MIN( ALL - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8200
SELECT ALL MIN ( ALL - col0 ) FROM tab0 AS cor0
----
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( + 81 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8202
SELECT ALL - MAX( - - col1 ) + - 36 AS col0 FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-8202
SELECT ALL - MAX ( - - col1 ) + - 36 AS col0 FROM tab0 AS cor0
----
-117

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 <> - col1 * - col0 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - + 64 ) * + col2 FROM tab0 cor0
----
3008
6336
640

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8205
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( - CAST( + + col0 AS SIGNED ) + + 67 * - - col2 )
----

skipif mysql # not compatible
query III rowsort label-8205
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( - CAST ( + + col0 AS INTEGER ) + + 67 * - - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, 54 FROM tab2 cor0
----
46
54
64
54
75
54

query I rowsort
SELECT ( - col1 ) - + ( col0 ) * + 33 * + - 6 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8208
SELECT ALL - col0 * - 37 * CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8208
SELECT ALL - col0 * - 37 * CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col1 + + - 88 * - - ( + col1 ) * col2 * + - col2 + + col1 AS col1, - col1 FROM tab2
----
10841754
-77
19834278
-67
2374254
-51

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + + 93 + + col2 * - col0 + - - col2, col0 )
----

query II rowsort
SELECT col2 - + 50 AS col1, - col1 FROM tab1
----
18
-47
46
-14
9
-5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 ) * 3 + - 65 / + col1 IS NOT NULL
----

query II rowsort
SELECT + - col0 * + col2, + 25 AS col2 FROM tab2 AS cor0
----
-1058
25
-2560
25
-4350
25

query I rowsort
SELECT DISTINCT + 79 * - 29 FROM tab0
----
-2291

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8215
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < NULL
----

skipif mysql # not compatible
query I rowsort label-8215
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT 87 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
87

query II rowsort
SELECT + 79, col1 FROM tab2 AS cor0
----
79
51
79
67
79
77

query II rowsort
SELECT 6, col0 AS col1 FROM tab1 AS cor0
----
6
51
6
85
6
91

query II rowsort
SELECT - col1 * + col0 + + 43, ( + 48 ) AS col1 FROM tab1 AS cor0
----
-382
48
-4234
48
-671
48

onlyif mysql # DIV for integer division: 
query I rowsort label-8220
SELECT DISTINCT - col1 DIV - + col2 + col0 + - col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8220
SELECT DISTINCT - col1 / - + col2 + col0 + - col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT ALL + + 72 * + COUNT( ALL + col1 ) * 51 FROM tab1 AS cor0
----
11016

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL + + 72 * + COUNT ( ALL + col1 ) * 51 FROM tab1 AS cor0
----
11016

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 < + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT DISTINCT - COUNT( * ) * + 17 * + COUNT( * ) FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-8223
SELECT DISTINCT - COUNT ( * ) * + 17 * + COUNT ( * ) FROM tab0 AS cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT - COUNT( + ( + col0 ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8224
SELECT - COUNT ( + ( + col0 ) ) FROM tab0 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + ( - col0 ) + col2 col1 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT + 18 * + col1 AS col1 FROM tab1 WHERE NOT + + col2 IS NULL
----
252
846
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 17 col2 FROM tab2
----
391
680
986

onlyif mysql # DIV for integer division: 
query I rowsort label-8228
SELECT col1 DIV 83 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8228
SELECT col1 / 83 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8229
SELECT ALL col0 + - - col2 + col2 DIV - col2 col1 FROM tab1
----
143
146
158

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8229
SELECT ALL col0 + - - col2 + col2 / - col2 col1 FROM tab1
----
143
146
158

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT DISTINCT + SUM( - col1 ) col2 FROM tab0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8230
SELECT DISTINCT + SUM ( - col1 ) col2 FROM tab0
----
-103

query I rowsort
SELECT DISTINCT + 65 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
65

query I rowsort
SELECT 42 * col2 AS col1 FROM tab0
----
1974
4158
420

onlyif mysql # aggregate syntax: 
query I rowsort label-8233
SELECT ALL COUNT( * ) - - + MAX( - - 4 ) AS col2 FROM tab2 cor0
----
7

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL COUNT ( * ) - - + MAX ( - - 4 ) AS col2 FROM tab2 cor0
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT DISTINCT - COUNT( * ) + 66 AS col1 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-8234
SELECT DISTINCT - COUNT ( * ) + 66 AS col1 FROM tab1 AS cor0
----
63

onlyif mysql # DIV for integer division: 
query II rowsort label-8235
SELECT ALL col0, col1 + - + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
15
80
87
20
97
0

skipif mysql # not compatible
query II rowsort label-8235
SELECT ALL col0, col1 + - + col2 / col2 AS col1 FROM tab0 AS cor0
----
15
80
87
20
97
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8236
SELECT ALL 47 + - CAST( + + CAST( - CAST( + - col0 AS DECIMAL ) AS SIGNED ) AS SIGNED ) + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8236
SELECT ALL 47 + - CAST ( + + CAST ( - CAST ( + - col0 AS REAL ) AS INTEGER ) AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 - 2 FROM tab0 AS cor0
----
13
85
95

query I rowsort
SELECT ALL - ( + col2 ) + col1 AS col1 FROM tab1
----
-21
-54
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 61 * ( - - 57 ) + - col1 AS col1, + col1 col0 FROM tab1
----
3430
47
3463
14
3472
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8240
SELECT ALL + COUNT( col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8240
SELECT ALL + COUNT ( col2 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8241
SELECT + COUNT( * ) AS col0, COUNT( * ) AS col0 FROM tab1, tab1 AS cor0
----
9
9

skipif mysql # not compatible
query II rowsort label-8241
SELECT + COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0
----
9
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8242
SELECT ALL - CAST( + + AVG ( col2 ) AS SIGNED ) AS col2 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-8242
SELECT ALL - CAST ( + + AVG ( col2 ) AS INTEGER ) AS col2 FROM tab0
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-8243
SELECT ALL - 97 AS col2, COUNT( * ) * MAX( ALL col2 ) FROM tab2 cor0
----
-97
174

skipif mysql # not compatible
query II rowsort label-8243
SELECT ALL - 97 AS col2, COUNT ( * ) * MAX ( ALL col2 ) FROM tab2 cor0
----
-97
174

query I rowsort
SELECT 51 + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8245
SELECT DISTINCT - 13, - 54 * - COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab1 cor0
----
-13
54

skipif mysql # not compatible
query II rowsort label-8245
SELECT DISTINCT - 13, - 54 * - COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab1 cor0
----
-13
54

query III rowsort
SELECT - col0, ( 78 ) * + - 11 AS col0, col2 AS col0 FROM tab1 AS cor0
----
9 values hashing to 88ae2cabd3a7628321698f9324571c0e

query I rowsort
SELECT DISTINCT + + 64 AS col2 FROM tab0 AS cor0
----
64

query II rowsort
SELECT 36 AS col1, 28 AS col2 FROM tab0 AS cor0
----
36
28
36
28
36
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8249
SELECT - col0 / CAST( - col1 AS SIGNED ) + + CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL < + col1 AND NOT + 69 * col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8249
SELECT - col0 / CAST ( - col1 AS INTEGER ) + + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL < + col1 AND NOT + 69 * col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT + + col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + col2 + - col0 * + col1 * - - col1 AS col2 FROM tab2 AS cor0
----
-119669
-336733
-379496

query I rowsort
SELECT ALL + - 1 * + + col2 AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT ALL - + 55 + - - col2 FROM tab2 AS cor0
----
-15
-32
3

query I rowsort
SELECT 87 * - - 81 + + + col0 + - - col2 AS col2 FROM tab1 AS cor0
----
7191
7194
7206

query I rowsort
SELECT DISTINCT + 4 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8256
SELECT DISTINCT - COUNT( - + col0 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8256
SELECT DISTINCT - COUNT ( - + col0 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - 99 - + + 19 / - - col2 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8258
SELECT ALL - COUNT( * ) AS col1, COUNT( * ) + COUNT( * ) + + - COUNT( * ) FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-8258
SELECT ALL - COUNT ( * ) AS col1, COUNT ( * ) + COUNT ( * ) + + - COUNT ( * ) FROM tab1
----
-3
3

query III rowsort
SELECT * FROM tab0 WHERE + - col0 >= col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - col1 ) = NULL
----

query II rowsort
SELECT DISTINCT + col0 + + 95, col2 AS col0 FROM tab0
----
110
47
182
10
192
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 + 89 col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 9c1cbbef40c4641a61ebb23b0ccf9f4c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 40 col2 FROM tab1, tab1 AS cor0
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

query I rowsort
SELECT col0 + - - 96 FROM tab1
----
147
181
187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8265
SELECT CAST( 11 AS SIGNED ) + 22 AS col0 FROM tab1 AS cor0
----
33
33
33

skipif mysql # not compatible
query I rowsort label-8265
SELECT CAST ( 11 AS INTEGER ) + 22 AS col0 FROM tab1 AS cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8266
SELECT COUNT( * ) + - COUNT( * ) col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8266
SELECT COUNT ( * ) + - COUNT ( * ) col2 FROM tab0 AS cor0
----
0

query II rowsort
SELECT + 30 * + col1 AS col0, - 79 - - 33 AS col1 FROM tab1 AS cor0
----
1410
-46
150
-46
420
-46

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8269
SELECT DISTINCT - 14 DIV - col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8269
SELECT DISTINCT - 14 / - col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8270
SELECT ALL - - COUNT( - CAST( + 65 AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8270
SELECT ALL - - COUNT ( - CAST ( + 65 AS REAL ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8271
SELECT ALL * FROM tab2 WHERE NOT - CAST( NULL AS DECIMAL ) * col1 BETWEEN - col0 AND col2 + - 7
----

skipif mysql # not compatible
query III rowsort label-8271
SELECT ALL * FROM tab2 WHERE NOT - CAST ( NULL AS REAL ) * col1 BETWEEN - col0 AND col2 + - 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT + MIN( DISTINCT - 68 ) AS col1 FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-8272
SELECT + MIN ( DISTINCT - 68 ) AS col1 FROM tab1
----
-68

query III rowsort
SELECT * FROM tab0 WHERE NOT 83 - + ( + - col0 ) <> - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT MIN( ALL + 47 ) col2 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8274
SELECT MIN ( ALL + 47 ) col2 FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8275
SELECT DISTINCT - CAST( NULL AS SIGNED ), col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-8275
SELECT DISTINCT - CAST ( NULL AS INTEGER ), col1 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query I rowsort
SELECT + col1 * + + 15 FROM tab2 AS cor0
----
1005
1155
765

query I rowsort
SELECT col0 * 41 AS col1 FROM tab2
----
1886
2624
3075

onlyif mysql # DIV for integer division: 
query II rowsort label-8278
SELECT DISTINCT col2 AS col1, + col0 DIV - 65 FROM tab1
----
59
-1
68
-1
96
0

skipif mysql # not compatible
query II rowsort label-8278
SELECT DISTINCT col2 AS col1, + col0 / - 65 FROM tab1
----
59
-1
68
-1
96
0

query II rowsort
SELECT 17, - 1 * col1 AS col2 FROM tab0 AS cor0
----
17
-1
17
-21
17
-81

query I rowsort
SELECT ALL - + col0 * - + 29 AS col1 FROM tab2 AS cor0
----
1334
1856
2175

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8281
SELECT DISTINCT 22 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8281
SELECT DISTINCT 22 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * + 43 FROM tab1 AS cor0
----
2537
2924
4128

query I rowsort
SELECT ALL - + col0 + 56 + 44 * + col0 FROM tab0 AS cor0
----
3797
4227
701

query I rowsort
SELECT - 20 * col1 FROM tab0 AS cor0 WHERE NOT + 56 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 72, 69 col0 FROM tab0 AS cor0
----
72
69
72
69
72
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8286
SELECT ALL - + COUNT( + + 63 ) col0 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8286
SELECT ALL - + COUNT ( + + 63 ) col0 FROM tab0 AS cor0 WHERE ( NULL ) <> NULL
----
0

query II rowsort
SELECT ALL - 25, 0 * + + col1 AS col0 FROM tab0 AS cor0
----
-25
0
-25
0
-25
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8288
SELECT - CAST( 41 AS SIGNED ), col2 + 99 col2 FROM tab1 AS cor0
----
-41
158
-41
167
-41
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8288
SELECT - CAST ( 41 AS INTEGER ), col2 + 99 col2 FROM tab1 AS cor0
----
-41
158
-41
167
-41
195

query I rowsort
SELECT DISTINCT + col2 + - 65 FROM tab2 AS cor0
----
-25
-42
-7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8290
SELECT ALL + COUNT( * ) AS col2, CAST( NULL AS SIGNED ) FROM tab1 cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8290
SELECT ALL + COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
3
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8291
SELECT ALL - 69 DIV - col0 + 74 * col2, + col1 + + 66 AS col0 FROM tab1 AS cor0
----
4366
71
5032
113
7105
80

skipif mysql # not compatible
query II rowsort label-8291
SELECT ALL - 69 / - col0 + 74 * col2, + col1 + + 66 AS col0 FROM tab1 AS cor0
----
4366
71
5032
113
7105
80

query II rowsort
SELECT DISTINCT ( + 34 ), ( - - 8 ) AS col0 FROM tab0
----
34
8

query I rowsort
SELECT ALL 46 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 + - col2 col2 FROM tab0
----
-98
431
6514

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT DISTINCT - - COUNT( * ) col1 FROM tab2 WHERE NOT - 55 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8295
SELECT DISTINCT - - COUNT ( * ) col1 FROM tab2 WHERE NOT - 55 IS NOT NULL
----
0

query I rowsort
SELECT ( 87 ) + - - col1 AS col2 FROM tab0
----
108
168
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT DISTINCT ( - MAX( + - col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8297
SELECT DISTINCT ( - MAX ( + - col2 ) ) FROM tab1
----
59

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE 74 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8299
SELECT ALL + + CAST( - col0 AS SIGNED ) * - + col2 FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-8299
SELECT ALL + + CAST ( - col0 AS INTEGER ) * - + col2 FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-8300
SELECT + 99 - - 10 * - - SUM( + col0 ) AS col0 FROM tab2
----
1949

skipif mysql # not compatible
query I rowsort label-8300
SELECT + 99 - - 10 * - - SUM ( + col0 ) AS col0 FROM tab2
----
1949

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8301
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - col1 col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8301
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - col1 col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT DISTINCT COUNT( + col2 ) * - COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8302
SELECT DISTINCT COUNT ( + col2 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT - - 12 AS col2 FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( + - 33 * + + col2, col0, + + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 55 * + col1 col2 FROM tab1 AS cor0
----
2585
275
770

query I rowsort
SELECT DISTINCT ( + 57 ) FROM tab1
----
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8306
SELECT - CAST( col0 AS SIGNED ) col2, 49 * + col1 * - col1 + + col1 AS col1 FROM tab2
----
-46
-127398
-64
-290444
-75
-219894

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8306
SELECT - CAST ( col0 AS INTEGER ) col2, 49 * + col1 * - col1 + + col1 AS col1 FROM tab2
----
-46
-127398
-64
-290444
-75
-219894

query I rowsort
SELECT DISTINCT + ( 98 ) * - + col1 AS col1 FROM tab2
----
-4998
-6566
-7546

query I rowsort
SELECT DISTINCT - col1 * + + 80 AS col0 FROM tab0
----
-1680
-6480
-80

query I rowsort
SELECT ALL 6 * col2 * 72 FROM tab1
----
25488
29376
41472

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8310
SELECT DISTINCT 24 * + COUNT( * ) DIV COUNT( * ) AS col2 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-8310
SELECT DISTINCT 24 * + COUNT ( * ) / COUNT ( * ) AS col2 FROM tab0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT ALL + MIN( ( + - col2 ) ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8311
SELECT ALL + MIN ( ( + - col2 ) ) AS col1 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8312
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT 60 + - col1 * + ( - + 19 ) - + + col2 + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8312
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 60 + - col1 * + ( - + 19 ) - + + col2 + col0 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col1 < - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8314
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8314
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT - 71 * + + COUNT( * ) AS col0 FROM tab2
----
-213

skipif mysql # not compatible
query I rowsort label-8315
SELECT - 71 * + + COUNT ( * ) AS col0 FROM tab2
----
-213

query I rowsort
SELECT 15 * + 75 AS col1 FROM tab1
----
1125
1125
1125

query I rowsort
SELECT 81 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL - 49, - col2 AS col2 FROM tab0 AS cor0
----
-49
-10
-49
-47
-49
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-8320
SELECT ALL + + col0 DIV col1 * + col2 + - 2 FROM tab2 AS cor0
----
-2
-2
56

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL + + col0 / col1 * + col2 + - 2 FROM tab2 AS cor0
----
-2
-2
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8321
SELECT 22 * + col1 * - col0 + + CAST( col0 AS SIGNED ) * + + col2 + 44 AS col2 FROM tab2 AS cor0
----
-105812
-106156
-50510

skipif mysql # not compatible
query I rowsort label-8321
SELECT 22 * + col1 * - col0 + + CAST ( col0 AS INTEGER ) * + + col2 + 44 AS col2 FROM tab2 AS cor0
----
-105812
-106156
-50510

query I rowsort
SELECT DISTINCT + ( 47 ) + 6 + - col0 FROM tab2 AS cor0
----
-11
-22
7

query I rowsort
SELECT DISTINCT - col1 * + 81 + 46 * - col2 FROM tab1 AS cor0
----
-3119
-5550
-6935

query I rowsort
SELECT - col1 * - + col1 + + col1 AS col0 FROM tab1 AS cor0
----
210
2256
30

onlyif mysql # DIV for integer division: 
query I rowsort label-8325
SELECT + col1 DIV col2 + - 89 FROM tab0 AS cor0
----
-87
-88
-89

skipif mysql # not compatible
query I rowsort label-8325
SELECT + col1 / col2 + - 89 FROM tab0 AS cor0
----
-87
-88
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8326
SELECT ALL + - CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8326
SELECT ALL + - CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + col2 + + col1 AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT - 11 + - 90 FROM tab1
----
-101
-101
-101

query III rowsort
SELECT * FROM tab1 WHERE NULL < - + col0 + + col2 * + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8330
SELECT ALL - CAST( - + col2 AS SIGNED ) - - + col0 * col0 FROM tab2
----
2139
4136
5683

skipif mysql # not compatible
query I rowsort label-8330
SELECT ALL - CAST ( - + col2 AS INTEGER ) - - + col0 * col0 FROM tab2
----
2139
4136
5683

query II rowsort
SELECT DISTINCT - col0 * + - 29 AS col2, - col2 * - 24 + + 52 AS col0 FROM tab1 AS cor0
----
1479
2356
2465
1468
2639
1684

query I rowsort
SELECT DISTINCT - - 15 AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8333
SELECT DISTINCT COUNT( ALL + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8333
SELECT DISTINCT COUNT ( ALL + col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT ALL + MIN( ALL - col2 ) FROM tab1 cor0 WHERE col0 - col2 IS NOT NULL
----
-96

skipif mysql # not compatible
query I rowsort label-8334
SELECT ALL + MIN ( ALL - col2 ) FROM tab1 cor0 WHERE col0 - col2 IS NOT NULL
----
-96

query I rowsort
SELECT - ( + col2 ) * + 59 - col0 AS col0 FROM tab1 AS cor0
----
-3566
-4103
-5715

query I rowsort
SELECT DISTINCT + 19 - col2 * + 89 * 27 * col1 FROM tab0 AS cor0
----
-237878
-504611
-9148202

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8337
SELECT ALL - CAST( NULL AS SIGNED ) - col0 + - col2 / 14 + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8337
SELECT ALL - CAST ( NULL AS INTEGER ) - col0 + - col2 / 14 + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT - - 51 + + COUNT( * ) FROM tab1 WHERE + + 80 IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-8338
SELECT - - 51 + + COUNT ( * ) FROM tab1 WHERE + + 80 IS NULL
----
51

query I rowsort
SELECT 65 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

query I rowsort
SELECT ( 93 ) FROM tab2
----
93
93
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8341
SELECT ALL * FROM tab0 WHERE - - CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8341
SELECT ALL * FROM tab0 WHERE - - CAST ( col0 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8342
SELECT DISTINCT + CAST( 98 AS SIGNED ) FROM tab1 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-8342
SELECT DISTINCT + CAST ( 98 AS INTEGER ) FROM tab1 AS cor0
----
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8343
SELECT + + MAX( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8343
SELECT + + MAX ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT + + 29 * + ( + - COUNT( * ) ) + - + COUNT( * ) * - 51 AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8344
SELECT + + 29 * + ( + - COUNT ( * ) ) + - + COUNT ( * ) * - 51 AS col2 FROM tab1 AS cor0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8345
SELECT DISTINCT + 60 * - col0 + - - col2 * 56 DIV - - 73 FROM tab2 AS cor0
----
-2743
-3810
-4456

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT + 60 * - col0 + - - col2 * 56 / - - 73 FROM tab2 AS cor0
----
-2743
-3810
-4456

query I rowsort
SELECT DISTINCT - 17 * col0 FROM tab0
----
-1479
-1649
-255

query I rowsort
SELECT ALL + col2 * + 9 FROM tab0
----
423
891
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + 96 col1 FROM tab2
----
2208
3840
5568

query II rowsort
SELECT - col2 AS col0, - 73 FROM tab1 WHERE NOT + - col2 IS NULL
----
-59
-73
-68
-73
-96
-73

query I rowsort
SELECT ALL ( + col0 ) - + ( 31 ) / col0 AS col2 FROM tab2 AS cor0 WHERE 86 IS NULL
----

query I rowsort
SELECT DISTINCT + - col0 * - 16 FROM tab1 AS cor0
----
1360
1456
816

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT 30 * - COUNT( * ) AS col0 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-8352
SELECT 30 * - COUNT ( * ) AS col0 FROM tab2
----
-90

query I rowsort
SELECT 42 * + 74 FROM tab2
----
3108
3108
3108

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT ( + 52 ) * - COUNT( * ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8354
SELECT ( + 52 ) * - COUNT ( * ) FROM tab0
----
-156

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT ALL SUM( col1 ) * + 38 FROM tab1
----
2508

skipif mysql # not compatible
query I rowsort label-8356
SELECT ALL SUM ( col1 ) * + 38 FROM tab1
----
2508

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8357
SELECT CAST( + col1 AS SIGNED ) + + col0 AS col2 FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-8357
SELECT CAST ( + col1 AS INTEGER ) + + col0 AS col2 FROM tab2
----
141
142
97

query I rowsort
SELECT - col1 * 32 + + col1 AS col2 FROM tab0
----
-2511
-31
-651

query I rowsort
SELECT DISTINCT 11 * - col0 AS col0 FROM tab1
----
-1001
-561
-935

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8360
SELECT DISTINCT col0 * - CAST( - 93 AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8360
SELECT DISTINCT col0 * - CAST ( - 93 AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT ALL - MIN( DISTINCT + col2 ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8362
SELECT ALL - MIN ( DISTINCT + col2 ) AS col0 FROM tab0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 43 * + 49 col2 FROM tab2
----
-2107

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT - SUM( ALL + col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-8364
SELECT - SUM ( ALL + col2 ) AS col2 FROM tab1
----
-223

query I rowsort
SELECT - col2 + 52 AS col0 FROM tab2
----
-6
12
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8366
SELECT + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE col1 NOT IN ( - 35 + 84 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8366
SELECT + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE col1 NOT IN ( - 35 + 84 )
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8367
SELECT ALL - 14 * + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8367
SELECT ALL - 14 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT + COUNT( * ) FROM tab2 WHERE NOT col1 * col0 BETWEEN NULL AND - 73 - - 29 * - col1
----
3

skipif mysql # not compatible
query I rowsort label-8368
SELECT + COUNT ( * ) FROM tab2 WHERE NOT col1 * col0 BETWEEN NULL AND - 73 - - 29 * - col1
----
3

query I rowsort
SELECT ALL 26 * 91 FROM tab0 WHERE - col2 > + col0 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 WHERE NULL > ( - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 / - col1 + col2 * - 34 IS NULL
----

query I rowsort
SELECT + 15 * col0 FROM tab2
----
1125
690
960

onlyif mysql # aggregate syntax: 
query I rowsort label-8373
SELECT - COUNT( * ) * + 70 FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-8373
SELECT - COUNT ( * ) * + 70 FROM tab1
----
-210

onlyif mysql # DIV for integer division: 
query I rowsort label-8374
SELECT ALL 41 DIV col1 + - col1 FROM tab1
----
-12
-47
3

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL 41 / col1 + - col1 FROM tab1
----
-12
-47
3

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 59 ) IS NOT NULL
----

query I rowsort
SELECT ( col1 ) AS col0 FROM tab0 WHERE NULL NOT IN ( + col1 )
----

query I rowsort
SELECT + 22 * - 5 FROM tab0
----
-110
-110
-110

onlyif mysql # DIV for integer division: 
query I rowsort label-8378
SELECT ALL - 12 + 16 DIV 87 FROM tab2
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL - 12 + 16 / 87 FROM tab2
----
-12
-12
-12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8379
SELECT col0 AS col0 FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) * col1 IS NOT NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8379
SELECT col0 AS col0 FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) * col1 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL col0 + - 12 FROM tab0 cor0 WHERE ( NULL ) < ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT DISTINCT - ( + MIN( - 47 ) ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8381
SELECT DISTINCT - ( + MIN ( - 47 ) ) FROM tab1 AS cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 37 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8383
SELECT ALL - 74 + + col1 DIV - 87 AS col1 FROM tab1 AS cor0
----
-74
-74
-74

skipif mysql # not compatible
query I rowsort label-8383
SELECT ALL - 74 + + col1 / - 87 AS col1 FROM tab1 AS cor0
----
-74
-74
-74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8384
SELECT * FROM tab1 WHERE NOT col0 + + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8384
SELECT * FROM tab1 WHERE NOT col0 + + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT + 94 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT DISTINCT 56 * + col1 FROM tab1 WHERE NULL NOT IN ( - 85 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( ( + col1 ) ) IS NOT NULL
----

query I rowsort
SELECT 67 * col2 AS col0 FROM tab2 cor0
----
1541
2680
3886

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( 44 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - 70 ) NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8391
SELECT + + CAST( NULL AS SIGNED ) * - ( 24 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8391
SELECT + + CAST ( NULL AS INTEGER ) * - ( 24 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT ( col0 * col0 ) IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 15 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col0 ) col2 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8395
SELECT DISTINCT + 7 * + + 72 * COUNT( * ) FROM tab2
----
1512

skipif mysql # not compatible
query I rowsort label-8395
SELECT DISTINCT + 7 * + + 72 * COUNT ( * ) FROM tab2
----
1512

query I rowsort
SELECT - col0 * + - col0 AS col2 FROM tab0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8397
SELECT ALL * FROM tab0 WHERE NOT NULL < + CAST( 23 AS SIGNED ) + + col0
----

skipif mysql # not compatible
query III rowsort label-8397
SELECT ALL * FROM tab0 WHERE NOT NULL < + CAST ( 23 AS INTEGER ) + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8398
SELECT - MIN( ALL - - col2 ) AS col2 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8398
SELECT - MIN ( ALL - - col2 ) AS col2 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT ALL + SUM( DISTINCT + - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-8399
SELECT ALL + SUM ( DISTINCT + - col2 ) FROM tab2
----
-121

query I rowsort
SELECT DISTINCT + 85 FROM tab1 WHERE ( NULL ) >= col1 - 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8401
SELECT MIN( DISTINCT + 6 ) AS col0 FROM tab0 AS cor0 WHERE NOT - 36 * col1 <= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8401
SELECT MIN ( DISTINCT + 6 ) AS col0 FROM tab0 AS cor0 WHERE NOT - 36 * col1 <= col2
----
NULL

query I rowsort
SELECT ALL + 58 + - + 85 + col0 AS col2 FROM tab2 AS cor0
----
19
37
48

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 82 > ( - 30 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 6 * col1 IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab2 WHERE ( NOT ( NULL ) IS NOT NULL )
----
23
40
58

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 * + + col1 = ( + ( 31 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT ALL SUM( ALL - 48 ) FROM tab1 cor0
----
-144

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL SUM ( ALL - 48 ) FROM tab1 cor0
----
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-8408
SELECT ALL + 48 + + COUNT( * ) FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL + 48 + + COUNT ( * ) FROM tab0 AS cor0
----
51

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 18 IS NULL
----

query I rowsort
SELECT - col1 / + col0 AS col2 FROM tab0 AS cor0 WHERE ( col1 ) BETWEEN ( + col2 ) AND NULL
----

query I rowsort
SELECT 40 + AVG ( col0 ) FROM tab1 AS cor0 WHERE 74 * col1 * - col1 IN ( + col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8412
SELECT COUNT( * ), COUNT( * ) * + MAX( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
3
243

skipif mysql # not compatible
query II rowsort label-8412
SELECT COUNT ( * ), COUNT ( * ) * + MAX ( DISTINCT + col1 ) AS col1 FROM tab0 AS cor0
----
3
243

query I rowsort
SELECT col1 AS col0 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col0 * + 90 NOT BETWEEN + col2 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8415
SELECT ALL + col2 + + + CAST( col0 AS SIGNED ) + col0 FROM tab2 AS cor0
----
115
168
208

skipif mysql # not compatible
query I rowsort label-8415
SELECT ALL + col2 + + + CAST ( col0 AS INTEGER ) + col0 FROM tab2 AS cor0
----
115
168
208

onlyif mysql # DIV for integer division: 
query I rowsort label-8416
SELECT ALL - col0 - + col2 - + + col2 + 14 DIV - ( - 20 ) AS col1 FROM tab1 AS cor0
----
-203
-227
-243

skipif mysql # not compatible
query I rowsort label-8416
SELECT ALL - col0 - + col2 - + + col2 + 14 / - ( - 20 ) AS col1 FROM tab1 AS cor0
----
-203
-227
-243

query I rowsort
SELECT 82 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - - col1 + + ( 81 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT ALL MIN( col1 ) AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL MIN ( col1 ) AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT - COUNT( * ) FROM tab2 WHERE ( col1 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8420
SELECT - COUNT ( * ) FROM tab2 WHERE ( col1 ) IS NOT NULL
----
-3

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT ( + - col1 ) > 21 * + col1
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8422
SELECT ALL - col0 DIV - + col1 - + col2 AS col1 FROM tab0
----
-2
-47
-6

skipif mysql # not compatible
query I rowsort label-8422
SELECT ALL - col0 / - + col1 - + col2 AS col1 FROM tab0
----
-2
-47
-6

query I rowsort
SELECT ALL col1 * + ( col0 ) AS col2 FROM tab1
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-8424
SELECT col0 DIV - + col1 - + col0 AS col1 FROM tab0
----
-15
-194
-91

skipif mysql # not compatible
query I rowsort label-8424
SELECT col0 / - + col1 - + col0 AS col1 FROM tab0
----
-15
-194
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8425
SELECT * FROM tab2 AS cor0 WHERE ( 43 ) NOT BETWEEN ( CAST( - col2 AS SIGNED ) ) AND 77
----

skipif mysql # not compatible
query III rowsort label-8425
SELECT * FROM tab2 AS cor0 WHERE ( 43 ) NOT BETWEEN ( CAST ( - col2 AS INTEGER ) ) AND 77
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 + col2 col1 FROM tab0 AS cor0 WHERE NULL >= ( ( + ( - col0 ) ) * col2 + + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8427
SELECT - 84 - 37 AS col0, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-121
3

skipif mysql # not compatible
query II rowsort label-8427
SELECT - 84 - 37 AS col0, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-121
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL < NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT + col2 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN ( + col2 * col1 ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8431
SELECT + col1 DIV + 1 AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8431
SELECT + col1 / + 1 AS col1 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT MIN( ALL + ( + ( col1 ) ) ) FROM tab1 WHERE NOT - 82 * + 1 <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8432
SELECT MIN ( ALL + ( + ( col1 ) ) ) FROM tab1 WHERE NOT - 82 * + 1 <= ( NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 = - col2 * + - 80
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8434
SELECT ALL - 74 * 68 + CAST( - col2 AS SIGNED ) col1 FROM tab0 AS cor0
----
-5042
-5079
-5131

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8434
SELECT ALL - 74 * 68 + CAST ( - col2 AS INTEGER ) col1 FROM tab0 AS cor0
----
-5042
-5079
-5131

query I rowsort
SELECT ALL + + col0 * - 51 FROM tab2 AS cor0
----
-2346
-3264
-3825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8436
SELECT - col2 * CAST( + + ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8436
SELECT - col2 * CAST ( + + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT 22 + col0 AS col1 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) / + + col0 + col0 + 46 IN ( - col1 + + col2 )
----

skipif mysql # not compatible
query I rowsort label-8437
SELECT 22 + col0 AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) / + + col0 + col0 + 46 IN ( - col1 + + col2 )
----

query I rowsort
SELECT + 15 * 8 AS col0 FROM tab2 AS cor0
----
120
120
120

query I rowsort
SELECT - col2 + col2 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT - 92 IN ( + col0 * - col1 )
----
1560
3306
506

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8440
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN - CAST( NULL AS SIGNED ) / CAST( + 61 AS SIGNED ) + - 5 AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-8440
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 BETWEEN - CAST ( NULL AS INTEGER ) / CAST ( + 61 AS INTEGER ) + - 5 AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8442
SELECT ALL - COUNT( * ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL - COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT DISTINCT ( ( COUNT( * ) ) ) AS col2 FROM tab2 WHERE NOT - col1 - - - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8443
SELECT DISTINCT ( ( COUNT ( * ) ) ) AS col2 FROM tab2 WHERE NOT - col1 - - - col2 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT - COUNT( * ) col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8444
SELECT - COUNT ( * ) col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT ALL + COUNT( * ) - - + ( 77 ) AS col1 FROM tab1, tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-8445
SELECT ALL + COUNT ( * ) - - + ( 77 ) AS col1 FROM tab1, tab2 AS cor0
----
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8446
SELECT CAST( NULL AS SIGNED ) AS col1, + 14 col0 FROM tab2
----
NULL
14
NULL
14
NULL
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8446
SELECT CAST ( NULL AS INTEGER ) AS col1, + 14 col0 FROM tab2
----
NULL
14
NULL
14
NULL
14

query II rowsort
SELECT 80, col0 FROM tab0
----
80
15
80
87
80
97

query II rowsort
SELECT col2 AS col1, ( col2 ) * + + col0 + + - col2 AS col0 FROM tab0
----
10
860
47
658
99
9504

query I rowsort
SELECT DISTINCT 58 * + + 53 FROM tab1 AS cor0
----
3074

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT MIN( - - 42 ) AS col0 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-8450
SELECT MIN ( - - 42 ) AS col0 FROM tab0
----
42

query II rowsort
SELECT 69 * - + 37, + 82 AS col0 FROM tab2
----
-2553
82
-2553
82
-2553
82

query I rowsort
SELECT + - col2 + + 84 FROM tab1 WHERE + 93 + + 7 < - 45
----

query I rowsort
SELECT DISTINCT - 66 * - 20 AS col2 FROM tab0 AS cor0
----
1320

query II rowsort
SELECT ALL 2 + - 53 AS col1, - 33 AS col1 FROM tab1 AS cor0
----
-51
-33
-51
-33
-51
-33

query I rowsort
SELECT DISTINCT + 50 * + + 69 + col0 + - 4 AS col1 FROM tab1 cor0
----
3497
3531
3537

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 18 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8457
SELECT COUNT( * ), + COUNT( * ) FROM tab2 WHERE NOT + col0 IS NULL OR NOT ( NULL IS NOT NULL )
----
3
3

skipif mysql # not compatible
query II rowsort label-8457
SELECT COUNT ( * ), + COUNT ( * ) FROM tab2 WHERE NOT + col0 IS NULL OR NOT ( NULL IS NOT NULL )
----
3
3

query III rowsort
SELECT * FROM tab2 WHERE 37 < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + - col1 - - + ( - 33 ) * + col2 FROM tab2
----
-1461
-2056
-856

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT + COUNT( * ) + + 75 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-8460
SELECT + COUNT ( * ) + + 75 FROM tab2
----
78

query I rowsort
SELECT ALL 48 * - col2 FROM tab2 WHERE NOT col1 * - 53 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8462
SELECT DISTINCT - 63 * ( + COUNT( DISTINCT - col2 ) ) - + - ( - 44 ) + + - 90 AS col0 FROM tab0
----
-323

skipif mysql # not compatible
query I rowsort label-8462
SELECT DISTINCT - 63 * ( + COUNT ( DISTINCT - col2 ) ) - + - ( - 44 ) + + - 90 AS col0 FROM tab0
----
-323

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, col0 + - col2 * ( + col1 ) * - ( 28 ) FROM tab0 AS cor0
----
15
106611
87
5967
97
2869

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 - - - ( - + col0 ) IS NULL
----

query I rowsort
SELECT - col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8466
SELECT CAST( NULL AS SIGNED ) * - 53 col1 FROM tab0 AS cor0 WHERE NOT + col1 * + col2 + + + col1 NOT IN ( - + 46 + + col2 + - - 73 * - - 81 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8466
SELECT CAST ( NULL AS INTEGER ) * - 53 col1 FROM tab0 AS cor0 WHERE NOT + col1 * + col2 + + + col1 NOT IN ( - + 46 + + col2 + - - 73 * - - 81 )
----

query I rowsort
SELECT + col1 * + col0 * + col1 AS col0 FROM tab2 AS cor0
----
119646
336675
379456

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * + col1 >= - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT ALL + MAX( + + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL + MAX ( + + col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT - col1 + - + 23 * - col0 AS col0 FROM tab1
----
1159
1950
2046

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT + MAX( - ( col2 ) ) + - + 66 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-8471
SELECT + MAX ( - ( col2 ) ) + - + 66 FROM tab2
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT - 66 + COUNT( * ) col1 FROM tab2
----
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8472
SELECT - 66 + COUNT ( * ) col1 FROM tab2
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 col0, col1 FROM tab2 WHERE NOT - col2 + + col2 BETWEEN NULL AND - + col0
----
23
51
40
77
58
67

query II rowsort
SELECT DISTINCT col2, - 6 + + 3 + col2 AS col1 FROM tab2
----
23
20
40
37
58
55

query I rowsort
SELECT DISTINCT + ( + 34 ) AS col0 FROM tab1
----
34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8476
SELECT ALL 39 + + 62 + col0 + - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL = 50 + - col2
----

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL 39 + + 62 + col0 + - CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NULL = 50 + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 54 * - col1 + - col1 col0 FROM tab1 AS cor0
----
2491
265
742

query I rowsort
SELECT DISTINCT + 99 + - 84 + + 4 AS col2 FROM tab1 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT DISTINCT - + MAX( + - 75 ) + - 58 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-8479
SELECT DISTINCT - + MAX ( + - 75 ) + - 58 FROM tab1 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT + + 32 * - COUNT( * ) + + 8 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-280

skipif mysql # not compatible
query I rowsort label-8480
SELECT + + 32 * - COUNT ( * ) + + 8 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-280

query I rowsort
SELECT - 9 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

query III rowsort
SELECT * FROM tab1 WHERE - - col0 + + 35 NOT IN ( + + 86, + col1 )
----
85
5
59
91
47
68

query I rowsort
SELECT + 86 + + + col1 AS col2 FROM tab1 AS cor0
----
100
133
91

query I rowsort
SELECT ALL - col2 * - + col0 + + col2 FROM tab0 AS cor0
----
752
880
9702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8485
SELECT - + col0 + - col0 * + col0 * + col2 * - 98 AS col2 FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) * - col2 * + CAST( - col0 AS SIGNED ) + - col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8485
SELECT - + col0 + - col0 * + col0 * + col2 * - 98 AS col2 FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) * - col2 * + CAST ( - col0 AS INTEGER ) + - col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 54 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8487
SELECT - 71, ( + ( - COUNT( * ) ) ) col1 FROM tab1 AS cor0
----
-71
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8487
SELECT - 71, ( + ( - COUNT ( * ) ) ) col1 FROM tab1 AS cor0
----
-71
-3

query II rowsort
SELECT DISTINCT + - 49 + col2 AS col0, - col1 FROM tab2 AS cor0
----
-26
-51
-9
-77
9
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8489
SELECT ALL CAST( NULL AS SIGNED ) / ( col1 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8489
SELECT ALL CAST ( NULL AS INTEGER ) / ( col1 ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8490
SELECT ALL - - ( COUNT( * ) ) FROM tab0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8490
SELECT ALL - - ( COUNT ( * ) ) FROM tab0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT - COUNT( * ) - + 60 FROM tab0, tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-8491
SELECT - COUNT ( * ) - + 60 FROM tab0, tab1 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-8492
SELECT DISTINCT + COUNT( col0 ) + - COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8492
SELECT DISTINCT + COUNT ( col0 ) + - COUNT ( * ) AS col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 11 * col2 AS col1 FROM tab2
----
253
440
638

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT COUNT( * ) * + 54 AS col2 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-8494
SELECT COUNT ( * ) * + 54 AS col2 FROM tab0
----
162

query I rowsort
SELECT DISTINCT - ( + 49 ) AS col1 FROM tab2
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-8496
SELECT DISTINCT - 88 DIV col2 AS col2 FROM tab0 cor0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-8496
SELECT DISTINCT - 88 / col2 AS col2 FROM tab0 cor0
----
-1
-8
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT + - 49 * - MIN( DISTINCT col0 ) FROM tab0 AS cor0
----
735

skipif mysql # not compatible
query I rowsort label-8497
SELECT + - 49 * - MIN ( DISTINCT col0 ) FROM tab0 AS cor0
----
735

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 62 ) col1 FROM tab0 AS cor0
----
62
62
62

query I rowsort
SELECT + - 25 * 40 - + 56 FROM tab1 cor0
----
-1056
-1056
-1056

query II rowsort
SELECT col0, - col0 + - col0 + col1 + - + 58 AS col2 FROM tab0 AS cor0
----
15
-7
87
-211
97
-251

onlyif mysql # aggregate syntax: 
query I rowsort label-8501
SELECT ALL COUNT( ALL col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8501
SELECT ALL COUNT ( ALL col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8502
SELECT ALL - - col1 * - col1 FROM tab1 cor0 WHERE NOT CAST( 68 AS SIGNED ) * 60 > NULL
----

skipif mysql # not compatible
query I rowsort label-8502
SELECT ALL - - col1 * - col1 FROM tab1 cor0 WHERE NOT CAST ( 68 AS INTEGER ) * 60 > NULL
----

query I rowsort
SELECT + col0 * + - col2 + - col2 * - 51 AS col1 FROM tab1 cor0
----
-2006
-2720
0

query I rowsort
SELECT DISTINCT + - 85 AS col1 FROM tab0 AS cor0
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT ALL + ( - ( + ( SUM( ALL + 18 ) ) ) ) AS col0 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL + ( - ( + ( SUM ( ALL + 18 ) ) ) ) AS col0 FROM tab0 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT DISTINCT + COUNT( * ) * + 13 AS col0 FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-8506
SELECT DISTINCT + COUNT ( * ) * + 13 AS col0 FROM tab2
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT ( - + MAX( + col0 ) ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8507
SELECT ( - + MAX ( + col0 ) ) AS col1 FROM tab2
----
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8508
SELECT AVG ( ALL - CAST( NULL AS DECIMAL ) ) + - + 72 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8508
SELECT AVG ( ALL - CAST ( NULL AS REAL ) ) + - + 72 FROM tab2
----
NULL

query I rowsort
SELECT - 29 - - col1 FROM tab1 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8510
SELECT - 35 + - + CAST( + col0 AS SIGNED ) FROM tab2
----
-110
-81
-99

skipif mysql # not compatible
query I rowsort label-8510
SELECT - 35 + - + CAST ( + col0 AS INTEGER ) FROM tab2
----
-110
-81
-99

query I rowsort
SELECT ALL + + 83 FROM tab2 AS cor0 WHERE NOT col2 + - + 78 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT ALL MIN( ALL + - col0 ) - - MIN( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
-196

skipif mysql # not compatible
query I rowsort label-8512
SELECT ALL MIN ( ALL + - col0 ) - - MIN ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-8513
SELECT DISTINCT COUNT( * ) * + + 33 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8513
SELECT DISTINCT COUNT ( * ) * + + 33 FROM tab0
----
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 56 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT DISTINCT COUNT( DISTINCT 3 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8515
SELECT DISTINCT COUNT ( DISTINCT 3 ) AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT ( - + col2 ) * + col1 + col2 AS col0 FROM tab1 AS cor0
----
-1248
-236
-3128

query II rowsort
SELECT DISTINCT col1 AS col2, ( + + col1 ) FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8518
SELECT - + CAST( NULL AS DECIMAL ) + + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8518
SELECT - + CAST ( NULL AS REAL ) + + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT DISTINCT + + 80 * - ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT + + 80 * - ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT ALL COUNT( ALL + 2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL COUNT ( ALL + 2 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT ALL + COUNT( * ) * + + 76 AS col0 FROM tab2 cor0
----
228

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL + COUNT ( * ) * + + 76 AS col0 FROM tab2 cor0
----
228

onlyif mysql # DIV for integer division: 
query I rowsort label-8522
SELECT + + 63 DIV - + col1 FROM tab1 AS cor0
----
-1
-12
-4

skipif mysql # not compatible
query I rowsort label-8522
SELECT + + 63 / - + col1 FROM tab1 AS cor0
----
-1
-12
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8523
SELECT DISTINCT SUM( DISTINCT - - ( - - col0 ) ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-8523
SELECT DISTINCT SUM ( DISTINCT - - ( - - col0 ) ) FROM tab2 AS cor0
----
185

query III rowsort
SELECT * FROM tab1 WHERE NOT 9 * + - 22 NOT BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8525
SELECT AVG ( + col1 ) + + 71 + - - COUNT( * ) AS col0 FROM tab2 WHERE NOT + col2 NOT BETWEEN - + CAST( NULL AS SIGNED ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8525
SELECT AVG ( + col1 ) + + 71 + - - COUNT ( * ) AS col0 FROM tab2 WHERE NOT + col2 NOT BETWEEN - + CAST ( NULL AS INTEGER ) AND NULL
----
NULL

query II rowsort
SELECT col0, 47 + - col1 AS col2 FROM tab0
----
15
-34
87
26
97
46

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab2 WHERE NULL IS NULL
----
46
64
75

query II rowsort
SELECT DISTINCT - col2, 82 AS col2 FROM tab2
----
-23
82
-40
82
-58
82

onlyif mysql # aggregate syntax: 
query II rowsort label-8529
SELECT MAX( - col0 ), 52 AS col0 FROM tab2
----
-46
52

skipif mysql # not compatible
query II rowsort label-8529
SELECT MAX ( - col0 ), 52 AS col0 FROM tab2
----
-46
52

query II rowsort
SELECT 20, col0 FROM tab2
----
20
46
20
64
20
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8531
SELECT - ( col2 ) * + col0 + - col0 - col2 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( + col1, 70 + - col2, - + CAST( ( + 33 ) AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8531
SELECT - ( col2 ) * + col0 + - col0 - col2 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( + col1, 70 + - col2, - + CAST ( ( + 33 ) AS INTEGER ) )
----

query II rowsort
SELECT col2, 32 FROM tab1
----
59
32
68
32
96
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * - col2 col0 FROM tab2 AS cor0 WHERE 55 IS NOT NULL
----
-1600
-3364
-529

onlyif mysql # DIV for integer division: 
query I rowsort label-8534
SELECT + - col0 DIV 69 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8534
SELECT + - col0 / 69 AS col2 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL + 49 * + col2 * + 31 FROM tab0 AS cor0
----
150381
15190
71393

onlyif mysql # aggregate syntax: 
query I rowsort label-8536
SELECT - - MAX( - 34 ) FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
-34

skipif mysql # not compatible
query I rowsort label-8536
SELECT - - MAX ( - 34 ) FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
-34

query I rowsort
SELECT ALL - + 90 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * - 53 IS NULL
----

query II rowsort
SELECT + + col0 + - 67 AS col1, 43 FROM tab1 AS cor0
----
-16
43
18
43
24
43

query I rowsort
SELECT DISTINCT - 80 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - 89 + - 82 AS col1 FROM tab2 AS cor0
----
-171
-171
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8542
SELECT + + CAST( NULL AS SIGNED ) + - COUNT( DISTINCT 90 ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8542
SELECT + + CAST ( NULL AS INTEGER ) + - COUNT ( DISTINCT 90 ) AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT col1, 72 * - col1 / + ( + - col1 ) AS col2 FROM tab2 AS cor0 WHERE - ( + ( col1 ) ) = NULL
----

query I rowsort
SELECT DISTINCT - 2 + - 4 FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT DISTINCT MAX( DISTINCT + col2 ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-8545
SELECT DISTINCT MAX ( DISTINCT + col2 ) AS col2 FROM tab2
----
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 / - - col2 > ( - col0 * + 33 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8547
SELECT 82 DIV + + COUNT( col0 ) AS col0 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-8547
SELECT 82 / + + COUNT ( col0 ) AS col0 FROM tab2
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8548
SELECT * FROM tab2 AS cor0 WHERE 32 + - CAST( + 34 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8548
SELECT * FROM tab2 AS cor0 WHERE 32 + - CAST ( + 34 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8549
SELECT ALL - CAST( NULL AS DECIMAL ) + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8549
SELECT ALL - CAST ( NULL AS REAL ) + + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 0 - + + col0 + - - 29 AS col2, + 18 FROM tab1 cor0
----
-22
18
-56
18
-62
18

query I rowsort
SELECT ALL - 39 AS col0 FROM tab0 cor0
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8552
SELECT + + MAX( DISTINCT - 40 ) FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-8552
SELECT + + MAX ( DISTINCT - 40 ) FROM tab1 AS cor0
----
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 86 col2 FROM tab1 AS cor0
----
-4386
-7310
-7826

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT DISTINCT - COUNT( ( - + col2 ) ) * COUNT( DISTINCT + col1 ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT - COUNT ( ( - + col2 ) ) * COUNT ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8555
SELECT COUNT( * ) * - 52 FROM tab1 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-8555
SELECT COUNT ( * ) * - 52 FROM tab1 AS cor0
----
-156

query I rowsort
SELECT DISTINCT + ( - ( col1 ) ) * - 23 AS col2 FROM tab2
----
1173
1541
1771

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 * - 57 - col1 = + 96
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 * - - col1 col1 FROM tab0
----
1764
6804
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8559
SELECT DISTINCT + CAST( SUM( col0 ) AS SIGNED ) col1 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8559
SELECT DISTINCT + CAST ( SUM ( col0 ) AS INTEGER ) col1 FROM tab2
----
185

query I rowsort
SELECT + col0 * - col1 - 99 AS col0 FROM tab0 cor0
----
-1314
-1926
-196

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON ( 3 ) <> NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

query II rowsort
SELECT DISTINCT 70 AS col0, col1 AS col1 FROM tab2
----
70
51
70
67
70
77

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( col1 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT ALL - MAX( DISTINCT - - 41 ) * - + COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
369

skipif mysql # not compatible
query I rowsort label-8565
SELECT ALL - MAX ( DISTINCT - - 41 ) * - + COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
369

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 51 * 1 col2 FROM tab0
----
51

query I rowsort
SELECT DISTINCT + + 49 * - col1 + 96 - - + col0 * + col0 * - + 6 AS col0 FROM tab0 AS cor0
----
-46347
-5223
-56407

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT DISTINCT COUNT( * ) * + SUM( col0 ) + - - 60 FROM tab0 cor0
----
657

skipif mysql # not compatible
query I rowsort label-8568
SELECT DISTINCT COUNT ( * ) * + SUM ( col0 ) + - - 60 FROM tab0 cor0
----
657

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8569
SELECT * FROM tab1 AS cor0 WHERE - ( + CAST( - - ( - col2 ) AS SIGNED ) ) * + col0 * - col0 * + 72 + + + 53 IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-8569
SELECT * FROM tab1 AS cor0 WHERE - ( + CAST ( - - ( - col2 ) AS INTEGER ) ) * + col0 * - col0 * + 72 + + + 53 IN ( col1 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 - + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < - 50 AND NOT ( NULL ) IN ( + col2, - col0 )
----

query I rowsort
SELECT ALL + 53 * + 23 + col2 FROM tab1
----
1278
1287
1315

query I rowsort
SELECT ALL - ( - 80 ) FROM tab0
----
80
80
80

query I rowsort
SELECT + + col1 AS col0 FROM tab2 WHERE - + 51 * + col0 * + col0 * - col1 + col1 IS NOT NULL
----
51
67
77

query I rowsort
SELECT + col1 * - col2 + + col1 AS col1 FROM tab0
----
-189
-3726
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8576
SELECT DISTINCT + col2 * - - CAST( col1 AS SIGNED ) - + col2 AS col2 FROM tab0
----
0
200
3760

skipif mysql # not compatible
query I rowsort label-8576
SELECT DISTINCT + col2 * - - CAST ( col1 AS INTEGER ) - + col2 AS col2 FROM tab0
----
0
200
3760

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 49 = + col2 * - 19 + 54 * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 + - col1 + col1 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8579
SELECT - + CAST( NULL AS SIGNED ) + + - COUNT( * ) * + COUNT( * ) col0, 2 + + + ( + + 33 ) AS col1 FROM tab1 AS cor0 WHERE - CAST( NULL AS DECIMAL ) + - 19 / - col0 * - - 66 BETWEEN col0 AND + - 83
----
NULL
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8579
SELECT - + CAST ( NULL AS INTEGER ) + + - COUNT ( * ) * + COUNT ( * ) col0, 2 + + + ( + + 33 ) AS col1 FROM tab1 AS cor0 WHERE - CAST ( NULL AS REAL ) + - 19 / - col0 * - - 66 BETWEEN col0 AND + - 83
----
NULL
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT 50 - - COUNT( * ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-8580
SELECT 50 - - COUNT ( * ) FROM tab2
----
53

query I rowsort
SELECT DISTINCT - ( + col0 ) - col2 FROM tab1
----
-144
-147
-159

query II rowsort
SELECT - 60, 68 AS col0 FROM tab0
----
-60
68
-60
68
-60
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT - COUNT( * ) * + 54 FROM tab2
----
-162

skipif mysql # not compatible
query I rowsort label-8583
SELECT - COUNT ( * ) * + 54 FROM tab2
----
-162

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 89 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 * - col2 IN ( + col0 * + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 col2 FROM tab0 cor0
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 90, 44 col1 FROM tab2 cor0 WHERE NOT ( NULL ) <> + col1
----

query I rowsort
SELECT ALL + 33 AS col0 FROM tab2 cor0
----
33
33
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8589
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8589
SELECT DISTINCT col0 AS col1 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8590
SELECT DISTINCT + CAST( + - col1 AS SIGNED ) AS col0 FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8590
SELECT DISTINCT + CAST ( + - col1 AS INTEGER ) AS col0 FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT DISTINCT - COUNT( 28 ) col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8591
SELECT DISTINCT - COUNT ( 28 ) col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL 27 * + col2 FROM tab1
----
1593
1836
2592

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - ( - - col2 ) IS NULL
----

query I rowsort
SELECT + col2 * + + 86 AS col0 FROM tab1
----
5074
5848
8256

query I rowsort
SELECT - ( 40 ) AS col1 FROM tab2
----
-40
-40
-40

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8597
SELECT - ( - 98 ) AS col1, COUNT( * ) FROM tab2
----
98
3

skipif mysql # not compatible
query II rowsort label-8597
SELECT - ( - 98 ) AS col1, COUNT ( * ) FROM tab2
----
98
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT ALL - SUM( + + 38 ) AS col1 FROM tab1
----
-114

skipif mysql # not compatible
query I rowsort label-8598
SELECT ALL - SUM ( + + 38 ) AS col1 FROM tab1
----
-114

query I rowsort
SELECT DISTINCT - 1 FROM tab1 WHERE NULL NOT IN ( col1, - col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8600
SELECT + MIN( - col2 ) + - - COUNT( * ) AS col0, 69 AS col1 FROM tab0 AS cor0
----
-96
69

skipif mysql # not compatible
query II rowsort label-8600
SELECT + MIN ( - col2 ) + - - COUNT ( * ) AS col0, 69 AS col1 FROM tab0 AS cor0
----
-96
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8601
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NOT col2 / - + 74 = - col0
----
3

skipif mysql # not compatible
query I rowsort label-8601
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col2 / - + 74 = - col0
----
3

query I rowsort
SELECT DISTINCT ( - + 86 ) FROM tab2 AS cor0 WHERE + 93 = col0 / - 65
----

query I rowsort
SELECT - 5 + + 11 FROM tab0 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT - - COUNT( * ) + + - 29 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-26

skipif mysql # not compatible
query I rowsort label-8604
SELECT - - COUNT ( * ) + + - 29 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-26

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab2 AS cor0 WHERE ( NOT NULL BETWEEN + + col2 * col1 AND 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8606
SELECT ALL COUNT( * ) + - + 29 * - COUNT( * ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-8606
SELECT ALL COUNT ( * ) + - + 29 * - COUNT ( * ) FROM tab0
----
90

query II rowsort
SELECT + col2 AS col0, - col1 FROM tab0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT DISTINCT - col2 * + - 98 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
5782
6664
9408

query I rowsort
SELECT ALL + 99 + + col0 - + - col2 FROM tab1 cor0
----
243
246
258

onlyif mysql # aggregate syntax: 
query I rowsort label-8610
SELECT - 46 - - - COUNT( * ) FROM tab2 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-8610
SELECT - 46 - - - COUNT ( * ) FROM tab2 AS cor0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8611
SELECT - - col1 * - CAST( NULL AS SIGNED ) + 40 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8611
SELECT - - col1 * - CAST ( NULL AS INTEGER ) + 40 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 7 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query IIIIII rowsort
SELECT * FROM tab2, tab0 AS cor0 WHERE + 47 = NULL
----

query II rowsort
SELECT DISTINCT 12, - col0 AS col2 FROM tab2
----
12
-46
12
-64
12
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT MAX( + 65 ) AS col1 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-8616
SELECT MAX ( + 65 ) AS col1 FROM tab1
----
65

query I rowsort
SELECT ALL ( + ( + + 65 ) ) FROM tab0
----
65
65
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - col2 col1 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8619
SELECT DISTINCT col1 AS col2, + CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
14
96
47
68
5
59

skipif mysql # not compatible
query II rowsort label-8619
SELECT DISTINCT col1 AS col2, + CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT ALL - + col2 * + 24 + 67 * + - col1 AS col2 FROM tab0 AS cor0
----
-1647
-2443
-6555

onlyif mysql # aggregate syntax: 
query I rowsort label-8621
SELECT - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 47 IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-8621
SELECT - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 47 IS NULL
----
-9

query I rowsort
SELECT DISTINCT - 4 * - 28 FROM tab1
----
112

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8623
SELECT DISTINCT col0 * CAST( NULL AS SIGNED ) AS col0, col2 + + col0 * + ( + + 7 ) * - - 70 AS col2 FROM tab1
----
NULL
25086
NULL
41709
NULL
44658

skipif mysql # not compatible
query II rowsort label-8623
SELECT DISTINCT col0 * CAST ( NULL AS INTEGER ) AS col0, col2 + + col0 * + ( + + 7 ) * - - 70 AS col2 FROM tab1
----
NULL
25086
NULL
41709
NULL
44658

query I rowsort
SELECT - ( + col2 ) * - 81 AS col2 FROM tab2 AS cor0
----
1863
3240
4698

onlyif mysql # aggregate syntax: 
query I rowsort label-8625
SELECT DISTINCT + 22 * + - SUM( + 9 ) FROM tab1 AS cor0
----
-594

skipif mysql # not compatible
query I rowsort label-8625
SELECT DISTINCT + 22 * + - SUM ( + 9 ) FROM tab1 AS cor0
----
-594

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8626
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8626
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8627
SELECT ALL + col2 + + - ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8627
SELECT ALL + col2 + + - ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NOT - ( + col1 ) * + col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + col2 + - + col1 * col0 AS col1 FROM tab1
----
-1081
-130
630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 * 74 * + col2 col2 FROM tab1
----
270692
311984
440448

query I rowsort
SELECT DISTINCT - col2 - - 79 FROM tab2
----
21
39
56

onlyif mysql # aggregate syntax: 
query II rowsort label-8632
SELECT - COUNT( * ) AS col1, - 34 AS col0 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-3
-34

skipif mysql # not compatible
query II rowsort label-8632
SELECT - COUNT ( * ) AS col1, - 34 AS col0 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-3
-34

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 + + + ( col2 ) + - col0 * - 88 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8634
SELECT ALL + COUNT( DISTINCT + col2 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8634
SELECT ALL + COUNT ( DISTINCT + col2 ) AS col0 FROM tab2 cor0
----
3

query I rowsort
SELECT - 9 * - - col0 FROM tab2 AS cor0
----
-414
-576
-675

query I rowsort
SELECT ALL - ( - 63 ) * + 43 FROM tab2
----
2709
2709
2709

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8637
SELECT DISTINCT - CAST( col0 AS SIGNED ), col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

skipif mysql # not compatible
query II rowsort label-8637
SELECT DISTINCT - CAST ( col0 AS INTEGER ), col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8638
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 19 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8638
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 19 IS NOT NULL
----

query II rowsort
SELECT - + 26 AS col1, - col2 - - col2 AS col1 FROM tab0 cor0
----
-26
0
-26
0
-26
0

query I rowsort
SELECT DISTINCT - col0 * - 55 FROM tab0 AS cor0 WHERE NOT + 43 >= - + 58 + + ( + col1 ) * - col1
----

query I rowsort
SELECT 19 * - col1 + + col1 AS col1 FROM tab0
----
-1458
-18
-378

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8642
SELECT - 20 + + - CAST( NULL AS DECIMAL ) + SUM( + 7 ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8642
SELECT - 20 + + - CAST ( NULL AS REAL ) + SUM ( + 7 ) col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8643
SELECT DISTINCT + ( + - col0 ) DIV col1 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-8643
SELECT DISTINCT + ( + - col0 ) / col1 FROM tab2
----
-1
0

query I rowsort
SELECT + col2 + - - col2 FROM tab2
----
116
46
80

onlyif mysql # aggregate syntax: 
query I rowsort label-8645
SELECT ALL COUNT( * ) * + - ( MIN( + 15 ) ) AS col0 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-8645
SELECT ALL COUNT ( * ) * + - ( MIN ( + 15 ) ) AS col0 FROM tab0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT - 66 * COUNT( * ) FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-8646
SELECT - 66 * COUNT ( * ) FROM tab1
----
-198

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col0 col0 FROM tab0 WHERE NOT + - col0 IS NULL
----
705
870
9603

query II rowsort
SELECT + ( + col1 ), + col0 AS col0 FROM tab2
----
51
46
67
75
77
64

query III rowsort
SELECT * FROM tab2 WHERE NOT + - ( - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8651
SELECT MIN( DISTINCT - 40 ) FROM tab0 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-8651
SELECT MIN ( DISTINCT - 40 ) FROM tab0 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8652
SELECT COUNT( + 59 ) + + 68 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-8652
SELECT COUNT ( + 59 ) + + 68 FROM tab0
----
71

query III rowsort
SELECT * FROM tab2 WHERE col1 * + col2 IS NULL
----

query I rowsort
SELECT ALL - - ( + - 70 ) * - 97 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c26ab5b67006bbe3ba57ff1f493c31f4

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8655
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( ( + col2 ) AS SIGNED ) >= - - 3
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8655
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( ( + col2 ) AS INTEGER ) >= - - 3
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8656
SELECT DISTINCT - COUNT( ALL + - col0 ) + + - 39 AS col0 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-8656
SELECT DISTINCT - COUNT ( ALL + - col0 ) + + - 39 AS col0 FROM tab1 AS cor0
----
-42

query I rowsort
SELECT ALL 85 * col0 + - 29 AS col2 FROM tab0 AS cor0
----
1246
7366
8216

query I rowsort
SELECT + - 46 * + + col0 FROM tab1 AS cor0
----
-2346
-3910
-4186

query II rowsort
SELECT col1 AS col2, - col0 FROM tab2 AS cor0
----
51
-46
67
-75
77
-64

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 = 54
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - + 14 + + 13 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-127
-1373
-645

query I rowsort
SELECT ALL 59 - 98 - 32 + + col0 FROM tab0
----
-56
16
26

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8664
SELECT + - col1 * + 88 + + + col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + + col0 * - CAST( + col1 AS DECIMAL ) * - - col0 / - + col1
----

skipif mysql # not compatible
query I rowsort label-8664
SELECT + - col1 * + 88 + + + col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + + col0 * - CAST ( + col1 AS REAL ) * - - col0 / - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8665
SELECT ALL SUM( col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-8665
SELECT ALL SUM ( col1 ) AS col0 FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT + 80 * + col2 FROM tab2 AS cor0
----
1840
3200
4640

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT - COUNT( DISTINCT - 60 ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8667
SELECT - COUNT ( DISTINCT - 60 ) FROM tab1 cor0
----
-1

query I rowsort
SELECT ALL - ( - - col2 ) AS col2 FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT ALL - col0 * + 31 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( NULL ) = NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8671
SELECT * FROM tab0 WHERE NOT - col0 * col0 + - + col2 BETWEEN col1 * ( - 89 ) / + + CAST( + col1 AS SIGNED ) + - ( 35 ) * + col2 + 53 AND NULL
----
87
21
10
97
1
99

skipif mysql # not compatible
query III rowsort label-8671
SELECT * FROM tab0 WHERE NOT - col0 * col0 + - + col2 BETWEEN col1 * ( - 89 ) / + + CAST ( + col1 AS INTEGER ) + - ( 35 ) * + col2 + 53 AND NULL
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8672
SELECT DISTINCT - CAST( NULL AS DECIMAL ) / col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8672
SELECT DISTINCT - CAST ( NULL AS REAL ) / col0 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + 95 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT ( - ( - COUNT( * ) ) ) * + 91 * + COUNT( * ) FROM tab1
----
819

skipif mysql # not compatible
query I rowsort label-8674
SELECT ( - ( - COUNT ( * ) ) ) * + 91 * + COUNT ( * ) FROM tab1
----
819

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8675
SELECT CAST( NULL AS SIGNED ) / + - 31 * + col1 + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8675
SELECT CAST ( NULL AS INTEGER ) / + - 31 * + col1 + col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8676
SELECT 3 + 7 * CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8676
SELECT 3 + 7 * CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 + + - col1 col1, + 99 AS col0 FROM tab1 AS cor0
----
-10
99
-28
99
-94
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8678
SELECT + 86 + COUNT( * ) FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-8678
SELECT + 86 + COUNT ( * ) FROM tab1 AS cor0
----
89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8679
SELECT + - SUM( ALL col0 ) DIV + 37 - - 18 - SUM( ALL col1 ) FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-8679
SELECT + - SUM ( ALL col0 ) / + 37 - - 18 - SUM ( ALL col1 ) FROM tab1 AS cor0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8680
SELECT + - 22 - + 24 + - - CAST( + + col1 AS SIGNED ) FROM tab2 AS cor0
----
21
31
5

skipif mysql # not compatible
query I rowsort label-8680
SELECT + - 22 - + 24 + - - CAST ( + + col1 AS INTEGER ) FROM tab2 AS cor0
----
21
31
5

query I rowsort
SELECT + + col1 - col2 - col1 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

query II rowsort
SELECT + 32 - - ( + 21 ) + + col2 + + col0 AS col2, 22 AS col2 FROM tab2 AS cor0
----
122
22
157
22
186
22

query I rowsort
SELECT DISTINCT - + col0 + - 16 + - - col1 + - col2 AS col2 FROM tab0 cor0
----
-211
-92
3

query II rowsort
SELECT DISTINCT + col0 * - 19 + col1 AS col2, + col2 AS col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-1139
40
-1358
58
-823
23

query I rowsort
SELECT ALL + + 67 + - col1 + 33 * col2 * - 92 + - 24 AS col0 FROM tab1 AS cor0
----
-179086
-206452
-291427

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * - ( - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + 96 + + col1 + - col0 * + col0, + col2 * + col1 * - ( - 94 ) )
----

query I rowsort
SELECT ( + 20 ) FROM tab2
----
20
20
20

query II rowsort
SELECT col2 AS col2, col2 AS col1 FROM tab1
----
59
59
68
68
96
96

query I rowsort
SELECT + ( 29 ) AS col0 FROM tab0
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT DISTINCT + MIN( - + 83 ) FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-8691
SELECT DISTINCT + MIN ( - + 83 ) FROM tab1
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8692
SELECT ALL + ( + CAST( AVG ( DISTINCT + + 9 ) AS SIGNED ) ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8692
SELECT ALL + ( + CAST ( AVG ( DISTINCT + + 9 ) AS INTEGER ) ) FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT + COUNT( * ) * MAX( + col2 ) - + ( + - 21 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-8693
SELECT + COUNT ( * ) * MAX ( + col2 ) - + ( + - 21 ) FROM tab2 AS cor0
----
195

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-8694
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-8694
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + CAST ( NULL AS REAL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 / ( + 48 ) * col2 >= - col0 - + + col1 + + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8696
SELECT DISTINCT - CAST( + + 41 AS SIGNED ) * - col0 FROM tab0 cor0
----
3567
3977
615

skipif mysql # not compatible
query I rowsort label-8696
SELECT DISTINCT - CAST ( + + 41 AS INTEGER ) * - col0 FROM tab0 cor0
----
3567
3977
615

onlyif mysql # aggregate syntax: 
query II rowsort label-8697
SELECT DISTINCT - 50 + + - COUNT( * ), MIN( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-53
-47

skipif mysql # not compatible
query II rowsort label-8697
SELECT DISTINCT - 50 + + - COUNT ( * ), MIN ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
-53
-47

query I rowsort
SELECT ALL 56 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
56
56
56

query II rowsort
SELECT DISTINCT col2 AS col1, col1 AS col2 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT 68 + col2 FROM tab2
----
108
126
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8701
SELECT COUNT( * ) DIV 31 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8701
SELECT COUNT ( * ) / 31 AS col2 FROM tab1
----
0

query I rowsort
SELECT - col1 * - col0 + - - col2 * - 77 - - - col2 FROM tab1 WHERE - col2 * + ( col2 ) IS NOT NULL
----
-1027
-4177
-6774

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT COUNT( * ) * - - 98 col2 FROM tab2
----
294

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8703
SELECT COUNT ( * ) * - - 98 col2 FROM tab2
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT ALL COUNT( * ) + - - ( - 7 ) AS col0 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL COUNT ( * ) + - - ( - 7 ) AS col0 FROM tab2
----
-4

query I rowsort
SELECT ALL col2 FROM tab2 WHERE col2 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT ( - 88 ) AS col2 FROM tab1
----
-88

query III rowsort
SELECT * FROM tab2 WHERE + col1 NOT BETWEEN + - 82 AND + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( col0 ) * - col2 + - + col2 FROM tab2
----
-1081
-2600
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT ALL - - COUNT( * ) * 7 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-8709
SELECT ALL - - COUNT ( * ) * 7 FROM tab1 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT COUNT( ALL + col2 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8710
SELECT COUNT ( ALL + col2 ) col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 29 IS NULL
----

query I rowsort
SELECT DISTINCT - 96 + col1 + ( col2 ) AS col1 FROM tab1 AS cor0
----
-32
14
19

query I rowsort
SELECT DISTINCT + + 21 AS col2 FROM tab2 AS cor0
----
21

query I rowsort
SELECT ALL - + 73 * + col2 FROM tab2 AS cor0
----
-1679
-2920
-4234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8715
SELECT + CAST( NULL AS SIGNED ) * - col0 + - + col1 * - col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8715
SELECT + CAST ( NULL AS INTEGER ) * - col0 + - + col1 * - col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8716
SELECT + 97 DIV + 58 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8716
SELECT + 97 / + 58 FROM tab1 AS cor0
----
1
1
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 * 38 = + ( - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * 12 * + col1 AS col0 FROM tab2 AS cor0
----
-31212
-53868
-71148

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8719
SELECT * FROM tab0 AS cor0 WHERE - col0 BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8719
SELECT * FROM tab0 AS cor0 WHERE - col0 BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT DISTINCT - MAX( col2 ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8721
SELECT DISTINCT - MAX ( col2 ) AS col2 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8722
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + col1 <= + - col0 * + + CAST( 47 AS SIGNED ) * + 78 * 94
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8722
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + col1 <= + - col0 * + + CAST ( 47 AS INTEGER ) * + 78 * 94
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 36 * - col0 + - col0 * - 49 + + - col1 + - + col1 + + col2 * - - col1 * - + col1 * col0 + 89 * - + 14 FROM tab1 AS cor0
----
-119406
-13662897
-956555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, 89 col1 FROM tab2
----
51
89
67
89
77
89

onlyif mysql # aggregate syntax: 
query II rowsort label-8725
SELECT ALL COUNT( * ), 63 AS col2 FROM tab1
----
3
63

skipif mysql # not compatible
query II rowsort label-8725
SELECT ALL COUNT ( * ), 63 AS col2 FROM tab1
----
3
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8726
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT - - ( col1 ) / + col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8726
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT - - ( col1 ) / + col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8727
SELECT COUNT( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8727
SELECT COUNT ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - 27 * col1 * - + 66 + + 10 FROM tab2 cor0
----
119404
137224
90892

onlyif mysql # DIV for integer division: 
query I rowsort label-8729
SELECT DISTINCT + + 41 DIV + col1 + col1 * - col1 FROM tab0 AS cor0
----
-440
-6561
40

skipif mysql # not compatible
query I rowsort label-8729
SELECT DISTINCT + + 41 / + col1 + col1 * - col1 FROM tab0 AS cor0
----
-440
-6561
40

query I rowsort
SELECT DISTINCT col2 + - 3 AS col2 FROM tab1 AS cor0
----
56
65
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8731
SELECT ALL + - 56 + 82 + + CAST( col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
122
85
94

skipif mysql # not compatible
query I rowsort label-8731
SELECT ALL + - 56 + 82 + + CAST ( col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
122
85
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8732
SELECT DISTINCT - + 59 + - - 18 + 57 + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8732
SELECT DISTINCT - + 59 + - - 18 + 57 + CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8733
SELECT ALL * FROM tab2 WHERE NOT + CAST( NULL AS DECIMAL ) BETWEEN - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8733
SELECT ALL * FROM tab2 WHERE NOT + CAST ( NULL AS REAL ) BETWEEN - col1 AND NULL
----

query I rowsort
SELECT col1 + - col0 + - col2 AS col1 FROM tab0
----
-195
-76
19

query I rowsort
SELECT DISTINCT col0 + - - col1 + - 64 FROM tab2
----
33
77
78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8736
SELECT - COUNT( col0 ) + + - COUNT( ALL - CAST( NULL AS DECIMAL ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8736
SELECT - COUNT ( col0 ) + + - COUNT ( ALL - CAST ( NULL AS REAL ) ) FROM tab2
----
-3

query I rowsort
SELECT + + col2 FROM tab1 WHERE - - col0 > - col0
----
59
68
96

query I rowsort
SELECT DISTINCT - + 15 FROM tab0 WHERE NOT - - col1 = - 56
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-8739
SELECT COUNT( * ) + + 69 AS col2 FROM tab2 WHERE - + col0 BETWEEN NULL AND + 85
----
69

skipif mysql # not compatible
query I rowsort label-8739
SELECT COUNT ( * ) + + 69 AS col2 FROM tab2 WHERE - + col0 BETWEEN NULL AND + 85
----
69

query I rowsort
SELECT + 4 + - + 37 FROM tab0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-8741
SELECT COUNT( * ) + - 53 col1 FROM tab0
----
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8741
SELECT COUNT ( * ) + - 53 col1 FROM tab0
----
-50

query I rowsort
SELECT - - 99 AS col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
99
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT DISTINCT - COUNT( * ) * MAX( DISTINCT - col0 ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT - COUNT ( * ) * MAX ( DISTINCT - col0 ) FROM tab0 AS cor0
----
45

query I rowsort
SELECT DISTINCT 24 + col1 FROM tab1
----
29
38
71

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT + col2 BETWEEN - col2 AND col2 )
----

query I rowsort
SELECT - + 29 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

onlyif mysql # aggregate syntax: 
query I rowsort label-8747
SELECT ALL 58 * + - COUNT( * ) * + COUNT( * ) AS col1 FROM tab1
----
-522

skipif mysql # not compatible
query I rowsort label-8747
SELECT ALL 58 * + - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1
----
-522

onlyif mysql # DIV for integer division: 
query I rowsort label-8748
SELECT ALL + col1 DIV 8 AS col0 FROM tab0 cor0
----
0
10
2

skipif mysql # not compatible
query I rowsort label-8748
SELECT ALL + col1 / 8 AS col0 FROM tab0 cor0
----
0
10
2

query I rowsort
SELECT - + col2 * + 34 + - 43 FROM tab1 AS cor0 WHERE NOT - col2 / - - col1 BETWEEN NULL AND 6
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8750
SELECT DISTINCT + MIN( col1 ) AS col0 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-8750
SELECT DISTINCT + MIN ( col1 ) AS col0 FROM tab1 cor0
----
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - col1 - - 92 / + + 4, col1 / - - col1 * - - ( - ( - 8 ) ), + - 66 / + col2, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT ALL + COUNT( + - 36 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8752
SELECT ALL + COUNT ( + - 36 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8753
SELECT - 60 * 37 * - 20 * - ( - 94 ) * + CAST( NULL AS SIGNED ) * - 5 * + 10 + - 69 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8753
SELECT - 60 * 37 * - 20 * - ( - 94 ) * + CAST ( NULL AS INTEGER ) * - 5 * + 10 + - 69 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 22, + 14 AS col2 FROM tab1
----
22
14
22
14
22
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 91, col0 + + col2 + - + col0 col2 FROM tab2
----
91
23
91
40
91
58

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( - + col0 ) >= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8757
SELECT + 10 DIV + col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8757
SELECT + 10 / + col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 3 * + col2 AS col2 FROM tab1
----
177
204
288

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8759
SELECT ALL + 53 DIV - SUM( - - col0 ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8759
SELECT ALL + 53 / - SUM ( - - col0 ) col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 15 * - col0 * - + col0 FROM tab1
----
108375
124215
39015

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8761
SELECT * FROM tab0 WHERE NOT NULL IN ( + 63, 29 / col0 * + col1 + - - CAST( NULL AS DECIMAL ) / - col1 )
----

skipif mysql # not compatible
query III rowsort label-8761
SELECT * FROM tab0 WHERE NOT NULL IN ( + 63, 29 / col0 * + col1 + - - CAST ( NULL AS REAL ) / - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8762
SELECT CAST( 81 AS SIGNED ) col1 FROM tab0
----
81
81
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8762
SELECT CAST ( 81 AS INTEGER ) col1 FROM tab0
----
81
81
81

query I rowsort
SELECT + 53 FROM tab1 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 27, col2 col1 FROM tab2
----
27
23
27
40
27
58

query I rowsort
SELECT ALL + ( - - ( 78 ) ) FROM tab1 AS cor0
----
78
78
78

query I rowsort
SELECT DISTINCT col0 / 36 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8767
SELECT DISTINCT ( - col1 ) DIV + 38 FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
query I rowsort label-8767
SELECT DISTINCT ( - col1 ) / + 38 FROM tab0 AS cor0
----
-2
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8768
SELECT DISTINCT 10, - 23 - + CAST( NULL AS SIGNED ) + COUNT( * ) * - 29 + + + 30 AS col1 FROM tab0 AS cor0
----
10
NULL

skipif mysql # not compatible
query II rowsort label-8768
SELECT DISTINCT 10, - 23 - + CAST ( NULL AS INTEGER ) + COUNT ( * ) * - 29 + + + 30 AS col1 FROM tab0 AS cor0
----
10
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8769
SELECT DISTINCT 37 * col2 * + 90 * - CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-11202120
-1761570
-5328000

skipif mysql # not compatible
query I rowsort label-8769
SELECT DISTINCT 37 * col2 * + 90 * - CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-11202120
-1761570
-5328000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8770
SELECT - CAST( + - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8770
SELECT - CAST ( + - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8771
SELECT COUNT( * ) + + - 1 * - - MAX( DISTINCT - col2 ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-8771
SELECT COUNT ( * ) + + - 1 * - - MAX ( DISTINCT - col2 ) FROM tab2 AS cor0
----
26

query I rowsort
SELECT + - col0 * + col2 + - 84 FROM tab2 AS cor0
----
-1142
-2644
-4434

query I rowsort
SELECT DISTINCT col2 + + col2 + 48 FROM tab2 AS cor0
----
128
164
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8774
SELECT ALL col2 - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8774
SELECT ALL col2 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 * + 47 AS col2 FROM tab2
----
-1081
-1880
-2726

query II rowsort
SELECT + - col0 * - + 98 - + col2 AS col0, - col2 AS col1 FROM tab0 AS cor0
----
1423
-47
8516
-10
9407
-99

query I rowsort
SELECT DISTINCT + + 38 + col0 FROM tab0 AS cor0
----
125
135
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col2 col1 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8779
SELECT DISTINCT + 39 DIV col2 col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8779
SELECT DISTINCT + 39 / col2 col2 FROM tab1
----
0

query I rowsort
SELECT 28 - 43 FROM tab0
----
-15
-15
-15

query III rowsort
SELECT * FROM tab0 WHERE 7 + 36 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 72 IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8783
SELECT DISTINCT - MIN( ALL col2 ) col1 FROM tab2 WHERE NOT NULL < ( + col1 * 56 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8783
SELECT DISTINCT - MIN ( ALL col2 ) col1 FROM tab2 WHERE NOT NULL < ( + col1 * 56 )
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * - 86 > col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NULL BETWEEN + col1 AND - 63
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8786
SELECT * FROM tab2 WHERE NOT ( 33 ) NOT BETWEEN NULL AND CAST( + ( - col2 ) AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8786
SELECT * FROM tab2 WHERE NOT ( 33 ) NOT BETWEEN NULL AND CAST ( + ( - col2 ) AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8787
SELECT DISTINCT CAST( ( - col1 ) AS SIGNED ) AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-8787
SELECT DISTINCT CAST ( ( - col1 ) AS INTEGER ) AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8788
SELECT ALL - col2 FROM tab0 WHERE + CAST( NULL AS SIGNED ) / + col1 + + col2 / 38 NOT IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-8788
SELECT ALL - col2 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) / + col1 + + col2 / 38 NOT IN ( col2 )
----

query I rowsort
SELECT ALL col0 - ( col1 ) FROM tab2
----
-13
-5
8

query III rowsort
SELECT * FROM tab0 WHERE ( - 97 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + 37 AS col2 FROM tab2
----
60
77
95

query I rowsort
SELECT - col0 + 4 AS col1 FROM tab0
----
-11
-83
-93

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 3 ) BETWEEN col0 AND 99 * - col0
----

query I rowsort
SELECT ALL 95 + 53 * 4 AS col1 FROM tab1
----
307
307
307

query I rowsort
SELECT col1 AS col2 FROM tab0 WHERE 86 * - 99 + + ( col2 - - 6 * 41 ) >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8796
SELECT ALL COUNT( * ) * 2 + + 48 DIV ( MIN( - col0 ) DIV 70 ) AS col1 FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-8796
SELECT ALL COUNT ( * ) * 2 + + 48 / ( MIN ( - col0 ) / 70 ) AS col1 FROM tab1
----
-42

query I rowsort
SELECT col1 + + 91 FROM tab0
----
112
172
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8798
SELECT ALL COUNT( ALL 12 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL COUNT ( ALL 12 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT 56 FROM tab0 WHERE col1 >= - 51 + 24
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-8800
SELECT + COUNT( * ) * - 90 AS col1 FROM tab0 WHERE NULL <> ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8800
SELECT + COUNT ( * ) * - 90 AS col1 FROM tab0 WHERE NULL <> ( col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8801
SELECT + 9 + 36 * - COUNT( * ) AS col2 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-8801
SELECT + 9 + 36 * - COUNT ( * ) AS col2 FROM tab1
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8802
SELECT DISTINCT * FROM tab1 cor0 WHERE ( - ( + col2 ) ) BETWEEN NULL AND - ( - CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8802
SELECT DISTINCT * FROM tab1 cor0 WHERE ( - ( + col2 ) ) BETWEEN NULL AND - ( - CAST ( - col0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8803
SELECT SUM( ALL col2 ) * 81 FROM tab1
----
18063

skipif mysql # not compatible
query I rowsort label-8803
SELECT SUM ( ALL col2 ) * 81 FROM tab1
----
18063

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT + SUM( DISTINCT + col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-8804
SELECT + SUM ( DISTINCT + col0 ) FROM tab1 cor0
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 61 col2 FROM tab0 AS cor0
----
-61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8806
SELECT - COUNT( * ) DIV - 8 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8806
SELECT - COUNT ( * ) / - 8 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col2 + 78 FROM tab2 AS cor0
----
101
118
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8808
SELECT ALL 89 + 20 AS col2 FROM tab0 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL 89 + 20 AS col2 FROM tab0 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT ALL COUNT( DISTINCT ( 0 ) ) + SUM( DISTINCT + 92 ) FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-8809
SELECT ALL COUNT ( DISTINCT ( 0 ) ) + SUM ( DISTINCT + 92 ) FROM tab1 AS cor0
----
93

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 = 47 - + col2
----

query I rowsort
SELECT - col1 AS col0 FROM tab2 cor0 WHERE + col0 <= - 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT ALL 20 + + COUNT( * ) FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8812
SELECT ALL 20 + + COUNT ( * ) FROM tab1 AS cor0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8813
SELECT - + col2 DIV + ( - col2 ) + - col1 DIV - 7 AS col2 FROM tab1 cor0
----
1
3
7

skipif mysql # not compatible
query I rowsort label-8813
SELECT - + col2 / + ( - col2 ) + - col1 / - 7 AS col2 FROM tab1 cor0
----
1
3
7

query III rowsort
SELECT * FROM tab0 WHERE col1 * col0 NOT BETWEEN 62 AND + 61
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 + + 19 + col2 * + col2 FROM tab2
----
1542
3316
497

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN - 65 AND NULL
----

query I rowsort
SELECT + ( + 27 ) + col2 * ( col0 * - col1 ) AS col2 FROM tab0
----
-18243
-57078
-9576

query I rowsort
SELECT ALL + ( + - 72 ) AS col1 FROM tab0
----
-72
-72
-72

query I rowsort
SELECT DISTINCT col1 - 66 AS col2 FROM tab0
----
-45
-65
15

query I rowsort
SELECT ALL - col0 + col1 + col1 AS col0 FROM tab1 AS cor0
----
-23
-75
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8821
SELECT * FROM tab0 AS cor0 WHERE col1 * - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-8821
SELECT * FROM tab0 AS cor0 WHERE col1 * - CAST ( NULL AS INTEGER ) <= NULL
----

query I rowsort
SELECT ALL 63 + + col0 * - 91 FROM tab1 AS cor0
----
-4578
-7672
-8218

query I rowsort
SELECT 87 AS col2 FROM tab2 WHERE NOT + + 92 IS NULL
----
87
87
87

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NULL <> ( - 66 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8825
SELECT + 97 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8825
SELECT + 97 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 21 col2 FROM tab2 AS cor0 WHERE ( + 12 / + col1 ) NOT BETWEEN ( 17 ) AND - col1 + col1
----
21

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 75 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - col1 * + 88 * 54 FROM tab1 AS cor0
----
223344
23760
66528

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 > ( - col2 )
----

query I rowsort
SELECT + col1 * ( - 51 ) FROM tab2 AS cor0
----
-2601
-3417
-3927

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 + + + col1 + ( + ( + col1 ) + + col1 * ( - 27 ) ) * + ( - 89 * ( + col2 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT COUNT( * ) * + 31 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8833
SELECT COUNT ( * ) * + 31 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN - col1 AND NULL
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 BETWEEN ( + col0 ) AND NULL
----
87
21
10
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8835
SELECT 20 DIV - 38 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8835
SELECT 20 / - 38 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 * + 87 AS col0 FROM tab1
----
4437
7395
7917

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT - ( - SUM( ALL + col1 ) ) AS col2 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8837
SELECT - ( - SUM ( ALL + col1 ) ) AS col2 FROM tab1
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8838
SELECT 61 DIV 1 AS col2 FROM tab2
----
61
61
61

skipif mysql # not compatible
query I rowsort label-8838
SELECT 61 / 1 AS col2 FROM tab2
----
61
61
61

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8839
SELECT ALL * FROM tab2 WHERE - CAST( NULL AS DECIMAL ) * - 94 * + col0 = ( col1 )
----

skipif mysql # not compatible
query III rowsort label-8839
SELECT ALL * FROM tab2 WHERE - CAST ( NULL AS REAL ) * - 94 * + col0 = ( col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 74 * + ( 34 ) >= ( col1 )
----

query I rowsort
SELECT DISTINCT - col0 + 48 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-16
-27
2

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < ( 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT ( + MAX( - - ( + - 79 ) ) ) AS col1 FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-8843
SELECT ( + MAX ( - - ( + - 79 ) ) ) AS col1 FROM tab0
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-8844
SELECT ALL col1 DIV 44 DIV + - col1 + - col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL col1 / 44 / + - col1 + - col2 FROM tab2
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8845
SELECT DISTINCT 78 * col1 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * - ( CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) = ( 91 / col2 + - 89 )
----

skipif mysql # not compatible
query I rowsort label-8845
SELECT DISTINCT 78 * col1 AS col1 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * - ( CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) = ( 91 / col2 + - 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT ALL + 56 + COUNT( * ) FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8846
SELECT ALL + 56 + COUNT ( * ) FROM tab2 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT SUM( 78 ) FROM tab0 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-8847
SELECT SUM ( 78 ) FROM tab0 AS cor0
----
234

query I rowsort
SELECT ( + 54 ) FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT DISTINCT - col0 - col2 * + + ( + col0 ) * + - 28 FROM tab1 AS cor0
----
137037
140335
173173

query I rowsort
SELECT + + ( col1 ) AS col1 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query II rowsort
SELECT - col0 AS col2, + col1 - + col1 AS col0 FROM tab1
----
-51
0
-85
0
-91
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 99 + + col2 + + + ( + col1 ) col2, - col1 + col1 + col0 FROM tab1
----
-35
85
11
51
16
91

onlyif mysql # DIV for integer division: 
query II rowsort label-8853
SELECT col0 col2, + 5 + col0 * 62 DIV - col1 AS col1 FROM tab2
----
46
-50
64
-46
75
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8853
SELECT col0 col2, + 5 + col0 * 62 / - col1 AS col1 FROM tab2
----
46
-50
64
-46
75
-64

query I rowsort
SELECT ALL ( col2 ) - + col0 AS col0 FROM tab0
----
-77
2
32

query III rowsort
SELECT * FROM tab2 WHERE col1 - + ( - 13 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 FROM tab0 WHERE ( NOT ( ( + + col2 ) NOT BETWEEN NULL AND ( NULL ) ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8857
SELECT ALL col1, col1 DIV - col1 AS col2 FROM tab1
----
14
-1
47
-1
5
-1

skipif mysql # not compatible
query II rowsort label-8857
SELECT ALL col1, col1 / - col1 AS col2 FROM tab1
----
14
-1
47
-1
5
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 + - 77 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8859
SELECT - + 66 - - COUNT( * ) FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-8859
SELECT - + 66 - - COUNT ( * ) FROM tab1 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8860
SELECT - ( - MAX( ALL + col2 ) ) col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8860
SELECT - ( - MAX ( ALL + col2 ) ) col2 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT SUM( DISTINCT + + col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-8861
SELECT SUM ( DISTINCT + + col0 ) AS col0 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT DISTINCT COUNT( + 44 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8862
SELECT DISTINCT COUNT ( + 44 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 88 + col0 + - 26 + + col0 + col2 + - + col0 * col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + - col0 NOT IN ( col0 * col0, + col2 * 92 / - col0 + 73 * ( col2 + + col2 * col0 ) )
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8866
SELECT DISTINCT - + ( + SUM( ALL - 50 ) ) AS col2 FROM tab2 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-8866
SELECT DISTINCT - + ( + SUM ( ALL - 50 ) ) AS col2 FROM tab2 AS cor0
----
150

query I rowsort
SELECT ALL col1 * - col1 FROM tab2 AS cor0 WHERE ( NOT ( + col2 + + col2 ) >= col1 )
----
-2601

query I rowsort
SELECT ALL + col1 * + col2 + 61 AS col2 FROM tab1 cor0 WHERE ( NULL ) BETWEEN NULL AND - 34
----

query I rowsort
SELECT DISTINCT - 43 * col0 AS col1 FROM tab1 AS cor0
----
-2193
-3655
-3913

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 28 * - col2 / + col2 / + + col1 NOT BETWEEN ( + 29 ) AND - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 / + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * + 43 col0 FROM tab0 cor0
----
3483
43
903

query I rowsort
SELECT - col0 * + 77 * 46 FROM tab1 cor0
----
-180642
-301070
-322322

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT ( - col0 ) NOT BETWEEN 52 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8875
SELECT ALL CAST( NULL AS DECIMAL ) * - - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL CAST ( NULL AS REAL ) * - - col1 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8876
SELECT - ( + SUM( DISTINCT - + col1 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8876
SELECT - ( + SUM ( DISTINCT - + col1 ) ) FROM tab1
----
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8877
SELECT ( 44 ) DIV - COUNT( * ) AS col2 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-8877
SELECT ( 44 ) / - COUNT ( * ) AS col2 FROM tab0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT DISTINCT - SUM( 94 ) FROM tab1
----
-282

skipif mysql # not compatible
query I rowsort label-8878
SELECT DISTINCT - SUM ( 94 ) FROM tab1
----
-282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8879
SELECT - MIN( - col2 ) + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8879
SELECT - MIN ( - col2 ) + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8880
SELECT 37 + COUNT( * ) AS col0 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-8880
SELECT 37 + COUNT ( * ) AS col0 FROM tab0
----
40

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8881
SELECT + COUNT( * ) * + CAST( NULL AS DECIMAL ) * 46 + + 66 * - 83 col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8881
SELECT + COUNT ( * ) * + CAST ( NULL AS REAL ) * 46 + + 66 * - 83 col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8882
SELECT - + col0 + + col1 DIV col0 * + + 49 * col2 DIV - col1, + col0 AS col2 FROM tab2 cor0
----
-68
46
-75
75
-89
64

skipif mysql # not compatible
query II rowsort label-8882
SELECT - + col0 + + col1 / col0 * + + 49 * col2 / - col1, + col0 AS col2 FROM tab2 cor0
----
-68
46
-75
75
-89
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8883
SELECT ALL - COUNT( * ) + - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 30
----
NULL

skipif mysql # not compatible
query I rowsort label-8883
SELECT ALL - COUNT ( * ) + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 30
----
NULL

query I rowsort
SELECT - 52 + - - col1 FROM tab2 AS cor0
----
-1
15
25

query I rowsort
SELECT ALL + col2 + - + col2 AS col1 FROM tab2 cor0
----
0
0
0

query II rowsort
SELECT DISTINCT - col1 * 53, + col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-2703
51
-3551
67
-4081
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col0 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8888
SELECT ALL - - COUNT( * ) DIV - + 95 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL - - COUNT ( * ) / - + 95 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

query I rowsort
SELECT ALL 89 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT MIN( DISTINCT - 62 ) FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-8890
SELECT MIN ( DISTINCT - 62 ) FROM tab1 AS cor0
----
-62

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 IN ( + ( - - col2 ), 54, - - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE + 27 NOT IN ( - 30, + ( - - col2 ) )
----
3

skipif mysql # not compatible
query I rowsort label-8892
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE + 27 NOT IN ( - 30, + ( - - col2 ) )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT ALL - 16 * + COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-8893
SELECT ALL - 16 * + COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
-45

query I rowsort
SELECT ( + AVG ( + col0 ) ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8895
SELECT ALL - + 2 + - COUNT( * ) AS col1, 40 FROM tab0 AS cor0
----
-5
40

skipif mysql # not compatible
query II rowsort label-8895
SELECT ALL - + 2 + - COUNT ( * ) AS col1, 40 FROM tab0 AS cor0
----
-5
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8896
SELECT + col2 * 82 * + + col1 + - 36 FROM tab0 WHERE CAST( + 47 AS SIGNED ) > + col2
----
17184

skipif mysql # not compatible
query I rowsort label-8896
SELECT + col2 * 82 * + + col1 + - 36 FROM tab0 WHERE CAST ( + 47 AS INTEGER ) > + col2
----
17184

query I rowsort
SELECT 88 + - - col2 AS col1 FROM tab0
----
135
187
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 64 - + - 56 * col0 col2 FROM tab1
----
2920
4824
5160

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND + ( - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 >= ( - - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2, 80 + + - col0 AS col0 FROM tab0
----
10
-7
47
65
99
-17

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - 65 + - col2 AND col0
----

query II rowsort
SELECT DISTINCT 43, ( - 67 ) AS col1 FROM tab1
----
43
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8904
SELECT + + col1 * 98 FROM tab2 WHERE NOT NULL BETWEEN ( CAST( 9 AS SIGNED ) * - 56 ) AND - col2 + - + 58 - 0
----

skipif mysql # not compatible
query I rowsort label-8904
SELECT + + col1 * 98 FROM tab2 WHERE NOT NULL BETWEEN ( CAST ( 9 AS INTEGER ) * - 56 ) AND - col2 + - + 58 - 0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8905
SELECT DISTINCT - - ( + COUNT( * ) ) / - COUNT( * ) * + + CAST( NULL AS DECIMAL ) - - SUM( ALL + col2 ) AS col1 FROM tab2 AS cor0 WHERE - CAST( + 34 AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8905
SELECT DISTINCT - - ( + COUNT ( * ) ) / - COUNT ( * ) * + + CAST ( NULL AS REAL ) - - SUM ( ALL + col2 ) AS col1 FROM tab2 AS cor0 WHERE - CAST ( + 34 AS INTEGER ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8906
SELECT - - col1 FROM tab0 AS cor0 WHERE NOT ( - CAST( + col0 AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8906
SELECT - - col1 FROM tab0 AS cor0 WHERE NOT ( - CAST ( + col0 AS REAL ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8908
SELECT DISTINCT + 75 + + - 75, COUNT( * ) + + + 10 AS col1 FROM tab0 AS cor0
----
0
13

skipif mysql # not compatible
query II rowsort label-8908
SELECT DISTINCT + 75 + + - 75, COUNT ( * ) + + + 10 AS col1 FROM tab0 AS cor0
----
0
13

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 / + col0 IN ( - col1 + + + col2 + - + col0 + col0, 10 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8910
SELECT + COUNT( * ) * 93 + + + ( + ( CAST( 30 AS SIGNED ) ) ) + - COUNT( * ) FROM tab1 AS cor0
----
306

skipif mysql # not compatible
query I rowsort label-8910
SELECT + COUNT ( * ) * 93 + + + ( + ( CAST ( 30 AS INTEGER ) ) ) + - COUNT ( * ) FROM tab1 AS cor0
----
306

query I rowsort
SELECT + + 28 * col2 - - - 99 FROM tab2 AS cor0 WHERE NOT - col0 IS NULL
----
1021
1525
545

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT + 56 + COUNT( * ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8912
SELECT + 56 + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
59

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT 97 * - col0 * - col0 + - 32 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8914
SELECT - col1 DIV ( - col0 ) AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8914
SELECT - col1 / ( - col0 ) AS col2 FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8915
SELECT * FROM tab0 WHERE + col1 + - CAST( + - col2 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-8915
SELECT * FROM tab0 WHERE + col1 + - CAST ( + - col2 AS INTEGER ) = NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE col2 / col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8917
SELECT + ( - col2 ) * ( col2 ) DIV col0 - - col1 FROM tab0 AS cor0
----
-100
-66
20

skipif mysql # not compatible
query I rowsort label-8917
SELECT + ( - col2 ) * ( col2 ) / col0 - - col1 FROM tab0 AS cor0
----
-100
-66
20

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8918
SELECT - COUNT( * ) + - - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8918
SELECT - COUNT ( * ) + - - CAST ( NULL AS REAL ) FROM tab1
----
NULL

query I rowsort
SELECT 52 * - 15 + - col1 FROM tab1
----
-785
-794
-827

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT ALL COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8920
SELECT ALL COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8921
SELECT ALL CAST( - 10 AS DECIMAL ) * - - 51 * + col0 * - 45 + + col1 - - col0 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN col1 + - col1 AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8921
SELECT ALL CAST ( - 10 AS REAL ) * - - 51 * + col0 * - 45 + + col1 - - col0 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN col1 + - col1 AND ( NULL )
----

query I rowsort
SELECT - 87 + 78 FROM tab2 AS cor0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT + + 8 * - ( 8 ) + - col0 FROM tab1 AS cor0
----
-115
-149
-155

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - + 9 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 17 FROM tab0 cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8926
SELECT 94 DIV - 46 AS col1 FROM tab2 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-8926
SELECT 94 / - 46 AS col1 FROM tab2 AS cor0
----
-2
-2
-2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND - + 0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8928
SELECT CAST( NULL AS SIGNED ) * - col2 * - + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8928
SELECT CAST ( NULL AS INTEGER ) * - col2 * - + col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 cor0 WHERE NOT - col0 / col1 IN ( col1, + 95 + col2 )
----
51
85
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 28 > 60
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8931
SELECT - - 44 AS col0, CAST( NULL AS SIGNED ) FROM tab1 cor0
----
44
NULL
44
NULL
44
NULL

skipif mysql # not compatible
query II rowsort label-8931
SELECT - - 44 AS col0, CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
44
NULL
44
NULL
44
NULL

query I rowsort
SELECT 45 - - - 97 FROM tab0 cor0
----
-52
-52
-52

onlyif mysql # DIV for integer division: 
query II rowsort label-8933
SELECT col2 DIV + + col2, 19 AS col0 FROM tab1
----
1
19
1
19
1
19

skipif mysql # not compatible
query II rowsort label-8933
SELECT col2 / + + col2, 19 AS col0 FROM tab1
----
1
19
1
19
1
19

query I rowsort
SELECT DISTINCT 87 * - - 57 AS col2 FROM tab1
----
4959

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 63 * - - col1 / - col2 + + 50 col0 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + - col0 * - col1 AS col0, col0 FROM tab2 AS cor0
----
2346
46
4928
64
5025
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - + 16 col0 FROM tab2 AS cor0
----
-1072
-1232
-816

query I rowsort
SELECT ALL + col2 * + 84 AS col2 FROM tab2 AS cor0
----
1932
3360
4872

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 59 * - 50 * + + 66 * 47 / - - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col1 + + - col2 FROM tab2 AS cor0 WHERE NOT 40 IS NULL
----
-117
-125
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8941
SELECT DISTINCT - CAST( AVG ( - ( 61 ) ) AS SIGNED ) AS col1 FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-8941
SELECT DISTINCT - CAST ( AVG ( - ( 61 ) ) AS INTEGER ) AS col1 FROM tab1
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8942
SELECT ALL 69 * - - 54 * - MIN( ALL + + 29 ) * - + 50 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
5402700

skipif mysql # not compatible
query I rowsort label-8942
SELECT ALL 69 * - - 54 * - MIN ( ALL + + 29 ) * - + 50 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
5402700

query I rowsort
SELECT + 1 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT NULL > 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT DISTINCT - MAX( DISTINCT - 85 ) FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT - MAX ( DISTINCT - 85 ) FROM tab1 AS cor0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8946
SELECT ALL + CAST( - ( + 39 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-8946
SELECT ALL + CAST ( - ( + 39 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-39
-39
-39

query I rowsort
SELECT + 53 * - 10 FROM tab0 AS cor0 WHERE NOT 72 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT ALL + MAX( DISTINCT + + col1 ) col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8948
SELECT ALL + MAX ( DISTINCT + + col1 ) col2 FROM tab2 AS cor0
----
77

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT + ( + col0 ) IN ( + col1 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT DISTINCT COUNT( * ) + + 43 FROM tab1 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-8950
SELECT DISTINCT COUNT ( * ) + + 43 FROM tab1 AS cor0
----
46

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( - ( - + col1 ) ) > NULL
----

query I rowsort
SELECT DISTINCT + - col1 + + + col2 AS col0 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT ALL - ( + - SUM( ALL + - col0 ) ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL - ( + - SUM ( ALL + - col0 ) ) AS col0 FROM tab2
----
-185

query II rowsort
SELECT DISTINCT - col0 AS col0, col0 AS col1 FROM tab1
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT 89 + - ( COUNT( + - col1 ) ) + + 98 AS col0 FROM tab1
----
184

skipif mysql # not compatible
query I rowsort label-8955
SELECT 89 + - ( COUNT ( + - col1 ) ) + + 98 AS col0 FROM tab1
----
184

query III rowsort
SELECT * FROM tab2 WHERE + 24 IN ( + col1 - - col1 )
----

query I rowsort
SELECT + col1 + - 9 FROM tab2
----
42
58
68

query III rowsort
SELECT * FROM tab0 WHERE - - col2 < + ( + col1 )
----
15
81
47
87
21
10

query I rowsort
SELECT ( - 80 ) + - + col2 FROM tab1
----
-139
-148
-176

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8960
SELECT * FROM tab0 WHERE 86 * + CAST( NULL AS SIGNED ) + - CAST( col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8960
SELECT * FROM tab0 WHERE 86 * + CAST ( NULL AS INTEGER ) + - CAST ( col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8961
SELECT DISTINCT COUNT( * ) * + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT COUNT ( * ) * + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL 43 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8963
SELECT ALL - col2 + - + col2 + 66 - - CAST( - - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
26
43
8

skipif mysql # not compatible
query I rowsort label-8963
SELECT ALL - col2 + - + col2 + 66 - - CAST ( - - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
26
43
8

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 > - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + 4 > col1
----

query I rowsort
SELECT ALL + + 13 AS col2 FROM tab2 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT + col0 * + 62 * + 87 * + - col2 - - col2 + + col2 FROM tab1
----
-26408832
-27050792
-33377936

onlyif mysql # DIV for integer division: 
query I rowsort label-8968
SELECT + col2 * col0 DIV - + col1 + 15 AS col0 FROM tab0 AS cor0
----
-26
-9588
7

skipif mysql # not compatible
query I rowsort label-8968
SELECT + col2 * col0 / - + col1 + 15 AS col0 FROM tab0 AS cor0
----
-26
-9588
7

query I rowsort
SELECT ALL ( - 61 ) FROM tab1 cor0 WHERE NOT NULL IS NULL AND NOT ( - col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8970
SELECT - col2 DIV - 38 AS col0, col1 FROM tab2 AS cor0
----
0
51
1
67
1
77

skipif mysql # not compatible
query II rowsort label-8970
SELECT - col2 / - 38 AS col0, col1 FROM tab2 AS cor0
----
0
51
1
67
1
77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8971
SELECT DISTINCT * FROM tab0 WHERE ( NOT - CAST( col0 AS DECIMAL ) + 20 + col2 IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-8971
SELECT DISTINCT * FROM tab0 WHERE ( NOT - CAST ( col0 AS REAL ) + 20 + col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8972
SELECT ALL - MAX( DISTINCT + 72 ) * + SUM( ALL - 74 ) AS col0 FROM tab0
----
15984

skipif mysql # not compatible
query I rowsort label-8972
SELECT ALL - MAX ( DISTINCT + 72 ) * + SUM ( ALL - 74 ) AS col0 FROM tab0
----
15984

query I rowsort
SELECT ALL col1 * - 67 AS col2 FROM tab0
----
-1407
-5427
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col2 FROM tab0, tab1 AS cor0
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query II rowsort
SELECT ALL 82, + 43 AS col0 FROM tab2
----
82
43
82
43
82
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8976
SELECT + - COUNT( - - col2 ) FROM tab0 WHERE NOT NULL NOT IN ( 20 * - - col1, - col0, - col1 + - 63 * - 57 )
----
0

skipif mysql # not compatible
query I rowsort label-8976
SELECT + - COUNT ( - - col2 ) FROM tab0 WHERE NOT NULL NOT IN ( 20 * - - col1, - col0, - col1 + - 63 * - 57 )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8977
SELECT DISTINCT 45 DIV - MIN( - + col0 ) * + 48 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8977
SELECT DISTINCT 45 / - MIN ( - + col0 ) * + 48 col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8978
SELECT DISTINCT * FROM tab1 WHERE ( - col1 + col1 + + ( - CAST( - col2 AS SIGNED ) ) * + ( + + 80 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8978
SELECT DISTINCT * FROM tab1 WHERE ( - col1 + col1 + + ( - CAST ( - col2 AS INTEGER ) ) * + ( + + 80 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8979
SELECT ALL + ( + CAST( 55 AS SIGNED ) ) AS col2, - MAX( - - col2 ) AS col1 FROM tab2 cor0
----
55
-58

skipif mysql # not compatible
query II rowsort label-8979
SELECT ALL + ( + CAST ( 55 AS INTEGER ) ) AS col2, - MAX ( - - col2 ) AS col1 FROM tab2 cor0
----
55
-58

query I rowsort
SELECT ALL 31 * + col0 AS col0 FROM tab2
----
1426
1984
2325

query II rowsort
SELECT ALL + 36 AS col2, AVG ( DISTINCT - col0 ) AS col1 FROM tab0 WHERE NOT - col2 >= NULL
----
36
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - col1 - - col1 col0 FROM tab2 cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8983
SELECT DISTINCT + + 95 FROM tab0 AS cor0 WHERE col2 * - 17 NOT BETWEEN + + col0 AND - + CAST( + ( - + 55 ) AS SIGNED )
----
95

skipif mysql # not compatible
query I rowsort label-8983
SELECT DISTINCT + + 95 FROM tab0 AS cor0 WHERE col2 * - 17 NOT BETWEEN + + col0 AND - + CAST ( + ( - + 55 ) AS INTEGER )
----
95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = 87
----

query I rowsort
SELECT - + col1 + + - col1 AS col1 FROM tab1 AS cor0
----
-10
-28
-94

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE ( NOT - - 16 * - - 25 * - + 94 * + + col0 + 85 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT DISTINCT - + SUM( DISTINCT - + col0 ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
188

skipif mysql # not compatible
query I rowsort label-8987
SELECT DISTINCT - + SUM ( DISTINCT - + col0 ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
188

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > - col2 + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8989
SELECT ALL col1 DIV col1 * col1 + + - 51 FROM tab0
----
-30
-50
30

skipif mysql # not compatible
query I rowsort label-8989
SELECT ALL col1 / col1 * col1 + + - 51 FROM tab0
----
-30
-50
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT MAX( DISTINCT + - 84 ) AS col0 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-8990
SELECT MAX ( DISTINCT + - 84 ) AS col0 FROM tab1
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col1, col1 FROM tab2
----
-46
51
-64
77
-75
67

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 45 + col1 < + + 50 * - col1
----

query I rowsort
SELECT ALL col0 + - 66 AS col1 FROM tab2
----
-2
-20
9

query I rowsort
SELECT ( - + 16 ) FROM tab1
----
-16
-16
-16

query III rowsort
SELECT * FROM tab0 WHERE - col2 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - - 76 AS col2, col2 * + - col0 + + 6 AS col1 FROM tab2 AS cor0
----
76
-1052
76
-2554
76
-4344

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8997
SELECT + + col0 * CAST( - - 99 AS SIGNED ) DIV - - 50 + - 74 + 5 - + + col1 FROM tab2 AS cor0
----
-20
-29
12

skipif mysql # not compatible
query I rowsort label-8997
SELECT + + col0 * CAST ( - - 99 AS INTEGER ) / - - 50 + - 74 + 5 - + + col1 FROM tab2 AS cor0
----
-20
-29
12

query I rowsort
SELECT - 70 + 88 FROM tab2 AS cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT + MIN( DISTINCT - 43 ) + + 43 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8999
SELECT + MIN ( DISTINCT - 43 ) + + 43 AS col0 FROM tab0
----
0

query II rowsort
SELECT - col0 AS col0, 51 FROM tab0 AS cor0
----
-15
51
-87
51
-97
51

onlyif mysql # DIV for integer division: 
query I rowsort label-9001
SELECT - 2 DIV + - 80 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9001
SELECT - 2 / + - 80 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9002
SELECT - + SUM( DISTINCT + 91 ) * 17 AS col0 FROM tab0 AS cor0
----
-1547

skipif mysql # not compatible
query I rowsort label-9002
SELECT - + SUM ( DISTINCT + 91 ) * 17 AS col0 FROM tab0 AS cor0
----
-1547

onlyif mysql # DIV for integer division: 
query I rowsort label-9003
SELECT col1 DIV + 8 FROM tab1 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-9003
SELECT col1 / + 8 FROM tab1 AS cor0
----
0
1
5

query I rowsort
SELECT ALL - 78 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-78
-78
-78

query II rowsort
SELECT DISTINCT - col0 * col1, + col1 FROM tab2 AS cor0
----
-2346
51
-4928
77
-5025
67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + + col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 * col0 + + col0 ) IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT - SUM( - - 70 ) AS col1 FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-9009
SELECT - SUM ( - - 70 ) AS col1 FROM tab0
----
-210

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT DISTINCT - MIN( DISTINCT - - 2 ) FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-9010
SELECT DISTINCT - MIN ( DISTINCT - - 2 ) FROM tab2
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9011
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + CAST( NULL AS SIGNED ) ) * - 96 / - 56 * + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9011
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + CAST ( NULL AS INTEGER ) ) * - 96 / - 56 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT - SUM( 85 ) FROM tab2 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-9012
SELECT - SUM ( 85 ) FROM tab2 AS cor0
----
-255

query I rowsort
SELECT ALL + 43 * + col1 FROM tab0 cor0
----
3483
43
903

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN - col2 * 49 AND - - 65 + - 42 * + col1 + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 84 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9016
SELECT ALL - + COUNT( * ) col2 FROM tab0 WHERE NOT - ( - col0 ) * + 13 - + 76 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9016
SELECT ALL - + COUNT ( * ) col2 FROM tab0 WHERE NOT - ( - col0 ) * + 13 - + 76 IS NOT NULL
----
0

query I rowsort
SELECT + 95 * - 8 AS col1 FROM tab0
----
-760
-760
-760

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9018
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query III rowsort label-9018
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < - - 75
----

query I rowsort
SELECT col2 + + + col2 AS col2 FROM tab1
----
118
136
192

query III rowsort
SELECT * FROM tab2 WHERE - ( + 44 ) + + col0 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 40 * 57 + col2 + + - 52 + col2 * - 7 * - ( - - col1 ) AS col0 FROM tab1
----
11732
24668
4352

onlyif mysql # DIV for integer division: 
query I rowsort label-9023
SELECT + col1 DIV 85 + - col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9023
SELECT + col1 / 85 + - col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9024
SELECT DISTINCT COUNT( * ) * + - 88 FROM tab1
----
-264

skipif mysql # not compatible
query I rowsort label-9024
SELECT DISTINCT COUNT ( * ) * + - 88 FROM tab1
----
-264

query I rowsort
SELECT + col1 + - 73 + 87 AS col2 FROM tab2
----
65
81
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT - SUM( ALL + col0 ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9026
SELECT - SUM ( ALL + col0 ) FROM tab2 cor0
----
-185

query I rowsort
SELECT ( - + 8 ) * + + col2 AS col2 FROM tab1 AS cor0
----
-472
-544
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-9028
SELECT DISTINCT + + 46 * + COUNT( - 77 ) + MIN( ALL - - 37 ) + - 44 FROM tab1 cor0
----
131

skipif mysql # not compatible
query I rowsort label-9028
SELECT DISTINCT + + 46 * + COUNT ( - 77 ) + MIN ( ALL - - 37 ) + - 44 FROM tab1 cor0
----
131

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9029
SELECT DISTINCT col2 FROM tab1 WHERE + CAST( + ( 27 ) AS DECIMAL ) IS NOT NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9029
SELECT DISTINCT col2 FROM tab1 WHERE + CAST ( + ( 27 ) AS REAL ) IS NOT NULL
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 48 / + 13 = - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 AS col1 FROM tab2 cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL - col1 + + 25 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT col1 * + col2 * - 85 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + + 31 FROM tab1 AS cor0
----
1829
2108
2976

query II rowsort
SELECT - col0 AS col1, + col0 FROM tab2
----
-46
46
-64
64
-75
75

query I rowsort
SELECT - col1 * + - col0 AS col2 FROM tab1
----
425
4277
714

query II rowsort
SELECT + col2 AS col2, 31 FROM tab0
----
10
31
47
31
99
31

query I rowsort
SELECT ( - - 33 ) FROM tab2
----
33
33
33

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9040
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + + col0 + - CAST( NULL AS SIGNED ) + col2 / - - 23 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9040
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + + col0 + - CAST ( NULL AS INTEGER ) + col2 / - - 23 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + 88 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-88

query I rowsort
SELECT + col2 * - 61 AS col0 FROM tab2
----
-1403
-2440
-3538

query I rowsort
SELECT - 80 AS col1 FROM tab1 WHERE col0 * + 53 IS NOT NULL
----
-80
-80
-80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9044
SELECT * FROM tab0 WHERE ( NOT NULL NOT BETWEEN + col1 * + CAST( col1 AS SIGNED ) AND NULL )
----

skipif mysql # not compatible
query III rowsort label-9044
SELECT * FROM tab0 WHERE ( NOT NULL NOT BETWEEN + col1 * + CAST ( col1 AS INTEGER ) AND NULL )
----

query I rowsort
SELECT DISTINCT + 55 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9046
SELECT DISTINCT 23 + MIN( DISTINCT - + col0 ) AS col0 FROM tab0
----
-74

skipif mysql # not compatible
query I rowsort label-9046
SELECT DISTINCT 23 + MIN ( DISTINCT - + col0 ) AS col0 FROM tab0
----
-74

query I rowsort
SELECT - - col1 + + - 54 * - ( - 50 ) AS col2 FROM tab1 AS cor0
----
-2653
-2686
-2695

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9048
SELECT + + 81 + - - 82 col2, + COUNT( * ) DIV + 36 FROM tab1 AS cor0
----
163
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9048
SELECT + + 81 + - - 82 col2, + COUNT ( * ) / + 36 FROM tab1 AS cor0
----
163
0

query I rowsort
SELECT ALL col0 * + + col1 + col0 AS col1 FROM tab1 AS cor0
----
4368
510
765

onlyif mysql # aggregate syntax: 
query I rowsort label-9050
SELECT DISTINCT - SUM( 55 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-165

skipif mysql # not compatible
query I rowsort label-9050
SELECT DISTINCT - SUM ( 55 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-165

query I rowsort
SELECT DISTINCT - - col2 * + col0 + - 80 FROM tab0 AS cor0
----
625
790
9523

query I rowsort
SELECT + col2 * - - col1 FROM tab0 AS cor0
----
210
3807
99

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab0 AS cor0 WHERE col1 + - col0 / col1 NOT BETWEEN - col1 AND + 38
----
-15
-97

query I rowsort
SELECT - + col2 AS col1 FROM tab0 AS cor0 WHERE col1 / - col0 / - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9055
SELECT DISTINCT + 93 - + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9055
SELECT DISTINCT + 93 - + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9056
SELECT ALL col2 * CAST( + col0 AS SIGNED ) AS col0 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-9056
SELECT ALL col2 * CAST ( + col0 AS INTEGER ) AS col0 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9057
SELECT ALL - CAST( NULL AS SIGNED ) * - col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL - CAST ( NULL AS INTEGER ) * - col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9058
SELECT DISTINCT + col2 DIV + - 91 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9058
SELECT DISTINCT + col2 / + - 91 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - 72 - + - col0 * - 19 AS col2 FROM tab0
----
-1725
-1915
-357

query I rowsort
SELECT DISTINCT col0 * + ( 60 ) - + col1 FROM tab1 AS cor0
----
3046
5095
5413

query I rowsort
SELECT - + col1 AS col2 FROM tab0 AS cor0 WHERE ( NOT col0 IS NULL )
----
-1
-21
-81

query I rowsort
SELECT ALL + - col1 * 50 FROM tab0 AS cor0
----
-1050
-4050
-50

query I rowsort
SELECT + - col1 + col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9064
SELECT + - col1 * CAST( + 22 AS SIGNED ) FROM tab1 AS cor0
----
-1034
-110
-308

skipif mysql # not compatible
query I rowsort label-9064
SELECT + - col1 * CAST ( + 22 AS INTEGER ) FROM tab1 AS cor0
----
-1034
-110
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-9065
SELECT - - SUM( ALL - 94 ) AS col2 FROM tab2 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-9065
SELECT - - SUM ( ALL - 94 ) AS col2 FROM tab2 AS cor0
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-9066
SELECT ALL - SUM( - 85 ) FROM tab0 WHERE NOT ( NOT col1 IS NULL ) OR NULL IS NULL
----
255

skipif mysql # not compatible
query I rowsort label-9066
SELECT ALL - SUM ( - 85 ) FROM tab0 WHERE NOT ( NOT col1 IS NULL ) OR NULL IS NULL
----
255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9067
SELECT - col2 FROM tab2 WHERE NOT NULL NOT IN ( + col0 / CAST( + ( + CAST( NULL AS SIGNED ) ) AS SIGNED ), - col1 )
----

skipif mysql # not compatible
query I rowsort label-9067
SELECT - col2 FROM tab2 WHERE NOT NULL NOT IN ( + col0 / CAST ( + ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ), - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9068
SELECT ALL + col2 DIV - col2 AS col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9068
SELECT ALL + col2 / - col2 AS col2 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9069
SELECT 17 DIV - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9069
SELECT 17 / - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-5

query I rowsort
SELECT DISTINCT - 89 * - col1 FROM tab1
----
1246
4183
445

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT ALL COUNT( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9072
SELECT ALL COUNT ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col0 * col2 + - + col0 * - 24 FROM tab1 AS cor0
----
6120
7055
8372

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9074
SELECT - - ( col2 ) * + + ( 91 ) * - CAST( - + col0 AS SIGNED ) + col2 FROM tab0 AS cor0
----
64202
79180
873972

skipif mysql # not compatible
query I rowsort label-9074
SELECT - - ( col2 ) * + + ( 91 ) * - CAST ( - + col0 AS INTEGER ) + col2 FROM tab0 AS cor0
----
64202
79180
873972

onlyif mysql # aggregate syntax: 
query I rowsort label-9075
SELECT - COUNT( * ) + + + 50 + - COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9075
SELECT - COUNT ( * ) + + + 50 + - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
32

query I rowsort
SELECT 91 * - 11 FROM tab1 AS cor0
----
-1001
-1001
-1001

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT DISTINCT 55 * COUNT( * ) FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-9077
SELECT DISTINCT 55 * COUNT ( * ) FROM tab2 AS cor0
----
165

query I rowsort
SELECT + col0 * + - col2 / + col2 AS col0 FROM tab0 AS cor0 WHERE col0 NOT BETWEEN - 22 + - + ( - + col0 ) AND + 97
----

query I rowsort
SELECT 71 * + col2 * - col2 FROM tab1 AS cor0
----
-247151
-328304
-654336

query I rowsort
SELECT ALL - + col1 + + col2 - - col2 FROM tab0 AS cor0
----
-1
13
197

query I rowsort
SELECT DISTINCT - col2 + 1 * + col2 AS col0 FROM tab1 cor0
----
0

query III rowsort
SELECT * FROM tab0 WHERE - 7 * + col0 = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9083
SELECT DISTINCT CAST( NULL AS SIGNED ) - + CAST( + - CAST( col1 AS SIGNED ) AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9083
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + CAST ( + - CAST ( col1 AS INTEGER ) AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT COUNT( * ) + - SUM( - - 20 ) + 99 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-9084
SELECT COUNT ( * ) + - SUM ( - - 20 ) + 99 FROM tab0
----
42

query I rowsort
SELECT DISTINCT - ( - col0 ) + - col2 + - + col2 FROM tab0
----
-101
-79
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9086
SELECT ALL CAST( NULL AS SIGNED ) * + - ( - col2 ) / 95 + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9086
SELECT ALL CAST ( NULL AS INTEGER ) * + - ( - col2 ) / 95 + col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9087
SELECT col1 DIV - + col2 + + - col2 * 24 + + 93 * - + col1 * + + col2 * - - col1 FROM tab1
----
-138591
-13971348
-1752192

skipif mysql # not compatible
query I rowsort label-9087
SELECT col1 / - + col2 + + - col2 * 24 + + 93 * - + col1 * + + col2 * - - col1 FROM tab1
----
-138591
-13971348
-1752192

onlyif mysql # aggregate syntax: 
query I rowsort label-9088
SELECT COUNT( col2 ) + - 71 * - 91 FROM tab0
----
6464

skipif mysql # not compatible
query I rowsort label-9088
SELECT COUNT ( col2 ) + - 71 * - 91 FROM tab0
----
6464

onlyif mysql # DIV for integer division: 
query I rowsort label-9089
SELECT DISTINCT - - col2 * col0 + + + col0 DIV + col2 FROM tab0 AS cor0
----
705
878
9603

skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT - - col2 * col0 + + + col0 / + col2 FROM tab0 AS cor0
----
705
878
9603

query I rowsort
SELECT ALL col1 * + - col1 * + - col1 + - col0 AS col1 FROM tab2 AS cor0
----
132605
300688
456469

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * - 19 - 86 + + + col2 - + col1 + + col0 / 98 col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col2 * + - col2 AND NULL
----

query I rowsort
SELECT DISTINCT - + col2 * + - 52 + col1 * + col0 * 27 + - + col2 AS col1 FROM tab2 AS cor0
----
135096
138633
64515

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 58 + 49 * col0 / + - col1 IN ( + col2, - 48 / col0, col1 / + col0 * + col2 + + col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9094
SELECT col2, + 13 - + CAST( NULL AS SIGNED ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-9094
SELECT col2, + 13 - + CAST ( NULL AS INTEGER ) FROM tab1
----
59
NULL
68
NULL
96
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 86 + 54 BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT + + col2 AS col0 FROM tab2 AS cor0 WHERE 70 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL + + 30, col2 AS col2 FROM tab2 AS cor0
----
30
23
30
40
30
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9098
SELECT - COUNT( * ) - - SUM( DISTINCT - + col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( ( + col1 ) ) IS NULL
----
-202

skipif mysql # not compatible
query I rowsort label-9098
SELECT - COUNT ( * ) - - SUM ( DISTINCT - + col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( ( + col1 ) ) IS NULL
----
-202

query II rowsort
SELECT ALL - - 54 - - - 14 AS col1, col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col0 + - 91 * + ( - col2 ) ) = ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9100
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT + 42 * CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9100
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + 42 * CAST ( NULL AS INTEGER ) IS NULL
----
0

query I rowsort
SELECT + 92 * - col2 FROM tab1
----
-5428
-6256
-8832

query I rowsort
SELECT 92 * ( - col1 ) * + 99 FROM tab1
----
-127512
-428076
-45540

query I rowsort
SELECT DISTINCT - ( - - 22 ) FROM tab1
----
-22

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 <> ( + 41 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9105
SELECT + ( + ( + CAST( col1 AS SIGNED ) ) ) * - col1 FROM tab0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-9105
SELECT + ( + ( + CAST ( col1 AS INTEGER ) ) ) * - col1 FROM tab0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT + - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT + - col1 IS NULL
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - col0, + col1 + col0, - col0, + col2 * - - col1, 86 )
----

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE col1 BETWEEN - + col0 + + - col0 * + col2 AND NULL
----

query I rowsort
SELECT DISTINCT + ( - 36 ) FROM tab0 AS cor0 WHERE ( + col2 ) IS NULL
----

query II rowsort
SELECT DISTINCT col0 + - + 2, col0 AS col2 FROM tab2 AS cor0
----
44
46
62
64
73
75

query I rowsort
SELECT ALL - 57 * - + 14 + col1 * 12 + col2 AS col1 FROM tab1 AS cor0
----
1062
1430
917

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9112
SELECT ALL + COUNT( * ) + - + CAST( - AVG ( DISTINCT col1 ) AS SIGNED ) AS col0 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-9112
SELECT ALL + COUNT ( * ) + - + CAST ( - AVG ( DISTINCT col1 ) AS INTEGER ) AS col0 FROM tab1
----
25

query I rowsort
SELECT ALL - 77 * col2 * - 50 FROM tab0 AS cor0
----
180950
381150
38500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * ( col1 ) + + 28 col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
2237
224
53

query I rowsort
SELECT DISTINCT - col1 * + col1 + - col0 AS col1 FROM tab0 AS cor0
----
-528
-6576
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9116
SELECT DISTINCT MAX( + col1 ) + + 52 FROM tab0 AS cor0
----
133

skipif mysql # not compatible
query I rowsort label-9116
SELECT DISTINCT MAX ( + col1 ) + + 52 FROM tab0 AS cor0
----
133

query I rowsort
SELECT DISTINCT + - 70 AS col0 FROM tab2 AS cor0 WHERE + col2 = - 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT DISTINCT - - 13 + + + 13 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-9118
SELECT DISTINCT - - 13 + + + 13 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
29

query I rowsort
SELECT DISTINCT - 54 - + col2 AS col0 FROM tab2 AS cor0
----
-112
-77
-94

query I rowsort
SELECT col1 - - - 76 AS col2 FROM tab1
----
-29
-62
-71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9121
SELECT ALL + CAST( col1 AS SIGNED ) - - col1 FROM tab0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-9121
SELECT ALL + CAST ( col1 AS INTEGER ) - - col1 FROM tab0
----
162
2
42

query I rowsort
SELECT ALL + 28 FROM tab0 WHERE ( NOT NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 61 col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
61
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 39 * - + 68 col1 FROM tab2 AS cor0
----
106080
153816
60996

onlyif mysql # DIV for integer division: 
query I rowsort label-9125
SELECT - col0 DIV - + 89 AS col2 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9125
SELECT - col0 / - + 89 AS col2 FROM tab1 AS cor0
----
0
0
1

query II rowsort
SELECT ALL 68 * + 67, - col2 AS col0 FROM tab1 AS cor0
----
4556
-59
4556
-68
4556
-96

query II rowsort
SELECT - + 95 AS col0, col0 AS col2 FROM tab0 cor0 WHERE NOT - 74 * 77 NOT BETWEEN - col1 * + + 71 AND - + 57
----
-95
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + - col1 col1 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ALL 76 * - col2 FROM tab0 AS cor0
----
-3572
-7524
-760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9130
SELECT - + COUNT( * ) * - CAST( MAX( DISTINCT 44 ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
396

skipif mysql # not compatible
query I rowsort label-9130
SELECT - + COUNT ( * ) * - CAST ( MAX ( DISTINCT 44 ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
396

query I rowsort
SELECT ALL - col0 - + col1 * - col0 FROM tab0 WHERE NULL <= - + col0
----

query I rowsort
SELECT 60 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT - + SUM( col0 ) AS col2 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-9133
SELECT - + SUM ( col0 ) AS col2 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL + + 34 AS col2 FROM tab1 AS cor0 WHERE col0 * - + ( + + col2 ) NOT BETWEEN NULL AND - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9135
SELECT + - SUM( - col1 ) FROM tab0 cor0
----
103

skipif mysql # not compatible
query I rowsort label-9135
SELECT + - SUM ( - col1 ) FROM tab0 cor0
----
103

query I rowsort
SELECT ALL - col1 * - + col0 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9137
SELECT ALL CAST( NULL AS SIGNED ) * - MIN( + + col0 ) FROM tab2 AS cor0 WHERE NOT ( NOT - col0 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL CAST ( NULL AS INTEGER ) * - MIN ( + + col0 ) FROM tab2 AS cor0 WHERE NOT ( NOT - col0 IS NOT NULL )
----
NULL

query I rowsort
SELECT ALL - 80 + + - 21 AS col2 FROM tab2 AS cor0
----
-101
-101
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT DISTINCT SUM( DISTINCT - 25 ) * MIN( ALL + + col0 ) FROM tab1 AS cor0
----
-1275

skipif mysql # not compatible
query I rowsort label-9139
SELECT DISTINCT SUM ( DISTINCT - 25 ) * MIN ( ALL + + col0 ) FROM tab1 AS cor0
----
-1275

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( ( - col1 ) <= ( NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9141
SELECT ALL - 41 / - CAST( NULL AS SIGNED ) * - - col1 + + col1 col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9141
SELECT ALL - 41 / - CAST ( NULL AS INTEGER ) * - - col1 + + col1 col1 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE 61 + + - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9143
SELECT DISTINCT - col2 DIV - 68 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9143
SELECT DISTINCT - col2 / - 68 col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + ( col0 ) ) col2 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT ALL + ( + MAX( DISTINCT col1 ) ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9145
SELECT ALL + ( + MAX ( DISTINCT col1 ) ) AS col2 FROM tab0
----
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 <> - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + + col2 + + col2 + - - ( col2 ), + col2 FROM tab1 AS cor0
----
177
59
204
68
288
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT ALL + 76 + + COUNT( * ) FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-9149
SELECT ALL + 76 + + COUNT ( * ) FROM tab2 AS cor0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9150
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) + + + 2 * + COUNT( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
17

skipif mysql # not compatible
query I rowsort label-9150
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) + + + 2 * + COUNT ( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9151
SELECT ALL - CAST( NULL AS SIGNED ) + - - COUNT( ALL + col1 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL - CAST ( NULL AS INTEGER ) + - - COUNT ( ALL + col1 ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT 97 - + col2 FROM tab0
----
-2
50
87

query I rowsort
SELECT col2 + - 37 + - + 81 * + 58 * + col1 * + - col1 AS col1 FROM tab1 cor0
----
10377913
117472
920867

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9154
SELECT ALL 40 * col1 - + - col2 * - 55, CAST( + 93 AS SIGNED ) + + - col2 AS col2 FROM tab0 AS cor0
----
-5405
-6
290
83
655
46

skipif mysql # not compatible
query II rowsort label-9154
SELECT ALL 40 * col1 - + - col2 * - 55, CAST ( + 93 AS INTEGER ) + + - col2 AS col2 FROM tab0 AS cor0
----
-5405
-6
290
83
655
46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9155
SELECT 63 * CAST( ( + - col2 ) AS SIGNED ) * + col1 * col2 AS col1, col2 * + - col2 FROM tab1
----
-1096515
-3481
-13691664
-4624
-8128512
-9216

skipif mysql # not compatible
query II rowsort label-9155
SELECT 63 * CAST ( ( + - col2 ) AS INTEGER ) * + col1 * col2 AS col1, col2 * + - col2 FROM tab1
----
-1096515
-3481
-13691664
-4624
-8128512
-9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9156
SELECT ALL + CAST( NULL AS SIGNED ) * + 50 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9156
SELECT ALL + CAST ( NULL AS INTEGER ) * + 50 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT - SUM( col1 ) col1 FROM tab1
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9157
SELECT - SUM ( col1 ) col1 FROM tab1
----
-66

query III rowsort
SELECT * FROM tab2 WHERE NOT - 1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT - MAX( - + col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9159
SELECT - MAX ( - + col1 ) AS col1 FROM tab2
----
51

query II rowsort
SELECT DISTINCT - 20 AS col2, - 81 + 83 AS col2 FROM tab2 cor0
----
-20
2

query I rowsort
SELECT ( - + col1 ) * - col1 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT ALL + 39 * 57 * col2 * - 2 AS col2 FROM tab1
----
-262314
-302328
-426816

query III rowsort
SELECT * FROM tab2 WHERE NOT 2 * col0 + col1 * col0 IS NOT NULL
----

query I rowsort
SELECT 57 + - col2 + 89 * - 38 AS col0 FROM tab0 AS cor0
----
-3335
-3372
-3424

query I rowsort
SELECT - col1 + + col2 * 92 AS col0 FROM tab1 AS cor0
----
5423
6209
8818

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9166
SELECT DISTINCT - + col2 * CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-9166
SELECT DISTINCT - + col2 * CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-9167
SELECT ALL - col1 + - + 66 DIV - - 59 FROM tab1 AS cor0
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-9167
SELECT ALL - col1 + - + 66 / - - 59 FROM tab1 AS cor0
----
-15
-48
-6

query I rowsort
SELECT ALL - + col0 + - + col2 FROM tab2 AS cor0
----
-104
-133
-69

query II rowsort
SELECT - col1 * col1 AS col1, 40 FROM tab1
----
-196
40
-2209
40
-25
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9170
SELECT + col2 * + - 41 * - + col2 * - ( - - CAST( 36 AS SIGNED ) ) FROM tab2
----
-2361600
-4965264
-780804

skipif mysql # not compatible
query I rowsort label-9170
SELECT + col2 * + - 41 * - + col2 * - ( - - CAST ( 36 AS INTEGER ) ) FROM tab2
----
-2361600
-4965264
-780804

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE ( NULL NOT IN ( - col2, - col2, + - 97 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9172
SELECT + - AVG ( 77 ) FROM tab1 WHERE col2 > CAST( NULL AS SIGNED ) * - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9172
SELECT + - AVG ( 77 ) FROM tab1 WHERE col2 > CAST ( NULL AS INTEGER ) * - col1
----
NULL

query I rowsort
SELECT + col2 + + col1 * + - 57 AS col2 FROM tab2 WHERE - + col2 + col1 + - + col2 * - + col0 IS NOT NULL
----
-2884
-3761
-4349

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT + SUM( ALL - - col0 ) * - - COUNT( * ) FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-9174
SELECT + SUM ( ALL - - col0 ) * - - COUNT ( * ) FROM tab1 AS cor0
----
681

query I rowsort
SELECT DISTINCT + 80 * - + col1 AS col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= + 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT DISTINCT MIN( - - col1 ) - COUNT( * ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-9177
SELECT DISTINCT MIN ( - - col1 ) - COUNT ( * ) FROM tab2 AS cor0
----
48

query II rowsort
SELECT col0 AS col0, 38 + col0 FROM tab0 AS cor0
----
15
53
87
125
97
135

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT ALL + SUM( - col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9179
SELECT ALL + SUM ( - col1 ) AS col1 FROM tab1 AS cor0
----
-66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - col0 * - col1 IS NOT NULL
----

query II rowsort
SELECT - col2, + 7 AS col0 FROM tab0 AS cor0
----
-10
7
-47
7
-99
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT DISTINCT + COUNT( DISTINCT - 63 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9182
SELECT DISTINCT + COUNT ( DISTINCT - 63 ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT + COUNT( * ) + + 51 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
54

skipif mysql # not compatible
query I rowsort label-9183
SELECT + COUNT ( * ) + + 51 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
54

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 + - col1 * 88 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * 16 FROM tab0
----
1392
1552
240

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 * - + col2 IS NULL
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE - 24 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9188
SELECT DISTINCT CAST( + - COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT CAST ( + - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT - 77 BETWEEN - col1 AND - 86
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( - + 84 ) FROM tab2
----
-84
-84
-84

query I rowsort
SELECT DISTINCT + col2 * ( + 81 ) FROM tab2 AS cor0
----
1863
3240
4698

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > - 77 * + col2
----

query I rowsort
SELECT ALL - 22 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9194
SELECT CAST( - - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9194
SELECT CAST ( - - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL col1 + + 80 FROM tab0 AS cor0
----
101
161
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 16 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9197
SELECT ALL - col0 * CAST( NULL AS SIGNED ) + - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9197
SELECT ALL - col0 * CAST ( NULL AS INTEGER ) + - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9199
SELECT ALL ( - MIN( col2 ) ) + - 54 AS col1 FROM tab0 cor0
----
-64

skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL ( - MIN ( col2 ) ) + - 54 AS col1 FROM tab0 cor0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9200
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) + - 15 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9200
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) + - 15 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + ( + col1 ) + + col2 * ( - col1 ) FROM tab0
----
-189
-3726
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col1 col1, 47 * - col0 FROM tab1 WHERE NOT NULL IS NOT NULL AND NOT ( NOT ( NULL ) IS NOT NULL )
----

query I rowsort
SELECT - col2 + 23 FROM tab2
----
-17
-35
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9204
SELECT ALL 61 * - 12 * COUNT( * ) FROM tab0
----
-2196

skipif mysql # not compatible
query I rowsort label-9204
SELECT ALL 61 * - 12 * COUNT ( * ) FROM tab0
----
-2196

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT ALL - 90 * COUNT( * ) AS col2 FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL - 90 * COUNT ( * ) AS col2 FROM tab0
----
-270

query I rowsort
SELECT DISTINCT - 38 * + 70 AS col0 FROM tab2 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + - 50 + col2 + + col1 AS col1 FROM tab0 AS cor0
----
-19
50
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT DISTINCT + 22 + + + COUNT( * ) FROM tab1 cor0
----
25

skipif mysql # not compatible
query I rowsort label-9208
SELECT DISTINCT + 22 + + + COUNT ( * ) FROM tab1 cor0
----
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9209
SELECT ALL col0 * - CAST( NULL AS SIGNED ) - - - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9209
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) - - - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT DISTINCT + MIN( + + col2 ) - + 2 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT + MIN ( + + col2 ) - + 2 FROM tab0
----
8

query I rowsort
SELECT + ( - 89 ) - col1 FROM tab1
----
-103
-136
-94

query I rowsort
SELECT + 80 - - col2 + + + col1 FROM tab0
----
111
180
208

query I rowsort
SELECT col0 - + ( - 96 ) AS col2 FROM tab0
----
111
183
193

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9214
SELECT DISTINCT COUNT( * ) DIV 92 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9214
SELECT DISTINCT COUNT ( * ) / 92 FROM tab0
----
0

query II rowsort
SELECT - 59 * + - col1, 14 AS col0 FROM tab0 AS cor0
----
1239
14
4779
14
59
14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - 71 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - - ( col0 ) FROM tab2 AS cor0
----
2346
4928
5025

query II rowsort
SELECT ALL + 19 AS col2, col0 FROM tab2
----
19
46
19
64
19
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9219
SELECT ALL - 28 DIV + col2 * + col2 FROM tab1 WHERE ( NULL IS NULL )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9219
SELECT ALL - 28 / + col2 * + col2 FROM tab1 WHERE ( NULL IS NULL )
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( + 66 ) * + - col0 * + col0 FROM tab1
----
-171666
-476850
-546546

query II rowsort
SELECT 12, + 34 AS col0 FROM tab2
----
12
34
12
34
12
34

query II rowsort
SELECT ALL - 34, col0 FROM tab0
----
-34
15
-34
87
-34
97

onlyif mysql # aggregate syntax: 
query II rowsort label-9224
SELECT DISTINCT COUNT( * ) AS col1, - COUNT( * ) col1 FROM tab0
----
3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9224
SELECT DISTINCT COUNT ( * ) AS col1, - COUNT ( * ) col1 FROM tab0
----
3
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN + 17 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9226
SELECT ALL CAST( 30 AS SIGNED ) AS col2 FROM tab2
----
30
30
30

skipif mysql # not compatible
query I rowsort label-9226
SELECT ALL CAST ( 30 AS INTEGER ) AS col2 FROM tab2
----
30
30
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * + 16 + + - col1 col1 FROM tab2 WHERE ( NOT ( NULL ) IS NULL )
----

query I rowsort
SELECT - col2 * + + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3481
-4624
-9216

query I rowsort
SELECT DISTINCT - col1 * col2 + 42 + + col2 * ( col0 ) AS col1 FROM tab2 AS cor0
----
-478
-73
506

onlyif mysql # DIV for integer division: 
query II rowsort label-9230
SELECT ALL + - col1 AS col2, + col1 DIV + col1 FROM tab1 AS cor0
----
-14
1
-47
1
-5
1

skipif mysql # not compatible
query II rowsort label-9230
SELECT ALL + - col1 AS col2, + col1 / + col1 FROM tab1 AS cor0
----
-14
1
-47
1
-5
1

query I rowsort
SELECT ALL col2 + col0 * 51 FROM tab0
----
4447
5046
812

query I rowsort
SELECT 81 * 23 AS col0 FROM tab0
----
1863
1863
1863

query I rowsort
SELECT ALL + ( + ( + col1 ) ) FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9234
SELECT DISTINCT + COUNT( * ) + + MIN( CAST( NULL AS SIGNED ) ) / 73 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9234
SELECT DISTINCT + COUNT ( * ) + + MIN ( CAST ( NULL AS INTEGER ) ) / 73 AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9235
SELECT ALL CAST( col2 AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9235
SELECT ALL CAST ( col2 AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE 92 + 2 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 * ( 82 ) ) NOT BETWEEN ( NULL ) AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 * col0 + - col0 AS col2 FROM tab1
----
2550
7140
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT + COUNT( * ) - 5 AS col2 FROM tab0 WHERE NOT + col0 IS NULL
----
-2

skipif mysql # not compatible
query I rowsort label-9239
SELECT + COUNT ( * ) - 5 AS col2 FROM tab0 WHERE NOT + col0 IS NULL
----
-2

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) > - ( - col0 ) + - 32
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9241
SELECT DISTINCT + CAST( 16 AS SIGNED ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-9241
SELECT DISTINCT + CAST ( 16 AS INTEGER ) FROM tab2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9242
SELECT - MAX( ALL - ( col0 ) ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-9242
SELECT - MAX ( ALL - ( col0 ) ) AS col0 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9243
SELECT COUNT( * ) + - 90 AS col0 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-9243
SELECT COUNT ( * ) + - 90 AS col0 FROM tab0
----
-87

query I rowsort
SELECT DISTINCT 3 FROM tab1 WHERE ( 22 ) NOT BETWEEN + 15 * col1 AND + col2
----
3

query I rowsort
SELECT + col1 - - col1 * col0 AS col2 FROM tab2 WHERE NOT - col1 IS NULL
----
2397
5005
5092

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT COUNT( * ) * + 58 + 55 AS col0 FROM tab2 cor0
----
229

skipif mysql # not compatible
query I rowsort label-9246
SELECT COUNT ( * ) * + 58 + 55 AS col0 FROM tab2 cor0
----
229

query I rowsort
SELECT 20 + + col2 * col2 AS col1 FROM tab0 AS cor0
----
120
2229
9821

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT DISTINCT + ( SUM( DISTINCT + col1 ) ) - 44 col2 FROM tab1
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9248
SELECT DISTINCT + ( SUM ( DISTINCT + col1 ) ) - 44 col2 FROM tab1
----
22

query I rowsort
SELECT ALL - col0 * ( + col1 ) AS col1 FROM tab0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 23 col0 FROM tab0 cor0
----
-23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9251
SELECT - + CAST( - ( + MAX( col0 ) ) AS SIGNED ) * 65 FROM tab0 AS cor0
----
6305

skipif mysql # not compatible
query I rowsort label-9251
SELECT - + CAST ( - ( + MAX ( col0 ) ) AS INTEGER ) * 65 FROM tab0 AS cor0
----
6305

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 39 NOT IN ( col1 - - col1 )
----

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9254
SELECT DISTINCT + - 56 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-9254
SELECT DISTINCT + - 56 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9255
SELECT - - 60 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9255
SELECT - - 60 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + 15 AS col0 FROM tab2 AS cor0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 * - col2 col1 FROM tab0 AS cor0
----
-3854
-8118
-820

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT ALL + ( COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) < col2 + - 51
----
0

skipif mysql # not compatible
query I rowsort label-9258
SELECT ALL + ( COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT ( NULL ) < col2 + - 51
----
0

query I rowsort
SELECT DISTINCT 22 * + col2 FROM tab1 AS cor0
----
1298
1496
2112

query I rowsort
SELECT col2 * col2 * 82 AS col2 FROM tab0
----
181138
803682
8200

query I rowsort
SELECT DISTINCT 76 AS col1 FROM tab2 WHERE col0 >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col1 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9263
SELECT ALL * FROM tab2 WHERE ( + 38 / - col2 ) IN ( CAST( + 90 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9263
SELECT ALL * FROM tab2 WHERE ( + 38 / - col2 ) IN ( CAST ( + 90 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) = + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9265
SELECT DISTINCT MIN( ALL - 75 ) AS col1 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-9265
SELECT DISTINCT MIN ( ALL - 75 ) AS col1 FROM tab1
----
-75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 NOT BETWEEN col0 AND col2
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT ALL MIN( - + col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9267
SELECT ALL MIN ( - + col0 ) AS col2 FROM tab0
----
-97

query I rowsort
SELECT ALL - ( ( - col0 ) ) * - col2 AS col1 FROM tab1 WHERE NOT 10 IS NULL
----
-4896
-5015
-6188

query I rowsort
SELECT ALL + 85 FROM tab0 WHERE ( + 56 ) IS NOT NULL
----
85
85
85

onlyif mysql # DIV for integer division: 
query I rowsort label-9270
SELECT DISTINCT 63 DIV - col0 FROM tab0
----
-4
0

skipif mysql # not compatible
query I rowsort label-9270
SELECT DISTINCT 63 / - col0 FROM tab0
----
-4
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9271
SELECT ALL - 55 DIV + + col2 FROM tab0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-9271
SELECT ALL - 55 / + + col2 FROM tab0
----
-1
-5
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT MAX( ALL col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9272
SELECT MAX ( ALL col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9273
SELECT + MIN( DISTINCT 11 ) AS col1 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-9273
SELECT + MIN ( DISTINCT 11 ) AS col1 FROM tab2 AS cor0
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 39 col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NULL <> NULL AND NOT col1 / + col2 + ( col2 + - col1 ) BETWEEN 1 * 28 AND 14
----

query I rowsort
SELECT DISTINCT - col0 + + 9 * + 92 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
731
741
813

query I rowsort
SELECT ALL col1 * - 56 AS col0 FROM tab1
----
-2632
-280
-784

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 ) WHERE NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT 69 FROM tab1 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL ) > ( + 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT + COUNT( ALL col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9280
SELECT + COUNT ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT DISTINCT - COUNT( * ) + ( - SUM( - col1 ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
100

skipif mysql # not compatible
query I rowsort label-9281
SELECT DISTINCT - COUNT ( * ) + ( - SUM ( - col1 ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9282
SELECT DISTINCT + CAST( + 77 AS SIGNED ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9282
SELECT DISTINCT + CAST ( + 77 AS INTEGER ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL + col0 + + + 6 + + ( 83 ) AS col0 FROM tab1 AS cor0
----
140
174
180

query I rowsort
SELECT ALL col2 + - - col1 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT DISTINCT - + COUNT( * ) + + ( 10 ) * - MIN( + col0 ) AS col2 FROM tab1 AS cor0
----
-513

skipif mysql # not compatible
query I rowsort label-9285
SELECT DISTINCT - + COUNT ( * ) + + ( 10 ) * - MIN ( + col0 ) AS col2 FROM tab1 AS cor0
----
-513

onlyif mysql # DIV for integer division: 
query I rowsort label-9286
SELECT col0 DIV col2 + col0 col1 FROM tab0 cor0 WHERE ( 26 * + - ( 88 ) ) < 7 * col1
----
15
95
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9286
SELECT col0 / col2 + col0 col1 FROM tab0 cor0 WHERE ( 26 * + - ( 88 ) ) < 7 * col1
----
15
95
97

query I rowsort
SELECT ALL - col1 + - 92 FROM tab1 AS cor0
----
-106
-139
-97

query I rowsort
SELECT - 39 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - 64
----

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE 75 < ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9290
SELECT 97 + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9290
SELECT 97 + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 25 * - col0 - + - col1 AS col2 FROM tab1
----
-1261
-2120
-2228

query II rowsort
SELECT col2 + + col0, 76 AS col0 FROM tab1
----
144
76
147
76
159
76

onlyif mysql # DIV for integer division: 
query I rowsort label-9293
SELECT DISTINCT - col0 DIV + - col2 - - - col0 * 31 - ( + col1 + col2 ) FROM tab1
----
-1691
-2698
-2935

skipif mysql # not compatible
query I rowsort label-9293
SELECT DISTINCT - col0 / + - col2 - - - col0 * 31 - ( + col1 + col2 ) FROM tab1
----
-1691
-2698
-2935

query I rowsort
SELECT 46 + + col0 FROM tab1
----
131
137
97

query I rowsort
SELECT col2 FROM tab2 WHERE + - col1 + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col0 + + + col1 + 74 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9297
SELECT - ( - MAX( + col2 ) ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9297
SELECT - ( - MAX ( + col2 ) ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT col0 * 74 AS col1 FROM tab2
----
3404
4736
5550

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE NOT ( 82 ) IS NULL
----
-51
-67
-77

query I rowsort
SELECT col1 * - + col1 * ( + col0 ) * - col0 AS col0 FROM tab0
----
1476225
3337929
9409

query I rowsort
SELECT ALL + 95 - - col1 AS col0 FROM tab2 AS cor0
----
146
162
172

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT - + 53 * COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 > + 26
----
-159

skipif mysql # not compatible
query I rowsort label-9303
SELECT - + 53 * COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 > + 26
----
-159

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 <= ( + 74 * - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 NOT BETWEEN ( NULL ) AND ( col0 - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( + ( col0 ) ) * - col0 * + 39 + 60 ) NOT BETWEEN + 46 AND col2 + - 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9307
SELECT DISTINCT - COUNT( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9307
SELECT DISTINCT - COUNT ( DISTINCT + col2 ) AS col1 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - 18 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT ALL COUNT( * ) * + 92 AS col1 FROM tab2 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-9309
SELECT ALL COUNT ( * ) * + 92 AS col1 FROM tab2 AS cor0
----
276

query I rowsort
SELECT col1 * + ( 20 ) AS col1 FROM tab0 AS cor0
----
1620
20
420

query I rowsort
SELECT + 37 + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + col1 * + 19 * - col1 > NULL
----

query I rowsort
SELECT + 35 AS col2 FROM tab1 AS cor0 WHERE NOT ( 35 ) NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9314
SELECT + - COUNT( * ) AS col2 FROM tab1 WHERE NOT ( NOT ( NULL IS NULL ) )
----
-3

skipif mysql # not compatible
query I rowsort label-9314
SELECT + - COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( NOT ( NULL IS NULL ) )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9315
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0, col1 * + - col2 AS col0 FROM tab0
----
NULL
-210
NULL
-3807
NULL
-99

skipif mysql # not compatible
query II rowsort label-9315
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0, col1 * + - col2 AS col0 FROM tab0
----
NULL
-210
NULL
-3807
NULL
-99

query I rowsort
SELECT DISTINCT 94 + col1 AS col0 FROM tab0 WHERE col1 + + + 36 + - col0 * 10 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9317
SELECT ALL + col2 * CAST( - col1 AS SIGNED ) * - col2 AS col1, + col2 * + - col2 col2 FROM tab0
----
178929
-2209
2100
-100
9801
-9801

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9317
SELECT ALL + col2 * CAST ( - col1 AS INTEGER ) * - col2 AS col1, + col2 * + - col2 col2 FROM tab0
----
178929
-2209
2100
-100
9801
-9801

query I rowsort
SELECT + ( ( - - col0 ) ) AS col0 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9319
SELECT DISTINCT - col1 col0, CAST( NULL AS SIGNED ) FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9319
SELECT DISTINCT - col1 col0, CAST ( NULL AS INTEGER ) FROM tab1
----
-14
NULL
-47
NULL
-5
NULL

query I rowsort
SELECT ALL + 56 * + 92 FROM tab0
----
5152
5152
5152

query I rowsort
SELECT DISTINCT + col0 + - 73 FROM tab2 AS cor0
----
-27
-9
2

query I rowsort
SELECT ALL - + 43 FROM tab2 AS cor0 WHERE + 59 * - col0 IS NOT NULL
----
-43
-43
-43

query II rowsort
SELECT col2 AS col0, - col2 + + col0 FROM tab2 cor0
----
23
23
40
24
58
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 12 col1 FROM tab2
----
58
76
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT COUNT( * ) * ( - + 87 ) + + 0 AS col1 FROM tab1
----
-261

skipif mysql # not compatible
query I rowsort label-9325
SELECT COUNT ( * ) * ( - + 87 ) + + 0 AS col1 FROM tab1
----
-261

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * - + col1 + + + 91 > - - 11 + 54
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 44 - + - col0 + - + col1 <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - col1 + - col1 - ( + col0 ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9329
SELECT COUNT( - + col2 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9329
SELECT COUNT ( - + col2 ) col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 * 95 ) = NULL
----

query I rowsort
SELECT ALL col1 + + 11 * - col1 * - + col1 FROM tab1
----
2170
24346
280

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col2 / + 28 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * + - col1 - col2 * 62 AS col2 FROM tab2
----
1429
2448
920

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT DISTINCT - 88 + - + COUNT( * ) FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-9334
SELECT DISTINCT - 88 + - + COUNT ( * ) FROM tab0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT DISTINCT COUNT( * ) - - 93 AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9335
SELECT DISTINCT COUNT ( * ) - - 93 AS col2 FROM tab1
----
96

query I rowsort
SELECT + col2 - + 33 AS col1 FROM tab1
----
26
35
63

query I rowsort
SELECT DISTINCT + 62 - + col2 FROM tab1
----
-34
-6
3

query I rowsort
SELECT - + col0 * + + 91 AS col1 FROM tab0 AS cor0
----
-1365
-7917
-8827

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9339
SELECT ( + + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9339
SELECT ( + + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9340
SELECT - + COUNT( * ) * + - 51 + + COUNT( CAST( + col1 AS SIGNED ) ) + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND col1 * + - 31 * + 34
----
0

skipif mysql # not compatible
query I rowsort label-9340
SELECT - + COUNT ( * ) * + - 51 + + COUNT ( CAST ( + col1 AS INTEGER ) ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND col1 * + - 31 * + 34
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT DISTINCT - - SUM( - - ( col1 ) ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT - - SUM ( - - ( col1 ) ) FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT 25 + + COUNT( * ) * + - COUNT( * ) AS col0 FROM tab1, tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-9342
SELECT 25 + + COUNT ( * ) * + - COUNT ( * ) AS col0 FROM tab1, tab2 AS cor0
----
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9343
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 58 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9343
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 58 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE + col0 <= ( + - col0 * - col1 + - + 50 * + + col0 )
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE NOT ( - 63 ) IS NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9346
SELECT ALL CAST( NULL AS SIGNED ) * + - 7 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9346
SELECT ALL CAST ( NULL AS INTEGER ) * + - 7 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT - COUNT( * ) * 28 AS col1 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9347
SELECT - COUNT ( * ) * 28 AS col1 FROM tab1 AS cor0
----
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9348
SELECT - - CAST( - - col1 AS SIGNED ) * - - col2 * col2 * - - CAST( NULL AS SIGNED ) * + 60 + col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9348
SELECT - - CAST ( - - col1 AS INTEGER ) * - - col2 * col2 * - - CAST ( NULL AS INTEGER ) * + 60 + col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9349
SELECT col0 * - - CAST( 88 AS SIGNED ) * ( col1 ) FROM tab2 cor0
----
206448
433664
442200

skipif mysql # not compatible
query I rowsort label-9349
SELECT col0 * - - CAST ( 88 AS INTEGER ) * ( col1 ) FROM tab2 cor0
----
206448
433664
442200

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT ALL SUM( ( + col0 ) ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9350
SELECT ALL SUM ( ( + col0 ) ) FROM tab2 AS cor0
----
185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab2 cor0 WHERE NOT col1 NOT IN ( - 20, - col0 - - - 91, - ( col1 ) - - + 2 - + col1 + - col2 * 33 * - col0 )
----

query I rowsort
SELECT - + col2 AS col0 FROM tab2 WHERE NOT + 96 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9353
SELECT - col2 * - - col2 * + col0 - CAST( - col2 AS SIGNED ) + - ( - + 8 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-295818
-420708
-469912

skipif mysql # not compatible
query I rowsort label-9353
SELECT - col2 * - - col2 * + col0 - CAST ( - col2 AS INTEGER ) + - ( - + 8 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-295818
-420708
-469912

query I rowsort
SELECT - - col1 - + col2 FROM tab0 WHERE NOT - - 94 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - - 41 FROM tab2
----
2091
2747
3157

query II rowsort
SELECT + + ( + col2 ), 74 AS col2 FROM tab0 WHERE + - col0 >= NULL
----

query I rowsort
SELECT - col1 + - + col1 AS col1 FROM tab1
----
-10
-28
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT ALL MIN( DISTINCT - + col2 ) FROM tab2 WHERE 11 IN ( + + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9358
SELECT ALL MIN ( DISTINCT - + col2 ) FROM tab2 WHERE 11 IN ( + + col0 )
----
NULL

query I rowsort
SELECT ALL - 46 * - - col0 * + col0 FROM tab2
----
-188416
-258750
-97336

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT DISTINCT + SUM( + - col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-9360
SELECT DISTINCT + SUM ( + - col1 ) AS col2 FROM tab2
----
-195

query I rowsort
SELECT DISTINCT - 52 + - + ( - - 46 ) * col2 AS col2 FROM tab2 AS cor0
----
-1110
-1892
-2720

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT ALL + ( SUM( - col1 ) ) col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9362
SELECT ALL + ( SUM ( - col1 ) ) col0 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT ALL col1 + col0 + + - col1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9364
SELECT 75 * - + COUNT( * ) AS col1 FROM tab1
----
-225

skipif mysql # not compatible
query I rowsort label-9364
SELECT 75 * - + COUNT ( * ) AS col1 FROM tab1
----
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT 23 * - - COUNT( * ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-9365
SELECT 23 * - - COUNT ( * ) FROM tab2
----
69

query I rowsort
SELECT ALL - col2 * + - 25 AS col0 FROM tab0 AS cor0
----
1175
2475
250

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( col0 ) + + - ( + + col0 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9368
SELECT - CAST( - col2 AS SIGNED ) - - 30 AS col2 FROM tab1 cor0
----
126
89
98

skipif mysql # not compatible
query I rowsort label-9368
SELECT - CAST ( - col2 AS INTEGER ) - - 30 AS col2 FROM tab1 cor0
----
126
89
98

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + - 54 ) IS NULL
----

query I rowsort
SELECT - + col1 FROM tab2 WHERE - col0 / col0 * - - 18 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9371
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 + 17 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9371
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 + 17 FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NULL = - 92
----

query II rowsort
SELECT - ( + 50 ) AS col2, 53 AS col0 FROM tab1
----
-50
53
-50
53
-50
53

query III rowsort
SELECT * FROM tab1 WHERE - 18 / - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col2 * ( col2 ) col2 FROM tab0
----
-178929
-2100
-9801

onlyif mysql # aggregate syntax: 
query II rowsort label-9376
SELECT MIN( DISTINCT col2 ), + 88 - - COUNT( * ) + + 81 * - MIN( + 54 ) AS col2 FROM tab1
----
59
-4283

skipif mysql # not compatible
query II rowsort label-9376
SELECT MIN ( DISTINCT col2 ), + 88 - - COUNT ( * ) + + 81 * - MIN ( + 54 ) AS col2 FROM tab1
----
59
-4283

onlyif mysql # DIV for integer division: 
query I rowsort label-9377
SELECT DISTINCT - col0 DIV - col2 FROM tab0 cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-9377
SELECT DISTINCT - col0 / - col2 FROM tab0 cor0
----
0
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9378
SELECT ALL - + COUNT( * ) * + MIN( 6 ) FROM tab0 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9378
SELECT ALL - + COUNT ( * ) * + MIN ( 6 ) FROM tab0 cor0
----
-18

query II rowsort
SELECT ALL ( - ( - - col0 ) ) AS col2, - col0 * - + col0 FROM tab1 AS cor0
----
-51
2601
-85
7225
-91
8281

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - ( - - col1 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9381
SELECT col0 DIV + 50 col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9381
SELECT col0 / + 50 col1 FROM tab2
----
0
1
1

query I rowsort
SELECT DISTINCT + 40 AS col2 FROM tab2 WHERE NULL NOT IN ( - - col2 * - col2 - ( - 59 ) * - col0 * - 66 + + - 69, col0 / - col2 / - 25 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9383
SELECT col2, 67 DIV - - col1 AS col2 FROM tab2 AS cor0
----
23
1
40
0
58
1

skipif mysql # not compatible
query II rowsort label-9383
SELECT col2, 67 / - - col1 AS col2 FROM tab2 AS cor0
----
23
1
40
0
58
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT DISTINCT + MAX( 27 ) AS col0 FROM tab1 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT + MAX ( 27 ) AS col0 FROM tab1 AS cor0
----
27

query I rowsort
SELECT + - 29 + + ( - + col0 ) FROM tab2 cor0
----
-104
-75
-93

query I rowsort
SELECT DISTINCT + ( - 59 ) FROM tab1 AS cor0
----
-59

query II rowsort
SELECT - col1, - col2 AS col1 FROM tab2 cor0
----
-51
-23
-67
-58
-77
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT ALL - - 90 + - COUNT( * ) FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL - - 90 + - COUNT ( * ) FROM tab1 AS cor0
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9389
SELECT ( - SUM( DISTINCT 4 ) ) AS col0 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-9389
SELECT ( - SUM ( DISTINCT 4 ) ) AS col0 FROM tab2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-9390
SELECT DISTINCT 33 * - - COUNT( * ) * - 35 FROM tab1
----
-3465

skipif mysql # not compatible
query I rowsort label-9390
SELECT DISTINCT 33 * - - COUNT ( * ) * - 35 FROM tab1
----
-3465

query I rowsort
SELECT + 0 AS col2 FROM tab1 WHERE + - col2 - + - col0 NOT BETWEEN NULL AND ( + + 70 * - col1 * - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9392
SELECT DISTINCT - ( col2 ) DIV col1 + - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9392
SELECT DISTINCT - ( col2 ) / col1 + - col2 AS col1 FROM tab2 AS cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * + col2 * - 63 + col0 - + 98 col1 FROM tab2 cor0
----
161246
274027
66602

query I rowsort
SELECT DISTINCT col2 * col1 + + 71 AS col2 FROM tab0 AS cor0
----
170
281
3878

onlyif mysql # aggregate syntax: 
query I rowsort label-9395
SELECT ALL COUNT( * ) AS col0 FROM tab1, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-9395
SELECT ALL COUNT ( * ) AS col0 FROM tab1, tab0 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9396
SELECT + CAST( - 63 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

skipif mysql # not compatible
query I rowsort label-9396
SELECT + CAST ( - 63 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9397
SELECT ALL - - 81 DIV - + COUNT( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9397
SELECT ALL - - 81 / - + COUNT ( ALL col1 ) AS col0 FROM tab0 AS cor0
----
-27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9398
SELECT + CAST( + + COUNT( * ) AS SIGNED ) DIV + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9398
SELECT + CAST ( + + COUNT ( * ) AS INTEGER ) / + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
1

query I rowsort
SELECT - ( - 56 ) AS col0 FROM tab1 cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT DISTINCT 48 + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9400
SELECT DISTINCT 48 + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
45

query I rowsort
SELECT ALL + 79 * - col2 AS col2 FROM tab2
----
-1817
-3160
-4582

query I rowsort
SELECT + ( + 63 ) FROM tab2
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT DISTINCT MAX( DISTINCT + - col0 ) * + - 17 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-9403
SELECT DISTINCT MAX ( DISTINCT + - col0 ) * + - 17 FROM tab0
----
255

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9405
SELECT DISTINCT + - col1 DIV + col0 AS col0, col0 AS col0 FROM tab2 AS cor0
----
-1
46
-1
64
0
75

skipif mysql # not compatible
query II rowsort label-9405
SELECT DISTINCT + - col1 / + col0 AS col0, col0 AS col0 FROM tab2 AS cor0
----
-1
46
-1
64
0
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9406
SELECT - 56 col1, ( - + ( + col1 ) ) * 14 + - CAST( NULL AS SIGNED ) + col0 AS col0 FROM tab1 AS cor0
----
-56
NULL
-56
NULL
-56
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9406
SELECT - 56 col1, ( - + ( + col1 ) ) * 14 + - CAST ( NULL AS INTEGER ) + col0 AS col0 FROM tab1 AS cor0
----
-56
NULL
-56
NULL
-56
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT - MIN( ALL col0 ) col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9407
SELECT - MIN ( ALL col0 ) col1 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col0 )
----

query I rowsort
SELECT + - 60 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

onlyif mysql # aggregate syntax: 
query II rowsort label-9410
SELECT DISTINCT + MAX( + col0 ) * + - 75, ( + MAX( ALL + col0 ) ) + + COUNT( * ) col1 FROM tab0
----
-7275
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9410
SELECT DISTINCT + MAX ( + col0 ) * + - 75, ( + MAX ( ALL + col0 ) ) + + COUNT ( * ) col1 FROM tab0
----
-7275
100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 78, - 32 col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 6333ab2f00a391845287cea46b471898

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( - - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 ) NOT IN ( + col1, 31 )
----

query I rowsort
SELECT + 57 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
57
57
57

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE + col0 > 63
----
-67
-77

query I rowsort
SELECT ALL col1 + - 74 AS col0 FROM tab0
----
-53
-73
7

query I rowsort
SELECT col1 + - + col0 + col0 + - col2 FROM tab0
----
-98
11
34

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9418
SELECT ALL + CAST( NULL AS DECIMAL ) AS col1, + col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-9418
SELECT ALL + CAST ( NULL AS REAL ) AS col1, + col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT col2 + col1 * + - col1 FROM tab1
----
-100
-2141
34

query I rowsort
SELECT + col2 + 5 FROM tab0
----
104
15
52

onlyif mysql # DIV for integer division: 
query I rowsort label-9421
SELECT ALL - col0 DIV ( 62 ) + - col2 - + - col1 + + ( col0 ) * + col2 + - ( + - col1 ) AS col2 FROM tab2 AS cor0
----
1137
2673
4425

skipif mysql # not compatible
query I rowsort label-9421
SELECT ALL - col0 / ( 62 ) + - col2 - + - col1 + + ( col0 ) * + col2 + - ( + - col1 ) AS col2 FROM tab2 AS cor0
----
1137
2673
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT DISTINCT COUNT( * ) - + COUNT( * ) col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9422
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT 79 + col1 AS col1 FROM tab0 cor0
----
100
160
80

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9424
SELECT col0 - col0 AS col2, 10 * CAST( + col0 AS SIGNED ) AS col1 FROM tab0
----
0
150
0
870
0
970

skipif mysql # not compatible
query II rowsort label-9424
SELECT col0 - col0 AS col2, 10 * CAST ( + col0 AS INTEGER ) AS col1 FROM tab0
----
0
150
0
870
0
970

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9425
SELECT ALL CAST( NULL AS SIGNED ) * + - COUNT( * ) / ( - COUNT( * ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9425
SELECT ALL CAST ( NULL AS INTEGER ) * + - COUNT ( * ) / ( - COUNT ( * ) ) FROM tab0
----
NULL

query I rowsort
SELECT 77 AS col1 FROM tab2 cor0
----
77
77
77

query II rowsort
SELECT DISTINCT col1 * + - col0 * + 52, - col0 * - 45 + col1 + col1 + + ( + 17 ) * + 96 - - + 43 AS col1 FROM tab0
----
-5044
6042
-63180
2512
-95004
5632

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9428
SELECT ALL - COUNT( * ) DIV - + 57 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL - COUNT ( * ) / - + 57 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9429
SELECT ALL + SUM( CAST( NULL AS SIGNED ) ) / - 82 / - - 80 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL + SUM ( CAST ( NULL AS INTEGER ) ) / - 82 / - - 80 AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9430
SELECT ALL 67, + COUNT( * ) * 1 col1 FROM tab1 AS cor0
----
67
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9430
SELECT ALL 67, + COUNT ( * ) * 1 col1 FROM tab1 AS cor0
----
67
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9431
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2, - CAST( + 80 AS SIGNED ) * - 94 * + col0 + + + 3 * + 12 col2 FROM tab0 AS cor0
----
NULL
112836
NULL
654276
NULL
729476

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9431
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2, - CAST ( + 80 AS INTEGER ) * - 94 * + col0 + + + 3 * + 12 col2 FROM tab0 AS cor0
----
NULL
112836
NULL
654276
NULL
729476

query II rowsort
SELECT - 9 AS col2, col1 AS col2 FROM tab1 AS cor0
----
-9
14
-9
47
-9
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9433
SELECT ALL + COUNT( * ) DIV 81 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL + COUNT ( * ) / 81 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9434
SELECT CAST( - col2 AS SIGNED ) * col0 + + 70 + - col2 * + - col1 AS col0 FROM tab2 WHERE NOT ( NOT ( NOT NULL >= - 54 ) )
----

skipif mysql # not compatible
query I rowsort label-9434
SELECT CAST ( - col2 AS INTEGER ) * col0 + + 70 + - col2 * + - col1 AS col0 FROM tab2 WHERE NOT ( NOT ( NOT NULL >= - 54 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9435
SELECT - COUNT( * ) AS col2, 84 * - 48 FROM tab0
----
-3
-4032

skipif mysql # not compatible
query II rowsort label-9435
SELECT - COUNT ( * ) AS col2, 84 * - 48 FROM tab0
----
-3
-4032

query I rowsort
SELECT ALL + + ( - + ( - - col0 ) ) AS col2 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT ALL - col1 + col0 + 28 AS col0 FROM tab0 AS cor0
----
-38
124
94

query I rowsort
SELECT + + col0 + - 3 AS col1 FROM tab1 AS cor0
----
48
82
88

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 20 * col2 + - - 10 - + + col0 * - ( col0 ) + + col2 NOT BETWEEN NULL AND + col2
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT + ( - + 0 ) + + - 78 * - + ( col1 ) FROM tab0
----
1638
6318
78

query I rowsort
SELECT DISTINCT + ( - 17 ) FROM tab2
----
-17

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col2 NOT IN ( + + col2 + col0, 32 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 82 - + col2 FROM tab1 AS cor0
----
-141
-150
-178

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9444
SELECT DISTINCT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9444
SELECT DISTINCT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9445
SELECT col1 DIV col2 + - - 58 FROM tab1 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-9445
SELECT col1 / col2 + - - 58 FROM tab1 AS cor0
----
58
58
58

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT 13 * - 35 > - col1 + - + ( - 3 ) + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col1 * + col1 col2 FROM tab0 AS cor0
----
-431
-6514
98

query I rowsort
SELECT + ( + 71 ) + - + col0 AS col0 FROM tab0 AS cor0
----
-16
-26
56

query I rowsort
SELECT DISTINCT 59 - - - 58 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9450
SELECT DISTINCT + COUNT( * ), - COUNT( * ) * 53 AS col0 FROM tab2 AS cor0
----
3
-159

skipif mysql # not compatible
query II rowsort label-9450
SELECT DISTINCT + COUNT ( * ), - COUNT ( * ) * 53 AS col0 FROM tab2 AS cor0
----
3
-159

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9451
SELECT ALL col2 col2, col1 + ( + CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) ) + - - col1 / + 15 - - col2 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9451
SELECT ALL col2 col2, col1 + ( + CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) ) + - - col1 / + 15 - - col2 FROM tab0 cor0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9452
SELECT col1 * 18 DIV col1 AS col2 FROM tab0 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-9452
SELECT col1 * 18 / col1 AS col2 FROM tab0 AS cor0
----
18
18
18

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col0 + + + col0 col0 FROM tab0 AS cor0
----
15
30
87
174
97
194

onlyif mysql # DIV for integer division: 
query I rowsort label-9455
SELECT ALL col2 DIV - col1 + col1 + 0 AS col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9455
SELECT ALL col2 / - col1 + col1 + 0 AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9456
SELECT 41 DIV + col1 AS col1 FROM tab1
----
0
2
8

skipif mysql # not compatible
query I rowsort label-9456
SELECT 41 / + col1 AS col1 FROM tab1
----
0
2
8

query I rowsort
SELECT DISTINCT + ( + col1 ) * + + col2 FROM tab2
----
1173
3080
3886

onlyif mysql # DIV for integer division: 
query II rowsort label-9458
SELECT ALL col0 DIV - 12, - col2 + + 73 * + col0 col2 FROM tab1
----
-4
3627
-7
6146
-7
6575

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9458
SELECT ALL col0 / - 12, - col2 + + 73 * + col0 col2 FROM tab1
----
-4
3627
-7
6146
-7
6575

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT DISTINCT + COUNT( col2 ) * + 85 FROM tab0
----
255

skipif mysql # not compatible
query I rowsort label-9459
SELECT DISTINCT + COUNT ( col2 ) * + 85 FROM tab0
----
255

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 AS cor0 WHERE NOT - + 45 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query I rowsort
SELECT 38 * + + col0 * col0 * + + 40 * col0 FROM tab1
----
1145427920
201629520
933470000

query I rowsort
SELECT DISTINCT - ( - 48 ) AS col2 FROM tab1
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 40 col2 FROM tab1 AS cor0
----
-40

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + ( + - col0 ) - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9465
SELECT + 43 * - COUNT( * ) + 95 AS col1 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-9465
SELECT + 43 * - COUNT ( * ) + 95 AS col1 FROM tab0 AS cor0
----
-34

query I rowsort
SELECT DISTINCT + - col1 + + col0 - ( 5 ) FROM tab2 AS cor0
----
-10
-18
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col0 + col0 col1, + 3 col2 FROM tab2 AS cor0
----
0
3
0
3
0
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 / - col0 IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT + ( + ( - 17 ) ) IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + + 64 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
64

query I rowsort
SELECT 35 * col0 AS col0 FROM tab2
----
1610
2240
2625

query I rowsort
SELECT col0 * 2 FROM tab2
----
128
150
92

query I rowsort
SELECT ALL - - col1 + + - col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - ( + col0 ) + - col2 FROM tab1 AS cor0
----
-144
-147
-159

query II rowsort
SELECT DISTINCT 80, col0 FROM tab1 AS cor0 WHERE NOT col0 + - col2 <> + col1
----

query I rowsort
SELECT ALL - col0 + + ( + 95 ) FROM tab1 AS cor0
----
10
4
44

query II rowsort
SELECT - col0 + col0 + 41, col1 - + - col2 * 30 * + - 61 * 18 * - col0 AS col2 FROM tab1 AS cor0
----
41
161274254
41
165194105
41
203832767

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9478
SELECT CAST( - - 73 AS SIGNED ) + - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-9478
SELECT CAST ( - - 73 AS INTEGER ) + - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
76

query I rowsort
SELECT DISTINCT + + col1 + - + col1 AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 / 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT DISTINCT COUNT( * ) + + MIN( DISTINCT + - col1 ) FROM tab1
----
-44

skipif mysql # not compatible
query I rowsort label-9481
SELECT DISTINCT COUNT ( * ) + + MIN ( DISTINCT + - col1 ) FROM tab1
----
-44

query III rowsort
SELECT * FROM tab1 WHERE + 97 + - col2 * + - 7 * - col0 * + 71 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( - col2 ) - 65 AS col0 FROM tab0
----
-112
-164
-75

query II rowsort
SELECT DISTINCT col0, - col0 FROM tab0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT DISTINCT 56 - - col0 AS col2 FROM tab1 WHERE NOT col2 * col0 + col2 + - - col0 + - 95 * + 71 + + ( - col2 ) IS NULL
----
107
141
147

onlyif mysql # DIV for integer division: 
query II rowsort label-9486
SELECT ALL + 62 AS col0, + 4 DIV - col1 FROM tab0
----
62
-4
62
0
62
0

skipif mysql # not compatible
query II rowsort label-9486
SELECT ALL + 62 AS col0, + 4 / - col1 FROM tab0
----
62
-4
62
0
62
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 NOT IN ( - - 60 + - col0 * + col2, + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9488
SELECT ALL 6 DIV 23 * 28 - + ( + col0 ) * - 99 + col0 + + + 77 AS col0 FROM tab1 AS cor0
----
5177
8577
9177

skipif mysql # not compatible
query I rowsort label-9488
SELECT ALL 6 / 23 * 28 - + ( + col0 ) * - 99 + col0 + + + 77 AS col0 FROM tab1 AS cor0
----
5177
8577
9177

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 76 + col2 NOT IN ( - col2, - col1 / - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9489
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 76 + col2 NOT IN ( - col2, - col1 / - col0 )
----
0

query I rowsort
SELECT - 12 - 98 FROM tab2 AS cor0
----
-110
-110
-110

query I rowsort
SELECT DISTINCT + 33 AS col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - ( + 80 ) AS col0, - 69 col1 FROM tab0 AS cor0
----
80
-69
80
-69
80
-69

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 52 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT DISTINCT ( - + COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9494
SELECT DISTINCT ( - + COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 >= NULL
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 45 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * 31 * + - 6 * - 88 col1 FROM tab0 cor0
----
1325808
16368
343728

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 + - - 19 * - + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9498
SELECT 10 DIV - col2 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9498
SELECT 10 / - col2 AS col0 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 * + 96 col2 FROM tab0
----
2688
2688
2688

query I rowsort
SELECT - col1 * - 73 * col1 FROM tab1
----
14308
161257
1825

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT - + SUM( col1 ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9501
SELECT - + SUM ( col1 ) AS col2 FROM tab1 AS cor0
----
-66

query II rowsort
SELECT DISTINCT - col0, - col2 AS col2 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

query III rowsort
SELECT * FROM tab2 WHERE + 38 < - - col1 * - ( - + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9505
SELECT ALL 64 + - + 65 + + COUNT( * ) + - 28, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-26
3

skipif mysql # not compatible
query II rowsort label-9505
SELECT ALL 64 + - + 65 + + COUNT ( * ) + - 28, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-26
3

query I rowsort
SELECT - 66 AS col2 FROM tab0 AS cor0 WHERE - 6 + 38 * col2 <= - + 77
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 * + - col1 * - - col1 col2 FROM tab1 AS cor0
----
-1125
-8820
-99405

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9508
SELECT - CAST( - MAX( ALL col2 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9508
SELECT - CAST ( - MAX ( ALL col2 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9509
SELECT ALL + 59 * col2 + + - CAST( + - col2 AS SIGNED ) * col1 AS col0 FROM tab2 AS cor0 WHERE ( - 39 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9509
SELECT ALL + 59 * col2 + + - CAST ( + - col2 AS INTEGER ) * col1 AS col0 FROM tab2 AS cor0 WHERE ( - 39 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 6 NOT BETWEEN + 69 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT COUNT( DISTINCT - + col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9511
SELECT COUNT ( DISTINCT - + col0 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT col1 + + 20 AS col1 FROM tab2
----
71
87
97

query I rowsort
SELECT DISTINCT + col2 * + 55 AS col0 FROM tab0
----
2585
5445
550

query III rowsort
SELECT * FROM tab0 WHERE - - ( - col2 ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN - col2 * 48 AND ( - - 1 )
----

query I rowsort
SELECT - - col0 + - 16 FROM tab0 cor0
----
-1
71
81

query I rowsort
SELECT + 73 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT DISTINCT - - 67 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 24 col2 FROM tab0 AS cor0
----
-1128
-2376
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT - SUM( - ( + 39 ) ) FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-9520
SELECT - SUM ( - ( + 39 ) ) FROM tab1 AS cor0
----
117

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 16 AS col0, + 46 col1 FROM tab2 cor0
----
16
46
16
46
16
46

query II rowsort
SELECT DISTINCT col1, col1 AS col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9523
SELECT + CAST( - - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT ( col2 ) * - col2 / - + col1 - - + col2 + ( - + col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9523
SELECT + CAST ( - - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT ( col2 ) * - col2 / - + col1 - - + col2 + ( - + col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, + col1 FROM tab2 AS cor0
----
51
51
67
67
77
77

query II rowsort
SELECT + col1, ( + col0 ) FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT ALL 22 * + col2 + - 47 + - col2 * - - 17 * + col0 AS col0 FROM tab2 AS cor0 WHERE NOT - 9 - + ( + 4 ) >= col0
----
-17527
-42687
-72721

onlyif mysql # aggregate syntax: 
query I rowsort label-9527
SELECT ALL + SUM( DISTINCT - 26 ) AS col1 FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-9527
SELECT ALL + SUM ( DISTINCT - 26 ) AS col1 FROM tab1
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-9528
SELECT + col0 DIV + ( - + 2 ) AS col2 FROM tab1
----
-25
-42
-45

skipif mysql # not compatible
query I rowsort label-9528
SELECT + col0 / + ( - + 2 ) AS col2 FROM tab1
----
-25
-42
-45

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 * + col0 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT DISTINCT MIN( ALL + 51 ) * - COUNT( * ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT MIN ( ALL + 51 ) * - COUNT ( * ) FROM tab1
----
-153

query I rowsort
SELECT - col0 * - 34 * + 61 AS col2 FROM tab1
----
105774
176290
188734

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 77 * - - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT ALL - 14 * SUM( DISTINCT + col2 ) FROM tab1
----
-3122

skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL - 14 * SUM ( DISTINCT + col2 ) FROM tab1
----
-3122

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN + + col0 * + ( + - col1 ) AND - + 7 + + + col0
----

query I rowsort
SELECT + col1 + 82 FROM tab0
----
103
163
83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9536
SELECT - col0 + - 83 AS col2, CAST( - col2 AS SIGNED ) - - - col0 - - col1 AS col1 FROM tab1 cor0
----
-134
-133
-168
-139
-174
-112

skipif mysql # not compatible
query II rowsort label-9536
SELECT - col0 + - 83 AS col2, CAST ( - col2 AS INTEGER ) - - - col0 - - col1 AS col1 FROM tab1 cor0
----
-134
-133
-168
-139
-174
-112

query I rowsort
SELECT - col0 + + - col1 + + 56 + + - col2 AS col0 FROM tab2 AS cor0
----
-125
-144
-64

query I rowsort
SELECT + col2 + + col2 + - col0 AS col1 FROM tab0 AS cor0
----
-67
101
79

query I rowsort
SELECT ALL + col0 * - col1 + 77 * - 73 FROM tab0
----
-5718
-6836
-7448

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL <= NULL
----

query I rowsort
SELECT ALL 12 * + + col0 FROM tab2
----
552
768
900

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT DISTINCT COUNT( * ) * 50 FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-9542
SELECT DISTINCT COUNT ( * ) * 50 FROM tab2
----
150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9543
SELECT col0 * + - 52 - CAST( col0 AS SIGNED ) + - - col0 col1 FROM tab1 AS cor0
----
-2652
-4420
-4732

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9543
SELECT col0 * + - 52 - CAST ( col0 AS INTEGER ) + - - col0 col1 FROM tab1 AS cor0
----
-2652
-4420
-4732

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9544
SELECT DISTINCT - CAST( - 65 AS SIGNED ) FROM tab2 AS cor0 WHERE ( 78 ) > NULL
----

skipif mysql # not compatible
query I rowsort label-9544
SELECT DISTINCT - CAST ( - 65 AS INTEGER ) FROM tab2 AS cor0 WHERE ( 78 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT COUNT( * ) + 74 AS col0 FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9545
SELECT COUNT ( * ) + 74 AS col0 FROM tab0 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT + - COUNT( * ) + - 90 AS col2 FROM tab1 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-9546
SELECT + - COUNT ( * ) + - 90 AS col2 FROM tab1 cor0
----
-93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 IN ( + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( + col1 ) BETWEEN + 78 AND - 74
----

query I rowsort
SELECT DISTINCT - ( 22 ) * 24 + - col0 FROM tab1 AS cor0
----
-579
-613
-619

query I rowsort
SELECT DISTINCT col2 + + 17 FROM tab0
----
116
27
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT + - ( - - COUNT( * ) ) + - - COUNT( * ) AS col1 FROM tab1 WHERE col1 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-9551
SELECT + - ( - - COUNT ( * ) ) + - - COUNT ( * ) AS col1 FROM tab1 WHERE col1 < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9552
SELECT ALL + - col2, + col1 AS col1 FROM tab1 WHERE - - col1 NOT BETWEEN col2 AND + + CAST( + col0 AS SIGNED ) * col2 * - + 41
----
-59
5
-68
47
-96
14

skipif mysql # not compatible
query II rowsort label-9552
SELECT ALL + - col2, + col1 AS col1 FROM tab1 WHERE - - col1 NOT BETWEEN col2 AND + + CAST ( + col0 AS INTEGER ) * col2 * - + 41
----
-59
5
-68
47
-96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT COUNT( DISTINCT - - 21 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9553
SELECT COUNT ( DISTINCT - - 21 ) AS col1 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9554
SELECT + 49 * - col2, - col2 * + + col0 * - CAST( + + col2 AS SIGNED ) AS col1 FROM tab1
----
-2891
295885
-3332
420784
-4704
470016

skipif mysql # not compatible
query II rowsort label-9554
SELECT + 49 * - col2, - col2 * + + col0 * - CAST ( + + col2 AS INTEGER ) AS col1 FROM tab1
----
-2891
295885
-3332
420784
-4704
470016

query I rowsort
SELECT ( - ( + + 79 ) ) FROM tab2
----
-79
-79
-79

onlyif mysql # DIV for integer division: 
query II rowsort label-9556
SELECT ALL 5 DIV - + 59 AS col2, ( - 86 ) FROM tab2 AS cor0
----
0
-86
0
-86
0
-86

skipif mysql # not compatible
query II rowsort label-9556
SELECT ALL 5 / - + 59 AS col2, ( - 86 ) FROM tab2 AS cor0
----
0
-86
0
-86
0
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-9557
SELECT DISTINCT + 93 DIV + col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9557
SELECT DISTINCT + 93 / + col2 FROM tab1 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col0, - 16 * + 65 + + 74 / + - ( col0 ) * + - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL > + 74 + + 4
----

query I rowsort
SELECT ALL 11 * - col2 * + + col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col2 + ( col0 ) + + col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
144
191
92

query I rowsort
SELECT DISTINCT - 60 + - col0 FROM tab0 cor0
----
-147
-157
-75

query I rowsort
SELECT + col0 * - + 67 AS col0 FROM tab2
----
-3082
-4288
-5025

query I rowsort
SELECT col0 * - + col2 * ( + + 17 ) FROM tab0
----
-11985
-14790
-163251

query II rowsort
SELECT ALL - col0, - col2 AS col0 FROM tab2
----
-46
-23
-64
-40
-75
-58

query II rowsort
SELECT ALL + 66, - 54 AS col2 FROM tab1
----
66
-54
66
-54
66
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9566
SELECT ALL ( - - SUM( + col0 ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9566
SELECT ALL ( - - SUM ( + col0 ) ) FROM tab1
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 35 AS col1, col0 * - 12 * + + 5 col2 FROM tab2
----
35
-2760
35
-3840
35
-4500

onlyif mysql # DIV for integer division: 
query I rowsort label-9568
SELECT - col1 DIV ( + - col0 ) col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9568
SELECT - col1 / ( + - col0 ) col2 FROM tab2
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT ALL - - COUNT( col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9569
SELECT ALL - - COUNT ( col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9570
SELECT DISTINCT + COUNT( * ) + + 30 DIV - + ( + COUNT( * ) ) FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-9570
SELECT DISTINCT + COUNT ( * ) + + 30 / - + ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-9571
SELECT ALL COUNT( * ) + + + 9 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL COUNT ( * ) + + + 9 FROM tab0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9572
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) / col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9572
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) / col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col2 + - - col2 + - - 20 + - + ( + 87 ) FROM tab0 AS cor0
----
-67
-67
-67

query I rowsort
SELECT DISTINCT + - 76 + - + col0 FROM tab0 cor0
----
-163
-173
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9575
SELECT ALL + + 51 DIV col1 - - col2 FROM tab1 AS cor0
----
69
69
99

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL + + 51 / col1 - - col2 FROM tab1 AS cor0
----
69
69
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * col2 + + col1 = 1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 94 - col0 + - col2 + - col1 * ( - col2 ) FROM tab0
----
-3
207
3839

onlyif mysql # aggregate syntax: 
query I rowsort label-9578
SELECT + COUNT( - - col0 ) - - 42 + 88 FROM tab0
----
133

skipif mysql # not compatible
query I rowsort label-9578
SELECT + COUNT ( - - col0 ) - - 42 + 88 FROM tab0
----
133

query I rowsort
SELECT 72 - - col1 FROM tab1
----
119
77
86

query III rowsort
SELECT * FROM tab2 WHERE NOT 14 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT DISTINCT MAX( 71 ) AS col1 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-9581
SELECT DISTINCT MAX ( 71 ) AS col1 FROM tab0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9582
SELECT DISTINCT SUM( ALL + + 99 ) AS col0 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-9582
SELECT DISTINCT SUM ( ALL + + 99 ) AS col0 FROM tab1
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT ALL 40 * + COUNT( * ) FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-9583
SELECT ALL 40 * + COUNT ( * ) FROM tab2
----
120

query I rowsort
SELECT ALL 34 FROM tab1 WHERE + - col1 IS NOT NULL
----
34
34
34

query III rowsort
SELECT ALL * FROM tab1 WHERE + + ( + col1 ) >= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9586
SELECT - 68 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9586
SELECT - 68 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 * + 30 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9587
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT - col0 * + 30 >= NULL
----
0

query I rowsort
SELECT ALL + col0 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 71 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9590
SELECT + - ( - MIN( DISTINCT + col1 ) ) FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-9590
SELECT + - ( - MIN ( DISTINCT + col1 ) ) FROM tab1 cor0
----
5

query II rowsort
SELECT + + ( col1 ), - col1 FROM tab2 cor0
----
51
-51
67
-67
77
-77

query I rowsort
SELECT - ( - 89 ) FROM tab1 AS cor0
----
89
89
89

query I rowsort
SELECT ALL - col2 * 39 FROM tab2 AS cor0
----
-1560
-2262
-897

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 24 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 < - - col2 + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 40 * + 79 + + 62 FROM tab0
----
3222
3222
3222

onlyif mysql # DIV for integer division: 
query I rowsort label-9597
SELECT DISTINCT + col0 DIV - - 4 AS col2 FROM tab2
----
11
16
18

skipif mysql # not compatible
query I rowsort label-9597
SELECT DISTINCT + col0 / - - 4 AS col2 FROM tab2
----
11
16
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9598
SELECT DISTINCT 31 DIV - COUNT( * ) AS col2 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT 31 / - COUNT ( * ) AS col2 FROM tab1
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9599
SELECT - CAST( NULL AS SIGNED ) * + ( col2 ) * - col0 + - + col2 + - + col1 + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9599
SELECT - CAST ( NULL AS INTEGER ) * + ( col2 ) * - col0 + - + col2 + - + col1 + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 78 + 33 AS col2 FROM tab2
----
111
111
111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, + 93 + + col0 * + 35 col1 FROM tab0
----
-1
3488
-21
3138
-81
618

query I rowsort
SELECT DISTINCT - 52 + col2 AS col1 FROM tab1 AS cor0
----
16
44
7

query II rowsort
SELECT ALL - 39 AS col0, col2 AS col2 FROM tab2 AS cor0
----
-39
23
-39
40
-39
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9604
SELECT ALL + ( COUNT( * ) ) FROM tab1 cor0 WHERE + CAST( NULL AS SIGNED ) BETWEEN + col0 AND - - col1
----
0

skipif mysql # not compatible
query I rowsort label-9604
SELECT ALL + ( COUNT ( * ) ) FROM tab1 cor0 WHERE + CAST ( NULL AS INTEGER ) BETWEEN + col0 AND - - col1
----
0

query I rowsort
SELECT + col0 * 64 - - col1 FROM tab2
----
2995
4173
4867

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT 65 - MAX( ( col2 ) ) col2 FROM tab0
----
-34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9606
SELECT 65 - MAX ( ( col2 ) ) col2 FROM tab0
----
-34

query I rowsort
SELECT - 91 - 5 AS col0 FROM tab2 AS cor0
----
-96
-96
-96

query I rowsort
SELECT col0 * - col2 + - col1 * 68 AS col1 FROM tab0 cor0
----
-2298
-6213
-9671

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9609
SELECT 3 DIV 72 DIV + SUM( DISTINCT 35 ) + - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9609
SELECT 3 / 72 / + SUM ( DISTINCT 35 ) + - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 IS NULL AND - 34 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9611
SELECT - COUNT( * ) + - - COUNT( * ) DIV + 38 AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9611
SELECT - COUNT ( * ) + - - COUNT ( * ) / + 38 AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 NOT BETWEEN - col2 AND + - col2 * - - col2 + - 19
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE 88 IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT col0 * + 64 AS col1 FROM tab2 AS cor0
----
2944
4096
4800

onlyif mysql # DIV for integer division: 
query I rowsort label-9615
SELECT col0 * col2 - + + ( col0 ) + - col0 DIV col1 * - - col1 AS col1 FROM tab2 WHERE NOT + col0 IS NULL
----
1012
2496
4208

skipif mysql # not compatible
query I rowsort label-9615
SELECT col0 * col2 - + + ( col0 ) + - col0 / col1 * - - col1 AS col1 FROM tab2 WHERE NOT + col0 IS NULL
----
1012
2496
4208

query I rowsort
SELECT + 57 * + col1 AS col0 FROM tab0
----
1197
4617
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9617
SELECT ALL + 25 * - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9617
SELECT ALL + 25 * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9618
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + col1 + + 75
----
0

skipif mysql # not compatible
query I rowsort label-9618
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + col1 + + 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9619
SELECT ALL - SUM( col1 ) FROM tab0 WHERE NOT - + 99 IS NULL
----
-103

skipif mysql # not compatible
query I rowsort label-9619
SELECT ALL - SUM ( col1 ) FROM tab0 WHERE NOT - + 99 IS NULL
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT 87 - + - COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
90

skipif mysql # not compatible
query I rowsort label-9620
SELECT 87 - + - COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9621
SELECT DISTINCT - + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9621
SELECT DISTINCT - + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT + + COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9622
SELECT + + COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + - + col1 <= col0 * - + 68 - ( + col2 ) * + 59 / 77 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 30 < + col0 * - col0 + - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9625
SELECT ALL + + SUM( ALL - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-9625
SELECT ALL + + SUM ( ALL - col0 ) FROM tab2 AS cor0
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 + - col1 col1 FROM tab0 AS cor0
----
-46
14
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, + col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query II rowsort
SELECT DISTINCT col0, - col0 AS col2 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

query III rowsort
SELECT ALL * FROM tab2 WHERE 2 BETWEEN 68 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 18 + col1 * + col2 col1 FROM tab1
----
1326
277
3178

query I rowsort
SELECT + col0 * + 85 AS col1 FROM tab1
----
4335
7225
7735

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * + - 83 NOT IN ( - - 81, + col2 + col1 )
----

query I rowsort
SELECT ALL 17 + - col2 AS col1 FROM tab2 AS cor0
----
-23
-41
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9634
SELECT + - CAST( + 87 AS SIGNED ) + - 9 FROM tab2 AS cor0
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-9634
SELECT + - CAST ( + 87 AS INTEGER ) + - 9 FROM tab2 AS cor0
----
-96
-96
-96

onlyif mysql # DIV for integer division: 
query II rowsort label-9635
SELECT + 27 + - col2, col1 * col2 DIV - 37 AS col1 FROM tab0 AS cor0
----
-20
-102
-72
-2
17
-5

skipif mysql # not compatible
query II rowsort label-9635
SELECT + 27 + - col2, col1 * col2 / - 37 AS col1 FROM tab0 AS cor0
----
-20
-102
-72
-2
17
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT - - 21 + + MAX( + 90 ) col2 FROM tab2 AS cor0
----
111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9636
SELECT - - 21 + + MAX ( + 90 ) col2 FROM tab2 AS cor0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT DISTINCT + 81 - - + MAX( - - 91 ) FROM tab1
----
172

skipif mysql # not compatible
query I rowsort label-9637
SELECT DISTINCT + 81 - - + MAX ( - - 91 ) FROM tab1
----
172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - col2 * - 39 * - col2 col2 FROM tab2 cor0
----
-3993600
-949026
-9839700

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 94 <= NULL
----

query II rowsort
SELECT + col0 * + col0 * + col2 AS col1, - col1 AS col0 FROM tab0 AS cor0
----
10575
-81
75690
-21
931491
-1

query I rowsort
SELECT DISTINCT ( 93 ) AS col2 FROM tab2 AS cor0
----
93

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 + - ( - - 32 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - ( + - 12 ) FROM tab2 AS cor0
----
612
804
924

onlyif mysql # aggregate syntax: 
query II rowsort label-9644
SELECT - 50 AS col0, COUNT( * ) col1 FROM tab2 AS cor0
----
-50
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9644
SELECT - 50 AS col0, COUNT ( * ) col1 FROM tab2 AS cor0
----
-50
3

query I rowsort
SELECT col0 * - 36 AS col0 FROM tab1 AS cor0
----
-1836
-3060
-3276

onlyif mysql # DIV for integer division: 
query I rowsort label-9646
SELECT DISTINCT + 22 * col2 DIV + col2 AS col1 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT + 22 * col2 / + col2 AS col1 FROM tab2 AS cor0
----
22

query II rowsort
SELECT DISTINCT + - 6, - col1 * + col1 AS col1 FROM tab0 AS cor0
----
-6
-1
-6
-441
-6
-6561

query II rowsort
SELECT ALL - + 18 AS col1, col2 FROM tab1 AS cor0
----
-18
59
-18
68
-18
96

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9649
SELECT DISTINCT 18 AS col2, + col1 + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
18
NULL

skipif mysql # not compatible
query II rowsort label-9649
SELECT DISTINCT 18 AS col2, + col1 + + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
18
NULL

query I rowsort
SELECT DISTINCT - - ( col0 ) * + col1 * - + 30 AS col0 FROM tab0 AS cor0
----
-2910
-36450
-54810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9651
SELECT ALL - COUNT( ( - + col0 ) ) * + CAST( NULL AS SIGNED ), - ( + 8 ) + + + 33 col0 FROM tab0 AS cor0
----
NULL
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9651
SELECT ALL - COUNT ( ( - + col0 ) ) * + CAST ( NULL AS INTEGER ), - ( + 8 ) + + + 33 col0 FROM tab0 AS cor0
----
NULL
25

onlyif mysql # DIV for integer division: 
query I rowsort label-9652
SELECT DISTINCT + col1 * + col2 DIV col2 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9652
SELECT DISTINCT + col1 * + col2 / col2 AS col2 FROM tab2
----
51
67
77

query II rowsort
SELECT DISTINCT + 17 * + - ( + ( col1 ) ) - + - col0, col0 FROM tab0 AS cor0
----
-1362
15
-270
87
80
97

query I rowsort
SELECT ALL + ( col0 ) * - 66 + - col1 * - col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-3170
-3797
-5585

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 21 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9656
SELECT DISTINCT + 94 + - ( + COUNT( * ) ) AS col1, + COUNT( * ) FROM tab1 AS cor0
----
91
3

skipif mysql # not compatible
query II rowsort label-9656
SELECT DISTINCT + 94 + - ( + COUNT ( * ) ) AS col1, + COUNT ( * ) FROM tab1 AS cor0
----
91
3

query I rowsort
SELECT ALL + col2 * + + 36 + - col2 * - + 70 * + 76 FROM tab0
----
251732
530244
53560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9658
SELECT DISTINCT + MAX( + col2 ) * - CAST( - - COUNT( * ) AS SIGNED ) FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT + MAX ( + col2 ) * - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab0
----
-297

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9659
SELECT + 72 + + - col2 * + ( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9659
SELECT + 72 + + - col2 * + ( CAST ( NULL AS REAL ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-9660
SELECT 2 AS col2, COUNT( * ) FROM tab1 AS cor0
----
2
3

skipif mysql # not compatible
query II rowsort label-9660
SELECT 2 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
2
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 14 > NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( - 5 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT ALL - + MAX( col0 ) - - MAX( DISTINCT - 8 ) col1 FROM tab0 AS cor0
----
-105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9663
SELECT ALL - + MAX ( col0 ) - - MAX ( DISTINCT - 8 ) col1 FROM tab0 AS cor0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT COUNT( * ) FROM tab0 WHERE NULL BETWEEN ( + col0 ) AND col0
----
0

skipif mysql # not compatible
query I rowsort label-9664
SELECT COUNT ( * ) FROM tab0 WHERE NULL BETWEEN ( + col0 ) AND col0
----
0

query I rowsort
SELECT ALL - col2 - - ( col0 ) FROM tab0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9666
SELECT col2 DIV ( + col0 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9666
SELECT col2 / ( + col0 ) AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9667
SELECT 0 / - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9667
SELECT 0 / - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9668
SELECT - 91 DIV col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9668
SELECT - 91 / col0 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9669
SELECT + COUNT( * ) DIV - 64 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9669
SELECT + COUNT ( * ) / - 64 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 14 + + 7 AS col0 FROM tab1
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9671
SELECT + 2 FROM tab1 WHERE CAST( col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9671
SELECT + 2 FROM tab1 WHERE CAST ( col1 AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 34 * - 95 NOT IN ( - col2 + col0 )
----

query I rowsort
SELECT col1 + - 73 * col2 FROM tab2
----
-1628
-2843
-4167

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( NULL ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT COUNT( * ) * + COUNT( - col1 ) + + 57 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-9675
SELECT COUNT ( * ) * + COUNT ( - col1 ) + + 57 FROM tab2
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT - MIN( + col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-9676
SELECT - MIN ( + col0 ) AS col1 FROM tab0
----
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 * - col2 + - col1 col2 FROM tab1
----
-3663
-4263
-5966

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9678
SELECT DISTINCT col1 * + col0 + CAST( + 10 AS SIGNED ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9678
SELECT DISTINCT col1 * + col0 + CAST ( + 10 AS INTEGER ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 * - col2 BETWEEN NULL AND ( col0 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT ALL COUNT( ALL 83 ) + 71 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL COUNT ( ALL 83 ) + 71 FROM tab2
----
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9681
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0 WHERE col0 IN ( ( + col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9681
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0 WHERE col0 IN ( ( + col1 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT COUNT( * ) + 88 AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-9682
SELECT COUNT ( * ) + 88 AS col2 FROM tab1
----
91

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( + 10 ) ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9684
SELECT DISTINCT CAST( ( - col1 ) AS SIGNED ) FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9684
SELECT DISTINCT CAST ( ( - col1 ) AS INTEGER ) FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT + COUNT( * ) + + COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN ( + 66 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9685
SELECT + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN ( + 66 ) AND NULL
----
0

query I rowsort
SELECT DISTINCT + col0 * + col2 AS col1 FROM tab2 AS cor0 WHERE - col2 NOT IN ( - 34 + - col1 )
----
1058
2560
4350

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 + 87 * - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9688
SELECT DISTINCT SUM( DISTINCT 50 ) * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
450

skipif mysql # not compatible
query I rowsort label-9688
SELECT DISTINCT SUM ( DISTINCT 50 ) * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-9689
SELECT 38 + COUNT( * ) FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-9689
SELECT 38 + COUNT ( * ) FROM tab0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT ( + ( - COUNT( * ) ) ) + 21 * + COUNT( * ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-9690
SELECT ( + ( - COUNT ( * ) ) ) + 21 * + COUNT ( * ) FROM tab1
----
60

query I rowsort
SELECT ALL ( col1 ) * - col1 FROM tab1 AS cor0 WHERE 74 - - ( col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9692
SELECT DISTINCT + MIN( DISTINCT - 40 ) FROM tab1 AS cor0 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT + MIN ( DISTINCT - 40 ) FROM tab1 AS cor0 WHERE - col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9693
SELECT DISTINCT ( AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9693
SELECT DISTINCT ( AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT - 45 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 + ( col0 ) )
----

query I rowsort
SELECT DISTINCT + 66 + 67 FROM tab2 AS cor0
----
133

query I rowsort
SELECT DISTINCT + col0 + + 58 AS col2 FROM tab0 AS cor0
----
145
155
73

query I rowsort
SELECT DISTINCT + col2 + col1 * 27 FROM tab2 cor0
----
1400
1867
2119

onlyif mysql # aggregate syntax: 
query I rowsort label-9699
SELECT - COUNT( DISTINCT + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9699
SELECT - COUNT ( DISTINCT + col2 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + 57 AS col2 FROM tab0 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT ALL 72 * - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL 72 * - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
-219

query I rowsort
SELECT DISTINCT - 14 + + col2 FROM tab1
----
45
54
82

onlyif mysql # DIV for integer division: 
query I rowsort label-9703
SELECT DISTINCT - col0 - + 32 DIV 78 AS col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9703
SELECT DISTINCT - col0 - + 32 / 78 AS col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL col0 * - + 28 FROM tab0
----
-2436
-2716
-420

query I rowsort
SELECT ALL 61 + + col2 FROM tab2 WHERE NOT NULL >= col2 + ( + col2 )
----

query I rowsort
SELECT DISTINCT + 96 - - 94 * - col1 FROM tab2
----
-4698
-6202
-7142

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 25 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 * - 95 FROM tab0
----
1425
8265
9215

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 48 IN ( - col2 )
----

query I rowsort
SELECT ALL + ( ( col2 ) ) + - 99 FROM tab0 AS cor0
----
-52
-89
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 31 IS NULL
----

query I rowsort
SELECT - + 27 + col2 AS col1 FROM tab1 AS cor0
----
32
41
69

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 JOIN tab1 AS cor1 ON ( NULL ) IS NOT NULL
----

query I rowsort
SELECT + 11 FROM tab0, tab1 cor0
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT ALL - col1 * ( + 44 ) FROM tab1 AS cor0
----
-2068
-220
-616

query I rowsort
SELECT - + col2 * 19 AS col0 FROM tab0 AS cor0
----
-1881
-190
-893

onlyif mysql # DIV for integer division: 
query I rowsort label-9717
SELECT DISTINCT + + 17 DIV - col2 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9717
SELECT DISTINCT + + 17 / - col2 FROM tab0 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9718
SELECT ALL col1 AS col0, col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-9718
SELECT ALL col1 AS col0, col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT + 10 * - col0 + col2 * col2 FROM tab2 AS cor0
----
2614
69
960

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT + ( + 68 ) * - MAX( ALL 70 ) FROM tab0 AS cor0
----
-4760

skipif mysql # not compatible
query I rowsort label-9720
SELECT + ( + 68 ) * - MAX ( ALL 70 ) FROM tab0 AS cor0
----
-4760

onlyif mysql # aggregate syntax: 
query I rowsort label-9721
SELECT + COUNT( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9721
SELECT + COUNT ( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9722
SELECT ALL + col0 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( col2 ) IN ( + 46 )
----

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL + col0 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( col2 ) IN ( + 46 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9723
SELECT DISTINCT - col1 - - 80 * - col2 FROM tab2 AS cor0 WHERE - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9723
SELECT DISTINCT - col1 - - 80 * - col2 FROM tab2 AS cor0 WHERE - CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT ALL COUNT( * ) FROM tab2 WHERE NULL >= ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9724
SELECT ALL COUNT ( * ) FROM tab2 WHERE NULL >= ( col1 )
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 >= ( - col0 + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9726
SELECT MIN( DISTINCT + ( + 94 ) ) AS col1 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-9726
SELECT MIN ( DISTINCT + ( + 94 ) ) AS col1 FROM tab2
----
94

query I rowsort
SELECT DISTINCT - ( - - 93 ) AS col1 FROM tab2
----
-93

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 WHERE NULL >= NULL
----

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT - col2 <= + 25 + - 16
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( + col1 ) AND ( NULL )
----

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT ( NULL ) = NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 - + col0 * - col1 < - col2 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( - + col2 ) / ( + col1 + 98 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 70 * - 59 AS col0 FROM tab1 WHERE NOT + col1 + + col2 + 18 * 32 IN ( - col1 )
----
-4130
-4130
-4130

query I rowsort
SELECT DISTINCT col0 * + + col0 - + col2 - - col2 + + col1 FROM tab1 AS cor0
----
2615
7230
8328

query I rowsort
SELECT + col2 + - col2 + + ( - 94 ) * col1 FROM tab2 cor0
----
-4794
-6298
-7238

query I rowsort
SELECT ALL - + 77 * + + col0 + + 60 FROM tab0 AS cor0
----
-1095
-6639
-7409

query I rowsort
SELECT + col0 AS col2 FROM tab1 cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + + col2 < ( - 47 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9740
SELECT + col0 DIV + - col0 col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9740
SELECT + col0 / + - col0 col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT + col1 - 41 FROM tab1 AS cor0 WHERE - col2 * - - 76 - - col1 + + + 3 + - col1 * + col0 IS NOT NULL
----
-27
-36
6

query I rowsort
SELECT DISTINCT - - 26 AS col0 FROM tab0 AS cor0
----
26

query I rowsort
SELECT ALL + col1 * - col2 + + - col1 + - 27 - + col0 AS col2 FROM tab1 AS cor0
----
-1436
-3361
-412

query I rowsort
SELECT + + col2 - - + col1 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT + 9 + + - col0 FROM tab1 AS cor0
----
-42
-76
-82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9746
SELECT ALL + + ( + col1 ) + 19 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9746
SELECT ALL + + ( + col1 ) + 19 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9747
SELECT DISTINCT - COUNT( * ) + ( + 64 ) DIV - ( MIN( + 56 ) ) AS col2 FROM tab2 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT - COUNT ( * ) + ( + 64 ) / - ( MIN ( + 56 ) ) AS col2 FROM tab2 AS cor0
----
-4

query I rowsort
SELECT + 34 / col1 / + col1 AS col2 FROM tab2 WHERE col0 > ( 75 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9749
SELECT ALL - MIN( DISTINCT ( col2 ) ) * ( + 10 * COUNT( * ) ) AS col0 FROM tab2 WHERE + + col0 * - 95 NOT IN ( col2 + col2 * - 40 )
----
-690

skipif mysql # not compatible
query I rowsort label-9749
SELECT ALL - MIN ( DISTINCT ( col2 ) ) * ( + 10 * COUNT ( * ) ) AS col0 FROM tab2 WHERE + + col0 * - 95 NOT IN ( col2 + col2 * - 40 )
----
-690

query I rowsort
SELECT + ( + + col2 ) + + + 24 AS col1 FROM tab2
----
47
64
82

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9751
SELECT * FROM tab0 WHERE ( + col1 ) NOT IN ( - CAST( + - col2 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9751
SELECT * FROM tab0 WHERE ( + col1 ) NOT IN ( - CAST ( + - col2 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * + - ( + col0 ) - + 8 + - col2 * - + col2 * + 91 FROM tab1
----
316338
416499
837934

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 - - 2, - col0 col0 FROM tab0
----
23
-87
3
-97
83
-15

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL <> + col2 )
----

query II rowsort
SELECT DISTINCT + 27 AS col0, + col2 * + - col0 FROM tab2
----
27
-1058
27
-2560
27
-4350

query I rowsort
SELECT - 53 + - col0 FROM tab1 WHERE NULL NOT IN ( - col1 * - 54 + + col1 * + col0 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT ALL COUNT( * ) - 40 FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL COUNT ( * ) - 40 FROM tab2
----
-37

query I rowsort
SELECT + col1 * - col1 * + 22 * + - col2 + + - 51 FROM tab1 AS cor0
----
32399
3304613
413901

onlyif mysql # aggregate syntax: 
query III rowsort label-9759
SELECT ALL + - COUNT( * ) AS col1, - COUNT( * ), - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3
-3
-3

skipif mysql # not compatible
query III rowsort label-9759
SELECT ALL + - COUNT ( * ) AS col1, - COUNT ( * ), - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3
-3
-3

query II rowsort
SELECT ALL - 93, + col0 FROM tab0 AS cor0
----
-93
15
-93
87
-93
97

query II rowsort
SELECT ALL + 42 AS col0, - 5 FROM tab2 AS cor0
----
42
-5
42
-5
42
-5

query II rowsort
SELECT ALL - + col2, col2 AS col1 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT ALL + 25 * - col0 AS col1 FROM tab0
----
-2175
-2425
-375

query I rowsort
SELECT ALL + ( - col0 ) FROM tab0 WHERE ( ( + - col0 ) ) IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-9765
SELECT DISTINCT + COUNT( + col0 ), + 51 AS col1 FROM tab1 AS cor0
----
3
51

skipif mysql # not compatible
query II rowsort label-9765
SELECT DISTINCT + COUNT ( + col0 ), + 51 AS col1 FROM tab1 AS cor0
----
3
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 40 <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9767
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + + CAST( + col2 AS DECIMAL ) / - 69 + - 68 >= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9767
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + + + CAST ( + col2 AS REAL ) / - 69 + - 68 >= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT ( + - ( + col0 ) ) AS col0, + 39 FROM tab1 AS cor0
----
-51
39
-85
39
-91
39

query I rowsort
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col0 + + 41 NOT BETWEEN NULL AND + + 63
----

query I rowsort
SELECT - + 91 * 82 FROM tab2 cor0
----
-7462
-7462
-7462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 * 16 col0 FROM tab1
----
1280
1280
1280

query I rowsort
SELECT - col0 * - ( 24 ) AS col2 FROM tab1
----
1224
2040
2184

query I rowsort
SELECT DISTINCT + col1 * - 49 AS col0 FROM tab0
----
-1029
-3969
-49

query I rowsort
SELECT ALL 19 * - 36 FROM tab0
----
-684
-684
-684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + col2 ) col0 FROM tab1
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-9776
SELECT col1 DIV + 17 FROM tab2
----
3
3
4

skipif mysql # not compatible
query I rowsort label-9776
SELECT col1 / + 17 FROM tab2
----
3
3
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9777
SELECT DISTINCT - col0 / col1 * - CAST( NULL AS SIGNED ) * col2 col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9777
SELECT DISTINCT - col0 / col1 * - CAST ( NULL AS INTEGER ) * col2 col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9778
SELECT 33 DIV COUNT( * ) AS col2 FROM tab2
----
11

skipif mysql # not compatible
query I rowsort label-9778
SELECT 33 / COUNT ( * ) AS col2 FROM tab2
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT MIN( + + 88 ) AS col2 FROM tab2 WHERE NOT - 86 * - col0 * + - col1 IS NULL
----
88

skipif mysql # not compatible
query I rowsort label-9779
SELECT MIN ( + + 88 ) AS col2 FROM tab2 WHERE NOT - 86 * - col0 * + - col1 IS NULL
----
88

query II rowsort
SELECT DISTINCT ( col1 ) + + col0 AS col1, 39 AS col1 FROM tab2 AS cor0
----
141
39
142
39
97
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9781
SELECT ALL ( - - CAST( + - col0 AS SIGNED ) ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9781
SELECT ALL ( - - CAST ( + - col0 AS INTEGER ) ) FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 + - ( - 19 ) col0, - 11 * 7 FROM tab1 cor0
----
-32
-77
-66
-77
-72
-77

query I rowsort
SELECT ALL - 1 + 61 - - 5 AS col0 FROM tab1 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9784
SELECT + ( MAX( + + 27 ) ) FROM tab2 cor0
----
27

skipif mysql # not compatible
query I rowsort label-9784
SELECT + ( MAX ( + + 27 ) ) FROM tab2 cor0
----
27

query I rowsort
SELECT ALL - 32 + + + col2 AS col2 FROM tab0 AS cor0
----
-22
15
67

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( 79, col1 )
----

query I rowsort
SELECT DISTINCT + 74 AS col2 FROM tab1 cor0
----
74

query I rowsort
SELECT DISTINCT - + 2 FROM tab0 cor0
----
-2

query II rowsort
SELECT + ( - col2 ), col2 FROM tab1 cor0
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9790
SELECT - 78 DIV - COUNT( * ) AS col2 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-9790
SELECT - 78 / - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
26

query III rowsort
SELECT * FROM tab2 cor0 WHERE 29 * + - col2 * col1 + + col0 * + - col1 BETWEEN NULL AND ( col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9792
SELECT - CAST( NULL AS DECIMAL ) AS col0, 35 AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-9792
SELECT - CAST ( NULL AS REAL ) AS col0, 35 AS col1 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9793
SELECT 6 - - MIN( ALL + + 97 ) + + 79 AS col0 FROM tab1
----
182

skipif mysql # not compatible
query I rowsort label-9793
SELECT 6 - - MIN ( ALL + + 97 ) + + 79 AS col0 FROM tab1
----
182

onlyif mysql # DIV for integer division: 
query I rowsort label-9794
SELECT - - 63 DIV 91 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9794
SELECT - - 63 / 91 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT AVG ( col2 ) col0 FROM tab1 WHERE NOT - - col1 BETWEEN NULL AND + col1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + - col0, col0 FROM tab0 WHERE NOT - - col2 IS NOT NULL
----

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT 12 + - col2 IS NULL
----
59
68
96

query II rowsort
SELECT - 53, 69 * + col0 AS col0 FROM tab2 cor0
----
-53
3174
-53
4416
-53
5175

query II rowsort
SELECT - 10 AS col0, 61 FROM tab1 AS cor0
----
-10
61
-10
61
-10
61

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 83 > + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - 71 * - 99 FROM tab1 AS cor0
----
-7029
-7029
-7029

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9803
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - col0 - col2 + - col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9803
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - col0 - col2 + - col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 FROM tab0 AS cor0 WHERE NOT - ( + 51 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9805
SELECT + 50 * - SUM( - col2 ) AS col0 FROM tab2 AS cor0
----
6050

skipif mysql # not compatible
query I rowsort label-9805
SELECT + 50 * - SUM ( - col2 ) AS col0 FROM tab2 AS cor0
----
6050

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - + col0 NOT BETWEEN ( + + col0 ) AND 9
----

query I rowsort
SELECT col1 + - 62 AS col2 FROM tab2
----
-11
15
5

query I rowsort
SELECT DISTINCT 31 * - ( 95 ) FROM tab0, tab2 cor0
----
-2945

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT ALL + SUM( - - 86 ) AS col2 FROM tab2
----
258

skipif mysql # not compatible
query I rowsort label-9809
SELECT ALL + SUM ( - - 86 ) AS col2 FROM tab2
----
258

query I rowsort
SELECT ALL 44 * + col1 + - - col0 FROM tab1
----
2159
305
667

query I rowsort
SELECT col2 + - 66 + + col0 FROM tab2
----
3
38
67

query I rowsort
SELECT - - ( - col1 ) + + ( col1 ) + + - col2 FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT ALL - + 20 + 58 FROM tab0 AS cor0
----
38
38
38

query I rowsort
SELECT ( + - col0 ) FROM tab0 AS cor0 WHERE col0 BETWEEN ( + col0 ) AND NULL
----

query II rowsort
SELECT ALL - - col1 + - + 28, col1 AS col2 FROM tab0 cor0
----
-27
1
-7
21
53
81

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col0 ) + + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9817
SELECT + - MAX( CAST( NULL AS DECIMAL ) ) FROM tab0 WHERE - 91 / + 79 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9817
SELECT + - MAX ( CAST ( NULL AS REAL ) ) FROM tab0 WHERE - 91 / + 79 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col1 - 8 FROM tab1
----
-3
39
6

query I rowsort
SELECT - + 13 - col0 AS col1 FROM tab2 AS cor0
----
-59
-77
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-9820
SELECT + 60 - + col1 DIV + col0 AS col0, col1 FROM tab1 AS cor0
----
60
14
60
47
60
5

skipif mysql # not compatible
query II rowsort label-9820
SELECT + 60 - + col1 / + col0 AS col0, col1 FROM tab1 AS cor0
----
60
14
60
47
60
5

query II rowsort
SELECT ALL - col2 AS col0, col1 + 83 FROM tab2 AS cor0
----
-23
134
-40
160
-58
150

query I rowsort
SELECT + - 44 + col1 AS col2 FROM tab0 AS cor0
----
-23
-43
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 26 ) + col2 - - + col0 col2 FROM tab0 cor0
----
170
36
71

query I rowsort
SELECT ALL col0 + - 20 AS col1 FROM tab2 AS cor0
----
26
44
55

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col2 + - 59 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + - col1, col2 * + col1 col0 FROM tab1
----
37
1344
44
3196
80
295

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT + SUM( DISTINCT - 87 ) FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-9827
SELECT + SUM ( DISTINCT - 87 ) FROM tab2
----
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * col0 + col1 col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + - 33 BETWEEN col0 / + col1 AND NULL ) OR NOT ( col1 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT ALL - 52 * + COUNT( * ) * + + COUNT( - col1 ) FROM tab1
----
-468

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL - 52 * + COUNT ( * ) * + + COUNT ( - col1 ) FROM tab1
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT MIN( - col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9831
SELECT MIN ( - col2 ) AS col0 FROM tab1
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9832
SELECT DISTINCT - SUM( - 81 ) FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-9832
SELECT DISTINCT - SUM ( - 81 ) FROM tab2
----
243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9833
SELECT ALL col2 * - CAST( - 42 AS SIGNED ) * + ( + col0 ) - - col0 AS col1 FROM tab1
----
205683
210715
259987

skipif mysql # not compatible
query I rowsort label-9833
SELECT ALL col2 * - CAST ( - 42 AS INTEGER ) * + ( + col0 ) - - col0 AS col1 FROM tab1
----
205683
210715
259987

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9835
SELECT ALL + 89 * + + ( - COUNT( * ) ) + - COUNT( * ) - + 73 + + 68 + MAX( - col2 ) AS col1 FROM tab1 AS cor0
----
-334

skipif mysql # not compatible
query I rowsort label-9835
SELECT ALL + 89 * + + ( - COUNT ( * ) ) + - COUNT ( * ) - + 73 + + 68 + MAX ( - col2 ) AS col1 FROM tab1 AS cor0
----
-334

query I rowsort
SELECT DISTINCT 29 AS col2 FROM tab1 cor0
----
29

query I rowsort
SELECT ALL + - col2 + + + 47 + + + col1 FROM tab0 AS cor0
----
-51
58
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 92 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col1 + - 7 AS col0 FROM tab2 AS cor0
----
44
60
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9840
SELECT COUNT( DISTINCT + - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9840
SELECT COUNT ( DISTINCT + - col0 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL 3 AS col0, - 35 FROM tab2
----
3
-35
3
-35
3
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-9842
SELECT DISTINCT + col2 * col1 + - - ( col0 ) * + 0 * col2 DIV + - col2 FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-9842
SELECT DISTINCT + col2 * col1 + - - ( col0 ) * + 0 * col2 / + - col2 FROM tab0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9843
SELECT ALL - ( + 38 ) * + + col0 * + col2 DIV + - col2 AS col1 FROM tab1
----
1938
3230
3458

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL - ( + 38 ) * + + col0 * + col2 / + - col2 AS col1 FROM tab1
----
1938
3230
3458

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9844
SELECT * FROM tab1 WHERE 79 * - + 8 < - + CAST( NULL AS SIGNED ) * col0
----

skipif mysql # not compatible
query III rowsort label-9844
SELECT * FROM tab1 WHERE 79 * - + 8 < - + CAST ( NULL AS INTEGER ) * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT + COUNT( - col1 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9845
SELECT + COUNT ( - col1 ) col0 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, 64 + - col1 col2 FROM tab0
----
1
63
21
43
81
-17

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9848
SELECT + COUNT( * ) * - 90 + - - 29 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
29

skipif mysql # not compatible
query I rowsort label-9848
SELECT + COUNT ( * ) * - 90 + - - 29 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
29

query I rowsort
SELECT - 44 + - - col2 FROM tab2
----
-21
-4
14

query I rowsort
SELECT DISTINCT 32 * - 59 FROM tab2
----
-1888

query I rowsort
SELECT + 10 + 0 * col0 FROM tab0
----
10
10
10

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9853
SELECT DISTINCT + 54 DIV ( + + col1 ) FROM tab0
----
0
2
54

skipif mysql # not compatible
query I rowsort label-9853
SELECT DISTINCT + 54 / ( + + col1 ) FROM tab0
----
0
2
54

query I rowsort
SELECT DISTINCT + col1 + + 99 AS col2 FROM tab2 AS cor0
----
150
166
176

onlyif mysql # DIV for integer division: 
query I rowsort label-9855
SELECT DISTINCT + 82 DIV ( - col1 ) FROM tab1 AS cor0
----
-1
-16
-5

skipif mysql # not compatible
query I rowsort label-9855
SELECT DISTINCT + 82 / ( - col1 ) FROM tab1 AS cor0
----
-1
-16
-5

query I rowsort
SELECT - - col2 * - col0 * + col0 * + 97 FROM tab2 cor0
----
-15892480
-31646250
-4720796

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT DISTINCT - 14 * COUNT( DISTINCT - col1 ) FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-9857
SELECT DISTINCT - 14 * COUNT ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT DISTINCT COUNT( DISTINCT col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9858
SELECT DISTINCT COUNT ( DISTINCT col0 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9859
SELECT DISTINCT + SUM( - 63 ) AS col1 FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT + SUM ( - 63 ) AS col1 FROM tab1
----
-189

query II rowsort
SELECT DISTINCT ( + 44 ), - col2 + - col1 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT 51 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT SUM( ALL + 68 ) FROM tab0 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-9862
SELECT SUM ( ALL + 68 ) FROM tab0 AS cor0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-9863
SELECT + + 38 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-9863
SELECT + + 38 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-9864
SELECT - 61 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-9864
SELECT - 61 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
183

query I rowsort
SELECT ALL + col2 * 46 + - col2 FROM tab2 AS cor0
----
1035
1800
2610

query II rowsort
SELECT DISTINCT 46 * + + col1 * + 26 AS col2, + 23 FROM tab0 cor0
----
1196
23
25116
23
96876
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9867
SELECT 52 DIV + MIN( ALL + 98 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9867
SELECT 52 / + MIN ( ALL + 98 ) FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + 57 AND - col0
----

query I rowsort
SELECT DISTINCT col1 * - 74 + + + 93 AS col0 FROM tab1 AS cor0
----
-277
-3385
-943

onlyif mysql # aggregate syntax: 
query II rowsort label-9870
SELECT SUM( - 13 ) col0, COUNT( * ) col1 FROM tab2 AS cor0
----
-39
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9870
SELECT SUM ( - 13 ) col0, COUNT ( * ) col1 FROM tab2 AS cor0
----
-39
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9871
SELECT CAST( col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9871
SELECT CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9872
SELECT COUNT( * ), 91 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 + + - col0 NOT IN ( - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / col1 + col0 + - 44 )
----
0
91

skipif mysql # not compatible
query II rowsort label-9872
SELECT COUNT ( * ), 91 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 + + - col0 NOT IN ( - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / col1 + col0 + - 44 )
----
0
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 + col1 - 27 col1 FROM tab0 AS cor0
----
-15
-75
-95

query II rowsort
SELECT ALL col1 AS col0, - col0 * + col0 + + 69 + col1 * col0 FROM tab2
----
51
299
67
-531
77
901

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT - 40 + + + COUNT( * ) AS col1 FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-9875
SELECT - 40 + + + COUNT ( * ) AS col1 FROM tab2
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9876
SELECT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9876
SELECT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT 36 + + + col1 * col1 AS col0 FROM tab1
----
2245
232
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9878
SELECT ALL CAST( NULL AS SIGNED ) * - + col2 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9878
SELECT ALL CAST ( NULL AS INTEGER ) * - + col2 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 41 + + - 11 FROM tab0
----
30

query II rowsort
SELECT - + col0, + col0 + + col1 AS col1 FROM tab0 AS cor0
----
-15
96
-87
108
-97
98

onlyif mysql # DIV for integer division: 
query I rowsort label-9881
SELECT ALL + + col1 * col0 DIV ( - col1 ) - + ( - - col0 ) + + col0 + - - col2 - - - col2 AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9881
SELECT ALL + + col1 * col0 / ( - col1 ) - + ( - - col0 ) + + col0 + - - col2 - - - col2 AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-51
-85
-91

query I rowsort
SELECT ALL 42 + - 31 FROM tab0 cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9884
SELECT + SUM( ALL + 37 ) FROM tab0, tab1 AS cor0
----
333

skipif mysql # not compatible
query I rowsort label-9884
SELECT + SUM ( ALL + 37 ) FROM tab0, tab1 AS cor0
----
333

query I rowsort
SELECT ALL + 56 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT + 25 + + - ( + COUNT( * ) ) FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-9886
SELECT + 25 + + - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9887
SELECT + + MAX( + col2 ) AS col1 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-9887
SELECT + + MAX ( + col2 ) AS col1 FROM tab1 cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9888
SELECT ALL - CAST( 54 AS SIGNED ) * col0 AS col1 FROM tab2 AS cor0
----
-2484
-3456
-4050

skipif mysql # not compatible
query I rowsort label-9888
SELECT ALL - CAST ( 54 AS INTEGER ) * col0 AS col1 FROM tab2 AS cor0
----
-2484
-3456
-4050

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - + 31 ) * + + col0 > - 92
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9890
SELECT - col2 DIV col2 + + 4 AS col0 FROM tab0 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-9890
SELECT - col2 / col2 + + 4 AS col0 FROM tab0 AS cor0
----
3
3
3

query I rowsort
SELECT - col2 AS col1 FROM tab0 cor0 WHERE NOT + col0 NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT ALL - col1 * - 85 - - 13 AS col2 FROM tab0 AS cor0
----
1798
6898
98

query II rowsort
SELECT - col1 * - col2 AS col1, + 51 FROM tab2
----
1173
51
3080
51
3886
51

query III rowsort
SELECT * FROM tab0 WHERE NOT 12 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT - 12 * - COUNT( ALL 80 ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-9895
SELECT - 12 * - COUNT ( ALL 80 ) FROM tab2
----
36

query I rowsort
SELECT DISTINCT col1 * + 90 * + 49 FROM tab2
----
224910
295470
339570

query I rowsort
SELECT DISTINCT col0 * + 63 FROM tab1
----
3213
5355
5733

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9898
SELECT DISTINCT - SUM( + + col1 ) DIV - SUM( + + 86 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT - SUM ( + + col1 ) / - SUM ( + + 86 ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9899
SELECT ALL COUNT( * ) * - 73 FROM tab1
----
-219

skipif mysql # not compatible
query I rowsort label-9899
SELECT ALL COUNT ( * ) * - 73 FROM tab1
----
-219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9900
SELECT DISTINCT - col0 / - - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9900
SELECT DISTINCT - col0 / - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT + + SUM( - + col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-9901
SELECT + + SUM ( - + col1 ) AS col1 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9902
SELECT ALL - COUNT( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) * - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-9902
SELECT ALL - COUNT ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9903
SELECT + SUM( DISTINCT 32 ) col1 FROM tab1
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9903
SELECT + SUM ( DISTINCT 32 ) col1 FROM tab1
----
32

query I rowsort
SELECT 29 + + - col0 FROM tab2
----
-17
-35
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT ALL + - MIN( DISTINCT - col1 ) AS col1 FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL + - MIN ( DISTINCT - col1 ) AS col1 FROM tab0 cor0
----
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT + - MIN( ALL - 52 ) col1 FROM tab0 cor0
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9907
SELECT + - MIN ( ALL - 52 ) col1 FROM tab0 cor0
----
52

query I rowsort
SELECT DISTINCT - - col2 * - col1 * 47 + col0 FROM tab0 AS cor0
----
-178914
-4556
-9783

onlyif mysql # aggregate syntax: 
query I rowsort label-9909
SELECT ( ( + - COUNT( * ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9909
SELECT ( ( + - COUNT ( * ) ) ) FROM tab2
----
-3

query I rowsort
SELECT + col1 * - col1 FROM tab0 cor0 WHERE - col0 IS NULL OR - col2 NOT BETWEEN + 42 AND NULL
----
-1
-441
-6561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9911
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9911
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT ALL - MAX( ALL - 14 ) FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-9912
SELECT ALL - MAX ( ALL - 14 ) FROM tab1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9913
SELECT CAST( NULL AS SIGNED ) * - 20 * - - 5 + + 78 + + 51 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9913
SELECT CAST ( NULL AS INTEGER ) * - 20 * - - 5 + + 78 + + 51 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 19 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-19
-19
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, + ( col0 ) * + - 65 * col1 AS col1 FROM tab0 AS cor0
----
-10
-118755
-47
-78975
-99
-6305

query I rowsort
SELECT - col0 * + - col0 * + col2 * + - col1 FROM tab0 AS cor0
----
-1589490
-856575
-931491

query II rowsort
SELECT - - ( + col1 ) * col0, - 65 + - ( col2 ) AS col1 FROM tab2 cor0
----
2346
-88
4928
-105
5025
-123

query I rowsort
SELECT + + col0 * + - 73 FROM tab0 AS cor0
----
-1095
-6351
-7081

onlyif mysql # DIV for integer division: 
query I rowsort label-9919
SELECT DISTINCT col1 DIV + 76 col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9919
SELECT DISTINCT col1 / + 76 col0 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT - + 59 * - - col2 AS col2 FROM tab0 AS cor0
----
-2773
-5841
-590

onlyif mysql # DIV for integer division: 
query I rowsort label-9921
SELECT + 71 DIV - + col0 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-9921
SELECT + 71 / - + col0 FROM tab0
----
-4
0
0

query I rowsort
SELECT + 3 * + col0 AS col2 FROM tab1
----
153
255
273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9923
SELECT ALL + ( - col2 ) * + col2 * CAST( + + ( - col0 ) AS SIGNED ) FROM tab1
----
295885
420784
470016

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL + ( - col2 ) * + col2 * CAST ( + + ( - col0 ) AS INTEGER ) FROM tab1
----
295885
420784
470016

query II rowsort
SELECT ALL - col1, + col2 FROM tab0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9925
SELECT DISTINCT - COUNT( * ) * SUM( 35 ) FROM tab0
----
-315

skipif mysql # not compatible
query I rowsort label-9925
SELECT DISTINCT - COUNT ( * ) * SUM ( 35 ) FROM tab0
----
-315

query II rowsort
SELECT - 69 * col2, + col1 AS col1 FROM tab1
----
-4071
5
-4692
47
-6624
14

query II rowsort
SELECT ALL + 19, + col0 AS col2 FROM tab1
----
19
51
19
85
19
91

query II rowsort
SELECT - col1, + col0 AS col1 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9929
SELECT - CAST( NULL AS SIGNED ) + - + AVG ( - - 70 ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9929
SELECT - CAST ( NULL AS INTEGER ) + - + AVG ( - - 70 ) col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT ALL + - COUNT( * ) FROM tab2 WHERE NOT + 18 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9930
SELECT ALL + - COUNT ( * ) FROM tab2 WHERE NOT + 18 IS NOT NULL
----
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + 35 IS NOT NULL
----

query I rowsort
SELECT + ( + col0 ) * - col1 AS col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9933
SELECT ALL 62 * + + MAX( - col0 ) FROM tab1 AS cor0 WHERE ( col1 - - col2 + CAST( NULL AS SIGNED ) + - 39 * - col1 ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL 62 * + + MAX ( - col0 ) FROM tab1 AS cor0 WHERE ( col1 - - col2 + CAST ( NULL AS INTEGER ) + - 39 * - col1 ) >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9934
SELECT ALL + MAX( ALL + - col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9934
SELECT ALL + MAX ( ALL + - col0 ) AS col1 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL - + col0 + - - col1 * + col1 AS col0 FROM tab2 AS cor0
----
2555
4414
5865

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT - 75 + + ( COUNT( col0 ) ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-9937
SELECT - 75 + + ( COUNT ( col0 ) ) FROM tab2 AS cor0
----
-72

query I rowsort
SELECT - col0 + + 99 AS col2 FROM tab2 AS cor0
----
24
35
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 + + 66 col0 FROM tab1
----
153
153
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9940
SELECT ALL + col0 FROM tab2 WHERE NOT + ( + CAST( NULL AS SIGNED ) ) > - - CAST( + + 8 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL + col0 FROM tab2 WHERE NOT + ( + CAST ( NULL AS INTEGER ) ) > - - CAST ( + + 8 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9941
SELECT * FROM tab2 WHERE - col1 IN ( + col0, - col2, - col0 * + col1 * 13 + - col1, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9941
SELECT * FROM tab2 WHERE - col1 IN ( + col0, - col2, - col0 * + col1 * 13 + - col1, - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT DISTINCT + 54 + + COUNT( * ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-9942
SELECT DISTINCT + 54 + + COUNT ( * ) FROM tab2
----
57

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE + col1 + + + col0 IS NULL
----

query I rowsort
SELECT ALL - col0 - + - ( - + col2 ) FROM tab2
----
-104
-133
-69

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 66 ) > 25 * 56
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + 31, + col1 AS col0 FROM tab2
----
31
51
31
67
31
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9947
SELECT 36 DIV - COUNT( * ) * COUNT( * ) DIV - COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-9947
SELECT 36 / - COUNT ( * ) * COUNT ( * ) / - COUNT ( * ) FROM tab0
----
12

query III rowsort
SELECT * FROM tab0 WHERE - - 97 <= col0
----
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9949
SELECT ALL - COUNT( - - col0 ) FROM tab0 WHERE NOT col2 * col2 - - - col0 * col1 + + CAST( - - col0 AS SIGNED ) >= - + 98
----
-1

skipif mysql # not compatible
query I rowsort label-9949
SELECT ALL - COUNT ( - - col0 ) FROM tab0 WHERE NOT col2 * col2 - - - col0 * col1 + + CAST ( - - col0 AS INTEGER ) >= - + 98
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT DISTINCT + COUNT( * ) * + 87 AS col0 FROM tab2 AS cor0
----
261

skipif mysql # not compatible
query I rowsort label-9950
SELECT DISTINCT + COUNT ( * ) * + 87 AS col0 FROM tab2 AS cor0
----
261

query I rowsort
SELECT DISTINCT + + 17 FROM tab2 cor0
----
17

query II rowsort
SELECT DISTINCT + - col0, - ( - - col0 ) AS col1 FROM tab1 AS cor0
----
-51
-51
-85
-85
-91
-91

query I rowsort
SELECT ALL + + 49 * - col2 + + col2 AS col2 FROM tab2 AS cor0 WHERE ( NOT ( NOT 92 IS NOT NULL ) )
----
-1104
-1920
-2784

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE NULL = ( - + col2 )
----

query I rowsort
SELECT col2 * + col1 * - col0 * + col1 AS col0 FROM tab1
----
-125375
-13669292
-959616

onlyif mysql # DIV for integer division: 
query I rowsort label-9956
SELECT col0 * 4 DIV + + 97 FROM tab0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-9956
SELECT col0 * 4 / + + 97 FROM tab0
----
0
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT ALL - COUNT( + - col1 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL - COUNT ( + - col1 ) AS col1 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 * + 4 * + col2 col1 FROM tab2 AS cor0
----
10560
15312
6072

query I rowsort
SELECT ALL col0 * + + col1 AS col0 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 74 * + 23 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - 57 AS col1 FROM tab1 cor0
----
57

query II rowsort
SELECT ALL - col2 + - + col0, - 11 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT + SUM( ALL 17 ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9963
SELECT + SUM ( ALL 17 ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9964
SELECT ALL + MAX( - + ( col2 ) ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-9964
SELECT ALL + MAX ( - + ( col2 ) ) FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9965
SELECT - SUM( DISTINCT - 38 ) col1 FROM tab0
----
38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9965
SELECT - SUM ( DISTINCT - 38 ) col1 FROM tab0
----
38

onlyif mysql # aggregate syntax: 
query II rowsort label-9966
SELECT ALL + COUNT( * ) AS col1, 85 + + 12 AS col0 FROM tab2
----
3
97

skipif mysql # not compatible
query II rowsort label-9966
SELECT ALL + COUNT ( * ) AS col1, 85 + + 12 AS col0 FROM tab2
----
3
97

query I rowsort
SELECT DISTINCT col1 + 90 FROM tab1 AS cor0
----
104
137
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9968
SELECT ALL + + CAST( NULL AS SIGNED ) + - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9968
SELECT ALL + + CAST ( NULL AS INTEGER ) + - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-9969
SELECT DISTINCT + 16 * + ( - COUNT( * ) ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-9969
SELECT DISTINCT + 16 * + ( - COUNT ( * ) ) FROM tab0
----
-48

query I rowsort
SELECT ALL + col0 * - + ( - col1 ) + - 8 FROM tab2 AS cor0
----
2338
4920
5017

query I rowsort
SELECT DISTINCT + col2 * + - col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9972
SELECT ALL - 56 - - CAST( NULL AS SIGNED ) / + - 47 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9972
SELECT ALL - 56 - - CAST ( NULL AS INTEGER ) / + - 47 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT - - 16 + - COUNT( * ) FROM tab0 WHERE NULL IS NOT NULL
----
16

skipif mysql # not compatible
query I rowsort label-9973
SELECT - - 16 + - COUNT ( * ) FROM tab0 WHERE NULL IS NOT NULL
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-9974
SELECT col1 DIV - col0 - - - ( - col2 ) col0 FROM tab0
----
10
42
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9974
SELECT col1 / - col0 - - - ( - col2 ) col0 FROM tab0
----
10
42
99

query I rowsort
SELECT 91 * - col1 - - col0 FROM tab0
----
-1824
-7356
6

query I rowsort
SELECT ALL + col2 - + col1 * col1 + + - col0 AS col1 FROM tab1
----
-151
-2232
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 84 col0 FROM tab0 AS cor0
----
84
84
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9978
SELECT + ( col0 ) * - 71 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9978
SELECT + ( col0 ) * - 71 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 * - 25 AS col0, 30 AS col1 FROM tab1 AS cor0
----
-1475
30
-1700
30
-2400
30

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9981
SELECT DISTINCT + COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT ( col1 ) + - col0 * - ( - col0 ) < ( - + col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9981
SELECT DISTINCT + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT ( col1 ) + - col0 * - ( - col0 ) < ( - + col2 )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9982
SELECT + 42 AS col1, COUNT( * ) FROM tab2 AS cor0
----
42
3

skipif mysql # not compatible
query II rowsort label-9982
SELECT + 42 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
42
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9983
SELECT DISTINCT MAX( - ( - - col2 ) ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT MAX ( - ( - - col2 ) ) AS col2 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9984
SELECT DISTINCT + col0 AS col2, - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-9984
SELECT DISTINCT + col0 AS col2, - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - + col0 ) col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9986
SELECT + COUNT( * ) * - MAX( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-9986
SELECT + COUNT ( * ) * - MAX ( ALL col2 ) AS col0 FROM tab0 AS cor0
----
-297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9987
SELECT CAST( - + col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9987
SELECT CAST ( - + col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 >= - col2 * col1
----

query I rowsort
SELECT col0 * ( + col1 ) FROM tab2
----
2346
4928
5025

query III rowsort
SELECT ALL * FROM tab1 WHERE + 51 * col0 * + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT + 50 + 95 * + COUNT( * ) FROM tab1
----
335

skipif mysql # not compatible
query I rowsort label-9992
SELECT + 50 + 95 * + COUNT ( * ) FROM tab1
----
335

query II rowsort
SELECT 96 + col1 * col2 + - + col0, - col1 + + - ( - col0 ) AS col1 FROM tab0
----
219
66
3888
-66
98
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9994
SELECT + COUNT( + - col1 ) + - + 61 AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9994
SELECT + COUNT ( + - col1 ) + - + 61 AS col1 FROM tab2
----
-58

query I rowsort
SELECT ALL ( - - col0 ) AS col1 FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT ( + 71 ) FROM tab0 AS cor0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-9997
SELECT + ( + 64 ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-9997
SELECT + ( + 64 ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
61

query I rowsort
SELECT - + 60 * - ( ( + 16 ) ) FROM tab0 AS cor0
----
960
960
960

onlyif mysql # aggregate syntax: 
query I rowsort label-9999
SELECT - - MAX( 28 ) AS col1 FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-9999
SELECT - - MAX ( 28 ) AS col1 FROM tab1 AS cor0
----
28

